/* Fortepair – Landing Page. Farben kommen aus themen.css (erzeugt von bauen.mjs). */

*, *::before, *::after { box-sizing: border-box; }
:root {
  --rand: 4px;      /* Vorlage Linie: kantig */
  --rand-klein: 3px;
  --spalte: 1140px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  overflow-x: clip; /* nichts darf seitlich hinausragen */
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--primary); color: var(--on-primary); padding: .7rem 1rem; border-radius: var(--rand-klein); }

.huelle { width: min(100% - 2.5rem, var(--spalte)); margin-inline: auto; }
.schmal-inhalt { width: min(100% - 2.5rem, 760px); }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.kopf-innen { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.marke { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; text-decoration: none; }
.logo { width: 25px; height: 30px; color: var(--text); flex: none; }
.logo.gross { width: 38px; height: 46px; }
.logo-strich { fill: #EA580C; }
@media (prefers-color-scheme: dark) { .logo-strich { fill: #F97316; } }
.nav { display: flex; gap: 1.35rem; margin-inline: auto; font-size: .96rem; }
.nav a { text-decoration: none; color: var(--muted); padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); border-bottom-color: var(--primary); }
.kopf-rechts { display: flex; align-items: center; gap: .6rem; }
@media (max-width: 860px) { .nav { display: none; } .kopf-innen { justify-content: space-between; } }
/* Auf schmalen Geräten passt der Knopf im Kopf nicht mehr daneben – im Hero steht derselbe. */
@media (max-width: 560px) {
  .kopf-innen { gap: .6rem; min-height: 60px; }
  .kopf-rechts .knopf { display: none; }
}

.sprachwahl { position: relative; display: inline-flex; align-items: center; }
.sprachwahl svg { position: absolute; left: .55rem; width: 17px; height: 17px; fill: var(--muted); pointer-events: none; }
.sprachwahl select {
  appearance: none; font: inherit; font-size: .9rem; color: var(--text);
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--rand);
  padding: .42rem 1.6rem .42rem 2.1rem; cursor: pointer;
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary); color: var(--on-primary);
  padding: .78rem 1.35rem; border-radius: var(--rand);
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease;
}
.knopf:hover { filter: brightness(1.07); transform: translateY(-1px); }
.knopf.klein { padding: .5rem 1rem; font-size: .92rem; }
.knopf.still { background: var(--surface); color: var(--text); border-color: var(--border); }
.knopf.aus { opacity: .62; cursor: default; }
.knopf.aus:hover { transform: none; filter: none; }
.knopf small { font-weight: 400; opacity: .75; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 .9rem; }
/* Google-Play-Knopf: in beiden Farbmodi schwarz mit weißer Schrift, wie man ihn kennt */
.play-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #09090B; color: #fff; border: 1px solid #3F3F46; border-radius: 10px;
  padding: .5rem 1.15rem .5rem .95rem; text-decoration: none; line-height: 1.1;
  font-weight: 650; font-size: 1.12rem; transition: transform .15s ease;
}
.play-badge:hover { transform: translateY(-1px); }
.play-badge span { display: flex; flex-direction: column; }
.play-badge small { font-size: .68rem; font-weight: 500; letter-spacing: .02em; opacity: .85; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) 0 clamp(2rem, 1rem + 4vw, 4rem); }
.hero-innen { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (max-width: 920px) { .hero-innen { grid-template-columns: 1fr; } }
/* Mit Anmeldefeld: Text und Bild links, das Feld rechts (Handy: Text, Feld, Bild) */
.hero-innen:has(.anmelde-karte) { grid-template-columns: 1.15fr minmax(300px, 400px); grid-template-areas: "text karte" "bild karte"; align-items: start; row-gap: 2rem; }
.hero-innen:has(.anmelde-karte) .hero-text { grid-area: text; }
.hero-innen:has(.anmelde-karte) .hero-bild { grid-area: bild; }
.anmelde-karte[hidden] { display: none; }
.anmelde-titel { font-size: 1.25rem; text-align: center; margin: 0; }
.anmelde-karte { grid-area: karte; align-self: center; display: grid; gap: .8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rand); box-shadow: var(--schatten); padding: 1.4rem; }
@media (max-width: 920px) {
  .hero-innen:has(.anmelde-karte) { grid-template-columns: 1fr; grid-template-areas: "text" "karte" "bild"; }
}
.feld { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; }
.feld input { font: inherit; font-size: 1rem; font-weight: 400; color: var(--text); background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--rand); padding: .8rem .9rem; width: 100%; }
.feld input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.knopf.voll { width: 100%; justify-content: center; text-align: center; font-size: 1.02rem; }
.knopf.zweit { background: #C2410C; color: #fff; border-color: #C2410C; }
.knopf[disabled] { opacity: .65; cursor: wait; transform: none; }
.vergessen { justify-self: center; font-size: .9rem; color: var(--primary); }
.anmelde-fehler { color: #DC2626; font-size: .9rem; margin: 0; }
.trenner { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .85rem; margin: .2rem 0; }
.trenner::before, .trenner::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.kicker { font-size: .85rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.gross-text { font-size: clamp(1.06rem, 1rem + .4vw, 1.22rem); color: var(--muted); max-width: 54ch; }
.klein-text { font-size: .87rem; color: var(--muted); }
.hero-bild { margin: 0; position: relative; }
.hero-bild img { border-radius: 0; border: 1px solid var(--border); box-shadow: var(--schatten); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.marken-schild {
  position: absolute; left: -14px; bottom: -18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rand);
  padding: .7rem; box-shadow: var(--schatten); color: var(--text);
}
@media (max-width: 920px) { .marken-schild { left: auto; right: 10px; bottom: -14px; } }

/* ---------- Bänder ---------- */
.band { padding: clamp(2.8rem, 1.5rem + 4vw, 5.5rem) 0; }
.band.flaeche { background: var(--surface2); border-block: 1px solid var(--border); }
.intro { color: var(--muted); font-size: 1.05rem; max-width: 66ch; margin-bottom: 2.2rem; }

.karte {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rand);
  padding: 1.5rem; box-shadow: var(--schatten);
}
.karte p:last-child { margin-bottom: 0; }

.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.paar.schmal { margin-top: 1.4rem; }
@media (max-width: 820px) { .paar { grid-template-columns: 1fr; } }
.bildkarte { padding: 0; overflow: hidden; }
.bildkarte img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.karte-innen { padding: 1.5rem; }
.zeichen {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--rand-klein);
  font-size: 1.3rem; font-weight: 700; margin-bottom: .8rem;
}
.zeichen.gleich { color: var(--same); background: var(--same-bg); }
.zeichen.erg { color: var(--comp); background: var(--comp-bg); }

.gitter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.gitter.vier { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .gitter, .gitter.vier { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gitter, .gitter.vier { grid-template-columns: 1fr; } }
.funktion .icon { width: 26px; height: 26px; fill: var(--primary); margin-bottom: .7rem; }
.funktion p { color: var(--muted); font-size: .96rem; margin: 0; }
.versprechen { border-left: 3px solid var(--primary); }
.versprechen p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Bildschirme ---------- */
.schirme { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
@media (max-width: 980px) { .schirme { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .schirme { grid-template-columns: repeat(2, 1fr); } }
.handy { margin: 0; text-align: center; }
.handy img {
  width: 100%; border-radius: var(--rand); border: 7px solid var(--text);
  background: var(--surface); box-shadow: var(--schatten);
}
.handy figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; }

/* ---------- Zweispalter ---------- */
.zweispalt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (max-width: 880px) { .zweispalt { grid-template-columns: 1fr; } .zweispalt.umgekehrt > :first-child { order: 2; } }
.bild-rund { margin: 0; }
.bild-rund img { border-radius: 0; border: 1px solid var(--border); box-shadow: var(--schatten); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.haken { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.haken li { position: relative; padding-left: 1.9rem; color: var(--muted); }
.haken li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.1rem; height: .6rem;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg);
}

/* ---------- Preise ---------- */
.preis-gitter { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; align-items: start; }
@media (max-width: 820px) { .preis-gitter { grid-template-columns: 1fr; } }
table.preise { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
table.preise th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding-bottom: .5rem; }
table.preise td { padding: .7rem 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
table.preise td:last-child { text-align: right; font-weight: 600; }
.marke-klein { font-size: .74rem; background: var(--same-bg); color: var(--same); padding: .12rem .45rem; border-radius: var(--rand); margin-left: .4rem; vertical-align: 2px; }
.extras { margin: 0 0 1rem; display: grid; gap: .2rem; }
.extras dt { font-weight: 600; margin-top: .7rem; }
.extras dd { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Fragen ---------- */
.fragen { display: grid; gap: .6rem; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rand-klein); padding: .2rem .4rem; }
summary { cursor: pointer; font-weight: 600; padding: .95rem .8rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { padding: 0 .8rem 1rem; margin: 0; color: var(--muted); }

/* ---------- Abschluss ---------- */
.abschluss .breitbild { margin: 0 0 -5rem; }
.abschluss .breitbild img { width: 100%; border-radius: 0; aspect-ratio: 21/9; object-fit: cover; filter: saturate(.95); }
.abschluss-text {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rand);
  box-shadow: var(--schatten); padding: clamp(1.6rem, 1rem + 2vw, 2.6rem);
  width: min(100%, 720px); margin-inline: auto;
}
@media (max-width: 620px) { .abschluss .breitbild { margin-bottom: -2.5rem; } .abschluss .breitbild img { aspect-ratio: 4/3; } }

/* ---------- Fuß ---------- */
.fuss { background: var(--surface2); border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.fuss-gitter { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 880px) { .fuss-gitter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss-gitter { grid-template-columns: 1fr; } }
.fuss h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; }
.liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; }
.liste a { text-decoration: none; color: var(--muted); }
.liste a:hover, .liste a[aria-current] { color: var(--text); }
.farben { display: grid; gap: .4rem; margin-bottom: 1rem; }
.farbe {
  display: flex; align-items: center; gap: .55rem; font: inherit; font-size: .92rem; color: var(--muted);
  background: none; border: 0; padding: .18rem 0; cursor: pointer; text-align: left;
}
.farbe:hover, .farbe[aria-pressed="true"] { color: var(--text); }
.punkt { width: 18px; height: 18px; border-radius: 50%; background: var(--b); border: 3px solid var(--p); flex: none; }
.hellwahl { display: inline-flex; border: 1px solid var(--border); border-radius: var(--rand); overflow: hidden; background: var(--surface); }
.hellwahl button {
  font: inherit; font-size: .86rem; color: var(--muted); background: none; border: 0;
  padding: .42rem .8rem; cursor: pointer;
}
.hellwahl button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.fuss-schluss { margin: 2.5rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.zurueck { text-decoration: none; color: var(--muted); font-size: .95rem; }

/* ---------- Rechtstexte ---------- */
main.band h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-top: 2.5rem; }
main.band h1:first-of-type { margin-top: 1rem; }
main.band h2 { font-size: 1.12rem; margin-top: 1.8rem; }
main.band p { color: var(--muted); }

/* ---------- Einblenden ---------- */
@media (prefers-reduced-motion: no-preference) {
  .wirkung { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .wirkung.da { opacity: 1; transform: none; }
}

/* Beta-Schild neben dem Logo (Markus, 17.10.2026) – abschalten: "beta": false in inhalt.json */
.beta { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  color: #EA580C; border: 1.5px solid #EA580C; border-radius: 3px; padding: .22rem .38rem; margin-left: .1rem; }
@media (prefers-color-scheme: dark) { .beta { color: #F97316; border-color: #F97316; } }
.beta-hinweis a { color: inherit; }
