/* Öffentliche Seiten: Startseite, Anmelden, Abo, Kasse, Rechtliches */

:root {
  color-scheme: dark;
  --grund: #0b0f17;
  --flaeche: #121826;
  --flaeche-2: #1a2132;
  --flaeche-3: #232b3f;
  --linie: #263046;
  --text: #e7eaf2;
  --leise: #8d96ab;
  --akzent: #3b82f6;
  --akzent-dunkel: #2563eb;
  --akzent-text: #7cb1ff;
  --akzent-hell: rgba(59, 130, 246, 0.14);
  --warnung: #fdba74;
  --warnung-hell: rgba(249, 115, 22, 0.13);
  --warn-punkt: #f97316;
  --gruen: #22c55e;
  --gruen-text: #4ade80;
  --gruen-hell: rgba(34, 197, 94, 0.12);
  --treffer: #f59e0b;
  --treffer-text: #fbbf24;
  --treffer-hell: rgba(245, 158, 11, 0.14);
  --grau: #3a4458;
  --gelb-hell: rgba(234, 179, 8, 0.14);
  --gelb-rand: rgba(234, 179, 8, 0.35);
  --lila-hell: rgba(168, 85, 247, 0.16);
  --lila-text: #d8b4fe;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--akzent-text); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.breite { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Kopf ---------- */
.kopf { background: rgba(11, 15, 23, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 10; }
.kopf .breite { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marke { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.marke-punkt { width: 11px; height: 11px; border-radius: 50%; background: var(--akzent); }
.kopf nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.kopf nav a { color: var(--leise); text-decoration: none; }
.kopf nav a:hover { color: var(--text); }
.kopf nav a.knopf { color: #fff; }

/* ---------- Knöpfe und Felder ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--linie);
  background: var(--flaeche);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--flaeche-2); }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.haupt:hover { background: var(--akzent-dunkel); }
.knopf.klein { height: 36px; padding: 0 14px; font-size: 14px; }
.knopf.breit { width: 100%; }
.knopf:disabled { opacity: 0.55; cursor: default; }
.knopf:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; }
.feld span { font-weight: 600; }
.feld input, .feld select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche-2);
}
.feld input::placeholder { color: #626c82; }
.feld small { color: var(--leise); }
.haken { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 16px; }
.haken input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--akzent-text); flex-shrink: 0; }

.meldung { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.meldung.fehler { background: var(--warnung-hell); color: var(--warnung); }
.meldung.ok { background: var(--akzent-hell); color: var(--akzent-text); }
.meldung.hinweis { background: var(--flaeche-2); color: var(--leise); }

/* ---------- Startseite ---------- */
.held { padding: 80px 0 64px; background: radial-gradient(ellipse 70% 60% at 75% 0%, rgba(59, 130, 246, 0.14), transparent 70%); }
.held .breite { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.held h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.5px; }
.held p.gross { font-size: 19px; color: var(--leise); margin: 0 0 28px; max-width: 34em; }
.held .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.held .klein-text { margin-top: 14px; font-size: 14px; color: var(--leise); }

.vorschau {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}
.vorschau-karte { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--linie); border-radius: 12px; }
.vorschau-karte + .vorschau-karte { margin-top: 10px; }
.vorschau-karte.treffer { border-color: var(--treffer); box-shadow: 0 0 0 2px var(--treffer-hell); }
.vorschau-bild { width: 76px; height: 76px; border-radius: 10px; background: linear-gradient(135deg, var(--flaeche-3), var(--flaeche-2)); flex-shrink: 0; }
.vorschau-text { font-size: 14px; }
.vorschau-text strong { display: block; font-size: 15px; }
.vorschau-text .preis { color: var(--akzent-text); font-weight: 700; }
.vorschau-text .treffer-zeile { color: var(--treffer-text); font-weight: 600; }
.vorschau-text .leise { color: var(--leise); }

.abschnitt { padding: 64px 0; }
.abschnitt.hell { background: var(--flaeche); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.abschnitt h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.3px; }
.abschnitt .unter { color: var(--leise); margin: 0 0 32px; max-width: 40em; }

.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.schritt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px; }
.abschnitt.hell .schritt { background: var(--grund); }
.schritt .nummer {
  width: 30px; height: 30px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent-text);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}
.schritt h3 { margin: 0 0 6px; font-size: 18px; }
.schritt p { margin: 0; color: var(--leise); font-size: 15px; }

.merkmale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.merkmal h3 { margin: 0 0 6px; font-size: 17px; }
.merkmal p { margin: 0; color: var(--leise); font-size: 15px; }

/* ---------- Preise ---------- */
.tarife { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 400px)); gap: 18px; align-items: stretch; }
.tarif {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 24px;
}
.tarif.beliebt { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.tarif .band {
  position: absolute; top: -12px; left: 24px; padding: 2px 10px; border-radius: 999px;
  background: var(--akzent); color: #fff; font-size: 12px; font-weight: 600;
}
.tarif h3 { margin: 0 0 4px; font-size: 20px; }
.tarif .text { color: var(--leise); font-size: 14px; margin: 0 0 16px; min-height: 42px; }
.tarif .preis { font-size: 36px; font-weight: 700; letter-spacing: -0.5px; }
.tarif .preis small { font-size: 15px; font-weight: 500; color: var(--leise); }
.tarif .tokens { margin: 6px 0 16px; font-weight: 600; color: var(--akzent-text); }
.tarif ul { list-style: none; padding: 0; margin: 0 0 22px; font-size: 15px; flex: 1; }
.tarif li { padding: 5px 0 5px 24px; position: relative; }
.tarif li::before { content: "✓"; position: absolute; left: 0; color: var(--akzent-text); font-weight: 700; }
.tarif.aktuell { background: var(--akzent-hell); }

.pakete-zeile { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.paket-chip { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.paket-chip strong { display: block; }
.token-info { margin-top: 18px; color: var(--leise); font-size: 15px; }

.fragen { max-width: 760px; }
.fragen details { border-bottom: 1px solid var(--linie); padding: 14px 0; }
.fragen summary { cursor: pointer; font-weight: 600; }
.fragen p { margin: 10px 0 0; color: var(--leise); }

/* ---------- Formularseiten ---------- */
.mitte { min-height: calc(100vh - 64px - 90px); display: grid; place-items: start center; padding: 48px 16px; }
.formular {
  width: 100%;
  max-width: 420px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 28px;
}
.formular h1 { font-size: 24px; margin: 0 0 6px; }
.formular .unter { margin: 0 0 22px; color: var(--leise); font-size: 15px; }
.formular .fuss { margin-top: 18px; font-size: 14px; color: var(--leise); text-align: center; }
.umschalter { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--flaeche-2); padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.umschalter a { text-align: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--leise); font-weight: 600; font-size: 14px; }
.umschalter a.aktiv { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

.abo-seite { max-width: 1060px; margin: 0 auto; padding: 40px 24px 64px; }
.abo-seite h1 { font-size: 30px; margin: 0 0 6px; }
.abo-seite .unter { color: var(--leise); margin: 0 0 30px; }
.zustimmung { max-width: 760px; margin: 24px 0 0; }

.kasse { max-width: 480px; }
.kasse .zeile { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.kasse .summe { font-size: 20px; font-weight: 700; }
.kasse .knoepfe { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ---------- Rechtliches ---------- */
.recht { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.recht h1 { font-size: 30px; }
.recht h2 { font-size: 19px; margin-top: 30px; }
.recht p, .recht li { color: var(--text); }
.platzhalter { background: var(--gelb-hell); padding: 0 4px; border-radius: 4px; }
.vorlage-hinweis { background: var(--gelb-hell); border: 1px solid var(--gelb-rand); padding: 12px 16px; border-radius: 10px; font-size: 14px; }

/* ---------- Fuß ---------- */
.fuss-leiste { border-top: 1px solid var(--linie); background: var(--flaeche); padding: 28px 0; font-size: 14px; color: var(--leise); }
.fuss-leiste .breite { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.fuss-leiste nav { display: flex; flex-wrap: wrap; gap: 18px; }
.fuss-leiste a { color: var(--leise); }

@media (max-width: 860px) {
  .held .breite, .schritte, .merkmale { grid-template-columns: 1fr; }
  .tarife { grid-template-columns: minmax(0, 1fr); }
  .held { padding: 40px 0; }
  .kopf nav .nur-breit { display: none; }
}
@media (max-width: 480px) {
  .breite { padding: 0 16px; }
  .kopf nav { gap: 12px; }
}

.tarif .danach { margin-top: 2px; color: var(--leise); font-size: 14px; }
.kasse .danach { margin: 10px 0 0; color: var(--leise); font-size: 14px; }
.held .klein-text strong { color: var(--akzent-text); }

/* Dunkles Design: Karten mit leichtem Schatten, Buttons mit etwas Tiefe */
.tarif, .formular, .schritt, .vorschau { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 40px rgba(0, 0, 0, 0.35); }
.knopf.haupt { box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25); }
.tarif.beliebt, .tarif:has(.band) { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent), 0 12px 40px rgba(59, 130, 246, 0.15); }
.held h1 { background: linear-gradient(180deg, #ffffff, #c9d3e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
