/* Gebündelt aus style.css, preise.css, v2.css, mobil.css (python -m scripts.verwalterbund_css); nicht von Hand ändern. */

/* ============================================================
   Verwalterbund — Marke.
   Eigene Palette (Gruen), eigene
   Schrift (Inter, OFL, selbst gehostet als WOFF2 unten in fonts/ -
   kein Google-Fonts-CDN zur Laufzeit). Kontraste
   nachgerechnet (WCAG-Formel), alle über 4,5:1.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Inter-Variable.woff2') format('woff2');
}

:root {
  --hg: #f6f4ef;           /* warmes Off-White, Hauptflaeche heller Sektionen */
  --weiss: #ffffff;        /* reines Weiss, nur fuer Text auf Dunkel */
  --dunkel: #1f3d2e;       /* dunkles Tannengruen, der einzige Dunkelton */
  --akzent: #3f6b4b;       /* mittleres Gruen: Kicker, Links, Rahmen auf Hell */
  --akzent-hell: #a9c4ab;  /* helles Gruen: Akzent auf Dunkel, Trennlinien */
  --dunkel-tief: #162b20;  /* Preisbereich: noch dunkler Mischton aus --dunkel */
  --karte-gruen: #2f543c;  /* Preisbereich: zweite Karte, Mischung aus --dunkel und --akzent */
  --sand: #e8ddc8;         /* warmes Sand/Khaki: Badges, waermere Flaechen */
  --rand: 40px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--hg); color: var(--dunkel); font-family: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; }
img { max-width: 100%; display: block; }
.seite { width: 100%; }

.h-40 { font-size: 40px; font-weight: 800; line-height: 1.2; margin: 0; }
.h-28 { font-size: 28px; font-weight: 800; line-height: 1.25; margin: 0; }
.h-24 { font-size: 24px; font-weight: 800; line-height: 1.3; margin: 0; }
/* Ueberschriften ohne Silbentrennung und ohne Umbruch im Wort, mit ausgewogenen Zeilen.
   Lange Woerter passen in schmalen Ansichten, weil dort die Schrift kleiner wird (.wort-12, unten). */
h1, h2, h3, h4, h5, h6 { hyphens: none; -webkit-hyphens: none; text-wrap: balance; overflow-wrap: normal; }
.t-18 { font-size: 18px; line-height: 1.45; margin: 0; }
.t-16 { font-size: 16px; line-height: 1.4; margin: 0; }

/* Mit dem Menuepunkt Preise passen Marke und fuenf Links ueber 700 px nicht immer nebeneinander.
   Kopf und Navigation brechen deshalb um, statt ueberzulaufen. */
.kopf { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px max(var(--rand), calc((100% - 1200px) / 2 + var(--rand))); background: var(--hg); border-bottom: 1px solid var(--akzent-hell); }
.kopf-marke { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: 0.02em; color: var(--dunkel); text-decoration: none; }
.kopf-marke-symbol { display: block; }
.kopf-nav { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.kopf-nav a { color: var(--dunkel); text-decoration: none; border-bottom: 1px solid transparent; font-size: 16px; }
@media (hover: hover) { .kopf-nav a:hover { border-bottom-color: var(--dunkel); } }

/* ---------- Bloecke: hell (--hg) und dunkel (--dunkel) im Wechsel, volle Breite ---------- */
.band-hell { background: var(--hg); color: var(--dunkel); }
.band-dunkel { background: var(--dunkel); color: var(--weiss); }
.band-dunkel .kicker, .band-dunkel .schritt-nr { color: var(--akzent-hell); }
.band-dunkel .platzhalterblock { border-color: var(--akzent-hell); color: var(--weiss); }
.band-dunkel a { color: var(--weiss); }

.sek { padding: 72px var(--rand); display: flex; flex-direction: column; gap: 32px; max-width: 800px; margin: 0 auto; }
.sek--breit { max-width: 1120px; }
.sek-kopf { display: flex; flex-direction: column; gap: 16px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--akzent); }

.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.schritte { display: flex; flex-direction: column; gap: 24px; }
.schritt { display: flex; align-items: baseline; gap: 16px; }
.schritt-nr { font-size: 16px; color: var(--akzent); min-width: 24px; }

.platzhalterblock { border: 1px dashed var(--akzent-hell); border-radius: 8px; padding: 32px; text-align: center; color: var(--akzent); }


.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; border: 1px solid var(--dunkel); color: var(--dunkel); background: transparent; font-size: 16px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) { .btn:hover { background: var(--dunkel); color: var(--weiss); } }
.btn-primaer { background: var(--dunkel); color: var(--weiss); }
@media (hover: hover) { .btn-primaer:hover { background: var(--akzent); border-color: var(--akzent); } }
/* Kopfzeile: Umriss-Knopf, nie gefuellt (der Hauptknopf bleibt der einzige gefuellte) */
.kopf-nav a.btn-anmelden { border: 1px solid var(--dunkel); min-height: 48px; padding: 0 24px; }
@media (hover: hover) { .kopf-nav a.btn-anmelden:hover { background: var(--dunkel); color: var(--weiss); border-color: var(--dunkel); } }

/* Einmaliges Einblenden (nur mit Skript, nie bei reduzierter Bewegung) */
.wird-eingeblendet { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.wird-eingeblendet.ist-da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .wird-eingeblendet { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* hidden gilt auch dort, wo eine Klasse display setzt (Umschalter und Ansichten in v2.js). */
[hidden] { display: none !important; }

.fuss { background: var(--dunkel); color: var(--weiss); padding: 32px var(--rand); font-size: 14px; }
.fuss-innen { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.fuss a { color: var(--akzent-hell); }
@media (hover: hover) { .fuss a:hover { color: var(--weiss); } }
/* Antippflaechen mindestens 24 px auch am Desktop (WCAG 2.2, 2.5.8); mobil.css hebt sie auf 44 px. */
.kopf-nav a:not(.btn), .fuss a { display: inline-flex; align-items: center; min-height: 24px; }
/* Links im Fliesstext (Telefon, E-Mail): Polster macht sie hoeher, ohne die Zeile zu verschieben. */
.t-18 a { padding: 3px 0; }

/* Tastaturfokus sichtbar: 2 px Akzent auf Hell, auf dunklen Flaechen (Baender, Preisbereich, Fuss) Weiss. */
a:focus-visible, button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.band-dunkel :focus-visible, .pricing :focus-visible, .fuss :focus-visible { outline-color: var(--weiss); }

/* Sprunglink „Zum Inhalt“: erstes Element jeder Seite, sichtbar erst mit dem Tastaturfokus. */
.sprung { position: absolute; top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); z-index: 10;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--dunkel); color: var(--weiss);
  font-size: 16px; text-decoration: underline; text-underline-offset: 4px; transform: translateY(-200%); }
.sprung:focus { transform: none; outline: 2px solid var(--akzent); outline-offset: 2px; }

@media (max-width: 700px) {
  :root { --rand: 20px; }
  .zweispaltig { grid-template-columns: 1fr; gap: 32px; }
  .kopf { flex-direction: column; align-items: flex-start; gap: 16px; }
  .kopf-nav { gap: 12px 16px; flex-wrap: wrap; }
  .h-40 { font-size: 32px; }
}

/* ---------- Rechtsseiten (Impressum/Datenschutz) ---------- */
.rechtsblock { display: flex; flex-direction: column; gap: 40px; max-width: 760px; margin: 0 auto; padding: 72px var(--rand); }
.rechtsabschnitt { display: flex; flex-direction: column; gap: 12px; }
/* Woerter wie Wohnimmobilienverwalter in den Ueberschriften der Rechtsseiten liefen bei
   320 px ueber den Rand. Keine Silbentrennung, kein Umbruch im Wort: die Schrift wird schmal kleiner (unten). */
.rechtsabschnitt h2 { hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; }
/* Überschriften: das ganze Wort bleibt ganz. Ohne Silbentrennung und ohne Wortbruch passt ein langes Wort nur, wenn die
   Schrift in schmalen Ansichten kleiner wird, und zwar nur so weit, wie das Wort Platz braucht. Formel: verfügbare
   Breite (Bildschirm minus 40 px Rand) geteilt durch die Breite des längsten Wortes in Schriftgrößen (Inter, gemessen,
   plus 2 Prozent); die Obergrenze ist die bisherige Größe. */
@media (max-width: 700px) {
  .wort-12 { font-size: min(32px, calc((100vw - 40px) / 11.9)); }
  .rechtsabschnitt h2 { font-size: min(24px, calc((100vw - 40px) / 14.2)); }
}

/* ---------- Bedingungen (agb-verwalter/, nutzungsbedingungen-eigentuemer/) ----------
   Unterueberschriften der Widerrufsbelehrung als h3, Aufzaehlungen (1., a), –) eingerueckt. */
.bedingungen-text { display: flex; flex-direction: column; gap: 40px; }
.h-18 { font-size: 18px; font-weight: 800; line-height: 1.45; margin: 12px 0 0; }
.bedingungen-text .einzug { padding-left: 1.5em; }
.bedingungen-text p { overflow-wrap: anywhere; }
.rechtsabschnitt p { overflow-wrap: anywhere; }

/* Druck: nur der Text der Bedingungen, schwarz auf weiss, ohne Navigation, Fuss, Sprunglink und
   PDF-Hinweis; Ueberschriften bleiben bei ihrem Absatz. Nur auf den Bedingungsseiten (Klasse am body). */
@media print {
  body.seite-bedingungen, .seite-bedingungen .band-hell, .seite-bedingungen .kopf { background: #fff; color: #000; }
  .seite-bedingungen .kopf-nav, .seite-bedingungen .fuss, .seite-bedingungen .sprung, .seite-bedingungen .bedingungen-laden { display: none; }
  .seite-bedingungen .kopf { padding: 0 0 8pt; border-bottom: 0.5pt solid #000; }
  .seite-bedingungen .kopf-marke { color: #000; }
  .seite-bedingungen .rechtsblock { max-width: none; padding: 12pt 0 0; gap: 14pt; }
  .seite-bedingungen .bedingungen-text { gap: 14pt; }
  .seite-bedingungen .rechtsabschnitt { gap: 6pt; }
  .seite-bedingungen .h-40 { font-size: 18pt; }
  .seite-bedingungen .h-24 { font-size: 13pt; }
  .seite-bedingungen .h-18 { font-size: 11pt; margin-top: 6pt; }
  .seite-bedingungen .t-18 { font-size: 10.5pt; line-height: 1.4; }
  .seite-bedingungen h1, .seite-bedingungen h2, .seite-bedingungen h3 { break-after: avoid; page-break-after: avoid; }
  .seite-bedingungen p { orphans: 3; widows: 3; }
  .seite-bedingungen a { color: #000; text-decoration: none; }
}

/* ============================================================
   Preisbereich Verwalterbund, statisch nachgebaut.
   Dunkelgrün im Farbschema der Verwalterbund-Seite, Inter (lokal). Keine eigenen Hex-Werte hier:
   alle Farben kommen aus den Variablen in style.css (--dunkel, --dunkel-tief, --karte-gruen, --akzent-hell, --sand, --weiss).
   ============================================================ */
.pricing {
  --bg: var(--dunkel-tief);
  --fg: var(--weiss);
  --fg-2: rgba(255, 255, 255, 0.88);   /* Fließtext, Listenpunkte */
  --fg-3: rgba(255, 255, 255, 0.74);   /* Nebentext (Kontrast auf beiden Karten mindestens 4,5:1) */
  --fg-4: rgba(255, 255, 255, 0.70);   /* Kreuzzeilen, zzgl. USt, Pflichtzeile */
  --karte-1: var(--dunkel);
  --karte-2: var(--karte-gruen);
  --surface: rgba(255, 255, 255, 0.10);
  --surface-hover: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.18);
  position: relative; width: 100%; background: var(--bg); color: var(--fg);
  padding: 48px 0;
  font-family: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
}
@media (min-width: 640px) { .pricing { padding: 64px 0; } }
.pricing *, .pricing *::before, .pricing *::after { box-sizing: border-box; }
.pricing p, .pricing h2, .pricing ul { margin: 0; }
.pricing ul { padding: 0; list-style: none; }
.pricing-innen { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .pricing-innen { padding: 0 24px; } }

/* ---------- Kopf ---------- */
.pricing-kopf { margin-bottom: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
@media (min-width: 1024px) { .pricing-kopf { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.pricing-kopf-text { max-width: 42rem; }
.pille { margin-bottom: 24px; display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--border); padding: 4px 12px; font-size: 12px; line-height: 16px; color: var(--fg-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pille-punkt { width: 6px; height: 6px; border-radius: 9999px; background: var(--fg-3); }
.pricing-h2 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; color: var(--fg); }
@media (min-width: 640px) { .pricing-h2 { font-size: 36px; } }
.nur-sm { display: none; }
@media (min-width: 640px) { .nur-sm { display: inline; } }
.pricing-absatz { max-width: 24rem; font-size: 14px; line-height: 20px; color: var(--fg-3); }
@media (min-width: 640px) { .pricing-absatz { font-size: 16px; line-height: 24px; } }

/* ---------- Karten ---------- */
.pricing-karten { margin: 0 auto; display: grid; max-width: 48rem; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .pricing-karten { grid-template-columns: 1fr 1fr; } }

/* SpotlightBorder: 1-px-Ring folgt dem Zeiger (CSS-Variablen, Maske mit mask-composite exclude) */
.spot { --spot-x: -9999px; --spot-y: -9999px; --size: 460px; --intensity: 0.7; --pad: 8px;
  position: relative; height: 100%; padding: 8px; border-radius: 16px; border: 1px solid var(--border); }
@media (min-width: 640px) { .spot { --pad: 12px; padding: 12px; } }
.spot::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  opacity: var(--intensity);
  background: radial-gradient(circle var(--size) at var(--spot-x) var(--spot-y), var(--weiss), var(--akzent-hell) 30%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.karte { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 16px; border: 1px solid var(--border); padding: 28px; }
@media (min-width: 640px) { .karte { padding: 32px; } }
/* innerer, dünnerer Lichtring, heller beim Überfahren */
.karte::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0.6; transition: opacity 300ms ease;
  background: radial-gradient(circle var(--size) at calc(var(--spot-x) - var(--pad)) calc(var(--spot-y) - var(--pad)), var(--weiss), var(--akzent-hell) 30%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
@media (hover: hover) { .spot:hover .karte::after { opacity: 1; } }
/* Ohne schwebenden Zeiger (Handy) stehen die Ringe bei -9999px und sind unsichtbar; WebKit zeichnet ihre Masken beim
   Scrollen trotzdem mit. Dort nur zeichnen, solange ein Finger oder Zeiger auf der Karte liegt (preise.js: spot-an). */
@media (hover: none) { .spot:not(.spot-an)::before, .spot:not(.spot-an) .karte::after { display: none; } }

.plakette { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; border-radius: 9999px; border: 1px solid var(--akzent-hell); background: var(--sand); padding: 4px 12px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--dunkel); }
.eyebrow { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-3); }
.trenner { margin-top: 12px; border-top: 1px solid var(--border); }

.preiszeile { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 4px; }
.preis { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.preis-gross { font-size: 2.75rem; line-height: 1; font-weight: 400; letter-spacing: -0.025em; color: var(--fg); }
.preis-text { font-size: 18px; line-height: 28px; color: var(--fg-2); }
.preis-zusatz { font-size: 18px; line-height: 28px; color: var(--fg-4); }   /* Platz des Streichpreises: bei uns „zzgl. USt“, nie durchgestrichen */
.beschreibung { margin-top: 16px; font-size: 14px; line-height: 1.625; color: var(--fg-3); }
.staffel-titel { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--fg-3); }
.staffel { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--fg-2); }
.staffel li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.staffel li + li { border-top: 1px solid var(--border); }
.staffel-gewerbe { margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--fg-4); }

.knopfzeile { margin-top: 28px; }
.pflichtzeile { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--fg-4); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 16px; border-radius: 9999px; font-family: inherit; font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color 300ms ease; }
.knopf-primaer { background: var(--sand); color: var(--dunkel); }
@media (hover: hover) { .knopf-primaer:hover { background: var(--weiss); color: var(--dunkel); } }
.knopf-sekundaer { background: var(--surface); color: var(--fg); border: 1px solid var(--border); font-weight: 500; -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); }
@media (hover: hover) { .knopf-sekundaer:hover { background: var(--surface-hover); color: var(--weiss); } }
.knopf:focus-visible { outline: 2px solid var(--weiss); outline-offset: 2px; }

/* Haken-/Kreuz-Liste */
.liste { margin-top: 28px; display: flex; flex: 1; flex-direction: column; gap: 8px; }
.liste li { display: flex; align-items: center; gap: 12px; padding: 16px 0; font-size: 14px; line-height: 20px; }
.liste li + li { border-top: 1px solid var(--border); }
.liste .ja { color: var(--fg-2); }
.liste .nein { color: var(--fg-4); }
.kreis { display: flex; flex: none; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid var(--border); }
.ja .kreis { border-color: var(--akzent-hell); background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.nein .kreis { background: transparent; color: var(--fg-4); }
.karte .fu:last-child { display: flex; flex: 1; flex-direction: column; }

.pricing-hinweis { margin: 40px auto 0; max-width: 48rem; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 22px; color: var(--fg-3); }
.pricing-hinweis a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .pricing-hinweis a:hover { color: var(--weiss); } }

/* ---------- Einblenden gestaffelt (nur mit Skript; einmalig) ---------- */
/* Ausgeblendet wird erst, wenn preise.js laeuft und fu-bereit setzt; laedt es nicht, bleibt alles sichtbar. */
.js .pricing.fu-bereit .fu { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s); }
.js .pricing .fu.in { opacity: 1; transform: none; }
/* Am Handy (ohne schwebenden Zeiger) halb so lang und halb so weit gestaffelt; preise.js löst dort schon 25 % unterhalb des Bildes aus. Endbild unverändert. */
@media (hover: none) and (prefers-reduced-motion: no-preference) { .js .pricing.fu-bereit .fu { transition-duration: 0.3s; transition-delay: calc(var(--d, 0s) / 2); } }

@media (prefers-reduced-motion: reduce) {
  .js .pricing.fu-bereit .fu { opacity: 1; transform: none; transition: none; }
  .knopf, .karte::after { transition: none; }
  .spot::before, .karte::after { display: none; }
}

/* ============================================================
   Verwalterbund v2: Zeitstrahl, Umschalter Wohn/Gewerbe.
   Palette aus style.css, keine eigenen Hex-Werte, keine Schatten, keine Bibliotheken.
   Ohne JavaScript ist alles sichtbar; bei reduzierter Bewegung läuft nichts.
   ============================================================ */

/* ---------- Eigentümer-Zeitstrahl ---------- */
.zeitstrahl { --punkt: 48px; list-style: none; margin: 16px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 36px; }
.zs-station { position: relative; align-content: start; display: grid; grid-template-columns: var(--punkt) minmax(0, 1fr); column-gap: 20px; align-items: start; }
.zs-punkt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: var(--punkt); height: var(--punkt); border-radius: 50%; background: var(--akzent-hell); color: var(--dunkel); font-size: 16px; font-weight: 800; letter-spacing: 0.04em; }
.zs-text { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.zs-titel { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--weiss); }
.zs-beschr { margin: 0; font-size: 16px; line-height: 1.5; color: var(--weiss); opacity: 0.9; }
/* Linie: mobil senkrecht hinter den Punkten */
.zeitstrahl::before { content: ''; position: absolute; left: calc(var(--punkt) / 2 - 1px); top: calc(var(--punkt) / 2); bottom: calc(var(--punkt) / 2); width: 2px; background: var(--akzent-hell); transform-origin: top center; }

@media (min-width: 900px) {
  .zeitstrahl { flex-direction: row; gap: 24px; margin-top: 24px; }
  .zs-station { flex: 1 1 0; min-width: 0; grid-template-columns: minmax(0, 1fr); row-gap: 20px; justify-items: center; text-align: center; }
  .zs-text { padding-top: 0; align-items: center; }
  /* waagerecht: von der Mitte des ersten bis zur Mitte des letzten Punktes (drei gleiche Spalten, 24 px Abstand) */
  .zeitstrahl::before { left: calc(16.667% - 8px); right: calc(16.667% - 8px); top: calc(var(--punkt) / 2 - 1px); bottom: auto; width: auto; height: 2px; transform-origin: left center; }
}

/* Aufbau einmalig beim Einblenden (nur mit Skript; .zs-bereit setzt v2.js, nie bei reduzierter Bewegung) */
.js .zeitstrahl.zs-bereit::before { transform: scaleY(0); }
.js .zeitstrahl.zs-bereit .zs-punkt { transform: scale(0); opacity: 0; }
.js .zeitstrahl.zs-bereit .zs-text { opacity: 0; transform: translateY(8px); }
.js .zeitstrahl.zs-an::before { transform: none; transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .zeitstrahl.zs-an .zs-punkt { transform: none; opacity: 1; transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 380ms + 150ms), opacity 220ms ease calc(var(--i) * 380ms + 150ms); }
.js .zeitstrahl.zs-an .zs-text { opacity: 1; transform: none; transition: opacity 420ms ease calc(var(--i) * 380ms + 350ms), transform 420ms ease calc(var(--i) * 380ms + 350ms); }
/* Am Handy (ohne schwebenden Zeiger) halb so lang und halb so weit gestaffelt, ebenso die Abschnitte (.wird-eingeblendet, style.css);
   v2.js löst dort schon 25 % unterhalb des Bildes aus. Endbild unverändert. Steht hier statt in style.css, damit seite.css gleich bleibt. */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .js .zeitstrahl.zs-an::before { transition-duration: 0.8s; }
  .js .zeitstrahl.zs-an .zs-punkt { transition-duration: 210ms, 110ms; transition-delay: calc(var(--i) * 190ms + 75ms); }
  .js .zeitstrahl.zs-an .zs-text { transition-duration: 210ms; transition-delay: calc(var(--i) * 190ms + 175ms); }
  .wird-eingeblendet { transition-duration: 250ms; }
}
@media (min-width: 900px) {
  .js .zeitstrahl.zs-bereit::before { transform: scaleX(0); }
}

/* ---------- Umschalter Wohnobjekte / Gewerbeobjekte (Karte B) ---------- */
.segment { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding: 3px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.segment-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 6px; background: var(--sand); transition: transform 250ms ease; }
.segment[data-aktiv="1"] .segment-thumb { transform: translateX(100%); }
.segment-knopf { position: relative; z-index: 1; min-height: 44px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--weiss); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; touch-action: manipulation; transition: color 250ms ease; }
.segment-knopf[aria-selected="true"] { color: var(--dunkel); }
.segment-knopf:focus-visible { outline: 2px solid var(--weiss); outline-offset: 2px; }
.staffel-feld[hidden] { display: none; }
.staffel-feld { margin-top: 14px; }
.staffel-feld + .staffel-feld { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .segment-thumb, .segment-knopf { transition: none; } }

/* ---------- Tippflächen mindestens 44 px (Livegang-Prüfung) ---------- */
.kopf-marke, .kopf-nav a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
.knopf { height: auto; min-height: 44px; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Kopf zwischen 701 und 940 px: zwei Zeilen (Marke, darunter die Navigation in einer Zeile) ---------- */
@media (min-width: 701px) and (max-width: 940px) {
  .kopf { row-gap: 4px; }
  .kopf-nav { width: 100%; gap: 8px 24px; }
}

/* Karten dürfen schrumpfen (bei 320 px lief die Karte 9 px über den Rand) */
.pricing-karten { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .pricing-karten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Hero: zwei Einstiege (Eigentümer gefüllt, Verwalter Umriss) ---------- */
.hero-einstiege { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.hero-einstieg { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1 1 260px; max-width: 340px; }
.hero-einstieg .t-16 { color: var(--akzent); }
@media (max-width: 700px) { .hero-einstiege { flex-direction: column; } .hero-einstieg { max-width: none; flex: none; } }

/* ---------- Preisbereich: Schalter Für Eigentümer | Für Verwalter ---------- */
.preis-schalter { display: flex; justify-content: center; margin: 0 0 40px; }
.preis-schalter .segment { width: min(100%, 360px); margin-top: 0; }
.preisansicht[hidden] { display: none; }
.pricing-karten--eine { max-width: 26rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .pricing-karten.pricing-karten--eine { grid-template-columns: minmax(0, 1fr); } }
/* gleiche kleine Einblendung beim Wechsel der Ansicht und der Staffel */
.ansicht-neu { animation: ansichtEin 260ms ease; }
@keyframes ansichtEin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ansicht-neu { animation: none; } }

/* ---------- Call to Action unter den Preiskarten (je Ansicht einer, gefüllt) ---------- */
.pricing-cta { display: flex; justify-content: center; margin: 40px 0 0; }
.pricing-cta .knopf { height: auto; min-height: 48px; padding: 0 32px; font-size: 16px; font-weight: 600; }

/* ---------- Lebendige Knöpfe (Haupt-Schaltflächen) ----------
   Pill-Form, mindestens 48 px hoch, gefüllt im dunkelsten Ton der Palette (--dunkel-tief), Schrift der Seite (Inter).
   Pfeil dreht beim Überfahren in 350 ms, Druck skaliert auf 0,97. Licht und Magnet nur mit Maus
   (hover: hover und pointer: fine), schwach. Bei reduzierter Bewegung steht alles still.
   Kein Layout-Sprung: Hover und Druck ändern nur Farbe, scale und translate. */
.knopf-leben {
  --licht-x: 50%; --licht-y: 50%; --licht-farbe: rgba(169, 196, 171, 0.32);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: auto; min-height: 48px; box-sizing: border-box; margin: 0; padding: 0 28px;
  border: 1px solid var(--dunkel-tief); border-radius: 9999px;
  background: var(--dunkel-tief); color: var(--weiss);
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, scale 120ms ease, translate 220ms ease;
}
.knopf-pfeil { flex: none; display: block; width: 18px; height: 12px; transform-origin: 50% 50%; transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.knopf-leben:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
.knopf-leben:focus-visible .knopf-pfeil { transform: rotate(-45deg); }
.knopf-leben:active { scale: 0.97; }
@media (hover: hover) {
  .knopf-leben:hover { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }
  .knopf-leben:hover .knopf-pfeil { transform: rotate(-45deg); }
}
.knopf-leben:active { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }

/* Umriss auf hellem Grund */
.knopf-leben--umriss { background: transparent; border-color: var(--dunkel); color: var(--dunkel); --licht-farbe: rgba(63, 107, 75, 0.16); }
@media (hover: hover) { .knopf-leben--umriss:hover { background: var(--dunkel); border-color: var(--dunkel); color: var(--weiss); } }
.knopf-leben--umriss:active { background: var(--dunkel); border-color: var(--dunkel); color: var(--weiss); }

/* Auf dunklem Grund (Preisbereich): gefüllt in Sand oder Umriss in Weiß */
.knopf-leben--hell { background: var(--sand); border-color: var(--sand); color: var(--dunkel); --licht-farbe: rgba(255, 255, 255, 0.6); }
@media (hover: hover) { .knopf-leben--hell:hover { background: var(--weiss); border-color: var(--weiss); color: var(--dunkel); } }
.knopf-leben--hell:active { background: var(--weiss); border-color: var(--weiss); color: var(--dunkel); }
.knopf-leben--umriss-hell { background: transparent; border-color: var(--akzent-hell); color: var(--weiss); font-weight: 500; --licht-farbe: rgba(255, 255, 255, 0.16); }
@media (hover: hover) { .knopf-leben--umriss-hell:hover { background: var(--weiss); border-color: var(--weiss); color: var(--dunkel); } }
.knopf-leben--umriss-hell:active { background: var(--weiss); border-color: var(--weiss); color: var(--dunkel); }
.knopf-leben--hell:focus-visible, .knopf-leben--umriss-hell:focus-visible { outline-color: var(--weiss); }
/* In den Preiskarten ist die Zeile schmal: weniger Innenabstand, damit Text und Pfeil in einer Zeile bleiben. */
.knopfzeile .knopf-leben { padding: 0 20px; gap: 10px; }

/* Licht folgt dem Zeiger, Magnet zieht den Knopf um höchstens 3 px: nur mit Maus */
@media (hover: hover) and (pointer: fine) {
  .knopf-leben { translate: var(--magnet-x, 0px) var(--magnet-y, 0px); }
  .knopf-leben::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(90px circle at var(--licht-x) var(--licht-y), var(--licht-farbe), transparent 70%);
    opacity: 0; transition: opacity 200ms ease;
  }
  .knopf-leben:hover::before { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .knopf-leben, .knopf-pfeil, .knopf-leben::before { transition: none; }
  .knopf-leben { translate: none; }
  .knopf-leben:active { scale: none; }
  .knopf-leben:hover .knopf-pfeil, .knopf-leben:focus-visible .knopf-pfeil { transform: none; }
  .knopf-leben::before { display: none; }
}

/* Sprungziel der Hero-Einstiege (v2.js): Der Fokus steht am Preisbereich, ohne Ring um den ganzen Abschnitt. */
#pricing:focus { outline: none; }

/* ============================================================
   Mobil/iOS. Gemeinsam fuer alle vier Seiten, als letztes Stylesheet eingebunden.
   Desktop bleibt gleich: Groessen- und Tippflaechen-Regeln stehen in
   @media (max-width: 767px), (pointer: coarse) (Handy hoch und quer); env(safe-area-inset-*) ist am Desktop 0.
   ============================================================ */

/* Mobil: iOS soll Text im Querformat nicht aufblaehen. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Mobil: Safe-Area (viewport-fit=cover in den Seiten) fuer Seitenraender, Kopf oben und Fuss unten (Notch quer, Home-Indikator). */
.kopf { padding-top: max(24px, env(safe-area-inset-top));
  padding-left: max(var(--rand), calc((100% - 1200px) / 2 + var(--rand)), env(safe-area-inset-left));
  padding-right: max(var(--rand), calc((100% - 1200px) / 2 + var(--rand)), env(safe-area-inset-right)); }
.sek, .rechtsblock { padding-left: max(var(--rand), env(safe-area-inset-left)); padding-right: max(var(--rand), env(safe-area-inset-right)); }
.fuss { padding-left: max(var(--rand), env(safe-area-inset-left)); padding-right: max(var(--rand), env(safe-area-inset-right)); padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.pricing-innen { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 640px) { .pricing-innen { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); } }

/* Mobil: Kopf von 213 auf etwa 110 px (375 px Breite): Marke und Anmelden in einer Zeile, darunter die Textlinks.
   .kopf-nav wird aufgeloest (display: contents), damit die Links in der Zeile des Kopfes mitlaufen. Tippflaechen bleiben >= 44 px. */
@media (max-width: 700px) {
  .kopf { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .kopf-nav { display: contents; }
  .kopf-marke { order: 1; }
  .kopf-nav a.btn-anmelden { order: 2; min-height: 44px; padding: 0 16px; }
  .kopf-nav a:not(.btn) { order: 3; margin-right: 8px; }
}

@media (max-width: 767px), (pointer: coarse) {
  /* Mobil: Tippflaechen mindestens 44 px, auf allen Seiten (R1; vorher nur index.html ueber v2.css). */
  .kopf-marke, .kopf-nav a:not(.btn), .fuss a { display: inline-flex; align-items: center; min-height: 44px; }
  .kopf-nav a.btn-anmelden, .btn { min-height: 44px; }
  .pricing-hinweis a, .rechtsblock a[href^="tel"], .rechtsblock a[href^="mailto"], .sek a[href^="tel"], .sek a[href^="mailto"] { display: inline-flex; align-items: center; min-height: 44px; }
  /* Mobil: PDF-Link der Bedingungsseiten allein im Absatz, vorher 27 px hoch (ab 430 px und quer einzeilig). */
  .bedingungen-laden a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Mobil: Fliesstext mindestens 16 px und Zeilenhoehe 1.5; Pflichtzeile und Staffel eingeschlossen (rechtlich relevant). */
  .t-16, .t-18 { line-height: 1.5; }
  .pricing-absatz, .beschreibung, .liste li, .pricing-hinweis, .pricing-hinweis p, .pflichtzeile, .staffel-titel, .staffel, .fuss { font-size: 16px; line-height: 1.5; }
  .pricing-h2 { line-height: 1.2; }
  /* Mobil: Staffelzeilen entsprechend hoeher (16 px Schrift, Zeile mindestens 44 px). */
  .staffel li { padding: 10px 0; align-items: center; }
  /* Mobil: Schalter- und Knopfschrift 16 px. */
  .segment-knopf, .knopf, .pricing-cta .knopf { font-size: 16px; }
  .segment-knopf { padding: 0 4px; }
  /* Mobil: Etiketten bleiben klein, aber nicht unter 12 px. */
  .eyebrow { font-size: 12px; }
}

/* Mobil: Hover-Zustaende gelten nur mit echtem Zeiger (siehe style.css, preise.css); fuer Touch ein Druckzustand statt haengendem Hover. */
@media (hover: none) {
  .btn:active { background: var(--dunkel); color: var(--weiss); }
  .btn-primaer:active { background: var(--akzent); border-color: var(--akzent); }
  .knopf-primaer:active { background: var(--weiss); }
  .knopf-sekundaer:active { background: var(--surface-hover); }
}
