/* ============================================================
   zyvon — gemeinsames Design-System
   Helle, aufgeraeumte Schweizer Software-Aesthetik.
   Farben: Weiss / #F5F7F6 / Anthrazit #14181F / Mint #00C896
   Schriften: Space Grotesk (Headlines, Wortmarke), Instrument Sans (Text)
   ============================================================ */

:root {
  --weiss: #FFFFFF;
  --hell: #F5F7F6;
  --anthrazit: #14181F;
  --anthrazit-weich: #1E242E;
  --mint: #00C896;
  --mint-dunkel: #00B287;
  --mint-hauch: rgba(0, 200, 150, 0.10);
  --text: #14181F;
  --text-weich: #5B6167;
  --linie: #E5E9E7;
  --schatten: 0 12px 32px rgba(20, 24, 31, 0.08);
  --schatten-klein: 0 4px 14px rgba(20, 24, 31, 0.05);
  --radius: 16px;
  --radius-klein: 10px;
  --schrift-kopf: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --schrift-text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --shell-breite: 1140px;
  --sektion-abstand: 96px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--schrift-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* ---------- Typografie ---------- */

h1, h2, h3, h4 {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--anthrazit);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.18rem; }

p { color: var(--text); }

.lead {
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--text-weich);
  max-width: 46em;
}

.eyebrow {
  font-family: var(--schrift-kopf);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-dunkel);
  margin-bottom: 14px;
}

/* ---------- Layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell-breite);
  margin-inline: auto;
  padding-inline: 24px;
}

.sektion {
  padding-block: var(--sektion-abstand);
}

.sektion-hell {
  background: var(--hell);
}

.sektion-kopf {
  max-width: 640px;
  margin-bottom: 48px;
}

.sektion-kopf .lead {
  margin-top: 14px;
}

.schmal {
  max-width: 720px;
  margin-inline: auto;
}

.zentriert {
  text-align: center;
}

.zentriert .sektion-kopf,
.zentriert .lead {
  margin-inline: auto;
}

.raster {
  display: grid;
  gap: 24px;
}

.raster-2 { grid-template-columns: repeat(2, 1fr); }
.raster-3 { grid-template-columns: repeat(3, 1fr); }
.raster-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Wortmarke ---------- */

.wortmarke {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--anthrazit);
  line-height: 1;
  display: inline-block;
}

.wortmarke .o,
.marken-o {
  color: var(--mint);
}

.wortmarke-hell {
  color: var(--weiss);
}

/* ---------- Navigation ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
}

.hauptnav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hauptnav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hauptnav ul a {
  position: relative;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--anthrazit);
  padding-block: 6px;
  transition: color 0.2s ease;
}

.hauptnav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.hauptnav ul a:hover::after,
.hauptnav ul a.aktiv::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-klein);
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--anthrazit);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.kopf.offen .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kopf.offen .burger span:nth-child(2) { opacity: 0; }
.kopf.offen .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.knopf:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.knopf-primaer {
  background: var(--anthrazit);
  color: var(--weiss);
}

.knopf-primaer:hover {
  background: var(--anthrazit-weich);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.18);
}

.knopf-primaer .knopf-punkt {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
}

.knopf-ghost {
  background: transparent;
  color: var(--anthrazit);
  border-color: var(--linie);
}

.knopf-ghost:hover {
  border-color: var(--mint);
  color: var(--anthrazit);
  transform: translateY(-2px);
}

.nav-cta {
  padding: 12px 22px;
  font-size: 0.92rem;
}

.knopf-gruppe {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Textlinks ---------- */

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--anthrazit);
  transition: color 0.2s ease;
}

.textlink::after {
  content: "\2192";
  color: var(--mint-dunkel);
  transition: transform 0.2s ease;
}

.textlink:hover {
  color: var(--mint-dunkel);
}

.textlink:hover::after {
  transform: translateX(4px);
}

/* ---------- Karten ---------- */

.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--schatten-klein);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.karte:hover {
  transform: translateY(-4px);
  box-shadow: var(--schatten);
  border-color: rgba(0, 200, 150, 0.35);
}

.karte h3 {
  margin: 0;
}

.karte p {
  color: var(--text-weich);
}

.karte .textlink {
  margin-top: auto;
}

.karte-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--mint-hauch);
  color: var(--mint-dunkel);
  display: grid;
  place-items: center;
  flex: none;
}

.karte-icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  padding-block: 112px 96px;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(0, 200, 150, 0.08), transparent 70%),
    var(--weiss);
  text-align: center;
}

.hero h1 {
  max-width: 15em;
  margin-inline: auto;
}

.hero .lead {
  margin: 22px auto 0;
  max-width: 38em;
}

.hero .knopf-gruppe {
  justify-content: center;
  margin-top: 36px;
}

/* ---------- Seiten-Hero (Unterseiten) ---------- */

.seiten-hero {
  padding-block: 72px 56px;
  background:
    radial-gradient(ellipse 60% 80% at 50% -20%, rgba(0, 200, 150, 0.07), transparent 70%),
    var(--hell);
  border-bottom: 1px solid var(--linie);
}

.seiten-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 18em;
}

.seiten-hero .lead {
  margin-top: 16px;
  max-width: 40em;
}

/* ---------- CTA-Band ---------- */

.cta-band {
  padding-block: 80px;
  background: var(--hell);
  text-align: center;
}

.cta-band .lead {
  margin: 14px auto 0;
}

.cta-band .knopf-gruppe {
  justify-content: center;
  margin-top: 30px;
}

/* ---------- Formulare ---------- */

.formular {
  display: grid;
  gap: 20px;
}

.formular[hidden] {
  display: none;
}

.feld {
  display: grid;
  gap: 8px;
}

.feld label {
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--anthrazit);
}

.feld input,
.feld textarea,
.feld select {
  width: 100%;
  padding: 13px 16px;
  background: var(--weiss);
  border: 1.5px solid var(--linie);
  border-radius: var(--radius-klein);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feld textarea {
  min-height: 150px;
  resize: vertical;
}

.feld input:focus,
.feld textarea:focus,
.feld select:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-hauch);
}

.feld .hinweis {
  font-size: 0.86rem;
  color: var(--text-weich);
}

.feld-zeile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- Footer ---------- */

.fuss {
  background: var(--anthrazit);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 64px 32px;
  margin-top: auto;
}

.fuss-raster {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.fuss-marke p {
  margin-top: 18px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.fuss-spalte h3 {
  font-family: var(--schrift-kopf);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.fuss-spalte ul {
  display: grid;
  gap: 10px;
}

.fuss-spalte a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.fuss-spalte a:hover {
  color: var(--mint);
}

.fuss-unten {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.fuss-unten p {
  color: rgba(255, 255, 255, 0.55);
}

.fuss-unten a {
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--mint);
  transition: color 0.2s ease;
}

.fuss-unten a:hover {
  color: var(--mint);
}

/* ---------- Scroll-Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--verz, 0s);
}

.reveal.sichtbar {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .karte,
  .knopf {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  :root {
    --sektion-abstand: 72px;
  }
  .raster-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .burger {
    display: flex;
  }
  .hauptnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten);
    padding: 12px 24px 24px;
  }
  .kopf.offen .hauptnav {
    display: flex;
  }
  .hauptnav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .hauptnav ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--linie);
    font-size: 1.05rem;
  }
  .hauptnav ul a::after {
    display: none;
  }
  .hauptnav ul a.aktiv {
    color: var(--mint-dunkel);
  }
  .nav-cta {
    margin-top: 18px;
    justify-content: center;
  }
  .raster-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .raster-2,
  .raster-3,
  .raster-4 {
    grid-template-columns: 1fr;
  }
  .feld-zeile {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-block: 80px 64px;
  }
  .fuss-raster {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .fuss-unten {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .shell {
    padding-inline: 18px;
  }
  h1 {
    font-size: 1.9rem;
  }
  .knopf {
    width: 100%;
  }
  .knopf-gruppe {
    flex-direction: column;
  }
  .karte {
    padding: 24px;
  }
}
