/* DL2YMR – „Cinematic RF“
   Dunkel, filmisch, präzise. Keine externen Dienste: Schriften liegen (falls vorhanden) unter /assets/fonts/. */
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/SpaceGrotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --carbon: #090B0E;
  --graphite: #171C23;
  --graphite-2: #1E252E;
  --signal: #FF7020;
  --white: #E9EDF2;
  --rf: #38BDF8;
  --muted: #8B95A3;
  --line: rgba(var(--fg-rgb), .09);
  --line-strong: rgba(var(--fg-rgb), .18);
  --ok: #4ADE80;
  --fg-rgb: 233, 237, 242;
  --bg-rgb: 9, 11, 14;
  --surface-rgb: 23, 28, 35;
  --text-2: #B9C2CE;
  --text-3: #AEB7C3;
  --text-4: #D3DAE3;
  --dim: #7C8796;
  --dim-2: #59626E;
  --knob: #2B333D;
  --warn-text: #FCA5A5;
  --on-signal: #090B0E;
  --signal-ink: #FF7020;
  --callsign-a: #FFFFFF; --callsign-b: #E9EDF2; --callsign-c: rgba(233, 237, 242, .35);
  --scope-grid: rgba(233, 237, 242, .07);
  --scope-trace: #38BDF8;
  --scope-fill: 56, 189, 248;
  --radius: 14px;
  --wrap: 1240px;
  --read: 740px;
  --sans: "Space Grotesk", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* Helle Ansicht (Schalter oben rechts) */
:root[data-theme="light"] {
  --carbon: #F3F5F7;
  --graphite: #FFFFFF;
  --graphite-2: #E9EDF1;
  --white: #0E1217;
  --rf: #0369A1;
  --muted: #5C6675;
  --line: rgba(14, 18, 23, .1);
  --line-strong: rgba(14, 18, 23, .2);
  --ok: #15803D;
  --fg-rgb: 14, 18, 23;
  --bg-rgb: 243, 245, 247;
  --surface-rgb: 255, 255, 255;
  --text-2: #3B4552;
  --text-3: #4A5563;
  --text-4: #28303A;
  --dim: #6B7583;
  --dim-2: #8A94A2;
  --knob: #CBD2DA;
  --warn-text: #B91C1C;
  --signal-ink: #C2410C;
  --callsign-a: #0E1217; --callsign-b: #1E2630; --callsign-c: rgba(14, 18, 23, .45);
  --scope-grid: rgba(14, 18, 23, .08);
  --scope-trace: #0284C7;
  --scope-fill: 2, 132, 199;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--carbon); color: var(--white);
  font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--signal); color: var(--on-signal); }
a { color: var(--rf); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--signal-ink); }
img { max-width: 100%; height: auto; border-radius: 8px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 2em 0 .7em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 .5em; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); }
.accent { color: var(--signal-ink); }
.rf { color: var(--rf); }

/* Mono-Labels wie auf einer Gerätefront */
.kicker, .tag, .label, .meta, .count, .year, .postlist time, .nav a, .chip, .btn, .stat span, .site-footer {
  font-family: var(--mono);
}
.kicker, .label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.kicker::before, .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--signal-ink); text-transform: uppercase; letter-spacing: .14em; }
.tag a { color: inherit; text-decoration: none; }
.meta { color: var(--muted); font-size: .8rem; letter-spacing: .02em; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 660px; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; text-decoration: none; color: var(--white); }
.brand::before { content: ""; margin-right: 10px; width: 14px; height: 14px; background: var(--signal); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.brand span { color: var(--signal-ink); }
.brand:hover { color: var(--white); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-left: auto; order: 1; }
.site-header .theme-toggle { order: 2; }
.nav a { color: var(--text-3); text-decoration: none; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--signal); }
.theme-toggle { margin-left: 4px; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); cursor: pointer; transition: border-color .2s, background .2s; }
.theme-toggle:hover { border-color: var(--white); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--white); font: 600 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; margin-left: 8px; order: 2; }
  .site-header .theme-toggle { margin-left: auto; order: 1; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 14px; margin-left: 0; order: 3; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

main { padding: 48px 0 96px; }
main.home { padding-top: 0; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 10px;
  text-decoration: none; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--white); background: rgba(var(--surface-rgb), .6);
  transition: border-color .2s, background .2s, transform .2s;
}
.btn:hover { border-color: var(--white); color: var(--white); transform: translateY(-1px); }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn.primary:hover { background: #FF8A45; border-color: #FF8A45; color: var(--on-signal); }
.btn .arr { font-size: 1rem; line-height: 1; }

/* ---------- Startseite ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg canvas, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg canvas { opacity: .9; }
.wf-axis { position: absolute; left: 0; right: 0; top: 18px; display: flex; justify-content: space-between; padding: 0 6px; border-top: 1px solid rgba(var(--fg-rgb), .12); font: 500 .62rem var(--mono); letter-spacing: .08em; color: rgba(var(--fg-rgb), .55); }
.wf-axis span { padding-top: 6px; position: relative; }
.wf-axis span::before { content: ""; position: absolute; top: -1px; left: 0; width: 1px; height: 5px; background: rgba(var(--fg-rgb), .35); }
.wf-axis span:last-child::before { left: auto; right: 0; }
.wf-label { position: absolute; right: 24px; top: 46px; margin: 0; font: 600 .62rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(var(--fg-rgb), .35); }
@media (max-width: 560px) { .wf-axis span:nth-child(2), .wf-axis span:nth-child(4) { display: none; } }
/* Handy: Scope als schmales Band oben, Text darunter frei lesbar */
@media (max-width: 700px) { .wf-label .wf-x { display: none; } .hero > .wrap { padding-top: 190px; } .hero-bg canvas { opacity: .75; } }
.hero-bg video { opacity: .5; filter: saturate(115%) contrast(105%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0%, rgba(var(--bg-rgb), .15) 35%, rgba(var(--bg-rgb), .85) 78%, var(--carbon) 100%),
    radial-gradient(120% 80% at 15% 100%, rgba(var(--bg-rgb), .9) 0%, transparent 60%); }
.hero .wrap { width: 100%; padding-top: 250px; padding-bottom: 64px; }
.hero-logo { margin: 0 0 30px; line-height: 0; }
.hero .wrap > .kicker { display: flex; justify-content: center; }
.hero-logo img { display: block; margin: 0 auto; width: clamp(260px, 46vw, 600px); height: auto; border-radius: 0;
  filter: drop-shadow(0 0 28px rgba(255, 112, 32, .22)); }
:root[data-theme="light"] .hero-logo img { filter: none; }
.callsign {
  font-weight: 700; letter-spacing: -0.055em; line-height: .82; margin: 0 0 28px;
  font-size: clamp(5rem, 19vw, 17.5rem);
  background: linear-gradient(180deg, var(--callsign-a) 0%, var(--callsign-b) 45%, var(--callsign-c) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.callsign span { background: linear-gradient(180deg, #FF9A5C 0%, var(--signal) 55%, rgba(255,112,32,.45) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.hero-row .lead { margin: 0 0 26px; }
@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; } }

/* Telemetrie / Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 32px 0; }
.stat { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font: 600 2rem/1.1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--white); }
.stat span { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-row > * { min-width: 0; }
.hero .stats { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hero .stat { background: rgba(var(--surface-rgb), .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 520px) { .hero .stat { padding: 14px 12px; } .hero .stat b { font-size: 1.3rem; } .hero .stat span { font-size: .6rem; letter-spacing: .06em; } }
.stat b small { font-size: .9rem; color: var(--muted); margin-left: 4px; }

/* Abschnitts-Köpfe */
.section { padding: 72px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .more { font: 600 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.section-head .more:hover { color: var(--signal-ink); }

/* Video-Reihe im Streaming-Stil */
.rail-note { margin: 4px 2px 0; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--graphite-2) transparent; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 54px) / 4); } }
.vid { scroll-snap-align: start; text-decoration: none; color: var(--white); display: block; }
.vid .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--graphite); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .35s; }
.vid .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.vid .frame svg { color: var(--white); position: absolute; inset: 0; width: 100%; height: 100%; }
.vid .frame .ph { position: absolute; left: 14px; right: 14px; top: 12px; font: 600 .64rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vid .dur { position: absolute; right: 10px; bottom: 10px; font: 600 .7rem var(--mono); background: rgba(var(--bg-rgb), .85); padding: 3px 7px; border-radius: 6px; }
.vid .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s; background: rgba(var(--bg-rgb), .35); }
.vid .play::before { content: ""; width: 58px; height: 58px; border-radius: 50%; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23090B0E'/%3E%3C/svg%3E") center/26px no-repeat; box-shadow: 0 0 40px rgba(255,112,32,.5); }
.vid:hover .frame { transform: scale(1.03); border-color: var(--line-strong); box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); }
.vid:hover .play { opacity: 1; }
.vid h3 { margin: 12px 2px 4px; font-size: 1rem; font-weight: 500; line-height: 1.35; }
.vid .meta { margin: 0 2px; }

/* Kacheln */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { position: relative; background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--white); transition: border-color .25s, transform .3s; }
.card:hover { border-color: rgba(255,112,32,.55); color: var(--white); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 16 / 10; background: var(--graphite-2); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; filter: saturate(85%); transition: transform .5s, filter .3s; }
.card:hover .thumb img { transform: scale(1.04); filter: saturate(105%); }
.card .body { padding: 18px 20px 20px; }
.card h3 { margin: 8px 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Große Feature-Kacheln (Shack, Werkzeuge) */
.features { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { position: relative; min-height: 300px; padding: 30px; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--white); border: 1px solid var(--line); background: var(--graphite); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; transition: border-color .25s; }
.feature:hover { border-color: rgba(255,112,32,.55); color: var(--white); }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 10px 0 8px; letter-spacing: -0.03em; }
.feature p { color: var(--text-3); margin: 0 0 18px; max-width: 460px; }
.feature .btn { align-self: flex-start; }
.feature .art { position: absolute; inset: 0; z-index: -1; }
.feature.shack .art { background:
  radial-gradient(60% 70% at 85% 20%, rgba(255,112,32,.28), transparent 60%),
  radial-gradient(50% 60% at 60% 90%, rgba(56,189,248,.18), transparent 60%),
  repeating-linear-gradient(90deg, rgba(var(--fg-rgb), .035) 0 1px, transparent 1px 44px),
  repeating-linear-gradient(0deg, rgba(var(--fg-rgb), .035) 0 1px, transparent 1px 44px); }
.feature.tools .art { background:
  radial-gradient(70% 70% at 90% 10%, rgba(56,189,248,.25), transparent 60%),
  repeating-linear-gradient(0deg, rgba(var(--fg-rgb), .04) 0 1px, transparent 1px 22px); }
.feature .readout { position: absolute; top: 26px; right: 28px; font: 600 .7rem/1.7 var(--mono); letter-spacing: .1em; color: var(--muted); text-align: right; }
.feature .readout b { color: var(--signal-ink); font-weight: 600; }

/* Hinweise */
.notice { background: rgba(255,112,32,.07); border: 1px solid rgba(255,112,32,.25); border-radius: 12px; padding: 14px 18px; font-size: .92rem; margin: 0 0 28px; color: var(--text-4); }

/* Blogliste und Filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; align-items: center; }
.chip { border: 1px solid var(--line-strong); background: transparent; color: var(--text-3); border-radius: 999px; padding: 7px 15px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: all .2s; }
.chip:hover { border-color: var(--white); color: var(--white); }
.chip[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.search { flex: 1 1 240px; min-width: 0; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--graphite); color: var(--white); font: inherit; font-size: .95rem; }
.search:focus { outline: none; border-color: var(--rf); box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
.year { margin: 36px 0 8px; font-size: .9rem; font-weight: 600; color: var(--signal-ink); letter-spacing: .14em; }
.postlist { list-style: none; margin: 0; padding: 0; }
.postlist li { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.postlist time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; padding-top: 3px; }
.postlist a { text-decoration: none; color: var(--white); }
.postlist a:hover { color: var(--signal-ink); }
.postlist .tag { margin-left: 8px; }
@media (max-width: 560px) { .postlist li { grid-template-columns: 1fr; gap: 0; } }
.count { color: var(--muted); font-size: .8rem; letter-spacing: .06em; }

/* Beitrag */
.post-head { margin-bottom: 28px; }
.content { overflow-wrap: anywhere; color: var(--text-4); }
.content h2, .content h3 { color: var(--white); }
.content figure { margin: 1.6em 0; }
.content figcaption { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.content blockquote { margin: 1.4em 0; padding: 6px 20px; border-left: 2px solid var(--signal); color: var(--text-2); }
.content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--line-strong); padding: 7px 11px; vertical-align: top; }
.content pre, .content code { background: var(--graphite); border: 1px solid var(--line); border-radius: 6px; font: .88em var(--mono); }
.content pre { padding: 14px; overflow-x: auto; }
.content iframe { max-width: 100%; }
.content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.content .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.video-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--graphite); text-decoration: none; color: var(--white); margin: 1.4em 0; }
.video-link::before { content: "▶"; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--signal); color: var(--on-signal); flex: none; }
.video-link:hover { border-color: var(--signal); color: var(--white); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager a { text-decoration: none; max-width: 48%; color: var(--text-3); }
.pager a.next { text-align: right; }
.eq-foot { margin-top: 48px; }
.pager a:hover { color: var(--signal-ink); }
@media (max-width: 560px) { .pager a { max-width: 100%; } }

/* DXCC-Tabelle */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite); }
table.dx { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.dx th, table.dx td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.dx th { position: sticky; top: 0; background: var(--graphite-2); font: 600 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
table.dx tbody tr:hover { background: rgba(var(--fg-rgb), .03); }
table.dx td.bands { white-space: normal; color: var(--muted); min-width: 12em; font-family: var(--mono); font-size: .8rem; }
/* Handy: Kennzahlen zweispaltig, Tabelle nur mit Gebiet, Präfix und Status */
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px 14px; }
  .stat b { font-size: 1.5rem; }
  .stat span { font-size: .62rem; letter-spacing: .06em; }
  table.dx th:nth-child(3), table.dx td:nth-child(3),
  table.dx th:nth-child(5), table.dx td:nth-child(5),
  table.dx th:nth-child(6), table.dx td:nth-child(6) { display: none; }
  table.dx td:first-child { white-space: normal; }
  .lead { font-size: 1.08rem; }
}
.ok { color: var(--ok); font-weight: 600; }
.wkd { color: var(--signal-ink); font-weight: 600; }
.bar { height: 4px; background: rgba(var(--fg-rgb), .08); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rf), var(--signal)); }

/* Equipment: das digitale Shack */
.rack-head { display: flex; align-items: baseline; gap: 14px; margin: 64px 0 18px; }
.rack-head h2 { margin: 0; }
.rack-head .n { font: 600 .72rem var(--mono); color: var(--muted); letter-spacing: .12em; }
.gear-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gear {
  position: relative; padding: 22px 22px 20px; display: flex; flex-direction: column; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--graphite-2) 0%, var(--graphite) 100%);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), .06);
  transition: border-color .25s, transform .3s;
}
.gear::before { content: ""; position: absolute; top: 20px; right: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--knob); }
.gear.has-link::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.gear:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.gear .cat { font: 600 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gear h3 { margin: 8px 30px 8px 0; font-size: 1.15rem; }
.gear p { margin: 0 0 16px; color: var(--muted); font-size: .93rem; }
.gear .gear-note { font-size: .82rem; color: var(--white); background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.25); border-radius: 8px; padding: 6px 10px; }
.gear .gear-linknote { margin: auto 0 10px; font: 500 .74rem/1.5 var(--mono); color: var(--dim); }
.gear .gear-linknote + .btn { margin-top: 0; }
.gear .btn { margin-top: auto; align-self: flex-start; padding: 10px 14px; font-size: .7rem; }
.gear .nolink { margin-top: auto; font: 600 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim-2); }

/* Rechner */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.tool { background: var(--graphite); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.tool h2 { margin: 6px 0 6px; font-size: 1.35rem; }
.tool > p { color: var(--muted); font-size: .93rem; margin: 0 0 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font: 600 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field .in { display: flex; align-items: center; background: var(--carbon); border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.field .in:focus-within { border-color: var(--rf); box-shadow: 0 0 0 3px rgba(56,189,248,.15); }
.field input, .field select { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--white); font: 500 1.05rem var(--mono); padding: 11px 14px; outline: none; }
.field select option { background: var(--graphite); }
.field .unit { font: 600 .75rem var(--mono); color: var(--muted); padding: 0 14px; }
.out { display: grid; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin-top: 18px; border: 1px solid var(--line); }
.out div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--carbon); padding: 11px 14px; }
.out span { font: 600 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.out b { font: 600 1.15rem var(--mono); color: var(--signal-ink); font-variant-numeric: tabular-nums; }
.tool .hint { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.tool .hint.warn { color: var(--warn-text); }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); background: var(--carbon); padding: 36px 0; font-size: .74rem; letter-spacing: .06em; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a:hover { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Equipment: Kachel mit eigener Kurzanleitung ---------- */
.gear.has-manual { border-color: rgba(255,112,32,.35); cursor: pointer; }
.gear.has-manual:hover { border-color: var(--signal); }
.gear .gear-manual { color: inherit; text-decoration: none; }
.gear .gear-manual::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: 1; }
.gear .gear-manual:focus-visible::after { outline: 2px solid var(--signal); outline-offset: 2px; }
.gear.has-manual .btn { position: relative; z-index: 2; }
.gear .manual-cta { margin: auto 0 10px; font: 600 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); }
.gear.has-manual:not(.has-link) .manual-cta { margin-bottom: 0; }

/* ---------- Kurzanleitung ---------- */
.crumbs { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--signal-ink); }
.crumbs span { margin: 0 6px; opacity: .5; }
.disclaimer { border: 1px solid rgba(255,112,32,.4); background: rgba(255,112,32,.07); border-left: 3px solid var(--signal); border-radius: 12px; padding: 18px 22px; margin: 26px 0 32px; max-width: 860px; }
.disclaimer b { display: block; font: 600 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); margin-bottom: 6px; }
.disclaimer p { margin: 0 0 14px; color: var(--text-4); font-size: .95rem; }
.disclaimer .btn { padding: 9px 14px; font-size: .68rem; }
.shot { margin: 28px 0; }
.shot img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.shot.wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.shot figcaption, .diagram figcaption { color: var(--muted); font-size: .86rem; margin-top: 10px; }
.ki { display: inline-block; font: 600 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rf); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: 1px; }

.manual { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.manual-toc { position: sticky; top: 96px; align-self: start; }
.manual-toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.manual-toc li { counter-increment: toc; }
.manual-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-3); text-decoration: none; font-size: .9rem; }
.manual-toc a::before { content: counter(toc, decimal-leading-zero) " "; font: 500 .7rem var(--mono); color: var(--dim); margin-right: 6px; }
.manual-toc a:hover { color: var(--white); border-left-color: var(--signal); }
.manual-body { max-width: 860px; }
.manual-body > section { scroll-margin-top: 90px; padding-top: 8px; margin-bottom: 64px; }
.manual-body h2 { margin-top: 0; }
.manual-body p, .manual-body li { color: var(--text-4); }
.sec-no { font: 600 .74rem var(--mono); letter-spacing: .16em; color: var(--signal-ink); margin: 0 0 6px; }
.sec-no::after { content: ""; display: inline-block; width: 46px; height: 1px; background: var(--signal); vertical-align: middle; margin-left: 10px; opacity: .6; }
.manual-body code { font: 500 .85em var(--mono); background: var(--graphite-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--white); white-space: nowrap; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 18px; }
table.spec { border-collapse: collapse; width: 100%; font-size: .93rem; }
table.spec th, table.spec td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec tbody th { width: 34%; font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 13px; }
table.spec thead th { background: var(--graphite-2); font: 600 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.manual-body .table-wrap { margin: 0 0 14px; }

.steps { list-style: none; counter-reset: st; padding: 0; margin: 20px 0; }
.steps li { counter-increment: st; position: relative; padding: 0 0 16px 52px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem var(--mono); color: var(--signal-ink); border: 1px solid rgba(255,112,32,.5); background: rgba(255,112,32,.08); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 4px; width: 1px; background: var(--line-strong); }
.ticks { padding-left: 0; list-style: none; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--rf); }
.warn { border: 1px solid rgba(248,113,113,.35); background: rgba(248,113,113,.07); border-radius: 12px; padding: 12px 16px; font-size: .93rem; }
.warn b { color: var(--warn-text); }
.calc { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.calc p { margin: 8px 0; }
.calc .formula { font: 500 .92rem var(--mono); color: var(--white); background: var(--graphite-2); border-radius: 8px; padding: 10px 14px; overflow-x: auto; white-space: nowrap; }
.calc .formula b { color: var(--signal-ink); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 24px; }
.mini { background: var(--graphite); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.mini p { margin: 6px 0 0; font-size: .93rem; }
.mini .label { margin: 0; }

/* LED-Farben */
.leds { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 22px; }
.leds li { display: flex; gap: 12px; align-items: baseline; font-size: .93rem; color: var(--text-3); }
.leds b { color: var(--white); font-weight: 600; white-space: nowrap; }
.led { flex: none; width: 12px; height: 12px; border-radius: 50%; position: relative; top: 1px; --c: #888; background: var(--c); box-shadow: 0 0 10px var(--c); }
.led.green { --c: #22C55E; } .led.red { --c: #EF4444; } .led.red.dim { --c: #7F1D1D; box-shadow: none; }
.led.orange { --c: #FF7020; } .led.purple { --c: #A855F7; } .led.white { --c: #F8FAFC; } .led.white { border: 1px solid var(--line-strong); }
.led.amber { --c: #F59E0B; } .led.yellow { --c: #FACC15; } .led.blue { --c: #3B82F6; }
.led.blink { animation: ledblink 1.1s steps(2, jump-none) infinite; }
@keyframes ledblink { 50% { opacity: .15; box-shadow: none; } }
.pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 8px #EF4444; margin-right: 10px; }
table.blinks td:first-child { font: 600 .9rem var(--mono); white-space: nowrap; width: 90px; }

.faq details { border: 1px solid var(--line); background: var(--graphite); border-radius: 12px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 13px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.1rem/1 var(--mono); color: var(--signal-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: .95rem; }

/* Diagramme (Farben über Klassen, damit Hell/Dunkel stimmt) */
.diagram { margin: 26px 0; }
.diagram svg { display: block; width: 100%; height: auto; background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.dg-t { fill: var(--white); font: 600 15px var(--sans); }
.dg-t.sm { font-size: 13px; }
.dg-big { fill: var(--white); font: 700 20px var(--sans); letter-spacing: -.02em; }
.dg-s { fill: var(--muted); font: 500 11px var(--mono); }
.dg-cap { fill: var(--signal-ink); font: 600 11px var(--mono); letter-spacing: .14em; }
.dg-node rect, .dg-node path { fill: var(--graphite-2); stroke: var(--line-strong); stroke-width: 1.2; }
.dg-node.hot rect { stroke: var(--signal); }
.dg-node.rf rect { stroke: var(--rf); }
.dg-node.ok rect { stroke: #22C55E; }
.dg-node.warn rect { stroke: #F87171; stroke-dasharray: 5 4; }
.dg-l { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.dg-l.o { stroke: var(--signal); }
.dg-head { fill: var(--muted); } .dg-head-o { fill: var(--signal); }
.dg-net { fill: none; stroke: var(--rf); stroke-width: 2; stroke-dasharray: 6 4; }
.dg-ant { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; }
.dg-coax { fill: none; stroke: var(--signal); stroke-width: 4; stroke-linecap: round; }
.dg-red { stroke: #EF4444; stroke-width: 4; } .dg-black { stroke: var(--dim); stroke-width: 4; }
.dg-radio rect { fill: var(--carbon); stroke: var(--signal); stroke-width: 1.6; }
.dg-led { fill: #22C55E; filter: drop-shadow(0 0 4px #22C55E); }
.dg-panel { fill: var(--carbon); stroke: var(--line-strong); stroke-width: 1.4; }
.dg-sep { stroke: var(--line); stroke-dasharray: 4 6; }
.dg-jack circle { fill: var(--graphite-2); stroke: var(--muted); stroke-width: 1.6; }
.dg-jack circle.in { fill: var(--carbon); stroke: var(--signal); }
.dg-jack.off circle { stroke-dasharray: 3 3; opacity: .55; }
.dg-port rect, .dg-port path { fill: var(--graphite-2); stroke: var(--muted); stroke-width: 1.6; }
.dg-pp rect.r { fill: #B91C1C; } .dg-pp rect.b { fill: #1F2937; stroke: var(--muted); }
.dg-scope { fill: var(--carbon); stroke: var(--line-strong); }
.dg-grid path { stroke: var(--scope-grid); stroke-width: 1; fill: none; }
.dg-trace { fill: none; stroke: var(--scope-trace); stroke-width: 1.6; }
.dg-slice { opacity: .16; } .dg-slice.a { fill: var(--signal); } .dg-slice.b { fill: var(--rf); }
.dg-slice-l { stroke-width: 1.6; } .dg-slice-l.a { stroke: var(--signal); } .dg-slice-l.b { stroke: var(--rf); }
.dg-flag rect { fill: var(--graphite-2); stroke-width: 1.4; } .dg-flag.a rect { stroke: var(--signal); } .dg-flag.b rect { stroke: var(--rf); }
.dg-wire { fill: none; stroke: var(--white); stroke-width: 2; }
.dg-coil { fill: none; stroke: var(--signal); stroke-width: 2.4; }
.dg-var { stroke: var(--rf); stroke-width: 1.6; }
.dg-axis { stroke: var(--muted); stroke-width: 1.4; }
.dg-tick line { stroke: var(--muted); } .dg-tick text { fill: var(--muted); font: 500 11px var(--mono); }
.dg-range.a { fill: rgba(255,112,32,.22); stroke: var(--signal); }
.dg-range.b { fill: rgba(56,189,248,.18); stroke: var(--rf); }
.dg-range.c { fill: rgba(34,197,94,.16); stroke: #22C55E; stroke-dasharray: 4 3; }
.dg-fifty { stroke: var(--white); stroke-width: 1.4; stroke-dasharray: 3 3; }

@media (max-width: 960px) {
  .manual { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .manual-toc { position: static; }
  .manual-toc ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .manual-toc a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; margin: 0; font-size: .8rem; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram svg { min-width: 640px; }
  .leds, .cards-2 { grid-template-columns: 1fr; }
  .shot.wide img { aspect-ratio: 16 / 10; }
  table.spec.kv tbody th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  table.spec.kv tbody td { display: block; padding-top: 4px; }
  table.spec.kv tbody tr { display: block; border-bottom: 1px solid var(--line); }
  table.spec.kv tbody tr td { border-bottom: 0; }
  .diagram::before { content: "← seitlich wischen →"; display: block; font: 500 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { .led.blink { animation: none; } }
