/* ==========================================================================
   style.css · Hausmeisterservice Süd
   Mehrseiter nach dem Grundgerüst des Skills website-builder (Technik aus der
   Vorlage, Gestaltung je Marke). Designsystem: _projektnotizen/designsystem.md

   Inhalt
    1  Schrift und Tokens
    2  Reset und Basis
    3  Typografie und Hilfsklassen
    4  Layout und Abschnitte
    5  Kopf und Navigation
    6  Handy-Menü
    7  Knöpfe und Links
    8  Einstieg (Startseite) und Seitenkopf (Unterseiten)
    9  Karten, Leistungen, Bildbänder
   10  Vorher-Nachher (Vergleich und Paare)
   11  Turnusplan
   12  Ablauf, Team, Fakten
   13  Häufige Fragen
   14  Formulare und Kontakt
   15  Erklärgrafik Einsatzgebiet
   16  Dunkles Band und Abschluss
   17  Fuß
   18  Cookie-Hinweis und Meldungen
   19  Rechtsseiten und 404
   20  Einblenden
   21  Breiten ab 40, 48, 52, 64, 72 rem
   22  Rückfälle: reduzierte Bewegung, ohne Skript
   23  Druck
   ========================================================================== */

/* 1 · Schrift und Tokens ------------------------------------------------- */
/* Rubik (SIL Open Font License 1.1, The Rubik Project Authors), selbst gehostet,
   auf lateinische Zeichen beschnitten; Lizenz in _projektnotizen/lizenzen (T26, R9) */
@font-face {
  font-family: "Rubik";
  src: url("assets/fonts/rubik-variabel.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Marke: Logo-Grün #009347 hält 4,5 : 1 mit weißer Schrift nicht; Text und Knöpfe
     laufen in der abgedunkelten Fassung (G11) */
  --logo-gruen: #009347;           /* nur Flächen und Zeichen */
  --gruen: #008942;                /* Knöpfe, Symbole; Weiß darauf 4,51 */
  --gruen-dunkel: #006b34;         /* Text-Grün, Hover; auf Weiß 6,66, auf --papier-warm 6,07 */
  --gruen-hell: #87c340;           /* Logo-Hellgrün: nur auf Graphit oder als Fläche */
  --gruen-zart: #e6f2e9;           /* zarte Grünfläche für Marken */
  --gold: #8a5a00;                 /* Bewertungen und Sterne (G8) */
  --fehler: #b3261e;
  --tinte: #1d2422;                /* Text */
  --tinte-weich: #4f5a56;          /* gedämpfter Text: auf Weiß 7,17, auf --papier-warm 6,53 */
  --papier: #ffffff;
  --papier-warm: #f2f5f3;          /* Pflastergrau mit grünem Hauch */
  --graphit: #24282a;              /* dunkle Bänder, aus dem Logo-Grau abgeleitet */
  --text-auf-graphit: #ffffff;
  --text-auf-graphit-weich: #c9d3cf;
  --linie: #d6deda;
  --feldrand: #7d8984;             /* Feldgrenzen 3,63 : 1 auf Weiß (WCAG 1.4.11) */

  --schrift: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: .5rem;
  --radius-md: .875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 9999px;
  --schatten: 0 1px 2px rgba(29, 36, 34, .06), 0 12px 28px -14px rgba(29, 36, 34, .2);
  --schatten-lg: 0 2px 6px rgba(29, 36, 34, .07), 0 30px 60px -20px rgba(29, 36, 34, .3);

  --container: 74rem;
  --lesebreite: 42rem;
  --abstand-abschnitt: clamp(2.75rem, 5.5vw, 4.5rem);
  --dauer: .25s;
  --kurve: cubic-bezier(.2, .7, .2, 1);

  /* Kopf: zwei Tokens (T12) */
  --header-bar-h: 4.5rem;
  --header-h: var(--header-bar-h);

  /* z-Skala (T13): Hinweis < Menü < Kopf < Lightbox < Meldungen */
  --z-cookie: 120;
  --z-nav-mobile: 130;
  --z-header: 140;
  --z-lightbox: 200;
  --z-toast: 210;
}

/* 2 · Reset und Basis ---------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + .5rem);
}
html.smooth-scroll { scroll-behavior: smooth; }
body {
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--tinte);
  background: var(--papier);
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gruen-dunkel); text-underline-offset: .18em; }
a:hover { color: var(--tinte); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 3px; border-radius: .25rem; }
#inhalt:focus, #inhalt:focus-visible { outline: none; }
a, button, summary, input, select, textarea, label { touch-action: manipulation; }
address { font-style: normal; }

/* 3 · Typografie und Hilfsklassen ---------------------------------------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; font-weight: 700; }   /* Safari unter 17 trennt nur mit Präfix (T31) */
h1 { font-size: clamp(2.1rem, 5.2vw, 3.45rem); letter-spacing: -.025em; }
h1, h2 { -webkit-hyphens: manual; hyphens: manual; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); margin-bottom: .8rem; }
h3 { font-size: 1.25rem; margin-bottom: .4rem; letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; margin-bottom: .3rem; }
p, li, dd { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 14 6 6; }   /* Komposita mit Strich trennen statt mitten im Wort (T11, T31) */
a[href^="mailto:"] { overflow-wrap: anywhere; }
p + p { margin-top: .9rem; }
.lead { font-size: 1.0625rem; color: var(--tinte-weich); text-wrap: pretty; max-width: var(--lesebreite); }
.augenbraue {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gruen-dunkel); margin-bottom: .8rem;
}
/* Der Streifen vor der Augenbraue ist die Beschriftung der Firmenwagen: Grün und Hellgrün */
.augenbraue::before {
  content: ""; flex: none; width: 2.2rem; height: .32rem; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--logo-gruen) 0 62%, var(--gruen-hell) 62% 100%);
}
.prose { max-width: var(--lesebreite); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: .8rem 0; }
.prose li + li { margin-top: .35rem; }
.prose ul[class], .prose ol[class] { padding-left: 0; }
.prose ul[class] > li + li { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.nur-vorlesen { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprunglink { position: absolute; left: 1rem; top: -6rem; z-index: var(--z-toast); background: var(--papier); padding: .6rem 1rem; border-radius: var(--radius-md); box-shadow: var(--schatten); }
.sprunglink:focus { top: 1rem; }
.symbol { width: 1.25rem; height: 1.25rem; flex: none; }
.haken-liste { list-style: none; display: grid; gap: .55rem; }
.haken-liste li { position: relative; padding-left: 1.9rem; }
.haken-liste li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: .35rem;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .8rem no-repeat;
}

/* 4 · Layout und Abschnitte ---------------------------------------------- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--abstand-abschnitt); }
.section--warm { background: var(--papier-warm); }
.section-kopf { max-width: 46rem; margin-bottom: 2rem; }
.zwei-spalten { display: grid; gap: 2rem; align-items: center; }
.zwei-spalten > * { min-width: 0; }
.zwei-spalten--oben { align-items: start; }
.gebiet { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.gebiet > * { min-width: 0; }
.gebiet .grafik { max-width: 46rem; width: 100%; margin-inline: auto; }
.section:not(.section--warm):not(.section--dunkel) + .section:not(.section--warm):not(.section--dunkel) { border-top: 1px solid var(--linie); }
.abschnitt-fuss { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }

/* 5 · Kopf und Navigation ------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
  transition: box-shadow var(--dauer) var(--kurve);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .25); }
.header-inner { height: var(--header-bar-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* Das Logo trägt den Firmennamen als Bild; Name bleibt ganz (T12) */
.marke { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; text-decoration: none; color: var(--tinte); }
.marke img { width: min(13.5rem, calc(100vw - 9.75rem)); height: auto; }
.nav-haupt { display: none; }
.nav-haupt > ul { display: flex; align-items: center; gap: .1rem; list-style: none; }
.nav-haupt a, .nav-toggle {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .5rem .75rem;
  border-radius: var(--radius-pill); color: var(--tinte); text-decoration: none; font-weight: 500; font-size: 1rem; white-space: nowrap;
}
.nav-haupt a:hover, .nav-toggle:hover { background: var(--papier-warm); color: var(--tinte); }
.nav-haupt a[aria-current="page"] { color: var(--gruen-dunkel); background: var(--gruen-zart); }
.nav-toggle.is-active { color: var(--gruen-dunkel); background: var(--gruen-zart); }
.nav-toggle .symbol { width: 1rem; height: 1rem; transition: transform var(--dauer) var(--kurve); }
.nav-toggle[aria-expanded="true"] .symbol { transform: rotate(180deg); }
.nav-gruppe { position: relative; }
.untermenue {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 17rem; list-style: none;
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-lg);
  box-shadow: var(--schatten-lg); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--dauer) var(--kurve), transform var(--dauer) var(--kurve), visibility var(--dauer);
}
.nav-haupt .untermenue a { display: flex; width: 100%; border-radius: var(--radius-md); white-space: nowrap; }
.untermenue { min-width: max-content; }
.nav-gruppe:hover .untermenue, .nav-gruppe:focus-within .untermenue, .untermenue.is-open { opacity: 1; visibility: visible; transform: none; }
.kopf-aktionen { display: flex; align-items: center; gap: .5rem; flex: none; }
/* Handy zuerst: Anruf-Knopf nur mit Hörer, Beschriftung ab 40 rem und ohne Skript (T12) */
.kopf-aktionen .kopf-anruf { width: 48px; height: 48px; padding: 0; }
.kopf-knopf-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.burger { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); border: 1px solid var(--linie); background: var(--papier); }
/* Drei Linien werden beim Öffnen zum X und beim Schließen zurück (website-builder T13); nur transform und opacity */
.burger-linien { position: relative; display: block; width: 1.25rem; height: 1rem; }
.burger-linien > span {
  position: absolute; left: 0; top: calc(50% - 1px); width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .26s var(--kurve), opacity .18s var(--kurve);
}
.burger-linien > span:nth-child(1) { transform: translateY(-6px); }
.burger-linien > span:nth-child(3) { transform: translateY(6px); }
.burger[aria-expanded="true"] .burger-linien > span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-linien > span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.burger[aria-expanded="true"] .burger-linien > span:nth-child(3) { transform: rotate(-45deg); }

/* 6 · Handy-Menü: Karte auf abgedunkeltem Grund (T13) -------------------- */
.nav-mobile {
  position: fixed; inset: 0; z-index: var(--z-nav-mobile);
  display: flex; justify-content: flex-start; flex-direction: column;
  background: rgba(16, 18, 22, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: calc(var(--header-bar-h) + .5rem) 1rem calc(1rem + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dauer) var(--kurve), visibility 0s linear var(--dauer);
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transition: opacity var(--dauer) var(--kurve), visibility 0s; }
.nav-mobile-inner {
  margin: auto; width: 100%; max-width: 24rem;
  background: var(--papier); border-radius: var(--radius-xl); box-shadow: var(--schatten-lg);
  padding: 1.1rem 1rem 1.3rem;
  transform: translateY(8px); transition: transform var(--dauer) var(--kurve);
}
.nav-mobile.is-open .nav-mobile-inner { transform: none; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul a, .mobil-gruppe-knopf { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: var(--radius-md); color: var(--tinte); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.nav-mobile ul a[aria-current="page"] { color: var(--gruen-dunkel); background: var(--gruen-zart); }
.mobil-gruppe-knopf .symbol { transition: transform var(--dauer) var(--kurve); }
.mobil-gruppe.is-open .mobil-gruppe-knopf .symbol { transform: rotate(180deg); }
.mobil-untermenue { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--kurve); }
.mobil-untermenue > ul { overflow: hidden; min-height: 0; padding-left: .8rem; }
.mobil-gruppe.is-open .mobil-untermenue { grid-template-rows: 1fr; }
.nav-mobile-aktionen { display: grid; gap: .6rem; margin-top: 1rem; }
body.menue-offen { overflow: hidden; }

/* 7 · Knöpfe und Links --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
  transition: background-color var(--dauer) var(--kurve), color var(--dauer) var(--kurve), border-color var(--dauer) var(--kurve), transform var(--dauer) var(--kurve);
}
.btn:active { transform: translateY(1px); }
.btn-primaer { background: var(--gruen); color: #fff; }
.btn-primaer:hover { background: var(--gruen-dunkel); color: #fff; }
.btn-sekundaer { background: var(--papier); color: var(--tinte); border-color: var(--feldrand); }
.btn-sekundaer:hover { border-color: var(--gruen-dunkel); color: var(--gruen-dunkel); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.textlink { display: inline-block; padding-block: .7rem; line-height: 1.4; font-weight: 600; text-decoration: none; color: var(--gruen-dunkel); }
.textlink:hover { color: var(--gruen); }
.textlink .symbol { display: inline-block; vertical-align: -.2em; margin-left: .1rem; transition: transform var(--dauer) var(--kurve); }
.textlink:hover .symbol { transform: translateX(3px); }

/* 8 · Einstieg und Seitenkopf -------------------------------------------- */
.hero { padding-top: calc(var(--header-h) + 1.75rem); padding-bottom: var(--abstand-abschnitt); background: var(--papier-warm); overflow: hidden; }
.hero-raster { display: grid; gap: 2.25rem; align-items: center; }
.hero-raster > * { min-width: 0; }
.hero-bild { margin: 0; }
.hero h1 { margin-bottom: 1rem; }
/* Direkte Nummern im Einstieg (G7): am Handy zeigt der Kopf nur den Hörer (T12) */
.direktwahl { list-style: none; display: grid; gap: .5rem; margin-top: 1.25rem; }
.direktwahl a {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .35rem .9rem .35rem .4rem;
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-pill);
  text-decoration: none; color: var(--tinte); max-width: 100%;
}
.direktwahl a:hover { border-color: var(--gruen); color: var(--tinte); }
.direktwahl .direktwahl-symbol { width: 2.4rem; height: 2.4rem; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--gruen); color: #fff; flex: none; }
.direktwahl .direktwahl-symbol .symbol { width: 1.1rem; height: 1.1rem; }
.direktwahl-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.direktwahl-name { font-size: .85rem; color: var(--tinte-weich); }
.direktwahl-nummer { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Bild im Einstieg: das Teamfoto für sich, ohne Unterschrift und ohne Fläche dahinter */
.hero-bild-rahmen img { border-radius: var(--radius-xl); box-shadow: var(--schatten-lg); width: 100%; }

/* Fakten unter dem Einstieg: drei Zusagen aus den Angaben des Betriebs, ohne Scheinnummern */
.zusagen { list-style: none; display: grid; gap: .75rem; margin-top: 2rem; }
.zusagen li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.zusagen .symbol { color: var(--gruen); margin-top: .2rem; }
.hero .zusagen { grid-column: 1 / -1; margin-top: 0; }

.seitenkopf { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2.25rem; background: var(--papier-warm); }
.seitenkopf-inner { display: grid; gap: 1.5rem; align-items: center; }
.seitenkopf-inner > * { min-width: 0; }
.seitenkopf-bild img { border-radius: var(--radius-xl); box-shadow: var(--schatten); width: 100%; }
/* Unter 64 rem steht das Bild als flacher Streifen unter Text, Nummer und Knopf: so bleibt die Nummer beim
   Erstbesuch über der Cookie-Karte (G7, T12); ab 64 rem rechts daneben (G14) */
.seitenkopf-bild > img { aspect-ratio: 20 / 9; object-fit: cover; object-position: 50% 30%; }
.seitenkopf-bild > img.bild-oben { object-position: 50% 5%; }
.seitenkopf-bild > img.bild-unten { object-position: 50% 80%; }
.seitenkopf-bild > img.bild-voll { aspect-ratio: 4 / 3; }
/* Bildnachweis am Bild für Fremdfotos (CC BY-SA) */
.seitenkopf-bild, .foto, .leistung-karte { position: relative; }
.bildhinweis { position: absolute; left: .75rem; bottom: .75rem; z-index: 1; display: inline-flex; align-items: center; min-height: 1.5rem; padding: .15rem .6rem; border-radius: var(--radius-pill); background: rgba(16, 20, 19, .74); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.3; }
.bildhinweis--rechts { left: auto; right: .75rem; }
a.bildhinweis { text-decoration: underline; text-underline-offset: 2px; }
a.bildhinweis:hover { background: rgba(16, 20, 19, .9); color: #fff; }
.brotkrumen { display: none; }
.direktwahl--eins { grid-template-columns: minmax(0, max-content); margin-top: 1rem; }
.direktwahl--eins + .btn-row { margin-top: 1rem; }
.seitenkopf h1 { margin-bottom: .9rem; }
.seitenkopf + .section:not(.section--warm):not(.section--dunkel) { padding-top: clamp(1.25rem, 2.5vw, 2rem); border-top: 0; }
.brotkrumen { font-size: .9rem; margin-bottom: .6rem; color: var(--tinte-weich); }
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.brotkrumen li + li::before { content: "/"; margin-right: .5rem; color: var(--feldrand); }
.brotkrumen a { color: var(--tinte-weich); display: inline-flex; min-height: 44px; align-items: center; }

/* 9 · Karten, Leistungen, Bildbänder ------------------------------------- */
.raster { display: grid; gap: 1.25rem; align-items: stretch; }
.raster > * { min-width: 0; height: 100%; }
.card { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: .5rem; }
.raster .card + .card { margin-top: 0; }
.card-symbol { width: 3rem; height: 3rem; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--gruen-zart); color: var(--gruen-dunkel); flex: none; }
.card .textlink { margin-top: auto; align-self: flex-start; }
.card p { text-wrap: pretty; }
.zusagen li { text-wrap: balance; }
.card .haken-liste { margin-top: .4rem; font-size: 1rem; }
/* Spezialaufgaben: kleiner Kasten unter dem Leistungsraster, neben „Alle Leistungen ansehen“ */
.abschnitt-fuss--leistungen { gap: 1rem 2rem; }
.spezial-hinweis { flex: 1 1 30rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 1rem; padding: .85rem 1.25rem; border-radius: var(--radius-lg); background: var(--gruen-zart); }
.spezial-hinweis .card-symbol { width: 2.5rem; height: 2.5rem; background: var(--papier); }
.spezial-hinweis-text { min-width: 0; }
.spezial-hinweis h3 { font-size: 1.05rem; margin: 0 0 .1rem; }
.spezial-hinweis p { font-size: .95rem; color: var(--tinte); text-wrap: pretty; }
.spezial-hinweis .textlink { grid-column: 2; justify-self: start; padding-block: .5rem; }
.karte-vn { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 4 / 3; background: var(--papier); }
.karte-vn img { width: 100%; height: 100%; object-fit: cover; }
.karte-vn > div { position: relative; min-width: 0; }
.karte-vn .vergleich-marke { top: .55rem; left: .55rem; right: auto; padding: .2rem .55rem; font-size: .78rem; }
/* Ein Foto mit beiden Zuständen (Fläche halb gereinigt): Nachher oben links auf der sauberen, Vorher unten rechts auf der grauen Seite */
.karte-vn--eins { grid-template-columns: 1fr; }
.karte-vn--eins .vergleich-marke--vorher { top: auto; bottom: .55rem; left: auto; right: .55rem; }
.leistung-karte .leistung-karte-zeile { font-size: 1.05rem; font-weight: 600; color: var(--gruen-dunkel); }

.leistung-karte { padding: 0; overflow: hidden; transition: transform var(--dauer) var(--kurve), box-shadow var(--dauer) var(--kurve); }
.leistung-karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-lg); }
.leistung-karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.leistung-karte-text { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1 1 auto; }
.leistung-karte-kopf { display: flex; gap: .75rem; align-items: center; }
.leistung-karte-kopf h3 { margin: 0; font-size: 1.2rem; }
.leistung-karte-kopf .card-symbol { width: 2.5rem; height: 2.5rem; }
.leistung-karte p { font-size: 1rem; color: var(--tinte-weich); }

.foto img { border-radius: var(--radius-xl); box-shadow: var(--schatten); width: 100%; }
.fotoreihe { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.fotoreihe > * { min-width: 0; }
.fotoreihe img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--schatten); }
.fotoreihe > figure { position: relative; }
/* Zeitraffer im Seitenkopf: nur ab 64 rem, Hintergrund rechts mit Verlauf nach links; darunter ein Foto */
.kopf-film, .kopf-film-pause { display: none; }
.fotoreihe--quer img { aspect-ratio: 4 / 3; }
/* Drei Fotos, das mittlere breiter (gleiche Höhe: 4:5 außen, 32:25 in der Mitte bei 1 : 1,6 : 1); am Handy oben breit, darunter zwei */
.fotoreihe--mitte-breit > :nth-child(2) { grid-column: 1 / -1; order: -1; }
.fotoreihe--mitte-breit > :nth-child(2) img { aspect-ratio: 32 / 25; }
@media (min-width: 40rem) {
  .fotoreihe--mitte-breit { grid-template-columns: 1fr 1.6fr 1fr; }
  .fotoreihe--mitte-breit > :nth-child(2) { grid-column: auto; order: 0; }
}

/* 10 · Vorher-Nachher ---------------------------------------------------- */
/* Vergleich mit Regler: zwei deckungsgleiche Fotos übereinander, das Vorher-Bild
   wird per clip-path freigegeben. Ohne Skript stehen beide Bilder nebeneinander. */
.vergleich { position: relative; max-width: 26rem; margin-inline: auto; }
.vergleich-buehne {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--schatten);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; background: var(--graphit);
}
.vergleich-buehne img { width: 100%; height: auto; pointer-events: none; }
.vergleich-vorher { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.vergleich-vorher img { width: 100%; height: 100%; object-fit: cover; }
.vergleich-linie { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.vergleich-griff {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 3rem; height: 3rem; border-radius: var(--radius-pill); background: #fff; color: var(--gruen-dunkel);
  display: grid; place-items: center; box-shadow: var(--schatten-lg);
}
.vergleich-griff .symbol { width: 1.4rem; height: 1.4rem; }
.vergleich-marke {
  position: absolute; top: .8rem; padding: .3rem .7rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; pointer-events: none;
}
.vergleich-marke--vorher { left: .8rem; background: rgba(29, 36, 34, .82); color: #fff; }
.vergleich-marke--nachher { right: .8rem; background: var(--gruen); color: #fff; }
.vergleich-regler { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.vergleich.ist-aktiv .vergleich-buehne { cursor: ew-resize; }
.vergleich.ist-aktiv .vergleich-regler { pointer-events: none; }
.vergleich-regler:focus-visible + .vergleich-linie .vergleich-griff { outline: 3px solid #fff; outline-offset: 3px; }
/* Ohne Skript (und bis das Skript läuft): beide Fotos nebeneinander, kein Regler */
.vergleich:not(.ist-aktiv) .vergleich-buehne { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.vergleich:not(.ist-aktiv) .vergleich-vorher { position: relative; clip-path: none; order: -1; }
.vergleich:not(.ist-aktiv) .vergleich-linie, .vergleich:not(.ist-aktiv) .vergleich-regler { display: none; }
.vergleich:not(.ist-aktiv) .vergleich-marke--nachher { right: .5rem; }
.vergleich:not(.ist-aktiv) .vergleich-marke--vorher { left: .5rem; }

/* Großer Regler auf der Startseite: Bild links und breiter als der Text */
.vergleich--gross { max-width: 40rem; width: 100%; }   /* zwischen 768 und 1023 px nicht über die Bildgröße gestreckt (T9) */
.vergleich--quer { max-width: 40rem; }

/* Galerie: große Regler und große Paare, Text darunter */
.faelle { display: grid; gap: 2rem 1.5rem; }
.faelle > * { min-width: 0; }
.faelle + .faelle { margin-top: 2rem; }
.faelle--schmal { max-width: 54rem; margin-inline: auto; }
.fall { margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.fall .vergleich { max-width: none; width: 100%; margin: 0; }
.fall--hoch .paar-bilder img { aspect-ratio: 1; object-fit: cover; object-position: 50% 60%; }
.fall-text { padding-inline: .15rem; max-width: var(--lesebreite); }
.fall-text h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.fall-text p { font-size: 1rem; color: var(--tinte-weich); }
.fall .paar-bilder { gap: .6rem; }
.fall .paar-bilder img { border-radius: var(--radius-lg); box-shadow: var(--schatten); }
.fall .paar-bilder .vergleich-marke { top: .7rem; font-size: .78rem; padding: .25rem .65rem; }
.fall .paar-bilder .vergleich-marke--vorher, .fall .paar-bilder .vergleich-marke--nachher { left: .7rem; right: auto; }

/* Paare: Vorher und Nachher nebeneinander, gleich groß (Fotos von verschiedenen Standpunkten) */
.paar-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.paar-bilder > * { min-width: 0; position: relative; }
.paar-bilder img { width: 100%; border-radius: var(--radius-md); }
.paar-bilder .vergleich-marke { top: .45rem; font-size: .72rem; padding: .2rem .55rem; }
.paar-bilder .vergleich-marke--vorher { left: .45rem; }
.paar-bilder .vergleich-marke--nachher { right: auto; left: .45rem; }

/* 11 · Turnusplan -------------------------------------------------------- */
.turnusplan { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-xl); box-shadow: var(--schatten-lg); overflow: hidden; }
.turnusplan-kopf {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem;
  padding: 1rem 1.25rem; background: var(--graphit); color: var(--text-auf-graphit);
}
.turnusplan-kopf p { color: var(--text-auf-graphit); font-weight: 600; }
.turnusplan-kopf span { color: var(--text-auf-graphit-weich); font-size: .9rem; }
.turnusplan-spalten { display: grid; }
.turnus { padding: 1.25rem 1.25rem 1.4rem; border-top: 1px solid var(--linie); }
.turnus:first-child { border-top: 0; }
.turnus h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; margin-bottom: .75rem; }
.turnus ul { list-style: none; display: grid; gap: .55rem; font-size: .98rem; }
.turnus li { position: relative; padding-left: 1.6rem; }
.turnus li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1rem; height: 1rem; border-radius: .3rem; }
.turnus li::before {
  border: 0;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .7rem no-repeat;
}
.turnusplan-fuss { padding: .9rem 1.25rem; background: var(--papier-warm); font-size: .9rem; color: var(--tinte-weich); border-top: 1px solid var(--linie); }

/* 12 · Ablauf, Team, Fakten ---------------------------------------------- */
.ablauf { list-style: none; counter-reset: schritt; display: grid; gap: 1rem; }
.ablauf li { counter-increment: schritt; position: relative; padding: 1.35rem 1.35rem 1.35rem 4.1rem; background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-lg); box-shadow: var(--schatten); }
.ablauf li::before { content: counter(schritt); position: absolute; left: 1.25rem; top: 1.25rem; width: 2.1rem; height: 2.1rem; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--gruen); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.ablauf p { font-size: 1rem; color: var(--tinte-weich); }

.team { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
.team > * { min-width: 0; }
.person { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 14%; }
.person-text { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1 1 auto; }
.person h3 { font-size: 1.05rem; margin: 0; hyphens: manual; }
.person-rolle { font-size: .9rem; color: var(--tinte-weich); }
.person a { font-size: .95rem; display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.fakten { display: grid; gap: 1rem; }
.fakt { display: flex; gap: .9rem; align-items: flex-start; }
.fakt h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.fakt p { font-size: 1rem; color: var(--tinte-weich); }

.team--zwei { grid-template-columns: repeat(2, 1fr); max-width: 34rem; }
.team--abstand { margin-top: 2.5rem; }
.fakten--zwei { grid-template-columns: 1fr; }
.karten-titel { font-size: 1.25rem; margin-bottom: .4rem; }
.preistabelle { width: 100%; border-collapse: collapse; font-size: 1rem; margin-top: .4rem; }
.preistabelle th, .preistabelle td { text-align: left; padding: .55rem .25rem; border-bottom: 1px solid var(--linie); vertical-align: top; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word; }
.preistabelle caption { text-align: left; font-weight: 600; margin-bottom: .4rem; }
.preistabelle th { font-weight: 600; font-size: .9rem; color: var(--tinte-weich); }

/* 13 · Häufige Fragen ---------------------------------------------------- */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq-item { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-lg); }
.faq-item summary { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 1rem 1.25rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gruen-dunkel); transition: transform var(--dauer) var(--kurve); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gruen-dunkel); }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--tinte-weich); }

/* 14 · Formulare und Kontakt --------------------------------------------- */
.formular { display: grid; gap: 1rem; }
.formular-karte { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-xl); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--schatten-lg); }
.feld { display: grid; gap: .35rem; }
.feld label { font-weight: 500; }
.feld input, .feld textarea, .feld select {
  width: 100%; font: inherit; font-size: 16px; min-height: 48px;
  padding: .7rem .9rem; border: 1px solid var(--feldrand); border-radius: var(--radius-sm);
  background: var(--papier); color: var(--tinte);
}
.feld select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: var(--papier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2422' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat; }
.feld textarea { min-height: 112px; resize: vertical; }
/* Mehrfachauswahl „Worum geht es?“ (Kästchen statt Auswahlliste) */
.feld-auswahl { border: 0; padding: 0; margin: 0; min-width: 0; }
.feld-auswahl legend { font-weight: 500; margin-bottom: .35rem; padding: 0; }
.feld-auswahl legend span { font-weight: 400; color: var(--tinte-weich); }
.auswahl-raster { display: grid; gap: .5rem; }
.auswahl { min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--feldrand); border-radius: var(--radius-sm); background: var(--papier); cursor: pointer; }
.auswahl input { width: 1.25rem; height: 1.25rem; accent-color: var(--gruen); flex: none; margin: 0; }
.auswahl:has(input:checked) { border-color: var(--gruen-dunkel); background: var(--gruen-zart); }
.auswahl:focus-within { outline: 3px solid var(--gruen-dunkel); outline-offset: 1px; }
.feld input:focus-visible, .feld textarea:focus-visible, .feld select:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 1px; border-color: var(--gruen-dunkel); }
.feld input[aria-invalid="true"], .feld textarea[aria-invalid="true"], .feld select[aria-invalid="true"] { border-color: var(--fehler); }
.feld-fehler { color: var(--fehler); font-size: .95rem; }
.feld-paar { display: grid; gap: 1rem; }
.feld-paar > * { min-width: 0; }
.zustimmung { display: flex; gap: .75rem; align-items: flex-start; font-size: .98rem; }
.zustimmung input { width: 24px; height: 24px; margin-top: .15rem; flex: none; accent-color: var(--gruen); }
.form-note { font-size: .92rem; color: var(--tinte-weich); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kontaktliste { list-style: none; display: grid; gap: .25rem; }
.kontaktliste li { display: flex; gap: .7rem; align-items: center; min-height: 44px; }
.kontaktliste .symbol { color: var(--gruen); }
.kontaktliste li:has(br) { align-items: flex-start; }
.kontakt-spalte { display: flex; flex-direction: column; gap: 1.25rem; align-self: stretch; min-width: 0; }
.kontakt-spalte > img { flex: 1 1 auto; width: 100%; min-height: 13rem; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--schatten); }
.ohne-umbruch { white-space: nowrap; }
.grafik text { paint-order: stroke; stroke: var(--papier); stroke-width: 4px; stroke-linejoin: round; }
.person-text a:first-of-type { margin-top: auto; }
.kontaktliste a { font-weight: 600; font-size: 1rem; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; min-width: 0; }
.kontaktliste a:hover { text-decoration: underline; }
.zeiten { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: .35rem 1.25rem .35rem 0; border-bottom: 1px solid var(--linie); font-weight: 400; }
.zeiten th { font-weight: 500; }

/* 15 · Erklärgrafik Einsatzgebiet: quer ab 52 rem, hochkant darunter (T16) */
.grafik { margin-block: 1rem 0; }
.grafik-flaeche { overflow-x: auto; background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-xl); padding: 1rem; }
.grafik svg { margin-inline: auto; }
.grafik figcaption { margin-top: .6rem; color: var(--tinte-weich); font-size: .92rem; }
.nur-breit { display: none; }
.nur-schmal .grafik-flaeche svg { max-width: min(100%, 24rem); }   /* unter 352 px nicht breiter als die Fläche (T16) */
.orte { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.orte li { padding: .35rem .8rem; border-radius: var(--radius-pill); background: var(--papier); border: 1px solid var(--linie); font-size: .95rem; }

/* 16 · Dunkles Band und Abschluss ---------------------------------------- */
.section--dunkel { background: var(--graphit); color: var(--text-auf-graphit); position: relative; }
/* Jedes Textelement im dunklen Band ist deklariert (T18) */
.section--dunkel h1, .section--dunkel h2, .section--dunkel h3, .section--dunkel h4,
.section--dunkel p, .section--dunkel li, .section--dunkel dt, .section--dunkel dd,
.section--dunkel strong, .section--dunkel .lead, .section--dunkel .form-note,
.section--dunkel .symbol, .section--dunkel address { color: var(--text-auf-graphit); }
.section--dunkel p, .section--dunkel .lead, .section--dunkel li, .section--dunkel dd { color: var(--text-auf-graphit-weich); }
.section--dunkel a:not(.btn) { color: var(--gruen-hell); }
.section--dunkel a:not(.btn):hover { color: #fff; }
.section--dunkel .augenbraue { color: var(--gruen-hell); }
.section--dunkel .card-symbol { background: rgba(135, 195, 64, .16); color: var(--gruen-hell); }
.section--dunkel .card-symbol .symbol { color: var(--gruen-hell); }
.section--dunkel .btn-sekundaer { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.section--dunkel .btn-sekundaer:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.section--dunkel .btn-primaer { background: var(--gruen-hell); color: var(--graphit); }
.section--dunkel .btn-primaer:hover { background: #a4d66a; color: var(--graphit); }
.section--dunkel .fakt h3 { color: #fff; }
.section--dunkel .fakt p { color: var(--text-auf-graphit-weich); }
/* Wagenstreifen über dem dunklen Band */
.section--dunkel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .4rem; background: linear-gradient(90deg, var(--logo-gruen) 0 70%, var(--gruen-hell) 70% 100%); }
.abschluss { display: grid; gap: 1.5rem; align-items: center; }
.abschluss > * { min-width: 0; }

/* 17 · Fuß --------------------------------------------------------------- */
.site-footer { background: #1b1e1f; color: var(--text-auf-graphit-weich); padding-block: 3rem 1.5rem; }
.fuss-raster { display: grid; gap: 2rem; }
.fuss-raster > * { min-width: 0; }
.fuss-logo { background: #fff; border-radius: var(--radius-md); padding: .6rem .8rem; display: inline-block; margin-bottom: 1rem; }
.fuss-logo { width: fit-content; max-width: 100%; }
.fuss-logo img { width: 16rem; max-width: 100%; height: auto; }
.fuss-titel { font-size: 1rem; color: var(--text-auf-graphit); margin-bottom: .6rem; letter-spacing: .02em; font-weight: 600; }
.site-footer p, .site-footer li, .site-footer address { color: var(--text-auf-graphit-weich); font-style: normal; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer ul a { padding-block: .7rem; line-height: 1.35; }
.site-footer a, .fuss-knopf { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-auf-graphit); text-decoration: none; font-size: 1rem; }
.site-footer a:hover, .fuss-knopf:hover { text-decoration: underline; color: #fff; }
.fuss-unten { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; align-items: center; }
.fuss-unten p { font-size: .9rem; }
.fuss-recht { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.fuss-recht a, .fuss-recht .fuss-knopf { font-size: .9rem; }
.footer-credit a { color: var(--text-auf-graphit-weich); font-size: .9rem; }

/* 18 · Cookie-Hinweis und Meldungen (T14) -------------------------------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(100% - 1.5rem, 56rem); z-index: var(--z-cookie);
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-lg); box-shadow: var(--schatten-lg);
  padding: 1rem 1.15rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: flex; flex-direction: column; gap: .75rem; }
.cookie-banner-copy { flex: 1 1 auto; min-width: 0; }
.cookie-banner-title { font-size: 1rem; margin-bottom: .2rem; }
.cookie-banner-text { font-size: .87rem; line-height: 1.5; color: var(--tinte-weich); }
.cookie-banner-actions { display: flex; gap: .6rem; }
.cookie-banner-actions .btn { flex: 1 1 0; min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }
.toasts { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: .5rem; width: min(100% - 2rem, 28rem); pointer-events: none; }
.toast { background: var(--graphit); color: #fff; padding: .8rem 1rem; border-radius: var(--radius-md); box-shadow: var(--schatten-lg); }

/* 19 · Rechtsseiten und 404 ---------------------------------------------- */
.rechtsseite { padding-top: calc(var(--header-h) + 2rem); padding-bottom: var(--abstand-abschnitt); }
.rechtsseite h1 { margin-bottom: 1rem; }
.rechtsseite h2 { font-size: 1.35rem; margin-top: 2rem; }
.rechtsseite h3 { font-size: 1.1rem; margin-top: 1.25rem; }
.rechtsseite ul { padding-left: 1.2rem; margin-top: .6rem; }
.rechtsseite li + li { margin-top: .3rem; }
.rechtsseite code { font-size: .95em; background: var(--papier-warm); padding: 0 .25rem; border-radius: .25rem; }
.zurueck { margin-top: 2.5rem; }
.seite-404 { padding-top: calc(var(--header-h) + 3rem); padding-bottom: var(--abstand-abschnitt); min-height: 60vh; }

/* 20 · Einblenden -------------------------------------------------------- */
.reveal-element { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--kurve), transform .55s var(--kurve); }
.reveal-element.is-visible { opacity: 1; transform: none; }

/* 21 · Breiten ----------------------------------------------------------- */
@media (min-width: 40rem) {
  .lead { font-size: 1.2rem; }
  .kopf-aktionen .kopf-anruf { width: auto; height: auto; padding: .7rem 1.1rem; }
  .kopf-knopf-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; font-variant-numeric: tabular-nums; }
  .cookie-banner-inner { flex-direction: row; align-items: center; }
  .cookie-banner-actions { flex-wrap: nowrap; flex: none; }
  .cookie-banner-actions .btn { flex: none; }
  .direktwahl { grid-template-columns: repeat(2, max-content); }
  .feld-paar { grid-template-columns: 1fr 1fr; }
  .auswahl-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fotoreihe--3 { grid-template-columns: repeat(3, 1fr); }
  .fakten { grid-template-columns: repeat(2, 1fr); }
}
/* Handy: Leistungskarten quer (Foto links), dritte Reihenbild über die volle Breite, Paare untereinander */
@media (max-width: 39.99rem) {
  .leistung-karte { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); }
  .leistung-karte > img { object-position: 72% 50%; }
  .team--zwei { grid-template-columns: 1fr; }
  .team--zwei .person { flex-direction: row; }
  .team--zwei .person img { width: 7.5rem; flex: none; }
  .leistung-karte > img, .leistung-karte > .karte-vn { aspect-ratio: auto; height: 100%; min-height: 7.5rem; }
  .leistung-karte-text { padding: .85rem 1rem .9rem; gap: .3rem; }
  .leistung-karte-kopf .card-symbol { display: none; }
  .leistung-karte-kopf h3 { font-size: 1.05rem; }
  .leistung-karte p { font-size: .95rem; }
  .leistung-karte .textlink { padding-block: .6rem; }
  .fotoreihe--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .fotoreihe--3 > :last-child:nth-child(odd) img { aspect-ratio: 4 / 3; }
  .fall .paar-bilder { grid-template-columns: 1fr; }
  .leistung-karte--gross, .leistung-karte--vn { display: flex; flex-direction: column; }
  .leistung-karte--vn > .karte-vn { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .leistung-karte--gross > img { aspect-ratio: 16 / 10; height: auto; min-height: 0; object-position: 50% 35%; }
}
@media (min-width: 48rem) {
  .brotkrumen { display: block; }
  .raster--3 { grid-template-columns: repeat(3, 1fr); }
  .leistung-karte--gross { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .leistung-karte--gross > img { aspect-ratio: auto; height: 100%; min-height: 20rem; object-position: 40% 45%; }
  .leistung-karte--gross .leistung-karte-text { padding: 2rem 2.25rem; justify-content: center; gap: .6rem; }
  .leistung-karte--gross .leistung-karte-kopf h3 { font-size: 1.6rem; }
  .leistung-karte--gross .leistung-karte-zeile { font-size: 1.2rem; }
  .leistung-karte--gross .haken-liste { font-size: 1.05rem; }
  .leistung-karte--gross .textlink { margin-top: .35rem; }
  .spezial-hinweis { grid-template-columns: auto minmax(0, 1fr) auto; }
  .spezial-hinweis .textlink { grid-column: auto; }
  .fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* vierspaltig erst ab 64 rem, sonst brechen Titel und Adressen mitten im Wort */
  .ablauf { grid-template-columns: repeat(3, 1fr); }
  .faelle--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(4, 1fr); }
  .team--zwei { grid-template-columns: repeat(2, 1fr); }
  .turnusplan-spalten { grid-template-columns: repeat(2, 1fr); }
  .turnus:nth-child(2) { border-top: 0; }
  .turnus:nth-child(even) { border-left: 1px solid var(--linie); }
}
@media (min-width: 52rem) {
  .nur-breit { display: block; }
  .nur-schmal { display: none; }
}
@media (min-width: 64rem) {
  .nav-haupt { display: block; }
  .burger { display: none; }
  .nav-mobile { display: none; }
  .hero-raster { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
  .zwei-spalten, .abschluss { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .seitenkopf-inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .seitenkopf-bild > img { aspect-ratio: auto; }
  .turnusplan-spalten { grid-template-columns: repeat(4, 1fr); }
  .turnus { border-top: 0; }
  .turnus + .turnus { border-left: 1px solid var(--linie); }
  .vn-raster { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: 4rem; }
  .vn-raster > .vergleich { order: -1; }
  .seitenkopf-bild .vergleich { max-width: none; }
  .seitenkopf-bild .vergleich-buehne img { aspect-ratio: 1; height: 100%; object-fit: cover; }
  .hero .zusagen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fuss-raster { grid-template-columns: 1.1fr 1.35fr .9fr 1.4fr; }
  .hero .zusagen { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }
  .fragen-raster { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .fragen-raster .faq { max-width: none; }
  .marke img { width: 14rem; }
  .fakten { grid-template-columns: repeat(4, 1fr); }
  .fakten--zwei { grid-template-columns: 1fr; }
}
@media (min-width: 64rem) {
  .seitenkopf--film { --text-breite: clamp(26rem, 40vw, 32rem); --text-ende: calc(max(1rem, 50% - 37rem) + var(--text-breite)); position: relative; overflow: hidden; isolation: isolate; min-height: clamp(34rem, 66vh, 42rem); display: flex; align-items: center; }
  .seitenkopf--film .seitenkopf-inner { position: relative; z-index: 2; grid-template-columns: minmax(0, var(--text-breite)); }
  .seitenkopf--film .seitenkopf-bild { display: none; }
  .kopf-film { display: block; position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; left: calc(var(--text-ende) - 12rem); background: #9aa39e url("assets/zeitraffer-hofreinigung-standbild-v2.webp") 55% 50% / cover no-repeat; }
  .kopf-film-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
  .kopf-film::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--papier-warm) 0, var(--papier-warm) 12rem, rgba(242, 245, 243, .55) 17rem, rgba(242, 245, 243, 0) 24rem); }
  .kopf-film-pause { display: grid; place-items: center; position: absolute; z-index: 3; right: max(1rem, calc(50% - 37rem)); bottom: 1.25rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(16, 20, 19, .72); color: #fff; cursor: pointer; transition: background-color var(--dauer) var(--kurve); }
  .kopf-film-pause:hover { background: rgba(16, 20, 19, .9); }
  .kopf-film-pause[hidden] { display: none; }
  .kopf-film-pause .symbol { width: 1.15rem; height: 1.15rem; fill: currentColor; stroke-width: 0; }
}
@media (min-width: 72rem) {
  .nav-haupt a, .nav-toggle { padding-inline: .9rem; }
}
@media (min-width: 80rem) {
  .marke img { width: 16.5rem; }
}
/* Handy (unter 30 rem): Einstieg der Startseite kompakter, damit die Nummer beim Erstbesuch über der Cookie-Karte bleibt (G7) */
@media (max-width: 29.99rem) {
  .hero { padding-top: calc(var(--header-h) + 1rem); }
  .hero h1 { font-size: 1.75rem; margin-bottom: .6rem; }
}
/* Schmale Handys (unter 24 rem): Cookie-Hinweis bleibt flach (T14) */
@media (max-width: 23.99rem) {
  .leistung-karte { grid-template-columns: 6.5rem minmax(0, 1fr); }   /* Textspalte breit genug für „Objektbetreuung“ (T11) */
  .grafik-flaeche { padding: .5rem; }   /* hochkante Grafik bekommt die Breite, Ortsschrift bleibt über 11,5 px (T16) */
  .card:not(.leistung-karte) { padding: 1.15rem; }
  .preistabelle { font-size: .9rem; }
  .cookie-banner { padding: .75rem .9rem; }
  .cookie-banner-inner { gap: .5rem; }
  .cookie-banner-title { margin-bottom: 0; }
  .cookie-banner-text { line-height: 1.4; }
  .direktwahl a { padding-right: .7rem; }
}
/* Sehr schmal (unter 20 rem): Logo kleiner, damit der Name ganz bleibt (T12) */
@media (max-width: 19.99rem) {
  .header-inner { gap: .5rem; }
}

/* 22 · Rückfälle --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html, html.smooth-scroll { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal-element { opacity: 1; transform: none; }
}
@media (scripting: none) {
  .reveal-element { opacity: 1 !important; transform: none !important; }
  .burger, .nav-mobile { display: none !important; }
  .nav-haupt { display: block; }
  .nav-haupt > ul { flex-wrap: wrap; }
  .untermenue { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 .5rem; min-width: 0; }
  .nav-gruppe { display: flex; flex-wrap: wrap; align-items: center; }
  .untermenue { display: flex; flex-wrap: wrap; }
  .header-inner { height: auto; min-height: var(--header-bar-h); flex-wrap: wrap; padding-block: .5rem; }
  /* Der ausgeschriebene Kopf steht im Fluss (T8) */
  :root { --header-h: 0px; }
  .site-header { position: relative; }
  .kopf-aktionen .kopf-anruf { width: auto; height: auto; padding: .7rem 1.1rem; }
  .kopf-knopf-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
}

/* 23 · Druck ------------------------------------------------------------- */
@media print {
  .site-header, .nav-mobile, .burger, .cookie-banner, .toasts, .site-footer, .btn, .btn-row, form, .vergleich-regler, .vergleich-linie { display: none !important; }
  .reveal-element { opacity: 1 !important; transform: none !important; }
  body::before { content: "Hausmeisterservice Süd · Weißerlenstraße 1B, 79108 Freiburg · 0176 43658481 · 0178 6356701"; display: block; border-bottom: 1px solid #000; padding-bottom: 4mm; margin-bottom: 6mm; font-size: 10pt; }
  .hero, .seitenkopf, .rechtsseite { padding-top: 0; }
  .hero-raster, .zwei-spalten, .seitenkopf-inner, .abschluss { display: block; }
  .section--dunkel::before { display: none; }
  img { max-height: 85mm; object-fit: contain; }
  .faq-item, .card, .fall, .turnus { page-break-inside: avoid; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* Sehr schmal (320 px, auch große Schrift): Teamkarten einspaltig im Querformat wie .team--zwei (T11) */
@media (max-width: 22.49rem) {
  .team:not(.team--zwei) { grid-template-columns: 1fr; }
  .team .person { flex-direction: row; }
  .team .person img { width: 7.5rem; flex: none; }
  .preistabelle th, .preistabelle td { padding-inline: .15rem; font-size: .92rem; }   /* drei Spalten passen auch mit großer Schrift */
  .grafik-flaeche { padding: .25rem; }
}
