/* incognita.pro — Morgennebel (hell) und Lumen (dunkel), wie in der App.
   Leitbild und Verbote: Andere Projekte/MapQuest/Landingpage/Design-Prompt.md
   Kein JavaScript, kein Zoom-Eingriff: Strg +/− gehört dem Browser. */

@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/InstrumentSans-400700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/InstrumentSans-400700-latinext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farben ---------- */
:root {
  color-scheme: light dark;
  --papier: #F7F3EC;
  --karte: #FFFDF9;
  --tinte: #1B252B;
  --leise: #535F66;          /* Nebentext auf Papier */
  --nebel: #CBD3D9;          /* der Nebel selbst */
  --nebel-strasse: #B7C3CA;
  --land: #FFFDF9;           /* aufgedeckt */
  --land-strasse: #E2D9C8;
  --akzent: #2B6A6D;         /* Petrol */
  --auf-akzent: #FFFFFF;
  --verweis: #2B6A6D;
  --bernstein: #8A5716;      /* Bernstein als Schrift */
  --route: #B5712A;
  --rahmen: #5B676E;         /* Rand des Eingabefelds */
  --fehler: #8F1D21;
  --fokus: #1B252B;
  --bild-rand: #B9C1C7;      /* Haarlinie um die Bildschirme */
}
.held, .versprechen {        /* auf dem Nebel braucht alles Kleine mehr Tinte */
  --leise: #3B464D;
  --verweis: #1C4E51;
  --fehler: #7A1418;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0A0F12;
    --karte: #131B21;
    --tinte: #ECE6DA;
    --leise: #A7B1B6;
    --nebel: #101820;
    --nebel-strasse: #1C2832;
    --land: #263845;
    --land-strasse: #3F5463;
    --akzent: #8EC5FF;
    --auf-akzent: #0A1626;
    --verweis: #8EC5FF;
    --bernstein: #E8B56E;
    --route: #E3A04A;
    --rahmen: #8A979E;
    --fehler: #FF9C92;
    --fokus: #ECE6DA;
    --bild-rand: #2E3B45;
  }
  .held, .versprechen {
    --leise: #B3BDC2;
    --verweis: #9ECDFF;
    --fehler: #FFA79E;
  }
}

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 112.5%;         /* 18 px, wächst mit der Browser-Einstellung */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2 { line-height: 1.15; font-weight: 650; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.35rem); max-width: 30ch; }
p { margin: 0 0 1rem; max-width: 38rem; }
a { color: var(--verweis); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: .2rem; }
code { font-family: inherit; font-weight: 600; }

.breite { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.schmal { max-width: 46rem; }

.sprung {
  position: absolute; left: -10000px; top: 0;
  background: var(--tinte); color: var(--papier);
  padding: .75rem 1rem; z-index: 10; font-weight: 600;
}
.sprung:focus { left: .5rem; top: .5rem; }

/* ---------- Kopf und Nebel oben ---------- */
.kopf { background: var(--nebel); padding-block: 1.1rem .5rem; }
.marke {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--tinte); text-decoration: none; font-weight: 650; font-size: 1.2rem;
}
.marke img { width: 2.4rem; height: 2.4rem; border-radius: .55rem; }

.held { background: var(--nebel); position: relative; }
.held-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(23rem, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}
/* Die Überschrift richtet sich auch nach ihrer Spalte: bei 375 px und 200 % Zoom
   passt „gesehen“ (4,1 em breit) sonst nicht in die Zeile und bricht mitten im Wort. */
.held-text { container-type: inline-size; min-width: 0; }
.held h1 { font-size: min(clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem), 23cqi); }
.h1-zwei { display: block; color: var(--akzent); }
@media (prefers-color-scheme: light) { .held .h1-zwei { color: #1F5558; } }
.einleitung { font-size: 1.2rem; }
.vorteil { margin-top: 1.25rem; }
.vorteil strong { font-weight: 650; }
.eckdaten { color: var(--leise); margin-top: 1.25rem; }
.held-bild { margin: 0; justify-self: center; }
.held-bild img, .telefon img, .tafel-reihe img {
  /* Ecken wie ein iPhone (rund 50 von 360 Punkten); die Bilder selbst sind eckig. */
  width: 100%; height: auto; border-radius: 13.9% / 6.4%;
  box-shadow: 0 0 0 1px var(--bild-rand);
}
.held-bild img { max-width: 20rem; }
.kante { width: 100%; height: clamp(2rem, 5vw, 4.5rem); margin-bottom: -1px; }
.kante path { fill: var(--papier); }

/* ---------- Anmeldung ---------- */
.formular { margin-block: 1.75rem 0; max-width: 34rem; position: relative; }
.formular-label { display: block; font-weight: 600; margin-bottom: .4rem; }
.formular-zeile { display: flex; flex-wrap: wrap; gap: .6rem; }
.formular input[type="email"] {
  flex: 1 1 14rem; min-width: 0; min-height: 3.1rem;
  font: inherit; color: var(--tinte); background: var(--karte);
  border: 2px solid var(--rahmen); border-radius: .55rem;
  padding: .55rem .85rem;
}
.formular input[type="email"][aria-invalid="true"] { border-color: var(--fehler); }
.knopf {
  flex: 0 1 auto; min-height: 3.1rem;
  font: inherit; font-weight: 650; line-height: 1.25;
  color: var(--auf-akzent); background: var(--akzent);
  border: 2px solid var(--akzent); border-radius: .55rem;
  padding: .55rem 1.25rem; cursor: pointer;
}
.knopf:hover { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }
.formular-fehler { color: var(--fehler); font-weight: 600; margin: .6rem 0 0; }
.formular-klein { color: var(--leise); font-size: .9rem; margin: .75rem 0 0; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Abschnitte ---------- */
.teil { padding-block: clamp(3rem, 8vw, 6rem); }
.form-raster, .zwei, .versprechen-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.legende { margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.legende dt { display: flex; align-items: center; gap: 1rem; font-weight: 650; font-size: 1.1rem; }
.legende > div { min-width: 0; }
/* Einzug unter das Zeichen, solange Platz ist; ganz schmal ohne Einzug. */
.legende dd { margin: .2rem 0 0 clamp(0rem, 50% - 6rem, 4.5rem); max-width: 30rem; }
.muster { width: 3.5rem; height: 1.75rem; flex: none; }

.zeichnung { margin: 0; }
.zeichnung svg { width: 100%; border-radius: 1rem; }
.z-nebel { fill: var(--nebel); }
.z-auf { fill: var(--land); }
.z-strassen-nebel { stroke: var(--nebel-strasse); }
.z-strassen-auf { stroke: var(--land-strasse); }
.z-auf-strich { stroke: var(--land); fill: none; stroke-linecap: round; }
.z-weg { stroke: var(--route); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.telefon { margin: 0; justify-self: center; }
.telefon img { max-width: 18rem; }
.rueckkehr-text { container-type: inline-size; }
/* Die Zahl richtet sich nach ihrer Spalte, nicht nach dem Fenster — sonst bricht
   overflow-wrap sie bei großer Schrift mitten in km² um. */
.zahl {
  font-size: min(5.5rem, 19cqi); line-height: 1; font-weight: 700; overflow-wrap: normal; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--bernstein); margin: 1.5rem 0 .4rem;
}
.zahl-zusatz { color: var(--leise); margin-bottom: 1.5rem; }

.tafeln h2 { margin-bottom: 2.5rem; }
.tafel-reihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.tafel-reihe figure { margin: 0; }
.tafel-reihe img { max-width: 17rem; }
.tafel-reihe figcaption { margin-top: 1.1rem; max-width: 22rem; }
.tafel-reihe strong { font-weight: 650; }

.versprechen { background: var(--nebel); }
.versprechen-raster { align-items: start; }
.versprechen h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.05rem); }

.fragen h2 { margin-bottom: 1.5rem; }
.fragen details { padding-block: .35rem; }
.fragen summary {
  cursor: pointer; font-weight: 600; font-size: 1.1rem;
  padding-block: .55rem; line-height: 1.4;
}
.fragen details p { margin: .25rem 0 1rem 1.3rem; }

.schluss .unterschrift { font-weight: 650; margin-top: -.25rem; }
.schluss .formular { margin-top: 2rem; }

/* ---------- Meldungen, Impressum, Datenschutz ---------- */
.meldung, .blatt { padding-block: clamp(2.5rem, 7vw, 5rem); min-height: 55vh; }
.gross { font-size: 1.2rem; }
.knopf-formular { margin-block: 1.75rem; }
.recht { margin: 1.5rem 0 2rem; }
.recht dt { font-weight: 650; margin-top: 1.6rem; }
.recht dd { margin: .35rem 0 0; max-width: 40rem; }
.stand { color: var(--leise); }
/* Lange Erklärung mit Abschnitten (Datenschutz der App): ruhiger als die Werbe-h2. */
.blatt h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); max-width: none; margin: 2.4rem 0 .6rem; }
.blatt h3 { font-size: 1.1rem; font-weight: 650; margin: 1.6rem 0 .4rem; }
.blatt p, .blatt li { max-width: 40rem; }
.blatt ul { padding-left: 1.25rem; }
.blatt li + li { margin-top: .4rem; }

/* ---------- Fuß ---------- */
.fuss { padding-block: 2.5rem; color: var(--leise); font-size: .9rem; }
.fuss .breite { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.fuss p { margin: 0; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* ---------- Erzwungene Farben ---------- */
@media (forced-colors: active) {
  .knopf { border: 2px solid ButtonText; }
  .formular input[type="email"] { border: 2px solid FieldText; }
  .held-bild img, .telefon img, .tafel-reihe img { border: 1px solid CanvasText; }
}
