/* ============================================================
   Wunsch-Lesen – gemeinsames Designsystem aller Nischen-Microsites.
   Ruhiger Direct-Response-Stil: eine Akzentfarbe (kommt aus der
   theme.css der jeweiligen Nische), sonst Neutraltoene, System-Fonts,
   grosse Typo (Basis 18px, Zielgruppe 40+), keine Verspieltheit.
   ============================================================ */

:root {
  /* Neutrale Palette */
  --bg: #FFFFFF;
  --bg-soft: #FAFAF8;
  --ink: #1A1A1A;
  --ink-soft: #52514D;
  --line: #E6E4DE;

  /* Fallback-Akzent (neutral dunkel) – wird von der Nischen-theme.css
     ueberschrieben; so bleiben Impressum/Datenschutz ohne Theme nutzbar. */
  --accent: #1A1A1A;
  --accent-dark: #000000;
  --accent-soft: #F1F0EC;

  --fehler: #B3261E;
  --ok: #2E7D46;

  --wrap: 960px;
  --radius: 12px;
  --radius-pill: 100px;
  --schatten: 0 1px 2px rgba(26, 26, 26, .06), 0 8px 24px rgba(26, 26, 26, .07);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.2vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.abschnitt { padding: 56px 0; }
.abschnitt-soft { background: var(--bg-soft); }
.zentriert { text-align: center; }
.hinweis { font-size: .85rem; color: var(--ink-soft); }
.betont { color: var(--accent-dark); font-weight: 700; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.logo {
  font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo .logo-punkt { color: var(--accent); }

/* ---------- Buttons (Pill, zweizeilig: Handlung + erklaerende Subline) ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 14px 30px; min-height: 60px;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font-family: inherit; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff;
  box-shadow: var(--schatten);
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .btn-haupt { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.btn .btn-sub { font-size: .8rem; font-weight: 400; opacity: .92; line-height: 1.3; }
.btn[disabled] { opacity: .6; cursor: wait; }

.btn-zweit {
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-zweit:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-soft); }

.btn-klein { min-height: 44px; padding: 8px 20px; }
.btn-klein .btn-haupt { font-size: .92rem; font-weight: 700; }

@media (max-width: 540px) {
  .btn-breit-mobil { width: 100%; }
}

/* ---------- Hero ---------- */
.kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: .85rem; font-weight: 700; letter-spacing: .01em;
}
.hero p.untertitel { font-size: 1.1rem; color: var(--ink-soft); max-width: 620px; }

.check-liste { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.check-liste li { position: relative; padding-left: 34px; }
.check-liste li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}

.cta-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 10px; }

/* ---------- "So funktioniert's" ---------- */
.schritte { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); counter-reset: schritt; }
.schritte li {
  counter-increment: schritt;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 18px;
}
.schritte li::before {
  content: counter(schritt);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.schritte h3 { margin-bottom: .3em; }
.schritte p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Titel-Karten ---------- */
.titel-karten { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.titel-karte {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--schatten);
  border-top: 4px solid var(--accent);
}
.titel-karte h3 { margin-bottom: .35em; }
.titel-karte p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.info-streifen {
  margin-top: 26px; padding: 18px 22px;
  background: var(--accent-soft); border-radius: var(--radius);
  font-size: .98rem;
}
.info-streifen p { margin: 0 0 .4em; }
.info-streifen p:last-child { margin: 0; }

@media (max-width: 760px) {
  .schritte, .titel-karten { grid-template-columns: 1fr; }
}

/* ---------- FAQ (native details/summary, kein JS) ---------- */
.faq { margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 700; font-size: 1.1rem;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-antwort { padding: 0 4px 18px; color: var(--ink-soft); font-size: .97rem; }
.faq .faq-antwort p { margin: 0 0 .6em; }
.faq .faq-antwort p:last-child { margin: 0; }

/* ---------- Formular / Wizard ---------- */
.formular-karte {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 26px 24px; margin-top: 26px;
}

.fortschritt { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.p-schritt {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
}
.p-schritt .p-punkt {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1.5px solid var(--line);
  font-size: .85rem;
}
.p-schritt.aktiv { color: var(--ink); }
.p-schritt.aktiv .p-punkt { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-schritt.fertig .p-punkt { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
@media (max-width: 540px) { .p-schritt .p-text { display: none; } .p-schritt { flex: 0 0 auto; } }

.schritt { display: none; }
.schritt.aktiv { display: block; }
.schritt h3 { margin-bottom: 4px; }
.schritt .schritt-hinweis { margin: 0 0 18px; font-size: .92rem; color: var(--ink-soft); }

.feld-zeile { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.feld-zeile-hausnr { grid-template-columns: 2fr 1fr; }
.feld-zeile-plz { grid-template-columns: 1fr 2fr; }
@media (max-width: 540px) {
  .feld-zeile { grid-template-columns: 1fr; }
  .radio-karte .rk-titel { flex-direction: column; align-items: flex-start; gap: 2px; }
}

.feld { margin-bottom: 16px; }
.feld label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.feld .optional { font-weight: 400; color: var(--ink-soft); }
.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"] {
  width: 100%; min-height: 50px; padding: 10px 14px;
  font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
}
.feld input:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.feld input.ungueltig { border-color: var(--fehler); background: #FDF6F5; }
.f-fehler { display: none; margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--fehler); }
.f-fehler.sichtbar { display: block; }

/* Radio-Karten (Paketwahl, Anrede) */
.radio-karten { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; border: 0; }
.radio-karten legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.radio-karte { position: relative; }
.radio-karte input { position: absolute; opacity: 0; pointer-events: none; }
.radio-karte label {
  display: block; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; background: var(--bg);
  transition: border-color .15s ease, background .15s ease;
}
.radio-karte input:checked + label {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.radio-karte input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.radio-karte .rk-titel { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 800; }
.radio-karte .rk-preis { color: var(--accent-dark); white-space: nowrap; }
.radio-karte .rk-detail { font-size: .88rem; color: var(--ink-soft); margin-top: 2px; }

.radio-inline { display: flex; gap: 12px; }
.radio-inline .radio-karte { flex: 1; }
.radio-inline label { text-align: center; padding: 12px; font-weight: 700; }

/* Bestelluebersicht (§ 312j BGB: Pflichtinfos unmittelbar vor dem Button) */
.bestell-info {
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 18px 20px; margin: 20px 0 16px;
  background: var(--bg-soft); font-size: .95rem;
}
.bestell-info h4 { margin: 0 0 10px; font-size: 1rem; }
.bestell-info ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.bestell-info li { display: flex; justify-content: space-between; gap: 16px; }
.bestell-info li span:last-child { font-weight: 700; text-align: right; }
.bestell-info .bi-recht { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }

.checkbox-zeile { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: .92rem; }
.checkbox-zeile input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.wizard-nav .btn { flex: 1 1 auto; }
.wizard-nav .btn-zweit { flex: 0 1 auto; }

.formular-fehler {
  display: none; margin-top: 16px; padding: 14px 16px;
  border-radius: 10px; border: 1.5px solid var(--fehler);
  background: #FDF6F5; color: var(--fehler); font-size: .92rem; font-weight: 600;
}
.formular-fehler.sichtbar { display: block; }
.formular-fehler a { color: inherit; }

/* Honigtopf-Felder: fuer Menschen unsichtbar, fuer Bots verlockend. */
.hp-feld { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 34px 0 40px; margin-top: 30px; }
.footer, .footer a { color: var(--ink-soft); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 16px; padding: 0; list-style: none; }
.footer .transparenz { max-width: 720px; }

/* ---------- Sonstiges ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Skip-Link fuer Tastatur-Nutzer */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }
