/* ══════════════════════════════════════════════════════════
   smokatv.de — gemeinsames Stylesheet
   Look wie die Overlays und Handbücher: Cyan/Magenta, Orbitron,
   dunkles Sci-Fi-Grid.
   ══════════════════════════════════════════════════════════ */

:root {
  --bg-base: #050810;
  --bg-panel: #0a1220;
  --bg-card: #0d1626;
  --cyan: #00e5ff;
  --cyan-soft: #4dd9e8;
  --cyan-dim: rgba(0, 229, 255, 0.15);
  --cyan-border: rgba(0, 229, 255, 0.35);
  --magenta: #9933ff;
  --sahne: #ffe9a8;
  --sahne-soft: #fff5d4;
  --gold: #ffcd3c;
  --silver: #d6deeb;
  --live: #ff3860;
  --text: #e0f4f8;
  --text-dim: #7a98a6;
  --grid: rgba(0, 229, 255, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at top, rgba(0, 229, 255, 0.08), transparent 60%),
              radial-gradient(ellipse at bottom, rgba(153, 51, 255, 0.05), transparent 60%);
  pointer-events: none; z-index: 0;
}

.scanline {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3; z-index: 3; pointer-events: none;
  animation: scan 8s linear infinite;
}
@keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(100vh); } }

.container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px 80px;
  position: relative; z-index: 1;
}

/* Kopfleiste und Socials-Reihe: siehe CHROME_CSS in app.js.
   Sie werden von app.js erzeugt, also bringt app.js auch ihre Gestaltung mit — sonst
   fehlt sie auf Seiten mit eigenem Stylesheet (Handbücher). */

/* ═══════════ SEITENKOPF ═══════════ */

.page-head { padding: 56px 0 36px; position: relative; }
.page-head .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cyan-soft); margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.page-head h1 {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  font-size: clamp(34px, 5.5vw, 60px); line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--sahne-soft) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.page-head .lead {
  font-size: 18px; font-weight: 500; color: var(--text-dim);
  max-width: 720px; line-height: 1.55;
}

/* ═══════════ ABSCHNITTE ═══════════ */

.section { margin-bottom: 56px; scroll-margin-top: 80px; }
.section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(0, 229, 255, 0.14); padding-bottom: 12px;
}
.section-head h2 {
  font-family: 'Orbitron', sans-serif; font-weight: 700;
  font-size: 22px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--sahne-soft);
}
.section-head .hint { font-size: 15px; color: var(--text-dim); }
.section-head .right { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); letter-spacing: 0.15em; }

/* ═══════════ KARTEN ═══════════ */

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  position: relative; background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.12);
  padding: 22px 24px; overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--cyan); opacity: 0.55;
}
.card:hover { border-color: var(--cyan-border); transform: translateY(-2px); }
.card h3 {
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--sahne-soft); margin-bottom: 10px;
}
.card p { font-size: 15.5px; line-height: 1.6; }
.card p + p { margin-top: 10px; }
.card .label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan-soft); opacity: 0.85; margin-bottom: 6px;
}
.card.gold::before { background: var(--gold); }
.card.gold { border-color: rgba(255, 205, 60, 0.35); }
.card.silver::before { background: var(--silver); }
.card.silver { border-color: rgba(214, 222, 235, 0.3); }
.card.plain::before { display: none; }

a.card { text-decoration: none; color: inherit; display: block; }

/* Verlinkte Kacheln */
.tile { display: flex; align-items: center; gap: 16px; }
.tile .ico { font-size: 26px; line-height: 1; flex-shrink: 0; }
.tile .tx h3 { margin-bottom: 4px; }
.tile .tx p { font-size: 14.5px; color: var(--text-dim); }

/* ═══════════ THRON ═══════════ */

.throne-name {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  /* skaliert mit der Breite, damit auch lange Namen wie "DrGurkenwasser91"
     auf schmalen Displays in einer Zeile bleiben */
  font-size: clamp(18px, 5.2vw, 26px);
  letter-spacing: 0.02em; line-height: 1.2;
  overflow-wrap: anywhere;
}
.card.gold .throne-name { color: var(--gold); text-shadow: 0 0 16px rgba(255, 205, 60, 0.45); }
.card.silver .throne-name { color: var(--silver); text-shadow: 0 0 16px rgba(214, 222, 235, 0.35); }
.throne-crown { font-size: 24px; }
.card.silver .throne-crown { filter: grayscale(1) brightness(1.7); }
.throne-stats {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700;
}
.throne-stats .s-bits { color: var(--cyan); }
.throne-stats .s-subs { color: var(--magenta); }
.throne-stats .s-kofi { color: #ff7a5c; }

/* ═══════════ ZIEL-BALKEN ═══════════ */

.goal-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.goal-num {
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 38px; line-height: 1;
  background: linear-gradient(92deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.goal-target { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 17px; opacity: 0.55; }
.goal-bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; position: relative; }
.goal-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  border-radius: 4px; transition: width 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}
.goal-reached .goal-num { background: linear-gradient(92deg, var(--gold), #ffb347); -webkit-background-clip: text; background-clip: text; }
.goal-reached .goal-fill { background: linear-gradient(90deg, var(--gold), #ffe0a0); }

/* ═══════════ EVENTS ═══════════ */

.event {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 18px 22px; background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.12); border-left: 3px solid var(--cyan-border);
  margin-bottom: 12px; transition: border-color 0.25s ease;
}
.event:hover { border-color: var(--cyan-border); }
.event.now { border-left-color: var(--live); background: linear-gradient(90deg, rgba(255, 56, 96, 0.08), var(--bg-card)); }
.event.past { opacity: 0.45; }
.event .when {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--cyan-soft); letter-spacing: 0.06em;
  min-width: 130px; flex-shrink: 0; padding-top: 2px;
}
.event .body { flex: 1; min-width: 0; }
.event h3 { font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.03em; color: var(--sahne-soft); margin-bottom: 5px; }
.event p { font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }
.event .cd {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  color: var(--sahne); white-space: nowrap; padding-top: 2px;
}
.event.now .cd { color: #ff6b85; }

/* Hervorgehobener Termin (Sub-a-thon o. Ä.) — Farbverlauf im Rahmen plus Leuchten.
   padding-box/border-box: die Karte behält ihren eigenen Hintergrund, der Verlauf
   liegt ausschließlich im Rand. Deshalb müssen beide Ränder transparent sein. */
.event.hl {
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(115deg, var(--gold), var(--cyan), var(--magenta), var(--gold)) border-box;
  background-size: auto, 300% 100%;
  background-position: 0 0, 0 0;
  animation: hlSchimmer 9s linear infinite;
  box-shadow: 0 0 24px rgba(255, 205, 60, 0.13);
}
.event.hl:hover { box-shadow: 0 0 34px rgba(255, 205, 60, 0.24); }
.event.hl .cd   { color: var(--gold); }
@keyframes hlSchimmer { to { background-position: 0 0, 300% 0; } }
@media (prefers-reduced-motion: reduce) { .event.hl { animation: none; } }

/* ═══════════ AKTIONS-BANNER ═══════════ */
/* Gleiche Rand-Technik wie .event.hl, nur größer: der Verlauf liegt im Rahmen,
   die Karte behält ihren Hintergrund. Teilt sich die Animation hlSchimmer. */
.aktion {
  padding: 26px 30px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(115deg, var(--gold), var(--cyan), var(--magenta), var(--gold)) border-box;
  background-size: auto, 300% 100%;
  animation: hlSchimmer 9s linear infinite;
  box-shadow: 0 0 44px rgba(255, 205, 60, 0.11);
}
.aktion-kopf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.aktion-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 4px 10px; color: #050810; background: var(--gold);
}
.aktion-zeit { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cyan-soft); letter-spacing: 0.06em; }
.aktion-cd   { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--gold); margin-left: auto; }
.aktion.laeuft .aktion-cd { color: #ff6b85; }
.aktion-titel {
  font-family: 'Orbitron', sans-serif; font-size: 27px; font-weight: 800;
  letter-spacing: 0.04em; color: var(--sahne-soft); margin: 0 0 9px;
  text-shadow: 0 0 28px rgba(255, 233, 168, 0.25);
}
.aktion-text { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; max-width: 72ch; }
.aktion-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.aktion-badge {
  display: flex; flex-direction: column; gap: 3px; padding: 9px 14px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.18); border-left: 2px solid var(--gold);
}
.aktion-badge .n { font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; color: var(--sahne); }
.aktion-badge .w { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-dim); }
.aktion-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.aktion-link  { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cyan); text-decoration: none; }
.aktion-link:hover { color: var(--sahne); }
@media (max-width: 700px) {
  .aktion { padding: 20px 18px; }
  .aktion-titel { font-size: 20px; }
  .aktion-cd { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .aktion { animation: none; } }

/* ═══════════ NEWS ═══════════ */

.news-item {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-left: 3px solid var(--akzent, var(--cyan-border));
  padding: 20px 24px; margin-bottom: 14px;
  transition: border-color 0.25s ease;
}
.news-item:hover { border-color: rgba(0, 229, 255, 0.28); }

.news-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.news-datum {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--cyan-soft); letter-spacing: 0.06em;
}
.news-art {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 3px 8px;
  color: var(--akzent, var(--cyan)); border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
}
.news-item h3 {
  font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--sahne-soft); margin-bottom: 8px; line-height: 1.35;
}
.news-text { font-size: 15.5px; line-height: 1.65; color: var(--text-dim); }

/* Die Einordnung ist der Eigenanteil — sie hebt sich deshalb vom Zitatteil ab */
.news-einordnung {
  margin-top: 10px; padding: 10px 14px;
  font-size: 15px; line-height: 1.55; color: var(--text);
  background: rgba(0, 229, 255, 0.05);
  border-left: 2px solid var(--cyan-border);
}
.news-einordnung::before {
  content: 'Was heißt das für dich? ';
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-soft);
  display: block; margin-bottom: 4px;
}

.news-item details.explain { margin: 12px 0 0; }

.news-quelle {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed rgba(0, 229, 255, 0.14);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-dim); overflow-wrap: anywhere;
}
.news-quelle a { color: var(--cyan); text-decoration: none; }
.news-quelle a:hover { text-decoration: underline; }
/* Sollte doch einmal eine Quelle fehlen, fällt es sofort auf */
.news-quelle.fehlt {
  color: var(--live); border-top-color: rgba(255, 56, 96, 0.4); font-weight: 700;
}

/* Kategoriefarbe — eine Variable steuert Rand und Plakette */
.k-patch    { --akzent: var(--cyan); }
.k-event    { --akzent: var(--gold); }
.k-sale     { --akzent: #ff6b85; }
.k-kanal    { --akzent: #c78dff; }
.k-giveaway { --akzent: var(--sahne); }

/* ── Patchnotes ── */
.patch-item .news-kopf { margin-bottom: 6px; }
.patch-build {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.04em; overflow-wrap: anywhere;
}
.patch-item h3 { font-size: 19px; }

.patch-block { margin-top: 16px; }
.patch-block h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan-soft); margin-bottom: 8px;
}
.patch-block ul { margin: 0 0 0 20px; }
.patch-block li { font-size: 15px; line-height: 1.55; color: var(--text-dim); margin-bottom: 6px; }

/* CIG kennzeichnet manche Korrekturen selbst nur als „Potential Fix" — der
   Vorbehalt muss sichtbar bleiben, sonst wird aus einer Vermutung eine Tatsache. */
.patch-vorbehalt {
  font-size: 13.5px; line-height: 1.5; color: var(--gold);
  background: rgba(255, 205, 60, 0.07);
  border-left: 2px solid rgba(255, 205, 60, 0.45);
  padding: 7px 12px; margin-bottom: 10px;
}

.patch-outro {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  font-size: 15.5px; line-height: 1.6; color: var(--sahne-soft);
}

.patch-block.probleme h4 { color: #ff6b85; }
.patch-block.probleme li { color: rgba(224, 244, 248, 0.62); }

.k-ptu  { --akzent: var(--gold); }
.k-live { --akzent: var(--cyan); }

/* Patchnotes-Anreißer auf der Startseite */
.patch-teaser { border-left: 3px solid var(--akzent, var(--cyan)); }
.patch-teaser h3 {
  font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--sahne-soft); margin-bottom: 12px; line-height: 1.35;
}
/* Themenblöcke als Stichworte — zeigt den Umfang, ohne alles aufzulisten */
.patch-themen { display: flex; flex-wrap: wrap; gap: 7px; }
.patch-themen span {
  font-size: 13.5px; padding: 5px 11px;
  color: var(--text); background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.16);
}
.section.leer { display: none; }

/* Anreißer auf der Startseite */
.news-teaser { display: block; text-decoration: none; color: inherit; }
.news-teaser h3 {
  font-family: 'Orbitron', sans-serif; font-size: 14.5px; font-weight: 700;
  color: var(--sahne-soft); margin-bottom: 6px; line-height: 1.35;
}
.news-teaser p { font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }
.news-teaser::before { background: var(--akzent, var(--cyan)); }

@media (max-width: 640px) {
  .news-item { padding: 16px 18px; }
}

/* ═══════════ WOCHENPLAN ═══════════ */

.plan-card {
  display: flex; gap: 0; margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-left: 3px solid var(--akzent, var(--cyan-border));
  transition: border-color 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
}
.plan-card:hover { border-color: rgba(0, 229, 255, 0.28); border-left-color: var(--akzent, var(--cyan)); }
/* Vergangene Tage treten zurück — der heutige bleibt auch dann voll lesbar */
.plan-card.past { opacity: 0.42; }
.plan-card.past.now { opacity: 1; }
.plan-card.now { background: linear-gradient(90deg, rgba(255, 56, 96, 0.07), var(--bg-card)); }

.plan-art {
  width: 200px; height: auto; align-self: stretch;
  object-fit: cover; flex-shrink: 0; display: block;
  border-right: 1px solid rgba(0, 229, 255, 0.1);
}
.plan-body { padding: 15px 20px; min-width: 0; }
.plan-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.plan-day {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--cyan-soft); letter-spacing: 0.06em;
}
.plan-kind {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 3px 8px;
  color: var(--akzent, var(--cyan)); background: rgba(255, 255, 255, 0.04);
  border: 1px solid currentColor;
}
/* Abweichende Startzeit. Golden statt in der Kategoriefarbe, weil das genau die eine
   Angabe ist, die dem allgemeinen "täglich 10 bis 12 Uhr" über der Liste widerspricht —
   wer das übersieht, steht vor einem schwarzen Kanal. */
.plan-time {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 3px 8px;
  color: var(--gold); background: rgba(255, 205, 60, 0.12);
  border: 1px solid rgba(255, 205, 60, 0.45);
}
.plan-card h3 {
  font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: 0.03em; color: var(--sahne-soft); margin-bottom: 5px;
}
.plan-place {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  color: var(--cyan-soft); letter-spacing: 0.04em; margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.plan-place::before { content: '⌖ '; opacity: 0.7; }
/* Wechselnder Ort: leiser Hinweis statt Fadenkreuz — es gibt ja keinen Punkt zum Anfliegen */
.plan-place.soft { color: var(--text-dim); font-style: italic; }
.plan-place.soft::before { content: '~ '; font-style: normal; }
.plan-card p:not(.plan-place) { font-size: 14.5px; color: var(--text-dim); line-height: 1.55; }

/* Kategoriefarbe — eine Variable steuert Rand, Plakette und Aufleuchten.
   Eigener Namensraum pk- (plan kind), weil die News-Einträge k-event bereits für ihre goldene
   Kategorie belegen. Ohne die Trennung würde die Event-Farbe unten in die News-Kacheln bluten.
   Ohne .plan-card davor, damit dieselbe Regel auch für die Karte auf der Startseite gilt. */
.pk-action    { --akzent: var(--live); }
.pk-news      { --akzent: var(--gold); }
.pk-boss      { --akzent: #c78dff; }
.pk-guide     { --akzent: var(--cyan); }
.pk-community { --akzent: var(--sahne); }
/* Noch nicht entschieden: gestrichelte Kante statt durchgezogener, damit auf einen Blick
   klar ist, dass hier etwas offen ist und nicht nur unauffällig aussieht. */
.pk-offen     { --akzent: var(--cyan-soft); }
.pk-offen.plan-card { border-left-style: dashed; }
.pk-offen h3  { color: var(--cyan-soft); }
.pk-frei      { --akzent: rgba(122, 152, 166, 0.5); }
.pk-frei h3   { color: var(--text-dim); }

/* Event ist die einzige Kategorie, die den ganzen Kasten einfärbt: gemeinsame Termine mit anderen
   Kanälen sind die Tage, an denen ein verpasster Start am meisten weh tut. Kräftiges Lila, nicht
   das helle von pk-boss. */
.pk-event {
  --akzent: var(--magenta);
  background: linear-gradient(100deg, rgba(153, 51, 255, 0.18), rgba(153, 51, 255, 0.06) 55%, var(--bg-card));
  border-color: rgba(153, 51, 255, 0.42);
  /* muss nach border-color stehen, sonst zieht die Kurzschreibweise die Akzentkante blass */
  border-left-color: var(--magenta);
}

@media (max-width: 640px) {
  /* Auf schmalen Displays liegt die Grafik oben statt gequetscht daneben */
  .plan-card { flex-direction: column; }
  .plan-art { width: 100%; height: 120px; border-right: none; border-bottom: 1px solid rgba(0, 229, 255, 0.1); }
  .plan-body { padding: 14px 16px; }
}

/* Plakat — Button klappt das Bild weich auf (0fr → 1fr statt max-height, kein Ruckeln) */
.poster-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em;
  color: var(--cyan); background: none; border: none; cursor: pointer;
  padding: 8px 0 0; margin: 0;
}
.poster-btn:hover { color: var(--sahne-soft); }
.poster-btn .arrow { display: inline-block; transition: transform 0.25s ease; font-size: 10px; }
.poster-btn[aria-expanded="true"] .arrow { transform: rotate(90deg); }
.poster-wrap {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.event.open .poster-wrap { grid-template-rows: 1fr; opacity: 1; }
.poster-inner { overflow: hidden; min-height: 0; }
.poster-inner img {
  display: block; max-width: 280px; width: 100%; height: auto;
  margin-top: 14px; border: 1px solid var(--cyan-border);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .poster-wrap { transition: none; }
}
.badge-now {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 3px 8px; margin-left: 8px; vertical-align: middle;
  background: rgba(255, 56, 96, 0.15); color: #ff6b85;
  border: 1px solid rgba(255, 56, 96, 0.45);
}

/* ═══════════ REFERRAL ═══════════ */

.ref-box {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(153, 51, 255, 0.06));
  border: 1px solid var(--cyan-border); border-left: 4px solid var(--cyan);
  padding: 26px 30px; margin: 20px 0;
}
.ref-box h3 { font-family: 'Orbitron', sans-serif; font-size: 16px; letter-spacing: 0.05em; color: var(--cyan); margin-bottom: 10px; text-transform: uppercase; }
.ref-code {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 19px;
  letter-spacing: 0.08em; color: var(--sahne);
  background: rgba(0, 0, 0, 0.35); border: 1px dashed rgba(255, 233, 168, 0.4);
  padding: 12px 18px; margin: 14px 0 10px; cursor: pointer;
  transition: all 0.2s ease;
}
.ref-code:hover { border-color: var(--sahne); background: rgba(255, 233, 168, 0.08); }
.ref-code .copy { font-size: 11px; letter-spacing: 0.15em; color: var(--text-dim); text-transform: uppercase; }
.ref-code.copied .copy { color: var(--cyan); }

/* ═══════════ BUTTONS ═══════════ */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 12px 22px; border: 1px solid var(--cyan-border);
  background: rgba(0, 229, 255, 0.07); color: var(--cyan);
  transition: all 0.22s ease;
}
.btn:hover { background: rgba(0, 229, 255, 0.15); border-color: var(--cyan); transform: translateY(-1px); }
.btn.primary { background: rgba(153, 51, 255, 0.12); border-color: rgba(153, 51, 255, 0.5); color: #c78dff; }
.btn.primary:hover { background: rgba(153, 51, 255, 0.22); border-color: var(--magenta); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ═══════════ AUFKLAPPBAR ═══════════ */

details.explain {
  background: rgba(13, 22, 38, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.14);
  margin-bottom: 12px; transition: border-color 0.25s ease;
}
details.explain[open] { border-color: var(--cyan-border); }
details.explain summary {
  cursor: pointer; list-style: none; padding: 15px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.07em;
  color: var(--cyan-soft); display: flex; align-items: center; gap: 12px; user-select: none;
}
details.explain summary::-webkit-details-marker { display: none; }
details.explain summary::before { content: '+'; font-size: 18px; line-height: 1; color: var(--cyan); width: 14px; flex-shrink: 0; }
details.explain[open] summary::before { content: '−'; }
details.explain summary:hover { color: var(--cyan); background: rgba(0, 229, 255, 0.05); }
details.explain .body {
  padding: 16px 22px 20px 46px; font-size: 15px; line-height: 1.65;
  border-top: 1px dashed rgba(0, 229, 255, 0.12);
}
details.explain .body p + p { margin-top: 12px; }
details.explain .body ul { margin: 10px 0 0 20px; }
details.explain .body li { margin-bottom: 7px; }

/* ═══════════ TABELLE ═══════════ */

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan-soft);
  text-align: left; padding: 11px 14px; font-weight: 500;
  border-bottom: 1px solid var(--cyan-border);
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid rgba(0, 229, 255, 0.08); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: rgba(0, 229, 255, 0.04); }
.tbl .num { font-family: 'JetBrains Mono', monospace; color: var(--sahne); white-space: nowrap; }
.tbl .dim { color: var(--text-dim); font-size: 13.5px; }

/* ═══════════ HINWEIS ═══════════ */

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px; margin: 16px 0; font-size: 15px; line-height: 1.55;
  background: rgba(255, 233, 168, 0.05);
  border: 1px solid rgba(255, 233, 168, 0.2); border-left: 3px solid var(--sahne);
}
.notice .ico { font-size: 18px; flex-shrink: 0; line-height: 1.3; }
.notice strong { color: var(--sahne); }
.notice.cyan { background: rgba(0, 229, 255, 0.05); border-color: rgba(0, 229, 255, 0.2); border-left-color: var(--cyan); }
.notice.cyan strong { color: var(--cyan); }

/* Verbindungsstatus */
.offline-hint {
  display: none; font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-dim); padding: 10px 14px; margin-bottom: 14px;
  border: 1px dashed rgba(122, 152, 166, 0.35);
}
.offline-hint.show { display: block; }

/* ═══════════ FUSSZEILE ═══════════ */

.footer {
  margin-top: 70px; padding: 28px 0; border-top: 1px solid var(--cyan-border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
}
.footer .brand-line { color: var(--cyan); }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }


/* ── Patchnotes: NEU-Markierung und Umschalter ──
   Bei rund 200 Zeilen auf der Seite nützt ein Abzeichen wenig, wenn man erst danach suchen
   muss — deshalb zusätzlich der Filter. Gold statt Cyan, damit es sich von den Überschriften
   absetzt und nicht mit der Kategoriefarbe verwechselt wird. */
.patch-neu {
  display: inline-block; margin-right: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 2px 7px; vertical-align: 1px;
  color: var(--gold); background: rgba(255, 205, 60, 0.12);
  border: 1px solid rgba(255, 205, 60, 0.45);
}
.patch-neu-zahl {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 8px; color: var(--gold);
  background: rgba(255, 205, 60, 0.12); border: 1px solid rgba(255, 205, 60, 0.45);
}
.patch-block-neu {
  margin-left: 10px; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); opacity: 0.85;
}

.patch-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.patch-schalter {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 7px 13px; cursor: pointer;
  color: var(--cyan-soft); background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.28);
  transition: all 0.22s ease;
}
.patch-schalter:hover { color: var(--cyan); border-color: var(--cyan-border); background: rgba(0, 229, 255, 0.12); }
.patch-schalter.aktiv {
  color: var(--gold); border-color: rgba(255, 205, 60, 0.5);
  background: rgba(255, 205, 60, 0.12);
}

/* Nur-Neu-Ansicht: alte Punkte weg, und Blöcke ohne neue Punkte gleich mit —
   data-neu am Block spart das :has(), das ältere Browser noch nicht können. */
.patch-item.nur-neu li:not(.neu) { display: none; }
.patch-item.nur-neu .patch-block[data-neu="0"] { display: none; }

/* ═══════════ SOCIALS (nur die Karten der Startseite) ═══════════ */

/* Startseite: die größere Fassung mit einer Zeile Erklärung.
   Der Leuchtrand ist ein zweifarbiger Verlauf über border-box — eine echte Rahmenfarbe kann
   keinen Verlauf, und ein zusätzliches Element nur für den Rand wäre Verschwendung. */
.social-card {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(120deg, rgba(0, 229, 255, 0.75), rgba(153, 51, 255, 0.6)) border-box;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.16), inset 0 0 22px rgba(0, 229, 255, 0.05);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
/* Der graue Standard-Balken der Karte würde den Leuchtrand nur zerschneiden */
.social-card::before { display: none; }
.social-card svg {
  flex-shrink: 0; color: var(--cyan);
  filter: drop-shadow(0 0 7px rgba(0, 229, 255, 0.8));
  transition: filter 0.28s ease, transform 0.28s ease;
}
.social-card h3 {
  font-size: 14.5px; margin-bottom: 3px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}
.social-card p { font-size: 14px; color: var(--text-dim); line-height: 1.45; }
.social-card:hover {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.45), 0 0 60px rgba(153, 51, 255, 0.28),
              inset 0 0 26px rgba(0, 229, 255, 0.1);
  transform: translateY(-3px);
}
.social-card:hover svg { filter: drop-shadow(0 0 13px var(--cyan)); transform: scale(1.08); }
.social-card:hover h3 { text-shadow: 0 0 16px var(--cyan); }

/* Wer Bewegung im Betriebssystem abgeschaltet hat, bekommt das Leuchten ohne Verschieben */
@media (prefers-reduced-motion: reduce) {
  .social:hover, .social-card:hover { transform: none; }
  .social-card:hover svg { transform: none; }
}

@media (max-width: 640px) {
  /* Auf dem Handy steht die Fußzeile ohnehin untereinander — die Reihe darf dort breiter laufen */
  .socials { gap: 10px; }
  .social { padding: 6px 9px; }
}

/* ═══════════ HILFSKLASSEN ═══════════ */

.cy { color: var(--cyan); }
.gd { color: var(--gold); }
.dim { color: var(--text-dim); }
.mono { font-family: 'JetBrains Mono', monospace; }
.center { text-align: center; }
.skeleton { color: var(--text-dim); opacity: 0.5; }

/* ═══════════ MOBIL ═══════════ */

@media (max-width: 760px) {
  .container { padding: 0 18px 60px; }
  .topbar-inner { padding: 12px 18px; gap: 14px; }
  .brand > span { font-size: 17px; }
  .brand-logo { height: 26px; }
  /* Mit neun Einträgen brach die Leiste auf drei Zeilen um und fraß 175px vom
     Bildschirm, bevor überhaupt Inhalt kam. Deshalb hier eine einzige Zeile
     zum seitlichen Wischen statt Umbruch — die Kopfleiste bleibt flach. */
  .nav {
    width: 100%; margin-left: 0; gap: 4px;
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    /* Andeutung am rechten Rand, dass es weitergeht */
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 11px; font-size: 10px; flex: none; }
  .page-head { padding: 36px 0 26px; }
  .page-head .lead { font-size: 16px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .event { flex-direction: column; gap: 8px; }
  .event .when { min-width: 0; }
  .section-head .right { display: none; }
  details.explain .body { padding-left: 20px; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 10px 8px; }
  .ref-box { padding: 20px; }
  .ref-code { font-size: 16px; flex-wrap: wrap; }
  .footer { flex-direction: column; align-items: flex-start; }
}
