/* PlanePane – gemeinsames Stylesheet für alle Seiten. Gestaltungssystem von alpicheck.de übernommen (Tokens, Typo-Skala,
   Abstände, Radien, Fokusring); statt Navy die Markenfarbe #245c5a aus brand/tokens.css (Weiß darauf 7,63:1).
   Statt der Bergkante eine flache Horizontlinie mit Flugbahn. Immer hell, kein Dunkelmodus (Konzept §5). */
:root {
  --bg: #F6F8FA;
  --bg2: #ECF0F2;
  --surface: #FFFFFF;
  --text: #1B1E23;
  --muted: #565C65;
  --brand: #245C5A;
  --brand-hover: #1C4A48;
  --brand-soft: #C9E2DF;   /* Nebentext auf --brand */
  --on-brand: #EBF2F1;
  --accent: #245C5A;
  --display: #070B14;      /* Grund der Anzeige am Gerät (--pp-nacht) */
  --line: rgba(36, 92, 90, .16);
  --shadow: 0 .25rem .75rem rgba(36, 92, 90, .08), 0 1px 2px rgba(36, 92, 90, .06);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { color: var(--brand); }
h1 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: 1.1875rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
p { max-width: 38rem; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .9em; }
.tnum { font-variant-numeric: tabular-nums; }
.small { font-size: .9375rem; color: var(--muted); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 30rem) { .wrap { padding: 0 1rem; } }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); color: var(--brand); padding: .5rem .75rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* Platzhalter bis zu den Texten von Codex: deutlich sichtbar, Freigabe-Sperre in tests/test_seite.py */
.text-platzhalter { border: 2px dashed #B3261E; border-radius: .5rem; padding: .5rem .75rem; color: #8C1D18; background: #FDF1F0; font-size: .9375rem; }
.hero .text-platzhalter, .site-foot .text-platzhalter { color: #8C1D18; }

/* Kopfzeile: Markenfarbe, geht auf der Startseite nahtlos in den Einstieg über */
.site-head { position: relative; z-index: 50; background: var(--brand); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-head :focus-visible, .hero :focus-visible, .site-foot :focus-visible { outline-color: #fff; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: .55rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.head-nav { display: flex; align-items: center; gap: 1.6rem; }
.head-nav a { color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 500; padding: .5rem 0; }
.head-nav a:hover { text-decoration: underline; }
/* Sprachwahl: als einziger Link auch auf dem Telefon sichtbar */
.head-nav a.head-sprache { border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: .45rem 1rem; line-height: 1.3; white-space: nowrap; }
@media (max-width: 48rem) { .head-nav a:not(.head-sprache) { display: none; } .head-nav { gap: .75rem; } }
@media (max-width: 26rem) { .brand { font-size: 1rem; gap: .5rem; } .head-nav a.head-sprache { padding: .4rem .75rem; } }

/* Unterseiten: kurzer Abschluss in der Markenfarbe mit Horizontlinie unter der Kopfzeile */
.doc-kante { display: block; width: 100%; height: 2.5rem; color: var(--brand); background: var(--bg); }

/* Einstieg */
.hero { position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); padding: 4.5rem 0 8.5rem; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero-kicker { color: var(--brand-soft); font-size: .9375rem; font-weight: 600; margin-bottom: 1rem; }
.hero .intro { font-size: 1.125rem; line-height: 1.65; margin: 1.5rem 0 2rem; max-width: 36rem; }
.hero-meta { margin-top: 1rem; font-size: .9375rem; color: var(--brand-soft); }
.hero-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.hero .knopf-hell { background: #fff; color: var(--brand); min-height: 3.25rem; display: inline-flex; align-items: center; }
.hero .knopf-hell:hover { background: #E3EFED; }
.hero .knopf-rand { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); min-height: 3.25rem; display: inline-flex; align-items: center; }
.hero .knopf-rand:hover { background: rgba(255, 255, 255, .08); }
.hero-geraet { position: relative; margin-right: -2rem; }
.hero-geraet img { width: 100%; filter: drop-shadow(0 1.5rem 2.5rem rgba(0, 0, 0, .28)); }
.hero-geraet figcaption { margin-top: .5rem; font-size: .8125rem; color: var(--brand-soft); text-align: right; }
/* Horizont mit Flugbahn statt Bergkante: Linie auf Höhe der Unterkante, Flugbahn gestrichelt */
.horizont { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: 6.5rem; }
.horizont .boden { fill: var(--bg); }
.horizont .bahn { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-dasharray: 6 9; vector-effect: non-scaling-stroke; }
.horizont .linie { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@media (max-width: 56rem) {
  .hero { padding: 3.5rem 0 7rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-geraet { margin-right: 0; }
  .horizont { height: 4rem; }
}

/* Bilder vom Display: 800 × 480 in einem schlichten Rahmen wie das Gehäuse */
.display { border-radius: 1rem; border: .7rem solid #2A2C30; background: var(--display); box-shadow: 0 0 0 1px #4A4D53, 0 1.25rem 2.5rem -1rem rgba(36, 92, 90, .35); }
.display-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.display-paar figure { display: grid; gap: .9rem; align-content: start; }
.display-paar figcaption h3 + * { margin-top: .4rem; }
@media (max-width: 56rem) { .display-paar { grid-template-columns: 1fr; } }

/* Abschnitte im Wechsel hell/grau, Inhalte auf weißen Karten */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg2); }
.section > .wrap > h2 + * { margin-top: 1.25rem; }
.card { background: var(--surface); border-radius: 1.25rem; box-shadow: var(--shadow); }
.card-pad { padding: 3rem; }
.card-pad > * + * { margin-top: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.split-text > * + * { margin-top: 1rem; }
.split-text h2 + * { margin-top: 1.25rem; }
.split-text h3 { margin-top: 2rem; }
.split-text .kern, .card-pad .kern { font-weight: 700; color: var(--text); }
.punkte { padding-left: 1.1rem; max-width: 38rem; }
.punkte li + li { margin-top: .35rem; }
.punkte li::marker { color: var(--accent); }
.knopf-link { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; border-radius: .75rem; padding: .8rem 1.4rem; }
.knopf-link:hover { background: var(--brand-hover); text-decoration: none; }
@media (max-width: 56rem) {
  .section { padding: 3.5rem 0; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .card-pad { padding: 2rem 1.5rem; }
}
@media (max-width: 30rem) { .card-pad { padding: 1.75rem 1.25rem; } }

/* Drei Varianten: Tabelle mit Spaltenköpfen; schmal waagerecht scrollbar innerhalb der Karte */
.tabelle-rahmen { margin-top: 2rem; overflow-x: auto; background: var(--surface); border-radius: 1.25rem; box-shadow: var(--shadow); }
.varianten { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .9375rem; }
.varianten caption { text-align: left; padding: 1.25rem 1.5rem 0; color: var(--muted); }
.varianten th, .varianten td { text-align: left; vertical-align: top; padding: .8rem 1.25rem; border-top: 1px solid var(--line); }
.varianten thead th { border-top: 0; color: var(--brand); font-size: 1.0625rem; padding-top: 1.25rem; }
.varianten thead th small { display: block; font-weight: 500; color: var(--muted); font-size: .875rem; }
.varianten tbody th { font-weight: 600; color: var(--text); width: 14rem; }
.varianten .summe th, .varianten .summe td { font-weight: 700; color: var(--brand); }
.varianten .geplant { color: var(--muted); }
.marke-geplant { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .8125rem; font-weight: 600; }

/* Installation: Schritte mit Nummer, Befehle in Blöcken */
.schritte { list-style: none; counter-reset: schritt; display: grid; gap: 1.5rem; max-width: 46rem; }
.schritte > li { counter-increment: schritt; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .9rem; align-items: start; }
.schritte > li::before { content: counter(schritt); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.schritte > li > div > * + * { margin-top: .5rem; }
.befehl { display: block; white-space: pre-wrap; overflow-wrap: anywhere; background: #10172A; color: #EEF3FB; border-radius: .6rem; padding: .75rem 1rem; font-size: .875rem; line-height: 1.5; }
.pruefsumme { overflow-wrap: anywhere; font-size: .8125rem; color: var(--muted); }
.card-pad .schritte { margin-top: 1.75rem; }

/* Werkzeuge-Raster mit feinen Trennlinien (Weboberfläche, Datenquellen) */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-radius: 1.25rem; box-shadow: var(--shadow); overflow: hidden; margin-top: 2rem; }
.tools > div { padding: 1.75rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0 0 -1px -1px; }
.tools dt { font-weight: 700; color: var(--brand); }
.tools dd { margin-top: .4rem; font-size: .9375rem; color: var(--muted); }
.tool-icon { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-bottom: .9rem; border-radius: .5rem; background: var(--accent); color: #fff; }
.tool-icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 56rem) { .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .tools { grid-template-columns: 1fr; } .tools > div { padding: 1.4rem 1.25rem; } }

/* Grenzen: Kernaussage, dann drei Punkte im Raster */
.section-limits { background: rgba(36, 92, 90, .07); padding: 4rem 0; }
.grenzen-kopf { display: flex; gap: 1.1rem; align-items: flex-start; }
.grenzen-kopf .kern { margin-top: .5rem; font-size: 1.125rem; font-weight: 700; color: var(--text); max-width: 44rem; }
.grenzen-symbol { flex: none; margin: .15rem 0 0; background: var(--brand); }
.grenzen-liste { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.75rem; background: var(--surface); border-radius: 1.25rem; box-shadow: var(--shadow); overflow: hidden; }
.grenzen-liste li { padding: 1.5rem 1.75rem; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: -1px 0 0 -1px; }
.grenzen-liste p { font-size: .9375rem; color: var(--muted); }
.grenzen-liste b { display: block; margin-bottom: .25rem; font-size: 1.0625rem; line-height: 1.4; color: var(--brand); }
@media (max-width: 56rem) { .grenzen-liste { grid-template-columns: 1fr; } .grenzen-liste li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.25rem; } .grenzen-liste .tool-icon { flex: none; margin: 0; } }
@media (max-width: 30rem) { .grenzen-kopf { flex-direction: column; gap: .9rem; } }

/* Häufige Fragen: aufklappbar, details/summary bedient die Tastatur selbst */
.fragen-liste { margin-top: 1.5rem; max-width: 48rem; background: var(--surface); border-radius: 1.25rem; box-shadow: var(--shadow); overflow: hidden; }
.frage + .frage { border-top: 1px solid var(--line); }
.frage summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: .75rem 1.5rem; cursor: pointer; list-style: none; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary h3 { margin: 0; }
.frage summary::after { content: ""; flex: none; width: .6rem; height: .6rem; margin-right: .2rem; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translate(-.1rem, -.1rem); }
.frage[open] summary::after { transform: rotate(-135deg) translate(-.1rem, -.1rem); }
@media (prefers-reduced-motion: no-preference) { .frage summary::after { transition: transform .18s ease; } }
.frage summary:hover { background: rgba(36, 92, 90, .04); }
.frage summary:focus-visible { outline-offset: -3px; border-radius: 1.25rem; }
.frage .antwort { padding: 0 1.5rem 1.5rem; }
.frage .antwort > * + * { margin-top: .5rem; }
@media (max-width: 44rem) { .frage summary { padding: .75rem 1.25rem; } .frage .antwort { padding: 0 1.25rem 1.25rem; } }

/* Quellen */
.sources-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; }
.sources { display: grid; gap: 1.5rem; margin: 1.75rem 0; }
.sources dt { font-weight: 700; color: var(--brand); }
.sources dd { margin-top: .3rem; font-size: .9375rem; max-width: 44rem; }
.privacy-card { padding: 2rem; }
.privacy-card > * + * { margin-top: 1rem; }
@media (max-width: 56rem) { .sources-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Fuß */
.site-foot { background: var(--brand); color: var(--on-brand); padding: 3.5rem 0 4rem; }
.site-foot a { color: #fff; }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: 2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot-links a { display: inline-block; padding: .3rem 0; font-size: .9375rem; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-copy { font-size: .8125rem; color: var(--brand-soft); max-width: 46rem; }

/* Rechtstexte */
.doc { max-width: 46rem; padding-top: 2.5rem; padding-bottom: 4.5rem; }
.doc h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); margin-bottom: .5rem; }
.doc h2 { font-size: 1.3125rem; margin-top: 2.25rem; margin-bottom: .75rem; }
.doc h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.doc p, .doc li { margin-bottom: .75rem; }
.doc ul { padding-left: 1.25rem; }
.doc address { font-style: normal; }
.doc .date { font-size: .875rem; color: var(--muted); margin-bottom: 1.5rem; }
.doc .lang { margin-bottom: 1rem; font-size: .9375rem; }
.doc .zurueck { margin-top: 2.5rem; }
