/* ============================================================
   TIERVERBUND – Startseite · MEDIEN + GLOBALES
   Gehoert zu: index.html · Ladereihenfolge 4 von 4
   Steht bewusst zuletzt: enthaelt die globalen Reduced-Motion-
   Overrides, die alles davor ueberschreiben duerfen muessen.

   Inhalt (in dieser Reihenfolge):
     .svideo .vslot ...... Video-Slots (Dateitausch = nur Datei in
                           assets/ ersetzen), .cine = Kino-Variante
     .kkosten ............ Kosten-Uebersicht, Full-Width-Band
     .rv ................. Scroll-Reveal (.d1/.d2/.d3 = Verzoegerung)
     @media reduced ...... globale Bewegungs-Abschaltung
     .tv-preview-dot ..... Vorschau-Hinweis, nur *.netlify.app
     .kundenstimme ....... Zitatkarte (hell auf Seite, transparent im Funnel)
     .ks-karussell ....... Kundenstimmen-Karussell im Funnel (scroll-snap)
   ============================================================ */

/* ---------- MEDIA-SLOTS (Dateitausch = nur Datei in assets/ ablegen) ---------- */
.svideo { padding: 0; background: #1d2a63; }
.vslot {
  position: relative; max-width: 880px; margin: 0 auto;
  aspect-ratio: 16 / 9; background: #e7dfd0;
  border-radius: 12px; overflow: hidden;
}
/* Hochkant-Fassung (Handy): eigene Datei, gleiche Mechanik */
.vslot.portrait { aspect-ratio: 9 / 16; max-width: 420px; }
.vslot .poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none;
}
.vslot.has-poster .poster { display: block; }
.vslot .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #9a8d72;
}
.vslot.has-poster .ph { display: none; }
/* Play-Button: grosser weisser Kreis, Navy-Dreieck – der Blickfang.
   Nur transform wird animiert. */
.vslot .playbtn {
  position: absolute; left: 50%; top: 50%; z-index: 65;
  transform: translate(-50%, -50%);
  width: clamp(80px, 10vw, 112px); height: clamp(80px, 10vw, 112px);
  border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #2d3e9e;
  box-shadow: 0 12px 36px rgba(29,42,99,0.34);
  transition: transform 160ms ease;
}
/* Dreieck optisch zentrieren (leicht nach rechts) */
.vslot .playbtn svg { width: 38%; height: 38%; transform: translateX(6%); }
.vslot .playbtn:hover { transform: translate(-50%, -50%) scale(1.06); }
.vslot .playbtn:focus-visible { outline: 3px solid #2d3e9e; outline-offset: 4px; }
.vslot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vslot.playing .playbtn, .vslot.playing .poster, .vslot.playing .ph { display: none; }

/* Kino-Variante: volle Screenbreite, gestaltetes Overlay vor dem Play */
.vslot.cine {
  max-width: none; border-radius: 0;
  aspect-ratio: 16 / 9; max-height: 86vh; width: 100%;
  background: #1d2a63; cursor: pointer;
}
.vslot.cine.portrait { max-width: none; aspect-ratio: 9 / 16; max-height: none; }
/* Poster bewusst als TV-Blau-Duotone (wie die Teamfotos): mix-blend-mode
   ersetzt die Bildfarbe durch Navy, Luminanz bleibt. Klar kontrastierend
   zum FARB-Video – der Wechsel beim Play ist gewollt, kein Farbbruch.
   Das laufende Video bleibt unbearbeitet in voller Farbe. */
.cine .vtint {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: #2d3e9e; mix-blend-mode: color; opacity: 0.92;
}
.cine.playing .vtint { display: none; }
.cine .vov {
  position: absolute; inset: 0; z-index: 60;
  display: flex; align-items: flex-end;
  padding: clamp(22px, 5vw, 64px);
  background:
    linear-gradient(to top,
      rgba(45,62,158,0.78) 0%,
      rgba(45,62,158,0.28) 42%,
      rgba(45,62,158,0.06) 70%,
      transparent 100%);
  transition: opacity 450ms var(--ease);
}
.cine .vov-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: #4ab5e8; margin-bottom: 12px;
}
.cine .vov-title {
  font-family: 'Anton', sans-serif; font-synthesis: none; font-weight: 400;
  font-size: clamp(38px, 7.5vw, 104px);
  line-height: 0.98; letter-spacing: -0.01em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(29,42,99,0.35);
}
.cine .vov-note { font-size: 13px; color: rgba(255,255,255,0.78); }
.cine:hover .playbtn { transform: translate(-50%, -50%) scale(1.06); }
.cine.playing .vov { opacity: 0; pointer-events: none; }

/* Wahl-Video: bricht aus der 880px-Spalte auf volle Breite aus */
.s3 .wahl { margin: clamp(56px, 9vh, 100px) 0 calc(-1 * clamp(80px, 14vh, 160px)); width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- Kosten-Uebersicht (Full-Width-Band, hebt sich vom FAQ ab) ---------- */
.kkosten { width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(48px, 8vh, 96px);
  background: #ffffff; padding: clamp(40px, 7vh, 80px) 20px; position: relative; z-index: 2; }
/* Anker-Ziel des Menuepunkts "Versicherung": Sprung mit Abstand, damit die
   eingeblendete Sticky-Leiste (fixed, ~56px) die Kacheln nicht anschneidet. */
#kosten-uebersicht { scroll-margin-top: 72px; }
.kkosten-inner { max-width: 1080px; margin: 0 auto; }
.kk-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #c97b28; margin-bottom: 14px; }
.kk-h2 { font-family: 'Anton', sans-serif; font-synthesis: none; font-weight: 400; font-size: clamp(32px, 5.5vw, 64px);
  line-height: 1.03; letter-spacing: -0.02em; text-transform: uppercase; color: #1d2a63; margin-bottom: 12px; }
.kk-sub { font-size: clamp(15.5px, 1.9vw, 18px); line-height: 1.7; color: #2a3670; max-width: 620px; margin-bottom: clamp(24px, 4vh, 42px); }

.kk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kk-card { display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; color: #1d2a63; background: #f7f2ea; border: 1px solid #efe8dc;
  border-radius: 16px; padding: 26px 20px; transition: transform 150ms ease, box-shadow 150ms ease; }
.kk-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
.kk-card:focus-visible { outline: 2px solid #2d3e9e; outline-offset: 3px; }
.kk-fig { height: 120px; width: auto; object-fit: contain; margin-bottom: 14px; }
.kk-tier { font-family: 'Anton', sans-serif; font-weight: 400; font-synthesis: none; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; color: #2d3e9e; margin-bottom: 6px; }
.kk-treat { font-size: 14px; color: #5a648f; margin-bottom: 2px; }
/* Betrag ist das groesste Element der Karte */
.kk-amount { font-family: 'Anton', sans-serif; font-weight: 400; font-synthesis: none; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; color: #1d2a63; margin-bottom: 14px; transition: color 150ms ease; }
.kk-card:hover .kk-amount { color: #c97b28; }
.kk-go { font-size: 14px; font-weight: 600; color: #c97b28; }
.kk-arrow { display: inline-block; transition: transform 150ms ease; }
.kk-card:hover .kk-arrow { transform: translateX(4px); }

/* Mobil: untereinander, volle Breite, Figur LINKS neben dem Text */
@media (max-width: 760px) {
  .kk-cards { grid-template-columns: 1fr; gap: 14px; }
  .kk-card { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 16px 18px; }
  .kk-fig { height: 88px; margin-bottom: 0; flex: 0 0 auto; }
  .kk-txt { flex: 1; min-width: 0; }
  .kk-amount { margin-bottom: 8px; }
}

/* Scroll-Reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 100ms; }
.rv.d2 { transition-delay: 200ms; }
.rv.d3 { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero, .item, .ghost span, .sub, .cta .label { transition: none !important; }
  .fig.swap { animation: none !important; }
  .vslot .playbtn, .cine .vov { transition: none !important; }
  .vslot .playbtn:hover, .cine:hover .playbtn { transform: translate(-50%, -50%); }
  /* Katze (FAQ-Hintergrund): Video aus, das Standbild (data-bg-src) bleibt.
     start-site.js erzeugt das Video bei reduzierter Bewegung schon gar nicht;
     diese Regel greift zusaetzlich, wenn die Einstellung bei offener Seite
     umgeschaltet wird. Fuer alle anderen bleibt alles wie bisher. */
  .s3-bg video { display: none !important; }
}

/* Vorschau-Hinweis (nur *.netlify.app): kein festes Banner mehr, sondern ein
   dezenter Punkt unten rechts. Klick -> Text als alert(). Zusaetzlich
   console.warn beim Laden. Vom JS nur auf der Vorschau erzeugt. */
.tv-preview-dot { position: fixed; right: 12px; bottom: 12px; width: 12px; height: 12px;
  padding: 0; border: none; border-radius: 50%; background: #c97b28; cursor: pointer;
  z-index: 100000; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.tv-preview-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Kundenstimmen-Karussell im Funnel (f-verzicht): CSS scroll-snap, mobil
   wischen, ab 640px Pfeile. Punkte ueberall als Positionsanzeige. Kein Autoplay. */
.ks-karussell { max-width: 560px; margin: 16px 0; }
.ks-track {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.ks-track::-webkit-scrollbar { display: none; }
.ks-track:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 12px; }
.ks-track .ks-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.ks-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.ks-arrow {
  display: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.45); background: none; color: #fff;
  font-size: 16px; line-height: 1; cursor: pointer;
}
.ks-arrow:disabled { opacity: 0.3; cursor: default; }
.ks-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 640px) { .ks-arrow { display: inline-flex; align-items: center; justify-content: center; } }
.ks-dots { display: flex; gap: 8px; }
.ks-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
}
.ks-dots button[aria-current="true"] { background: #fff; }
.ks-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ks-track { scroll-behavior: auto; } }

/* Link aus dem "Schnell vierstellig"-Block */
.wb-more { margin-top:12px; }
.wb-more a { color:#c97b28; font-weight:600; text-decoration:none; }
.wb-more a:hover { text-decoration:underline; }

/* Kundenstimmen: wie Text, KEIN Kasten/Sterne/Rahmen. Farbe erbt vom
   Kontext (hell im Funnel, dunkel auf der Startseite). */
/* Kundenstimmen als Karte (statt Kursivsatz). Farbe des Textes erbt vom
   Kontext (dunkel auf der hellen Startseite, weiss im Funnel). */
.kundenstimme { max-width:560px; margin:16px 0;
  background:#fff; border:1px solid #efe8dc; border-radius:12px; padding:1rem 1.1rem; }
/* Grosses Anfuehrungszeichen als Gestaltungselement */
.kundenstimme .ks-mark { display:block; font-family:'Anton',sans-serif; font-weight: 400; font-synthesis: none;
  font-size:26px; line-height:1; color:#c97b28; margin-bottom:4px; }
.kundenstimme .ks-zitat { display:block; line-height:1.6; }
.kundenstimme .ks-name { display:block; margin-top:10px; font-size:13px; font-weight:600; opacity:.7; }
.kundenstimme .ks-ref { text-decoration:none; color:inherit; opacity:.55; }
.kundenstimme .ks-ref:hover { opacity:1; }
/* Auf farbigen Funnel-Flaechen: leicht aufgehellte Flaeche statt Weiss,
   Text bleibt weiss und gut lesbar (Kontrast geprueft). */
.funnel .kundenstimme { background:rgba(255,255,255,0.10); border-color:rgba(255,255,255,0.20); }
/* Cream wie die Team-Sektion darueber. Kein Top-Padding: die Team-Sektion
   liefert bereits ihren vollen Boden-Abstand (beide gleichfarbig) — sonst
   staffeln sich zwei Section-Paddings zu einer grossen Leerflaeche. */
.ks-start-sec { background:#faf8f4; color:#1d2a63; padding:0 20px clamp(64px,10vh,112px); }

/* Sektionskopf — Auszeichnung wie .steam (Kicker + H2 + Unterzeile). */
.ks-head { max-width:1080px; margin:0 auto clamp(24px,4vh,40px); }
.ks-start-sec .label { font-size:12px; font-weight:600; letter-spacing:.18em;
  text-transform:uppercase; color:#c97b28; margin-bottom:14px; }
.ks-start-sec h2 { font-family:'Anton',sans-serif; font-synthesis: none; font-weight:400;
  font-size:clamp(32px,5.2vw,58px); line-height:1.04; letter-spacing:-.01em;
  text-transform:uppercase; color:#1d2a63; margin-bottom:12px; }
.ks-start-sec .ks-sub { font-size:clamp(14.5px,1.8vw,17px); line-height:1.7;
  color:#2a3670; max-width:640px; }
.ks-start-sec .ks-more { color:#c97b28; font-weight:600; text-decoration:none; white-space:nowrap; }
.ks-start-sec .ks-more:hover { text-decoration:underline; }

/* Drei feste Karten: mobil/Tablet untereinander, ab 860px nebeneinander.
   Grid-Stretch = gleiche Kartenhoehe unabhaengig von der Zitatlaenge. */
.ks-start { max-width:1080px; margin:0 auto; display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:860px){ .ks-start { grid-template-columns:repeat(3,1fr); } }
/* On-Page-Karten fuellen die Grid-Zelle. Flex-Spalte, damit der Name unten
   sitzt (gleiche Namenshoehe trotz unterschiedlicher Zitatlaenge). Kartenoptik
   unveraendert; die Funnel-Karten (.funnel .kundenstimme) bleiben ausgenommen. */
.ks-start .kundenstimme { max-width:none; margin:0; height:100%; display:flex; flex-direction:column; }
.ks-start .ks-name { margin-top:auto; padding-top:14px; }
#ks-hinweis { margin-top:14px; font-size:12px; line-height:1.55; opacity:.85; }
#ks-hinweis a { color:inherit; text-decoration:underline; }
