/* ---------------------------------------------------------------------------
   Impressum, Datenschutz, Kontakt — Gesetzblatt-Skin wie die Hauptseite.
   Papier statt Weiß, Serifen statt System-Sans, Kanten statt Kacheln,
   Schwarz-Rot-Gold als einziger Akzent. Die Klassennamen sind unverändert
   geblieben, damit die drei HTML-Dateien nicht angefasst werden mussten;
   nur Werte und Typografie sind neu. Farbwerte sind eins zu eins aus
   index.html übernommen — ändert sich dort die Palette, gehört sie auch hier
   nachgezogen.
   --------------------------------------------------------------------------- */
:root {
  --blau:       #2a2622;   /* Struktur und Verweise — Drucktinte */
  --blau-dunkel:#14110d;   /* Überschriften, Einband */
  --blau-mittel:#6b6357;
  --akzent:     #a4161a;   /* Flaggenrot */
  --gruen:      #3f5d33;
  --gruen-soft: rgba(63,93,51,.1);
  --amber:      #8a6d0b;   /* Flaggengold */
  --amber-soft: rgba(138,109,11,.1);
  --ink:        #14110d;
  --ink-mid:    #45403a;
  --ink-soft:   #7a7168;
  --bg:         #f3efe6;   /* Papier */
  --card:       #fbf9f4;   /* Seite */
  --line:       #ddd6c8;
  --blau-soft:  #efe9dc;
  --radius:     3px;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --flagge: linear-gradient(90deg, #14110d 0 33.33%, #a4161a 33.33% 66.66%, #c9a227 66.66% 100%);
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Verweise wie auf der Hauptseite: goldene Unterlängen, rot beim Überfahren. */
a { color: var(--blau); text-decoration: underline; text-decoration-color: #c9a227;
  text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--akzent); }

/* ---------- Seitenmenü links + Burger -------------------------------------
   Eins zu eins die Navigation der Hauptseite: ab 1100 px fest links, darunter
   Schublade über den Burger. Die Rechtsseiten waren vorher die einzigen mit
   einer Sticky-Leiste oben — das ließ sie wie ein fremdes Angebot wirken.
   Ändert sich das Menü in index.html, gehört es hier nachgezogen.
   ------------------------------------------------------------------------- */
:root { --sm-breite: 288px; }

.topbar { background: rgba(251,249,244,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 18px; }
.topbar .brand { text-decoration: none; line-height: 1.15; }
.topbar .brand .mark { display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--blau); }
.topbar .brand .mark span { color: var(--akzent); }
.topbar .brand .sub { display: block; font-size: .66rem; color: var(--ink-soft); margin-top: 1px; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line);
  background: var(--card); border-radius: 10px; cursor: pointer; flex: none;
}
.burger span { display: block; height: 2px; background: var(--blau-dunkel); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

.seitenmenu {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sm-breite); z-index: 60;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%); transition: transform .22s ease;
}
.seitenmenu.offen { transform: translateX(0); box-shadow: 0 0 40px rgba(20,17,13,.22); }

.sm-brand { display: block; padding: 22px 20px 16px; border-bottom: 4px solid var(--akzent); text-decoration: none; }
.sm-brand .mark { display: flex; align-items: baseline; gap: 3px; }
.sm-brand .mark b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--blau); line-height: 1; }
.sm-brand .mark .d { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--akzent); line-height: 1; }
.sm-brand .portal { display: block; margin-top: 11px; font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--blau); font-weight: 700; overflow-wrap: anywhere; }

.navlist { padding: 10px 12px 12px; }
.navgroup { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); padding: 13px 10px 5px; font-weight: 700; }
.navgroup:first-child { padding-top: 4px; }
.station {
  position: relative; display: block; padding: 8px 10px 8px 34px; margin-bottom: 1px;
  border-left: 3px solid transparent; border-radius: 0 4px 4px 0;
  color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 700; line-height: 1.3;
}
.station:hover { background: var(--blau-soft); }
.station.aktiv { background: var(--blau-soft); border-left-color: var(--akzent); }
.station .no { position: absolute; left: 11px; top: 8px; color: var(--blau-mittel); font-size: .78rem; font-weight: 800; }
.station.aktiv .no { color: var(--blau); }
.station .desc { display: block; color: var(--ink-soft); font-size: .7rem; font-weight: 400; margin-top: 2px; line-height: 1.35; }
.station:focus-visible { outline: 2px solid var(--blau); outline-offset: -2px; }
/* Die Rechtsseiten sind keine nummerierten Stationen — daher ohne Ziffernspalte. */
.station.ohne-no { padding-left: 13px; }

.nav-foot { margin-top: auto; padding: 14px 18px 18px; border-top: 1px solid var(--line); text-align: center; font-size: .68rem; color: var(--ink-soft); line-height: 1.9; }
.nav-foot a { color: var(--ink-mid); text-decoration: none; }
.nav-foot a:hover { color: var(--blau); text-decoration: underline; }
.nav-foot b { display: block; margin-top: 4px; color: var(--blau-dunkel); font-weight: 700; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }

.menu-schatten { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(20,17,13,.42); z-index: 55; }

@media (min-width: 1100px) {
  .seitenmenu { transform: none; }
  .menu-schatten { display: none !important; }
  .topbar { display: none; }
  body { padding-left: var(--sm-breite); }
}
@media (max-width: 1099px) {
  .topbar { position: sticky; top: 0; z-index: 50; }
}
@media (prefers-reduced-motion: reduce) {
  .seitenmenu, .burger span { transition: none; }
}

main { padding: 44px 0 72px; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.15rem); line-height: 1.18; letter-spacing: -.01em;
  margin: 0 0 10px; color: var(--blau-dunkel); }
.sub { color: var(--ink-mid); margin: 0 0 32px; font-size: 1.02rem; }
h2 { font-size: 1.14rem; margin: 34px 0 8px; color: var(--blau-dunkel); }
h3 { font-size: 1rem; margin: 22px 0 6px; color: var(--blau-dunkel); }
p { margin: 0 0 14px; color: var(--ink-mid); }
p.ink { color: var(--ink); }
ul { padding-left: 20px; margin: 0 0 14px; color: var(--ink-mid); }
li { margin-bottom: 6px; }

/* ---------- Karten: Kante statt Kachel ---------- */
.karte { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 18px; }
.karte h2:first-child { margin-top: 0; }
/* Angaben nach § 5 DDG sind Daten, keine Prosa — deshalb serifenlos. */
.karte dl { margin: 0; display: grid; grid-template-columns: 190px 1fr; gap: 8px 18px;
  font-size: .93rem; font-family: var(--font-ui); }
.karte dt { font-weight: 700; color: var(--ink); }
.karte dd { margin: 0; color: var(--ink-mid); }

.hinweis { background: var(--amber-soft); border: 1px solid rgba(138,109,11,.28);
  border-radius: 10px; padding: 15px 17px; font-size: .9rem; margin-bottom: 20px; color: var(--ink-mid); }
.hinweis b { color: var(--amber); }
.gut { background: var(--gruen-soft); border: 1px solid rgba(63,93,51,.25);
  border-radius: 10px; padding: 15px 17px; font-size: .9rem; margin-bottom: 20px; color: var(--ink-mid); }
.gut b { color: var(--gruen); }

/* ---------- Formular ---------- */
form { display: grid; gap: 16px; }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; color: var(--ink); }
label .opt { font-weight: 400; color: var(--ink-soft); }
input[type=text], input[type=email], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: .95rem; background: var(--card); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent); }
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-mid); }
.check input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--akzent); }
button { background: var(--blau-dunkel); color: #f3efe6; border: 0; border-radius: var(--radius);
  padding: 13px 22px; font: inherit; font-weight: 700; cursor: pointer; justify-self: start; }
button:hover { background: var(--akzent); }
button:disabled { opacity: .55; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 16px; border-radius: 10px; font-size: .92rem; display: none; }
.status.ok { display: block; background: var(--gruen-soft); border: 1px solid rgba(63,93,51,.3); color: var(--gruen); }
.status.err { display: block; background: rgba(164,22,26,.08); border: 1px solid rgba(164,22,26,.28); color: var(--akzent); }

/* ---------- Fuß: dunkler Einband, Flaggenkante oben ---------- */
footer { background: var(--blau-dunkel); color: #b3aa9a; padding: 30px 0 38px;
  font-size: .82rem; border-top: 3px solid transparent; border-image: var(--flagge) 1; }
footer a { color: #ded6c6; text-decoration-color: #c9a227; }
footer a:hover { text-decoration-color: #fff; }
footer .f-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
footer .f-nav span { opacity: .45; }

@media (max-width: 600px) {
  .karte dl { grid-template-columns: 1fr; gap: 3px 0; }
  .karte dd { margin-bottom: 10px; }

  /* Fließtext auf dem Telefon eine Stufe größer. 15 px Grundschrift sind für
     Rechtstexte am Handgerät zu klein; 16 px ist der übliche Richtwert für
     Fließtext und verhindert nebenbei das Hineinzoomen von iOS in Formulare. */
  html { font-size: 16px; }
  .wrap { padding: 0 16px; }
  main { padding: 30px 0 54px; }
  .karte { padding: 18px 16px; }
  p, ul { font-size: 1rem; line-height: 1.65; }
  .karte dl { font-size: 1rem; }
  .sub { font-size: 1.02rem; }
  .hinweis, .gut { font-size: .95rem; line-height: 1.6; padding: 14px 15px; }
  /* Formularfelder mindestens 16 px, sonst zoomt iOS beim Antippen hinein. */
  input[type=text], input[type=email], textarea, select { font-size: 1rem; padding: 13px 13px; }
  button { padding: 15px 22px; min-height: 48px; }
  .check input { width: 20px; height: 20px; }
}
