/* =========================================================================
   VIVYT - Entwurf B "Papier & Gespraechsspur"
   Haltung: Die Stimme wird zu Text. Die Seite ist ein sauber gesetztes
   Protokoll auf warmem Papier - Haarlinien, Ziffern in Mono, viel Luft.
   Verweigert wird der dunkle Tech-Look mit Leuchtkaesten.
   Farben stammen aus dem Logo (an der Datei gemessen), nicht aus dem Gefuehl.
   ========================================================================= */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibmplexmono-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibmplexmono-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --papier:      #fefbf6;
  --papier-2:    #f5f1e9;
  --papier-3:    #ece7dc;
  --tinte:       #132b44;
  --tinte-weich: #47617c;
  --linie:       #ddd5c6;
  --linie-zart:  #e9e3d7;
  --teal:        #0e7a6d;
  --teal-tief:   #0a5c52;
  --teal-mitte:  #2d9fa0;
  --mint:        #40e2bb;

  --schrift: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --breite: 1180px;
  --luft: 20px;
  --kurve: cubic-bezier(.2, .7, .3, 1);
  --kopfhoehe: 62px;
}

@media (min-width: 720px) { :root { --luft: 32px; --kopfhoehe: 74px; } }
@media (min-width: 1100px) { :root { --luft: 40px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sprungziele nicht unter die klebende Kopfzeile schieben */
  scroll-padding-top: calc(var(--kopfhoehe) + 18px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture, video { max-width: 100%; }
img { height: auto; }
picture { display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--luft);
}

.eng { max-width: 760px; }

/* ---------- Mikro-Beschriftung ------------------------------------------ */

.marke-klein {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.1rem;
}
.marke-klein::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
  flex: none;
}

.ziffer {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--teal);
}

/* ---------- Knoepfe ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  min-width: 0;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--kurve), background-color .22s var(--kurve), border-color .22s var(--kurve), color .22s var(--kurve), box-shadow .22s var(--kurve);
}
.btn svg { flex: none; }

.btn--voll {
  background: var(--tinte);
  color: var(--papier);
  box-shadow: 0 1px 2px rgba(19, 43, 68, .16), 0 8px 22px -12px rgba(19, 43, 68, .5);
}
.btn--voll:hover { background: var(--teal-tief); transform: translateY(-1px); }

.btn--linie {
  background: transparent;
  color: var(--tinte);
  border-color: var(--linie);
}
.btn--linie:hover { border-color: var(--tinte); background: rgba(19, 43, 68, .04); transform: translateY(-1px); }

.btn--hell {
  background: var(--papier);
  color: var(--tinte);
}
.btn--hell:hover { background: var(--mint); color: #062b26; transform: translateY(-1px); }

.btn--geisterhell {
  background: transparent;
  color: var(--papier);
  border-color: rgba(254, 251, 246, .38);
}
.btn--geisterhell:hover { border-color: var(--papier); background: rgba(254, 251, 246, .1); transform: translateY(-1px); }

.btn--klein { min-height: 42px; padding: 0.5rem 1.05rem; font-size: 0.9rem; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Kopfzeile ---------------------------------------------------- */

.zum-inhalt {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}
.zum-inhalt:focus {
  left: 12px;
  top: 12px;
  background: var(--tinte);
  color: var(--papier);
  padding: .7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

.kopf {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(254, 251, 246, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--linie-zart);
}

.kopf__reihe {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--kopfhoehe);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--tinte);
  min-width: 0;
  margin-right: auto;
}
.logo img { width: 30px; height: 30px; flex: none; }
.logo__wort {
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav { display: none; }

.kopf__tat { display: flex; align-items: center; gap: 0.5rem; }
.kopf__tat .btn--linie { display: none; }

.menue-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: transparent;
  color: var(--tinte);
  cursor: pointer;
}

@media (min-width: 980px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-right: 1.4rem;
  }
  .nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tinte-weich);
    padding: 0.35rem 0;
    position: relative;
    transition: color .2s var(--kurve);
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .26s var(--kurve);
  }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--tinte); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .kopf__tat .btn--linie { display: inline-flex; }
  .menue-knopf { display: none; }
}

/* Schublade */
.schublade {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--papier);
  padding: calc(var(--kopfhoehe) + 14px) var(--luft) 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.schublade[hidden] { display: none; }
.schublade__schliessen {
  position: absolute;
  top: 9px;
  right: var(--luft);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: transparent;
  color: var(--tinte);
  cursor: pointer;
}
.schublade a.schublade__ziel {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--linie-zart);
}
.schublade__tat { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.schublade__fuss {
  margin-top: auto;
  padding-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--tinte-weich);
}

/* ---------- Abschnitte --------------------------------------------------- */

.band { padding-block: clamp(3.4rem, 8vw, 6.4rem); }
.band--knapp { padding-block: clamp(2.6rem, 5vw, 4rem); }
.band--papier2 { background: var(--papier-2); }
.band--tinte {
  background: var(--tinte);
  color: var(--papier);
}
.band--tinte .marke-klein { color: var(--mint); }

.haarlinie { height: 1px; background: var(--linie); border: 0; margin: 0; }

.kopfzeile { margin-bottom: clamp(2rem, 4vw, 3rem); }
.kopfzeile h2 { font-size: clamp(1.85rem, 5.4vw, 3rem); }
.kopfzeile p {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  color: var(--tinte-weich);
}
.band--tinte .kopfzeile p { color: rgba(254, 251, 246, .74); }

/* ---------- Hero --------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(2.2rem, 6vw, 4.2rem);
  padding-bottom: clamp(2.6rem, 6vw, 4.6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -30%;
  right: -22%;
  width: min(760px, 108vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(64, 226, 187, .3), rgba(45, 159, 160, .12) 42%, rgba(254, 251, 246, 0) 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__gitter { display: grid; gap: clamp(2.2rem, 5vw, 3rem); }

.hero h1 {
  font-size: clamp(2.3rem, 8.4vw, 4.05rem);
  letter-spacing: -0.032em;
}
.hero h1 em { font-style: normal; color: var(--teal-tief); }
.hero__text {
  margin-top: 1.2rem;
  font-size: clamp(1.03rem, 2.6vw, 1.2rem);
  color: var(--tinte-weich);
  max-width: 54ch;
}
.hero__tat {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hero__beleg {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--tinte-weich);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.kennzahlen {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.kennzahlen dt {
  font-size: clamp(1.4rem, 4.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.kennzahlen dd {
  margin: 0.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte-weich);
}

@media (min-width: 900px) {
  .hero__gitter {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.4rem);
  }
}

/* ---------- Gespraechsprotokoll (eigene Grafik, kein Bild) --------------- */

.protokoll {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 20px;
  padding: 1.1rem 1.1rem 1.3rem;
  box-shadow: 0 1px 2px rgba(19, 43, 68, .05), 0 26px 60px -34px rgba(19, 43, 68, .5);
}
.protokoll__kopf {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--linie-zart);
}
.protokoll__punkt {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-mitte);
  flex: none;
  position: relative;
}
.protokoll__punkt::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--teal-mitte);
  opacity: .55;
  animation: puls 2.6s var(--kurve) infinite;
}
@keyframes puls {
  0% { transform: scale(.7); opacity: .7; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.protokoll__titel { font-weight: 600; font-size: 0.95rem; }
.protokoll__zeit {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--tinte-weich);
}

.protokoll__liste { list-style: none; margin: 0; padding: 0.95rem 0 0; display: grid; gap: 0.85rem; }
.zeile { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.zeile__zeit {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--tinte-weich);
  padding-top: 0.42rem;
  letter-spacing: 0.02em;
}
.zeile__text {
  font-size: 0.93rem;
  line-height: 1.5;
  padding: 0.52rem 0.85rem;
  border-radius: 14px;
  background: var(--papier-2);
  border: 1px solid var(--linie-zart);
}
.zeile--ivi .zeile__text {
  background: linear-gradient(180deg, rgba(64, 226, 187, .2), rgba(45, 159, 160, .13));
  border-color: rgba(45, 159, 160, .3);
  border-bottom-left-radius: 4px;
}
.zeile--gast .zeile__text { border-bottom-right-radius: 4px; }
.zeile__wer {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.18rem;
}
.zeile--gast .zeile__wer { color: var(--tinte-weich); }

.protokoll__fuss {
  margin-top: 1.05rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--linie-zart);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinte-weich);
}
.protokoll__ergebnis { color: var(--teal); }

/* Tonspur */
.tonspur { display: flex; align-items: center; gap: 2px; height: 18px; }
.tonspur i {
  display: block;
  width: 2px;
  height: 17px;
  transform: scaleY(.24);
  transform-origin: center;
  border-radius: 1px;
  background: var(--teal-mitte);
  opacity: .55;
  animation: welle 1.5s ease-in-out infinite;
}
.tonspur i:nth-child(3n) { animation-delay: .18s; }
.tonspur i:nth-child(3n+1) { animation-delay: .36s; }
.tonspur i:nth-child(4n) { animation-delay: .54s; }
/* scaleY statt height: sonst rechnet der Browser fuer jeden der rund
   fuenfzig Striche in jedem Einzelbild das Layout neu. */
@keyframes welle {
  0%, 100% { transform: scaleY(.24); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tonspur i { animation: none; transform: scaleY(.6); }
  .protokoll__punkt::after { animation: none; }
}

/* ---------- Vertrauensband ---------------------------------------------- */

.vertrauen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  align-items: center;
  justify-content: flex-start;
}
.vertrauen li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.87rem;
  color: var(--tinte-weich);
}
.vertrauen img { width: 20px; height: 20px; flex: none; }
.vertrauen svg { color: var(--teal); flex: none; }
.band--tinte .vertrauen li { color: rgba(254, 251, 246, .8); }
.band--tinte .vertrauen svg { color: var(--mint); }

ul.blank { list-style: none; margin: 0; padding: 0; }

/* ---------- Karten ------------------------------------------------------- */

.karten { display: grid; gap: 1rem; }
@media (min-width: 720px) { .karten--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 620px) { .karten--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.karte {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--kurve), box-shadow .3s var(--kurve), border-color .3s var(--kurve);
}
.karte:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 159, 160, .5);
  box-shadow: 0 1px 2px rgba(19, 43, 68, .05), 0 22px 44px -30px rgba(19, 43, 68, .55);
}
.karte h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.karte p { color: var(--tinte-weich); font-size: 0.96rem; }
.karte__zeichen {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, rgba(64, 226, 187, .3), rgba(45, 159, 160, .16));
  color: var(--teal-tief);
  margin-bottom: 1rem;
  flex: none;
}
.karte__punkte {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1.05rem 0 0;
  border-top: 1px solid var(--linie-zart);
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.karte__punkte li { display: grid; grid-template-columns: 1.15em minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.karte__punkte svg { color: var(--teal); margin-top: 0.34em; }

/* ---------- Ablauf ------------------------------------------------------- */

.ablauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.schritt {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--linie);
  position: relative;
}
.schritt:last-child { border-bottom: 1px solid var(--linie); }
.schritt__nr {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  padding-top: 0.28rem;
}
.schritt h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.schritt p { color: var(--tinte-weich); font-size: 0.95rem; max-width: 58ch; }

@media (min-width: 860px) {
  .ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 3.4rem); }
  .schritt:nth-last-child(2) { border-bottom: 1px solid var(--linie); }
}

/* ---------- Integrationen ------------------------------------------------ */

.hub { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
@media (min-width: 920px) { .hub { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.hub__bild { width: 100%; max-width: 520px; margin-inline: auto; }

.merkmale { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.merkmal {
  padding: 1.15rem 0;
  border-top: 1px solid var(--linie);
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.8rem;
}
.merkmal:last-child { border-bottom: 1px solid var(--linie); }
.merkmal svg { color: var(--teal); margin-top: 0.15rem; }
.merkmal h3 { font-size: 1.04rem; margin-bottom: 0.25rem; }
.merkmal p { color: var(--tinte-weich); font-size: 0.93rem; }

/* ---------- Preise ------------------------------------------------------- */

.preise { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 680px) { .preise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .preise { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; } }

.tarif {
  position: relative;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 18px;
  padding: 1.5rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tarif--beliebt {
  border-color: var(--teal-mitte);
  box-shadow: 0 1px 2px rgba(19, 43, 68, .05), 0 26px 52px -34px rgba(13, 122, 109, .75);
}
.tarif__fahne {
  position: absolute;
  top: -0.72rem;
  left: 1.25rem;
  background: var(--teal-tief);
  color: var(--papier);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.tarif h3 { font-size: 1.08rem; letter-spacing: 0.02em; }
.tarif__preis { display: flex; align-items: baseline; gap: 0.35rem; margin-top: 0.7rem; }
.tarif__zahl { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.tarif__einheit { font-family: var(--mono); font-size: 0.72rem; color: var(--tinte-weich); }
.tarif__satz { margin-top: 0.55rem; font-size: 0.87rem; color: var(--tinte-weich); }
.tarif__liste {
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  padding: 1.05rem 0 0;
  border-top: 1px solid var(--linie-zart);
  display: grid;
  gap: 0.48rem;
  font-size: 0.9rem;
}
.tarif__liste li { display: grid; grid-template-columns: 1.15em minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.tarif__liste svg { color: var(--teal); margin-top: 0.34em; }
.tarif .btn { margin-top: auto; width: 100%; }

.tabellenkasten { overflow-x: auto; border: 1px solid var(--linie); border-radius: 16px; background: var(--papier); }
table.vergleich { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
table.vergleich th, table.vergleich td { padding: 0.8rem 0.9rem; text-align: left; border-bottom: 1px solid var(--linie-zart); }
table.vergleich thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte-weich);
  background: var(--papier-2);
}
table.vergleich tbody th { font-weight: 500; color: var(--tinte); }
table.vergleich tbody tr:last-child th, table.vergleich tbody tr:last-child td { border-bottom: 0; }
table.vergleich td { color: var(--tinte-weich); }

/* ---------- FAQ ---------------------------------------------------------- */

.faq { display: grid; gap: 0; }
.frage { border-top: 1px solid var(--linie); }
.faq .frage:last-child { border-bottom: 1px solid var(--linie); }
.frage > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.6rem;
  gap: 0.8rem;
  align-items: start;
  padding: 1.2rem 0;
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -0.012em;
}
.frage > summary::-webkit-details-marker { display: none; }
.frage__kreuz { position: relative; width: 16px; height: 16px; margin-top: 0.35rem; justify-self: end; color: var(--teal); }
.frage__kreuz::before, .frage__kreuz::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform .26s var(--kurve), opacity .26s var(--kurve);
}
.frage__kreuz::before { left: 0; right: 0; top: 7.5px; height: 1.6px; }
.frage__kreuz::after { top: 0; bottom: 0; left: 7.2px; width: 1.6px; }
.frage[open] .frage__kreuz::after { transform: rotate(90deg); opacity: 0; }
.frage__inhalt { padding: 0 0 1.35rem; max-width: 72ch; }
.frage__inhalt p { color: var(--tinte-weich); font-size: 0.96rem; }
.frage__inhalt p + p { margin-top: 0.75rem; }
.frage__inhalt ul { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--tinte-weich); font-size: 0.96rem; }
.frage__inhalt li { margin-bottom: 0.35rem; }

/* ---------- Kontakt ------------------------------------------------------ */

.kanaele { display: grid; gap: 1rem; }
@media (min-width: 720px) { .kanaele { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kanal {
  border: 1px solid var(--linie);
  border-radius: 18px;
  padding: 1.35rem 1.25rem;
  background: var(--papier);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.kanal__wert {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.kanal__wert:hover { color: var(--teal-tief); }
.kanal p { font-size: 0.88rem; color: var(--tinte-weich); }

.feld { display: grid; gap: 0.35rem; margin-bottom: 0.95rem; }
.feld > span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinte-weich); }
.feld input, .feld textarea, .feld select {
  font: inherit;
  font-size: 0.97rem;
  color: var(--tinte);
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  min-height: 48px;
}
.feld textarea { min-height: 128px; resize: vertical; }
.feld input:hover, .feld textarea:hover, .feld select:hover { border-color: var(--tinte-weich); }

/* ---------- Ansichten aus dem Produkt ------------------------------------ */

.zug { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) {
  .zug { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.4rem, 5vw, 4.5rem); }
  .zug--gedreht .tafel { order: -1; }
}
.zug__bild {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--linie);
  background: var(--papier-3);
  box-shadow: 0 1px 2px rgba(19, 43, 68, .05), 0 30px 60px -38px rgba(19, 43, 68, .65);
}
.zug__bild img { display: block; width: 100%; height: auto; }

/* ---------- Schlussaufruf ------------------------------------------------ */

.aufruf { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 880px) { .aufruf { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; } }
.aufruf h2 { font-size: clamp(1.9rem, 5.2vw, 2.9rem); }
.aufruf p { margin-top: 0.9rem; color: rgba(254, 251, 246, .76); max-width: 52ch; }
.aufruf__tat { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.7rem; }
.nummernkasten {
  border: 1px solid rgba(254, 251, 246, .22);
  border-radius: 18px;
  padding: 1.3rem 1.25rem;
  background: rgba(254, 251, 246, .05);
}
.nummernkasten__klein {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}
.nummernkasten__nr {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1.4rem, 4.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--papier);
}
.nummernkasten__nr:hover { color: var(--mint); }
.nummernkasten p { margin-top: 0.6rem; font-size: 0.87rem; color: rgba(254, 251, 246, .7); }

/* ---------- Fusszeile ---------------------------------------------------- */

.fuss {
  background: var(--tinte);
  color: rgba(254, 251, 246, .78);
  padding-block: clamp(2.6rem, 5vw, 3.6rem) 1.8rem;
  font-size: 0.92rem;
}
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--mint); }
.fuss__gitter { display: grid; gap: 2rem; }
@media (min-width: 760px) { .fuss__gitter { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.4rem; } }
.fuss__wort {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--papier);
  text-decoration: none;
  display: inline-block;
}
.fuss__satz { margin-top: 0.85rem; max-width: 42ch; color: rgba(254, 251, 246, .68); }
.fuss h2 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.9rem;
}
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.fuss__unten {
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(254, 251, 246, .15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  font-size: 0.84rem;
  color: rgba(254, 251, 246, .6);
}
.fuss__unten .rechts { margin-left: auto; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Mobile Leiste unten ----------------------------------------- */

.leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.6rem var(--luft) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(254, 251, 246, .93);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--linie);
}
.leiste .btn { min-height: 46px; font-size: 0.92rem; padding-inline: 0.7rem; }
@media (min-width: 980px) { .leiste { display: none; } }
@media (max-width: 979px) { body { padding-bottom: 76px; } }

/* ---------- Rechtstexte -------------------------------------------------- */

.recht { max-width: 76ch; }
.recht h2 { font-size: clamp(1.3rem, 3.6vw, 1.6rem); margin-top: 2.4rem; }
.recht h3 { font-size: 1.06rem; margin-top: 1.6rem; }
.recht p, .recht li { color: var(--tinte-weich); font-size: 0.97rem; }
.recht p { margin-top: 0.85rem; }
.recht ul { margin: 0.85rem 0 0; padding-left: 1.15rem; }
.recht li { margin-bottom: 0.4rem; }
.recht a { color: var(--teal-tief); }


/* Sperre des Hintergrunds, solange die Schublade offen ist */
body.menue-offen { overflow: hidden; }

/* Terminbuchung: Rahmen erst nach Klick */
.cal-kasten {
  border: 1px solid var(--linie);
  border-radius: 18px;
  background: var(--papier);
  padding: 1.4rem 1.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  align-items: flex-start;
}
.cal-kasten:has(.cal-rahmen) { padding: 0; display: block; }
.cal-rahmen { display: block; width: 100%; height: 640px; border: 0; border-radius: 18px; }

/* Eigene Schemagrafik: soll mitskalieren statt ihre Attributmasse zu behalten */
.hub__bild svg { display: block; width: 100%; height: auto; }

/* Tippziele in Fusszeile und Navigation auf mindestens 24 px Hoehe bringen
   (WCAG 2.2, 2.5.8). Reine Textlinks im Fliesstext sind davon ausgenommen. */
.fuss ul a, .fuss__unten a { display: inline-block; padding-block: 4px; }
.fuss ul { gap: 0.3rem; }

/* Lange deutsche Komposita ("Datenschutzerklaerung") sprengen bei 320 px
   sonst die Zeile - Trennung erlauben statt die Schrift kleiner zu machen. */
h1 { font-size: clamp(1.9rem, 5.6vw, 2.8rem); }
.recht h1, .recht h2, .recht h3 { hyphens: auto; overflow-wrap: break-word; }

/* Bei 320 px passt die Kopfzeile sonst nicht mehr in eine Reihe */
@media (max-width: 359px) {
  .logo__wort { font-size: 0.98rem; letter-spacing: 0.11em; }
  .kopf__tat .btn--klein { padding-inline: 0.85rem; }
}

/* Nebenlink im Terminkasten: als Tippziel zu flach */
.cal-kasten a { display: inline-block; padding-block: 3px; }

/* "Individuell" hat keinen Preis - ein Fragezeichen an der Stelle der Zahl
   sieht nach Platzhalter aus, nicht nach Angebot. */
.tarif__offen { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.55; }

/* ---------- Produkttafeln (eigene Bausteine statt Pixelbilder) -----------
   Die drei Mockups des Bestands sind KI-Grafiken in Blau, Violett und Gruen
   und das Chat-Bild duzt, waehrend die Seite siezt. Als lebendes HTML sind
   sie markengetreu, scharf auf jedem Schirm und kosten keine 230 kB.        */

.tafel {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 20px;
  padding: 1.15rem 1.15rem 1.3rem;
  box-shadow: 0 1px 2px rgba(19, 43, 68, .05), 0 30px 60px -38px rgba(19, 43, 68, .6);
}
.tafel__kopf {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--linie-zart);
  font-weight: 600;
  font-size: 0.95rem;
}
.tafel__marke {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

.tafel__zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; padding: 1.1rem 0 0.4rem; }
.tafel__zahlen div { min-width: 0; }
.tafel__zahl { display: block; font-size: 1.85rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.tafel__zahlen span + span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte-weich);
}

.balken { height: 6px; border-radius: 999px; background: var(--papier-3); margin: 0.9rem 0 0.2rem; overflow: hidden; }
.balken i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint), var(--teal-mitte)); }
.balken--71 i { width: 71%; }
.balken--94 i { width: 94%; }

.tafel__liste { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--linie-zart); display: grid; gap: 0.7rem; }
.tafel__zeile { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) auto; gap: 0.65rem; align-items: center; }
.tafel__punkt {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(64, 226, 187, .22); color: var(--teal-tief); flex: none;
}
.tafel__punkt--lauf { background: rgba(19, 43, 68, .08); color: var(--tinte-weich); }
.tafel__wer { font-weight: 600; font-size: 0.9rem; }
.tafel__was { display: block; font-size: 0.8rem; color: var(--tinte-weich); }
.tafel__stand { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.tafel__stand--lauf { color: var(--tinte-weich); }

.tafel__eingabe {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 0.5rem 0.55rem 0.5rem 0.95rem;
  color: var(--tinte-weich);
  font-size: 0.86rem;
}
.tafel__senden {
  margin-left: auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--tinte); color: var(--papier);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

/* Raster-Elemente schrumpfen von sich aus nicht unter ihren Mindestinhalt:
   eine unzerbrechliche Zeile in der Tafel machte bei 320 px die ganze Spalte
   breiter als das Fenster. min-width:0 hebt diese Sperre auf. */
.zug > *, .hub > *, .aufruf > *, .hero__gitter > * { min-width: 0; }
.tafel__kopf { flex-wrap: wrap; row-gap: 0.3rem; }
.tafel__wer, .tafel__was { overflow-wrap: anywhere; }

/* Im Chat gibt es keine Zeitmarken - dann auch keine Spalte dafuer */
.protokoll__liste--chat .zeile { grid-template-columns: minmax(0, 1fr); }
.protokoll__liste--chat .zeile--gast { padding-left: 2.2rem; }
.protokoll__liste--chat .zeile--ivi { padding-right: 2.2rem; }

/* figure bringt vom Browser 40 px Rand links und rechts mit - auf dem Handy
   verlor das Protokoll dadurch ein Viertel seiner Breite. */
.protokoll { margin: 0; }

/* Der Haken gehoert neben den Satz, nicht auf eine eigene Zeile */
.hero__beleg { flex-wrap: nowrap; align-items: flex-start; }
.hero__beleg svg { margin-top: 0.3em; }
.hero__beleg span { min-width: 0; }

/* Auf schmalen Schirmen wirken zwei verschieden breite Knoepfe untereinander
   wie ein Versehen - dort beide auf volle Breite */
@media (max-width: 559px) {
  .hero__tat .btn, .aufruf__tat .btn { flex: 1 1 100%; }
}

/* =========================================================================
   BEWEGUNG
   Leitgedanke: Die Seite schreibt sich, wie IVI zuhoert - Wort fuer Wort,
   Zeile fuer Zeile. Alles laeuft ueber Klassen, nie ueber style-Attribute,
   sonst blockiert die CSP es stillschweigend.
   ========================================================================= */

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wortrein {
  from { opacity: 0; transform: translateY(0.42em) rotate(1.2deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes zeilerein {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes strichauf {
  from { transform: scaleX(0); }
  to   { transform: none; }
}

/* ---- Auftritt beim Laden -------------------------------------------- */

.ein { animation: auftauchen .72s var(--kurve) both; }
.ein-1 { animation-delay: .04s; }
.ein-2 { animation-delay: .12s; }
.ein-3 { animation-delay: .20s; }
.ein-4 { animation-delay: .28s; }
.ein-5 { animation-delay: .36s; }
.ein-6 { animation-delay: .16s; }

/* Ueberschrift Wort fuer Wort. Der Index steckt in der Klasse, weil die
   Woerter teils in <em> liegen und nth-child dort neu zu zaehlen beginnt. */
.wort { display: inline-block; animation: wortrein .68s var(--kurve) both; }
.wort--1  { animation-delay: .06s; }
.wort--2  { animation-delay: .10s; }
.wort--3  { animation-delay: .14s; }
.wort--4  { animation-delay: .18s; }
.wort--5  { animation-delay: .22s; }
.wort--6  { animation-delay: .26s; }
.wort--7  { animation-delay: .30s; }
.wort--8  { animation-delay: .34s; }
.wort--9  { animation-delay: .38s; }
.wort--10 { animation-delay: .42s; }
.wort--11 { animation-delay: .46s; }
.wort--12 { animation-delay: .50s; }
.wort--13 { animation-delay: .54s; }
.wort--14 { animation-delay: .58s; }
.wort--15 { animation-delay: .62s; }
.wort--16 { animation-delay: .66s; }

/* Das Protokoll tickert herein, wie ein Gespraech mitgeschrieben wird */
.protokoll > .protokoll__liste > .zeile { animation: zeilerein .6s var(--kurve) both; }
.protokoll > .protokoll__liste > .zeile:nth-child(1) { animation-delay: .70s; }
.protokoll > .protokoll__liste > .zeile:nth-child(2) { animation-delay: .95s; }
.protokoll > .protokoll__liste > .zeile:nth-child(3) { animation-delay: 1.20s; }
.protokoll > .protokoll__liste > .zeile:nth-child(4) { animation-delay: 1.45s; }
.protokoll > .protokoll__liste > .zeile:nth-child(5) { animation-delay: 1.70s; }
.protokoll > .protokoll__fuss { animation: auftauchen .6s var(--kurve) 1.95s both; }

/* Die Strichmarke vor den Kleinbeschriftungen zieht sich auf */
.ein .marke-klein::before, .ein.marke-klein::before {
  transform-origin: left;
  animation: strichauf .55s var(--kurve) .3s both;
}


/* ---- Beruehrung ------------------------------------------------------ */

.karte, .kanal, .tarif {
  transition: transform .34s var(--kurve), box-shadow .34s var(--kurve), border-color .34s var(--kurve);
}
.karte__zeichen { transition: transform .38s var(--kurve), background-color .38s var(--kurve); }
.karte:hover .karte__zeichen, .kanal:hover .karte__zeichen {
  transform: rotate(-7deg) scale(1.1);
  background: linear-gradient(150deg, rgba(64, 226, 187, .5), rgba(45, 159, 160, .26));
}
.kanal:hover, .tarif:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 159, 160, .55);
  box-shadow: 0 1px 2px rgba(19, 43, 68, .05), 0 24px 46px -30px rgba(19, 43, 68, .55);
}
.tarif--beliebt:hover { box-shadow: 0 1px 2px rgba(19, 43, 68, .05), 0 30px 56px -30px rgba(13, 122, 109, .8); }
.tarif__zahl { transition: transform .34s var(--kurve), color .34s var(--kurve); }
.tarif:hover .tarif__zahl { transform: translateY(-2px); color: var(--teal-tief); }

/* Ablaufschritte: die Ziffer rueckt vor, links waechst ein Markierstrich */
.schritt::before {
  content: "";
  position: absolute;
  left: -12px; top: 1px; bottom: 1px;
  width: 2px;
  background: linear-gradient(180deg, var(--mint), var(--teal-mitte));
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--kurve);
}
.schritt:hover::before { transform: none; }
.schritt__nr { transition: transform .34s var(--kurve), color .34s var(--kurve); }
.schritt:hover .schritt__nr { transform: translateX(3px); color: var(--teal-tief); }
.schritt h3 { transition: transform .34s var(--kurve); }
.schritt:hover h3 { transform: translateX(3px); }

/* Merkmalszeilen: das Zeichen macht einen kleinen Schritt nach rechts */
.merkmal svg, .karte__punkte svg, .tarif__liste svg { transition: transform .3s var(--kurve); }
.merkmal:hover svg { transform: translateX(3px) scale(1.12); }
.karte:hover .karte__punkte svg, .tarif:hover .tarif__liste svg { transform: scale(1.14); }

/* Knoepfe: der Pfeil laeuft los, das Telefon wackelt einmal */
.btn svg { transition: transform .3s var(--kurve); }
.btn:hover svg { transform: translateX(3px); }
@keyframes klingeln {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-13deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(4deg); }
}
.btn:hover svg[data-klingel] { animation: klingeln .6s var(--kurve); transform: none; }

/* Fusszeile und Fragen */
.fuss ul a { transition: transform .26s var(--kurve), color .26s var(--kurve); }
.fuss ul a:hover { transform: translateX(3px); }
.frage > summary { transition: color .26s var(--kurve); }
.frage > summary:hover { color: var(--teal-tief); }
.frage__kreuz { transition: transform .3s var(--kurve); }
.frage > summary:hover .frage__kreuz { transform: rotate(90deg) scale(1.15); }
.frage[open] > summary:hover .frage__kreuz { transform: scale(1.15); }

/* Antwort klappt auf, statt zu springen */
@keyframes klappauf {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.frage[open] .frage__inhalt { animation: klappauf .34s var(--kurve) both; }

/* Kennzahlen im Hero: die Ziffer setzt sich beim Ueberfahren kurz ab */
.kennzahlen dt { transition: color .3s var(--kurve), transform .3s var(--kurve); }
.kennzahlen div:hover dt { color: var(--teal-tief); transform: translateY(-2px); }

/* Der Lichtschein im Hero atmet langsam */
@keyframes atmen {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .95; }
  50%      { transform: scale(1.12) translate(-2%, 2%); opacity: 1; }
}
.hero::before { animation: atmen 14s ease-in-out infinite; }

/* Die Tafeln reagieren wie Karten */
.tafel { transition: transform .34s var(--kurve), box-shadow .34s var(--kurve); }
.tafel:hover { transform: translateY(-3px); }
.balken i { transition: width .8s var(--kurve); }

/* ---- Wer weniger Bewegung will, bekommt keine ------------------------ */

@media (prefers-reduced-motion: reduce) {
  .ein, .wort,
  .protokoll > .protokoll__liste > .zeile,
  .protokoll > .protokoll__fuss,
  .ein .marke-klein::before, .ein.marke-klein::before,
  .frage[open] .frage__inhalt,
  .hero::before {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .karte:hover, .kanal:hover, .tarif:hover, .tafel:hover,
  .btn:hover, .schritt:hover h3 { transform: none; }
  .btn:hover svg { transform: none; animation: none; }
}

/* Der Verlauf sass auf <em> und wurde mit background-clip:text auf dessen
   Text beschnitten. Sobald die Woerter darin inline-block sind (fuer die
   Animation noetig), malt der Browser diesen Hintergrund NICHT mehr ueber
   sie - die betonten Woerter waren schlicht unsichtbar. Also traegt jedes
   Wort seinen eigenen Ausschnitt des Verlaufs. */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 em .wort {
    background-image: linear-gradient(100deg, var(--teal-mitte), var(--teal-tief));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero h1 em .wort + .wort {
    background-image: linear-gradient(100deg, var(--teal-tief), var(--tinte));
  }
}

/* =========================================================================
   AUF- UND ABBAU BEIM SCROLLEN
   Jedes Element sagt selbst, wie es hereinkommt: data-auf="links|pop|kipp|…".
   Zweiseitig - scrollt man zurueck, baut sich alles wieder ab und beim
   naechsten Mal neu auf. Verzoegerungen stehen in data-auf-i, nie in einem
   style-Attribut: das verwirft die CSP stillschweigend.
   ========================================================================= */

:root {
  --springen: cubic-bezier(.34, 1.56, .64, 1);
  --auf-dauer: .85s;
}

[data-auf] {
  opacity: 0;
  transition:
    opacity var(--auf-dauer) var(--kurve),
    transform var(--auf-dauer) var(--kurve),
    filter var(--auf-dauer) var(--kurve);
}
[data-auf].da {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Die Spielarten */
[data-auf="hoch"]   { transform: translateY(58px); }
[data-auf="tief"]   { transform: translateY(-44px); }
[data-auf="links"]  { transform: translateX(-92px) rotate(-1.2deg); }
[data-auf="rechts"] { transform: translateX(92px) rotate(1.2deg); }
/* transform-origin oben, sonst wandert der Oberrand beim Schrumpfen nach
   unten und das Element verfehlt die Ausloeseschwelle, die seine Nachbarn
   laengst ueberquert haben - es bleibt dann als einziges unsichtbar stehen. */
[data-auf="pop"]    { transform: scale(.66) translateY(14px); transform-origin: center top; }
[data-auf="zoom"]   { transform: scale(1.16) rotate(2deg); }
[data-auf="kipp"]   { transform: perspective(900px) rotateX(-24deg) translateY(44px); transform-origin: center top; }
[data-auf="dreh"]   { transform: rotate(-6deg) translateY(34px) scale(.88); transform-origin: center top; }
[data-auf="weich"]  { filter: blur(16px); transform: translateY(28px) scale(1.04); }
[data-auf="breit"]  { transform: scaleX(0); transform-origin: left; }

/* Was springen darf, springt auch - mit leichtem Ueberschwingen */
[data-auf="pop"], [data-auf="dreh"], [data-auf="kipp"] {
  transition-timing-function: var(--springen);
  --auf-dauer: .9s;
}
[data-auf="breit"] { --auf-dauer: .9s; }

/* Versetzt: der Index steht im Bau fest, damit kein style-Attribut noetig ist */
[data-auf-i="1"]  { transition-delay: .06s; }
[data-auf-i="2"]  { transition-delay: .12s; }
[data-auf-i="3"]  { transition-delay: .18s; }
[data-auf-i="4"]  { transition-delay: .24s; }
[data-auf-i="5"]  { transition-delay: .30s; }
[data-auf-i="6"]  { transition-delay: .36s; }
[data-auf-i="7"]  { transition-delay: .42s; }
[data-auf-i="8"]  { transition-delay: .48s; }
[data-auf-i="9"]  { transition-delay: .54s; }
[data-auf-i="10"] { transition-delay: .60s; }

/* Ein Container kann seine Kinder versetzt mitziehen, ohne dass jedes Kind
   einzeln beobachtet werden muss. */
[data-auf-kinder] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .72s var(--kurve), transform .72s var(--kurve);
}
[data-auf-kinder="pop"] > * { transform: scale(.7) translateY(26px); transition-timing-function: var(--springen); }
[data-auf-kinder="links"] > * { transform: translateX(-64px); }
/* Gemischt: eine Reihe, drei verschiedene Wege - aber EIN Ausloeser, damit
   die Nachbarn garantiert gemeinsam hereinkommen. */
[data-auf-kinder="mix"] > *:nth-child(3n+1) { transform: translateX(-80px) rotate(-1.5deg); }
[data-auf-kinder="mix"] > *:nth-child(3n+2) { transform: scale(.68) translateY(20px); transform-origin: center top; transition-timing-function: var(--springen); }
[data-auf-kinder="mix"] > *:nth-child(3n+3) { transform: translateX(80px) rotate(1.5deg); }

/* Muss NACH allen Spielarten stehen: gleiche Spezifitaet, also gewinnt die
   spaetere Regel. Stand dieser Ruecksetzer davor, blieb ein Kasten mit
   eigener Variante dauerhaft geschrumpft stehen. */
[data-auf-kinder].da > * { opacity: 1; transform: none; }
[data-auf-kinder].da > *:nth-child(2)  { transition-delay: .07s; }
[data-auf-kinder].da > *:nth-child(3)  { transition-delay: .14s; }
[data-auf-kinder].da > *:nth-child(4)  { transition-delay: .21s; }
[data-auf-kinder].da > *:nth-child(5)  { transition-delay: .28s; }
[data-auf-kinder].da > *:nth-child(6)  { transition-delay: .35s; }
[data-auf-kinder].da > *:nth-child(7)  { transition-delay: .42s; }
[data-auf-kinder].da > *:nth-child(8)  { transition-delay: .49s; }
[data-auf-kinder].da > *:nth-child(9)  { transition-delay: .56s; }
[data-auf-kinder].da > *:nth-child(10) { transition-delay: .63s; }
[data-auf-kinder].da > *:nth-child(11) { transition-delay: .70s; }

/* Ohne JavaScript bleibt nichts verborgen */
.kein-js [data-auf], .kein-js [data-auf-kinder] > * {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Die Fortschrittsbalken fuellen sich erst, wenn die Tafel im Bild ist */
.tafel .balken i { width: 0; transition: width 1.1s var(--kurve) .25s; }
.tafel.da .balken--71 i { width: 71%; }
.tafel.da .balken--94 i { width: 94%; }

/* Gezaehlte Ziffern duerfen die Breite nicht springen lassen */
[data-zaehl] { font-variant-numeric: tabular-nums; }

/* Kopfzeile rueckt beim Scrollen zusammen */
.kopf { transition: box-shadow .3s var(--kurve), background-color .3s var(--kurve); }
.kopf--eng {
  box-shadow: 0 1px 0 var(--linie), 0 10px 30px -22px rgba(19, 43, 68, .55);
  background: rgba(254, 251, 246, .95);
}
.kopf__reihe { transition: min-height .3s var(--kurve); }
.kopf--eng .kopf__reihe { min-height: calc(var(--kopfhoehe) - 10px); }
.logo img { transition: transform .35s var(--kurve); }
.kopf--eng .logo img { transform: scale(.88); }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  [data-auf], [data-auf-kinder] > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .tafel .balken i { transition: none; }
  .tafel .balken--71 i { width: 71%; }
  .tafel .balken--94 i { width: 94%; }
  .kopf__reihe, .logo img { transition: none; }
  .kopf--eng .logo img, .logo:hover img { transform: none; }
}

/* Was von rechts hereinfaehrt, steht waehrend der Fahrt rechts ausserhalb und
   wuerde eine Querscrollleiste erzeugen. `clip` schneidet das ab, OHNE - anders
   als `hidden` - einen Scrollbereich zu eroeffnen; die klebende Kopfzeile
   bleibt dadurch funktionsfaehig. Sie liegt ohnehin ausserhalb von main. */
main { overflow-x: clip; }
