/* ==========================================================================
   MUT INSTITUT – gemeinsame Styles (alle Seiten)
   Farben, Typografie und Komponenten exakt nach Figma-Design
   ========================================================================== */

/* ----------------------------------------------------- Schrift (lokal) ---
   Hanken Grotesk als Variable Font, selbst gehostet unter /Assets/fonts/.
   Kein Google-Fonts-Abruf – die Seite lädt keine externen Ressourcen.
   Eine Datei je Subset deckt die Achse wght 300–700 ab (SIL Open Font License). */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/Assets/fonts/hanken-grotesk-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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/Assets/fonts/hanken-grotesk-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 {
  --blau: #2d7994;              /* Diagnostik / Primärfarbe (WCAG AA: 4.9:1 auf Weiß) */
  --blau-dark: #245f74;
  --rosa: #896872;              /* Therapie */
  --gruen: #60745e;             /* Training */
  --ink: #212121;               /* Fließtext */
  --dark: #3c3638;              /* Footer */
  --blau-bg: rgba(219, 235, 239, 0.8);
  --rosa-bg: rgba(236, 230, 232, 0.8);
  --gruen-bg: rgba(96, 116, 94, 0.15);
  --maxw: 1728px;

  /* Fließende Schriftgrößen – nur die mehrfach genutzten Stufen.
     Einmalige Größen stehen weiterhin direkt an ihrer Komponente. */
  --fs-lead: clamp(22px, 2.4vw, 36px);     /* Leitsatz, Intro-Absatz */
  --fs-display: clamp(40px, 5vw, 64px);    /* große Sektionstitel */
  --fs-body-lg: clamp(19px, 1.6vw, 28px);  /* Einleitungstexte */
  --fs-body: clamp(18px, 1.5vw, 28px);     /* Fließtext Unterseiten */
  --fs-h3: clamp(20px, 1.6vw, 28px);       /* Zwischenüberschriften */
  --pad-box-x: clamp(24px, 3vw, 52px);     /* Innenabstand Infobox / Training-Zeile */
}

/* ------------------------------------------------------ Bereichsfarben ---
   Diagnostik = blau, Therapie = rosa, Training = grün.
   Die Sektion (bzw. eine Kartenreihe) setzt nur diese Variablen; alle
   eingefärbten Komponenten weiter unten lesen ausschließlich var(--accent…).
   Neuer Bereich = ein Block hier, keine Änderung an den Komponenten.
   Standard ohne Bereichsklasse ist blau (siehe :root-Zuweisungen unten). */
:root {
  --accent: var(--blau);
  --accent-bg: var(--blau-bg);
  --accent-img: #cdd9dd;
}
.s-blau  { --accent: var(--blau);  --accent-bg: var(--blau-bg);  --accent-img: #cdd9dd; --divider-color: rgba(53, 141, 170, 0.55); }
.s-rosa  { --accent: var(--rosa);  --accent-bg: var(--rosa-bg);  --accent-img: #ddd0d4; --divider-color: rgba(137, 104, 114, 0.55); }
.s-gruen { --accent: var(--gruen); --accent-bg: var(--gruen-bg); --accent-img: #d3dbd0; --divider-color: rgba(96, 116, 94, 0.55); }
/* Kartenreihen bringen ihre Farbe selbst mit (unabhängig von der Sektion) */
.cards.v-blau  { --accent: var(--blau);  --accent-bg: var(--blau-bg);  --accent-img: #cdd9dd; }
.cards.v-rosa  { --accent: var(--rosa);  --accent-bg: var(--rosa-bg);  --accent-img: #ddd0d4; }
.cards.v-gruen { --accent: var(--gruen); --accent-bg: var(--gruen-bg); --accent-img: #d3dbd0; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Ankerziele (z. B. /impressum#datenschutz) nicht unter dem klebenden Header verstecken */
:target { scroll-margin-top: 100px; }
body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Nur für Screenreader (z. B. Seiten-h1, wenn der Titel im Design schon
   als Bild/anderes Element sichtbar ist) */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* "Zum Inhalt springen" – erst bei Tastaturfokus sichtbar (WCAG 2.4.1) */
.skip-link {
  position: absolute; top: -100%; left: 12px; z-index: 200;
  background: var(--blau); color: #fff; padding: 10px 18px; border-radius: 0 0 4px 4px;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* Zentrierter Inhaltsbereich – 1530px Inhalt bei 99px Rand (Design 1728px) */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
@media (min-width: 1024px) { .wrap { padding-inline: 99px; } }

/* ================================================================ Header == */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}
.site-header .wrap { display: flex; align-items: flex-start; gap: 20px; min-height: 80px; }

/* Wort-Bild-Logo (Original-SVG aus Figma als <img>, robust auch unter file://) */
.brand { display: inline-block; line-height: 0; text-decoration: none; }
.brand img { display: block; width: 100px; height: 65px; }
/* im Header oben bündig (Logo füllt die Leistenhöhe wie im Design) */
.site-header .brand { align-self: flex-start; }

/* Desktop-Navigation */
.main-nav { display: none; align-items: flex-start; gap: 26px; margin-left: 20px; }
.main-nav > li { position: relative; list-style: none; }
.main-nav > li.has-mega { position: static; }
.main-nav a,
.main-nav .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 300; font-size: 18px; line-height: 24px; color: var(--ink);
  background: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 29px 0 12px; transition: color .15s;
}
.main-nav a:hover, .main-nav .nav-link:hover { color: var(--blau); }
.main-nav a[aria-current="page"],
.main-nav .has-mega.is-current > .nav-link { color: var(--blau); }
.main-nav .chev { width: 16px; height: 16px; transition: transform .2s; }

/* Mega-Menü „Diagnostik & Therapie" – vollbreites türkises Band (wie Design) */
.mega {
  position: absolute; top: 100%; left: 0; width: 100%; z-index: 70;
  background: var(--blau); color: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, visibility .18s;
}
.mega .mega-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 44px; padding-bottom: 56px; }
.has-mega:hover .mega,
.has-mega:focus-within .mega { opacity: 1; visibility: visible; }
.has-mega:hover .chev { transform: rotate(180deg); }
.mega h4 { margin: 0 0 18px; font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, 0.72); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li { margin: 0 0 16px; }
.mega li a { padding: 0; font-size: 20px; font-weight: 300; color: #fff; }
.mega li a:hover { color: #fff; text-decoration: underline; }

.header-right { display: none; align-items: center; gap: 20px; margin-left: auto; padding-top: 23px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--blau); font-weight: 300; font-size: 18px; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blau); color: #fff; font-weight: 400;
  padding: 11px 18px; border-radius: 3px; font-size: 17px; white-space: nowrap;
  border: 0; cursor: pointer; font-family: inherit; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--blau-dark); }
.btn:active { transform: translateY(1px); }

.btn.s-rosa{
  background: var(--rosa); color: #fff; font-weight: 400;
}

/* Burger */
.nav-toggle { margin-left: auto; align-self: center; display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); display: block; }

@media (min-width: 1024px) {
  .main-nav, .header-right { display: flex; }
  .nav-toggle { display: none; }
}

/* ===================================================== Mobiles Overlay-Menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--blau); color: #fff;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto; padding: 20px 28px 60px;
}
.mobile-menu.open { transform: translateX(0); }
.mm-top { display: flex; align-items: center; gap: 16px; min-height: 60px; margin-bottom: 20px; }
/* Mobile-Menü-Kopf (türkiser Grund): Logo weiß per Filter */
.mm-top .brand img { filter: brightness(0) invert(1); }
.mm-top .btn { background: rgba(255,255,255,.18); }
.mm-close { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.mm-close svg { width: 28px; height: 28px; }
.mobile-menu a { color: #fff; display: block; }
.mm-group { border: 0; }
.mm-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; color: #fff; font-family: inherit; cursor: pointer;
  font-size: 22px; font-weight: 600; padding: 14px 0; text-align: left;
}
.mm-trigger .chev { width: 18px; height: 18px; transition: transform .2s; }
.mm-sub { display: none; padding: 0 0 8px 2px; }
.mm-group.open .mm-sub { display: block; }
.mm-group.open .mm-trigger .chev { transform: rotate(180deg); }
.mm-sub .mm-subhead { font-weight: 600; font-size: 18px; margin: 14px 0 6px; }
.mm-sub a { font-size: 16px; font-weight: 300; padding: 7px 0; opacity: .95; }
.mm-link { font-size: 22px; font-weight: 300; padding: 14px 0; }
.mm-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 300; margin-top: 30px; }

/* ================================================================== Hero == */
.hero { position: relative; width: 100%; overflow: hidden; background: #dfe7ea; }
.hero-slider { position: relative; width: 100%; height: clamp(360px, 60vh, 768px); }
.hero-slider .slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slider .slide.is-active { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge-wrap {
  position: absolute; top: 110px; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: flex-start; pointer-events: none;
}
.hero-badge {
  pointer-events: auto; display: block;
  width: clamp(220px, 24vw, 460px);
  transition: transform .2s ease;
}
.hero-badge:hover, .hero-badge:focus-visible { transform: scale(1.05); }
.hero-badge img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }

@media (max-width: 640px) {
  .hero-badge-wrap { top: auto; bottom: 20px; }
  .hero-badge { width: clamp(230px, 45vw, 320px); }
}

/* Diashow anhalten/fortsetzen (WCAG 2.2.2: Pause für automatisch wechselnde Inhalte) */
.hero-pause {
  position: absolute; right: 16px; bottom: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(33, 33, 33, .55); color: #fff; transition: background .15s;
}
.hero-pause:hover { background: var(--blau); }
.hero-pause svg { width: 18px; height: 18px; }
.hero-pause .icon-play { display: none; }
.hero-pause.is-paused .icon-pause { display: none; }
.hero-pause.is-paused .icon-play { display: block; }

/* ============================================================= Leitsatz === */
.leitsatz { padding: 72px 0 44px; }
.leitsatz p { color: var(--blau); font-weight: 300; font-size: var(--fs-lead); line-height: 1.45; margin: 0; max-width: 1270px; }
.s-rosa.leitsatz p { color: var(--rosa); }
.s-gruen.leitsatz p { color: var(--gruen); }
.leitsatz .lead { font-weight: 600; }

/* ==================================================== Angebots-Sektionen === */
.section { padding: 44px 0; }
.section-head { display: grid; gap: 14px; align-items: start; margin-bottom: 64px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 401px 1fr; column-gap: 120px; } }
.section-head h2 { font-weight: 300; font-size: var(--fs-display); line-height: 1.05; margin: 0; }
.section-head p { font-size: var(--fs-body-lg); line-height: 1.55; margin: 0; }
/* Trennlinie: neutral, in einer Bereichssektion in deren Farbe (heller Ton, wie Design) */
.divider { height: 2px; border: 0; margin: 0 0 64px; background: var(--divider-color, rgba(0, 0, 0, 0.12)); }
.s-blau h2, .s-rosa h2, .s-gruen h2 { color: var(--accent); }

/* ================================================================ Cards === */
.carousel { position: relative; margin-bottom:60px; }
.home .carousel { margin-bottom:0px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card {
  display: flex; overflow: hidden; border-radius: 6px; min-height: 290px;
  background: var(--accent-bg);
}
.card:hover span{color:#000; text-decoration: underline;}
.card-img { flex: 0 0 38%; background: var(--accent-img) center/cover no-repeat; }
.card-body { flex: 1; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; }
.card-body h3 { color: var(--accent); font-weight: 600; font-size: 24px; line-height: 1.25; margin: 0 0 12px; overflow-wrap: break-word; }
.card-body p { font-size: 20px; line-height: 1.4; margin: 0 0 auto; overflow-wrap: break-word; }
.card .more { color: var(--accent); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; }
.more:hover,
.trow-body .more:hover{color:#000; text-decoration: underline;}
.more svg { width: 16px; height: 16px; }

/* Responsive Karten-Stufen (Vorgabe: Karten nie zu schmal):
   >= 1200px  -> 3 nebeneinander (Grid, kein Slider)
   700–1199px -> Slider mit 2 sichtbaren Karten
   < 700px    -> Slider mit 1 Karte
   Slider-Steuerung (Pfeile/Punkte) erscheint nur im Slider-Modus. */
.car-arrow, .car-dots { display: none; }

@media (max-width: 1199px) {
  .cards {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; padding-bottom: 4px; scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 100%; scroll-snap-align: center; }   /* 1 Karte */
  .car-arrow {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 145px; transform: translateY(-50%); z-index: 5;
    width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.12); color: var(--ink);
  }
  .car-arrow.prev { left: -6px; } .car-arrow.next { right: -6px; }
  .car-arrow svg { width: 20px; height: 20px; }
  .car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .car-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; background: #8c8c8c; cursor: pointer; padding: 0; }
  .car-dot.is-active { background: var(--blau); }
}
@media (min-width: 700px) and (max-width: 1199px) {
  .card { flex: 0 0 calc(50% - 8px); }                    /* 2 Karten */
}
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(3, 1fr); }        /* 3 Karten */
}

/* ============================================================ Info-Banner = */
.banner { background: var(--blau-bg); border-radius: 5px; padding: 44px 48px; display: grid; gap: 16px; margin: 40px 0; }
@media (min-width: 900px) { .banner { grid-template-columns: 420px 1fr; column-gap: 60px; align-items: center; } }
.banner h2 { color: var(--blau); font-weight: 300; font-size: clamp(38px, 4.5vw, 64px); line-height: 1.05; margin: 0; }
.banner p { font-size: var(--fs-body-lg); line-height: 1.55; margin: 0 0 14px; }
.banner .more { color: var(--blau); }

/* ============================================================ Portrait ==== */
.portrait { background: var(--blau-bg); padding: 80px 0; margin-top: 40px; }
.portrait h2 { color: var(--blau); font-weight: 300; font-size: var(--fs-display); text-align: center; margin: 0 0 44px; }
.portrait .media { max-width: 1010px; margin: 0 auto; border-radius: 4px; overflow: hidden; background: #cdd9dd; }
.portrait .media img { width: 100%; height: clamp(360px, 48vw, 610px); object-fit: cover; }
.portrait .desc { max-width: 1010px; margin: 44px auto 0; text-align: center; font-size: var(--fs-body-lg); line-height: 1.55; }
.portrait .more { color: var(--blau); justify-content: center; margin-top: 26px; }

/* ========================================================= Unterseiten ==== */
/* Kürzerer Hero auf Unterseiten */
.subhero { width: 100%; overflow: hidden; background: #dfe7ea; }
.subhero img { width: 100%; height: clamp(300px, 40vw, 580px); object-fit: cover; display: block; }
/* Bild-Ausschnitt steuern (z. B. Über mich = oben-zentriert, damit das Gesicht sichtbar bleibt) */
.subhero.pos-top img { object-position: center top; }
.subhero.pos-bottom img { object-position: center bottom; }
.subhero.pos-left img { object-position: left center; }
.subhero.pos-right img { object-position: right center; }

/* Zweispaltiger Inhaltsblock: Titel links, Text rechts (Design 578 / 880) */
.content-section { padding: 64px 0; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1.5fr; column-gap: 72px; align-items: start; } }
.col-title { color: var(--accent); font-weight: 300; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.08; margin: 0; }
.col-body { font-size: var(--fs-body); line-height: 1.57; color: var(--ink); }
.col-body > :first-child { margin-top: 0; }
.col-body h3 { color: var(--accent); font-weight: 600; font-size: var(--fs-h3); line-height: 1.35; margin: 1.5em 0 .3em; }
.col-body p { margin: 0 0 1em; }
.col-body a { color: var(--blau); text-decoration: underline; font-weight: 600; }
.col-body a.btn{color:white; text-decoration: none;}
.content-section .divider { margin: 8px 0 0; }
.divider-sub { margin: 20px auto; width: calc(100% - 48px); max-width: calc(var(--maxw) - 48px); height: 2px; border: 0; }
@media (min-width: 1024px) { .divider-sub { width: calc(100% - 198px); max-width: calc(var(--maxw) - 198px); } }
.divider-sub.s-blau{background: rgba(53, 141, 170, 0.55);}
.divider-sub.s-rosa{background: rgba(137, 104, 114, 0.55);}
.divider-sub.s-gruen{background: rgba(96, 116, 94, 0.55);}

/* Überschrift über den Angebots-Karten (kleiner als Sektionstitel) */
.angebote-title { color: var(--accent); font-weight: 300; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; margin: 8px 0 28px; }

/* Kosten-/Info-Block in der linken Spalte */
.kosten { margin-top: 32px; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); }
.kosten p { margin: 0 0 .35em; }
.kosten .lbl { color: var(--accent); }
.kosten a { color: var(--blau); text-decoration: underline; font-weight: 600; }

/* CTA-Button im Fließtext */
.cta-btn { margin-top: 28px; }

/* Hervorgehobene Infobox (z. B. Vorteile / für wen geeignet) */
.infobox { background: var(--accent-bg); border-radius: 6px; padding: 40px var(--pad-box-x); margin: 40px 0 0; }
.infobox h3 { color: var(--accent); font-weight: 600; font-size: var(--fs-h3); margin: 0 0 14px; }
.infobox p { margin: 0 0 .3em; font-size: var(--fs-body); line-height: 1.5; }
.infobox p.sub { font-weight: 600; margin-top: .9em; }
.infobox ul { margin: 0; padding-left: 1.3em; }
.infobox li { font-size: var(--fs-body); line-height: 1.5; margin: 0 0 .3em; }

/* Training-Übersicht: Zeilen mit Bild + Textbox */
.intro-block { padding: 64px 0 8px; }
.intro-block .lead { color: var(--gruen); font-weight: 300; font-size: var(--fs-lead); line-height: 1.45; max-width: 1270px; margin: 0; }
.intro-block .lead strong { font-weight: 700; display: block; }
.trow { display: grid; gap: 0; border-radius: 6px; overflow: hidden; margin-bottom: 28px; background: var(--gruen-bg); }
@media (min-width: 820px) { .trow { grid-template-columns: 440px 1fr; } }
.trow-img { background: #d3dbd0 center/cover no-repeat; min-height: 260px; }
.trow-body { padding: 36px var(--pad-box-x); align-self: center; }
.trow-body h3 { color: var(--gruen); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; margin: 0 0 16px; }
.trow-body p { font-size: var(--fs-body); line-height: 1.5; margin: 0 0 20px; }
.trow-body .more { color: var(--gruen); }

/* YouTube-Hintergrundvideo (Institut): bildschirmfüllend/cover, ohne Bedienelemente */
.subhero-yt { --h: clamp(320px, 46vw, 768px); --cw: max(100vw, calc(var(--h) * 16 / 9)); position: relative; width: 100%; height: var(--h); overflow: hidden; background: #000 url('/Assets/institut-video-poster.jpg') center / cover no-repeat; }
.subhero-yt iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: var(--cw); height: calc(var(--cw) * 9 / 16); border: 0; pointer-events: none; }
/* Vor der Einwilligung ist der Frame per hidden-Attribut aus, sichtbar bleibt
   das lokale Vorschaubild mit dem Einwilligungs-Hinweis darüber.
   display: none muss explizit stehen, sonst gewinnt das display: flex unten. */
.subhero-yt iframe[hidden] { display: none; }
.yt-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; color: #fff; background: rgba(33, 33, 33, .55); }
.yt-consent[hidden] { display: none; }
.yt-consent p { max-width: 54ch; margin: 0; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.45; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.yt-consent-note { font-size: 14px; opacity: .9; }

.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(33, 33, 33, .55); color: #fff; transition: background .15s;
}
.yt-play:hover { background: var(--blau); }
.yt-play svg { width: 34px; height: 34px; margin-left: 4px; }
.yt-play[hidden] { display: none; }

/* Stopp-Button, solange das Video läuft (WCAG 2.2.2: Mechanismus zum
   Anhalten/Beenden für automatisch startende, sich wiederholende Inhalte) */
.yt-stop {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(33, 33, 33, .55); color: #fff; transition: background .15s;
}
.yt-stop:hover { background: var(--blau); }
.yt-stop svg { width: 16px; height: 16px; }
.yt-stop[hidden] { display: none; }

/* Drei-Spalten-Infoblock (Kontakt / Termine / Anfahrt) */
.info-cols { display: grid; gap: 32px; max-width: 1530px; margin: 0 auto; }
.info-cols > div { min-width: 0; }
@media (min-width: 820px) { .info-cols { grid-template-columns: repeat(3, minmax(0, 440px)); justify-content: space-between; } }
.info-cols h3 { color: var(--blau); font-weight: 600; font-size: 24px; margin: 0 0 12px; }
.info-cols p { font-size: 20px; line-height: 1.5; margin: 0 0 .3em; }
.info-cols .sub { font-weight: 600; margin-top: 1em; }
.info-cols a { color: var(--blau); }
.info-cols .btn { margin-top: 16px; color: #fff; }

/* Team: hervorgehobene Leitung + Mitarbeiter:innen-Raster */
.feature { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 820px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature .imgph { min-height: 340px; }
.feature .infobox { margin: 0; align-self: center; }
.team-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member .imgph { min-height: 360px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.member-name { background: var(--blau-bg); border-radius: 0 0 6px 6px; padding: 18px 24px; }
.member-name h3 { color: var(--blau); font-weight: 600; font-size: 24px; margin: 0 0 4px; }
.member-name p { font-size: 20px; margin: 0; }

/* Generischer Bild-Platzhalter (Portrait etc., bis echtes Bild vorliegt) */
.imgph { background: var(--accent-img) center/cover no-repeat; border-radius: 6px; width: 100%; min-height: clamp(320px, 38vw, 720px); }

/* Kostenrückerstattungs-Raster (3 Kassen nebeneinander) */
.rate-grid { display: grid; gap: 28px; margin-top: 20px; }
@media (min-width: 760px) { .rate-grid { grid-template-columns: repeat(3, 1fr); } }
.rate-grid p { font-size: clamp(16px, 1.2vw, 20px); line-height: 1.4; }

/* ============================================================== Footer ==== */
.site-footer { background: var(--dark); color: #fff; }
.site-footer .wrap { padding-top: 0; padding-bottom: 40px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr 1fr 0.8fr 1fr; } }
/* Footer (dunkler Grund): Logo weiß per Filter */
.footer-brand { display: inline-block; line-height: 0; margin-bottom: 22px; }
.footer-brand img { display: block; width: 100px; height: 65px; filter: brightness(0) invert(1); }
.footer-col h4 { font-weight: 600; font-size: 18px; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { font-size: 16px; line-height: 1.9; opacity: .92; }
.footer-col a:hover { color: #bfe0ec; opacity: 1; }
.footer-contact p { margin: 0 0 6px; font-size: 16px; line-height: 1.7; }
.footer-contact .phone { color: #fff; font-size: 20px; font-weight: 300; margin: 14px 0; display: inline-flex; gap: 8px; align-items: center; }
.footer-contact .btn { margin: 8px 0 20px; }
.footer-note { font-size: 16px; opacity: .85; margin: 48px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); margin-top: 16px; padding-top: 24px; font-size: 16px; opacity: .85; }
.footer-social { color: #fff; white-space: nowrap; }
.footer-bottom a { text-decoration: underline; margin-left: 18px; }
/* „Cookie-Einstellungen“ ist ein Button (öffnet ein Fenster, kein Ziel),
   soll aber wie die Links daneben aussehen. */
.footer-bottom .link-btn { background: none; border: 0; padding: 0; margin-left: 18px; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ====================================================== Cookie-Consent ==== */
/* Nur Erscheinungsbild: die Bibliothek (/Assets/vendor/cookieconsent) deklariert
   ihre Variablen auf #cc-main, deshalb muss die Anpassung denselben Selektor
   treffen – und style.css nach cookieconsent.css geladen werden (siehe header.php). */
#cc-main {
  --cc-font-family: inherit;              /* erbt Hanken Grotesk von body */
  --cc-primary-color: var(--ink);
  --cc-secondary-color: #5c5658;
  --cc-link-color: var(--blau);
  --cc-btn-border-radius: 3px;            /* wie .btn */
  --cc-modal-border-radius: 6px;
  --cc-btn-primary-bg: var(--blau);
  --cc-btn-primary-border-color: var(--blau);
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-hover-bg: var(--blau-dark);
  --cc-btn-primary-hover-border-color: var(--blau-dark);
  --cc-btn-primary-hover-color: #fff;
  --cc-toggle-on-bg: var(--blau);
  --cc-toggle-readonly-bg: #dfe6e8;
}

/* ====================================================== Scroll-Reveal ==== */
/* Wird per JS (script.js) auf Sektionen unterhalb des Hero-/Subhero-Bereichs
   gesetzt und beim Eintritt in den Viewport aktiviert (IntersectionObserver). */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
