/* =====================================================================
   SlyClean – Gestaltung
   Schlicht, hell, eine Akzentfarbe. Gilt für beide Bereiche gleich.
   Farben und Abstände stehen ganz oben als "Variablen" (--name).
   ===================================================================== */

/* ---------- Schrift: Inter lokal, nur als Ersatz für Nicht-Apple-Geräte ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben und Maße (Briefing Abschnitt 3) ---------- */
:root {
  --background: #FFFFFF;
  --surface: #F5F5F7;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --line: #D2D2D7;
  --accent: #25629D;
  --accent-hover: #1B4B7A;
  --whatsapp: #15803D;      /* kräftiger als im Briefing (#1FA855), damit weiße Schrift gut lesbar ist */
  --warn: #9A5B00;          /* kräftiger als im Briefing (#B86E00), besser lesbar */
  --error: #C0392F;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;

  --radius-card: 20px;
  --radius-small: 12px;
  --max-width: 980px;
  --page-pad: 22px;
  --section-pad: 72px;
  --header-h: 104px; /* Handy: zwei Zeilen (Logo + Umschalter) */
}
@media (min-width: 760px) {
  :root { --section-pad: 112px; --header-h: 56px; --page-pad: 32px; }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* Gut sichtbarer Fokusrahmen für Tastaturbedienung */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Sprunglink "Zum Inhalt" – erscheint nur bei Tastaturbedienung */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }

.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--page-pad));
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ---------- Kopfzeile (Milchglas, bleibt oben stehen) ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.kopf-innen {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "logo wa" "nav nav";
  align-items: center;
  gap: 8px 12px;
  padding-top: 8px; padding-bottom: 10px;
}
.logo {
  grid-area: logo;
  font-size: 21px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text);
}
.logo { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.logo:hover { color: var(--text); text-decoration: none; }
.logo picture { display: block; flex: none; }
.logo-bild { width: 36px; height: 36px; }
.kopf .btn-wa { grid-area: wa; }
.umschalter { grid-area: nav; }

@media (min-width: 760px) {
  .kopf-innen {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "logo nav wa";
    height: var(--header-h);
    padding-top: 0; padding-bottom: 0;
  }
  .kopf .btn-wa { justify-self: end; }
}

/* Umschalter (Segmented Control wie in iOS) */
.umschalter {
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 10px;
  padding: 2px;
}
.umschalter a {
  display: flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 16px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: background-color .2s, box-shadow .2s;
}
.umschalter a:hover { text-decoration: none; color: var(--text); }
.umschalter a[aria-current="page"] {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  font: inherit; font-size: 17px; font-weight: 500;
  cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-wa { background: var(--whatsapp); }
.btn-wa:hover { background: #116A33; }
.btn-klein { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-klein svg { width: 18px; height: 18px; }

/* Nebenknopf: Text-Link mit › */
.link-mehr { font-size: 17px; display: inline-flex; align-items: center; min-height: 44px; }
.link-mehr::after { content: "\203A"; margin-left: 4px; font-size: 1.15em; line-height: 1; }

.knoepfe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }

/* Kleines blaues Etikett (Pille) */
.etikett {
  display: inline-block;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: 0;
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: var(--section-pad) 0; }
.abschnitt-grau { background: var(--surface); }

.oberzeile {
  font-size: 17px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 8px;
}
.ueberschrift-gross {
  font-size: clamp(40px, 9vw, 80px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
}
.ueberschrift {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.025em;
}
.einleitung {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4; color: var(--text-secondary);
  max-width: 34em;
}
.zentriert { text-align: center; }
.zentriert .einleitung { margin-left: auto; margin-right: auto; }

/* Hero: Überschrift, ein Satz, zwei Knöpfe, ein großes Bild – in beiden Bereichen gleich */
.hero { padding-top: 56px; padding-bottom: var(--section-pad); text-align: center; }
.hero .etikett { margin-bottom: 16px; }
.hero .einleitung { margin: 16px auto 24px; }
.hero-bild { margin-top: 48px; }

/* Platzhalter, nur solange der Bereich noch gebaut wird */
.platzhalter {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4 / 3; max-width: 820px; margin: 0 auto;
  border-radius: var(--radius-card);
  background: var(--surface); color: var(--text-secondary);
  font-size: 15px; padding: 24px;
}

/* ---------- Karten ---------- */
.karten { display: grid; gap: 16px; }
@media (min-width: 760px) { .karten-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.karte {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
}
.abschnitt-grau .karte { background: var(--background); }
.karte { min-width: 0; }
@media (max-width: 359px) {
  .karte { padding: 20px; }
  .preistabelle { font-size: 14px; }
}

/* ---------- Kontakt (am Ende jedes Bereichs) ---------- */
.kontakt .einleitung { margin: 12px auto 28px; }
.kontakt-wege { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.kontakt-wege a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.kontakt-wege .btn { margin-right: 4px; }
.symbol { width: 22px; height: 22px; flex: none; }

/* ---------- Fußzeile ---------- */
.fuss {
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px; line-height: 1.6;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}
.fuss-spalten { display: grid; gap: 24px; }
@media (min-width: 760px) { .fuss-spalten { grid-template-columns: 2fr 1fr 1fr; } }
.fuss h2 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin: 2px 0; }
.fuss a { color: var(--text-secondary); }
.fuss a:hover { color: var(--text); }
.fuss-unten { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Hinweis, falls config.js einen Fehler hat ---------- */
.config-fehler {
  background: var(--error); color: #fff;
  padding: 14px var(--page-pad); font-size: 15px; text-align: center;
}

/* ---------- Ruhiges Einblenden beim Bereichswechsel ---------- */
.bereich.einblenden { animation: einblenden .35s ease-out; }
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* "Bewegung reduzieren" in den Geräte-Einstellungen: keine Animationen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Zahlen in Preisen gleich breit, damit Spalten sauber untereinander stehen */
.preis, .betrag { font-variant-numeric: tabular-nums; }

/* =====================================================================
   Bereich Fensterreinigung
   ===================================================================== */

/* ---------- Vorher-Nachher-Regler ---------- */
.vergleich-figur { margin-left: 0; margin-right: 0; }
.vergleich {
  --pos: 50%;
  position: relative;
  max-width: 820px; margin: 0 auto;
  aspect-ratio: 3 / 2;  /* Fotos 1200 × 800, an Glaskante und Leiste ausgerichtet */
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;          /* am Handy: senkrecht scrollen bleibt möglich */
  cursor: ew-resize;
}
.vergleich img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.vergleich-vorher {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.vergleich-etikett {
  position: absolute; top: 14px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 13px; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
}
.vergleich-etikett.links { left: 14px; }
.vergleich-etikett.rechts { right: 14px; }
.vergleich-griff {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 44px; margin-left: -22px;   /* große Greiffläche, dünne Linie */
  display: flex; align-items: center; justify-content: center;
  outline: none;
}
.vergleich-griff::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}
.vergleich-knopf {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.vergleich-knopf svg { width: 22px; height: 22px; }
.vergleich-griff:focus-visible .vergleich-knopf { outline: 3px solid var(--accent); outline-offset: 3px; }
.bildunterschrift {
  margin-top: 14px; font-size: 14px; color: var(--text-secondary); text-align: center;
}

/* ---------- Hinweis "Neu: Geschirrverleih" ---------- */
.neu-hinweis-wrap { padding-bottom: var(--section-pad); margin-top: calc(var(--section-pad) * -0.4); }
.neu-hinweis {
  display: flex; align-items: center; gap: 14px;
  max-width: 820px; margin: 0 auto;
  padding: 18px 22px;
  background: var(--surface); border-radius: var(--radius-card);
  color: var(--text);
}
.neu-hinweis:hover { text-decoration: none; color: var(--text); background: #EDEDF0; }
.neu-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.neu-text strong { font-size: 19px; font-weight: 600; }
.neu-text span { color: var(--text-secondary); font-size: 15px; }
.neu-link { color: var(--accent); min-height: 0; white-space: nowrap; }

/* ---------- Leistungen ---------- */
.abstand-oben { margin-top: 40px; }
.abstand-oben-klein { margin-top: 16px; }
.karte h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 16px 0 8px; }
.karte p { color: var(--text-secondary); }
.karten-symbol {
  width: 40px; height: 40px;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Über uns ---------- */
.ueber { display: grid; gap: 40px; }
@media (min-width: 900px) { .ueber { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; } }
.vorteile { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.vorteile li { display: flex; gap: 16px; align-items: flex-start; }
.vorteile h3 { font-size: 19px; font-weight: 600; margin-bottom: 2px; }
.vorteile p { color: var(--text-secondary); }
.symbol-vorteil {
  width: 28px; height: 28px; flex: none; margin-top: 1px;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Ruhiges Einblenden beim Scrollen ----------
   Nur wenn JavaScript läuft (Klasse "js" am <html>), sonst ist alles sofort sichtbar. */
.js .einblend { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .einblend.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .einblend { opacity: 1; transform: none; }
}

/* =====================================================================
   Bereich Geschirrverleih
   ===================================================================== */

/* ---------- Hero: Gedeck aus Produktfotos ---------- */
.gedeck {
  display: flex; align-items: center; justify-content: center;
  max-width: 820px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.gedeck-teller { width: 64%; flex: none; }
.gedeck-teller img { width: 100%; }
/* Besteck liegt im Foto waagerecht – für das Gedeck senkrecht drehen (Spitze nach oben) */
.gedeck-besteck { position: relative; align-self: stretch; width: 8%; flex: none; }
.gedeck-besteck img {
  position: absolute; top: 50%; left: 50%;
  width: 560%; max-width: none;  /* ≈ 80 % der Gedeck-Höhe */
  transform: translate(-50%, -50%) rotate(90deg);
}
.gedeck-gabel { margin-right: -1%; }
.gedeck-messer { margin-left: -1%; }
/* Fotos sind auf Weiß: "multiply" lässt das Weiß durchsichtig wirken, damit sich nichts überdeckt */
.gedeck img { mix-blend-mode: multiply; }

/* ---------- Sortiment ---------- */
.gruppe-kopf { margin-top: 48px; margin-bottom: 16px; }
.gruppe-titel { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.gruppe-info { color: var(--text-secondary); margin-top: 2px; }
.produkte {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) { .produkte { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .produkte { grid-template-columns: repeat(var(--spalten, 4), 1fr); } }
.produkt {
  background: var(--background);
  border-radius: var(--radius-card);
  padding: 12px 12px 18px;
}
.produkt-foto { border-radius: var(--radius-small); overflow: hidden; background: #fff; }
.produkt-foto img { width: 100%; }
.produkt-name { font-size: 17px; font-weight: 600; margin: 10px 6px 2px; }
.produkt-details { font-size: 14px; color: var(--text-secondary); margin: 0 6px; line-height: 1.4; }
.produkt-preis { font-size: 14px; color: var(--text-secondary); margin: 8px 6px 0; }
.produkt-preis strong { color: var(--text); font-size: 17px; font-weight: 600; }

/* ---------- Ungespült zurückgeben ---------- */
.rueckgabe { display: grid; gap: 32px; }
@media (min-width: 900px) { .rueckgabe { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; } }
.hinweis-karte h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.hinweis-karte p { color: var(--text); }

/* ---------- Preise und Konditionen ---------- */
.preise-raster { display: grid; gap: 16px; }
@media (min-width: 900px) { .preise-raster { grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; } }
.karte-titel { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 12px; }
.preistabelle { width: 100%; border-collapse: collapse; font-size: 16px; }
.preistabelle th, .preistabelle td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.preistabelle thead th { font-size: 13px; font-weight: 600; color: var(--text-secondary); padding-top: 0; }
.preistabelle .betrag { text-align: right; padding-left: 12px; white-space: nowrap; }
.preistabelle tbody tr:last-child th, .preistabelle tbody tr:last-child td { border-bottom: 0; }
.kleingedruckt { font-size: 13px; color: var(--text-secondary); margin-top: 12px; }
.konditionen { margin: 0; }
.konditionen > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.konditionen > div:first-child { padding-top: 0; }
.konditionen > div:last-child { border-bottom: 0; padding-bottom: 0; }
.konditionen dt { font-weight: 600; }
.konditionen dd { margin: 2px 0 0; color: var(--text-secondary); }

/* =====================================================================
   Personenrechner und Preisaufstellung
   ===================================================================== */
.zentriert-block { text-align: center; margin-left: auto; margin-right: auto; }
.rechner { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .rechner { grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
  .rechner-summe { position: sticky; top: calc(var(--header-h) + 20px); }
}
.rechner-eingaben { display: grid; gap: 16px; }
@media (min-width: 900px) { .rechner-eingaben { gap: 20px; } }

/* Eine Zeile mit Text links und Bedienelement rechts (wie in den iPhone-Einstellungen) */
.zeile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.karte-titel + .zeile, .karte-titel + div > .zeile:first-child { border-top: 0; padding-top: 0; }
.zeile-text { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; cursor: pointer; }
.zeile-titel { font-weight: 500; }
.zeile-info { font-size: 14px; color: var(--text-secondary); line-height: 1.35; }
.zeile.ist-aus .zeile-text { opacity: 0.45; }

/* iOS-Schalter */
.schalter {
  -webkit-appearance: none; appearance: none;
  position: relative; flex: none;
  width: 51px; height: 31px; margin: 0;
  border-radius: 999px;
  background: #E9E9EB;
  cursor: pointer;
  transition: background-color .2s;
}
.schalter::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.15);
  transition: transform .2s;
}
.schalter:checked { background: var(--accent); }
.schalter:checked::after { transform: translateX(20px); }
.schalter:disabled { opacity: 0.45; cursor: default; }
.schalter:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 999px; }

.anlass-status { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* Plus/Minus-Stepper */
.stepper {
  display: inline-flex; align-items: center; flex: none;
  background: var(--background);
  border-radius: 10px;
  padding: 2px;
}
.abschnitt-grau .stepper, .karte .stepper { background: #E8E8ED; }
.stepper-knopf {
  width: 40px; height: 40px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--accent);
  font: inherit; font-size: 22px; line-height: 1;
  cursor: pointer;
}
.stepper-knopf:hover:not(:disabled) { background: rgba(0, 0, 0, 0.05); }
.stepper-knopf:disabled { color: #AEAEB2; cursor: default; }
.stepper input {
  width: 64px; height: 36px;
  border: 0; border-radius: 6px;
  background: #fff;
  font: inherit; font-size: 17px; text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stepper input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

.mengen-gruppe { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 2px; }
.mengen-gruppe:first-child { margin-top: 0; }
.mengen-gruppe + .zeile { border-top: 0; }
.menge-meldung { flex-basis: 100%; margin: 0; font-size: 14px; }
@media (max-width: 420px) {
  .stepper-knopf { width: 36px; }
  .stepper input { width: 52px; }
}
.menge-meldung:empty { display: none; }
.hat-hinweis .menge-meldung { color: var(--warn); }
.hat-hinweis .stepper input { box-shadow: inset 0 0 0 2px var(--warn); }
.hat-sperre .menge-meldung { color: var(--error); }
.hat-sperre .stepper input { box-shadow: inset 0 0 0 2px var(--error); }

/* Preisaufstellung wie eine Checkout-Zusammenfassung */
.aufstellung-dauer { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.aufstellung-leer { color: var(--text-secondary); padding: 12px 0 4px; }
.posten { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.posten-links { display: flex; flex-direction: column; min-width: 0; }
.posten-unter { font-size: 13px; color: var(--text-secondary); }
.posten-betrag { white-space: nowrap; }
.posten-liste { padding-bottom: 8px; }
.posten-summen { border-top: 1px solid var(--line); padding: 8px 0; }
.posten-fett { font-weight: 600; }
.posten-gesamt {
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-top: 2px;
  font-size: 21px; font-weight: 700; letter-spacing: -0.015em;
}

/* Summenleiste unten am Handy */
.summenleiste { display: none; }
@media (max-width: 759px) {
  .summenleiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--page-pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  .summenleiste-text { display: flex; flex-direction: column; line-height: 1.2; }
  .summenleiste-text span { font-size: 13px; color: var(--text-secondary); }
  .summenleiste-text strong { font-size: 21px; font-weight: 700; }
  /* Platz unten lassen, damit die Leiste nichts verdeckt */
  body:has(#geschirrverleih:not([hidden]) .summenleiste:not([hidden])) { padding-bottom: 76px; }
}

/* =====================================================================
   Wunschtermin und Anfrage
   ===================================================================== */
.datum-felder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.datum-feld { min-width: 0; }
@media (max-width: 479px) { .datum-felder { grid-template-columns: minmax(0, 1fr); } }
.datum-feld input { min-width: 0; max-width: 100%; }
.datum-feld label, .feld label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.datum-feld input, .feld input, .feld textarea {
  display: block; width: 100%;
  min-height: 44px; padding: 10px 12px;
  border: 1px solid transparent; border-radius: 10px;
  background: #E8E8ED; color: var(--text);
  font: inherit; font-size: 17px;   /* 17px: iPhone zoomt beim Tippen nicht hinein */
}
.abschnitt-grau .feld input, .abschnitt-grau .feld textarea { background: var(--surface); }
.datum-feld input { -webkit-appearance: none; appearance: none; }
.feld textarea { resize: vertical; min-height: 88px; }
.datum-feld input:focus-visible, .feld input:focus-visible, .feld textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 0; background: #fff; border-color: var(--line);
}
[aria-invalid="true"] { border-color: var(--error) !important; }
.termin-info { font-size: 15px; color: var(--text-secondary); margin-top: 10px; }
.termin-info.ist-fehler { color: var(--error); }

.anfrage { max-width: 820px; }
.formular-felder { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .formular-felder { grid-template-columns: 1fr 1fr; }
  .feld-breit { grid-column: 1 / -1; }
}
.pflicht { color: var(--text-secondary); }
.feld-fehler { color: var(--error); font-size: 14px; margin-top: 4px; }
.feld-fehler:empty { display: none; }
.anfrage-auswahl {
  margin-top: 20px; padding: 14px 16px;
  background: var(--surface); border-radius: var(--radius-small);
  font-size: 15px;
}
.anfrage-auswahl .link-mehr { font-size: 15px; min-height: 0; }
.anfrage-vorschau { margin-top: 10px; font-size: 15px; }
.anfrage-vorschau summary { cursor: pointer; color: var(--accent); display: inline-block; padding: 6px 0; }
.anfrage-vorschau pre {
  white-space: pre-wrap; word-break: break-word;
  font: inherit; font-size: 14px; line-height: 1.5;
  background: var(--surface); border-radius: var(--radius-small);
  padding: 14px 16px; margin: 6px 0 0;
}
.anfrage-fehler { margin-top: 14px; text-align: center; }
.anfrage-knoepfe { margin-top: 20px; }
.anfrage-knoepfe .btn { flex: 1 1 240px; max-width: 320px; }
.anfrage-karte .kleingedruckt { margin-top: 14px; }
.anfrage-danach {
  margin-top: 16px; padding: 14px 16px;
  background: var(--surface); border-radius: var(--radius-small);
  text-align: center;
}

/* =====================================================================
   Unterseiten: Impressum, Datenschutz
   ===================================================================== */
.rechtliches { max-width: calc(720px + 2 * var(--page-pad)); padding-top: 56px; padding-bottom: var(--section-pad); }
.rechtliches h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 32px 0 8px; }
.rechtliches p, .rechtliches li { color: var(--text); }
.rechtliches ul { padding-left: 1.2em; margin: 0; }
.rechtliches li { margin: 4px 0; }
.entwurf-hinweis {
  margin-top: 20px; padding: 14px 16px;
  background: #FFF4DB; border-radius: var(--radius-small);
  font-size: 15px;
}
/* Gelb markierte Lücken – fallen weg, sobald die echten Angaben eingetragen sind */
.luecke { background: #FFF4DB; color: var(--warn); border-radius: 4px; padding: 0 4px; }
.fuss a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* =====================================================================
   Kontaktformular Fensterreinigung
   ===================================================================== */
.fenster-formular { max-width: 820px; margin: 0 auto; text-align: left; }
.feld-gruppe { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.feld-gruppe legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.formular-felder .feld-gruppe { margin-bottom: 0; }
/* Auswahl-Chips: antippen = ausgewählt (blau) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: #E8E8ED; color: var(--text);
  font-size: 15px; font-weight: 500; transition: background-color .15s, color .15s;
}
.abschnitt-grau .chip span { background: var(--surface); }
.chip input:checked + span { background: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.feld select {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 17px;
}
.feld select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; background: #fff; border-color: var(--line); }
.kontakt-oder { margin: 32px 0 12px; color: var(--text-secondary); font-size: 15px; }

/* Überschrift mit Oberzeile in einem h1 (für Suchmaschinen), sieht aus wie vorher */
.hero-titel { margin: 0; font-weight: inherit; }
.hero-titel > .oberzeile { display: block; margin-bottom: 8px; }
.hero-titel > .ueberschrift-gross { display: block; }

/* Hilfsklassen statt style="..." im HTML (nötig für die Sicherheitsregel Content-Security-Policy) */
.symbol-sammlung { position: absolute; }
.abstand-28 { margin-top: 28px; }

/* Freiwillige Felder (z. B. Telefon) */
.freiwillig { color: var(--text-secondary); font-weight: 400; }
.feld-hinweis { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
