/* Lichtfeld – Startseite. Eine Datei, keine fremden Quellen, kein Inline-Stil (CSP default-src 'self').
   Farben genau aus der App (pwa/public/favicon.svg): Schiefer #2f3a42, Orange #f0a12c, Creme #fef0d8.
   Pins, Plan und Protokoll nach Bildschirmfotos der App, vereinfacht; alle Inhalte erfunden. */

:root {
  --grund: #2f3a42;
  --flaeche: #35414a;
  --karte: #3d4953;
  --tief: #1d2429;
  --linie: #4f5b64;
  --orange: #f0a12c;
  --creme: #fef0d8;
  --text: #eef1f3;
  --text-leise: #b9c2c8;
  --text-matt: #9aa6ae;
  --rot: #e2574c;
  --gruen: #4caf7a;
  /* Pins wie in der App (packages/modell/src/status.ts): Füllung = Status, Ring = Art. */
  --st-offen: #e8852b;
  --st-arbeit: #ffd166;
  --st-doku: #3a78c2;
  --st-zu: #3aa657;
  --art-doku: #3a4750;
  --art-aufgabe: #7c3aed;
  --art-mangel: #d11a2a;
  --art-bautenstand: #0d9488;
  --art-messung: #2563eb;
  /* Plan wie in der App: grauer Grund, schwarze Wände, Räume farbig wie im Plan, Raumnamen in CAD-Schrift. */
  --plan: #eef0f2;
  --plan-wand: #2e3134;
  --plan-text: #3d4146;
  --raum-gelb: #f8dc8c;
  --raum-gruen: #b4f59c;
  --raum-hell: #fafafa;
  /* Blätter der App: weiß, Schiefer-Text, graue Abzeichen. */
  --blatt: #ffffff;
  --blatt-text: #3a4750;
  --blatt-leise: #7d868e;
  --rand: 32px;
  --kopf-hoehe: 116px;
  /* Breite des Inhalts (Olaf, 07.11.: „das fliegt sonst zu sehr auseinander“): Die Flächen gehen über die ganze
     Breite, der Inhalt bleibt in der Mitte. Als Abstand zum Rand gilt der größere Wert: --rand oder, was neben
     --breite übrig bleibt. Wirkt erst, wo es benutzt wird; 100 % ist dann die Breite der Seite. */
  --breite: 1200px;
  --seite: max(var(--rand), calc((100% - var(--breite)) / 2));
  --schrift: system-ui, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--kopf-hoehe); }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Kopf ---------- */

/* Der Kopf bleibt beim Scrollen oben (Olaf, 07.11.). Ein Sprung auf #projekt oder #demo hält so viel Abstand,
   wie er hoch ist: schmal zwei Zeilen, ab 600px eine (die längere Leiste, DE, braucht rund 580px). */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--grund);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 8px var(--seite);
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.marke-punkt {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px var(--creme);
}
.kopf-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: 14px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--text-leise);
  text-decoration: none;
}
.nav-link:hover { color: var(--text); }
.nav-link[aria-current] { color: var(--orange); font-weight: 700; }
.sprache { display: inline-flex; }
.sprache-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-leise);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .04em;
}
.sprache-link[aria-current] { color: var(--orange); font-weight: 700; }
.sprache-link:hover { color: var(--text); }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.knopf[hidden] { display: none; }
.knopf-voll { background: var(--orange); color: var(--grund); }
.knopf-voll:hover { background: #ffb64a; }
.knopf-rand { border-color: var(--orange); color: var(--orange); background: transparent; font-weight: 500; }
.knopf-rand:hover { background: rgba(240, 161, 44, .12); }
.knopf-leise { border-color: #6b7780; color: var(--text); background: transparent; font-weight: 500; font-size: 13px; padding: 0 14px; border-radius: 7px; }
.knopf-leise:hover { border-color: var(--text-leise); }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Gemeinsames ---------- */

.ueberschrift {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------- Held ---------- */

.held {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  padding: 32px var(--seite) 48px;
}
.held-glanz {
  position: absolute;
  /* Bleibt beim Handy, auch wenn der Inhalt auf breiten Schirmen in die Mitte rückt. */
  right: max(40px, calc(var(--seite) - 40px));
  top: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 161, 44, .38), rgba(240, 161, 44, 0) 62%);
  pointer-events: none;
}
.held-text { position: relative; flex: 1.4 1 300px; }
.leitsatz { font-size: clamp(30px, 8vw, 40px); font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.held-lead { color: var(--text-leise); font-size: 16px; margin-bottom: 24px; max-width: 520px; }
.held-bild { position: relative; flex: 0.8 1 200px; display: flex; justify-content: center; }
.ausprobieren { flex: 1 0 100%; position: relative; }
.ausprobieren:empty {
  /* Bleibt im Baum für Vorleseprogramme, nimmt aber keinen Platz ein. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Kopfbild breit (Olaf, 07.11.: „im hintergrund eine vereinfachung von revit … und dem panel lichtfeld sowie das
   mobile etwas aus dem zentrum davor“, „auf alle fälle ja!“): Revit in Olafs Anordnung mit dem Lichtfeld-Fenster,
   davor das Handy, derselbe Pin in beiden gewählt; ein Bild, Quelle in website/quellen/buero-handy.html. Schmal
   bleibt das gezeichnete Handy allein, Revit wäre dort zu klein zum Lesen. */
.buero { display: none; }
@media (min-width: 900px) {
  .held-bild { flex: 1.5 1 560px; }
  .held-bild .buero { display: block; width: 100%; height: auto; border-radius: 10px; }
  .held-bild .telefon { display: none; }
}

/* Telefon im Kopfbild */
.telefon {
  width: 190px;
  height: 380px;
  border-radius: 30px;
  background: var(--tief);
  border: 6px solid #11161a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Kopfleiste wie in der App: Projekt gelb, Häkchen für „synchronisiert“, rechts die Ebene; darunter die Filter. */
.telefon-kopf { padding: 14px 8px 7px 10px; font-size: 9px; color: #cfd6db; display: flex; align-items: center; gap: 5px; background: var(--art-doku); }
.telefon-titel { font-weight: 700; color: var(--st-arbeit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.telefon-sync { flex: none; background: var(--st-zu); color: #fff; border-radius: 999px; padding: 0 5px; font-size: 8px; line-height: 1.5; }
.telefon-ebene { flex: none; margin-left: auto; background: #fff; color: var(--blatt-text); border-radius: 4px; padding: 1px 5px; font-size: 8px; }
.telefon-filter { display: flex; gap: 3px; padding: 5px 6px; background: var(--blatt); overflow: hidden; }
.telefon-filter span { flex: none; border: 1px solid #c9ced3; border-radius: 999px; padding: 0 5px; font-size: 7px; line-height: 1.6; color: var(--blatt-text); }
.telefon-plan { position: relative; flex: 1; margin: 0; background: var(--plan); }
.wand { position: absolute; border: 2px solid var(--plan-wand); }
.wand-a { left: 10%; top: 8%; width: 45%; height: 38%; background: var(--raum-gelb); }
.wand-b { left: 55%; top: 8%; width: 33%; height: 38%; border-left: none; background: var(--raum-gruen); }
.wand-c { left: 10%; top: 46%; width: 78%; height: 40%; border-top: none; background: var(--raum-hell); }
.raum-name { position: absolute; font-family: Georgia, 'Times New Roman', serif; font-size: 7px; color: var(--plan-text); transform: translate(-50%, -50%); white-space: nowrap; }
.raum-1 { left: 32%; top: 27%; }
.raum-2 { left: 71%; top: 27%; }
.raum-3 { left: 49%; top: 62%; }
/* Zoom links oben, Werkzeuge rechts oben (der Pin-Knopf gelb, wie in der App). */
.plan-zoom { position: absolute; left: 3px; top: 4px; width: 11px; height: 20px; background: #fff; border: 1px solid #c4c9ce; border-radius: 3px; }
.plan-werkzeuge { position: absolute; right: 3px; top: 4px; width: 14px; height: 24px; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.plan-werkzeuge::before { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 3px; background: var(--st-arbeit); }
.pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--art, var(--art-doku));
  background: var(--st, var(--st-doku));
  box-shadow: inset 0 0 0 1.5px #fff;
  color: var(--tief);
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-doku { --art: var(--art-doku); }
.pin-aufgabe { --art: var(--art-aufgabe); }
.pin-mangel { --art: var(--art-mangel); }
.pin-bautenstand { --art: var(--art-bautenstand); }
.pin-messung { --art: var(--art-messung); }
.pin-offen { --st: var(--st-offen); }
.pin-arbeit { --st: var(--st-arbeit); }
.pin-dokumentiert { --st: var(--st-doku); }
.pin-zu { --st: var(--st-zu); }
.pin-1 { left: 18%; top: 33%; }
.pin-2 { left: 76%; top: 35%; }
.pin-3 { left: 26%; top: 72%; }
.pin-4 { left: 66%; top: 74%; }
/* Pin-Blatt wie in der App: weiß, Titel, Art grau, Status dunkel mit Punkt, Ort, Notiz mit gelbem Rand, Bilder. */
.telefon-karte { background: var(--blatt); border-top: 1px solid #dfe3e6; padding: 8px 10px 10px; font-size: 8px; color: var(--blatt-text); }
.telefon-karte-titel { font-size: 10px; font-weight: 700; margin-bottom: 4px; }
.telefon-karte-ort { color: var(--blatt-leise); margin-top: 4px; }
.telefon-notiz { margin-top: 5px; padding: 3px 6px; background: #f5f6f7; border-left: 2px solid var(--st-arbeit); border-radius: 0 3px 3px 0; }
.telefon-fotos { display: flex; gap: 4px; margin-top: 5px; }
.telefon-foto { width: 38px; height: 28px; border-radius: 3px; background: linear-gradient(135deg, #b9a58c, #6f5f4d); }
.telefon-foto + .telefon-foto { background: linear-gradient(135deg, #a7b2b9, #59646c); }

/* Abzeichen wie in der App: Art des Pins, Status, Entwurf, publiziert, Fassung.
   (Nicht „marke“: so heißt schon das Zeichen oben links.) */
.abzeichen-reihe { display: flex; flex-wrap: wrap; gap: 3px; }
.abzeichen { display: inline-flex; align-items: center; gap: 3px; border: 1px solid transparent; border-radius: 999px; padding: 0 5px; font-size: 7.5px; line-height: 1.6; font-weight: 600; white-space: nowrap; }
.abzeichen-art { background: #eef0f2; color: var(--blatt-text); font-weight: 500; }
.abzeichen-status { background: var(--blatt-text); color: #fff; font-weight: 500; }
.status-punkt { width: 5px; height: 5px; border-radius: 50%; background: var(--st-offen); }
.abzeichen-entwurf { background: #fff4d1; border-color: #f0c36d; color: #7a5600; }
.abzeichen-publiziert { background: #e6f4ea; border-color: #9fd3ae; color: #1f6b34; }
.abzeichen-fassung { background: #e8eef6; border-color: #b9c8dc; color: #34506f; }

/* ---------- Ausprobieren (das große Handy) ---------- */

/* Ein Handy fester Größe an der Stelle des Handys im Kopf: Die Schritte wechseln im Bildschirm, der Rahmen bleibt
   (Olaf, 07.11.: „das müsste immer im gleichen frame sein ... das die größe gerade springt, nervt“). Was nicht
   passt, blättert innen; „Weiter“ bleibt unten sichtbar. */
.ausprobieren-offen { flex: 0 1 372px; min-width: 0; display: flex; justify-content: center; }
.held:has(.ausprobieren-offen) .held-bild { display: none; }
.handy {
  position: relative;
  width: min(372px, 100%);
  height: 660px;
  display: flex;
  flex-direction: column;
  background: var(--tief);
  border: 6px solid #11161a;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.handy-kopf { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 16px; font-size: 13px; color: #cfd6db; border-bottom: 1px solid #2b343b; }
.handy-titel { font-weight: 600; }
.handy-beenden { min-height: 44px; padding: 0 14px; background: transparent; border-color: #6b7780; color: var(--text); font-weight: 500; font-size: 13px; }
.handy-inhalt { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
/* Im festen Rahmen schrumpft nichts; was nicht passt, blättert. */
.handy-inhalt > * { flex-shrink: 0; }
/* Schritt 1: der Plan füllt den Bildschirm. */
.handy-inhalt > .handy-plan:last-child { flex: 1 0 200px; }
/* Der Knopf am Ende eines Schritts bleibt unten im Bildschirm stehen, auch wenn darüber geblättert wird. */
.handy-inhalt > .knopf-voll:last-child { position: sticky; bottom: 0; margin-top: auto; box-shadow: 0 -12px 16px var(--tief); }
.handy-schritt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.handy-ueberschrift { font-size: 20px; font-weight: 650; line-height: 1.25; }
.handy-ueberschrift:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.handy-text { color: var(--text-leise); font-size: 14px; }
.handy-klein { color: var(--text-matt); font-size: 12px; }
/* Der Tastaturhinweis nur, wo es eine Maus gibt; die Beschreibung am Plan (aria-describedby) bleibt immer. */
.handy-tastatur { display: none; }
@media (hover: hover) and (pointer: fine) {
  .handy-tastatur { display: block; }
}
.handy-etikett { font-size: 13px; font-weight: 600; color: var(--text); }
.handy-hinweis { color: #ffd9a0; font-size: 14px; min-height: 0; }
.handy-hinweis:empty { display: none; }

.handy-plan {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--plan);
  cursor: crosshair;
  touch-action: manipulation;
}
.handy-plan:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.handy-pin { width: 26px; height: 26px; border-width: 4px; font-size: 8px; transform: translate(-50%, -50%); box-shadow: inset 0 0 0 2px #fff, 0 0 0 4px rgba(240, 161, 44, .35); pointer-events: none; }
.handy-pin[hidden] { display: none; }

.foto-wahl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.foto-knopf { width: 64px; height: 64px; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; background: var(--karte); cursor: pointer; }
.foto-knopf img { display: block; width: 100%; height: 100%; object-fit: cover; }
.foto-knopf[aria-pressed='true'] { border-color: var(--orange); }
.datei-knopf { background: transparent; border-color: var(--orange); color: var(--orange); font-weight: 500; }

/* Nachgebildete Dateiwahl: deckt den Bildschirm des Handys, wie die Dateiwahl am Telefon. */
.explorer { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; background: var(--flaeche); overflow-y: auto; overscroll-behavior: contain; }
.explorer-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.explorer-titel { font-size: 18px; font-weight: 650; }
.explorer-titel:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.explorer-abbrechen { min-height: 44px; padding: 0 14px; background: transparent; border-color: #6b7780; color: var(--text); font-size: 13px; font-weight: 500; }
.explorer-ort { font-size: 12px; color: var(--text-matt); }
.explorer-hinweis { padding: 8px 10px; font-size: 13.5px; color: var(--creme); background: rgba(240, 161, 44, .12); border-left: 3px solid var(--orange); border-radius: 0 6px 6px 0; }
.explorer-liste { display: flex; flex-direction: column; }
.explorer-datei { width: 100%; min-height: 48px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 6px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--linie); color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.explorer-datei:hover, .explorer-datei:focus-visible { background: var(--karte); }
.explorer-datei:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.datei-art { display: inline-grid; place-content: center; width: 40px; height: 30px; border-radius: 5px; object-fit: cover; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #fff; background: #5b6b78; }
.datei-art-pdf { background: #c0392b; }
.datei-art-dali { background: var(--art-bautenstand); }
.datei-name { min-width: 0; overflow-wrap: anywhere; }
.datei-groesse { font-size: 12px; color: var(--text-matt); white-space: nowrap; }
.anhaenge { display: flex; flex-direction: column; gap: 6px; }
.anhaenge:empty { display: none; }
.anhang { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 8px; padding-left: 6px; font-size: 13.5px; background: var(--flaeche); border-radius: 8px; }
.anhang-weg { width: 44px; height: 44px; background: transparent; border: 0; color: var(--text-matt); font-size: 16px; cursor: pointer; }
.anhang-weg:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.foto-vorschau:empty { display: none; }
.foto-vorschau img { display: block; width: 100%; max-height: 180px; object-fit: contain; border-radius: 8px; background: var(--karte); }

.notiz-feld {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--flaeche);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}
.notiz-feld:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.status-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.status-knopf { flex: 1 1 120px; background: transparent; border-color: var(--linie); color: var(--text); font-weight: 500; }
.status-knopf[aria-pressed='true'] { background: var(--orange); border-color: var(--orange); color: var(--grund); font-weight: 650; }

.protokoll { width: 100%; border-collapse: collapse; font-size: 13px; }
.protokoll th, .protokoll td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
.protokoll th { color: var(--text-matt); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.protokoll-notiz { overflow-wrap: anywhere; }

@media (max-width: 479px) {
  /* Auf dem Handy: volle Breite, ohne Rahmen; die Höhe bleibt fest, höchstens so hoch wie der kleine Bildschirm. */
  .ausprobieren-offen { flex: 0 0 calc(100% + 2 * var(--rand)); margin: 0 calc(var(--rand) * -1); }
  .handy { width: 100%; height: min(660px, calc(100svh - 24px)); border: 0; border-radius: 0; box-shadow: none; }
}

/* ---------- Durch das Projekt ---------- */

.projekt { padding: 36px var(--seite) 40px; background: var(--flaeche); }
.abschnitt-titel { font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 22px; }

/* Die Linie mit den vier Punkten gehört zu den vier Spalten und steht nur dort. */
.linie { display: none; position: relative; height: 18px; margin: 0 12% 14px; }
.linie-strich { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: #56636c; }
.linie-punkt { position: absolute; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); transform: translateX(-50%); }
.linie-punkt-1 { left: 0; box-shadow: 0 0 0 4px rgba(240, 161, 44, .25); }
.linie-punkt-2 { left: 33.3%; }
.linie-punkt-3 { left: 66.6%; }
.linie-punkt-4 { left: 100%; }

.stationen { display: grid; grid-template-columns: 1fr; gap: 14px; }
.station { background: var(--karte); border-radius: 12px; overflow: hidden; }
.station-text { padding: 12px 14px 16px; }
.station-nr { font-size: 11px; color: var(--orange); margin-bottom: 2px; }
.station-titel { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.station-satz { color: var(--text-leise); font-size: 13.5px; }

/* Ausschnitte der App (Olaf, 07.11.: „eher in ausschnitt mit ein bisschen mehr detail“): je Station ein Stück
   des Bildschirms in Lesegröße, am rechten und unteren Rand abgeschnitten. Dreimal so hoch wie die erste Fassung
   (110px). Aufbau nach Bildschirmfotos der App, alle Inhalte erfunden. */
.bild { height: 330px; background: var(--tief); position: relative; overflow: hidden; container-type: inline-size; }
.app {
  position: absolute;
  left: 14px;
  top: 14px;
  right: 0;
  bottom: 0;
  padding: 0 12px;
  background: var(--blatt);
  color: var(--blatt-text);
  border-radius: 10px 0 0 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
}
.app-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 -12px; padding: 10px 12px 9px; border-bottom: 1px solid #e6e9ed; font-size: 12px; }
.app-kopf b { font-weight: 700; margin-right: 2px; }
.app .abzeichen { font-size: 9.5px; padding: 1px 7px; line-height: 1.4; }
.app-rubrik { margin: 10px 0 6px; padding-bottom: 3px; border-bottom: 1px solid #e6e9ed; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blatt-leise); }
.app-feldname { margin: 5px 0 3px; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--blatt-leise); }
.app-leise { color: var(--blatt-leise); }
.app-notiz { padding: 5px 8px; background: #f6f7f8; border-left: 3px solid var(--st-arbeit); border-radius: 0 4px 4px 0; }
.app-fotos { display: flex; gap: 6px; }
.app-foto { flex: none; width: 62px; height: 62px; border-radius: 4px; background: linear-gradient(135deg, #b9a58c, #6f5f4d); }
.app-foto + .app-foto { background: linear-gradient(135deg, #a7b2b9, #59646c); }

/* Station 1: der Plan als Ausschnitt (schwarze Wände, Räume farbig, Raumstempel in CAD-Schrift, Pins),
   rechts das Pin-Blatt wie in der App am Rechner. */
/* Wie die anderen drei Ausschnitte auf dunklem Grund, oben und links 14px Rand (Olaf, 07.11.: „ausschnitte app
   gleichmäßiger mit dunklen hintergrund“). */
.plan-ausschnitt { position: absolute; inset: 14px 0 0 14px; background: var(--plan); border-radius: 10px 0 0 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent); mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }
.pr { position: absolute; border: 3px solid var(--plan-wand); }
.pr-a { left: 6%; top: 6%; width: 40%; height: 36%; border-bottom: none; background: var(--raum-gruen); }
.pr-flur { left: -2%; top: 42%; width: 104%; height: 17%; border-left: none; border-right: none; background: var(--raum-gelb); }
.pr-b { left: 6%; top: 59%; width: 40%; height: 36%; border-top: none; background: var(--raum-gruen); }
.pr-name { position: absolute; transform: translate(-50%, -50%); font-family: Georgia, 'Times New Roman', serif; font-size: 9px; line-height: 1.15; text-align: center; color: var(--plan-text); white-space: nowrap; }
.pr-name small { display: block; font-size: 7.5px; }
.pr-name-a { left: 20%; top: 28%; }
.pr-name-flur { left: 20%; top: 50.5%; }
.pr-name-b { left: 22%; top: 78%; }
.plan-knoepfe { position: absolute; left: 8px; top: 8px; display: grid; width: 20px; background: #fff; border: 1px solid #c4c9ce; border-radius: 4px; font-size: 13px; line-height: 19px; text-align: center; color: var(--plan-text); }
.plan-knoepfe span + span { border-top: 1px solid #c4c9ce; }
.bp-1 { left: 32%; top: 13%; }
.bp-2 { left: 30%; top: 32%; }
.bp-3 { left: 36%; top: 64%; }
.bp-4 { left: 34%; top: 47%; }
.bp-5 { left: 10%; top: 64%; }
.bp-6 { left: 33%; top: 86%; }
.pin-gewaehlt { box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 2.5px #fff, 0 0 0 5px var(--art-doku); }
.pin-blatt { left: 49%; padding-top: 12px; }
.pin-blatt-titel { font-size: 13px; font-weight: 700; line-height: 1.25; margin-bottom: 7px; }
.pin-blatt .abzeichen-reihe { flex-direction: column; align-items: flex-start; gap: 5px; }
.pin-blatt-ort { margin-top: 7px; font-size: 10px; }
.status-punkt-doku { background: var(--st-doku); }

/* Station 2 (Olaf, 07.11.: „ein 3d modell und dann angeschnitten das protokoll“, „im 3d modell zwei pins verorten und
   schatten als falschfarben darstellen“): oben der 3D-Viewer in Falschfarben mit zwei Pins, darüber von unten
   angeschnitten das Protokoll im Entwurf. */
.bild-planen .vw { position: absolute; left: 14px; top: 14px; right: 0; height: 206px; border-right: none; border-radius: 10px 0 0 10px; }
.bild-planen .vw-szene { display: none; }
.bild-planen .vw-legende { top: 8px; }
.bild-planen .app { top: 200px; left: 32px; box-shadow: 0 -8px 26px rgba(0, 0, 0, .5); }
.vw-mit-pin .vw-pin.vw-pin-2 { left: 27%; top: 46%; background: var(--art-aufgabe); }
.vw-pin-2::before { border-color: var(--art-aufgabe); background: var(--st-arbeit); }
.vw-falsch .vw-schatten { clip-path: polygon(33% 81%, 67% 81%, 70% 88%, 30% 88%); background: #8e4b72; }
.gl-titel { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; }
.gl-feld { border: 1px solid #d5dade; border-radius: 6px; padding: 5px 8px; background: #fff; }
.gl-titel .gl-feld { flex: 1; background: #f6f7f8; }
.gl-punkt { display: grid; grid-template-columns: 20px 1fr; gap: 0 4px; margin-bottom: 7px; }
.gl-nr { padding-top: 6px; font-size: 10px; color: var(--blatt-leise); }
.gl-erledigt { background: #e8f4ec; border-color: #cfe7d6; color: #2e7d46; }
.gl-status { display: flex; justify-content: flex-end; margin-top: 4px; }
.gl-status span { border: 1px solid #c9ced3; border-radius: 999px; padding: 1px 9px; font-size: 10px; background: #fff; }
.gl-status .ok { border-color: #8fd0a2; color: #2e7d46; background: #f1faf3; }

/* Station 3: hinten die publizierte Bauberatung (Fassung 2), vorn der Bautenstandsbericht — Auswahl nach Typen
   (gewählt dunkel, Rand in der Farbe der Art), Gruppierung, Einträge je Bereich mit Haken, Punkt und Bild. */
.app-hinten { left: 8px; top: 8px; background: #e9ecef; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.app-hinten .app-kopf { border-bottom: none; }
.app-vorn { left: 22px; top: 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { border: 1.5px solid #c9ced3; border-radius: 999px; padding: 1px 8px; font-size: 10px; background: #fff; color: var(--blatt-text); white-space: nowrap; }
.chip-an { background: var(--blatt-text); border-color: var(--blatt-text); color: #fff; }
.chip-bautenstand { border-color: var(--art-bautenstand); }
.chip-mangel { border-color: var(--art-mangel); }
.chip-aufgabe { border-color: var(--art-aufgabe); }
.st-anzahl { margin: 6px 0 3px; }
.st-gruppe { font-weight: 700; padding-bottom: 3px; border-bottom: 1px solid #e6e9ed; }
.st-eintrag { display: grid; grid-template-columns: 16px 8px 1fr 34px; align-items: center; gap: 6px; padding: 6px 4px 6px 0; border-bottom: 1px solid #f0f2f4; }
.st-haken { width: 16px; height: 16px; border: 1px solid #9fd3ae; border-radius: 3px; background: #e6f4ea; color: #2e7d46; font-size: 10px; line-height: 14px; text-align: center; }
.st-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--blatt-text); }
.st-text { min-width: 0; }
.st-text small { display: block; font-size: 9.5px; color: var(--blatt-leise); }
.st-foto { position: relative; width: 34px; height: 34px; border-radius: 4px; background: linear-gradient(135deg, #b9a58c, #6f5f4d); }
.st-foto + .st-foto, .st-eintrag + .st-eintrag .st-foto { background: linear-gradient(135deg, #a7b2b9, #59646c); }
.st-foto i { position: absolute; right: -4px; bottom: -4px; min-width: 15px; height: 15px; border: 1.5px solid #fff; border-radius: 8px; background: var(--blatt-text); color: #fff; font-size: 8.5px; font-style: normal; line-height: 12px; text-align: center; }

/* Station 4: die Messreihe wie in der App — Titel und Raster oben, Reiter, Band der Zone, sechs Kennwerte (mit
   Soll grün, wenn erfüllt), das Raster mit Lineal in m, gefüllte Punkte blau, der aktive gelb; darunter die Eingabe. */
.app-messung { padding: 0; }
.mr-kopf { display: flex; align-items: center; gap: 10px; padding: 9px 12px 8px; }
.mr-kopf b { display: block; font-size: 12px; white-space: nowrap; }
.mr-kopf small { display: block; font-size: 10px; color: #6b7480; }
.mr-zu { flex: none; font-size: 13px; color: #6b7480; }
.mr-reiter { display: grid; grid-template-columns: 1fr 1fr; text-align: center; color: #6b7480; border-bottom: 1px solid #e6e9ed; }
.mr-reiter span { padding: 4px 0 5px; }
.mr-reiter .an { color: var(--blatt-text); font-weight: 600; box-shadow: inset 0 -2.5px var(--blatt-text); }
.mr-kennwerte { display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); gap: 1px; min-width: 276px; background: #e6e9ed; border-bottom: 1px solid #e6e9ed; }
.mr-zone { grid-column: 1 / -1; padding: 1px 8px; background: var(--art-messung); color: #fff; font-size: 10px; font-weight: 600; }
.mr-wert { display: grid; justify-items: center; align-content: start; padding: 3px 0 4px; background: #fff; line-height: 1.15; }
.mr-wert span { font-size: 9px; color: #6b7480; }
.mr-wert b { font-size: 13px; font-variant-numeric: tabular-nums; }
.mr-wert small { font-size: 8.5px; color: #6b7480; white-space: nowrap; }
.mr-wert.ok { background: #e7f6ec; }
.mr-wert.ok b { color: #1f7a3a; }
.mr-raster { display: grid; grid-template-columns: 24px repeat(5, 34px); gap: 4px; justify-content: center; padding: 8px 0; background: #f3f5f7; }
.mr-raster span { height: 32px; border-radius: 5px; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.mr-raster .ln { background: #dde4ea; color: #48606f; font-size: 10px; font-weight: 600; }
.mr-raster .oben { height: 20px; }
.mr-raster .leer { border: 1.5px dashed #d5dade; background: #fff; }
.mr-raster .voll { border: 2px solid var(--art-messung); background: #e8efff; }
.mr-raster .aktiv { border: 2.5px solid var(--blatt-text); background: #ffd77a; }
.mr-raster b { font-size: 11px; }
.mr-raster small { font-size: 8px; color: var(--art-messung); }
.mr-raster .aktiv small { color: var(--blatt-text); }
.mr-eingabe { display: flex; align-items: center; gap: 8px; padding: 8px 12px 4px; font-weight: 600; }
.mr-chip { border: 1px solid #c9ced3; border-radius: 999px; padding: 0 8px; background: #eef2f6; font-weight: 400; }
.mr-zonen { display: flex; gap: 6px; padding: 4px 12px; }
.mr-zonen span { border: 1.5px solid transparent; border-radius: 999px; padding: 1px 10px; font-weight: 600; }
.mr-zonen .an { background: var(--art-messung); color: #fff; }
.mr-zonen .wand { border-color: #d97706; color: #b45309; }

/* Schmale Spalten (vier nebeneinander ab 1000px): Plan schmaler, Pin-Blatt breiter. */
@container (max-width: 250px) {
  .pin-blatt { left: 42%; }
}

/* ---------- Licht besprechen ---------- */

.licht { padding: 40px var(--seite); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.licht-text { flex: 1 1 280px; }
.licht-titel { font-size: 24px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.licht-satz { color: var(--text-leise); margin-bottom: 14px; }
.varianten[hidden] { display: none; }
.varianten { display: inline-flex; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; }
.variante {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.variante[aria-pressed='true'] { background: var(--orange); color: var(--grund); font-weight: 600; }
/* Ausschnitt des 3D-Viewers (Olaf, 07.11.: „gibt noch mehr testbilder vom 3d viewer“): Kopfleiste, Szene, Kappen
   über dem Bild, ein Raum am Abend mit Pendelleuchte über dem Tisch, unten Lichtkarte, Sonnenstand und Uhrzeit.
   Aufbau nach den Bildern des Prüfstands, Inhalte erfunden. Die Lichtfarbe hängt an --licht; .vw-b (Variante B)
   macht es kühler, und die Kappe im Bild wechselt mit; .vw-falsch zeigt die Beleuchtungsstärke in Falschfarben.
   Die Demo übernimmt diesen Viewer der Seite (cloneNode) als Schritt 5, mit dem Pin. */
.licht-bild { flex: 1.1 1 280px; height: 360px; }
.vw {
  --licht: 255, 210, 150;
  display: flex;
  flex-direction: column;
  border: 1px solid #2b343b;
  border-radius: 12px;
  overflow: hidden;
  background: #14191d;
  font-size: 12px;
  color: #dfe4e7;
}
.vw-b { --licht: 220, 234, 255; }
.vw-kopf { flex: none; padding: 7px 12px; background: var(--art-doku); font-weight: 700; font-size: 13px; color: #fff; }
.vw-szene { flex: none; padding: 4px 12px; background: #1d2429; font-size: 12px; }
.vw-raum { position: relative; flex: 1; min-height: 0; }
.vw-raum > span { position: absolute; inset: 0; }
.vw-wand { clip-path: polygon(22% 10%, 78% 10%, 78% 62%, 22% 62%); background: radial-gradient(ellipse 38% 80% at 50% 22%, rgba(var(--licht), .8), rgba(var(--licht), .25) 55%, transparent 85%), #474d52; }
.vw-seite { clip-path: polygon(0 0, 22% 10%, 22% 62%, 0 100%); background: linear-gradient(90deg, #262b2f, #3c4246); }
.vw-seite-r { clip-path: polygon(78% 10%, 100% 0, 100% 100%, 78% 62%); background: linear-gradient(270deg, #262b2f, #3c4246); }
.vw-decke { clip-path: polygon(0 0, 100% 0, 78% 10%, 22% 10%); background: #1a1e21; }
.vw-boden { clip-path: polygon(22% 62%, 78% 62%, 100% 100%, 0 100%); background: radial-gradient(ellipse 36% 34% at 50% 76%, rgba(var(--licht), .95), rgba(var(--licht), .35) 50%, transparent 90%), #55524c; }
.vw-tisch-oben { clip-path: polygon(37% 67%, 63% 67%, 67% 75%, 33% 75%); background: linear-gradient(rgba(var(--licht), .9), rgba(var(--licht), .55)), #b98f5f; background-blend-mode: multiply; }
.vw-tisch-vorn { clip-path: polygon(33% 75%, 67% 75%, 67% 81%, 33% 81%); background: #4a3826; }
.vw-pendel-seil { clip-path: polygon(49.85% 10%, 50.15% 10%, 50.15% 34%, 49.85% 34%); background: #0e1113; }
.vw-pendel { clip-path: ellipse(7% 2.5% at 50% 35%); background: rgb(var(--licht)); box-shadow: none; }
.vw-schein { background: radial-gradient(ellipse 26% 18% at 50% 36%, rgba(var(--licht), .7), transparent 70%); }
.vw-chips { position: absolute; left: 10px; display: flex; gap: 0; border: 1px solid #4f5b64; border-radius: 999px; overflow: hidden; background: rgba(29, 36, 41, .85); }
.vw-chips-1 { top: 10px; }
.vw-chips-2 { top: 40px; }
.vw-chip { padding: 2px 10px; font-size: 11.5px; white-space: nowrap; }
.vw-an, .vw-chip-a { background: var(--orange); color: var(--grund); font-weight: 600; }
.vw-b .vw-chip-a { background: transparent; color: #dfe4e7; font-weight: 400; }
.vw-b .vw-chip-b { background: var(--orange); color: var(--grund); font-weight: 600; }
.vw-wuerfel { position: absolute; right: 12px; top: 10px; width: 38px; height: 38px; border: 1px solid #5b6770; border-radius: 4px; background: linear-gradient(135deg, #4f5b64, #2b343b); transform: perspective(80px) rotateX(18deg) rotateY(-24deg); }
.vw-beschriftung { position: absolute; left: 10px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(29, 36, 41, .85); font-size: 11.5px; }
.vw-fuss { flex: none; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 7px 12px 9px; background: #1d2429; border-top: 1px solid #2b343b; }
.vw-karte { color: #f5c451; font-weight: 600; }
.vw-sonne { grid-column: 1; color: var(--text-matt); font-size: 11.5px; }
.vw-zeit { grid-column: 2; grid-row: 1 / span 2; padding: 3px 10px; border: 1px solid #4f5b64; border-radius: 999px; font-variant-numeric: tabular-nums; }
.vw-regler { grid-column: 1 / -1; height: 4px; margin-top: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--orange) 0 86%, #3b464e 86%); }
/* Beleuchtungsstärke in Falschfarben wie im Viewer: Stufen von gelb (hell) über rosa und rot nach violett, rechts die
   Legende in lx, auf dem Tisch eine Ablesung. Die Werte sind erfunden, passen aber zueinander. */
.vw-legende, .vw-ablesung, .vw-pin { display: none; }
.vw-falsch .vw-boden { background: radial-gradient(ellipse 36% 34% at 50% 76%, #f5c451 0 22%, #fbe7a1 22% 38%, #f3c4c4 38% 55%, #e48f9a 55% 72%, #c0392b 72% 86%, #8e4b72 86%); }
.vw-falsch .vw-wand { background: radial-gradient(ellipse 38% 80% at 50% 22%, #f3c4c4 0 22%, #e48f9a 22% 45%, #c0392b 45% 68%, #8e4b72 68%); }
.vw-falsch .vw-seite, .vw-falsch .vw-seite-r { background: #8e4b72; }
.vw-falsch .vw-tisch-oben { background: #f5c451; }
.vw-falsch .vw-schein { display: none; }
.vw-falsch .vw-legende { display: grid; position: absolute; right: 10px; top: 56px; grid-template-columns: 12px auto; gap: 1px 5px; align-items: center; padding: 4px 6px; border-radius: 4px; background: rgba(29, 36, 41, .9); font-size: 9.5px; line-height: 11px; }
.vw-legende i { width: 12px; height: 9px; }
.vw-l1 { background: #f5c451; }
.vw-l2 { background: #fbe7a1; }
.vw-l3 { background: #f3c4c4; }
.vw-l4 { background: #e48f9a; }
.vw-l5 { background: #c0392b; }
.vw-l6 { background: #8e4b72; }
.vw-falsch .vw-ablesung { display: block; position: absolute; left: 50%; top: 64%; transform: translate(-50%, -100%); padding: 1px 6px; border-radius: 4px; background: #1d2429; font-size: 11px; font-weight: 600; }
/* Der Pin aus der Demo steht auch im 3D-Modell: Nadel an der Wand neben der Leuchte (Mangel, offen). */
.vw-mit-pin .vw-pin { display: block; position: absolute; left: 66%; top: 24%; width: 2px; height: 22px; background: var(--art-mangel); }
.vw-pin::before { content: ''; position: absolute; left: -7px; top: -14px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--art-mangel); background: var(--st-offen); box-shadow: inset 0 0 0 1.5px #fff; }
/* In der Demo: der Viewer im Bildschirm des Handys, darunter die Knöpfe. */
.handy-vw { flex: none; height: 264px; border-radius: 8px; }
.licht-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.licht-knoepfe .status-knopf { flex: 1 1 110px; }
.licht-falsch[aria-pressed='true'] { background: var(--orange); border-color: var(--orange); color: var(--grund); font-weight: 600; }

/* ---------- Nebenbei ---------- */

/* Eigene Fläche mit zwei Karten: der schmale Streifen ging zwischen dem hellen Lichtbild und dem Schein der Demo
   unter (Olaf, 07.11.). Der Ausblick trägt einen gestrichelten Rand: noch nicht da. */
.nebenbei { background: var(--flaeche); padding: 32px var(--seite); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.nebenbei-karte { background: var(--karte); border: 1px solid transparent; border-radius: 12px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.nebenbei-ausblick { border: 1px dashed rgba(240, 161, 44, .6); }
.nebenbei-karte .ueberschrift { margin-bottom: 0; }
.nebenbei-satz { color: var(--text); font-size: 15.5px; }
.nebenbei-satz b { color: var(--creme); }
.schilder { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; font-size: 12.5px; color: var(--creme); }
.schild { background: var(--tief); border: 1px solid var(--linie); border-radius: 6px; padding: 3px 9px; }

/* ---------- Demo ---------- */

.demo { padding: 44px var(--seite); text-align: center; position: relative; overflow: hidden; }
.demo-glanz {
  position: absolute;
  left: 50%;
  top: -80px;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 161, 44, .25), rgba(240, 161, 44, 0) 62%);
  pointer-events: none;
}
.demo-inhalt { position: relative; }
.demo-titel { font-size: 24px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
.demo-satz { color: var(--text-leise); margin-bottom: 20px; }
.demo-adresse { margin-top: 12px; font-size: 14px; color: var(--text-matt); overflow-wrap: anywhere; }

/* ---------- Fuß ---------- */

.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 8px var(--seite);
  border-top: 1px solid #3c464e;
  font-size: 13px;
  color: var(--text-matt);
  align-items: center;
}
.fuss-nav { display: flex; flex-wrap: wrap; }
.fuss-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-matt); }
.fuss-nav a:hover { color: var(--text); }

/* ---------- Textseite (Datenschutz) ---------- */

.text-seite { max-width: 720px; margin: 0 auto; padding: 40px var(--rand) 56px; }
.text-titel { font-size: 28px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.text-lead { color: var(--text-leise); margin-bottom: 8px; }
.text-abschnitt { margin-top: 28px; }
.text-abschnitt h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.text-abschnitt p + p { margin-top: 10px; }
.text-abschnitt p { overflow-wrap: anywhere; }
.text-abschnitt a { color: var(--orange); text-underline-offset: 3px; }
.text-abschnitt a:hover { color: var(--creme); }

/* ---------- Hilfe ---------- */

.hilfe-seite { max-width: 960px; }
.hilfe-inhalt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hilfe-inhalt a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 22px; color: var(--text-leise); font-size: 14px; text-decoration: none; }
.hilfe-inhalt a:hover { color: var(--text); border-color: var(--text-leise); }
.hilfe-thema { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--linie); }
.hilfe-thema h2 { font-size: 22px; }
.hilfe-thema p { max-width: 720px; }
.hilfe-bilder { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-top: 20px; }
.hilfe-bilder img { display: block; width: auto; height: auto; max-width: 100%; max-height: 460px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; }

/* ---------- 404 ---------- */

.fehler { max-width: 560px; margin: 0 auto; padding: 64px var(--rand); text-align: center; }
.fehler-titel { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.fehler-satz { color: var(--text-leise); margin-bottom: 4px; }
.fehler .knopfreihe { justify-content: center; margin-top: 24px; }

/* ---------- Breiter ---------- */

@media (min-width: 600px) {
  :root { --kopf-hoehe: 68px; }
}

@media (min-width: 640px) {
  .stationen { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .stationen { grid-template-columns: repeat(4, 1fr); }
  .linie { display: block; }
  .station-satz { font-size: 12.5px; }
}

@media (max-width: 479px) {
  :root { --rand: 16px; }
  /* Die Leiste (Funktionen, Demo, Hilfe, Anmelden, DE/EN) bleibt am Handy in einer Zeile: engere Abstände. */
  .kopf-nav { gap: 0 2px; }
  .nav-link { padding: 0 6px; }
  .kopf-nav .knopf-leise { padding: 0 10px; }
  .sprache-link { min-width: 36px; }
  .knopfreihe .knopf { flex: 1 1 100%; }
}

@media (max-width: 399px) {
  .nav-link { padding: 0 4px; }
  .kopf-nav .knopf-leise { padding: 0 8px; }
  .sprache-link { min-width: 32px; }
}

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