/* ==========================================================================
   DK1DH – Amateurfunk  ·  Technischer Stil (Gerätefront)
   Gehäuse-Grafit, Bernstein-Display, Silberbeschriftung, rote TX-LED
   Schriften: Archivo (Überschriften, schmal), JetBrains Mono (Anzeigen),
   Atkinson Hyperlegible Next (Fließtext). Alle Schriften liegen auf dem eigenen Server.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2-variations"),
       url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2-variations"),
       url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-italic.woff2") format("woff2-variations"),
       url("../fonts/atkinson-hyperlegible-next-latin-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --grund: #15171a;          /* Werkbank / Hintergrund */
  --gehaeuse: #1f2226;       /* Gerätegehäuse */
  --front: #2a2e33;          /* Frontplatte */
  --kante: #3a3f46;          /* Kanten, Rahmen */
  --silber: #c7cdd3;         /* Siebdruck-Beschriftung */
  --text: #dfe3e7;
  --text-weich: #9aa3ac;
  --display: #0c0e0b;        /* Display-Hintergrund */
  --bernstein: #ffb21e;      /* Display-Leuchtschrift */
  --bernstein-glimm: rgba(255, 178, 30, 0.45);
  --bernstein-dunkel: #8a5c00;
  --tx: #ff3b30;             /* TX-LED */
  --rx: #39d98a;             /* RX-LED */
  --linie: rgba(199, 205, 211, 0.14);

  --schrift-text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-titel: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --schrift-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-klein: 1rem;
  --t-text: 1.1875rem;
  --t-lead: clamp(1.3125rem, 1.1rem + 0.75vw, 1.625rem);
  --t-h2: clamp(2.1rem, 1.4rem + 2.4vw, 3.25rem);
  --t-ruf: clamp(3.4rem, 0.9rem + 10.6vw, 9.75rem);

  --abstand: clamp(3.5rem, 2rem + 6vw, 7rem);
  --rand: clamp(1rem, 0.5rem + 3vw, 2.5rem);
  --breite: 74rem;
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--grund);
  /* feines Messraster wie auf einem Oszilloskop */
  background-image:
    linear-gradient(rgba(199, 205, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 205, 211, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: var(--t-text);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--schrift-titel); color: #fff; }
p { margin: 0; }

a { color: var(--bernstein); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--bernstein); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  padding: 0.6rem 1rem; background: var(--bernstein); color: #000; font-weight: 700; border-radius: 3px;
}
.skip:focus { top: 1rem; color: #000; }

.behaelter {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* ---------- Knöpfe: gummierte Gerätetaste mit LED ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.65rem 1.2rem 0.65rem 0.95rem;
  border: 1px solid #4a5058;
  border-radius: 4px;
  background: linear-gradient(#3b4047, #2a2e33);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 0 #0b0c0e, 0 3px 8px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: var(--schrift-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
}
.knopf:hover { background: linear-gradient(#454b53, #30353b); }
.knopf:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 #0b0c0e; }
.knopf svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--bernstein); }
.knopf::before {
  content: "";
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #5a2320;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.knopf[data-laeuft]::before { background: var(--tx); box-shadow: 0 0 8px var(--tx); }

/* ==========================================================================
   Kopfbereich
   ========================================================================== */

.wand {
  background: linear-gradient(180deg, #1b1e22 0%, var(--grund) 100%);
  border-bottom: 1px solid var(--kante);
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}

.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}
.kopf-marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--schrift-mono);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
}
.kopf-marke::before {
  content: "";
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--rx);
  box-shadow: 0 0 8px var(--rx);
}
.kopf-links {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem;
  margin: 0; padding: 0; list-style: none;
}
.kopf-links a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--silber);
  font-family: var(--schrift-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.kopf-links a:hover { color: #fff; border-color: var(--kante); }
.kopf-links a[aria-current="page"] {
  color: var(--bernstein);
  border-color: var(--bernstein-dunkel);
  background: rgba(255, 178, 30, 0.08);
}

.buehne { padding-top: clamp(1.5rem, 1rem + 3vw, 3.5rem); }

/* ---------- Gerätefront (Startseite) ---------- */

.qsl {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(10.5rem, 6rem + 11vw, 15rem);
  grid-template-areas:
    "kopf foto"
    "aktion foto"
    "bericht bericht"
    "gruss gruss";
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.5rem) clamp(1rem, 0.4rem + 2.6vw, 2rem);
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 0.6rem + 3vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px),
    var(--front);
  border: 1px solid #474d55;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 30px 60px -25px rgba(0, 0, 0, 0.85),
    0 0 0 6px #191b1e,
    0 0 0 7px #3a3f46;
}
/* Schrauben in den Ecken */
.qsl::before,
.qsl::after,
.reisszwecke::before,
.reisszwecke::after {
  content: "";
  position: absolute;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 44%, #2a2e33 44% 56%, transparent 56%),
    radial-gradient(circle at 35% 30%, #d4d8dc, #7d848b 70%, #4c5258);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.qsl::before { top: 0.6rem; left: 0.6rem; }
.qsl::after { top: 0.6rem; right: 0.6rem; }
.reisszwecke { position: absolute; inset: 0; pointer-events: none; }
.reisszwecke::before { bottom: 0.6rem; left: 0.6rem; }
.reisszwecke::after { bottom: 0.6rem; right: 0.6rem; }

@media (prefers-reduced-motion: no-preference) {
  .qsl-kopf { animation: einschalten 1.1s steps(1) both; }
  .rufzeichen { animation: aufleuchten 1.4s 0.2s ease-out both; }
}
@keyframes einschalten {
  0% { filter: brightness(0.2); } 12% { filter: brightness(1.2); }
  18% { filter: brightness(0.4); } 30%, 100% { filter: none; }
}
@keyframes aufleuchten { from { opacity: 0.15; } to { opacity: 1; } }

/* Display mit Rufzeichen */
.qsl-kopf {
  grid-area: kopf;
  min-width: 0;
  container-type: inline-size;
  position: relative;
  padding: clamp(0.9rem, 0.5rem + 1.5vw, 1.4rem) clamp(0.9rem, 0.5rem + 1.5vw, 1.5rem) clamp(1.1rem, 0.6rem + 1.8vw, 1.8rem);
  background:
    linear-gradient(rgba(255, 178, 30, 0.035) 1px, transparent 1px) 0 0 / 100% 4px,
    radial-gradient(ellipse at 50% 40%, #16190f, var(--display) 75%);
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #26292d, inset 0 6px 18px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--bernstein);
}

.qsl-dach {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--schrift-mono);
  font-size: clamp(0.875rem, 0.7rem + 0.6vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.7em;
  color: var(--bernstein);
  text-shadow: 0 0 6px var(--bernstein-glimm);
}
.qsl-dach::after {
  content: "ON AIR";
  padding: 0.15em 0.5em;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.75em;
  letter-spacing: 0.14em;
  color: var(--tx);
  text-shadow: 0 0 6px rgba(255, 59, 48, 0.6);
}

.rufzeichen {
  display: block;
  font-size: var(--t-ruf);
  font-weight: 800;
  font-stretch: 100%;
  line-height: 0.9;
  letter-spacing: 0.01em;
  padding-bottom: 0.22em;
  white-space: nowrap;
  color: var(--bernstein);
  text-shadow: 0 0 0.12em var(--bernstein-glimm), 0 0 0.03em rgba(255, 220, 150, 0.7);
}
@supports (container-type: inline-size) {
  .rufzeichen { font-size: min(var(--t-ruf), 23.5cqi); }
}
@supports not (container-type: inline-size) {
  .rufzeichen { font-size: clamp(2.9rem, 0.5rem + 7.6vw, 7.25rem); }
}

.zeichen { position: relative; display: inline-block; transition: color 0.06s linear; }
.zeichen.an { color: #fff3d6; text-shadow: 0 0 0.2em var(--bernstein), 0 0 0.05em #fff; }

.morse {
  position: absolute;
  top: calc(100% + 0.03em);
  left: 50%;
  display: flex;
  gap: 0.045em;
  transform: translateX(-50%);
}
.morse i {
  display: block;
  width: 0.045em; height: 0.045em;
  border-radius: 0.0225em;
  background: var(--bernstein-dunkel);
  transition: background-color 0.04s linear;
}
.morse i.s { width: 0.135em; }
.morse i.an { background: #fff3d6; box-shadow: 0 0 0.08em var(--bernstein); }

.qsl-aktion {
  grid-area: aktion;
  align-self: end;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
}

/* Foto als Bildschirm mit Messraster */
.qsl-foto {
  grid-area: foto;
  position: relative;
  margin: 0;
  min-height: 12rem;
  background: #000;
  border: 1px solid #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px #26292d, 0 1px 0 rgba(255, 255, 255, 0.08);
}
.qsl-foto img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  filter: saturate(0.85) contrast(1.05);
}
.qsl-foto::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 178, 30, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 178, 30, 0.18) 1px, transparent 1px);
  background-size: 25% 12.5%;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

/* Anzeigefelder */
.bericht {
  grid-area: bericht;
  display: grid;
  grid-template-columns: 1.15fr 1.5fr 1fr 1fr 1fr;
  gap: 0.6rem;
  margin: 0;
}
.bericht > div {
  min-width: 0;
  padding: 0.5rem 0.75rem 0.6rem;
  background: var(--display);
  border: 1px solid #000;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #26292d, inset 0 3px 10px rgba(0, 0, 0, 0.7);
}
.bericht dt {
  font-family: var(--schrift-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-weich);
  line-height: 1.3;
}
.bericht dd {
  margin: 0.2rem 0 0;
  font-family: var(--schrift-mono);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.3125rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--bernstein);
  text-shadow: 0 0 6px var(--bernstein-glimm);
}

.qsl-gruss {
  grid-area: gruss;
  justify-self: end;
  font-family: var(--schrift-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silber);
}

/* ==========================================================================
   Inhalt
   ========================================================================== */

.einleitung { padding-top: var(--abstand); }
.einleitung p { max-width: 34em; font-size: var(--t-lead); line-height: 1.5; color: var(--text); }

.abschnitt { padding-block: var(--abstand); }

.titel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--t-h2);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.titel::before {
  content: "";
  flex: none;
  width: 0.28em; height: 0.28em; border-radius: 50%;
  background: var(--bernstein);
  box-shadow: 0 0 10px var(--bernstein-glimm);
}

.untertitel {
  font-family: var(--schrift-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silber);
  line-height: 1.3;
}

.abschnitt-kopf p { margin-top: 1rem; max-width: 36em; color: var(--text); }

/* ---------- Station ---------- */

.station-raster {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "bild kopf" "bild liste";
  grid-template-rows: auto 1fr;
  gap: 2rem clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.station-raster .abschnitt-kopf { grid-area: kopf; }
.station-bild { grid-area: bild; margin: 0; position: sticky; top: 1.5rem; }
.geraete { grid-area: liste; }

.hotspots {
  position: relative;
  padding: 6px;
  background: var(--gehaeuse);
  border: 1px solid var(--kante);
  border-radius: 6px;
}
.hotspots img { width: 100%; border-radius: 3px; }

.punkt {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 4px;
  background: rgba(12, 14, 11, 0.88);
  border: 2px solid var(--bernstein);
  color: var(--bernstein);
  font-family: var(--schrift-mono);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--bernstein-glimm), 0 3px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.punkt:hover, .punkt.aktiv {
  color: #000;
  background: var(--bernstein);
  transform: translate(-50%, -50%) scale(1.15);
}

.station-bild figcaption,
.antennen-bild figcaption,
.galerie figcaption {
  margin-top: 0.6rem;
  font-family: var(--schrift-mono);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-weich);
}

.geraete { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.geraete li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0.75rem 1.05rem 0.4rem;
  border-bottom: 1px solid var(--linie);
  scroll-margin-top: 2rem;
  transition: background-color 0.15s ease;
}
.geraete li.aktiv { background: rgba(255, 178, 30, 0.08); }
.geraete .nr {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border: 2px solid var(--bernstein);
  border-radius: 4px;
  color: var(--bernstein);
  font-family: var(--schrift-mono);
  font-weight: 700;
  font-size: 1rem;
}
.geraete h3 { font-size: 1.375rem; font-weight: 700; font-stretch: 80%; letter-spacing: 0.01em; line-height: 1.2; }
.geraete p { margin-top: 0.2rem; color: var(--text-weich); }

/* ---------- Antennen ---------- */

.antennen-reihe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem clamp(1rem, 0.5rem + 1.5vw, 2rem);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.antennen-bild { margin: 0; }
.antennen-bild a,
.galerie a {
  display: block;
  padding: 5px;
  background: var(--gehaeuse);
  border: 1px solid var(--kante);
  border-radius: 5px;
  transition: border-color 0.15s ease;
}
.antennen-bild a:hover,
.galerie a:hover { border-color: var(--bernstein); }
.antennen-bild img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; background: #000;
}

/* ---------- Galerie ---------- */

.galerie-gruppe { margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.galerie-gruppe > h3 {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.1rem;
}
.galerie-gruppe > h3::after { content: ""; flex: 1; height: 1px; background: var(--linie); }

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 1.75rem clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  margin: 0; padding: 0; list-style: none;
}
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: #000; }

/* ---------- Logbuch (rechts unten) ---------- */

.abschnitt-wand { background: transparent; }

.logbuch-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.logbuch-text p { margin-top: 1rem; max-width: 30em; }

.logbuch {
  justify-self: end;
  width: 100%;
  max-width: 41rem;
  padding: 8px;
  background: var(--front);
  border: 1px solid #474d55;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 40px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.logbuch-frame { display: block; width: 100%; height: 500px; border: 0; border-radius: 4px; background: #fff; }
.logbuch-hinweis {
  display: grid; align-content: center; gap: 1rem;
  min-height: 500px;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--display);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #26292d, inset 0 6px 18px rgba(0, 0, 0, 0.8);
}
.logbuch-hinweis .untertitel { color: var(--bernstein); text-shadow: 0 0 6px var(--bernstein-glimm); }
.logbuch-hinweis p { max-width: 32em; color: var(--text); }
.logbuch-merken { display: flex; align-items: center; gap: 0.6rem; font-size: var(--t-klein); cursor: pointer; }
.logbuch-merken input { width: 1.25rem; height: 1.25rem; accent-color: var(--bernstein); }
.logbuch-direkt { font-size: var(--t-klein); }
.logbuch-fuss {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 0.6rem 0.5rem 0.2rem;
  font-family: var(--schrift-mono);
  font-size: 0.875rem;
}
.logbuch-fuss button {
  padding: 0; border: 0; background: none; color: var(--bernstein);
  font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}

.nur-js { display: none !important; }
.js .nur-js { display: inline-flex !important; }
.js .logbuch-merken.nur-js { display: flex !important; }

/* ---------- Themen auf der Startseite ---------- */

.themen { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--abstand); }
.themen-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 0; padding: 0; list-style: none;
}
.themen-liste a {
  position: relative;
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 1.1rem 1.2rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), var(--front);
  border: 1px solid var(--kante);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.themen-liste a::after {
  content: "";
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #3b3420;
}
.themen-liste a:hover { border-color: var(--bernstein); }
.themen-liste a:hover::after { background: var(--bernstein); box-shadow: 0 0 8px var(--bernstein); }
.themen-name {
  font-family: var(--schrift-titel);
  font-size: 1.625rem;
  font-weight: 700;
  font-stretch: 75%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
}
.themen-text { color: var(--text-weich); font-size: var(--t-klein); line-height: 1.45; }

/* ---------- Ausklang ---------- */

.ausklang {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: clamp(20rem, 14rem + 16vw, 30rem);
  background: var(--gehaeuse);
  border-top: 1px solid var(--kante);
  border-bottom: 1px solid var(--kante);
}
.ausklang-text-flaeche {
  display: grid; align-content: center; justify-items: start;
  padding: clamp(3rem, 2rem + 4vw, 5rem) var(--rand);
  padding-left: max(var(--rand), calc((100vw - var(--breite)) / 2));
}
.ausklang-bild { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ausklang-gruss {
  font-family: var(--schrift-mono);
  font-size: clamp(2.5rem, 1rem + 4.2vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--bernstein);
  text-shadow: 0 0 0.15em var(--bernstein-glimm);
}
.ausklang-text { margin-top: 1rem; font-size: var(--t-lead); color: var(--text); }

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

.fuss {
  padding-block: 1.75rem;
  background: #101214;
  border-top: 1px solid var(--kante);
  color: var(--text-weich);
  font-family: var(--schrift-mono);
  font-size: 0.875rem;
}
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem; }
.fuss ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.fuss a { color: var(--silber); }
.fuss a:hover { color: var(--bernstein); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #0b0c0e; color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox-leiste {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem;
  font-family: var(--schrift-mono); font-size: 0.875rem; letter-spacing: 0.06em;
  color: var(--bernstein);
}
.lightbox-buehne {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 0.5rem; padding-inline: 0.5rem; min-height: 0;
}
.lightbox-buehne figure {
  display: grid; justify-items: center; align-content: center; gap: 0.75rem;
  height: 100%; min-height: 0; margin: 0;
}
.lightbox-bild {
  max-width: 100%; max-height: calc(100vh - 11rem);
  width: auto; height: auto; object-fit: contain; border-radius: 3px;
}
.lightbox-text {
  max-width: 40em; padding-inline: 1rem; text-align: center;
  font-family: var(--schrift-mono); font-size: 0.875rem; color: var(--silber);
}
.lightbox button {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; padding: 0;
  border: 1px solid var(--kante); border-radius: 4px;
  background: var(--front); color: #fff; cursor: pointer;
}
.lightbox button:hover { border-color: var(--bernstein); color: var(--bernstein); }
.lightbox button svg { width: 1.5rem; height: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: einblenden 0.18s ease-out; }
}
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Unterseiten ---------- */

.unterseite-kopf { padding-bottom: 0; overflow: visible; }
.einzelseite .abschnitt { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.unterseite { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--abstand); }
.unterseite-text { max-width: 42rem; }
.unterseite-text h1 {
  font-size: var(--t-h2); font-weight: 700; font-stretch: 75%;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05;
}
.unterseite-text h2 { margin-top: 2.5rem; font-size: 1.5rem; font-weight: 700; font-stretch: 85%; line-height: 1.25; }
.unterseite-text p, .unterseite-text ul, .unterseite-text address { margin-top: 0.9rem; }
.unterseite-text address { font-style: normal; }
.unterseite-text ul { padding-left: 1.25rem; }
.unterseite-text li + li { margin-top: 0.35rem; }
.stand { margin-top: 2.5rem !important; color: var(--text-weich); font-size: var(--t-klein); }
.freigabe-status { margin-left: 0.75rem; font-size: var(--t-klein); }

/* ==========================================================================
   Kleinere Bildschirme
   ========================================================================== */

@media (max-width: 62rem) {
  .station-raster {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "kopf" "bild" "liste";
    grid-template-rows: auto;
  }
  .station-bild { position: static; }
  .logbuch-raster { grid-template-columns: minmax(0, 1fr); }
  .logbuch { justify-self: stretch; max-width: none; }
}

@media (max-width: 47.99rem) {
  .qsl {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "foto" "kopf" "aktion" "bericht" "gruss";
  }
  .qsl-foto { min-height: 0; aspect-ratio: 16 / 9; }
  .qsl-foto img { object-position: 50% 18%; }
  .bericht { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bericht > div:nth-child(5) { grid-column: span 2; }
  .qsl-gruss { justify-self: start; }
}

@media (max-width: 39.99rem) {
  .antennen-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
  .antennen-reihe .antennen-bild:first-child { grid-column: 1 / -1; }
  .antennen-reihe .antennen-bild:first-child img { aspect-ratio: 4 / 5; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
  .galerie figcaption { font-size: 0.8125rem; }
  .ausklang { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .ausklang-bild { order: -1; height: auto; aspect-ratio: 16 / 10; }
  .ausklang-text-flaeche { padding-left: var(--rand); }
}

@media (max-width: 30rem) {
  .kopf { justify-content: flex-start; }
  .kopf-marke { width: 100%; }
  .kopf-links a { padding: 0.35rem 0.55rem; font-size: 0.875rem; }
  .bericht { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bericht > div:nth-child(5) { grid-column: 1 / -1; }
  .punkt { width: 1.8rem; height: 1.8rem; font-size: 0.875rem; }
  .lightbox-buehne { gap: 0.25rem; padding-inline: 0.25rem; }
  .lightbox-buehne button { width: 2.5rem; height: 2.5rem; }
  .qsl-dach::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Fußzeile bleibt auch auf kurzen Seiten unten */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
html { background: var(--grund); }
