/* ==========================================================================
   LK0NOD – style.css
   Moderner technischer Dark Mode | CB-Funk Packet Radio Dashboard
   Struktur: 1.Tokens 2.Base 3.Utilities 4.Header 5.Hero 6.Cards
             7.Schnellzugriff 8.Content(News/Events/Karte) 9.Systeme
             10.Footer 11.Responsive 12.Motion/A11y
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg-0: #050b12;
  --bg-1: #08111c;
  --bg-2: #0b1825;
  --panel: #0d1a28;
  --panel-2: #102334;
  --panel-3: #14304a;
  --primary: #1597ff;
  --primary-dark: #0b6fd0;
  --light-blue: #3fb5ff;
  --accent: #ff9f1c;
  --online: #62d84e;
  --offline: #ff5d5d;
  --text: #ffffff;
  --muted: #b8c3cf;
  --muted-dim: #7e8fa1;
  --border: rgba(80, 170, 255, 0.25);
  --border-soft: rgba(80, 170, 255, 0.14);
  --glow: 0 0 24px rgba(21, 151, 255, 0.35);
  --glow-soft: 0 0 14px rgba(21, 151, 255, 0.22);
  --radius: 14px;
  --radius-sm: 9px;
  --container-standard: 1380px;
  --container-wide: 1480px;
  --container-reading: 960px;
  --page-padding: 24px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 15% -5%, rgba(21,151,255,.10), transparent 60%),
    radial-gradient(900px 480px at 90% 8%, rgba(63,181,255,.07), transparent 60%),
    linear-gradient(var(--bg-0), var(--bg-1) 45%, var(--bg-0));
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--light-blue); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; color: var(--muted); }
:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--text); padding: 12px 18px;
  border-radius: 8px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--text); }

/* Einziger Layout-Container (Header/Main/Footer/Hero): volle Hintergrundbreite,
   Inhalt zentriert auf derselben Achse. Kein paralleles .site-container-System. */
.wrap { width: min(var(--container-standard), calc(100% - 2 * var(--page-padding))); margin-inline: auto; }
/* Breite Funktionsseiten: nur Main wird wide; Header/Footer bleiben Standard. */
.is-wide main .wrap { width: min(var(--container-wide), calc(100% - 2 * var(--page-padding))); }
/* Hero und Breadcrumb bleiben auch auf Wide-Seiten auf Standardachse. */
.is-wide main .page-hero .wrap, .is-wide main nav.breadcrumb { width: min(var(--container-standard), calc(100% - 2 * var(--page-padding))); }
/* Optionale Wide-Sektion (z. B. QRV-Karte): nur dieser Abschnitt wird 1480px. */
.wrap-wide { width: min(var(--container-wide), calc(100% - 2 * var(--page-padding))); }
/* Lesemaß Fließtext (Code/Info/Hero ausgenommen, zentral statt pro Seite). */
main p:not(.cmd):not(.callout):not(.lede) { max-width: var(--container-reading); }
.section { padding: 46px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); display: flex; align-items: center; gap: 10px; }
.section-head .sub { color: var(--muted); margin: 6px 0 0; }
.link-more { white-space: nowrap; font-weight: 600; font-size: .95rem; }
.link-more:hover { text-shadow: var(--glow-soft); }

/* Buttons – min. 44px, Glow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
}
.btn-primary {
  background: linear-gradient(180deg, #2aa4ff, var(--primary) 55%, var(--primary-dark));
  color: var(--text); box-shadow: var(--glow-soft), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--glow); color: var(--text); }
.btn-ghost {
  background: rgba(21,151,255,.10); border-color: var(--border); color: var(--text);
}
.btn-ghost:hover { background: rgba(21,151,255,.20); border-color: rgba(80,170,255,.5); transform: translateY(-1px); }
.btn-accent { background: linear-gradient(180deg, #ffb03a, var(--accent)); color: #1a1000; }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .9rem; }

/* Status-Dot (sehr langsames Pulsieren) */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--online); display: inline-block; flex: none; box-shadow: 0 0 10px var(--online); animation: pulse 3.2s ease-in-out infinite; }
.dot.blue { background: var(--light-blue); box-shadow: 0 0 10px var(--light-blue); }
.dot.amber { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .55; transform: scale(.85);} }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(5,11,18,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; color: var(--text); flex: none; }
.brand-text strong { display: block; font-size: 1.35rem; letter-spacing: .12em; line-height: 1; }
.brand-text strong em { font-style: normal; background: linear-gradient(90deg, var(--light-blue), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--muted); margin-top: 4px; font-weight: 600; }

.main-nav { margin-left: 8px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 10px; color: #e8eef5;
  line-height: 1.25; border: 1px solid transparent; white-space: nowrap;
}
.main-nav a b { font-size: .96rem; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(21,151,255,.12); border-color: var(--border-soft); color: var(--text); }
/* Aktive Navigation: Orange-Unterstrich wie V2-Bildreferenz (zusätzlich zum Text, nicht nur Farbe). */
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(21,151,255,.08); border: 1px solid var(--border-soft); color: #dbe7f3; cursor: pointer;
}
.icon-btn:hover { background: rgba(21,151,255,.18); border-color: var(--border); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.btn-forum { white-space: nowrap; }
.nav-toggle { display: none; }

/* Such-Overlay */
.search-bar { display: none; border-top: 1px solid var(--border-soft); background: rgba(8,17,28,.98); padding: 14px 0; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 10px; }
.search-bar input {
  flex: 1; min-height: 44px; border-radius: 10px; padding: 0 16px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 1rem;
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; overflow: clip;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-1);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,11,18,.96) 22%, rgba(5,11,18,.78) 48%, rgba(5,11,18,.55) 72%, rgba(5,11,18,.72)),
    linear-gradient(0deg, var(--bg-0) 2%, transparent 32%, transparent 70%, rgba(5,11,18,.6));
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 30px;
  padding: 64px 0 44px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--light-blue); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; box-shadow: var(--glow-soft); }
.hero h1 { font-size: clamp(3rem, 7vw, 5.2rem); font-weight: 850; letter-spacing: .02em; margin: 0; }
.hero h1 .nod { background: linear-gradient(92deg, var(--light-blue), var(--primary) 60%, #7cd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(21,151,255,.45)); }
.hero .claim { font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--text); font-weight: 600; margin: 12px 0 10px; }
.hero .lede { max-width: 62ch; font-size: 1.02rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.hero-meta strong { color: var(--text); }

/* Statuspanel */
.status-panel {
  background: linear-gradient(180deg, rgba(16,35,52,.94), rgba(13,26,40,.96));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--glow-soft); overflow: hidden;
}
.status-panel header { padding: 16px 20px 12px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; }
.status-panel header h2 { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.status-node { padding: 14px 20px 6px; display: flex; align-items: center; justify-content: space-between; }
.status-node strong { font-size: 1.5rem; letter-spacing: .08em; }
.status-online { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--online); font-size: .92rem; }
.status-list { list-style: none; margin: 8px 0 0; padding: 0 20px; }
.status-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px dashed rgba(80,170,255,.18); font-size: .95rem;
}
.status-list .name { color: #e6eef7; font-weight: 600; }
.status-list .freq { display: block; font-family: var(--mono); font-size: .78rem; color: var(--muted-dim); font-weight: 400; }
.status-list .st { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--online); font-weight: 600; }
.status-panel footer { padding: 14px 20px 18px; }
.status-panel .btn { width: 100%; }
.status-note { display: block; text-align: center; font-size: .75rem; color: var(--muted-dim); margin-top: 8px; font-family: var(--mono); }
/* Tri-State: unbekannter Status (keine Inline-Styles per JS nötig) */
.status-panel.is-unknown .dot { background: var(--muted-dim); box-shadow: none; animation: none; }
.status-panel.is-unknown .st, .status-panel.is-unknown .status-online { color: var(--muted); }
/* Hero-Checkliste: 5-Sekunden-Verständnis */
.check-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check-list li { position: relative; padding-left: 26px; font-size: .93rem; color: #dbe7f3; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--online); font-weight: 800; text-shadow: 0 0 10px rgba(98,216,78,.6); }

/* ---------- 5. Live-Karten ---------- */
.live-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 26px; }
.live-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.live-card:hover { transform: translateY(-5px); border-color: rgba(80,170,255,.55); box-shadow: var(--glow-soft); }
.live-card figure { margin: 0; aspect-ratio: 16/9; overflow: hidden; background: #071120; border-bottom: 1px solid var(--border-soft); }
.live-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.live-card:hover figure img { transform: scale(1.04); }
.live-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.live-card h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; margin: 0; }
.live-card p { font-size: .9rem; margin: 0; flex: 1; }
.card-link { font-weight: 700; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.card-link:hover { text-shadow: var(--glow-soft); }

/* ---------- 6. Schnellzugriff ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick-card {
  display: block; padding: 18px 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,35,52,.7), rgba(13,26,40,.9));
  border: 1px solid var(--border-soft); color: var(--text);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.quick-card:hover { transform: translateY(-4px); border-color: rgba(80,170,255,.55); box-shadow: var(--glow-soft); color: var(--text); }
.quick-card .qicon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px;
  background: rgba(21,151,255,.14); border: 1px solid var(--border-soft);
}
.quick-card .qicon svg { width: 21px; height: 21px; stroke: var(--light-blue); }
.quick-card h3 { font-size: .98rem; margin: 0 0 4px; }
.quick-card p { font-size: .83rem; margin: 0; }

/* ---------- 7. Content 3-Spalten ---------- */
.content-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; align-items: start; }
.panel {
  background: linear-gradient(180deg, rgba(16,35,52,.55), rgba(13,26,40,.92));
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px; min-width: 0;
}
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel > header h2 { font-size: 1.15rem; margin: 0; }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-list.cols-2 { grid-template-columns: 1fr 1fr; }
.content-grid.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .news-list.cols-2 { grid-template-columns: 1fr; }
}
.news-list article { display: grid; grid-template-columns: 92px 1fr 26px; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(8,17,28,.5); transition: border-color .18s, transform .18s; }
.news-list article:hover { border-color: rgba(80,170,255,.5); transform: translateX(2px); }
.news-list img { width: 92px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-soft); }
.news-meta { font-size: .75rem; color: var(--muted-dim); display: flex; gap: 8px; align-items: center; margin-bottom: 3px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(21,151,255,.16); border: 1px solid var(--border); color: var(--light-blue); }
.badge.community { background: rgba(255,159,28,.14); border-color: rgba(255,159,28,.4); color: var(--accent); }
.badge.technik { background: rgba(98,216,78,.12); border-color: rgba(98,216,78,.35); color: var(--online); }
.news-list h3 { font-size: .99rem; margin: 0 0 3px; }
.news-list h3 a { color: var(--text); }
.news-list p { font-size: .85rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-arrow { color: var(--muted-dim); font-size: 1.3rem; }

/* Forum und Funk-News als gleich hohe, gut lesbare Karten. */
:is(.home-feed, .news-hub__feed) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
:is(.home-feed, .news-hub__feed) > li { min-width: 0; }
:is(.home-feed, .news-hub__feed) > li.panel { grid-column: 1 / -1; }
:is(.home-feed, .news-hub__feed) article.feed-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  height: 100%; padding: 18px; min-width: 0;
}
:is(.home-feed, .news-hub__feed) .feed-card__body { min-width: 0; }
:is(.home-feed, .news-hub__feed) .news-meta { flex-wrap: wrap; gap: 7px 10px; margin-bottom: 10px; line-height: 1.4; }
:is(.home-feed, .news-hub__feed) .news-meta time { color: var(--muted); }
:is(.home-feed, .news-hub__feed) h3 { font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.4; margin: 0 0 9px; overflow-wrap: anywhere; }
:is(.home-feed, .news-hub__feed) .feed-card__summary {
  max-width: 65ch; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:is(.home-feed, .news-hub__feed) .feed-card__footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-soft);
  font-size: .82rem; color: var(--muted); overflow-wrap: anywhere;
}
:is(.home-feed, .news-hub__feed) .feed-card__footer a { color: var(--light-blue); font-weight: 700; }
:is(.home-feed, .news-hub__feed) .feed-card__source { min-width: 0; }

/* News-Hub: Projektmeldungen mit Bild, Funk-News darunter als kompaktes Raster. */
.news-hub__hero { grid-template-columns: minmax(0, 1fr); }
.news-hub__hero > div { max-width: 78ch; }
:is(.news-hub__toolbar, .event-filter) {
  margin: 0 0 20px; padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid rgba(80,170,255,.28); border-radius: var(--radius);
  background: radial-gradient(circle at top left, rgba(21,151,255,.14), transparent 42%),
              linear-gradient(135deg, rgba(16,35,52,.94), rgba(8,19,31,.94));
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
:is(.news-hub__toolbar-head, .event-filter__head) { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
:is(.news-hub__filter-kicker, .event-filter__kicker) { display: block; margin-bottom: 4px; color: var(--light-blue); font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
:is(.news-hub__toolbar, .event-filter) h3 { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.3; }
:is(.news-hub__count, .event-filter__count) {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  margin: 0; padding: 8px 12px; border: 1px solid var(--border-soft); border-radius: 999px;
  background: rgba(21,151,255,.1); color: var(--text); font-size: .82rem; font-weight: 700;
}
.news-hub__count::before, .event-filter__count::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--light-blue); box-shadow: 0 0 0 3px rgba(21,151,255,.13); }
.news-hub__filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 14px; align-items: end; }
.event-filter__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 230px) minmax(190px, 260px); gap: 14px; align-items: end; }
:is(.news-hub__field, .event-filter__field) { min-width: 0; }
:is(.news-hub__field, .event-filter__field) label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .8rem; font-weight: 700; }
:is(.news-hub__field, .event-filter__field) input[type="search"], :is(.news-hub__field, .event-filter__field) select {
  display: block; width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid rgba(80,170,255,.3); border-radius: 10px;
  background: #091625; color: var(--text); color-scheme: dark;
  font: inherit; font-size: .92rem;
}
:is(.news-hub__field, .event-filter__field) input::placeholder { color: var(--muted-dim); opacity: 1; }
:is(.news-hub__field, .event-filter__field) input:focus-visible, :is(.news-hub__field, .event-filter__field) select:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 2px; border-color: var(--light-blue); }
.news-hub__editorial { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.news-hub__editorial > li { min-width: 0; }
.news-hub__editorial > li.panel { grid-column: 1 / -1; }
.news-list.news-hub__editorial article {
  display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; gap: 12px;
  height: 100%; padding: 14px; min-width: 0;
}
.news-hub__editorial article:hover { transform: translateY(-2px); }
.news-list.news-hub__editorial img { width: 68px; height: 68px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--border-soft); border-radius: 9px; background: rgba(21,151,255,.08); }
.news-hub__editorial article > div { min-width: 0; padding: 0; }
.news-hub__editorial .news-meta { flex-wrap: wrap; gap: 5px 8px; margin-bottom: 7px; line-height: 1.35; }
.news-hub__editorial .news-meta time { color: var(--muted); }
.news-hub__editorial h3 { font-size: .97rem; line-height: 1.35; margin-bottom: 6px; overflow-wrap: anywhere; }
.news-hub__editorial p { font-size: .82rem; line-height: 1.45; color: var(--muted); max-width: 60ch; }
.news-hub__editorial .news-arrow { display: none; }
.news-hub__feed { margin-top: 20px; }
.news-hub__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media (max-width: 1000px) {
  .news-hub__editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-filter__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-filter__field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :is(.home-feed, .news-hub__feed), .news-hub__editorial { grid-template-columns: minmax(0, 1fr); }
  :is(.home-feed, .news-hub__feed) article.feed-card { padding: 16px; }
  .news-hub__filters, .event-filter__fields { grid-template-columns: minmax(0, 1fr); }
  .event-filter__field:first-child { grid-column: auto; }
  .news-hub__toolbar-head, .event-filter__head { align-items: flex-start; flex-wrap: wrap; }
  .events-list-section .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Events */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(8,17,28,.5); }
.event:hover { border-color: rgba(80,170,255,.5); }
.date { text-align: center; background: rgba(21,151,255,.1); border: 1px solid var(--border-soft); border-radius: 10px; padding: 8px 4px; align-self: start; }
.date b { display: block; font-size: 1.35rem; line-height: 1; }
.date span { font-size: .7rem; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.date small { display: block; font-size: .68rem; color: var(--light-blue); font-weight: 800; letter-spacing: .08em; }
.event h3 { font-size: .99rem; margin: 0 0 4px; }
.event h3 a { color: var(--text); }
.event p { font-size: .84rem; margin: 0 0 8px; }
.event .freq-chip { font-family: var(--mono); font-size: .76rem; color: var(--light-blue); }

/* QRV Karte */
.qrv-map { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-soft); background: #071120; }
.qrv-map img { width: 100%; height: 300px; object-fit: cover; }
.qrv-legend { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.qrv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }

/* FAQ (Sektion, passend zum FAQPage-Schema) */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.faq-item { border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 16px; background: rgba(8,17,28,.5); }
.faq-item summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.faq-item summary:hover { color: var(--light-blue); }
.faq-item p { margin: 8px 0 0; font-size: .92rem; }
/* Ehrlichkeitshinweis QRV-Demo */
.qrv-note { font-size: .8rem; color: var(--muted-dim); margin: 10px 0 0; font-family: var(--mono); }
/* Legacy: kompaktes FAQ (wiederverwendbar) */
.faq { margin-top: 18px; }
.faq details { border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: rgba(8,17,28,.5); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary:hover { color: var(--light-blue); }
.faq p { margin: 8px 0 0; font-size: .92rem; }

/* ---------- 8. Systeme + Footer ---------- */
.systems { margin-top: 44px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: rgba(8,17,28,.6); }
.systems-inner { display: flex; align-items: center; gap: 26px; padding: 20px 0; flex-wrap: wrap; }
.systems-inner h2 { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sys-logos { display: flex; gap: 10px; flex-wrap: wrap; }
.sys-logos span { font-family: var(--mono); font-weight: 700; font-size: .85rem; padding: 8px 14px; border: 1px solid var(--border-soft); border-radius: 8px; background: rgba(21,151,255,.06); color: #cfe3f7; }
.social { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; row-gap: 10px; }
.social small { color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border-soft); background: rgba(21,151,255,.07); color: #dbe7f3; }
.social a:hover { border-color: var(--border); box-shadow: var(--glow-soft); color: var(--text); }
.social svg { width: 18px; height: 18px; }

.site-footer { padding: 26px 0 34px; border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-links { display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.footer-inner nav a { color: var(--muted); font-size: .92rem; }
.footer-inner nav a:hover { color: var(--text); }
.copy { color: var(--muted-dim); font-size: .85rem; border-top: 1px solid var(--border-soft); padding-top: 14px; margin: 0; width: 100%; max-width: 560px; }
.to-top { margin-left: 0; }

/* Breadcrumb */
.breadcrumb { font-size: .82rem; color: var(--muted-dim); padding: 14px 0 0; }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-block { width: 100%; }
.legend-node { background: var(--accent); }
.legend-digi { background: var(--light-blue); }
.legend-active { background: var(--online); }
.hero-lede strong { color: var(--text); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--muted-dim); }

/* ---------- 9. Responsive ---------- */
@media (max-width: 1500px) {
  /* Header entlasten: 7 Navpunkte + Aktionen passen sonst nicht neben .wrap */
  .main-nav a { padding: 10px 10px; }
  .main-nav a b { font-size: .88rem; }
  .main-nav a i { font-size: .68rem; }
  .btn-forum span { display: none; }
  .header-inner { gap: 14px; }
}
@media (max-width: 1320px) {
  /* Ab hier passt die Desktop-Nav nicht mehr ohne Überdeckung: Hamburger. */
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
}
@media (max-width: 1280px) {
  .live-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .content-grid .panel:last-child { grid-column: 1 / -1; }
  .qrv-map img { height: 260px; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; padding: 44px 0 34px; }
}
@media (max-width: 860px) {
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .content-grid.cols-2 { grid-template-columns: 1fr; }
  .section { padding: 34px 0 4px; }
}
@media (max-width: 560px) {
  :root { --page-padding: 16px; }
  .header-inner { gap: 6px; }
  .brand-text strong { font-size: 1.05rem; letter-spacing: .04em; }
  .brand-text small { display: none; }
  .header-actions { gap: 4px; }
  .icon-btn { width: 36px; height: 36px; }
  .btn-forum { min-height: 36px; padding: 7px 9px; }
  .live-grid, .quick-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3rem; }
  .news-list article { grid-template-columns: 72px minmax(0, 1fr) 20px; }
  .news-list article > div { min-width: 0; }
  .news-list h3 { overflow-wrap: anywhere; }
  .news-list img { width: 72px; height: 56px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-forum { padding: 12px 14px; }
  .social { margin-left: 0; }
}

/* Mobile Nav */
.mobile-nav { display: none; border-top: 1px solid var(--border-soft); background: rgba(8,17,28,.98); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 0 16px; }
.mobile-nav a { display: block; padding: 12px 6px; border-bottom: 1px solid rgba(80,170,255,.1); color: var(--text); }
.mobile-nav a small { display: block; color: var(--muted-dim); font-size: .78rem; }

/* ---------- 10. Unterseiten (Einsteiger u. a.) ---------- */
/* Kompakter Seiten-Hero, wiederverwendet Panel-/Button-Stil */
.page-hero { border-bottom: 1px solid var(--border-soft); background: linear-gradient(180deg, #0a1727, var(--bg-1)); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; padding: 44px 0 34px; align-items: start; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero .sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text); font-weight: 600; margin: 10px 0; }
/* Inhaltsverzeichnis als Chips */
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border-soft); background: rgba(21,151,255,.07); color: #dbe7f3; font-size: .86rem; font-weight: 600; }
.toc a:hover { border-color: var(--border); color: var(--text); }
.toc a[aria-current="page"] { border-color: var(--border); color: var(--text); background: rgba(21,151,255,.16); }
/* Signalfluss (rein HTML/CSS, kein Scroll-Container nötig) */
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { padding: 10px 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(8,17,28,.55); font-size: .92rem; }
.flow li + li { margin-top: 20px; position: relative; }
.flow li + li::before { content: "↓"; position: absolute; top: -21px; left: 28px; color: var(--light-blue); font-weight: 800; }
.flow b { color: var(--text); display: block; }
.flow small { color: var(--muted-dim); }
/* Nummerierte Schritte */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 56px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(8,17,28,.5); font-size: .93rem; }
.steps li::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(21,151,255,.16); border: 1px solid var(--border); color: var(--light-blue); font-weight: 800; }
.steps b { color: var(--text); }
/* Vergleichstabelle, mobil gestapelt (kein Scrollen nötig) */
.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cmp th, .cmp td { border: 1px solid var(--border-soft); padding: 10px 12px; text-align: left; vertical-align: top; }
.cmp thead th { background: rgba(21,151,255,.12); color: var(--text); }
.cmp tbody th { color: var(--light-blue); }
/* MHeard: nur die Via-Spalte ausblenden, nie die Empfangszeit. */
.cmp.no-via th:nth-child(5), .cmp.no-via td:nth-child(5) { display: none; }
.mheard-time { display: block; font-variant-numeric: tabular-nums; }
.mheard-exact, .mheard-age { white-space: nowrap; }
.mheard-age { color: var(--muted); font-size: .78rem; }
/* MHeard-Toolbar: Filter, Suche, Sortierung */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar input[type="search"], .toolbar select { min-height: 44px; border-radius: 10px; padding: 0 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: .95rem; }
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
/* Button-Reihe (Filter, Aktionen) */
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* APRS-Karte aus der bestehenden Kartenquelle, im V2-Layout eingefasst. */
.aprs-map-section { width: min(var(--container-wide), calc(100% - 2 * var(--page-padding))); }
main[data-aprs-page] { display: flex; flex-direction: column; }
main[data-aprs-page] > .breadcrumb { order: 0; }
main[data-aprs-page] > .aprs-map-section { order: 1; padding-top: 18px; }
main[data-aprs-page] > .page-hero { order: 2; margin-top: 30px; }
main[data-aprs-page] > :not(.breadcrumb):not(.aprs-map-section):not(.page-hero) { order: 3; }
.aprs-map-frame { overflow: hidden; border: 1px solid var(--border-soft); border-radius: 14px 14px 0 0; background: #0f0f1a; }
.aprs-map-frame iframe { display: block; width: 100%; height: 620px; border: 0; }
.aprs-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--border-soft); border-top: 0; border-radius: 0 0 14px 14px; background: var(--bg-2); font-size: .85rem; }
.aprs-map-footer a { margin-left: auto; font-weight: 700; }
.aprs-map-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); }
.aprs-map-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.aprs-line { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.aprs-line-stern { background: #ff0000; }
.aprs-line-mesh { background: #a855f7; }
.aprs-line-mheard { background: #00e600; }
.aprs-line-digi { background: #ffa726; }
@media (max-width: 640px) { .aprs-map-frame iframe { height: 620px; } .aprs-map-footer { padding: 10px 12px; } .aprs-map-footer a { margin-left: 0; } }
/* APRS-Stationsprofil: V1-Reihenfolge mit Kennzahlen, Karte, Details und Verlauf. */
.aprs-profile-hero .wrap { max-width: 880px; padding: 48px 0 40px; text-align: center; }
.aprs-profile-hero h1 { margin: 7px 0 14px; }
.aprs-profile-hero h1 span { color: var(--light-blue); overflow-wrap: anywhere; }
.aprs-profile-hero .sub, .aprs-profile-hero .qrv-note { margin-inline: auto; }
.aprs-profile-badge { display: inline-flex; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--border); background: rgba(21,151,255,.12); color: var(--light-blue); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.aprs-profile-section { padding-top: 30px; }
.aprs-profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.aprs-profile-stat, .aprs-profile-card { min-width: 0; border: 1px solid var(--border-soft); border-radius: 14px; background: linear-gradient(160deg, var(--panel), var(--bg-2)); }
.aprs-profile-stat { display: flex; flex-direction: column; gap: 5px; min-height: 122px; padding: 17px 18px; }
.aprs-profile-stat-label { color: var(--muted-dim); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.aprs-profile-stat-value { color: var(--text); font-size: clamp(1rem, 1.7vw, 1.35rem); line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.aprs-stat-blue .aprs-profile-stat-value { color: var(--light-blue); }
.aprs-stat-pink .aprs-profile-stat-value { color: #f486be; }
.aprs-stat-green .aprs-profile-stat-value { color: var(--online); }
.aprs-stat-amber .aprs-profile-stat-value { color: var(--accent); }
.aprs-profile-stat-hint { margin-top: auto; color: var(--muted-dim); font-size: .76rem; overflow-wrap: anywhere; }
.aprs-profile-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.aprs-profile-card { padding: 20px; }
.aprs-profile-card-title { margin: 0 0 16px; color: var(--text); font-size: 1rem; font-weight: 800; }
.aprs-profile-map { height: 310px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 10px; background: #071120; }
.aprs-profile-map-error, .aprs-profile-empty { display: grid; place-items: center; min-height: 180px; padding: 20px; text-align: center; color: var(--muted); }
.aprs-profile-map-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; color: var(--muted-dim); font-size: .76rem; font-variant-numeric: tabular-nums; }
.aprs-profile-map-meta a { font-weight: 700; }
.aprs-profile-beacon { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(21,151,255,.08); }
.aprs-profile-beacon strong { display: block; margin-bottom: 5px; font-size: .8rem; }
.aprs-profile-beacon p { margin: 0; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.aprs-profile-details { margin: 0; }
.aprs-profile-detail { display: grid; grid-template-columns: minmax(100px, .42fr) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.aprs-profile-detail dt { color: var(--muted-dim); font-size: .83rem; }
.aprs-profile-detail dd { margin: 0; color: var(--text); font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.aprs-profile-source-note { margin: 16px 0 0; color: var(--muted-dim); font-size: .78rem; }
.aprs-profile-history { margin-top: 16px; }
.aprs-profile-history p { max-width: 640px; }
.aprs-profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.aprs-profile-links .btn { font-size: .88rem; text-align: center; }
.aprs-profile-intro, .aprs-profile-muted { max-width: 72ch; margin: 0 0 14px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.aprs-profile-connections { display: grid; gap: 9px; }
.aprs-profile-connection { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 12px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(21,151,255,.06); }
.aprs-profile-connection-main { display: grid; gap: 3px; min-width: 0; }
.aprs-profile-connection-name { font-size: .9rem; font-weight: 800; overflow-wrap: anywhere; }
.aprs-profile-connection-time { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.aprs-profile-connection-info { color: var(--muted-dim); font-size: .75rem; overflow-wrap: anywhere; }
.aprs-profile-connection-count { flex: none; padding: 5px 8px; border-radius: 7px; background: rgba(21,151,255,.13); color: var(--light-blue); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.aprs-profile-technical { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.aprs-profile-activity { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; gap: 4px; height: 92px; padding: 4px 0; }
.aprs-profile-activity-bar { display: block; min-width: 0; border-radius: 4px 4px 1px 1px; background: var(--border); }
.aprs-profile-activity-bar.has-data { background: linear-gradient(0deg, var(--primary), var(--light-blue)); }
.aprs-profile-activity-ends { display: flex; justify-content: space-between; color: var(--muted-dim); font-size: .72rem; font-variant-numeric: tabular-nums; }
.aprs-profile-table-wrap { overflow-x: auto; }
.aprs-profile-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.aprs-profile-table th { text-align: left; color: var(--muted-dim); font-size: .73rem; text-transform: uppercase; letter-spacing: .06em; }
.aprs-profile-table th, .aprs-profile-table td { padding: 10px 9px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.aprs-profile-table th:first-child { width: 185px; }
.aprs-profile-table th:nth-child(2) { width: 155px; }
.aprs-profile-table td { font-size: .82rem; overflow-wrap: anywhere; }
.aprs-profile-table tr[hidden] { display: none; }
.aprs-profile-table-time span, .aprs-profile-table-time small, .aprs-profile-port-label { display: block; font-variant-numeric: tabular-nums; }
.aprs-profile-table small { margin-top: 2px; color: var(--muted-dim); font-size: .72rem; }
.aprs-profile-port { display: inline-block; padding: 2px 7px; border-radius: 5px; color: var(--light-blue); background: rgba(21,151,255,.12); font-weight: 800; }
.aprs-profile-table-info { max-width: 0; }
.aprs-profile-table-toggle { margin-top: 14px; }
.aprs-profile-fallback { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 16px 0 0; color: var(--muted); font-size: .85rem; }
.aprs-profile-nearby { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.aprs-profile-nearby li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: .84rem; }
.aprs-profile-nearby li span { flex: none; color: var(--muted-dim); font-variant-numeric: tabular-nums; }
.aprs-profile-badge-code { display: block; max-width: 100%; margin: 0 0 16px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 8px; color: var(--muted); background: var(--bg-2); font-size: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.aprs-profile-empty-card { text-align: center; padding: 42px 20px; }
.aprs-profile-empty-card p { margin-inline: auto; }
@media (max-width: 900px) { .aprs-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .aprs-profile-columns { grid-template-columns: 1fr; } .aprs-profile-hero .wrap { padding: 36px 0 30px; } }
@media (max-width: 440px) { .aprs-profile-stats { gap: 8px; } .aprs-profile-stat { padding: 13px; min-height: 116px; } .aprs-profile-card { padding: 15px; } .aprs-profile-map { height: 260px; } .aprs-profile-detail { grid-template-columns: 90px minmax(0, 1fr); gap: 8px; } }
@media (max-width: 720px) { .aprs-profile-technical, .aprs-profile-nearby { grid-template-columns: 1fr; } .aprs-profile-table, .aprs-profile-table tbody { display: block; } .aprs-profile-table thead { display: none; } .aprs-profile-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 9px; } .aprs-profile-table td { display: block; max-width: none; padding: 0; border: 0; } .aprs-profile-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted-dim); font-size: .68rem; text-transform: uppercase; } .aprs-profile-table-info { grid-column: 1 / -1; } .aprs-profile-links .btn { flex: 1 1 180px; } }
@media (max-width: 340px) { .aprs-profile-stats { grid-template-columns: 1fr; } }
/* QRV-Anwendung: erst nach Klick geladen, große bedienbare Fläche */
.qrv-app { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-soft); background: #071120; }
.qrv-start { padding: 34px 0 0; text-align: center; display: grid; gap: 12px; justify-items: center; }
.qrv-start > p { margin-inline: 22px; }
.qrv-frame { width: 100%; height: 68vh; min-height: 420px; border: 0; display: block; background: #071120; }
.qrv-frame[hidden] { display: none; }
@media (max-width: 640px) { .qrv-frame { height: 58vh; min-height: 380px; } }
/* LK0NOD-Zeilen in Tabellen dezent hervorheben (Text trägt die Info) */
tr[data-lk] th, tr[data-lk] td:first-of-type { color: var(--light-blue); }
/* Druckansicht: Navigation und Dekor aus, Tabelle lesbar */
@media print {
  .site-header, .site-footer, .systems, .hero-cta, .toolbar, .btn-row, .to-top, .skip-link, .page-hero, .no-print { display: none !important; }
  body { background: var(--text); color: #000; }
  .panel, .cmp th, .cmp td { background: var(--text) !important; color: #000 !important; border-color: #999 !important; }
  .cmp thead th { background: #eee !important; color: #000 !important; }
  .calc-out div, .dev-card, .pin-card, .result-card { background: var(--text) !important; color: #000 !important; border-color: #999 !important; }
  .calc-out strong, .dev-card h3, .pin-card h3, .result-card h3 { color: #000 !important; }
  a { color: #000; }
  .page-hero { border: none; }
}
/* Raster-Helfer */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.need-card { padding: 18px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: linear-gradient(180deg, rgba(16,35,52,.7), rgba(13,26,40,.9)); }
.need-card h3 { font-size: 1.02rem; margin: 0 0 6px; display: flex; gap: 10px; align-items: center; }
.need-card .n { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(21,151,255,.16); border: 1px solid var(--border); color: var(--light-blue); font-weight: 800; }
.need-card p { font-size: .89rem; margin: 0 0 8px; }
.need-card a { font-weight: 700; font-size: .9rem; }
/* Downloads: lange Dateinamen/URLs duerfen das Layout (auch 390px) nicht sprengen */
[data-downloads] .need-card { min-width: 0; }
[data-downloads] .need-card h3,
[data-downloads] .need-card p,
[data-downloads] .need-card li,
[data-downloads] .need-card code { overflow-wrap: anywhere; word-break: break-word; }
/* Glossar */
.gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin: 0; }
.gloss div { border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 14px; background: rgba(8,17,28,.5); }
.gloss dt { font-weight: 800; color: var(--text); }
.gloss dd { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
/* Hinweisbox */
.callout { border: 1px solid rgba(255,159,28,.4); background: rgba(255,159,28,.07); border-radius: 10px; padding: 12px 16px; font-size: .9rem; }
.callout.info { border-color: var(--border); background: rgba(21,151,255,.07); }
/* Kleine Helfer für Unterseiten */
.h-compact { font-size: 1.05rem; margin: 0; }
.center { text-align: center; }
.center .hero-cta { justify-content: center; }
.check-col { flex-direction: column; align-items: flex-start; }
.w { color: var(--text); }
.mt12 { margin-top: 12px; }
.mt14 { margin-top: 14px; }
.mb18 { margin-bottom: 18px; }
.leadline { font-size: 1.05rem; color: var(--text); }
.section-head.tight { margin-bottom: 10px; }
/* Suche (eigene Seite, wiederverwendet Panel/Button-Stil) */
.narrow-hero { max-width: 760px; padding: 44px 0 34px; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 200px; min-height: 44px; border-radius: 10px; padding: 0 16px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 1rem; }
/* Terminal-/Befehlsbox (kopierbar, kein zusätzliches JS) */
.cmd { font-family: var(--mono); font-size: 1rem; background: #04090f; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; color: var(--online); box-shadow: inset 0 0 24px rgba(21,151,255,.08); user-select: all; overflow-x: auto; white-space: nowrap; }
code { font-family: var(--mono); font-size: .88em; background: rgba(21,151,255,.12); border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 6px; color: #cfe8ff; }
/* Frame-Leiste (Protokoll-Schema, bricht mobil um) */
.framebar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.framebar li { flex: 1 1 100px; text-align: center; font-family: var(--mono); font-size: .8rem; padding: 10px 6px; border-radius: 8px; background: rgba(21,151,255,.1); border: 1px solid var(--border); color: #dbe7f3; }
.framebar li b { display: block; color: var(--text); font-size: .85rem; }
/* Statusseite: Pills + Grid (Farben aus Tokens, Text trägt die Info) */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; font-size: .85rem; font-weight: 700; border: 1px solid var(--border-soft); background: rgba(8,17,28,.6); color: var(--muted); }
.pill .dot { animation: none; }
.pill.big { font-size: 1rem; padding: 10px 18px; }
.pill.is-online { color: var(--online); border-color: rgba(98,216,78,.4); }
.pill.is-online .dot { background: var(--online); box-shadow: 0 0 10px var(--online); }
.pill.is-degraded { color: var(--accent); border-color: rgba(255,159,28,.4); }
.pill.is-degraded .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill.is-offline { color: var(--offline); border-color: rgba(255,93,93,.4); }
.pill.is-offline .dot { background: var(--offline); box-shadow: 0 0 10px var(--offline); }
.pill.is-maintenance { color: var(--light-blue); border-color: var(--border); }
.pill.is-maintenance .dot { background: var(--light-blue); box-shadow: 0 0 10px var(--light-blue); }
.pill.is-unknown { color: var(--muted); }
.pill.is-unknown .dot { background: var(--muted-dim); box-shadow: none; }
.status-card { display: flex; flex-direction: column; gap: 8px; }
.status-card h3 { margin: 0; font-size: 1.02rem; }
.status-card p { font-size: .88rem; margin: 0; }
.status-card .plan { font-size: .8rem; color: var(--muted-dim); font-family: var(--mono); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 14px 0 0; padding: 0; font-size: .86rem; color: var(--muted); }
.notices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.media-row figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); }
.media-row figcaption { font-size: .78rem; color: var(--muted-dim); padding: 8px 12px; font-family: var(--mono); }
@media (max-width: 900px) {
  .page-hero-grid, .grid-2, .media-row { grid-template-columns: 1fr; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp tr { border: 1px solid var(--border-soft); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
  .cmp td { border: none; border-top: 1px solid rgba(80,170,255,.12); display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
  .cmp td:first-child { border-top: none; background: rgba(21,151,255,.08); }
  .cmp td::before { content: attr(data-th); font-weight: 700; color: var(--light-blue); font-size: .8rem; }
  .cmp[data-mheard-table] tbody th { display: block; width: 100%; border: 0; background: rgba(21,151,255,.08); }
}

/* ---------- 12. Tools & Datenbanken (zentral; ersetzt duplizierte Seiten-Styles) ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-grid label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--text); }
.calc-grid input[type="number"], .calc-grid input[type="text"], .calc-grid input[type="search"], .calc-grid select { min-height: 44px; border-radius: 10px; padding: 0 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 1rem; width: 100%; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.calc-out div { border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 14px; background: rgba(8,17,28,.5); }
.calc-out small { display: block; font-size: .76rem; color: var(--muted-dim); }
.calc-out strong { font-size: 1.25rem; color: var(--text); font-family: var(--mono); }
.calc-out strong.formula { font-size: .95rem; }
.calc-note { font-size: .82rem; color: var(--muted-dim); margin-top: 10px; }
.calc-err { color: var(--offline); font-size: .88rem; font-weight: 700; margin-top: 10px; }
.table-scroll { overflow-x: auto; }
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mode-tabs label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border-soft); background: rgba(21,151,255,.07); color: #dbe7f3; font-size: .84rem; font-weight: 700; cursor: pointer; }
.mode-tabs input { accent-color: var(--light-blue); width: 18px; height: 18px; }
.mode-tabs label:has(input:checked) { border-color: var(--light-blue); background: rgba(21,151,255,.2); color: var(--text); }
.mode-panel { display: none; }
.mode-panel.active { display: block; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-soft); background: rgba(21,151,255,.07); color: #dbe7f3; font-size: .84rem; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--border); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--light-blue); color: var(--text); background: rgba(21,151,255,.18); }
.src-flag { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 12px; border: 1px solid var(--border); color: var(--light-blue); white-space: nowrap; }
.src-flag.calc { color: var(--accent); border-color: rgba(255,159,28,.4); }
.src-flag.na { color: var(--muted-dim); }
.status-flag { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 12px; border: 1px solid rgba(255,159,28,.4); color: var(--accent); white-space: nowrap; }
.status-flag.ok { border-color: rgba(98,216,78,.35); color: var(--online); }
.swr-svg { width: 100%; height: auto; display: block; }
.swr-svg text { font-family: var(--mono); }
/* Einzelnes Eingabefeld ausserhalb von Grids (gleiche Optik wie Grid-Inputs) */
.field { min-height: 44px; border-radius: 10px; padding: 0 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 1rem; width: 100%; }
.field.mono { font-family: var(--mono); }
.flex-row { display: flex; gap: 8px; flex-wrap: wrap; }
.flush { margin: 0; }
/* Formularraster (Labels über Feldern, 44px-Ziele aus .field/.btn) */
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--text); }
.form-grid input, .form-grid select, .form-grid textarea { min-height: 44px; border-radius: 10px; padding: 8px 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 1rem; width: 100%; }
.form-grid fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form-grid fieldset input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--light-blue); }
fieldset.plain { border: none; margin: 0; padding: 0; }
.wrap-words { overflow-wrap: anywhere; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

/* Suchtreffer enthalten kein Vorschaubild; die normale News-Spalte bleibt hier frei. */
#results article { grid-template-columns: minmax(0, 1fr) 26px; }
#profile-results article { grid-template-columns: minmax(0, 1fr); }
#results article > div, #profile-results article > div { min-width: 0; }
#results .news-meta { flex-wrap: wrap; }

/* ---------- 11. Reduced Motion / Print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
