/* ==========================================================================================
   landing.css – öffentliche Seiten von https://dsgvo-one.de/ (Start, Preise, Fragen und
   Antworten, Branchen, Impressum, Datenschutz).
   Entwurf: docs/design/landing-seiten.html (gestalter, 2026-10-23; Bausteine wie App: M15k T6, 2026-11-24);
   Vorgänger: docs/design/landing-platzhalter*.html (2026-10-16).
   :root aus Generator: scripts/tokens-css.mts (pnpm tokens:css) schreibt apps/landing/quelle/tokens.mjs aus
   packages/shared/src/tokens (shadcn-Preset b2pzle: Style Nova, Neutral, Theme Indigo, Radius 0.625rem) – nicht von Hand ändern.
   Bausteine wie in der App: Karte = Card (ui/card.tsx), Kartentitel = CardTitle, Knöpfe = Button default/outline
   (ui/button.tsx), Kasten in der Karte = BOX (common/box.ts), Seitentitel = PageTitle. Abweichungen stehen am Selektor.
   Schrift: Systemschrift (M15k E3) – keine Webschrift, nichts wird nachgeladen.
   Nur helles Schema (SPEC §1a Nr. 15) – der frühere Dunkel-Block ist bewusst entfernt.
   Breiten: Container-Abfragen auf .seite (äußerstes Element im body, also = Fensterbreite):
   37.5rem = 600 px (--breakpoint-sm) und 56.25rem = 900 px (--breakpoint-md).
   ========================================================================================== */

/* ----- Tokens ----------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --radius: 0.625rem;
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #6a6a6a;
  --primary: #4338ca;
  --primary-foreground: #eef2ff;
  --border: #e5e5e5;
  --input: #8c8c8c;
  --ring: #737373;
  --link: #4338ca;
  --touch: 44px;     /* --spacing-touch */
  --rahmen: 55rem;   /* --container-wide */
  --zeile: 34em;     /* Zeilenlänge ≈ 65–70 Zeichen; gilt für p, li, dd */
}

/* ----- Grundlagen (das Wenige aus Tailwind-Preflight, das die Seiten brauchen) -------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  /* Systemschrift (M15k E3): --font-sans ohne "Inter Variable" – auch eine lokal installierte Inter greift nicht. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
}
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: var(--link); }
strong { font-weight: 600; }
/* Fokus wie in der App (globals.css): 3 px Ring, 2 px Abstand. Nicht entfernen. */
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ----- Seitenrahmen und Spalte ------------------------------------------------------------ */
.seite {
  container: seite / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-size: 1rem;      /* Lesetext der Marketingseiten 16 px */
  line-height: 1.5;
}
.seite main { flex: 1; }
.seite :is(p, li, dd) { max-width: var(--zeile); }
.rahmen { width: 100%; max-width: var(--rahmen); margin-inline: auto; padding-inline: 1.25rem; }

/* Sprunglink: unsichtbar bis zum Tastaturfokus */
.sprung {
  position: absolute; left: 1.25rem; top: -10rem; z-index: 10;
  display: inline-flex; align-items: center; min-height: var(--touch); padding-inline: 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); color: var(--foreground);
  font-size: 0.875rem; font-weight: 500;
}
.sprung:focus { top: 0.5rem; }

/* ----- Seitenkopf mit Menü (ohne Skript: eine Linkzeile) ---------------------------------- */
.seitenkopf { border-bottom: 1px solid var(--border); background: var(--background); }
.seitenkopf > .rahmen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  column-gap: 0.75rem; min-height: 3.5rem;
}
.name {
  display: inline-flex; align-items: center; min-height: var(--touch);
  color: var(--foreground); font-weight: 600; letter-spacing: -0.025em; text-decoration: none;
}
.name:hover { text-decoration: underline; text-underline-offset: 4px; }
.menue ul { display: flex; flex-wrap: wrap; align-items: center; margin-inline: -0.375rem; }
.menue a {
  display: inline-flex; align-items: center; min-height: var(--touch); padding-inline: 0.375rem;
  border-radius: calc(var(--radius) * 0.8);
  color: var(--foreground); font-size: 0.875rem; font-weight: 500; text-decoration: none;
}
.menue a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* aktuelle Seite bzw. aktueller Bereich: Unterstrich 2 px – Form, nicht nur Farbe */
.menue a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menue .kopf-aufruf { color: var(--link); }
.nur-breit { display: none; }

/* ----- Einordnung über dem Titel: Brotkrumen ---------------------------------------------- */
.kopf { display: flex; flex-direction: column; gap: 0.25rem; }
.kopf .art { font-size: 0.75rem; color: var(--muted-foreground); }
.pfad ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.pfad li { display: inline-flex; align-items: center; gap: 0.5rem; }
.pfad li + li::before {   /* Chevron › als Form, für Vorlesewerkzeuge unsichtbar */
  content: ""; width: 0.375rem; height: 0.375rem;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.pfad a { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--link); text-decoration: none; }
.pfad a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pfad [aria-current] { color: var(--foreground); }

/* ----- Titel und Einstieg ----------------------------------------------------------------- */
.marke {
  font-size: 1.5rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.025em;
  text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;
}
.satz { font-size: 1rem; line-height: 1.5; color: var(--muted-foreground); }
.satz strong { color: var(--foreground); }
.lage { font-size: 0.875rem; color: var(--muted-foreground); }
.einstieg { padding-block: 1.5rem 2.5rem; }
.einstieg > .rahmen { display: flex; flex-direction: column; gap: 1rem; }

/* ----- Aufruf zum Handeln ----------------------------------------------------------------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  width: 100%; min-height: var(--touch); padding-inline: 0.75rem;
  border: 1px solid var(--primary); border-radius: var(--radius);
  background: var(--primary); color: var(--primary-foreground);
  font: inherit; font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, transform .15s;
}
/* 90 % statt 80 % wie in der App: 80 % ergäbe 4,4:1 (unter AA), 90 % ergibt 5,6:1 */
.knopf:hover { background: color-mix(in srgb, var(--primary) 90%, transparent); }
.knopf:active { transform: translateY(1px); }
/* Zweiter Knopf = Button variant=outline (border-border bg-background text-foreground hover:bg-muted) */
.knopf.zweit { border-color: var(--border); background: var(--background); color: var(--foreground); }
.knopf.zweit:hover { background: var(--muted); }
.aufruf-zeile { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.5rem; }
.neben {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.5rem; min-height: var(--touch);
  font-size: 0.875rem; color: var(--muted-foreground);
}
.adresse { color: var(--foreground); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.zurueck, .weiter {
  display: inline-flex; align-items: center; align-self: flex-start; min-height: var(--touch);
  text-decoration: underline; text-underline-offset: 4px;
}
.zurueck:hover, .weiter:hover { text-decoration-thickness: 2px; }

/* ----- Abschnitte ------------------------------------------------------------------------- */
.teil { padding-block: 2.5rem; }
.teil.getoent { background: var(--muted); }
.einstieg + .teil:not(.getoent), .teil:not(.getoent) + .teil:not(.getoent) { border-top: 1px solid var(--border); }
.teil > .rahmen { display: flex; flex-direction: column; gap: 1rem; }
.teil h2 {
  font-size: 1.25rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em;
  text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;
}
.gruppe { font-weight: 600; }
.klein, .norm { font-size: 0.875rem; color: var(--muted-foreground); }
.spalte { display: flex; flex-direction: column; gap: 0.75rem; }

/* ----- Karte und Raster (Card: flex-col gap-3 rounded-xl p-4 ring-1 ring-foreground/10, auf jeder Breite) -- */
.karte {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem;
  border-radius: calc(var(--radius) * 1.4);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent);
  overflow-wrap: break-word;
}
/* Kartentitel = CardTitle: text-base leading-snug font-semibold */
.karte-titel, .schritt-titel { font-size: 1rem; line-height: 1.375; font-weight: 600; }
.raster { display: grid; gap: 1rem; }

/* ----- Drei Schritte ---------------------------------------------------------------------- */
.schritte { display: grid; gap: 1rem; counter-reset: schritt; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.schritte > li {
  counter-increment: schritt;
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0.25rem; align-content: start;
}
.schritte > li::before {
  content: counter(schritt);
  content: counter(schritt) / "";   /* Zahl nur fürs Auge; die Liste nennt sie schon */
  grid-row: span 2;
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-foreground);
  font-size: 0.875rem; font-weight: 600;
}
.schritt-titel { padding-top: 0.25rem; }

/* ----- Listen mit Symbol (Form statt Farbe: ✓ ✕ ○ •) -------------------------------------- */
.liste { display: flex; flex-direction: column; gap: 0.75rem; }
.liste > li { position: relative; padding-left: 1.75rem; }
.liste > li::before, .liste.ohne > li::after { content: ""; position: absolute; }
.liste.haken > li::before {
  left: 0.4rem; top: 0.25rem; width: 0.45rem; height: 0.8rem;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
}
.liste.ohne > li::before, .liste.ohne > li::after {
  left: 0.125rem; top: calc(0.75rem - 1px); width: 0.875rem; height: 2px;
  background: var(--muted-foreground); transform: rotate(45deg);
}
.liste.ohne > li::after { transform: rotate(-45deg); }
.liste.offen > li::before {
  left: 0.125rem; top: 0.375rem; width: 0.75rem; height: 0.75rem;
  border: 2px solid var(--muted-foreground); border-radius: 50%;
}
.liste.punkte > li::before {
  left: 0.375rem; top: 0.6rem; width: 0.375rem; height: 0.375rem;
  border-radius: 50%; background: var(--foreground);
}

/* ----- Branchenkachel (ganze Karte klickbar, Name = Branchenname) ------------------------- */
.kachel { position: relative; gap: 0.25rem; }
.kachel a { line-height: 1.375; font-weight: 600; text-underline-offset: 4px; }   /* Name = Kartentitel */
.kachel a::after { content: ""; position: absolute; inset: 0; border-radius: calc(var(--radius) * 1.4); }
.kachel p { font-size: 0.875rem; color: var(--muted-foreground); }
.kachel:hover { box-shadow: 0 0 0 1px var(--input); }
.kachel:hover a { text-decoration-thickness: 2px; }
.kachel a:focus-visible { outline: none; }
.kachel a:focus-visible::after { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ----- Preise ----------------------------------------------------------------------------- */
.teil .preiskarte h2 { font-size: 1rem; line-height: 1.375; letter-spacing: 0; }   /* = CardTitle */
.preis { line-height: 1.2; }
.preis-ab { font-size: 1rem; font-weight: 500; color: var(--muted-foreground); }
/* Betrag = Kennzahl der App (text-2xl tabular-nums, M15k E4), auf jeder Breite; nie größer als der Seitentitel */
.preis-betrag { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.preis-einheit { display: block; margin-top: 0.25rem; font-size: 1rem; color: var(--muted-foreground); }
/* „In Vorbereitung“ = Platzhalterform der App (border-dashed border-input, z. B. ContextSwitcher, Vorlagen-Karten) */
.vorbereitung {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem;
  border: 1px dashed var(--input); border-radius: calc(var(--radius) * 1.4);
}

/* ----- Fragen und Antworten (details/summary, ohne Skript) -------------------------------- */
.fragen { border-top: 1px solid var(--border); }
.frage { border-bottom: 1px solid var(--border); }
.frage > summary {
  position: relative; display: block; min-height: var(--touch);
  padding: 0.75rem 2rem 0.75rem 0; cursor: pointer; list-style: none;
  border-radius: calc(var(--radius) * 0.8);
}
.frage > summary::-webkit-details-marker { display: none; }
.frage > summary::after {   /* Chevron: zu = nach unten, offen = nach oben */
  content: ""; position: absolute; right: 0.5rem; top: 1.05rem;
  width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--muted-foreground); border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg); transition: transform .15s;
}
.frage[open] > summary::after { top: 1.35rem; transform: rotate(-135deg); }
.frage h3 { font-size: 1rem; line-height: 1.5; font-weight: 500; }
.frage > summary:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.antwort { display: flex; flex-direction: column; gap: 0.75rem; padding-bottom: 1rem; }

/* ----- Kasten, Schluss-Aufruf ------------------------------------------------------------- */
/* Kasten = BOX der App (rounded-lg border border-border bg-card); eine Form für Hinweis und Rechenbeispiel */
.hinweiskasten, .beispiel {
  padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); font-size: 0.875rem;
}
.aufruf { gap: 1rem; }   /* Karte wie alle (p-4); nur der Abstand ist größer, weil der Kopf eine h2 ist */

/* ----- Fußzeile --------------------------------------------------------------------------- */
.fuss { border-top: 1px solid var(--border); font-size: 0.875rem; }
.fuss > nav { width: 100%; max-width: var(--rahmen); margin-inline: auto; padding: 1rem 1.25rem; }
.fuss ul { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; }
.fuss a { display: inline-flex; align-items: center; min-height: var(--touch); text-decoration: underline; text-underline-offset: 4px; }
.fuss a:hover { text-decoration-thickness: 2px; }
.fuss a[aria-current="page"] { color: var(--foreground); font-weight: 500; text-decoration: none; }

/* ----- Rechtsseiten (bestehend: impressum/, datenschutz/) ---------------------------------- */
.inhalt {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  width: 100%; max-width: var(--rahmen); margin-inline: auto; padding: 2.5rem 1.25rem;
}
.inhalt.oben { justify-content: flex-start; gap: 1.5rem; padding-top: 2rem; align-items: stretch; }
.angaben { display: flex; flex-direction: column; gap: 0.75rem; }
.angaben dt { font-size: 0.75rem; color: var(--muted-foreground); }
.angaben dd { white-space: pre-line; }
.angaben mark { background: none; color: inherit; border-bottom: 2px dotted var(--muted-foreground); }
.abschnitte { display: flex; flex-direction: column; gap: 1.5rem; }
/* Abstand zwischen Zwischenüberschrift und Inhalt sowie zwischen Absätzen (vorher 0: dl und Absätze klebten an der h2) */
.abschnitte > section { display: flex; flex-direction: column; gap: 0.75rem; }
.abschnitte h2 { font-size: 1rem; line-height: 1.375; font-weight: 600; }
.abschnitte ul { list-style: disc; padding-left: 1.25rem; display: block; }
.abschnitte li { display: list-item; margin-bottom: 0.25rem; }

/* ----- Wechsel: Kündigungsvorlage (Druckseite) ---------------------------------------------- */
.hinweis { display: flex; flex-direction: column; gap: 0.5rem; padding-block: 0.75rem; border-top: 1px solid var(--border); }
.klein-titel { font-size: 1rem; line-height: 1.5; font-weight: 600; }
.optional { color: var(--muted-foreground); }
.brief { gap: 1rem; background: var(--background); }
.brief-teil { display: flex; flex-direction: column; gap: 0.75rem; }
.brief-teil.bedingt { border-left: 3px solid var(--border); padding-left: 0.75rem; }
.platz { border-bottom: 2px dotted var(--muted-foreground); overflow-wrap: anywhere; }
@media print {
  .sprung, .seitenkopf, .fuss, .nicht-drucken, .einstieg, .hinweis, .weiter { display: none; }
  .teil { padding: 0; background: none; }
  .karte.brief { border: 0; padding: 0; box-shadow: none; }
  .teil:has(.hinweis) { display: none; }
}

/* ----- ab 600 px -------------------------------------------------------------------------- */
@container seite (min-width: 37.5rem) {
  .raster.zwei, .raster.drei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----- ab 900 px (Desktop) ---------------------------------------------------------------- */
@container seite (min-width: 56.25rem) {
  .rahmen { padding-inline: 2rem; }
  .seitenkopf > .rahmen { min-height: 4rem; }
  .menue ul { column-gap: 0.25rem; margin-inline: 0; }
  .menue a { padding-inline: 0.75rem; }
  .menue a:hover { background: var(--muted); text-decoration: none; }
  .menue a[aria-current]:hover { text-decoration: underline; }
  /* Kopf-Aufruf = Button variant=outline (Schrift foreground wie .knopf.zweit) */
  .menue .kopf-aufruf { margin-left: 0.5rem; border: 1px solid var(--border); background: var(--background); color: var(--foreground); }
  .menue .kopf-aufruf:hover { background: var(--muted); }
  .nur-breit { display: inline; margin-left: 0.25em; }
  /* Abweichung von PageTitle (text-xl): Einstieg der Marketingseiten = öffentlicher Kopf, eine Tailwind-Stufe größer
     (text-3xl), damit die h1 neben dem Einleitungssatz (20 px) führt. Rechtsseiten (.inhalt) bleiben bei text-xl. */
  .einstieg .marke { font-size: 1.875rem; line-height: 1.2; }
  .satz { font-size: 1.25rem; line-height: 1.4; max-width: 46ch; }
  .einstieg { padding-block: 4rem; }
  .einstieg > .rahmen { gap: 1.25rem; }
  /* Abweichung vom App-Knopf (dort md:min-h-8): Hauptziel der Seite, bleibt 44 px und 16 px. */
  .knopf { width: auto; align-self: flex-start; padding-inline: 1.5rem; font-size: 1rem; }
  .aufruf-zeile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; }
  .aufruf-zeile .knopf { align-self: center; }
  .teil { padding-block: 4rem; }
  .teil > .rahmen { gap: 1.5rem; }
  /* Abschnittstitel eine Stufe unter dem Einstieg: text-lg → text-xl (Stufen der App-Skala) */
  .teil h2 { font-size: 1.5rem; line-height: 1.3; }
  .raster { gap: 1.5rem; }
  .raster.drei, .schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schritte { gap: 1.5rem; }
  .schritte > li { grid-template-columns: minmax(0, 1fr); row-gap: 0.5rem; }
  .schritte > li::before { grid-row: auto; justify-content: center; }
  .inhalt { gap: 1.5rem; padding: 4rem 2rem; }
  .fuss > nav { padding: 1rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .knopf, .frage > summary::after { transition: none; }
}
