/* Boxenplan – Landingpage und Rechtsseiten.
   Bewusst ohne Framework, ohne Webfonts, ohne externe Anfragen:
   die Seite laedt nichts nach, setzt keine Cookies und braucht kein Banner. */

:root {
  --akzent: #C4001A;          /* dunkler als das Rot der App – 5,9:1 auf Weiss */
  --akzent-dunkel: #9E0015;
  --tinte: #16171A;
  --text: #24262B;
  --text-zweit: #5A5D66;      /* 6,3:1 auf Weiss */
  --grund: #FFFFFF;
  --flaeche: #F4F5F7;
  --linie: #DDDFE4;
  --fokus: #0B57D0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--tinte); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }

a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent-dunkel); }

/* Sichtbarer Fokus ueberall – auch bei Tastaturbedienung mit Tab */
:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 6px;
}

.huelle { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Sprungmarke fuer Screenreader und Tastatur */
.sprung {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tinte);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 20;
  border-radius: 0 0 8px 0;
}
.sprung:focus { left: 0; }

/* ── Kopfzeile ─────────────────────────────────────────────── */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--linie);
  backdrop-filter: blur(8px);
}
.kopf .huelle { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }
.marke { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--tinte); text-decoration: none; font-size: 1.1rem; }
.marke-zeichen {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--akzent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
}
.kopf nav { margin-left: auto; }
.kopf nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
/* :not(.knopf), sonst faerbt die Navigationsfarbe den roten Knopf um und
   der Text darauf verliert seinen Kontrast. */
.kopf nav a:not(.knopf) { color: var(--text); text-decoration: none; font-weight: 500; }
.kopf nav a:not(.knopf):hover { color: var(--akzent); text-decoration: underline; }
.kopf nav a.knopf { text-decoration: none; }

/* ── Knoepfe ───────────────────────────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.knopf-rot { background: var(--akzent); color: #fff; }
.knopf-rot:hover { background: var(--akzent-dunkel); color: #fff; }
.knopf-rand { border-color: var(--tinte); color: var(--tinte); background: transparent; }
.knopf-rand:hover { background: var(--tinte); color: #fff; }
.knopf[disabled] { opacity: .6; cursor: default; }

/* ── Abschnitte ────────────────────────────────────────────── */
section { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0; }
section + section { border-top: 1px solid var(--linie); }
.hell { background: var(--flaeche); }
.blei { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--text-zweit); max-width: 62ch; }

.held { padding-top: clamp(3rem, 2rem + 5vw, 6rem); }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.held-fakten { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--text-zweit); }
.held-fakten li { display: flex; align-items: center; gap: 0.5rem; }

.gitter { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }

.karte {
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 1.4rem;
}
.karte h3 { display: flex; align-items: center; gap: 0.6rem; }
.karte p { margin: 0; color: var(--text-zweit); }
.karte-nummer {
  width: 30px; height: 30px; border-radius: 999px; flex: none;
  background: var(--akzent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700;
}

/* ── Bilder ────────────────────────────────────────────────── */
figure { margin: 0; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--linie); border-radius: 16px; background: var(--flaeche);
}
figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--text-zweit); }

/* ── Preise ────────────────────────────────────────────────── */
.preis-karte { max-width: 620px; }
.preis-zahl { font-size: 2rem; font-weight: 700; color: var(--tinte); }
.liste-haken { list-style: none; margin: 1rem 0 0; padding: 0; }
.liste-haken li { padding-left: 1.7rem; position: relative; margin-bottom: 0.5rem; }
.liste-haken li::before { content: "✓"; position: absolute; left: 0; color: var(--akzent); font-weight: 700; }

/* ── Formular ──────────────────────────────────────────────── */
form { max-width: 640px; }
.feldgruppe { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.pflicht { color: var(--akzent); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--grund);
  border: 2px solid var(--linie);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
input:focus, textarea:focus { border-color: var(--tinte); }
textarea { min-height: 120px; resize: vertical; }
.hilfe { font-size: 0.9rem; color: var(--text-zweit); margin-top: 0.3rem; }
.zustimmung { display: flex; gap: 0.75rem; align-items: flex-start; }
.zustimmung input { width: 22px; height: 22px; margin: 0.2rem 0 0; flex: none; }
.zustimmung label { font-weight: 400; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 10px; border: 2px solid var(--linie); }
.meldung:empty { display: none; }
.meldung-gut { border-color: #1B7F3B; background: #EAF6EE; color: #14562A; }
.meldung-schlecht { border-color: var(--akzent); background: #FDEDEF; color: #8B0014; }

/* ── FAQ ───────────────────────────────────────────────────── */
details {
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--grund);
}
details summary { font-weight: 600; cursor: pointer; color: var(--tinte); }
details p { margin: 0.7rem 0 0; color: var(--text-zweit); }

/* ── Fusszeile ─────────────────────────────────────────────── */
.fuss { background: var(--tinte); color: #E7E8EB; padding: 2.5rem 0; }
.fuss a { color: #fff; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.fuss p { color: #B9BCC4; font-size: 0.95rem; margin: 0; }

/* ── Rechtstexte ───────────────────────────────────────────── */
.recht { padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 0 4rem; }
.recht .huelle { max-width: 760px; }
.recht h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.recht h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.recht ul, .recht ol { padding-left: 1.3rem; }
.recht li { margin-bottom: 0.4rem; }
.recht table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.recht th, .recht td { border: 1px solid var(--linie); padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; font-size: 0.97rem; }
.recht th { background: var(--flaeche); }
.stand { color: var(--text-zweit); font-size: 0.95rem; }

/* Platzhalter, die vor dem Livegang gefuellt und geprueft werden muessen */
.platzhalter {
  background: #FFF3CD;
  border-bottom: 2px solid #B58100;
  padding: 0 0.25rem;
  border-radius: 3px;
  font-weight: 600;
  color: #5B4300;
}
.hinweis-entwurf {
  border: 2px solid #B58100;
  background: #FFF9E8;
  color: #5B4300;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 2rem;
}
.hinweis-entwurf p { margin: 0; }

/* ── Signaturseite (QR-Ziel) ───────────────────────────────── */
.feld-unterschrift {
  border: 2px dashed var(--linie);
  border-radius: 14px;
  background: var(--grund);
  touch-action: none;          /* sonst scrollt die Seite beim Zeichnen */
  width: 100%;
  height: 220px;
  display: block;
}
.feld-unterschrift.gesetzt { border-style: solid; border-color: var(--text-zweit); }
.daten { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.daten li { display: flex; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.daten .bezeichnung { color: var(--text-zweit); min-width: 9rem; }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.lade { color: var(--text-zweit); }

/* ── PDF-Ansicht (eigenes Blatt statt neuem Fenster) ────────── */
.pdf-blatt {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--grund);
}
.pdf-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(env(safe-area-inset-top) + 0.75rem) 1rem 0.75rem;
  border-bottom: 1px solid var(--linie);
  background: var(--grund);
}
.pdf-titel { font-weight: 700; color: var(--tinte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-zu {
  width: 44px; height: 44px; flex: none;
  border-radius: 999px; border: 0;
  background: var(--flaeche); color: var(--tinte);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.pdf-rahmen { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
.pdf-fuss {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(env(safe-area-inset-bottom) + 0.75rem);
  border-top: 1px solid var(--linie);
  background: var(--grund);
}
.pdf-fuss .knopf { flex: 1 1 0; }
.pdf-fuss .knopf-rand { flex: 0 0 auto; }