/* ==========================================================================
   Gesundheitszentrum Embken – Design System
   Farbkonzept beibehalten (Navy/Blau aus dem Logo), modernisiert.
   Keine externen Fonts (DSGVO – kein Google Fonts), reine System-Schrift.
   ========================================================================== */

:root {
  /* Markenfarben (aus dem Logo abgeleitet) */
  --navy:        #15357e;   /* tiefes Logo-Blau – Schriftzug, Headings */
  --navy-700:    #0f2a66;
  --blue:        #1b6eda;   /* Primär – Buttons, Links, Akzente */
  --blue-600:    #1559b8;
  --blue-light:  #3b8ee6;
  --sky:         #eaf2fd;   /* zarter Blauschleier für Flächen */
  --sky-2:       #f5f9fe;

  /* Neutral */
  --ink:         #1f2a37;   /* Fließtext */
  --muted:       #5b6b7c;   /* sekundärer Text */
  --line:        #e2eaf3;   /* Rahmen/Trenner */
  --bg:          #ffffff;
  --bg-soft:     #f6f9fd;

  /* Signal */
  --green:       #1f9d6b;
  --amber:       #d98a00;

  /* Form */
  --radius:      16px;
  --radius-sm:   10px;
  --shadow-sm:   0 2px 8px rgba(21,53,126,.06);
  --shadow:      0 12px 30px rgba(21,53,126,.10);
  --shadow-lg:   0 24px 60px rgba(21,53,126,.16);
  --maxw:        1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Inline-Icons skalieren mit der Schrift (verhindert riesige SVGs) */
svg { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.18em; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 65ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .8rem;
}
.section--navy .eyebrow { color: var(--blue-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(27,110,218,.30); }
.btn--primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 10px 26px rgba(27,110,218,.40); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--sky); color: var(--navy); }
.btn--lg { font-size: 1.08rem; padding: .95em 1.8em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(21,53,126,.08); }
.topbar { background: var(--navy); color: #cfe0fb; font-size: .86rem; }
.topbar .container { display: flex; gap: 22px; justify-content: flex-end; align-items: center; height: 38px; max-width: 1300px; }
.topbar a { color: #eaf2fd; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .4; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 146px; max-width: 1300px; transition: height .2s ease; }
.site-header.scrolled .header-inner { height: 96px; }
/* Original-Wortbildmarke aus der Vektorvorlage – Schriftzug ist Teil der
   Grafik, deshalb steht hier kein zusätzlicher Text mehr daneben. */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 124px; width: auto; display: block; transition: height .2s ease; }
.site-header.scrolled .brand img { height: 80px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav a.navlink {
  display: block; padding: 9px 11px; border-radius: 10px; color: var(--ink);
  font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.nav a.navlink:hover, .nav li.has-children:hover > a.navlink { background: var(--sky); color: var(--navy); }
.nav a.navlink[aria-current="page"] { color: var(--blue); }
.nav .caret { display: inline-block; margin-left: 4px; opacity: .5; vertical-align: middle; transition: transform .18s ease, opacity .18s ease; }
.nav .caret svg { width: 14px; height: 14px; display: block; }
.nav li.has-children:hover > .navlink .caret { transform: rotate(180deg); opacity: .9; }

/* Dropdown */
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .16s ease;
}
.nav li.has-children:hover > .submenu,
.nav li.has-children:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: .94rem; }
.submenu a:hover { background: var(--sky); color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(150deg, var(--sky-2) 0%, var(--sky) 60%, #ffffff 100%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(59,142,230,.18), transparent 70%); border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 64px 0; position: relative; }
.hero h1 span { color: var(--blue); }
.hero .lead { font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,157,107,.18); }
.hero-badge b { color: var(--navy); display: block; font-size: .98rem; }
.hero-badge small { color: var(--muted); }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 30px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.trust svg { color: var(--blue); flex: none; }

/* ---------- Hero-Banner (Vollbild-Titelbild Praxisgebäude) ---------- */
.hero-banner { position: relative; display: flex; align-items: center; min-height: 540px; background: var(--navy); overflow: hidden; }
.hero-banner > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(11,32,78,.92) 0%, rgba(13,38,92,.78) 38%, rgba(15,53,126,.30) 72%, rgba(15,53,126,.05) 100%);
}
.hero-banner .container { position: relative; z-index: 2; }
.hero-banner-inner { max-width: 640px; padding: 78px 0; color: #fff; }
.hero-banner .eyebrow { color: #9cc4f7; }
.hero-banner h1 { color: #fff; margin-top: .35em; }
.hero-banner h1 span { color: #8fc0f7; }
.hero-banner .lead { color: #e4edfb; }
.hero-banner .hero-actions { margin-top: 28px; }
.pill--light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,157,107,.25); }

/* Trust-Streifen unter dem Banner */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-strip .trust { margin: 0; padding: 18px 0; justify-content: center; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0fb; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: .6rem; font-size: .98rem; }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue); margin-bottom: 16px;
}
.card .ico svg { width: 28px; height: 28px; }
/* Kachel mit Bildfeld statt reinem Icon. Die Polsterung wandert von der
   Kachel in den Textteil, damit das Bild randlos oben sitzt. */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media .card-media {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sky), #fff);
  display: grid; place-items: center; overflow: hidden;
}
.card--media .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Solange kein Foto hinterlegt ist, steht das Icon im Bildfeld. */
.card--media .card-media .ico { width: 64px; height: 64px; margin-bottom: 0; border-radius: 16px; }
.card--media .card-media .ico svg { width: 32px; height: 32px; }
.card--media .card-body { padding: 22px 24px 26px; flex: 1 1 auto; display: flex; flex-direction: column; }
.card--media .card-body h3 { margin-top: 0; }
.card--media .card-body p { flex: 1 1 auto; }
/* Bild beim Überfahren leicht heranholen – nur bei verlinkten Kacheln. */
.card--media.card--link .card-media img { transition: transform .35s ease; }
.card--media.card--link:hover .card-media img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  .card--media.card--link .card-media img { transition: none; }
  .card--media.card--link:hover .card-media img { transform: none; }
}

.card-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform .15s ease; }
.card:hover .card-link::after { transform: translateX(4px); }
.card--link { display: block; color: inherit; }

/* feature list */
.feature-list { list-style: none; padding: 0; }
.feature-list li { position: relative; padding-left: 32px; margin-bottom: .7rem; color: var(--ink); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231b6eda' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Zweispaltige Aufzählung (z.B. Laborspektrum). Bewusst als Klasse und
   nicht inline – inline ließe sich auf dem Handy nicht mehr aufheben. */
.feature-list--zwei { columns: 2; column-gap: 32px; }
.feature-list--zwei li { break-inside: avoid; }

/* Kooperationspartner. Logos haben sehr unterschiedliche Seitenverhältnisse –
   deshalb feste Höhe fürs Feld und "contain", damit nichts verzerrt oder
   beschnitten wird. */
.koop-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm); text-align: center;
  display: flex; flex-direction: column;
}
.koop-logo { height: 88px; display: grid; place-items: center; margin-bottom: 16px; }
.koop-logo img { max-width: 100%; max-height: 88px; width: auto; height: auto; object-fit: contain; }
.koop-ph {
  color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; border: 1px dashed var(--line); border-radius: 10px;
  padding: 12px 16px; background: var(--sky-2);
}
.koop-link { display: block; color: inherit; text-decoration: none; }
.koop-link:hover .koop-logo img { transform: scale(1.04); }
.koop-logo img { transition: transform .25s ease; }
.koop-extern {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
  color: var(--blue); font-weight: 600; font-size: .84rem;
}
.koop-extern svg { width: 14px; height: 14px; }
.koop-link:hover .koop-extern { text-decoration: underline; }
.koop-card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.koop-card p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.6; }

/* Download-Liste (Formulare aus dem Adminportal) – bewusst kompakt:
   eine Zeile je Formular, damit auch 15+ Einträge die Seite nicht sprengen. */
.dl-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.dl-list li { border-bottom: 1px solid var(--line); }
.dl-item {
  display: flex; align-items: baseline; gap: 9px; padding: 9px 6px;
  color: inherit; text-decoration: none; line-height: 1.35;
  transition: background .12s ease;
}
.dl-item:hover { background: var(--sky-2); }
.dl-item:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.dl-ico { flex: 0 0 auto; color: var(--blue); align-self: center; display: flex; }
.dl-ico svg { width: 16px; height: 16px; }
.dl-body { flex: 1 1 auto; min-width: 0; }
.dl-title { font-weight: 600; color: var(--navy); font-size: .93rem; }
.dl-note { color: var(--muted); font-size: .82rem; }
.dl-note::before { content: " · "; }
.dl-meta {
  flex: 0 0 auto; margin-left: auto; padding-left: 10px;
  color: var(--muted); font-size: .72rem; white-space: nowrap; letter-spacing: .02em;
}

/* Aufklappbare Gruppen (z.B. Deutsch / English). Zugeklappt bleibt die
   Seite kurz; die Anzahl steht in der Kopfzeile. */
.dl-group { border-bottom: 1px solid var(--line); }
.dl-group:first-of-type { border-top: 1px solid var(--line); }
.dl-group > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 6px; font-weight: 700; color: var(--navy);
  list-style: none; transition: background .12s ease;
}
.dl-group > summary::-webkit-details-marker { display: none; }
.dl-group > summary:hover { background: var(--sky-2); }
.dl-group > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
/* Pfeil links, dreht sich beim Aufklappen */
.dl-group > summary::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-left: 2px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg); transition: transform .18s ease;
}
.dl-group[open] > summary::before { transform: rotate(45deg); }
.dl-group-name { flex: 1 1 auto; }
.dl-group-count {
  flex: 0 0 auto; background: var(--sky); color: var(--blue);
  border-radius: 999px; padding: 1px 9px; font-size: .74rem; font-weight: 700;
}
/* Innerhalb einer Gruppe keine doppelten Linien */
.dl-group .dl-list { border-top: 0; padding-bottom: 4px; }
.dl-group .dl-list li:last-child { border-bottom: 0; }
.dl-group .dl-item { padding-left: 21px; }
@media (prefers-reduced-motion: reduce) {
  .dl-group > summary::before { transition: none; }
}

/* Nummerierte Schritt-für-Schritt-Liste (Online-Rezeption) */
.steps { list-style: none; padding: 0; counter-reset: step; margin: 0; }
.steps li { position: relative; padding-left: 54px; margin-bottom: 20px; color: var(--ink); }
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.steps li b { display: block; color: var(--navy); margin-bottom: 3px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.team-card .photo { aspect-ratio: 1/1; background: linear-gradient(135deg, var(--sky), #fff); display: grid; place-items: center; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Generischer Platzhalter-Avatar: füllt die Kachel genauso wie ein Foto. */
.team-card .avatar-generic { width: 100%; height: 100%; display: block; fill: var(--blue); opacity: .55; }
.team-card .body { padding: 20px 22px 24px; }
.team-card .role { color: var(--blue); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.team-card h3 { margin: 4px 0 8px; }
.team-card .body p { color: var(--muted); font-size: .92rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { background: var(--sky); color: var(--navy); font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

/* Qualifikationen in den Team-Karten: keine Pill-Tags, keine Zeilenliste.
   Facharztbezeichnung fett, Zusatzbezeichnungen darunter kleiner und mit „·“
   getrennt – so bleiben die Karten auch bei langen Listen kompakt. */
.team-card .body .qual-main {
  margin: 10px 0 0; font-size: .95rem; font-weight: 700;
  color: var(--navy); line-height: 1.35;
}
.team-card .body .qual-extra {
  margin: 8px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.72;
}
/* Trennpunkt bewusst leiser als der Text – trennt, ohne mitzulesen. */
.team-card .qual-extra .sep { color: var(--blue); opacity: .45; padding: 0 .1em; }
/* Mitgliedschaften als Klappliste – zugeklappt bleiben die Kacheln gleich hoch. */
.team-card .qual-details { margin-top: 14px; border-top: 1px solid var(--line); }
.team-card .qual-details > summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 0 8px; list-style: none;
}
.team-card .qual-details > summary::-webkit-details-marker { display: none; }
.team-card .qual-details > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.team-card .qual-details > summary::after {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-left: auto; margin-right: 3px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease;
}
.team-card .qual-details[open] > summary::after { transform: rotate(-135deg); }
.team-card .qual-label {
  font-size: .69rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); opacity: .55;
}
.team-card .qual-count {
  flex: 0 0 auto; background: var(--sky); color: var(--blue);
  border-radius: 999px; padding: 0 7px; font-size: .68rem; font-weight: 700;
}
.team-card .qual-details > summary:hover .qual-label { opacity: .85; }
.team-card .body .qual-details .qual-extra { margin-top: 0; padding-bottom: 10px; }
@media (prefers-reduced-motion: reduce) {
  .team-card .qual-details > summary::after { transition: none; }
}
.team-card .body .team-foot {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
}

/* ---------- Hours / Contact ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th { text-align: left; font-weight: 700; color: var(--navy); padding: 10px 0; }
.hours-table td { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.hours-table td.day { font-weight: 600; }
.hours-table td.closed { color: var(--muted); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-line { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ci { width: 40px; height: 40px; border-radius: 11px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-line b { color: var(--navy); display: block; font-size: .92rem; }
.contact-line span { color: var(--muted); font-size: .95rem; }

/* note / callout */
.note { background: var(--sky); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 20px; color: var(--navy); font-weight: 500; }
.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: linear-gradient(160deg, #fff, var(--sky-2)); }

/* prose blocks for content pages */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--blue-600); }
.prose ul { padding-left: 1.25rem; }
.prose .columns { columns: 2; column-gap: 40px; }
.prose .columns li { break-inside: avoid; }

/* page hero (sub pages) */
.page-hero { background: linear-gradient(150deg, var(--sky-2), var(--sky)); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.page-hero.has-media .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.page-hero .hero-figure { margin: 0; }
.page-hero .hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); display: block; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27,110,218,.14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; }
.req { color: #d23; }

/* embed (Terminkalender / Widget) */
.embed-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px; overflow: hidden; }
.embed-card iframe { width: 100%; border: 0; border-radius: 12px; min-height: 640px; }

/* Wartungshinweis, wenn eine Einbettung im Adminportal abgeschaltet wurde */
[data-embed-on][hidden], [data-embed-off][hidden], [data-embed][hidden] { display: none; }
.embed-offline h2 svg { color: var(--blue); }

/* Therapie-Medien (Bilder & Video im Fließtext) */
.media-figure { margin: 1.8em 0; }
.media-figure img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); display: block; }
.media-figure figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.media-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .media-duo { grid-template-columns: 1fr; } }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin: 1.8em 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery .ph {
  position: relative; margin: 0; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.gallery .ph:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ph figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px;
  color: #fff; font-size: .85rem; font-weight: 600;
  background: linear-gradient(to top, rgba(15,42,102,.78), transparent);
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff; border-radius: 24px; padding: 48px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dce8fb; max-width: 56ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-700); color: #b9cbe9; padding: 60px 0 30px; }
.site-footer a { color: #d7e4f8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
/* Auf dem dunklen Grund wird die Wortbildmarke zur weißen Silhouette. */
/* Breiten- statt höhenbasiert: das Logo nutzt die Footer-Spalte aus und
   schrumpft von selbst mit, wenn die Spalte schmaler wird. */
.footer-brand img { width: min(320px, 100%); height: auto; display: block; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 20px; }
.footer-brand p { color: #93a9cf; font-size: .92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .94rem; }
.footer-mini { font-size: .92rem; color: #d7e4f8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .86rem; color: #8ba2c8; }
.footer-bottom a { color: #b9cbe9; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.pill { display:inline-flex; align-items:center; gap:8px; background: var(--sky); color: var(--navy); padding: 8px 16px; border-radius: 999px; font-weight:600; font-size:.9rem; }

/* ---------- Responsive ---------- */
/* Navi klappt früher zum Hamburger, weil die volle Menüleiste unter ~1180px
   nicht mehr neben Logo-Schriftzug und Termin-Button passt. */
@media (max-width: 1180px) {
  /* WICHTIG: backdrop-filter macht die Kopfzeile zum Bezugsrahmen für
     fixierte Kinder. Das Schubladenmenü liegt in der Kopfzeile und wäre
     dadurch auf deren Höhe (~100px) eingesperrt – praktisch unsichtbar.
     Auf schmalen Bildschirmen deshalb kein Milchglas, dafür deckend weiß. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  .nav { position: fixed; inset: 0 0 0 auto; z-index: 101; width: min(340px, 86vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 90px 18px 30px; gap: 4px;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav.open { transform: translateX(0); }
  .nav > ul { flex-direction: column; gap: 2px; }
  .nav a.navlink { padding: 12px 14px; font-size: 1.02rem; white-space: normal; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 6px 14px; padding: 0; min-width: 0; }
  .nav-toggle { display: flex; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(15,42,102,.45); opacity: 0; visibility: hidden; transition: .2s; z-index: 99; }
  .nav-overlay.open { opacity: 1; visibility: visible; }
  .topbar .container { justify-content: center; }
  .header-inner { height: 128px; }
  .brand img { height: 108px; }
  .site-header.scrolled .header-inner { height: 88px; }
  .site-header.scrolled .brand img { height: 72px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .page-hero.has-media .container { grid-template-columns: 1fr; gap: 26px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .prose .columns { columns: 1; }
  .cta-band { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 98px; }
  .brand img { height: 80px; }
  .site-header.scrolled .header-inner { height: 78px; }
  .site-header.scrolled .brand img { height: 62px; }
  .hero-badge { left: 8px; }
  /* Kopfleiste darf umbrechen statt abgeschnitten zu werden – feste 38px
     Höhe reichen auf dem Telefon für Nummer, Adresse und E-Mail nicht. */
  .topbar .container { gap: 6px 14px; font-size: .8rem; flex-wrap: wrap;
    height: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
  .hero-banner { min-height: 460px; }
  .hero-banner-inner { padding: 54px 0; }
  .hero-banner::after { background: linear-gradient(15deg, rgba(11,32,78,.94) 12%, rgba(13,38,92,.7) 50%, rgba(15,53,126,.35) 100%); }
  .trust-strip .trust { justify-content: flex-start; }
}
@media (max-width: 600px) {
  /* Aufzählungen einspaltig – zwei Spalten sind auf dem Telefon unlesbar. */
  .feature-list--zwei { columns: 1; }

  /* Downloads: Titel darf umbrechen, die Dateigröße rutscht darunter statt
     den Titel zu quetschen. Größere Klickfläche für den Finger. */
  .dl-item { flex-wrap: wrap; padding: 12px 6px; }
  .dl-body { flex: 1 1 100%; }
  .dl-meta { margin-left: 26px; padding-left: 0; }
  .dl-group > summary { padding: 14px 6px; }

  /* Partnerkarten kompakter, Logofeld etwas niedriger */
  .koop-card { padding: 20px 18px; }
  .koop-logo { height: 72px; margin-bottom: 12px; }
  .koop-logo img { max-height: 72px; }

  /* Bildkacheln: etwas flacher, damit mehr Text ins Bild passt */
  .card--media .card-media { aspect-ratio: 16 / 9; }
  .card--media .card-body { padding: 18px 18px 22px; }

  /* Mitgliedschaften: Klappzeile mit ausreichend großer Fläche */
  .team-card .qual-details > summary { padding: 12px 0 11px; }

  /* Öffnungszeiten stapeln statt quetschen: Tag als Zeile, darunter
     Vormittag und Nachmittag jeweils beschriftet. Drei Spalten mit
     Uhrzeiten passen auf einem Telefon nicht nebeneinander. */
  .hours-table, .hours-table tbody, .hours-table tr, .hours-table td { display: block; width: 100%; }
  .hours-table thead { display: none; }
  .hours-table tbody tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .hours-table tbody tr:first-child { border-top: 0; padding-top: 0; }
  .hours-table td {
    border: 0; padding: 3px 0; display: flex; gap: 16px;
    justify-content: space-between; align-items: baseline;
  }
  .hours-table td.day {
    font-weight: 700; color: var(--navy); font-size: 1.04rem;
    padding-bottom: 5px; display: block;
  }
  .hours-table td:nth-child(2)::before { content: "Vormittag"; }
  .hours-table td:nth-child(3)::before { content: "Nachmittag"; }
  .hours-table td:nth-child(2)::before,
  .hours-table td:nth-child(3)::before {
    color: var(--muted); font-size: .88rem; flex: 0 0 auto;
  }
}
@media (max-width: 430px) {
  /* Auf sehr schmalen Geräten nur noch Telefon und E-Mail – die Anschrift
     steht ohnehin im Fußbereich und auf der Kontaktseite. */
  .topbar .tb-adr, .topbar .sep-adr { display: none; }
  .header-cta .btn--primary { padding: .72em .82em; }
  .cta-label { display: none; }          /* nur Icon im Termin-Button */
  .koop-logo { height: 60px; }
  .koop-logo img { max-height: 60px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   News-Ticker (Laufband) – auf allen Seiten direkt unter dem Hero
   ========================================================================== */
.news-ticker {
  display: flex; align-items: stretch;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; overflow: hidden; position: relative;
}
.news-ticker[hidden] { display: none; }
.news-ticker-viewport { overflow: hidden; flex: 1 1 auto; }
.news-ticker-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: .55rem 0; will-change: transform;
  animation: ticker-scroll 40s linear infinite;
}
.news-ticker:hover .news-ticker-track { animation-play-state: paused; }
.news-ticker-item { padding: 0 1.1rem; font-size: .9rem; }
.news-ticker-sep { opacity: .5; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker-track { animation: none; padding-left: 1rem; }
}

/* ==========================================================================
   News-Karten (Startseite)
   ========================================================================== */
.news-section[hidden] { display: none; }
.news-card {
  padding: 26px; border: 1px solid var(--line);
  border-left: 4px solid var(--blue); text-align: left;
}
.news-card .news-date {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: var(--blue); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .5rem;
}
.news-card h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.news-card p { margin: 0; color: var(--muted); }

/* Adminportal-Link im Footer – dezent */
.site-footer .admin-link { opacity: .6; }
.site-footer .admin-link:hover { opacity: 1; }

/* ==========================================================================
   Sanfter Farbverlauf Startseite: vom blauen Hero nach unten heller → weiß
   ========================================================================== */
main#main:has(.hero-banner) {
  background: linear-gradient(180deg,
    #b9d1f3 0%,
    #b9d1f3 44%,   /* Plateau hinter/unter dem Hero */
    #cfe0f9 57%,
    #e4eefb 71%,
    #f2f7fd 84%,
    #ffffff 96%) no-repeat;
  background-size: 100% 1180px;
}
/* Unterkante des Hero-Bildes weich ins Blau des Verlaufs überblenden */
main#main:has(.hero-banner) .hero-banner {
  box-shadow: inset 0 -110px 80px -60px #b9d1f3;
}
