/* „Projekt mieten oder kaufen“: Angebotsleiste, Knopf im Fuss, Formularseite.
   Laura 13.11.2026: Wortlaut und Aufbau auf allen Websites gleich, NUR Schriften und Farben an die Website anpassen.
   → Nur die Variablen im Block :root unten ändern (auf die Farb- und Schrift-Variablen der Website zeigen lassen).
   Alles darunter unverändert übernehmen. Ecken (--anfrage-ecke) folgen den Ecken der Website.
   Ausserdem in der Website: Kopfzeile `top` = Höhe der Leiste (36px), `scroll-padding-top` = Leiste + Kopfzeile + etwa 14px,
   und img { height: auto }. Ist die Kopfzeile fest (position: fixed, z. B. über einer Animation): .angebot-leiste
   { position: fixed; left: 0; right: 0; top: 0 }, .kopf { top: 36px }, erster heller Abschnitt oben + 36px.
   Platzhalter (Adresse, Telefon, E-Mail) bekommen KEINE eigene Gestaltung: nur der Text wird ausgetauscht. Abgenommen von Laura am 13.11.2026. */

:root {
  /* Augenarzt Berlin (18.11.2026): Werte aus assets/css/tokens.css; Leiste dunkel wie der Fuß (Laura 18.11.2026) */
  /* Farben: Leiste (dunkel) */
  --anfrage-leiste-grund: #103f3e;     /* --color-bg-dark (Fuß) */
  --anfrage-leiste-text: var(--color-on-dark-soft);   /* #eef4f6 auf #103f3e: 10.5 : 1 (vorher #c7d6e5, Laura 18.11.2026: zu dunkel) */
  --anfrage-leiste-hervor: #ffffff;    /* „Demo-Website“ und Link; 11.6 : 1 */
  /* Farben: Formular (hell) */
  --anfrage-akzent: #135252;           /* --color-primary; auf Weiß 8.9 : 1 */
  --anfrage-akzent-hell: #e3efe9;      /* --color-primary-light */
  --anfrage-text: #143230;             /* --color-text */
  --anfrage-text-2: #4a615c;           /* --color-text-soft; auf Weiß 6.7 : 1 */
  --anfrage-rand: var(--color-muted);  /* Feldrand #5a6e65 auf Weiß 5,4 : 1 */
  --anfrage-linie: #dbe7e0;            /* --color-border */
  --anfrage-flaeche: #ffffff;
  --anfrage-ok-grund: #e7f0e9;  --anfrage-ok-text: #2f5d50;
  --anfrage-fehler-grund: #fde9de;  --anfrage-fehler-kante: #f0a787;
  /* Schriften und Ecken */
  --anfrage-schrift: var(--font-sans);
  --anfrage-schrift-titel: var(--font-heading);
  --anfrage-ecke: var(--radius-sm);    /* 8px */
  /* Breite und Seitenrand der Leiste wie .container */
  --breite: calc(var(--container) - 2 * var(--space-5));
  --seite: var(--space-5);
}

/* ---------- Angebotsleiste: dünne Zeile über der Kopfzeile, bleibt immer stehen ---------- */
.angebot-leiste { position: sticky; top: 0; z-index: 41; padding: 0 var(--seite, 24px); background: var(--anfrage-leiste-grund); color: var(--anfrage-leiste-text); font: 400 .84rem/1.3 var(--anfrage-schrift); }
.angebot-innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--breite, 1180px); min-height: 36px; margin: 0 auto; padding: 4px 0; }
.angebot-innen p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.angebot-leiste strong { color: var(--anfrage-leiste-hervor); font-weight: 600; }
/* Link mit Pfeil, ohne Rahmen: Text unterstrichen, Pfeil nie */
.angebot-knopf { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; color: var(--anfrage-leiste-hervor); font-weight: 600; font-size: .84rem; text-decoration: none; }
.angebot-knopf > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.angebot-knopf > span:last-child { transition: transform .2s ease; }
.angebot-knopf:hover { color: var(--anfrage-leiste-hervor); }
.angebot-knopf:hover > span:last-child { transform: translateX(3px); }
@media (max-width: 600px) {
  .angebot-leiste { font-size: .8rem; }
  .angebot-jetzt { display: none; }
  .angebot-knopf { font-size: .8rem; }
}
@media (max-width: 420px) {
  .angebot-satz { display: none; }   /* schmale Handys: nur „Demo-Website“ und der Link, eine Zeile */
}

/* ---------- Knopf im Fuss ---------- */
/* Genauer Selektor (footer a.…): Fussregeln wie `.fuss a { color }` oder `.fuss-spalten a { padding: 6px 0 }` überstimmen sonst
   Farbe und Innenabstand des Knopfs (beides ist passiert, 13.11.2026). Textfarbe = Schrift des Hauptknopfs der Website. */
footer a.fuss-anfrage { display: inline-flex; align-items: center; min-height: 40px; margin-top: 18px; padding: 0 16px; }

/* ---------- Formularseite projekt-anfragen/ ---------- */
.anfrage-formular { display: grid; gap: 26px; max-width: 720px; margin: 0 auto; padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--anfrage-linie); border-radius: calc(var(--anfrage-ecke) + 6px); background: var(--anfrage-flaeche); color: var(--anfrage-text); font-family: var(--anfrage-schrift); }
.auswahl, .angaben { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.auswahl legend, .angaben legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font: 600 1.15rem/1.3 var(--anfrage-schrift-titel); color: var(--anfrage-text); }
.angaben { padding-top: 24px; border-top: 1px solid var(--anfrage-linie); }
.auswahl-optionen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--anfrage-rand); border-radius: var(--anfrage-ecke); background: var(--anfrage-flaeche); font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.option input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--anfrage-akzent); cursor: pointer; }
.option:has(input:checked) { border-color: var(--anfrage-akzent); background: var(--anfrage-akzent-hell); box-shadow: inset 0 0 0 1px var(--anfrage-akzent); }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 600; font-size: .95rem; }
.feld .optional { color: var(--anfrage-text-2); font-weight: 400; }
.feld input { width: 100%; padding: 12px 14px; border: 1px solid var(--anfrage-rand); border-radius: var(--anfrage-ecke); background: var(--anfrage-flaeche); color: var(--anfrage-text); font: inherit; }
.feld input:focus { border-color: var(--anfrage-akzent); outline: 2px solid var(--anfrage-akzent-hell); }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feld-reihe.plz-ort { grid-template-columns: 8.5em 1fr; }
.feld-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.anfrage-formular .knopf { justify-self: start; }   /* Knopf im Stil der Website (Hauptknopf) */
.anfrage-datenschutz { margin: 0; color: var(--anfrage-text-2); font-size: .88rem; }
.anfrage-meldung { margin: 0; padding: 12px 16px; border-radius: var(--anfrage-ecke); font-weight: 500; }
.anfrage-meldung.laeuft { background: var(--anfrage-akzent-hell); color: var(--anfrage-text); }
.anfrage-meldung.ok { background: var(--anfrage-ok-grund); color: var(--anfrage-ok-text); border-left: 3px solid var(--anfrage-ok-text); }
.anfrage-meldung.fehler { background: var(--anfrage-fehler-grund); color: var(--anfrage-text); border-left: 3px solid var(--anfrage-fehler-kante); }
@media (max-width: 600px) {
  .feld-reihe { grid-template-columns: 1fr; }
  .anfrage-formular .knopf { justify-self: stretch; }
}


/* ==========================================================================
   Anpassungen nur für Augenarzt Berlin (18.11.2026)
   ========================================================================== */

/* Absätze auf dunklem Grund: base.css färbt jedes <p> dunkel (var(--color-text-soft)). In Leiste und Fuß stand dadurch
   dunkler Text auf dunklem Grund, nur 1,75 : 1 (gemessen 18.11.2026, Laura: „zu dunkel, nicht barrierefrei“).
   Hier erben die Absätze die helle Schrift ihres Bereichs (#eef4f6 auf #103f3e: 10,5 : 1). */
.angebot-leiste p, .site-footer p, .site-footer ul, .site-footer ol { color: inherit; }   /* auch Listen: base.css färbt ul/ol dunkel */

/* Leiste über der mitlaufenden Kopfzeile (Anleitung Abschnitt 5: sticky) */
.angebot-leiste { z-index: 101; }
.site-header { top: 36px; }
html { scroll-padding-top: calc(36px + var(--header-h) + 14px); }
/* Handy-Menü hängt unter Leiste und Kopfzeile */
@media (max-width: 940px) {
  .nav { inset: calc(36px + var(--header-h)) 0 auto 0; }
}
img { height: auto; }

/* Knopf im Fuß: genauer Selektor, sonst überstimmt `.site-footer a { color }` die Knopffarbe (Anleitung 9.0) */
footer a.fuss-anfrage { color: var(--color-primary); }
footer a.fuss-anfrage:hover { color: var(--color-primary-dark); }
.footer-bottom .footer-demo strong { color: #fff; font-weight: 600; }
/* Unterste Fußzeile: links Copyright, rechts Demo-Zeile mit Knopf (Laura 18.11.2026) */
.footer-bottom { align-items: center; }
/* Demo-Zeile rechts, Knopf darunter (Laura 18.11.2026: „setze doch den Button unter die Schrift!“) */
.footer-bottom { align-items: flex-start; }
.footer-demo-gruppe { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3);
  margin-left: auto; text-align: right; }
@media (max-width: 760px) { .footer-demo-gruppe { align-items: flex-start; margin-left: 0; text-align: left; } }
footer .footer-demo-gruppe a.fuss-anfrage { margin-top: 0; }

/* „Cookie-Einstellungen“ im Fuß sieht aus wie die Links daneben */
.site-footer .fuss-cookie { padding: 0; border: 0; background: none; color: var(--color-on-dark-soft); font: inherit; cursor: pointer; }
.site-footer .fuss-cookie:hover { color: #fff; }

/* Social-Symbole ohne Profil: gleiche Kästchen wie vorher, nur nicht anklickbar */
.footer-social span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.18); color: var(--color-on-dark-soft); }
.footer-social span svg { width: 18px; height: 18px; }

/* Cookie-Fenster (Anhang A): unten mittig, drei gleichwertige Knöpfe */
.einwilligung { position: fixed; left: 50%; bottom: var(--space-4); z-index: 1000; transform: translateX(-50%);
  width: min(560px, calc(100% - 2 * var(--space-4))); max-height: calc(100vh - 2 * var(--space-4)); overflow-y: auto;
  padding: var(--space-6); background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.einwilligung[hidden] { display: none; }
.einwilligung:focus { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.einwilligung h2 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.einwilligung p { font-size: var(--fs-sm); color: var(--color-text-soft); }
.einwilligung p a { color: var(--color-primary); text-decoration: underline; }
.einwilligung-kategorien { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); font-size: var(--fs-sm); }
.einwilligung-kategorien input { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; accent-color: var(--color-primary); }
.einwilligung-knoepfe { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
.einwilligung-knoepfe .consent-button { padding: 0.9em 0.8em; }
@media (max-width: 560px) { .einwilligung-knoepfe { grid-template-columns: 1fr; } .einwilligung { padding: var(--space-5); } }
@media print { .einwilligung { display: none !important; } }

/* Platzhalter-Kasten (Terminseite): Schrift vorher #6f9184 auf #e3efe9 nur 2,94 : 1, jetzt Nebentextfarbe 4,62 : 1 */
.ph-box { color: var(--color-muted); }

/* Kontaktseite: das Raster hat drei feste Spalten im style-Attribut und war auf dem Handy 64 px zu breit (18.11.2026).
   Unter 900 px: zwei Spalten, unter 600 px: eine Spalte. !important nötig, weil die Spalten im style-Attribut stehen. */
@media (max-width: 900px) { .kontakt-raster { grid-template-columns: 1fr 1fr !important; } .kontakt-raster > :nth-child(2) { grid-column: 1 / -1; order: 3; } }
@media (max-width: 600px) { .kontakt-raster { grid-template-columns: 1fr !important; } }

/* „Cookie-Einstellungen“ im Fuß: linksbündig wie die Links darüber (Knöpfe zentrieren ihren Text sonst) */
.site-footer .fuss-cookie { text-align: left; }

/* Der Platzhalter „Hier könnte Ihre Nummer stehen“ ist als Knopf (Großbuchstaben, ohne Umbruch) viel länger als die
   frühere Nummer (18.11.2026 gemessen):
   - Kopfzeile: unter 1200 px ragte sie bis zu 184 px heraus → der Telefon-Knopf erscheint erst ab 1200 px
     (unter 940 px war er schon vorher ausgeblendet).
   - Handy: Knöpfe mit 411 px Breite zogen ganze Rasterspalten mit → Knöpfe dürfen umbrechen. */
@media (max-width: 1199px) { .header-actions .btn--ghost { display: none; } }
@media (max-width: 600px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
.hero__grid > *, .cta-band__inner > * { min-width: 0; }

/* Rasterspalten dürfen schmaler werden als ihr breitester Inhalt (sonst zog eine Tabelle Team- und Leistungsseiten
   auf dem Handy auf 520 px Breite, 18.11.2026). Breite Tabellen scrollen in ihrem Rahmen. */
.split > *, .layout-sidebar > *, .grid > * { min-width: 0; }
.table-wrap { overflow-x: auto; }

/* Schmale Handys: lange Wörter in Überschriften („Makuladegeneration“, „Kinderaugenheilkunde“) werden getrennt statt
   über den Rand zu laufen (18.11.2026: bis 82 px zu breit bei 320 px). */
@media (max-width: 480px) {
  h1, h2, h3, h4 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}

/* Danke-Seite: Knopf mit Luft unter dem Satz (Anhang D2) */
.danke-knoepfe { margin-top: 28px; }

/* ---- Korrekturen aus der Layoutprüfung in 8 Breiten (18.11.2026) ---- */
/* Oberzeile (badge) klebte auf 18 Seiten mit 0 px an der H1 */
.page-hero .badge { margin-bottom: var(--space-3); }
/* Knöpfe über die volle Breite (Seitenspalte): Platzhalter „☎ Hier könnte Ihre Nummer stehen“ ragte ab 1024 px heraus */
.btn--block { white-space: normal; text-align: center; }
/* Große Knöpfe auf dem Handy: weniger Innenabstand, sonst passt „Termin online vereinbaren“ bei 320 px nicht hinein */
@media (max-width: 600px) { .btn--lg { padding-inline: 1em; letter-spacing: .03em; } }
/* Mehrere Knöpfe in einem Absatz: beim Umbrechen Abstand auch nach unten (Team-Profile, 404) */
p:has(> .btn) { display: flex; flex-wrap: wrap; gap: var(--space-3); }
/* Senkrechter Hinweis auf dem Startseitenbild ragte 2 px aus seinem Kasten */
.hero-figure__claim { padding: 2px; }
/* Lange Wörter in schmalen Spalten (Team-Karten ab 1024 px, Fragen und Absätze bei 320 px) trennen statt überlaufen */
.grid--4 p { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 480px) { p, li, summary { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; } }
/* Termin-Kasten auf dem Handy: 64 px Innenabstand ließen dem Knopf bei 320 px nur 144 px (Text dreizeilig, ragte heraus) */
@media (max-width: 600px) { .cta-banner { padding-inline: var(--space-5); } }
/* Senkrechter Hinweis: bei vertical-rl bestimmt die Zeilenhöhe die Breite des Kastens */
.hero-figure__claim { line-height: 1.35; }
/* Cookie-Fenster: „Auswahl speichern“ brach zweizeilig um, die beiden anderen nicht → alle drei einzeilig */
@media (min-width: 561px) { .einwilligung-knoepfe .consent-button { font-size: var(--fs-xs); white-space: nowrap; padding-inline: .6em; } }
