/* Gestaltung fuer die oeffentlichen Seiten von Seovanto.
 *
 * Wird von public/landing.html und public/partner.html gemeinsam benutzt.
 * Vorher lag alles inline in landing.html - bei einer zweiten Seite waeren
 * daraus zwei Kopien geworden, die mit der Zeit auseinanderlaufen.
 *
 * Das Dashboard hinter der Anmeldung hat eine eigene Datei: public/styles.css.
 */
:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --surface-2: #eef4f0;
  --ink: #101a15;
  --muted: #55675e;
  --line: #e2eae5;
  --accent: #0c8f5e;
  --accent-ink: #0a5c3e;
  --accent-soft: #e3f3ec;
  --dunkel: #062a1c;
  --dunkel-2: #0a3d29;
  --auf-dunkel: #e6f3ec;
  --auf-dunkel-leise: #9dc4b2;
  --error: #b3261e;
  --error-soft: #fdeceb;
  --warn: #8a5a00;
  --warn-soft: #fdf3e0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --schatten: 0 1px 2px rgba(10, 40, 28, 0.06), 0 12px 34px -12px rgba(10, 40, 28, 0.18);
  --schatten-hoch: 0 2px 6px rgba(10, 40, 28, 0.08), 0 30px 60px -22px rgba(10, 40, 28, 0.35);
  --radius: 18px;
  --schimmer-a: rgba(12, 143, 94, 0.13);
  --schimmer-b: rgba(12, 143, 94, 0.09);
  --raster: rgba(12, 143, 94, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1310;
    --surface: #151d18;
    --surface-2: #1b2721;
    --ink: #e9efea;
    --muted: #93a69c;
    --line: #253029;
    --accent: #2fbc85;
    --accent-ink: #7fe4b4;
    --accent-soft: #14261d;
    --dunkel: #061f15;
    --dunkel-2: #0a3327;
    --error: #ff9d95;
    --error-soft: #2c1614;
    --warn: #e0b25c;
    --warn-soft: #241e12;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 34px -12px rgba(0, 0, 0, 0.6);
    --schatten-hoch: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 60px -22px rgba(0, 0, 0, 0.8);
    --schimmer-a: rgba(47, 188, 133, 0.16);
    --schimmer-b: rgba(47, 188, 133, 0.10);
    --raster: rgba(255, 255, 255, 0.05);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--accent-ink); }
.hidden { display: none !important; }

/* Raster: eine breite Bahn, darin eine schmale Textspalte */
.bahn { width: min(78rem, 100% - 3rem); margin-inline: auto; }
.schmal { max-width: 46rem; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.kopf.geklebt { border-bottom-color: var(--line); }
.kopf .bahn { display: flex; align-items: center; gap: 0.7rem; height: 62px; }
.kopf .logo { width: 30px; height: 30px; border-radius: 8px; display: block; }
.kopf .name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.kopf nav { margin-left: auto; display: flex; align-items: center; gap: 1.3rem; }
.kopf nav a { font-size: 0.93rem; text-decoration: none; color: var(--muted); }
.kopf nav a:hover { color: var(--ink); }
.kopf nav a.knopf {
  color: #fff; background: var(--accent); padding: 0.5rem 1rem;
  border-radius: 10px; font-weight: 600; white-space: nowrap;
}
.kopf nav a.knopf:hover { background: var(--accent-ink); color: #fff; }
.kopf nav { gap: 1.3rem; }
@media (max-width: 40rem) {
  .kopf nav { gap: 0.75rem; }
  .kopf nav a.nur-breit { display: none; }
  .kopf nav a { font-size: 0.88rem; }
  .kopf nav a.knopf { padding: 0.45rem 0.9rem; }
  .kopf .name { font-size: 1.05rem; }
}
.kopf .knopf .kurz { display: none; }
@media (max-width: 30rem) {
  .kopf .knopf .lang { display: none; }
  .kopf .knopf .kurz { display: inline; }
}

/* ---------- Aufmacher ---------- */
.held {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70rem 34rem at 82% -12%, var(--schimmer-a), transparent 62%),
    radial-gradient(46rem 28rem at 2% 112%, var(--schimmer-b), transparent 66%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.8rem, 1.6rem + 4vw, 4.8rem) 0 clamp(3.4rem, 2rem + 5vw, 5.6rem);
}
/* feines Raster im Hintergrund - gibt Tiefe, ohne laut zu sein */
.held::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--raster) 1px, transparent 1px),
    linear-gradient(90deg, var(--raster) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(62rem 40rem at 62% 0%, #000, transparent 76%);
}
.held .bahn { position: relative; }
.held-raster {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 3.4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 62rem) {
  .held-raster { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
}
.schild {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.38rem 0.85rem 0.38rem 0.45rem; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--schatten);
  color: var(--accent-ink); margin-bottom: 1.3rem;
}
.schild i {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-style: normal; font-size: 0.7rem;
}
.held h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.15rem);
  color: var(--ink); margin-bottom: 1.1rem; text-wrap: balance;
}
.held h1 .hl {
  background: linear-gradient(100deg, var(--accent), var(--accent-ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.held .lede {
  font-size: clamp(1.06rem, 0.98rem + 0.55vw, 1.28rem);
  color: var(--muted); max-width: 42ch; text-wrap: pretty;
}

/* Check-Kasten im Aufmacher */
.check-box {
  margin-top: 2rem; max-width: 34rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.35rem 1.25rem;
  box-shadow: var(--schatten-hoch);
}
.check-box h2 { font-size: 1.18rem; margin-bottom: 0.3rem; }
.check-box .sub { color: var(--muted); font-size: 0.93rem; margin-bottom: 1rem; }
.check-form { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.check-form input {
  flex: 1 1 13rem; min-width: 0; font: inherit;
  padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); color: var(--ink);
}
.check-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn {
  font: inherit; font-weight: 600; padding: 0.9rem 1.5rem;
  border: 0; border-radius: 12px; background: var(--accent); color: #fff;
  text-decoration: none; cursor: pointer; flex: 0 0 auto;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent-ink); border: 1px solid var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn.gross { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn.weiss { background: #fff; color: var(--dunkel); }
.btn.weiss:hover { background: var(--accent-soft); color: var(--dunkel); }

.vertrauen { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.95rem; }
.vertrauen span { font-size: 0.85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.35rem; }
.vertrauen svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--accent); }

.err-msg { color: var(--error); font-size: 0.95rem; margin-top: 0.9rem; }
.loading { color: var(--muted); font-size: 0.95rem; margin-top: 0.9rem; display: flex; align-items: center; gap: 0.55rem; }
.loading::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: dreh 0.8s linear infinite;
}
@keyframes dreh { to { transform: rotate(360deg); } }

/* Beispielkarte rechts */
.beispiel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.2rem 1.35rem;
  box-shadow: var(--schatten-hoch); color: var(--ink);
  transform: rotate(-1.1deg);
}
.beispiel .kopfzeile {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.76rem; color: var(--muted); margin-bottom: 0.9rem;
}
.beispiel .kopfzeile b {
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  font-size: 0.66rem; color: var(--muted);
  background: var(--surface-2); padding: 0.2rem 0.5rem; border-radius: 999px;
}
.beispiel .zahl-reihe { display: flex; align-items: center; gap: 0.9rem; }
.beispiel .zahl { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.beispiel .zahl small { font-size: 1rem; color: var(--muted); font-family: var(--sans); }
.beispiel .urteil { font-weight: 600; font-size: 0.97rem; }
.beispiel .adresse { font-size: 0.8rem; color: var(--muted); }
.beispiel .balken { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 0.95rem 0 1rem; }
.beispiel .balken > span { display: block; height: 100%; width: 56%; background: linear-gradient(90deg, var(--accent), #35c98d); }
.beispiel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.beispiel li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: var(--surface-2); border-radius: 11px; padding: 0.6rem 0.75rem; font-size: 0.88rem;
}
.beispiel li .tag {
  flex: 0 0 auto; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.2rem 0.45rem; border-radius: 999px; margin-top: 0.12rem;
}
.beispiel li .tag.error { background: var(--error-soft); color: var(--error); }
.beispiel li .tag.warn { background: var(--warn-soft); color: var(--warn); }
.beispiel li b { display: block; font-weight: 600; }
.beispiel li span.d { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 62rem) {
  .beispiel { display: none; }
}

/* ---------- Zahlenband ---------- */
.fakten {
  background: var(--surface); border-block: 1px solid var(--line);
}
.fakten .bahn {
  display: grid; gap: 1.2rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  padding: 1.6rem 0;
}
.fakt b { display: block; font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; }
.fakt span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Abschnitte ---------- */
section.block { padding: clamp(3rem, 2rem + 4vw, 5rem) 0; }
section.block.leise { background: var(--surface); border-block: 1px solid var(--line); }
.ueber { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
section.block h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); margin-bottom: 0.7rem; }
.abschnitt-lede { color: var(--muted); max-width: 48ch; margin-bottom: 2rem; }

.karten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.karte {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--schatten);
}
section.block.leise .karte { background: var(--bg); }
.karte .sinn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 0.95rem;
}
.karte .sinn svg { width: 21px; height: 21px; }
.karte h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.karte p { color: var(--muted); font-size: 0.95rem; }

/* Ablauf */
.schritte { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); position: relative; }
.schritt { position: relative; }
.schritt .n {
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem; margin-bottom: 0.8rem;
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.schritt h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.schritt p { color: var(--muted); font-size: 0.94rem; }
@media (min-width: 58rem) {
  .schritt::after {
    content: ""; position: absolute; left: 3.1rem; top: 1.15rem; right: -1rem;
    height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 13px);
  }
  .schritt:last-child::after { display: none; }
}

/* ---------- Ergebnis ---------- */
#ergebnis-bereich { scroll-margin-top: 72px; padding: clamp(2.4rem, 1.5rem + 3vw, 3.6rem) 0; background: var(--surface); border-block: 1px solid var(--line); }
#result {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--schatten);
}
.score-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.score-num { font-family: var(--serif); font-size: 3.2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.score-num .of { font-size: 1.05rem; color: var(--muted); font-family: var(--sans); }
.score-txt { flex: 1 1 12rem; }
.score-txt .headline { font-weight: 600; font-size: 1.05rem; }
.score-txt .where { font-size: 0.85rem; color: var(--muted); word-break: break-all; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 1.1rem 0 1.3rem; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #35c98d); transition: width 0.7s cubic-bezier(.2,.7,.3,1); }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.issues li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.75rem 0.9rem; font-size: 0.95rem;
}
.issues .tag {
  flex: 0 0 auto; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.22rem 0.5rem; border-radius: 999px; margin-top: 0.15rem;
}
.issues .tag.error { background: var(--error-soft); color: var(--error); }
.issues .tag.warn { background: var(--warn-soft); color: var(--warn); }
.issues .tag.info { background: var(--accent-soft); color: var(--accent-ink); }
.issues .txt strong { display: block; font-weight: 600; }
.issues .txt span { display: block; color: var(--muted); font-size: 0.88rem; }
.issues .txt span.warum { color: var(--accent-ink); font-size: 0.85rem; margin-top: 0.15rem; }
.more { font-size: 0.88rem; color: var(--muted); margin-top: 0.7rem; }

.ungeprueft { margin-top: 1.5rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ungeprueft h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.ungeprueft-intro { color: var(--muted); font-size: 0.93rem; margin-bottom: 0.95rem; }
.ungeprueft-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ungeprueft-liste li { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.ungeprueft-liste b { display: block; color: var(--ink); font-weight: 600; }

.cta-after {
  margin-top: 1.5rem; padding: 1.3rem;
  background: linear-gradient(150deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 55%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 14px;
}
.cta-after p { font-size: 0.98rem; margin-bottom: 1rem; }

/* ---------- Preise ---------- */
.preis-kopf { text-align: center; }
.preis-kopf .abschnitt-lede { margin-inline: auto; margin-bottom: 1.4rem; }
.laufzeit {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px; margin-bottom: 2rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  flex-wrap: wrap; max-width: 100%;
}
.laufzeit button {
  font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 1.1rem;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
}
.laufzeit button.aktiv { background: var(--accent); color: #fff; }
.laufzeit button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lz-schild {
  margin-left: 6px; padding: 0.25rem 0.65rem; font-size: 0.78rem; font-weight: 700;
  color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; white-space: nowrap;
}
.tarife { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); align-items: stretch; }
.tarif {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.35rem; box-shadow: var(--schatten);
}
/* Hervorgehoben, ohne die helle Seite zu zerreissen: gruener Rahmen,
   zarter Farbverlauf, etwas mehr Schatten — und einen Tick groesser. */
.tarif.beliebt {
  background: linear-gradient(170deg, var(--accent-soft), var(--surface) 58%);
  border-color: var(--accent);
  box-shadow: var(--schatten-hoch);
}
@media (min-width: 66rem) {
  .tarif.beliebt { margin-block: -0.7rem; padding-block: 2.2rem; }
}
.tarif .marke {
  position: absolute; top: -0.72rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  color: #fff; background: var(--accent); padding: 0.25rem 0.75rem; border-radius: 999px;
}
.tarif h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.tarif .preis { display: flex; align-items: baseline; gap: 0.2rem; }
.tarif .preis .zahl { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tarif .preis .je { font-size: 0.9rem; color: var(--muted); }
.tarif .preis-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.1rem; min-height: 1.2em; }
.tarif .preis-sub.sparen { color: var(--accent-ink); font-weight: 600; }
.tarif ul { margin: 0 0 1.3rem; padding: 0; list-style: none; font-size: 0.92rem; color: var(--muted); flex: 1 1 auto; display: grid; gap: 0.5rem; }
/* Kein Flex-Kasten: sonst wuerde ein <b> im Text zur eigenen Spalte. */
.tarif li { position: relative; padding-left: 1.55rem; }
.tarif li::before {
  content: ""; position: absolute; left: 0; top: 0.32rem;
  width: 15px; height: 15px;
  background: currentColor; color: var(--accent);
  -webkit-mask: var(--haken) center/contain no-repeat; mask: var(--haken) center/contain no-repeat;
}
.tarif li b { color: var(--ink); }
.tarif .btn { text-align: center; text-decoration: none; display: block; }
.preis-fuss { font-size: 0.85rem; color: var(--muted); margin-top: 1.4rem; text-align: center; }

/* ---------- Schluss ---------- */
.schluss {
  background:
    radial-gradient(52rem 26rem at 50% 118%, var(--schimmer-a), transparent 66%),
    var(--surface-2);
  border-block: 1px solid var(--line);
  text-align: center;
  padding: clamp(3rem, 2rem + 4vw, 4.6rem) 0;
}
.schluss h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); color: var(--ink); margin-bottom: 0.7rem; }
.schluss p { color: var(--muted); max-width: 44ch; margin: 0 auto 1.6rem; }

footer { padding: 2.4rem 0 2.8rem; color: var(--muted); font-size: 0.88rem; background: var(--surface); border-top: 1px solid var(--line); }
footer .bahn { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
footer .marke-zeile { display: flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 0.4rem; }
footer h4 { font: inherit; font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent-ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Zusatz: neue Seiten (eigenes Paket, einmal zahlen) */
.zusatz-seiten {
  margin-top: 1.8rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.zusatz-seiten h3 { margin: 0 0 0.5rem; }
.zusatz-seiten p { margin: 0 0 0.6rem; }
.zusatz-preise { font-size: 1.05rem; }
