/* Öffentliche Website — Design-Tokens und Bausteine aus dem Klickbeispiel.
   Hell/Dunkel folgt dem System, hoher Kontrast über prefers-contrast. */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2?v=5.3.0) format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-latin-400-italic.woff2?v=5.3.0) format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2?v=5.3.0) format("woff2");
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/lexend-latin-wght-normal.woff2?v=5.3.0) format("woff2");
}

/* ---------- Tokens hell ---------- */
:root {
  color-scheme: light;
  --f-text: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-disp: "Lexend", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --sky-1: #3F87E2; --sky-2: #79B0EF; --sky-3: #CBE1F9;
  /* Held: dunkler als der App-Himmel, damit weiße Schrift AA erreicht */
  --held-1: #134F9E; --held-2: #1A63C7;
  --grund: #EDF3FA;
  --karte: #FFFFFF;
  --karte-2: #F2F6FB;
  --tinte: #0F2238;
  --tinte-2: #31465F;
  --tinte-3: #4E627A;
  --linie: #D3DEEA;
  --akzent: #1A63C7;
  --auf-akzent: #FFFFFF;
  --akzent-weich: #E0ECFB;
  --sonne: #F2A922;
  --gut: #2E7D32;
  --schatten: 0 1px 2px rgba(15,34,56,.06), 0 10px 28px -14px rgba(15,34,56,.28);
  --r-s: 12px; --r-m: 18px; --r-l: 26px;
  --ziel: 56px;   /* Tippfläche */
  --kl: 1px;      /* Linienstärke */
  --breite: 1100px;
  --rand: 16px;
}

/* ---------- Tokens dunkel ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --sky-1: #0E213A; --sky-2: #17345A; --sky-3: #1D3D66;
    --held-1: #0E213A; --held-2: #17345A;
    --grund: #0B1522; --karte: #142339; --karte-2: #1A2C46;
    --tinte: #EEF4FB; --tinte-2: #C6D3E3; --tinte-3: #A3B5CA; --linie: #2A3F5B;
    --akzent: #82B8FF; --auf-akzent: #061E3C; --akzent-weich: #1C3558;
    --sonne: #FFC54D; --gut: #7CCB80;
    --schatten: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.7);
  }
}

/* ---------- Hoher Kontrast ---------- */
@media (prefers-contrast: more) {
  :root {
    --tinte: #000000; --tinte-2: #0D1520; --tinte-3: #1E2A38; --linie: #56687D;
    --akzent: #0B4A9E; --karte-2: #EAF0F7; --kl: 2px;
    --held-1: #0A2F66; --held-2: #0B4A9E;
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --tinte: #FFFFFF; --tinte-2: #F0F5FB; --tinte-3: #DCE6F2; --linie: #9AB0C9;
    --akzent: #B3D4FF; --karte: #000000; --karte-2: #0E1826; --grund: #000000;
    --held-1: #000000; --held-2: #0E1826;
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--f-text);
  font-size: 1.125rem;
  line-height: 1.5;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--akzent); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
main { flex: 1; }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px;
}
.held :is(a, button):focus-visible { outline-color: #FFFFFF; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nur-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sprungmarke zum Inhalt */
.sprung {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  display: inline-flex; align-items: center; min-height: var(--ziel); padding: 0 20px;
  background: var(--akzent); color: var(--auf-akzent); font-weight: 700; border-radius: 99px;
  text-decoration: none;
}
.sprung:focus { top: 12px; }

/* Breite begrenzen */
.rahmen { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }

/* ---------- Typo ---------- */
.t-gross  { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.t-titel  { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.t-mittel { font-family: var(--f-disp); font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.t-text   { font-size: 1.125rem; line-height: 1.55; }
.t-klein  { font-size: 1rem; line-height: 1.45; color: var(--tinte-2); }
.t-etikett{ font-size: .95rem; font-weight: 700; color: var(--tinte-3); }
.t-zahl   { font-family: var(--f-disp); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-fett   { font-weight: 700; }

/* ---------- Layout-Bausteine ---------- */
.abschnitt { padding: 32px 0; display: flex; flex-direction: column; gap: 18px; }
.abschnitt + .abschnitt { padding-top: 8px; }
.stapel { display: flex; flex-direction: column; gap: 12px; }
.stapel--eng { gap: 6px; }
.stapel--weit { gap: 22px; }
.reihe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.raster { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.seitenkopf { padding: 32px 0 8px; display: flex; flex-direction: column; gap: 8px; max-width: 46rem; }

/* ---------- Kopf ---------- */
/* Schmal: oben Logo, „App laden“ und „Anmelden“, darunter das Menü als waagrecht wischbare
   Leiste — der Kopf bleibt zwei Zeilen hoch und scrollt mit weg; „App laden“ steht immer
   im ersten sichtbaren Bereich. Breit: alles in einer Zeile, der Kopf bleibt oben stehen. */
.webkopf { background: var(--karte); border-bottom: var(--kl) solid var(--linie); }
.webkopf__innen { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 4px; }
.webkopf__marke {
  /* nie schmaler als das Logo: sonst schoben sich die Knöpfe darüber (Aufgabe 47) */
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  min-height: 48px; text-decoration: none; color: var(--tinte); cursor: pointer;
}
/* Logo: feste Höhe, Breite aus dem Seitenverhältnis — nie verzerrt oder beschnitten */
.webkopf__logo { display: block; flex: none; height: 42px; width: auto; max-width: none; object-fit: contain; }
.webkopf__name { font-family: var(--f-disp); font-weight: 600; font-size: .9375rem; line-height: 1.15; }
.webkopf__name small { display: block; font-family: var(--f-text); font-weight: 400; font-size: .8125rem; color: var(--tinte-2); }
/* Zu schmal für den Namen: nur sichtbar ausblenden — er bleibt der Name des Links (das Logo
   hat alt=""), und das Logo trägt den Schriftzug selbst. Tablet: Platz fürs Menü. */
@media (max-width: 559.98px), (min-width: 900px) and (max-width: 1199.98px) {
  .webkopf__name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.webkopf__aktionen { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-left: auto; }
/* Reicht die Zeile nicht für Logo und beide Knöpfe, stehen die Knöpfe in einer eigenen Zeile darunter */

/* Anmeldestatus (static/js/konto.js setzt <html data-konto>): ohne Skript wie bisher „Anmelden“ */
.webkopf__konto { display: inline-flex; border-radius: 99px; }
html:not([data-konto="angemeldet"]) [data-nur="angemeldet"] { display: none; }
html[data-konto="angemeldet"] [data-nur="gast"],
html[data-konto="angemeldet"] a[href^="/app/registrieren"] { display: none; }
/* während der Prüfung: Platz halten, nichts Falsches zeigen */
html[data-konto="pruefen"] .webkopf__konto { background: var(--karte-2); }
html[data-konto="pruefen"] .webkopf__konto [data-nur="gast"] { visibility: hidden; }
.webkopf .knopf--klein { min-height: 46px; padding: 0 14px; font-size: .9375rem; }
/* Schmale Handys: Knöpfe etwas kompakter, damit sie meist noch neben das Logo passen */
@media (max-width: 439.98px) {
  .webkopf__aktionen { gap: 6px; }
  .webkopf .knopf--klein { padding: 0 11px; }
  .webkopf .knopf--klein svg { width: 18px; height: 18px; }
}
/* „App laden“: auffälliger Knopf in der Akzentfarbe */
.knopf--app { gap: 6px; background: var(--akzent); color: var(--auf-akzent); box-shadow: var(--schatten); }
.knopf--app svg { width: 20px; height: 20px; }
.knopf--app[aria-current="page"] { box-shadow: 0 0 0 3px var(--akzent-weich); }
.knopf--app:hover { text-decoration: underline; }
/* Menü: eine Zeile, bei Platzmangel waagrecht wischbar — nie breiter als das Fenster */
.webnav { order: 3; flex: 1 1 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.webnav::-webkit-scrollbar { display: none; }
/* Steht die aktive Seite hinten im Menü, beginnt die Leiste am rechten Ende — so ist sie
   ohne Wischen sichtbar (die Reihenfolge der Punkte bleibt) */
.webnav:has(li:nth-last-child(-n+2) > a[aria-current]) { direction: rtl; }
.webnav ul { direction: ltr; display: flex; flex-wrap: nowrap; gap: 2px; width: max-content; min-width: 100%; padding: 3px; }
.webnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 99px;
  color: var(--tinte-2); font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.webnav a:hover { background: var(--karte-2); }
.webnav a[aria-current="page"] { background: var(--akzent-weich); color: var(--akzent); }
@media (prefers-contrast: more) {
  .webnav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
}

/* ---------- Fuß ---------- */
/* Kompakt: Marke mit Claim, Kontakt, Social-Media-Icons, rechtliche Links in einer Zeile,
   Kündigungsknopf eigenständig darunter, ganz unten das Copyright. Schmal untereinander,
   ab Tablet Marke/Kontakt/Social nebeneinander. */
.webfuss {
  margin-top: 40px; padding: 24px 0 calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--karte-2); border-top: var(--kl) solid var(--linie); color: var(--tinte-2); font-size: .9375rem;
}
.webfuss__innen {
  display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "marke" "kontakt" "sozial" "recht" "copy";
}
.webfuss__marke { grid-area: marke; display: flex; align-items: center; gap: 12px; }
.webfuss__logo { display: block; flex: none; height: 44px; width: auto; max-width: none; object-fit: contain; }
.webfuss__name { display: block; font-family: var(--f-disp); font-weight: 600; font-size: 1.05rem; line-height: 1.2; color: var(--tinte); }
.webfuss__claim { display: block; line-height: 1.35; }
.webfuss a { color: var(--tinte); font-weight: 700; text-decoration: none; }
.webfuss a:hover { text-decoration: underline; }
.webfuss__kontakt { grid-area: kontakt; display: flex; flex-wrap: wrap; gap: 0 20px; }
.webfuss__kontakt li { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; }
.webfuss__kontakt svg { flex: none; width: 20px; height: 20px; color: var(--akzent); }
.webfuss__kontakt small { display: block; font-size: .875rem; }
.webfuss__kontakt li > span { min-width: 0; }
.webfuss .umbruch { overflow-wrap: anywhere; }
.webfuss__sozial { grid-area: sozial; }
.webfuss__sozial ul { display: flex; flex-wrap: wrap; gap: 10px; }
.webfuss__sozial a {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 99px; background: var(--karte); border: var(--kl) solid var(--linie); color: var(--tinte);
}
.webfuss__sozial a:hover { background: var(--akzent-weich); color: var(--akzent); }
.webfuss__sozial svg { width: 24px; height: 24px; }
.webfuss__recht {
  grid-area: recht; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding-top: 12px; border-top: var(--kl) solid var(--linie);
}
.webfuss__recht ul { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; margin-left: -4px; }
.webfuss__recht li { display: flex; align-items: center; }
.webfuss__recht ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; }
.webfuss__recht a[aria-current="page"] { color: var(--akzent); }
/* Kündigungsbutton: eigenständig, gut sichtbar als Knopf mit Rand */
.webfuss__kuendigen {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  border: 2px solid var(--tinte); border-radius: 99px; background: var(--karte);
}
.webfuss__kuendigen:hover, .webfuss__kuendigen:focus-visible { background: var(--akzent-weich); }
.webfuss__copy { grid-area: copy; font-size: .875rem; color: var(--tinte-3); }
@media (prefers-contrast: more) {
  .webfuss a { text-decoration: underline; }
  .webfuss__sozial a { text-decoration: none; }
}

/* ---------- Karten ---------- */
.karte {
  background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  border: var(--kl) solid transparent;
}
.karte--flach { box-shadow: none; border-color: var(--linie); }
.karte--akzent { background: var(--akzent-weich); box-shadow: none; }
@media (prefers-contrast: more) {
  .karte, .liste { border-color: var(--linie); }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--ziel); padding: 0 24px; border-radius: 99px; border: 2px solid transparent;
  font-family: var(--f-text); font-weight: 700; font-size: 1.125rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.knopf svg { width: 22px; height: 22px; flex: none; }
.knopf--haupt { background: var(--akzent); color: var(--auf-akzent); }
.knopf--zweit { background: var(--karte); color: var(--akzent); border-color: var(--akzent); }
.knopf--leise { background: var(--akzent-weich); color: var(--tinte); }
.knopf--block { width: 100%; }
.knopf--klein { min-height: var(--ziel); font-size: 1rem; padding: 0 18px; }
.knopf--kopf { background: var(--karte); color: var(--tinte); border-color: var(--linie); }
.knopf:hover { filter: brightness(1.06); }
.knopf--haupt:hover { text-decoration: underline; }
.knopfreihe { display: flex; flex-direction: column; gap: 12px; }

/* Verweis mit Pfeil */
.mehr-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: var(--ziel); padding: 0 18px; border-radius: var(--r-m);
  background: var(--akzent-weich); color: var(--tinte); text-decoration: none; font-weight: 700;
}
.mehr-link svg { width: 22px; height: 22px; color: var(--akzent); flex: none; }

/* ---------- Held (Startseite) ---------- */
.held {
  position: relative; overflow: hidden; color: #FFFFFF;
  background: linear-gradient(170deg, var(--held-1) 0%, var(--held-2) 100%);
}
.held__innen { position: relative; display: grid; gap: 24px; padding-top: 36px; padding-bottom: 44px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.held__sonne {
  position: absolute; right: -60px; top: -40px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 45% 45%, rgba(255,233,166,.55) 0%, rgba(255,201,74,.3) 40%, rgba(255,201,74,0) 70%);
}
.held h1 { max-width: 18em; }
/* :where() hält die Regel schwach — die weiße Karte im Held (.beispiel) setzt ihre eigenen Farben */
.held :where(p) { color: #FFFFFF; }
.held .knopf--zweit { background: #FFFFFF; color: #0F2238; border-color: #FFFFFF; }
.held .knopf--haupt { background: #FFFFFF; color: #134F9E; }
.held .beispiel .knopf--haupt { background: var(--akzent); color: var(--auf-akzent); }
.held .knopf--rand { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.vermerk {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px;
  background: var(--karte-2); border: var(--kl) solid var(--linie); color: var(--tinte-2); font-weight: 700; font-size: .95rem;
}
.vermerk svg { width: 18px; height: 18px; flex: none; }

/* Beispiel-Wetter */
.beispiel, .beispiel :where(p) { color: var(--tinte); }
.beispiel .t-etikett { color: var(--tinte-2); }
.tage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tage > li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r-m); text-align: center; min-width: 0; }
.tage > li:first-child { background: var(--akzent-weich); }
.tage .t-zahl { font-size: 1.25rem; white-space: nowrap; }
.tage .min { color: var(--tinte-3); font-weight: 400; }
.wx { width: 44px; height: 44px; flex: none; }
.wx--gross { width: 64px; height: 64px; }
.beispiel__jetzt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.beispiel__jetzt .t-zahl { font-size: 2.6rem; line-height: 1; }
/* Gesperrtes wird benannt: was fehlt und wo man es bekommt */
.gesperrt { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: var(--kl) solid var(--linie); }
.gesperrt__zeile { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: var(--tinte-2); }
.gesperrt__zeile svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }

/* ---------- Nutzen ---------- */
.nutzen-karte { gap: 18px; }
.nutzen { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.symbol {
  width: 48px; height: 48px; border-radius: 16px; flex: none;
  display: grid; place-items: center; background: var(--akzent-weich); color: var(--akzent);
}
.symbol svg { width: 28px; height: 28px; }

/* ---------- Pakete ---------- */
.pakete { display: grid; gap: 28px 16px; grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
.paket { position: relative; gap: 14px; }
.paket--empfohlen { border: 3px solid var(--akzent); padding-top: 28px; }
.paket__band {
  position: absolute; top: -16px; left: 18px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 99px; background: var(--akzent); color: var(--auf-akzent); font-weight: 700; font-size: .95rem;
}
.paket__band svg { width: 18px; height: 18px; }
.paket__kopf { display: flex; flex-direction: column; gap: 4px; }
.paket__unter { color: var(--tinte-2); }
.preis { font-family: var(--f-disp); font-weight: 600; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.preis small { font-family: var(--f-text); font-weight: 400; font-size: 1rem; color: var(--tinte-2); }
.preis .ab { font-family: var(--f-text); font-weight: 700; font-size: 1rem; color: var(--tinte-2); }
.punkte { display: flex; flex-direction: column; gap: 8px; }
.punkte li { display: flex; gap: 10px; align-items: flex-start; }
.punkte svg { width: 24px; height: 24px; color: var(--gut); flex: none; margin-top: 2px; }
.paket .knopf { margin-top: auto; }
/* Umschalter Monat/Jahr ohne Skript: die Auswahlknöpfe stehen vor der Leiste und den Karten */
.zahlweise__wahl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zahlweise { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 99px; background: var(--karte-2); border: var(--kl) solid var(--linie); }
.zahlweise label { display: inline-flex; align-items: center; min-height: var(--ziel); padding: 0 18px; border-radius: 99px; font-weight: 700; color: var(--tinte-2); cursor: pointer; }
#zahlweise-monat:checked ~ .zahlweise label[for="zahlweise-monat"],
#zahlweise-jahr:checked ~ .zahlweise label[for="zahlweise-jahr"] { background: var(--akzent); color: var(--auf-akzent); }
#zahlweise-monat:focus-visible ~ .zahlweise label[for="zahlweise-monat"],
#zahlweise-jahr:focus-visible ~ .zahlweise label[for="zahlweise-jahr"] { outline: 3px solid var(--akzent); outline-offset: 3px; }
.preis-monat, .preis-jahr { display: flex; flex-direction: column; gap: 4px; }
/* ohne Stylesheet stehen beide Preise da; mit Stylesheet nur der gewählte */
.preis-jahr { display: none; }
#zahlweise-jahr:checked ~ .pakete .preis-monat { display: none; }
#zahlweise-jahr:checked ~ .pakete .preis-jahr { display: flex; }

/* Kurzform auf der Startseite */
.paket-kurz { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--r-m); background: var(--karte); border: var(--kl) solid var(--linie); }
.paket-kurz--empfohlen { border: 3px solid var(--akzent); }
/* Schilder umbrechen nur, wenn sie sonst aus der Zeile ragen (große Schrift, schmale Handys) */
.marke { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .9rem; font-weight: 700; background: var(--akzent-weich); color: var(--tinte); max-width: 100%; }

/* Vergleich (aufklappbar) */
.klapper { background: var(--karte); border-radius: var(--r-m); box-shadow: var(--schatten); border: var(--kl) solid var(--linie); }
.klapper > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--ziel); padding: 10px 18px; font-weight: 700; cursor: pointer; list-style: none;
}
.klapper > summary::-webkit-details-marker { display: none; }
.klapper > summary svg { width: 22px; height: 22px; color: var(--akzent); flex: none; transition: transform .18s; }
.klapper[open] > summary svg { transform: rotate(180deg); }
.klapper__inhalt { padding: 0 18px 18px; }
.tabelle-huelle { overflow-x: auto; }
.vergleich { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 1rem; }
.vergleich th, .vergleich td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: var(--kl) solid var(--linie); }
.vergleich thead th { font-family: var(--f-disp); font-weight: 600; }
.vergleich tbody th { font-weight: 700; color: var(--tinte-2); }
.vergleich .nein { color: var(--tinte-3); }
.vergleich td svg { width: 22px; height: 22px; color: var(--gut); vertical-align: middle; }
.vergleich tbody th .t-klein { font-weight: 400; color: var(--tinte-3); }
.vergleich .hervor { background: var(--akzent-weich); }

/* ---------- Listen ---------- */
.liste { display: flex; flex-direction: column; background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten); overflow: hidden; border: var(--kl) solid transparent; }
.zeile {
  display: flex; align-items: center; gap: 14px; min-height: calc(var(--ziel) + 8px);
  padding: 10px 16px; color: inherit; text-decoration: none;
  border-bottom: var(--kl) solid var(--linie);
}
.zeile:last-child { border-bottom: 0; }
.zeile__haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zeile__titel { font-weight: 700; }
.zeile__unter { font-size: 1rem; color: var(--tinte-2); }
.zeile .symbol { width: 44px; height: 44px; border-radius: 12px; }
.zeile .symbol svg { width: 24px; height: 24px; }

/* ---------- App laden ---------- */
.schritte { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.nummer {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--akzent); color: var(--auf-akzent); font-family: var(--f-disp); font-weight: 600; font-size: 1.35rem;
}
.laden {
  display: flex; align-items: center; gap: 14px; min-height: calc(var(--ziel) + 12px); padding: 8px 22px;
  border-radius: 99px; border: 2px dashed var(--linie); background: var(--karte-2); color: var(--tinte-2);
}
.laden svg { width: 30px; height: 30px; flex: none; }
.laden span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; color: var(--tinte); }
.laden small { font-weight: 400; font-size: .9rem; color: var(--tinte-2); }
.hinweis { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: var(--r-s); background: var(--karte-2); color: var(--tinte-2); font-size: 1rem; }
.hinweis svg { width: 20px; height: 20px; flex: none; color: var(--akzent); margin-top: 2px; }
/* Hinweisbalken in der Vorschau der Verwaltung (/vorschau/…) */
.vorschau-hinweis { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-s); border: 2px dashed var(--akzent); background: var(--akzent-weich); color: var(--tinte); font-weight: 700; }
.telefon { font-family: var(--f-disp); font-weight: 600; font-size: 1.6rem; line-height: 1.15; overflow-wrap: anywhere; }
.telefon a { color: var(--tinte); }

/* Team */
.team { display: flex; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--akzent); color: var(--auf-akzent);
  font-family: var(--f-disp); font-weight: 600; font-size: 1.35rem; border: 3px solid var(--karte);
}
.webcam__bild[hidden] { display: none; }
.webcam__leer { padding: 28px 16px; border-radius: var(--r-m); background: var(--karte-2); color: var(--tinte-2); text-align: center; }
.avatar + .avatar { margin-left: -12px; background: linear-gradient(160deg, #A8461A, #B8620F); }
.zahlgross { font-family: var(--f-disp); font-weight: 600; font-size: 1.9rem; line-height: 1.1; color: var(--akzent); }
/* Foto des Teams (Startseite): 4:3, Ausschnitt um den Fokuspunkt aus der Verwaltung. Ohne
   Inline-Stile (CSP): der Punkt kommt als Klassenpaar fx-/fy- im 5-%-Raster. */
.teambild { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); border-radius: var(--r-m); background: var(--karte-2); }
.fx-0{--fx:0%} .fx-5{--fx:5%} .fx-10{--fx:10%} .fx-15{--fx:15%} .fx-20{--fx:20%} .fx-25{--fx:25%} .fx-30{--fx:30%} .fx-35{--fx:35%} .fx-40{--fx:40%} .fx-45{--fx:45%} .fx-50{--fx:50%} .fx-55{--fx:55%} .fx-60{--fx:60%} .fx-65{--fx:65%} .fx-70{--fx:70%} .fx-75{--fx:75%} .fx-80{--fx:80%} .fx-85{--fx:85%} .fx-90{--fx:90%} .fx-95{--fx:95%} .fx-100{--fx:100%}
.fy-0{--fy:0%} .fy-5{--fy:5%} .fy-10{--fy:10%} .fy-15{--fy:15%} .fy-20{--fy:20%} .fy-25{--fy:25%} .fy-30{--fy:30%} .fy-35{--fy:35%} .fy-40{--fy:40%} .fy-45{--fy:45%} .fy-50{--fy:50%} .fy-55{--fy:55%} .fy-60{--fy:60%} .fy-65{--fy:65%} .fy-70{--fy:70%} .fy-75{--fy:75%} .fy-80{--fy:80%} .fy-85{--fy:85%} .fy-90{--fy:90%} .fy-95{--fy:95%} .fy-100{--fy:100%}
/* Zahlen statt Versprechen */
.zahlen { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.zahlen > .karte { gap: 4px; }
/* Amazon-Shop */
.amazon__bild { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-m); background: var(--karte-2); }
.held__dachzeile { color: #FFFFFF; }

/* Lesetext (Rechtliches, Blog-Artikel, Ortsseiten) */
.lesetext { display: flex; flex-direction: column; gap: 16px; max-width: 46rem; overflow-wrap: break-word; }
.lesetext p, .lesetext li, .lesetext dd { line-height: 1.7; }
.lesetext--vorspann { font-size: 1.2rem; }
.lesetext h2 { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); line-height: 1.25; margin-top: 12px; text-wrap: balance; }
.lesetext h3 { font-family: var(--f-disp); font-weight: 600; font-size: 1.25rem; line-height: 1.3; margin-top: 8px; }
.lesetext h4 { font-weight: 700; font-size: 1.125rem; }
.lesetext :is(ul, ol) { padding-left: 1.5em; display: flex; flex-direction: column; gap: 6px; }
.lesetext ul { list-style: disc; }
.lesetext ol { list-style: decimal; }
.lesetext dt { font-weight: 700; }
.lesetext a { font-weight: 700; }
.lesetext a.knopf { align-self: flex-start; }
.lesetext img { height: auto; border-radius: var(--r-m); }
.lesetext figure { display: flex; flex-direction: column; gap: 6px; }
.lesetext figcaption { font-size: 1rem; color: var(--tinte-2); }
.lesetext blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--akzent); color: var(--tinte-2); }
.lesetext hr { width: 100%; border: 0; border-top: var(--kl) solid var(--linie); }
.lesetext pre { overflow-x: auto; padding: 12px; background: var(--karte-2); border-radius: var(--r-s); font-size: 1rem; }
.lesetext table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 1rem; }
.lesetext :is(th, td) { padding: 10px; text-align: left; vertical-align: top; border-bottom: var(--kl) solid var(--linie); }
.lesetext th { font-weight: 700; }
/* Eingebettetes Video im Seitenverhältnis 16:9 */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--karte-2); border-radius: var(--r-m); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Brotkrumen */
.krume { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding-top: 16px; color: var(--tinte-2); font-size: 1rem; }
.krume a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--ziel); font-weight: 700; }
.krume svg { width: 22px; height: 22px; flex: none; }

/* Titelbild (Artikel, Ortsseite) */
.titelbild { margin-top: 12px; }
.titelbild img { display: block; width: 100%; height: auto; max-height: 30rem; object-fit: cover; border-radius: var(--r-l); }

/* Kacheln (Blog-Beiträge, Orte) */
.kacheln { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.kacheln > li { display: flex; }
.kachel {
  flex: 1; display: flex; flex-direction: column; min-height: var(--ziel); overflow: hidden;
  background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten);
  border: var(--kl) solid transparent; color: inherit; text-decoration: none;
}
.kachel:hover .kachel__titel { text-decoration: underline; }
.kachel__bild { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--karte-2); }
.kachel__text { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.kachel__titel { font-family: var(--f-disp); font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: var(--tinte); }
.kachel__zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
a.marke { color: var(--tinte); text-decoration: none; min-height: 32px; position: relative; }
/* kleine Marke, große Tippfläche */
a.marke::after { content: ""; position: absolute; inset: -12px -4px; }
a.marke:hover { text-decoration: underline; }
@media (prefers-contrast: more) { .kachel { border-color: var(--linie); } }

/* Inhalt mit Seitenspalte (Blog) */
.mit-seite { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Bezahlte Banner: 728×90 auf der Startseite, 300×250 in der Blog-Seitenleiste */
.werbebanner { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 16px auto; max-width: 100%; }
.werbebanner a { display: block; max-width: 100%; line-height: 0; }
.werbebanner__bild { display: block; max-width: 100%; height: auto; border-radius: var(--r-s); }
.werbebanner__hinweis { align-self: flex-start; font-size: .875rem; color: var(--tinte-2); letter-spacing: .04em; text-transform: uppercase; }
.werbebanner--breit { width: 728px; }
.werbebanner--seite { width: 300px; margin-top: 0; }
.kategorien { display: flex; flex-direction: column; }
.kategorien a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: var(--ziel); padding: 0 12px; margin: 0 -12px; border-radius: var(--r-s);
  color: var(--tinte); font-weight: 700; text-decoration: none;
}
.kategorien a:hover { background: var(--karte-2); }
.kategorien a[aria-current] { background: var(--akzent-weich); color: var(--akzent); }
@media (prefers-contrast: more) { .kategorien a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; } }

/* Blättern */
.blaettern ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.knopf--zahl { min-width: var(--ziel); padding: 0 12px; }
.knopf--aus { background: var(--karte-2); color: var(--tinte-3); border-color: var(--linie); cursor: default; }
.knopf--aus:hover { filter: none; }
.blaettern__luecke { min-width: 24px; text-align: center; color: var(--tinte-3); }

/* Zeilen mit Bild und Pfeil */
.liste > li { display: flex; flex-direction: column; border-bottom: var(--kl) solid var(--linie); }
.liste > li:last-child { border-bottom: 0; }
.liste > li > .zeile { border-bottom: 0; }
a.zeile:hover { background: var(--karte-2); }
.zeile__bild { width: 96px; height: 72px; flex: none; object-fit: cover; border-radius: var(--r-s); background: var(--karte-2); }
.zeile__pfeil { width: 22px; height: 22px; flex: none; color: var(--akzent); }

/* Zusatzmodule */
.zusatz { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 20px; }
.zusatz__text { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.preis--klein { font-size: 1.35rem; white-space: nowrap; }
.zusatz__jahr { display: block; font-family: var(--f-text); font-weight: 400; font-size: 1rem; color: var(--tinte-2); white-space: normal; }

/* Klimatabelle (Ortsseiten) */
.klima { width: 100%; min-width: 19rem; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.klima th, .klima td { padding: 12px 6px; text-align: left; vertical-align: top; border-bottom: var(--kl) solid var(--linie); }
.klima thead th { font-family: var(--f-disp); font-weight: 600; }
.klima tbody th small { display: block; font-weight: 400; color: var(--tinte-2); }

/* Webcams */
.webcam { gap: 16px; scroll-margin-top: 96px; }
.webcam__bild { display: block; width: 100%; height: auto; min-height: 8rem; border-radius: var(--r-m); background: var(--karte-2); }
.webcam__ort { width: 20px; height: 20px; flex: none; color: var(--akzent); }

/* ---------- Breitere Bildschirme ---------- */
@media (min-width: 700px) {
  :root { --rand: 24px; }
  .knopfreihe { flex-direction: row; flex-wrap: wrap; }
  .knopfreihe .knopf--block { width: auto; }
  .raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pakete { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .webfuss__innen { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "marke marke" "kontakt sozial" "recht recht" "copy copy"; align-items: center; column-gap: 24px; }
  .webfuss__recht { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  /* ab Tablet passt die Linkreihe in eine Zeile: Trennpunkte dazwischen */
  .webfuss__recht ul { column-gap: 4px; }
  .webfuss__recht li:not(:last-child)::after { content: "·"; margin-left: 4px; color: var(--tinte-3); }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kacheln__gross { grid-column: 1 / -1; }
  .kacheln__gross .kachel__titel { font-size: 1.6rem; }
}

/* Tablet (ab 900px) und Desktop (ab 1280px) wie im Klickbeispiel */
@media (min-width: 900px) {
  :root { --rand: 32px; }
  body { font-size: 1.1875rem; }
  /* Kopf: Hauptmenü in der Kopfzeile */
  .webkopf { position: sticky; top: 0; z-index: 5; }
  .webkopf__innen { flex-wrap: nowrap; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .webkopf__marke { flex: none; gap: 12px; }
  .webkopf__logo { height: 52px; }
  .webnav { order: 0; flex: 0 1 auto; margin-left: auto; }
  .webkopf__aktionen { margin-left: 0; }
  .webkopf .knopf--klein { padding: 0 18px; font-size: 1rem; }
  .webnav a { padding: 0 14px; font-size: 1rem; }
  /* Held zweispaltig */
  .held__innen { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 64px; row-gap: 18px; padding-top: 48px; padding-bottom: 72px; min-height: 360px; }
  .held h1 { max-width: 16em; }
  .abschnitt { padding: 48px 0; gap: 22px; }
  .abschnitt > .mehr-link { align-self: flex-start; min-width: min(100%, 26rem); }
  .karte > .t-text { max-width: 46rem; }
  /* Nutzen: drei Spalten in einer Karte */
  .nutzen-karte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 28px; }
  /* Pakete: Tablet zwei Spalten, Desktop vier */
  .pakete { gap: 36px 24px; }
  .raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amazon { max-width: 46rem; }
  /* Team und Gäste nebeneinander */
  .zweiteiler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .zweiteiler > .abschnitt { padding-top: 8px; }
  /* Fuß vierspaltig */
  .webfuss { padding: 28px 0 24px; }
  .webfuss__innen { grid-template-columns: auto auto auto; grid-template-areas: "marke kontakt sozial" "recht recht recht" "copy copy copy"; justify-content: space-between; }
  /* Blog: Beiträge links, Kategorien rechts */
  .mit-seite { grid-template-columns: minmax(0, 1fr) 18rem; column-gap: 32px; align-items: start; }
  .kacheln:not(.kacheln--blog) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  :root { --rand: 40px; --breite: 1440px; }
  .pakete--vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zweiteiler { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .webkopf, .webfuss, .sprung, .kein-druck { display: none; }
  body { background: #FFFFFF; color: #000000; }
}
