/* df6ax.de – gemeinsames Stylesheet
   Leitbild: beleuchtete Empfaengerskala. Schieferblau als Grund, Amber fuer "auf Sendung",
   eine feste Farbe je Netz. Schriften lokal (keine externen Abrufe). */

@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(../fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(../fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Grund */
  --ink: #0f1c2b;          /* Skalenhintergrund, tiefes Schieferblau */
  --panel: #16273a;
  --panel-2: #1c3149;
  --line: #2a4360;
  --text: #e6edf4;
  --muted: #9fb2c6;
  --dim: #6f86a0;
  /* Signal */
  --dial: #ffb547;         /* Amber: Skala, auf Sendung */
  --dial-glow: rgba(255, 181, 71, .18);
  --link: #6cc6e6;         /* das bisherige Cyan von df6ax.de, etwas weicher */
  --ok: #4fd18b;
  --warn: #ffb547;
  --err: #ff7a6b;
  /* Netze */
  /* validiert (CVD/Kontrast) gegen --panel; Reihenfolge = Kategorienfolge */
  --n-bm: #3987e5;
  --n-fm: #d95926;
  --n-ds: #199e70;
  --n-el: #c98500;
  --n-ysf: #d55181;
  --n-dmrplus: #9085e9;
  --n-dmr: #8a9bb0;        /* "andere": neutral, nie als eigene Kategorie-Farbe */

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-s: 6px;
  --r-m: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #f3f6f9; --panel: #ffffff; --panel-2: #eaf0f6; --line: #cfdae6;
    --text: #13212f; --muted: #4a5d72; --dim: #6b7f94;
    --dial: #b86e00; --dial-glow: rgba(184, 110, 0, .12); --link: #0b6f93;
    --ok: #198754; --err: #c0392b;
    --n-bm: #2a78d6; --n-fm: #eb6834; --n-ds: #1baf7a; --n-el: #eda100;
    --n-ysf: #e87ba4; --n-dmrplus: #6250d6; --n-dmr: #6b7f94;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink: #f3f6f9; --panel: #ffffff; --panel-2: #eaf0f6; --line: #cfdae6;
  --text: #13212f; --muted: #4a5d72; --dim: #6b7f94;
  --dial: #b86e00; --dial-glow: rgba(184, 110, 0, .12); --link: #0b6f93;
  --ok: #198754; --err: #c0392b;
  --n-bm: #2a78d6; --n-fm: #eb6834; --n-ds: #1baf7a; --n-el: #eda100;
  --n-ysf: #e87ba4; --n-dmrplus: #6250d6; --n-dmr: #6b7f94;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.55 var(--font); font-feature-settings: "tnum" 0;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--dial); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.mono, .call, .qrg { font-family: var(--mono); font-feature-settings: "zero" 1; }
.call { font-weight: 600; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--dial); color: #000; padding: 8px 12px; z-index: 1000; }
.skip:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-plate {
  font: 700 1.15rem/1 var(--mono); letter-spacing: .08em; padding: 7px 10px 6px;
  border: 1.5px solid var(--dial); color: var(--dial); border-radius: 4px;
}
.brand-sub { font-size: .85rem; color: var(--muted); line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--r-s);
  font-weight: 500; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--dial); border-radius: 0; }
.theme-btn, .menu-btn {
  background: none; border: 1px solid var(--line); color: var(--muted); border-radius: var(--r-s);
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
}
.theme-btn:hover, .menu-btn:hover { color: var(--text); border-color: var(--muted); }
.menu-btn { display: none; }
@media (max-width: 1300px) {
  .brand-sub { display: none; }
  .site-head .wrap { gap: 14px; }
  .nav a { padding: 8px 9px; white-space: nowrap; }
}
@media (max-width: 1000px) {
  .brand-sub { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--dial); }
}

/* ---------- Skala (Signatur) ---------- */
.dial {
  position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--r-m);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dial) 7%, var(--panel)), var(--panel));
  overflow: hidden;
}
.dial-scale {
  position: relative; height: 34px; border-bottom: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, var(--dial) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--dial) 45%, transparent) 0 1px, transparent 1px 2%);
  background-size: 100% 14px, 100% 7px; background-repeat: no-repeat; background-position: 0 100%, 0 100%;
}
.dial-scale span {
  position: absolute; top: 4px; transform: translateX(-50%);
  font: 600 .72rem/1 var(--mono); color: var(--dial); opacity: .85;
}
.dial-needle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--err);
  box-shadow: 0 0 10px var(--err); left: 0; transition: left 1.2s cubic-bezier(.3,.7,.2,1);
}
.dial-rows { padding: 6px 0; }
.dial-row {
  display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px;
  padding: 7px 16px; min-height: 40px; border-left: 3px solid transparent;
}
.dial-row + .dial-row { border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
.dial-net { font: 600 .85rem/1.2 var(--font); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dial-net i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.dial-calls { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 22px; font-size: .95rem; }
.dial-calls .idle { color: var(--dim); font-size: .9rem; }
.dial-row.onair { border-left-color: var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); }
.onair-call { font-family: var(--mono); font-weight: 600; color: var(--text); display: inline-flex; gap: 6px; align-items: baseline; }
.onair-call small { font-family: var(--font); font-weight: 400; color: var(--muted); font-size: .82rem; }
.onair-call::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--err); align-self: center;
  animation: blink 1.1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-s);
  font: 600 1rem/1.2 var(--font); text-decoration: none; border: 1px solid var(--line);
  color: var(--text); background: var(--panel); cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--dial); border-color: var(--dial); color: #1a1205; }
.btn-primary:hover { filter: brightness(1.07); border-color: var(--dial); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem/1 var(--font);
  padding: 4px 8px 4px 7px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--c, var(--muted)) 60%, transparent);
  color: var(--text); background: color-mix(in srgb, var(--c, var(--muted)) 12%, transparent); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip.off { color: var(--muted); background: transparent; }
.chip.off::before { background: transparent; border: 1.5px solid var(--c, var(--muted)); }
.n-bm { --c: var(--n-bm); } .n-dmrplus { --c: var(--n-dmrplus); } .n-dmr { --c: var(--n-dmr); }
.n-ds { --c: var(--n-ds); } .n-ysf { --c: var(--n-ysf); } .n-fm { --c: var(--n-fm); } .n-el { --c: var(--n-el); }

input[type="search"], input[type="text"], select {
  font: 400 1rem/1.3 var(--font); color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; min-height: 44px;
}
input::placeholder { color: var(--dim); }
input:focus, select:focus { outline: 2px solid var(--dial); outline-offset: 0; border-color: transparent; }

.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th {
  text-align: left; font: 600 .8rem/1.2 var(--font); color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 8px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); vertical-align: top; }
.table tr:hover td { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
.table .num { text-align: right; font-family: var(--mono); font-size: .88rem; }
.table-scroll { overflow-x: auto; }

.empty { color: var(--muted); padding: 18px 0; }
.stale { color: var(--warn); font-size: .85rem; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { max-width: 60ch; margin: 0; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Fusszeile ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; gap: 24px 40px; flex-wrap: wrap; justify-content: space-between; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

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

/* ---------- Sprachumschalter (Flaggen) ---------- */
.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch a {
  display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line);
  border-radius: var(--r-s); opacity: .5; transition: opacity .15s, border-color .15s;
}
.lang-switch a:hover { opacity: 1; border-color: var(--muted); }
.lang-switch a[aria-current="true"] { opacity: 1; border-color: var(--dial); }
.lang-switch svg { width: 24px; height: 16px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
@media (max-width: 960px) { .lang-switch a { width: 34px; } }
