/* ============================================================
   Panacea Home — Stylesheet

   Gestaltung der bisherigen Website (WordPress/Elementor, Stand
   28.10.2026), aus dem gerenderten CSS gemessen: Prata fuer Ueberschriften,
   Manrope fuer Text, Violett #5D48B4 fuer Schaltflaechen, Pflaume #74236D
   im Logo, Dunkelviolett #2C0444 fuer Ueberschriften und Fusszeile.
   Die Farben stehen zusaetzlich in site_config.py -> FARBEN (theme-color,
   Manifest); beide Stellen muessen zusammenpassen.

   Die Mechanik der Vorlage bleibt: Header ausserhalb des Mobilmenues,
   img{height:auto}, hyphens an Ueberschriften, Tabellen scrollen in sich.
   ============================================================ */

:root{
  --navy:#2C0444;
  --blue:#5D48B4;
  --pflaume:#74236D;
  --text:#421D62;
  /* #69727D der alten Seite kam auf Flieder nur auf 3,7:1 — unter WCAG AA
     (4,5:1). #535B66 erreicht 5,3:1 auf Flieder und 6,9:1 auf Weiss. */
  --text-2:#535B66;
  --flieder:#E1DEFF;
  --flieder-2:#F1EFFD;
  --hellblau:#DEEBFF;
  --paper:#FFFFFF;
  --paper-2:#F7F8FD;
  --line:#E4E1F2;
  --gold:#F0AD4E;
  /* Gold als Vordergrund auf Weiss: --gold erreicht dort nur 1,95:1,
     fuer Grafik verlangt WCAG 1.4.11 mindestens 3:1. Dieser Ton: 3,7:1. */
  --gold-auf-weiss:#B07A1A;
  --green:#2E7D4F;
  --schatten:0 18px 44px rgba(44,4,68,0.10), 0 3px 10px rgba(44,4,68,0.06);
  /* Hoehe des Headers; das Mobilmenue beginnt darunter. */
  --kopf-h:80px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; scroll-padding-top:calc(var(--kopf-h) + 12px); }
body{
  background:var(--paper); color:var(--text);
  font-family:'Manrope', system-ui, sans-serif; font-size:17px; line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
/* Pflicht, nicht Kosmetik: jedes <img> traegt width/height gegen CLS. Ohne
   height:auto bleibt bei schmaler Spalte die Attribut-Hoehe stehen und das
   Bild wird verzerrt. */
img{ max-width:100%; height:auto; display:block; }
picture{ display:block; }
a{ color:inherit; }

h1,h2,h3{
  font-family:'Prata', Georgia, serif; font-weight:400;
  color:var(--navy); line-height:1.2;
}
/* Lange Komposita ("Wohngruppenzuschlag", "Pflegesachleistung") passen auf
   320 px nicht in eine Zeile und schieben sonst die Seite seitlich. */
h1,h2,h3,h4,summary{ overflow-wrap:break-word; hyphens:auto; }
p,li,td,th,dd,figcaption,blockquote{ overflow-wrap:break-word; }

:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; }
/* Auf dunklen und farbigen Flaechen verschwand der lila Rahmen: #5D48B4 auf
   Navy 2,53:1, auf dem Verlauf der .band rund 1:1 (WCAG 1.4.11 verlangt 3:1).
   Weiss steht dort bei 6,9:1 und mehr. */
footer :focus-visible, .band :focus-visible, .hero :focus-visible,
.bewertungen :focus-visible, #cookie-banner :focus-visible{ outline-color:#fff; }
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

.wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }
.wrap-schmal{ max-width:880px; }
.wrap.prose{ max-width:840px; }
section{ padding:96px 0; }
@media (max-width:720px){
  section{ padding:64px 0; }
  .wrap{ padding:0 18px; }
}
.abschnitt-hell{ background:var(--paper-2); }
.zentriert{ text-align:center; }

.eyebrow{
  font-size:13px; color:var(--pflaume); font-weight:700;
  text-transform:uppercase; letter-spacing:0.12em; margin-bottom:14px;
}
.mehr{
  display:inline-block; margin-top:8px; color:var(--blue); font-weight:700;
  font-size:14px; text-transform:uppercase; letter-spacing:0.06em;
  text-decoration:none;
}
.mehr:hover{ color:var(--pflaume); text-decoration:underline; }

/* ---------- Abschnittskopf ---------- */
.kopf{ text-align:center; max-width:760px; margin:0 auto 56px; }
.kopf h2{ font-size:clamp(30px, 3.8vw, 46px); }
.kopf-unter{ color:var(--text-2); font-size:18px; margin-top:16px; }
.kopf-unter.links{ text-align:left; margin:12px 0 0; }

/* ---------- Text ---------- */
.prose h2{ font-size:clamp(26px, 3vw, 36px); margin:48px 0 18px; }
.prose h2:first-child{ margin-top:0; }
.prose h3{ font-size:22px; margin:32px 0 12px; }
.prose p{ margin-bottom:16px; }
.prose ul, .prose ol{ margin:0 0 20px 22px; }
.prose li{ margin-bottom:8px; }
.prose a:not(.mehr):not(.btn){ color:var(--blue); }
.prose strong{ color:var(--navy); font-weight:700; }

ul.check-list{ list-style:none; margin-left:0; }
ul.check-list li{ position:relative; padding-left:30px; margin-bottom:10px; }
/* Haken als Rahmen statt Grafik: kein Request, faerbt mit --blue mit. */
ul.check-list li::before{
  content:""; position:absolute; left:4px; top:0.38em;
  width:7px; height:13px; border:solid var(--blue);
  border-width:0 2.5px 2.5px 0; transform:rotate(45deg);
}
ul.check-list.zweispaltig{ columns:2; column-gap:36px; }
ul.check-list.zweispaltig li{ break-inside:avoid; }
@media (max-width:560px){ ul.check-list.zweispaltig{ columns:1; } }

.hinweis{
  background:var(--flieder-2); border-left:4px solid var(--blue);
  padding:18px 22px; border-radius:4px; margin:24px 0;
}
.hinweis p{ margin:0; }

/* Tabellen scrollen in sich, nie die Seite (CLAUDE.md). */
.tabelle-rahmen{ overflow-x:auto; -webkit-overflow-scrolling:touch; margin:20px 0 8px; }
.tabelle-rahmen table{ width:100%; min-width:560px; border-collapse:collapse; font-size:15.5px; background:#fff; }
.tabelle-rahmen th, .tabelle-rahmen td{ text-align:left; padding:12px 14px; border:1px solid var(--line); vertical-align:top; }
.tabelle-rahmen thead th{ background:var(--flieder); color:var(--navy); font-weight:700; font-size:14px; line-height:1.35; }
.tabelle-rahmen tbody th{ font-weight:700; color:var(--navy); white-space:nowrap; }
.tabelle-rahmen td{ font-variant-numeric:tabular-nums; }
.tabelle-fuss{ font-size:13.5px; color:var(--text-2); margin-bottom:20px; }

.zwei-spalten{ display:grid; grid-template-columns:1fr 1fr; gap:0 48px; max-width:none; }
@media (max-width:760px){ .zwei-spalten{ grid-template-columns:1fr; } }

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.96); backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:1280px; margin:0 auto; padding:12px 28px; min-height:var(--kopf-h);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.header-inner > a{ flex-shrink:0; }
.logo-img{ height:52px; width:auto; display:block; }
/* Nur die Kopfnavigation: auch Brotkrumen und Mobilmenue sind <nav>, und
   ein nacktes nav{} gab den Brotkrumen Flex-Abstaende und Grossbuchstaben. */
header nav{ display:flex; align-items:center; gap:28px; }
.nav-links{ display:flex; gap:26px; }
/* Fuenf Punkte, Umschalter und CTA brauchen auf Deutsch 1215 px (gemessen,
   RU 1024 px). Bei 1180 als Grenze ragte der Kopf zwischen 1181 und 1186 px
   aus dem Fenster. 1240 laesst Platz fuer eine 17-px-Bildlaufleiste unter
   Windows, die die Media Query mitzaehlt, das Layout aber nicht. */
@media (max-width:1240px){ .nav-links{ display:none; } }
/* Logo, Umschalter, CTA und Menueknopf brauchen zusammen 636 px (DE,
   gemessen). Mit 600 als Grenze ragte der Kopf bei 601-607 px aus dem
   Fenster. 660 laesst Raum fuer eine Bildlaufleiste. */
@media (max-width:660px){ header nav > .btn-primary{ display:none; } }
header nav a{
  text-decoration:none; font-size:13px; color:var(--text); font-weight:600;
  text-transform:uppercase; letter-spacing:0.07em; white-space:nowrap;
}
header nav a:hover, header nav a.active{ color:var(--blue); }

.lang-switch{ display:flex; align-items:center; gap:2px; flex-shrink:0; }
.lang-switch a{
  font-size:13px; font-weight:700; letter-spacing:0.06em; line-height:1;
  color:var(--text-2); padding:7px 9px; border-radius:4px; text-decoration:none;
}
.lang-switch a:hover{ color:var(--blue); background:var(--flieder-2); }
.lang-switch a[aria-current]{ color:var(--navy); background:var(--flieder-2); }
@media (max-width:600px){ header .lang-switch{ display:none; } }
.mobile-nav .lang-switch{ margin-top:24px; justify-content:center; }
.mobile-nav .lang-switch a{ display:inline-flex; border-bottom:none; font-size:15px; padding:10px 16px; }

.btn{
  font-family:inherit; font-weight:700; font-size:13px; letter-spacing:0.08em;
  text-transform:uppercase; padding:16px 26px; border-radius:2px;
  text-decoration:none; display:inline-flex; align-items:center; justify-content:center;
  gap:8px; border:1.5px solid transparent; cursor:pointer; line-height:1.2;
  transition:background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary{ background:var(--blue); color:#fff; }
.btn-primary:hover{ background:var(--pflaume); }
.btn-hell{ border-color:rgba(255,255,255,0.75); color:#fff; }
.btn-hell:hover{ background:#fff; color:var(--navy); }
.btn-weiss{ background:#fff; color:var(--blue); }
.btn-weiss:hover{ background:var(--navy); color:#fff; }
.btn:disabled{ opacity:0.6; cursor:not-allowed; }

.menu-btn{
  display:none; background:none; border:none; cursor:pointer;
  width:40px; height:40px; padding:0; align-items:center; justify-content:center;
  flex-direction:column; gap:5px;
}
.menu-btn span{ display:block; width:24px; height:2px; background:var(--navy); transition:transform 0.25s ease, opacity 0.25s ease; }
@media (max-width:1240px){ .menu-btn{ display:flex; } }
.menu-btn[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-btn[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.mobile-nav{ display:none; position:fixed; top:var(--kopf-h); left:0; right:0; bottom:0; background:#fff; z-index:49; padding:12px 28px 40px; overflow-y:auto; }
.mobile-nav.open{ display:block; }
.mobile-nav a{ display:block; padding:15px 0; font-size:17px; font-weight:600; color:var(--navy); text-decoration:none; border-bottom:1px solid var(--line); }
.mobile-nav .btn{ display:flex; margin-top:24px; color:#fff; border-bottom:none; }

/* ---------- Hero (Startseite) ---------- */
.hero{
  position:relative; min-height:min(88vh, 860px); padding:140px 0 72px;
  display:flex; align-items:flex-end; color:#fff; text-align:center; overflow:hidden;
  background:var(--navy);
}
.hero-bild{ position:absolute; inset:0; }
.hero-bild img{ width:100%; height:100%; object-fit:cover; object-position:50% 35%; }
/* Verlauf von oben fast klar nach unten dunkel: das Foto bleibt sichtbar,
   die Schrift steht auf ausreichend Kontrast (weiss auf #2C0444 bei 0.75). */
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(44,4,68,0.10) 0%, rgba(44,4,68,0.30) 45%, rgba(44,4,68,0.78) 100%);
}
.hero-inhalt{ position:relative; z-index:1; width:100%; }

/* Stockfotos: Hinweis "Symbolbild" unten rechts im Bild (bilder.py,
   SYMBOLBILDER). Der Text kommt aus data-hinweis, damit er in der Sprache
   der Seite steht. Das Hero-Bild ist schon absolut positioniert — dort
   nicht auf relative zuruecksetzen. */
picture.symbolbild:not(.hero-bild){ position:relative; display:block; }
picture.symbolbild::after{
  content:attr(data-hinweis); position:absolute; right:8px; bottom:8px; z-index:1;
  padding:2px 7px; border-radius:2px; pointer-events:none;
  font-size:11px; line-height:1.4; letter-spacing:.02em;
  color:#fff; background:rgba(44,4,68,.6);
}
/* Im seitenbreiten Hero laege der Hinweis rechts unten genau unter dem
   festen Chat-Knopf (.chat-knopf) — dort nach links. */
.hero-bild.symbolbild::after{ right:auto; left:8px; }
.hero h1{ color:#fff; font-size:clamp(42px, 6.6vw, 86px); line-height:1.05; text-shadow:0 2px 24px rgba(44,4,68,0.35); }
.h1-ort{
  display:block; font-family:'Manrope', system-ui, sans-serif; font-size:15px;
  font-weight:700; letter-spacing:0.16em; text-transform:uppercase;
  margin-bottom:18px; text-shadow:none;
}
.hero .lede{ font-size:clamp(17px, 1.6vw, 21px); max-width:740px; margin:22px auto 34px; color:rgba(255,255,255,0.94); }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.hero-meta{ list-style:none; display:flex; gap:10px 28px; flex-wrap:wrap; justify-content:center; margin-top:30px; font-size:14.5px; color:rgba(255,255,255,0.88); }
.hero-meta li::before{ content:"·"; margin-right:10px; color:var(--flieder); }
.hero-meta a{ color:#fff; font-weight:700; text-decoration:none; white-space:nowrap; }
@media (max-width:600px){
  .hero{ min-height:auto; padding:120px 0 56px; }
  .hero-ctas .btn{ width:100%; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-hero{ padding:64px 0 60px; background:var(--flieder-2); border-bottom:1px solid var(--line); }
.page-hero-grid{ display:grid; grid-template-columns:1fr; gap:48px; align-items:center; }
.page-hero.mit-bild .page-hero-grid{ grid-template-columns:1.15fr 0.85fr; }
.page-hero-grid > *{ min-width:0; }
@media (max-width:900px){ .page-hero.mit-bild .page-hero-grid{ grid-template-columns:1fr; } }
.page-hero h1{ font-size:clamp(32px, 4.6vw, 54px); }
.page-hero .lede{ font-size:19px; color:var(--text); max-width:680px; margin-top:18px; }
.page-hero-bild img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:4px; box-shadow:var(--schatten); }
.breadcrumb{ font-size:13.5px; color:var(--text-2); margin-bottom:22px; }
.breadcrumb a{ color:var(--blue); text-decoration:none; }
.breadcrumb a:hover{ text-decoration:underline; }

/* ---------- Text neben Bild ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
.split > *{ min-width:0; }
.split.umgekehrt .split-bild{ order:-1; }
.split-bild img{ width:100%; border-radius:4px; box-shadow:var(--schatten); }
@media (max-width:900px){
  .split{ grid-template-columns:1fr; gap:40px; }
  .split .split-bild{ order:-1; max-width:560px; }
}

/* ---------- Vorteile ---------- */
.vorteile{ background:var(--flieder); }
.vorteile-grid{ list-style:none; display:grid; grid-template-columns:repeat(3, 1fr); gap:52px 40px; }
.vorteile-grid li{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:18px; font-size:16.5px; color:var(--text); }
.vorteile-grid img{ width:72px; height:72px; }
@media (max-width:860px){ .vorteile-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .vorteile-grid{ grid-template-columns:1fr; gap:36px; } }

/* ---------- Ablauf ---------- */
.ablauf .split{ grid-template-columns:0.85fr 1.15fr; }
@media (max-width:900px){ .ablauf .split{ grid-template-columns:1fr; } }
.ablauf h2{ font-size:clamp(30px, 3.6vw, 44px); }
.schritte{ list-style:none; margin-top:36px; }
.schritte li{
  position:relative; display:grid; grid-template-columns:44px 88px 1fr;
  gap:20px; align-items:center; padding-bottom:28px;
}
/* Verbindungslinie zwischen den Nummern, wie auf der alten Seite. */
.schritte li::before{
  content:""; position:absolute; left:21px; top:50%; bottom:-50%;
  width:2px; background:var(--line); z-index:0;
}
.schritte li:last-child::before{ display:none; }
.schritt-nr{
  position:relative; z-index:1; width:44px; height:44px; border-radius:50%;
  background:var(--blue); color:#fff; font-weight:700; font-size:14px;
  display:flex; align-items:center; justify-content:center;
}
.schritte img{ width:88px; height:80px; }
.schritte h3{ font-family:'Manrope', system-ui, sans-serif; font-size:17px; font-weight:700; color:var(--navy); margin-bottom:4px; }
.schritte p{ font-size:15px; color:var(--text-2); line-height:1.55; }
@media (max-width:520px){
  .schritte li{ grid-template-columns:44px 1fr; }
  .schritte img{ display:none; }
}

/* ---------- Band (Aufforderung) ---------- */
.band{ background:linear-gradient(115deg, var(--blue) 0%, var(--pflaume) 100%); color:#fff; padding:72px 0; }
.band-inner{ display:flex; align-items:center; justify-content:space-between; gap:32px 48px; flex-wrap:wrap; }
.band h2{ color:#fff; font-size:clamp(28px, 3.4vw, 40px); }
.band p{ margin-top:10px; max-width:640px; color:rgba(255,255,255,0.92); font-size:18px; }
.band-knopf{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Bewertungen ---------- */
.bewertungen{ background:var(--blue); }
.bewertungen .kopf h2{ color:#fff; }
.bewertungen .kopf-unter{ color:rgba(255,255,255,0.88); }
.bewertungen-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; align-items:start; }
@media (max-width:1080px){ .bewertungen-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .bewertungen-grid{ grid-template-columns:1fr; } }
.bewertung{ background:#fff; padding:56px 26px 28px; text-align:center; position:relative; border-radius:2px; }
.bewertung::before{
  content:"\201C"; position:absolute; top:6px; left:0; right:0;
  font-family:'Prata', Georgia, serif; font-size:72px; line-height:1; color:var(--flieder);
}
.bewertung blockquote p{ font-size:15.5px; line-height:1.65; color:var(--text); }
.bewertung figcaption{ margin-top:22px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.bewertung-name{ font-family:'Prata', Georgia, serif; font-size:21px; color:var(--navy); }
.bewertung time{ font-size:12px; letter-spacing:0.08em; color:var(--text-2); }
.sterne{ color:var(--gold-auf-weiss); letter-spacing:2px; font-size:14px; }
.bewertungen-hinweis{ text-align:center; color:rgba(255,255,255,0.8); font-size:14px; margin-top:28px; }

/* ---------- Standorte und Galerie ---------- */
.standorte-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:48px; align-items:center; }
.standorte-grid > *{ min-width:0; }
@media (max-width:900px){ .standorte-grid{ grid-template-columns:1fr; } }
.karte{ background:#fff; padding:40px 36px; box-shadow:var(--schatten); border-radius:2px; }
.karte h3{ font-size:30px; margin-bottom:20px; }
.karte .check-list li{ font-size:15.5px; }
.galerie{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin-top:40px; }
.standorte-grid .galerie{ grid-template-columns:1fr 1fr; margin-top:0; }
.galerie figure{ min-width:0; }
.galerie img{ width:100%; aspect-ratio:652/800; object-fit:cover; border-radius:4px; }
.galerie figcaption{ font-size:13.5px; color:var(--text-2); margin-top:8px; }
@media (max-width:760px){ .galerie{ grid-template-columns:1fr 1fr; } }

/* ---------- Angebote ---------- */
.angebote h2{ font-size:clamp(28px, 3.2vw, 40px); margin-bottom:16px; }
.angebote p{ margin-bottom:20px; color:var(--text-2); }
.angebote .check-list{ margin-top:24px; }

/* ---------- Team ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:32px; }
@media (max-width:900px){ .team-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .team-grid{ grid-template-columns:1fr; max-width:420px; margin:0 auto; } }
.team-karte{ background:#fff; text-align:center; }
.team-karte img{ width:100%; aspect-ratio:420/554; object-fit:cover; }
.team-text{ padding:24px 12px 8px; }
.team-funktion{ display:block; font-size:12px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--pflaume); margin-bottom:6px; }
.team-karte h3{ font-size:26px; margin-bottom:14px; }
.team-karte ul{ list-style:none; }
.team-karte li{ font-size:14.5px; color:var(--text-2); line-height:1.5; margin-bottom:8px; }
.team .mehr{ margin-top:40px; }

/* ---------- Verweiskarten ---------- */
.verweise{ background:var(--paper-2); }
.verweise-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
@media (max-width:900px){ .verweise-grid{ grid-template-columns:1fr; } }
.verweis{
  display:flex; flex-direction:column; gap:12px; background:#fff; padding:34px 30px;
  border:1px solid var(--line); border-radius:2px; text-decoration:none;
  transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.verweis:hover{ transform:translateY(-3px); box-shadow:var(--schatten); border-color:var(--flieder); }
.verweis h3{ font-size:24px; }
.verweis p{ color:var(--text-2); font-size:15.5px; flex-grow:1; }
.verweis .mehr{ margin-top:0; }

/* ---------- Kostenbausteine ---------- */
.bausteine{ list-style:none; counter-reset:baustein; display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
@media (max-width:960px){ .bausteine{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .bausteine{ grid-template-columns:1fr; } }
.bausteine li{ counter-increment:baustein; background:var(--paper-2); border:1px solid var(--line); padding:30px 26px; border-radius:2px; }
.bausteine li::before{
  content:counter(baustein, decimal-leading-zero); display:inline-flex;
  width:40px; height:40px; border-radius:50%; background:var(--blue); color:#fff;
  font-weight:700; font-size:13px; align-items:center; justify-content:center; margin-bottom:16px;
}
.bausteine h3{ font-size:21px; margin-bottom:10px; }
.bausteine p{ font-size:15.5px; color:var(--text-2); }

/* ---------- FAQ ---------- */
.faq-list{ margin-top:8px; }
details{ border-bottom:1px solid var(--line); padding:22px 0; }
details:first-child{ border-top:1px solid var(--line); }
summary{
  cursor:pointer; font-family:'Prata', Georgia, serif; font-size:20px; color:var(--navy);
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:20px;
}
summary::-webkit-details-marker{ display:none; }
summary::after{
  content:"+"; font-family:'Manrope', system-ui, sans-serif; font-size:24px; font-weight:400;
  color:var(--blue); flex-shrink:0; transition:transform 0.2s ease;
}
details[open] summary::after{ transform:rotate(45deg); }
.faq-antwort p{ margin-top:14px; color:var(--text-2); font-size:16px; max-width:760px; }
.faq-mehr{ text-align:center; margin-top:32px; }

/* ---------- Kontakt ---------- */
.kontakt{ background:var(--paper-2); }
.kontakt-panel{ display:grid; grid-template-columns:0.9fr 1.1fr; background:#fff; box-shadow:var(--schatten); }
.kontakt-panel > *{ min-width:0; }
@media (max-width:900px){ .kontakt-panel{ grid-template-columns:1fr; } }
.kontakt-info{ background:var(--hellblau); padding:52px 48px; display:flex; flex-direction:column; gap:18px; }
.kontakt-info h2{ font-size:clamp(28px, 3vw, 36px); }
.kontakt-daten{ display:grid; grid-template-columns:auto 1fr; gap:8px 18px; margin-top:6px; font-size:16px; }
.kontakt-daten dt{ color:var(--text-2); }
.kontakt-daten dd{ font-weight:700; color:var(--navy); }
.kontakt-daten a{ text-decoration:none; }
.kontakt-daten a:hover{ color:var(--blue); }
.slogan{ margin-top:auto; padding-top:24px; font-size:13px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--navy); }
.kontakt-form{ padding:52px 48px; }
@media (max-width:600px){ .kontakt-info, .kontakt-form{ padding:36px 22px; } }

.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-size:13.5px; font-weight:700; color:var(--navy); margin-bottom:6px; }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:13px 14px; border:1.5px solid var(--line); border-radius:2px;
  font-family:inherit; font-size:16px; color:var(--text); background:#FBFBFF;
  transition:border-color 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ border-color:var(--blue); outline:none; }
/* Tastaturfokus braucht einen sichtbaren Ring (WCAG 2.4.7). */
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
.form-field textarea{ resize:vertical; min-height:130px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:520px){ .form-row{ grid-template-columns:1fr; } }
.form-consent{ display:flex; gap:12px; align-items:flex-start; font-size:13.5px; line-height:1.55; color:var(--text-2); margin:20px 0 24px; cursor:pointer; }
.form-consent input{ margin-top:3px; width:18px; height:18px; flex-shrink:0; accent-color:var(--blue); }
.form-consent a{ color:var(--blue); }
.form-note{ font-size:13px; color:var(--text-2); margin-top:12px; }
.form-status{ padding:14px 16px; border-radius:2px; font-size:15px; margin-bottom:20px; display:none; }
.form-status.show{ display:block; }
.form-status.success{ background:#E7F4EC; color:var(--green); border:1px solid #BFE3CC; }
.form-status.error{ background:#FBE9E9; color:#B3261E; border:1px solid #F3C6C6; }
/* Honeypot: aus dem Bild geschoben statt display:none. */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ---------- Rechtstexte ---------- */
.recht{ padding-top:64px; }
.legal-content{ max-width:820px; }
.legal-content h2{ font-size:24px; margin-top:44px; margin-bottom:14px; }
.legal-content h2:first-child{ margin-top:0; }
.legal-content h3{ font-size:19px; margin-top:26px; margin-bottom:10px; }
.legal-content p{ font-size:16px; color:var(--text); margin-bottom:14px; }
.legal-content ul{ margin:0 0 16px 22px; font-size:16px; }
.legal-content li{ margin-bottom:8px; }
.legal-content a{ color:var(--blue); }
.recht-hinweis{ background:var(--flieder-2); border-left:4px solid var(--blue); padding:14px 18px; margin-bottom:36px; font-size:15px; }
.recht-hinweis a{ color:var(--blue); }
.company-box{ background:var(--paper-2); border:1px solid var(--line); padding:22px 26px; margin-bottom:24px; border-radius:2px; }
.company-box p{ margin-bottom:4px; color:var(--navy); }
.company-box .muted{ color:var(--text-2); font-size:15px; margin-top:8px; }

/* ---------- 404 und Danke ---------- */
.error-page{ min-height:56vh; display:flex; align-items:center; }
.error-code{ font-family:'Prata', Georgia, serif; font-size:clamp(80px, 14vw, 150px); color:var(--flieder); line-height:0.9; margin-bottom:12px; }
.error-page h1{ font-size:clamp(28px, 3.6vw, 42px); margin-bottom:14px; }
.error-page p.lede{ color:var(--text-2); font-size:18px; max-width:560px; margin-bottom:30px; }
.error-page p.lede a{ color:var(--blue); font-weight:700; white-space:nowrap; }
.error-links{ display:flex; flex-direction:column; gap:10px; }
.error-links a{ color:var(--blue); font-weight:700; text-decoration:none; }
.error-links a:hover{ text-decoration:underline; }

/* ---------- Footer ---------- */
footer{ background:var(--navy); color:rgba(255,255,255,0.78); padding:72px 0 32px; font-size:15px; }
.footer-cols{ display:grid; grid-template-columns:1.2fr 1fr 1fr 1.1fr; gap:40px; margin-bottom:48px; }
@media (max-width:960px){ .footer-cols{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-cols{ grid-template-columns:1fr; gap:32px; } }
.footer-col{ display:flex; flex-direction:column; gap:10px; align-items:flex-start; min-width:0; }
.footer-marke img{ width:190px; height:auto; }
.footer-slogan{ font-size:12.5px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--flieder); margin-top:6px; }
.footer-h{ font-family:'Prata', Georgia, serif; font-size:19px; color:#fff; margin-bottom:6px; }
.footer-col a{ color:rgba(255,255,255,0.86); text-decoration:none; line-height:1.45; }
.footer-col a:hover{ color:#fff; text-decoration:underline; }
.footer-kv{ display:flex; flex-direction:column; line-height:1.4; }
.footer-kv > span:first-child{ font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:rgba(255,255,255,0.55); }
.footer-kv a, .footer-kv{ color:#fff; }
.footer-addr{ line-height:1.6; margin-top:6px; color:rgba(255,255,255,0.7); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.14); font-size:14px; }
/* Der feste Chat-Knopf (rechts unten) lag am Seitenende ueber
   "Cookie-Einstellungen" — dem einzigen Weg, eine Einwilligung zu
   widerrufen. Nur wenn das Widget den Knopf wirklich gebaut hat. */
body:has(> .chat-knopf) .footer-bottom{ padding-right:72px; }
@media (max-width:600px){ body:has(> .chat-knopf) .footer-bottom{ padding-right:60px; } }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-links a{ color:rgba(255,255,255,0.78); text-decoration:none; }
.footer-links a:hover{ color:#fff; text-decoration:underline; }
.footer-links .footer-linkbtn{ background:none; border:0; padding:0; margin:0; cursor:pointer; font:inherit; color:rgba(255,255,255,0.78); }
.footer-links .footer-linkbtn:hover{ color:#fff; text-decoration:underline; }

/* ---------- Cookie-Banner (nur mit GA_MESS_ID) ---------- */
#cookie-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:100;
  background:var(--navy); color:#fff; padding:22px 28px;
  display:none; align-items:center; justify-content:space-between; gap:20px 32px; flex-wrap:wrap;
  box-shadow:0 -8px 24px rgba(0,0,0,0.18);
}
#cookie-banner.show{ display:flex; }
/* consent.js setzt html.banner-offen schon im <head>, wenn noch nicht
   gewaehlt wurde — so steht das Banner ab dem ersten Bild da. Kam es erst
   mit main.js am Ende des <body>, war sein Text auf langsamen Telefonen
   das groesste spaet gezeichnete Element und bestimmte den LCP. */
html.banner-offen #cookie-banner{ display:flex; }
/* Solange das Banner offen ist, verdeckte es den Tastaturfokus am unteren
   Rand (WCAG 2.4.11). main.js setzt html.banner-offen und --banner-h:
   scroll-padding schiebt fokussierte Elemente ueber das Banner, das
   padding-bottom laesst auch die letzten Footer-Links so weit scrollen.
   Der Chat-Knopf laege ganz darunter — er wartet, bis gewaehlt ist. */
html.banner-offen{ scroll-padding-bottom:calc(var(--banner-h, 0px) + 12px); }
html.banner-offen body{ padding-bottom:var(--banner-h, 0px); }
html.banner-offen .chat-knopf{ visibility:hidden; }
.cookie-text{ flex:1 1 520px; max-width:760px; }
.cookie-titel{ font-family:'Prata', Georgia, serif; font-size:19px; color:#fff; margin-bottom:6px; }
#cookie-banner p{ font-size:14px; line-height:1.55; color:rgba(255,255,255,0.88); margin:0; }
#cookie-banner a{ color:#fff; }
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
/* Alle drei Knoepfe gleich: Ablehnen darf nicht schwaecher aussehen als
   Zustimmen (Gleichwertigkeit der Wahl, vgl. DSK-Orientierungshilfe). */
.btn-cookie{
  background:#fff; color:var(--navy); border:1.5px solid #fff; padding:12px 18px;
  font-family:inherit; font-weight:700; font-size:13px; letter-spacing:0.04em;
  cursor:pointer; border-radius:2px;
}
.btn-cookie:hover{ background:var(--flieder); border-color:var(--flieder); }
/* Auf dem Telefon nahm der Banner bei 320 px 450 von 700 px Hoehe ein.
   Knoepfe nebeneinander mit Umbruch, Text etwas kleiner; bei sehr niedrigen
   Bildschirmen (Querformat) scrollt der Banner in sich. */
@media (max-width:600px){
  #cookie-banner{ padding:16px; gap:12px; max-height:85vh; overflow-y:auto; }
  .cookie-titel{ font-size:17px; margin-bottom:4px; }
  #cookie-banner p{ font-size:13px; line-height:1.5; }
  .cookie-actions{ width:100%; gap:8px; }
  .btn-cookie{ flex:1 1 auto; padding:11px 10px; font-size:12.5px; }
}

/* ---------- KI-Assistent (site_config.KI_CHAT) ----------
   Das Widget kommt aus dem ai-chat-Repo (httpdocs/chat/) und baut sein HTML
   selbst; hier steht nur die Gestaltung, Klassenpraefix "chat". z-index 40:
   unter Kopfzeile (50), Mobilmenue (49) und Cookie-Banner (100) — das Banner
   wird zuerst beantwortet, und das offene Menue deckt die Sprechblase zu. */
.chat-knopf{
  position:fixed; right:24px; bottom:24px; z-index:40;
  width:58px; height:58px; border:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--blue); color:#fff; cursor:pointer;
  box-shadow:0 8px 24px rgba(44,4,68,0.28);
  transition:background .18s ease, transform .18s ease;
}
.chat-knopf:hover{ background:var(--pflaume); transform:translateY(-2px); }
/* Der Knopf schwebt ueber hellen wie dunklen Flaechen (Hero, Footer) — ein
   einfarbiger Rahmen waere auf einer davon unsichtbar. Doppelring innen
   weiss, aussen Navy. Die transparente outline bleibt fuer den
   Kontrastmodus von Windows, der keinen box-shadow zeichnet. */
.chat-knopf:focus-visible{
  outline:2px solid transparent; outline-offset:2px;
  box-shadow:0 0 0 3px #fff, 0 0 0 6px var(--navy);
}
/* Statt des Emojis, das das Widget sonst zeigt (data-chat-icon-klasse in
   shell.py): ein Emoji sieht auf jedem System anders aus. */
.chat-symbol{
  display:block; width:26px; height:26px; background:currentColor;
  -webkit-mask:url(/assets/images/chat.svg) center/contain no-repeat;
          mask:url(/assets/images/chat.svg) center/contain no-repeat;
}
.chat-fenster{
  position:fixed; right:24px; bottom:96px; z-index:40;
  display:flex; flex-direction:column;
  width:390px; max-width:calc(100vw - 32px);
  /* Unterhalb der Kopfzeile bleiben: sie liegt mit z-index 50 darueber und
     wuerde sonst Titel und KI-Hinweis verdecken. */
  height:560px; max-height:calc(100vh - var(--kopf-h) - 120px);
  max-height:calc(100dvh - var(--kopf-h) - 120px);
  background:#fff; border:1px solid var(--line); border-radius:4px;
  box-shadow:var(--schatten); overflow:hidden;
  font-size:15px; line-height:1.55;
}
/* [hidden] setzt nur display:block zurueck; ein Flex-Container ignoriert
   das Attribut und stuende dauerhaft offen. */
.chat-fenster[hidden]{ display:none; }
/* Der Kopf traegt die Kennzeichnung nach Art. 50 AI Act und scrollt nicht
   weg — nicht leeren, nicht ausblenden. */
.chat-kopf{
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:2px 8px;
  padding:14px 12px 14px 18px; background:var(--navy); color:#fff;
}
.chat-titel{ font-family:'Prata', Georgia, serif; font-size:18px; line-height:1.3; color:#fff; }
.chat-hinweis{ grid-column:1; font-size:12.5px; line-height:1.4; color:rgba(255,255,255,0.88); }
.chat-zu{
  grid-row:1 / span 2; grid-column:2; width:38px; height:38px; border:0; border-radius:2px;
  background:none; color:#fff; font-size:26px; line-height:1; cursor:pointer;
}
.chat-zu:hover{ background:rgba(255,255,255,0.12); }
.chat-zu:focus-visible{ outline:2px solid #fff; outline-offset:1px; }
.chat-liste{
  flex:1; display:flex; flex-direction:column; gap:10px;
  padding:16px; overflow-y:auto; background:var(--paper-2);
}
.chat-blase{
  max-width:88%; padding:10px 13px; border-radius:4px;
  /* Das Modell setzt Absaetze mit Zeilenumbruechen. */
  white-space:pre-wrap; overflow-wrap:anywhere;
}
.chat-blase a{ color:var(--blue); text-decoration:underline; }
.chat-user{ align-self:flex-end; background:var(--blue); color:#fff; }
.chat-user a{ color:#fff; }
.chat-assistant{ align-self:flex-start; background:#fff; color:var(--text); border:1px solid var(--line); }
.chat-wartet{ align-self:flex-start; color:var(--text-2); font-style:italic; }
.chat-fehler{ background:#FDEDED; color:#8A1F1F; border-color:#F5C6C6; }
.chat-aktionen{ display:flex; flex-wrap:wrap; gap:8px; }
.chat-aktion{
  padding:8px 12px; border:1.5px solid var(--blue); border-radius:2px;
  background:#fff; color:var(--blue); font:inherit; font-size:13.5px; font-weight:600;
  line-height:1.35; text-align:left; cursor:pointer;
}
.chat-aktion:hover{ background:var(--flieder); }
.chat-form{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background:#fff; }
/* 16 px: darunter zoomt iOS beim Fokus die ganze Seite heran. */
.chat-eingabe{
  flex:1; min-width:0; padding:10px 12px; border:1.5px solid var(--line); border-radius:2px;
  font:inherit; font-size:16px; color:var(--text); background:#fff;
}
.chat-eingabe:focus{ border-color:var(--blue); outline:none; }
/* Wie im Kontaktformular: nur die Randfarbe (1,5 px) war als Fokus zu wenig. */
.chat-eingabe:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
.chat-senden{
  flex:0 0 auto; padding:10px 16px; border:0; border-radius:2px;
  background:var(--blue); color:#fff; font:inherit; font-size:13px; font-weight:700;
  letter-spacing:0.04em; text-transform:uppercase; cursor:pointer;
}
.chat-senden:hover{ background:var(--pflaume); }
.chat-senden:disabled, .chat-eingabe:disabled{ opacity:.55; cursor:not-allowed; }
@media (max-width:600px){
  .chat-knopf{ right:16px; bottom:16px; width:52px; height:52px; }
  .chat-fenster{ left:12px; right:12px; bottom:80px; width:auto; max-width:none; }
}
/* Telefon quer (640x360): unter Kopfzeile und ueber dem Knopf blieben
   160 px Fenster, davon 32 px fuer das Gespraech. Bei wenig Hoehe steht das
   Fenster links neben dem Knopf und reicht von der Kopfzeile bis unten —
   Titel und KI-Hinweis bleiben sichtbar, der Knopf frei. */
@media (max-height:520px){
  .chat-fenster{ top:calc(var(--kopf-h) + 8px); bottom:8px; right:96px; height:auto; max-height:none; }
}
@media (max-height:520px) and (max-width:600px){
  .chat-fenster{ right:80px; }
}

/* ---------- Nur fuer Screenreader und Suchmaschinen ---------- */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0;
}

/* ---------- Skip-Link ---------- */
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--navy); color:#fff; padding:12px 20px;
  font-size:14px; font-weight:700; text-decoration:none;
}
.skip-link:focus{ left:0; }
