/* ==========================================================================
   Cold River – Designsystem
   Eisblau auf Nachtblau (Marke), warmes Laternengold aus den Key-Arts.
   Seitenspezifisches steht in css/pages/*.css, hier nur Gemeinsames.
   ========================================================================== */

/* ---------- Schriften (lokal, keine Google-Server = DSGVO-freundlich) ---------- */
@font-face { font-family: 'Zilla Slab'; font-weight: 500; font-display: swap; src: url('/fonts/zilla-slab-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-weight: 600; font-display: swap; src: url('/fonts/zilla-slab-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-weight: 700; font-display: swap; src: url('/fonts/zilla-slab-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/barlow-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IM Fell English'; font-weight: 400; font-display: swap; src: url('/fonts/im-fell-english-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IM Fell English'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/im-fell-english-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Special Elite'; font-weight: 400; font-display: swap; src: url('/fonts/special-elite-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rye'; font-weight: 400; font-display: swap; src: url('/fonts/rye-latin-400-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Flächen: Nachtblau, von tief nach hell */
  --night-0: #04070b;
  --night-1: #070b11;
  --night-2: #0b1119;
  --night-3: #111a25;
  --night-4: #172231;
  --night-5: #1f2d3f;

  /* Linien */
  --line: rgba(160, 196, 230, 0.11);
  --line-2: rgba(160, 196, 230, 0.2);
  --line-3: rgba(160, 196, 230, 0.34);

  /* Text */
  --ink: #edf3f8;
  --ink-2: #b6c3d0;
  --ink-3: #93a4b5;
  --ink-4: #7b8b9d;

  /* Marke: Eis */
  --frost: #6cc8ff;
  --frost-hi: #bfe8ff;
  --frost-lo: #2b8fe0;
  --frost-deep: #0f4f86;
  --frost-glow: rgba(108, 200, 255, 0.34);
  --frost-wash: rgba(108, 200, 255, 0.08);

  /* Wärme: Laterne / Sonnenuntergang */
  --ember: #eaa855;
  --ember-hi: #ffd596;
  --ember-lo: #b8732c;
  --ember-wash: rgba(234, 168, 85, 0.1);

  /* Status */
  --ok: #4fdc9b;
  --ok-wash: rgba(79, 220, 155, 0.12);
  --warn: #f3c552;
  --bad: #ff6f6f;
  --bad-wash: rgba(255, 111, 111, 0.12);
  --discord: #5865f2;

  /* Papier (Telegramme, Ausweis) */
  --paper: #efe3c5;
  --paper-2: #e2d0a6;
  --paper-edge: #c9b17d;
  --paper-ink: #2a1a0b;
  --paper-ink-2: #5a3d20;
  --paper-red: #9e2a1f;

  /* Schrift */
  --f-display: 'Zilla Slab', 'Rockwell', 'Georgia', serif;
  --f-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --f-label: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
  --f-letter: 'IM Fell English', 'Georgia', serif;
  --f-type: 'Special Elite', 'Courier New', monospace;
  --f-western: 'Rye', 'Zilla Slab', serif;

  /* Maße */
  --wrap: 1220px;
  --wrap-narrow: 860px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xs: 4px;
  --r-s: 8px;
  --r: 14px;
  --r-l: 22px;
  --header-h: 74px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 28px 60px -24px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night-1);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* feines Filmkorn über allem – gibt den Flächen Materialität */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--frost); text-decoration: none; text-underline-offset: 0.2em; }
a:hover { color: var(--frost-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; height: 1px; background: var(--line-2); margin: 2rem 0; }
::selection { background: var(--frost); color: var(--night-0); }
:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--frost); color: var(--night-0); padding: 10px 16px; border-radius: var(--r-s);
  font: 700 15px/1 var(--f-label); letter-spacing: 0.06em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; color: var(--night-0); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: 0.005em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--ink); }
small { font-size: 0.85em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.7; max-width: 62ch; }
.muted { color: var(--ink-3); }
.letter { font-family: var(--f-letter); font-style: italic; letter-spacing: 0.01em; }
.num { font-family: var(--f-label); font-variant-numeric: tabular-nums; }

/* Kicker: kleine Überzeile mit Eisstrich */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 0.84rem/1 var(--f-label); letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--frost);
}
.kicker::before, .kicker.is-center::after {
  content: ''; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--frost));
}
.kicker.is-center::after { background: linear-gradient(90deg, var(--frost), transparent); }
.kicker.is-ember { color: var(--ember); }
.kicker.is-ember::before { background: linear-gradient(90deg, transparent, var(--ember)); }
.kicker.is-ember.is-center::after { background: linear-gradient(90deg, var(--ember), transparent); }

/* Text-Ornament ✦ zwischen zwei Linien */
.ornament {
  display: flex; align-items: center; gap: 14px; color: var(--frost); opacity: 0.8;
  font-size: 12px; margin: 0 auto; width: min(260px, 70%);
}
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-3), transparent); }

/* Fließtext aus fremden Quellen (Regelwerk, News) */
.prose { color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.prose > * + * { margin-top: 0.9em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.08rem; font-family: var(--f-body); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose em { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--frost); }
.prose a { text-decoration: underline; text-decoration-color: rgba(108, 200, 255, 0.4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: var(--night-4); padding: 0.1em 0.4em; border-radius: 4px; color: var(--frost-hi); }
.prose blockquote { border-left: 3px solid var(--frost-lo); padding: 0.2em 0 0.2em 1em; color: var(--ink-2); }
.prose hr { margin: 2em 0; }
.prose img { border-radius: var(--r-s); }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(var(--wrap-narrow), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(72px, 10vw, 136px); }
.section.is-tight { padding-block: clamp(48px, 6vw, 80px); }
.section.is-alt { background: var(--night-2); }
.section.is-deep { background: var(--night-0); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section-head.is-center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head.is-center .lead { margin-inline: auto; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split.is-flip > :first-child { order: 2; }
}
.stack { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row.is-between { justify-content: space-between; }

/* Bergkamm-Trenner: sitzt oben in einer Sektion und nimmt deren Farbe an */
.ridge {
  position: absolute; left: 0; right: 0; top: 0; height: clamp(40px, 6vw, 90px);
  transform: translateY(-99%); pointer-events: none; color: var(--night-1); z-index: 2;
}
.ridge svg { width: 100%; height: 100%; }
.section.is-alt > .ridge { color: var(--night-2); }
.section.is-deep > .ridge { color: var(--night-0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, body:not(.has-hero) .site-header {
  background: rgba(6, 10, 15, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 4px 14px rgba(108, 200, 255, 0.25)); transition: transform 0.4s var(--ease-out); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: grid; line-height: 1; }
.brand-name { font: 700 1.28rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; }
.brand-sub { font: 600 0.68rem/1 var(--f-label); letter-spacing: 0.42em; text-transform: uppercase; color: var(--frost); margin-top: 5px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; color: var(--ink-2);
  font: 600 0.95rem/1 var(--f-label); letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--r-s); transition: color 0.2s;
}
.nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--frost-lo), var(--frost-hi));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 99px; background: rgba(10, 18, 27, 0.55);
  font: 600 0.9rem/1 var(--f-label); letter-spacing: 0.06em; color: var(--ink-2); white-space: nowrap;
}
.live-pill:hover { color: var(--ink); border-color: var(--line-3); }
.live-pill b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex-shrink: 0; }
.dot.is-on { background: var(--ok); box-shadow: 0 0 0 0 rgba(79, 220, 155, 0.6); animation: pulse 2.2s infinite; }
.dot.is-off { background: var(--bad); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 220, 155, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(79, 220, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 220, 155, 0); }
}

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: rgba(10, 18, 27, 0.55); color: var(--ink);
  align-items: center; justify-content: center;
}
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 12px var(--gutter) 24px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(6, 10, 15, 0.97); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav a { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current='page'] { color: var(--frost); }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.nav-open .site-header { background: rgba(6, 10, 15, 0.97); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
  .live-pill .live-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .header-actions .btn .btn-label { display: none; }
  .header-actions .btn { padding-inline: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-3);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-s);
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1 var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
  isolation: isolate; overflow: hidden;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); border-color: var(--frost); }
.btn:active { transform: translateY(0); }
.btn .icon { flex-shrink: 0; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.88rem; gap: 8px; }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-primary {
  --btn-fg: #03121f; --btn-bd: transparent;
  background: linear-gradient(180deg, #a9e2ff 0%, #6cc8ff 45%, #3aa3ef 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 28px -10px var(--frost-glow), 0 0 0 1px rgba(108, 200, 255, 0.4);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 38px -10px rgba(108, 200, 255, 0.55), 0 0 0 1px rgba(108, 200, 255, 0.6); border-color: transparent; }
.btn-primary:hover::before { transform: translateX(120%); }

.btn-ember {
  --btn-fg: #1e1004; --btn-bd: transparent;
  background: linear-gradient(180deg, #ffd9a0 0%, #eaa855 50%, #c67f33 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 28px -12px rgba(234, 168, 85, 0.55);
}
.btn-ember:hover { border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 16px 36px -12px rgba(234, 168, 85, 0.7); }

.btn-ghost { --btn-bg: rgba(10, 18, 27, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { --btn-bg: rgba(108, 200, 255, 0.1); }
.btn-discord { --btn-bg: var(--discord); --btn-bd: transparent; --btn-fg: #fff; box-shadow: 0 10px 26px -12px rgba(88, 101, 242, 0.8); }
.btn-discord:hover { --btn-bg: #6873f5; border-color: transparent; }
.btn-steam { --btn-bg: linear-gradient(180deg, #1b2838, #10161f); --btn-bd: #3d5a78; --btn-fg: #fff; background: linear-gradient(180deg, #213349, #121b27); }
.btn-steam:hover { border-color: #66c0f4; }
.btn-text { border: 0; min-height: auto; padding: 0; background: none; color: var(--frost); overflow: visible; }
.btn-text:hover { transform: none; color: var(--frost-hi); }
.btn-text .icon { transition: transform 0.25s var(--ease-out); }
.btn-text:hover .icon { transform: translateX(4px); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--night-3); color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--frost); border-color: var(--frost); }

/* ---------- Karten ---------- */
.card {
  position: relative; border-radius: var(--r); padding: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(180deg, rgba(24, 35, 49, 0.92), rgba(13, 20, 29, 0.92));
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.card.is-hover { transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s; }
.card.is-hover:hover { transform: translateY(-4px); border-color: rgba(108, 200, 255, 0.35); box-shadow: var(--shadow-2), 0 0 0 1px rgba(108, 200, 255, 0.08); }
.card-title { font-size: 1.28rem; margin-bottom: 8px; }
.card-text { color: var(--ink-2); font-size: 0.98rem; }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  color: var(--frost); background: radial-gradient(circle at 30% 20%, rgba(108, 200, 255, 0.28), rgba(108, 200, 255, 0.06) 70%);
  border: 1px solid rgba(108, 200, 255, 0.25);
  box-shadow: 0 0 24px -6px var(--frost-glow);
}
.card-icon.is-ember { color: var(--ember); background: radial-gradient(circle at 30% 20%, rgba(234, 168, 85, 0.28), rgba(234, 168, 85, 0.05) 70%); border-color: rgba(234, 168, 85, 0.28); box-shadow: 0 0 24px -6px rgba(234, 168, 85, 0.35); }

/* Glaskarte über Bildern */
.glass {
  background: linear-gradient(180deg, rgba(14, 23, 34, 0.72), rgba(8, 13, 20, 0.78));
  border: 1px solid rgba(160, 196, 230, 0.18); border-radius: var(--r-l);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* Eisrahmen um Bilder */
.frame {
  position: relative; border-radius: var(--r-l); overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(160, 196, 230, 0.18);
}
.frame::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(191, 232, 255, 0.12), inset 0 -80px 80px -60px rgba(4, 7, 11, 0.8);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px;
  font: 700 0.74rem/1 var(--f-label); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  background: var(--frost-wash); color: var(--frost); border: 1px solid rgba(108, 200, 255, 0.28);
}
.badge.is-ember { background: var(--ember-wash); color: var(--ember); border-color: rgba(234, 168, 85, 0.3); }
.badge.is-ok { background: var(--ok-wash); color: var(--ok); border-color: rgba(79, 220, 155, 0.3); }
.badge.is-bad { background: var(--bad-wash); color: var(--bad); border-color: rgba(255, 111, 111, 0.3); }
.badge.is-plain { background: var(--night-4); color: var(--ink-2); border-color: var(--line-2); }

/* Stempel (Est. 1899) */
.stamp {
  display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid currentColor; color: var(--ember); transform: rotate(-12deg);
  font: 400 0.72rem/1.15 var(--f-western); text-align: center; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: inset 0 0 0 4px var(--night-1), inset 0 0 0 5px currentColor; opacity: 0.9;
}
.stamp b { display: block; font-size: 1.35rem; font-weight: 400; color: inherit; }

/* ---------- Kennzahlen ---------- */
.stat { display: grid; gap: 6px; }
.stat-value { font: 700 clamp(2.2rem, 4.6vw, 3.4rem)/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-value .unit { font-size: 0.5em; color: var(--ink-3); margin-left: 4px; }
.stat-label { font: 600 0.84rem/1.3 var(--f-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.stat.is-frost .stat-value { background: linear-gradient(180deg, #fff, var(--frost-hi) 40%, var(--frost)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.is-ember .stat-value { background: linear-gradient(180deg, #fff3de, var(--ember-hi) 40%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.stat-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 30, 43, 0.7), rgba(10, 16, 24, 0.7));
}
.stat-band > * { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }

/* Mini-Diagramm (Sparkline), wird per JS gezeichnet */
.spark { width: 100%; height: 56px; color: var(--frost); }
.spark path.area { fill: url(#spark-fill); stroke: none; }
.spark path.line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(64px, 9vw, 110px);
  background: var(--night-0);
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg picture { display: block; height: 100%; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 20% 0%, transparent 30%, rgba(4, 7, 11, 0.75) 80%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.5) 0%, rgba(4, 7, 11, 0.2) 40%, var(--night-1) 100%);
}
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-top: 14px; }
.page-hero .lead { margin-top: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 600 0.82rem/1 var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--frost); }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 8px; }
.field label { font: 600 0.82rem/1 var(--f-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-s);
  background: var(--night-2); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--frost); box-shadow: 0 0 0 4px rgba(108, 200, 255, 0.14); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon .input { padding-left: 44px; }

/* Kopierfeld (connect-Befehl u. ä.) */
.copy {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: var(--r-s);
  background: var(--night-0); border: 1px solid var(--line-2); font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem;
  color: var(--frost-hi);
}
.copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.copy .icon-btn { width: 36px; height: 36px; }
.copy.is-copied .icon-btn { color: var(--ok); border-color: var(--ok); }

/* ---------- Tabellen / Listen ---------- */
.table { width: 100%; font-size: 0.96rem; }
.table th { text-align: left; font: 600 0.78rem/1 var(--f-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.kv dt { color: var(--ink-3); font: 600 0.82rem/1.6 var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; }
.kv dd { margin: 0; color: var(--ink); }

/* Hinweis-Boxen */
.note {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid rgba(108, 200, 255, 0.25);
  background: linear-gradient(180deg, rgba(108, 200, 255, 0.08), rgba(108, 200, 255, 0.03)); color: var(--ink-2); font-size: 0.96rem;
}
.note > .icon { color: var(--frost); margin-top: 3px; flex-shrink: 0; }
.note.is-ember { border-color: rgba(234, 168, 85, 0.3); background: linear-gradient(180deg, rgba(234, 168, 85, 0.09), rgba(234, 168, 85, 0.03)); }
.note.is-ember > .icon { color: var(--ember); }
.note.is-bad { border-color: rgba(255, 111, 111, 0.3); background: var(--bad-wash); }
.note.is-bad > .icon { color: var(--bad); }

/* Leerzustand */
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .icon { color: var(--ink-4); }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: none;
  color: var(--ink-3); font: 600 0.92rem/1 var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-current='page'], .tabs [aria-selected='true'] { background: var(--night-4); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 4px 10px -4px rgba(0, 0, 0, 0.6); }
.tabs .count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--frost); color: var(--night-0); font-size: 0.74rem; display: inline-grid; place-items: center; letter-spacing: 0; }

/* Seitennummern */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--r-s); border: 1px solid var(--line-2); color: var(--ink-2); font: 600 0.95rem/1 var(--f-label); }
.pager a:hover { border-color: var(--frost); color: var(--frost); }
.pager [aria-current='page'] { background: var(--frost); border-color: var(--frost); color: var(--night-0); }
.pager .is-disabled { opacity: 0.35; }

/* ---------- Galerie + Lightbox ---------- */
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin-bottom: 16px; position: relative; border-radius: var(--r); overflow: hidden; background: var(--night-3); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform 0.8s var(--ease-out), filter 0.4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 11, 0.85));
  font: 600 0.8rem/1.3 var(--f-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: rgba(2, 4, 7, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84vh; width: auto; border-radius: var(--r); box-shadow: 0 40px 100px -30px #000; }
.lightbox .lb-caption { margin-top: 14px; text-align: center; color: var(--ink-2); font: 600 0.85rem/1.3 var(--f-label); letter-spacing: 0.12em; text-transform: uppercase; }
.lightbox .lb-close { position: absolute; top: 18px; right: 18px; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }

/* ---------- Telegramm-Papier (Panel, Startseite) ---------- */
.paper {
  position: relative; color: var(--paper-ink); border-radius: 4px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 250, 235, 0.55), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(150, 105, 50, 0.22), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(150, 105, 50, 0.18), transparent 50%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(90, 60, 25, 0.25), inset 0 0 60px rgba(120, 80, 30, 0.22);
}
.paper::before {
  content: ''; position: absolute; inset: 10px; border: 2px double rgba(60, 30, 10, 0.4); border-radius: 2px; pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--night-0); padding: clamp(64px, 8vw, 96px) 0 28px; color: var(--ink-3); font-size: 0.95rem; }
.site-footer > .ridge { color: var(--night-0); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 16px; max-width: 360px; }
.footer-brand img { width: 84px; height: 84px; }
.footer-title { font: 700 0.84rem/1 var(--f-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--ink-3); }
.footer-links a:hover { color: var(--frost); }
.socials { display: flex; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--ink-4); }
.footer-bottom a { color: var(--ink-3); }

/* ---------- Scroll-Einblendungen ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Lade-Skelett */
.skeleton { display: inline-block; min-width: 2ch; border-radius: 6px; background: linear-gradient(90deg, var(--night-4), var(--night-5), var(--night-4)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toast (Kopiert!) */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 99px; background: var(--night-4); border: 1px solid var(--line-2); color: var(--ink);
  font: 600 0.92rem/1 var(--f-label); letter-spacing: 0.08em; box-shadow: var(--shadow-2);
  transition: opacity 0.25s, transform 0.25s var(--ease-out); pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: var(--ok); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body::before, .site-header, .site-footer, .ridge { display: none !important; }
  body { background: #fff; color: #000; }
}
