/* Captain Wasserschadenhilfe — Demo-Website
   Blaue Farbwelt, responsive, statisch. Stand 2026-07-13 */

:root {
  --navy: #0a2a4a;
  --navy-dark: #061c33;
  --blue: #1573d6;
  --blue-hover: #0f5cb0;
  --sky: #eaf3fc;
  --cyan: #37b6e2;
  --text: #22303e;
  --muted: #5b6b7b;
  --line: #d9e4ef;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 42, 74, 0.10);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Kein horizontales Scrollen — clip statt hidden, damit position:sticky
   im Header nicht bricht (hidden als Fallback für ältere Browser) */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 800; overflow-wrap: break-word; hyphens: auto; }
p, a, li { overflow-wrap: break-word; }
.split > *, .contact-grid > *, .grid > * { min-width: 0; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .6em; }
h3 { font-size: 1.15rem; }

.kicker {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .8em;
}

section { padding: 72px 0; }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfe0f2;
  font-size: .85rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .notruf { color: #7fd4f5; font-weight: 700; }
.topbar .topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar .btn-melden {
  background: linear-gradient(-45deg, #ffa63d, #ff3d77, #338aff, #3cf0c5);
  background-size: 600% 600%;
  animation: anfrage-glow 16s linear infinite;
  color: #fff !important;
  padding: 3px 12px; border-radius: 7px;
  font-weight: 700; font-size: .82rem; line-height: 1.5;
  white-space: nowrap;
}
.topbar .btn-melden:hover { filter: brightness(1.08); }
@keyframes anfrage-glow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar .btn-melden { animation: none; }
}

/* ---------- Header / Nav ---------- */
.site-top { position: sticky; top: 0; z-index: 50; }
header.site {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Nur vertikales Padding setzen — das horizontale kommt vom .wrap (20px),
   sonst kleben Logo/Inhalt am Bildschirmrand */
.navbar { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; color: var(--navy); font-weight: 800; }
.brand .brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 640px) { .brand .brand-logo { height: 38px; } }
@media (max-width: 380px) { .brand .brand-logo { height: 32px; } }

nav.main ul { list-style: none; display: flex; gap: 6px; align-items: center; }
nav.main a {
  display: block; padding: 9px 13px; border-radius: 9px;
  color: var(--navy); font-weight: 650; font-size: .95rem;
}
nav.main a:hover, nav.main a.active { background: var(--sky); color: var(--blue-hover); }
nav.main .has-sub { position: relative; }
nav.main .sub {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; display: none;
}
nav.main .has-sub:hover .sub, nav.main .has-sub:focus-within .sub { display: block; }
nav.main .sub a { padding: 9px 12px; }

.btn {
  display: inline-block; background: var(--blue); color: #fff !important;
  padding: 11px 22px; border-radius: 10px; font-weight: 700;
  border: 0; cursor: pointer; font-size: .98rem;
  /* Ohne diese Zeile erbt der Button die 1.65 des Fliesstextes: bei ~15,7px
     Schrift sind das ~26px Zeilenkasten und der Button wird 50px hoch,
     obwohl nur 12px Polster gesetzt sind. */
  line-height: 1.25;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--navy) !important; border: 2px solid var(--navy); }
.btn.ghost:hover { background: var(--sky); }
.btn.light { background: #fff; color: var(--navy) !important; }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 9px;
}
.burger span { display: block; width: 22px; height: 2.5px; background: var(--navy); margin: 5px auto; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 0;
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
}
.hero .bg {
  position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%;
  opacity: .38;
}
.hero .inner { position: relative; padding-top: 110px; padding-bottom: 120px; }
.hero .hero-h1 {
  margin: 0 0 14px; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan);
  /* eigene Zeilenhoehe, sonst erbt die Zeile die 1.65 des Fliesstextes */
  line-height: 1.35;
  /* h1 erbt hyphens:auto - in dieser gesperrten Versalzeile trennt das
     Ortsnamen mitten durch ("FÜR BER-/LIN"). Lieber frueher umbrechen. */
  hyphens: manual;
}
/* Nur das Money-Keyword groesser, der Rest der Zeile bleibt klein.
   em statt rem: waechst automatisch mit, falls die Zeile mal skaliert. */
.hero .hero-h1 .hl { font-size: 1.3em; }
/* Auf sehr schmalen Geraeten passt das Wort in 1.3em nicht mehr in die Zeile
   und bricht am Bindestrich zu "WASSERSCHADEN-NOT-/DIENST" um. Lieber etwas
   kleiner als das Money-Keyword zerrissen. Kein nowrap: das wuerde bei
   overflow-x: clip rechts abgeschnitten statt umgebrochen. */
@media (max-width: 400px) {
  .hero .hero-h1 .hl { font-size: 1.12em; }
}
.hero .triple { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; color: #fff; letter-spacing: -.01em; line-height: 1.1; }
.hero .triple .dot { color: var(--cyan); }
.hero p.sub { margin: 18px 0 30px; font-size: 1.15rem; max-width: 640px; color: #d7e6f5; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust { margin-top: 38px; display: flex; gap: 26px; flex-wrap: wrap; color: #bcd3ea; font-size: .92rem; font-weight: 600; }
.hero .trust b { color: #fff; }

/* ---------- Karten / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 3px 14px rgba(10,42,74,.05);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .media { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--sky), #cfe4f8); position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media img.missing { display: none; }
.card .media .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.6rem; color: var(--blue); opacity: .55;
}
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card .body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .more { font-weight: 700; font-size: .92rem; }

/* ---------- Abschnitte ---------- */
.section-alt { background: var(--sky); }
.section-navy { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #d7e6f5; }
.section-navy h2, .section-navy h3 { color: #fff; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split .imgbox { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--sky), #cfe4f8); min-height: 320px; }
/* Groesse/Fuellverhalten kommt jetzt zentral von `.imgbox img` (siehe unten
   bei der KI-Kennzeichnung). Das fruehere height:100% loeste wegen der
   fehlenden definierten Elternhoehe ohnehin nicht auf. */

.checklist { list-style: none; margin-top: 18px; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 900;
}

/* ---------- Kundenstimmen ---------- */
.review { padding: 24px; }
.review .stars { color: #f6b100; letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-size: .95rem; color: var(--text); }
.review .who { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.review .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.review .who small { display: block; color: var(--muted); }
.demo-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 22px; }

/* ---------- Partnerlogos ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.logo-chip {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 18px 26px; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; gap: 10px; font-size: 1.02rem;
  filter: grayscale(.2); opacity: .9;
}
.logo-chip .mark { width: 26px; height: 26px; border-radius: 7px; display: inline-block; }

/* ---------- Zertifikate ---------- */
.certs { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.cert {
  width: 260px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.cert .media { aspect-ratio: 3 / 4; background: linear-gradient(160deg, #f4f0e4, #e8e2cf); position: relative; }
.cert .media img { width: 100%; height: 100%; object-fit: cover; }
.cert .media img.missing { display: none; }
.cert .media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; opacity: .4; }
.cert .body { padding: 14px 16px; font-size: .88rem; color: var(--muted); text-align: center; }

/* ---------- Instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.insta-grid .tile {
  aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--sky), #cfe4f8);
}
.insta-grid .tile img { width: 100%; height: 100%; object-fit: cover; }
.insta-grid .tile img.missing { display: none; }
.insta-grid .tile .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--blue); opacity: .5; }
.insta-handle { text-align: center; margin-top: 20px; font-weight: 700; }
.insta-handle .badge {
  display: inline-block; background: var(--sky); color: var(--blue-hover);
  padding: 4px 12px; border-radius: 999px; font-size: .8rem; margin-left: 10px;
}

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; }
.cta-band p { max-width: 620px; margin: 0 auto 26px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card ul { list-style: none; }
.contact-card li { margin-bottom: 12px; padding-left: 30px; position: relative; }
.contact-card li::before { content: "›"; position: absolute; left: 8px; color: var(--blue); font-weight: 900; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { display: block; font-weight: 650; font-size: .88rem; margin: 12px 0 5px; color: var(--navy); }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; background: #fff;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
form input[type="file"] { padding: 9px 12px; background: #f7fafc; cursor: pointer; }
.form-hint { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
/* Honeypot: für Menschen unsichtbar, für Bots ein Feld zum Ausfüllen */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* DSGVO-Einwilligung */
label.consent {
  display: flex; align-items: flex-start; gap: 10px; font-weight: 400;
  font-size: .86rem; color: var(--navy); margin: 18px 0 4px; line-height: 1.5;
}
label.consent input { width: auto; margin-top: 3px; flex: 0 0 auto; }
label.consent a { color: var(--blue); }

/* ---------- Versicherungs-Trust-Block ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; }
.trust-card b { display: block; font-size: 1.02rem; margin-bottom: 8px; color: var(--navy); }
.trust-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.versicherer-note { margin-top: 22px; color: var(--muted); font-size: .9rem; }
@media (max-width: 780px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ (native details/summary, No-JS-safe) ---------- */
.faq-list { margin-top: 24px; max-width: 820px; }
details.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
details.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 46px 16px 18px; position: relative;
  font-weight: 650; color: var(--navy); font-size: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue); line-height: 1;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .faq-a { padding: 0 18px 18px; color: var(--muted); line-height: 1.6; }
details.faq-item .faq-a p { margin: 0; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-dark); color: #b7c9dc; padding: 56px 0 26px; font-size: .93rem;
}
footer.site h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: #cfe0f2; }
footer.site a:hover { color: #7fd4f5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
/* ---------- Einsatzgebiete (Footer) ---------- */
.einsatz {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px; padding-top: 32px;
}
.einsatz h3 { margin-bottom: 6px; }
.einsatz .hint { font-size: .82rem; color: #7f95ac; margin-bottom: 18px; }
.einsatz-grid { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
.map-svg { width: 100%; height: auto; display: block; }
/* Freigestellte Karte: kein Kasten, kein Hintergrund — Flächen schweben im Footer */
.einsatz-map { width: 100%; max-width: 900px; margin: 0 auto; background: transparent; }
.einsatz-map svg { width: 100%; height: auto; display: block; }
.einsatz-map.leaflet-container { background: transparent; font: inherit; }
/* Label-Kästen: Bezirksname + Ortsteile */
.map-box-wrap { background: none; border: none; }
.map-box {
  transform: translate(-50%, -50%);
  background: rgba(6, 28, 51, .88);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 6px 9px;
  text-align: center;
  min-width: 86px;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.map-box.bb { border-style: dashed; }
.map-box.off {
  background: transparent; border: none; box-shadow: none; min-width: 0; padding: 2px;
}
.map-box .bz {
  display: block; color: #fff; font-weight: 800; font-size: 10.5px;
  letter-spacing: .05em; text-transform: uppercase; line-height: 1.25;
  text-decoration: none; white-space: nowrap;
}
.map-box.off .bz { opacity: .45; font-size: 9.5px; }
a.bz:hover { color: #7fd4f5; }
.map-box .ot { margin-top: 3px; column-count: 2; column-gap: 10px; }
.map-box .ot.single { column-count: 1; }
.map-box .ot a {
  display: block; color: #cfe6f7; font-size: 9px; line-height: 1.5;
  text-decoration: none; white-space: nowrap;
}
.map-box .ot a:hover { color: #7fd4f5; text-decoration: underline; }

.map-svg a rect {
  fill: rgba(21, 115, 214, .28); stroke: #3f7fbf; stroke-width: 1.2;
  rx: 8; transition: fill .15s ease;
}
.map-svg a:hover rect { fill: rgba(55, 182, 226, .55); }
.map-svg a.bb rect { fill: rgba(55, 182, 226, .14); stroke-dasharray: 4 3; }
.map-svg a.bb:hover rect { fill: rgba(55, 182, 226, .4); }
.map-svg text { fill: #e6f1fb; font-size: 13px; font-weight: 650; pointer-events: none; }
.map-svg .legend { font-size: 11px; fill: #7f95ac; font-weight: 500; }
.gebiet-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gebiet-links a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  color: #cfe0f2; font-size: .84rem;
}
.gebiet-links a:hover { background: rgba(55,182,226,.25); color: #fff; }
.gebiet-links a.bb { border-style: dashed; }
@media (max-width: 720px) {
  .einsatz-grid { grid-template-columns: 1fr; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #7f95ac;
}
.hotline-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 16px 18px; border-radius: 12px; margin-top: 14px;
}
.hotline-box b { color: #7fd4f5; font-size: 1.15rem; display: block; }

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #d7e6f5; padding: 64px 0; position: relative; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.page-hero .bg.missing { display: none; }
.page-hero .wrap { position: relative; }
.page-hero.tall { padding: 96px 0; }
.page-hero h1 { color: #fff; }
.page-hero .crumbs { font-size: .85rem; margin-bottom: 14px; color: #9fb8d2; }
.page-hero .crumbs a { color: #cfe0f2; }

/* ---------- KI-Kennzeichnung (2026-08-26) ----------
   Sichtbares Label an jedem KI-generierten Bild. Pflicht aus Art. 50 Abs. 4
   KI-VO fuer Betreiber, sobald ein Bild fuer eine echte Aufnahme gehalten
   werden kann. Die EU-Kommission verlangt Wahrnehmbarkeit "without need for
   any specific technical tools or performing dedicated actions" (FAQ vom
   24.07.2026) - alt-Attribut, title-Tooltip oder Metadaten reichen NICHT.
   Deshalb ein sichtbares Schild direkt am Bild.
   Das Label ist bewusst NICHT aria-hidden: Screenreader sollen es vorlesen.
   Gestaltung nach Bens Entscheidung vom 26.08.2026 (Variante D von vier
   verglichenen): schlichter grauer Text, kein Kasten, kein Hintergrund,
   kein Schatten. */
.ki-tag {
  position: absolute; right: 9px; bottom: 7px; z-index: 2;
  color: #9aa7b4; font-size: 10px; font-weight: 500; line-height: 1.3;
  letter-spacing: .03em; white-space: nowrap;
  pointer-events: none;
  /* Ganz leichter Schlagschatten (50 %): grauer Text allein war auf hellen
     Motiven rechnerisch bei 1,00:1 Kontrast - also unsichtbar. Der Schatten
     zeichnet nur die Glyphenkanten nach, bleibt aber unauffaellig. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
/* Die uebrigen Bild-Container (.card .media, .cert .media, .hero, .page-hero)
   sind schon position:relative - .imgbox nicht. Bewusst OHNE .split davor:
   es gibt .imgbox auch ausserhalb von .split (ueber-uns, bautrockner-mieten),
   dort landete das Label sonst irgendwo auf der Seite.
   display:flex, damit das Bild den Container auch wirklich ausfuellt: bei
   .split .imgbox greift min-height:320px, waehrend height:100% am Bild mangels
   definierter Elternhoehe nicht aufloest - das Bild blieb 265px hoch und das
   Label klebte darunter im Verlauf statt am Bild. */
.imgbox { position: relative; display: flex; }
.imgbox img { align-self: stretch; height: auto; width: 100%; object-fit: cover; }
/* Im Hero liegt das Bild vollflaechig hinter dem Text, Label etwas einruecken */
.hero > .ki-tag, .page-hero > .ki-tag { right: 12px; bottom: 10px; }
/* Laedt das Bild nicht, gibt es auch nichts zu kennzeichnen
   (.missing setzt js/main.js) */
img.missing + .ki-tag { display: none; }


/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 52px 0; }
  .burger { display: block; }
  /* Wichtig: kein backdrop-filter auf dem Header — er würde das
     position:fixed-Menü auf die Header-Höhe beschneiden */
  header.site { backdrop-filter: none; background: #fff; }
  nav.main {
    position: fixed; inset: 0; background: #061c33;
    display: none; z-index: 100; overflow-y: auto;
    padding: 90px 26px 40px;
    -webkit-overflow-scrolling: touch;
  }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: stretch; gap: 2px; }
  nav.main a { color: #fff; font-size: 1.15rem; padding: 13px 10px; }
  nav.main a:hover, nav.main a.active { background: rgba(255,255,255,.08); color: #7fd4f5; }
  nav.main .sub { position: static; display: block; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 18px; }
  nav.main .sub a { font-size: 1rem; color: #bcd3ea; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: #fff; }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: #fff; }
  .burger.open { position: relative; z-index: 101; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .inner { padding-top: 76px; padding-bottom: 84px; }
}

/* ==================================================================
   Mobile Kontakt-Schicht (2026-08-25)
   1) Header: kompakte Icon-Leiste (Anruf / Anfrage) neben dem Burger
   2) Ortszeile rueckt unter die Logo-Zeile und wird hell
   3) Feste Button-Leiste am unteren Rand
   Alles greift erst unter 720px - Desktop bleibt unveraendert.
   ================================================================== */

:root { --emergency: #e11d2e; }

/* --- Header-Icons: auf dem Desktop gibt es die Topbar, dort unnoetig --- */
.hdr-actions { display: none; }
.hdr-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px; color: var(--navy);
}
.hdr-actions a:hover { background: var(--sky); }
.hdr-actions svg { width: 25px; height: 25px; display: block; }

/* --- Ortszeile: Pin nur mobil, Anker nur Desktop ---
   .geo bleibt auf dem Desktop bewusst ein normales inline-Element: der
   Abstand kommt dort weiter aus dem Leerzeichen im Markup, damit die Zeile
   pixelgleich zum Stand vor dem Umbau bleibt. Erst mobil wird flex daraus -
   reine Leerzeichen-Textknoten sind in einem Flex-Container ohnehin egal. */
.geo-pin { display: none; }

/* --- Buttons mit Symbol: Icon IMMER links, Text rechts daneben --- */
.btn.btn-ico, .btn.btn-tel {
  display: inline-flex; align-items: center; gap: 10px;
}
/* 19px, nicht groesser: ein Icon hoeher als der Zeilenkasten (19,6px)
   macht den Button hoeher als einen ohne Icon daneben */
.btn.btn-ico svg, .btn.btn-tel svg { width: 19px; height: 19px; flex: none; }
/* Notruf zusaetzlich im Rot der festen Leiste */
.btn.btn-tel { color: var(--emergency) !important; white-space: nowrap; }
.btn.btn-tel:hover { background: #fff5f5; }

/* --- Feste Button-Leiste: auf dem Desktop komplett aus --- */
.mobile-cta { display: none; }

@media (max-width: 720px) {
  /* 0) Hero-Buttons untereinander auf volle Breite - vorher standen sie
     mit ihren Eigenbreiten (209px und 314px) ausgefranst uebereinander */
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { text-align: center; justify-content: center; }

  /* 1) Icons einblenden, Burger ruecht nach rechts */
  .hdr-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .navbar .burger { margin-left: 4px; }

  /* 2) Ortszeile unter die Logo-Zeile holen (Reihenfolge im HTML bleibt) */
  .site-top { display: flex; flex-direction: column; }
  .site-top header.site { order: 1; border-bottom: 0; }
  .site-top .topbar { order: 2; }
  .topbar {
    background: #fff; color: var(--navy);
    border-bottom: 1px solid var(--line);
    font-size: .95rem; padding: 9px 0;
  }
  .topbar .wrap { flex-wrap: nowrap; justify-content: flex-start; }
  /* Hotline-Text + Anfrage-Button wandern in die untere Leiste */
  .topbar .topbar-right { display: none; }
  .geo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
  .geo-pin { display: block; width: 19px; height: 19px; color: var(--blue); flex: none; }
  .geo-anchor { display: none; }

  /* 3) Feste Leiste unten - faehrt erst nach etwas Scrollen ein, damit sie
     nicht mit den beiden Hero-Buttons zusammen vier Knoepfe ergibt.
     Umschalter ist body.cta-show aus js/main.js. visibility haelt die Links
     im versteckten Zustand aus der Tab-Reihenfolge. */
  .mobile-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(6, 28, 51, .90);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .10);
    transform: translateY(115%);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility 0s .28s;
  }
  body.cta-show .mobile-cta {
    transform: none; opacity: 1; visibility: visible;
    transition: transform .28s ease, opacity .28s ease, visibility 0s 0s;
  }
  .mcta {
    min-width: 0;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 11px 10px; border-radius: 14px;
    font-weight: 800; line-height: 1.2; text-align: left;
  }
  .mcta svg { width: 22px; height: 22px; flex: none; }
  /* Der Anruf-Button nimmt nur, was seine zwei Zeilen brauchen - der Rest
     geht an "Kostenlose Anfrage", damit die Zeile nicht umbricht. */
  .mcta-call { flex: 0 0 auto; background: #fff; color: var(--emergency) !important; }
  .mcta-call small, .mcta-call b { white-space: nowrap; }
  .mcta-mail { flex: 1 1 auto; }
  .mcta-call small { display: block; font-size: .78rem; font-weight: 800; }
  .mcta-call b { display: block; font-size: .95rem; letter-spacing: -.01em; line-height: 1.1; }
  .mcta-mail {
    color: #fff !important;
    background: linear-gradient(-45deg, #ffa63d, #ff3d77, #338aff, #3cf0c5);
    background-size: 600% 600%;
    animation: anfrage-glow 16s linear infinite;
    font-size: .95rem;
    white-space: nowrap;
  }

  /* Footer darf nicht unter der Leiste verschwinden.
     env() muss mitgerechnet werden - die Leiste selbst polstert sich damit.
     Bewusst IMMER, nicht nur bei body.cta-show: haengt die Polsterung am
     Umschalter, fehlen die 80px genau dann, wenn man mit wiederhergestellter
     Scroll-Position oder per Ankerlink unten landet - die Leiste faehrt ein,
     das Dokument waechst erst danach. Der Preis waere Leerraum auf Seiten,
     die zu kurz zum Scrollen sind; davon gibt es hier nachgemessen keine
     einzige (kuerzester Scrollweg deutlich ueber 260px). */
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* Bei offenem Menue muss die Leiste weg - nicht nur verdeckt, sondern
     display:none, sonst springt der Tastatur-Fokus in verdeckte Links.
     .nav-open setzt js/main.js, :has() ist der Fallback ohne JS. */
  body.nav-open .mobile-cta,
  body:has(nav.main.open) .mobile-cta { display: none; }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .mcta-mail { animation: none; }
  /* Kein Einfahren, nur noch da oder nicht da */
  .mobile-cta, body.cta-show .mobile-cta { transform: none; transition: none; }
}

@media (max-width: 400px) {
  /* Schmale Geraete: Icons kleiner, damit das Logo Breite behaelt */
  .hdr-actions a { width: 38px; height: 38px; }
  .hdr-actions svg { width: 23px; height: 23px; }
}

@media (max-width: 360px) {
  .mcta { font-size: .88rem; padding: 10px 7px; gap: 6px; }
  .mcta svg { width: 20px; height: 20px; }
  .mcta-call small { font-size: .72rem; }
  .mcta-call b { font-size: .88rem; }
  .mcta-mail { font-size: .88rem; }
}
