/* ANLEITUNGEN (Seitenhuelle; die Inhaltsregeln stehen in anleitung-inhalt.css, damit die App
   sie ohne diese Huelle benutzen kann) "Wo bekomme ich das?" (tools/anleitungen_bauen.py). Eigene, kleine Stilschicht:
   die Seiten laufen auf dem Pi (pipeline/static) und auf Cloudflare Pages ohne den Sereno-Bau.
   Farben wie Sereno (TailAdmin): Text auf Weiss >= 4,5:1, Links brand-600 (nicht brand-500,
   CLAUDE.md Entscheidung 36). Tippziele mindestens 44 px. Kein Inline-Stil, kein Skript. */

:root {
  --bg: #f9fafb;
  --karte: #ffffff;
  --text: #1d2939;
  --leise: #475467;
  --rand: #e4e7ec;
  --link: #3641f5;
  --hinweis-bg: #fffaeb;
  --hinweis-rand: #fec84b;
  --auf-link: #ffffff;
  --gruen: #067647;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c111d;
    --karte: #161b26;
    --text: #f2f4f7;
    --leise: #c0c6d0;
    --rand: #344054;
    --link: #9cb9ff;
    --hinweis-bg: #2b2210;
    --hinweis-rand: #b54708;
    --auf-link: #0c111d;
    --gruen: #75e0a7;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.anl {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
a { color: var(--link); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }

.anl-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  max-width: 46rem;
  margin: 0 auto;
  padding: 8px 16px;
}
.anl-heim {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.anl-sprachen { display: flex; flex-wrap: wrap; gap: 0 4px; }
.anl-sprachen a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 6px;
  color: var(--leise);
  text-decoration: none;
  font-size: 0.95rem;
}
.anl-sprachen a[aria-current] { color: var(--text); font-weight: 600; }
.fi {
  display: inline-block;
  width: 1.33em;
  height: 1em;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.fi[data-flagge="de"] { background-image: url(/gast/flaggen/de.svg); }
.fi[data-flagge="it"] { background-image: url(/gast/flaggen/it.svg); }
.fi[data-flagge="gb"] { background-image: url(/gast/flaggen/gb.svg); }

.anl-main { max-width: 46rem; margin: 0 auto; padding: 8px 16px 32px; }
.anl-kicker { margin: 8px 0 0; color: var(--leise); font-weight: 600; }
.anl-main h1 { margin: 4px 0 8px; font-size: 1.75rem; line-height: 1.25; overflow-wrap: anywhere; }
.anl-zeile { margin: 0 0 20px; color: var(--leise); font-size: 1.125rem; }

/* Seitenbreite (nur Seiten, nicht die App): mit Bildschritten breiter. */
body.anl:has(.anl-schritt-bild) .anl-main,
body.anl:has(.anl-schritt-bild) .anl-kopf,
body.anl:has(.anl-schritt-bild) .anl-fuss { max-width: 72rem; }
/* Befund 24 (Durchspiel 17.11.): ein Link aus der Einrichtung auf einen der letzten Abschnitte
   landete mitten auf der Seite, weil darunter zu wenig Platz zum Hochschieben war - oben stand
   der Abschnitt davor (gemessen: polizei#wskey zeigte "Benutzername", kurtaxe#regeln zeigte
   "Erhebt meine Gemeinde eine?"). Nur mit Sprungziel: Platz darunter, damit es oben steht. */
body.anl:has(.anl-abschnitt:target) .anl-main { padding-bottom: 100vh; }

.anl-fuss { max-width: 46rem; margin: 0 auto; padding: 0 16px 40px; color: var(--leise); font-size: 0.95rem; }
.anl-fuss p { margin: 4px 0 0; }

/* KURZFASSUNG (oeffentliche Seiten auf Pages): ein, zwei Saetze je Abschnitt und der Weg in die App. */
.anl-kurz { margin: 0; font-size: 1.0625rem; }
.anl-voll { margin: 0 0 20px; }
.anl-voll-knopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--link);
  color: var(--auf-link);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.anl-voll-knopf .anl-weg-pfeil { color: var(--auf-link); }
.anl-voll-hinweis { margin: 6px 0 0; color: var(--leise); font-size: 0.95rem; }
.anl-fuss .anl-voll { margin: 8px 0 16px; }
.anl-urheber { color: var(--leise); }
