/* Theme „Winter“ (theme-winter) – ruhig: Eisblau und Weiß, sanfter Schnee, Frost und Eiskristall – ohne Weihnachtsschmuck
   Nur Farben und Dekoration. Layout, Texte und Funktionen bleiben unverändert. */

:root {
  --blue: #2A74C8; --blue-700: #2262AB; --blue-800: #1B5090; --blue-100: #D6E6F7; --blue-50: #EDF4FC;
  /* Akzent: Eisblau statt Gelb */
  --yellow: #8ED2FF; --yellow-600: #6BBDF2; --yellow-700: #0B5A96; --yellow-100: #E2F3FF;
  --navy-900: #0F2D55; --navy-950: #081C3A;
  --paper: #F1F6FB; --paper-2: #E2EBF5;
  --ink: #0E2340; --ink-2: #31496A; --muted: #587090;
  --line: #D3DFEC; --line-2: #BECFE2;
  --shadow-sm: 0 1px 2px rgba(8, 28, 58, .06), 0 1px 1px rgba(8, 28, 58, .04);
  --shadow: 0 10px 30px -12px rgba(8, 28, 58, .22), 0 2px 6px rgba(8, 28, 58, .05);
  --shadow-lg: 0 30px 60px -20px rgba(8, 28, 58, .36);
  --t-accent-rgb: 142, 210, 255; --t-accent-hover: #B3E1FF; --t-accent-soft: #D4EEFF;
  --t-glow-rgb: 142, 210, 255;
  --t-blue-rgb: 42, 116, 200;
  --t-ink-rgb: 8, 28, 58;
  --t-hero-rgb: 8, 28, 58;
  --t-topbar: #051326;
  --t-header: rgba(8, 28, 58, .92);
  --t-header-line: rgba(142, 210, 255, .32);
  --t-header-line-on: rgba(142, 210, 255, .5);
  --t-player: rgba(8, 28, 58, .96);
  --t-card-a: rgba(17, 58, 112, .86);
  --t-card-b: rgba(5, 20, 44, .94);
  --t-card-hover: rgba(17, 58, 112, .7);
  --t-wx-b: #1B5A9E;
}

/* Eisige Kante unter der Kopfzeile */
html[data-theme] .site-header::after {
  left: 0; right: 0; top: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, #EAF6FF 18%, #8ED2FF 50%, #EAF6FF 82%, transparent);
  box-shadow: 0 0 16px rgba(142, 210, 255, .55); opacity: .9;
}
/* Frostmuster links oben, Eiskristall rechts oben im Hero (hinter dem Text) */
html[data-theme] .hero::before {
  --w: clamp(150px, 20vw, 290px); top: 0; left: 0; width: var(--w); height: var(--w);
  background: url("frost.svg") no-repeat left top / contain; opacity: .55;
}
html[data-theme] .hero::after {
  --w: clamp(96px, 13vw, 190px); top: 7%; right: 5%; width: var(--w); height: var(--w);
  background: url("crystal.svg") no-repeat center / contain; opacity: .5;
}
@media (max-width: 640px) {
  html[data-theme] .hero::before { --w: 120px; opacity: .4; }
  html[data-theme] .hero::after { --w: 78px; right: 4%; opacity: .35; }
}

/* Schnee: Die Flocken zeichnet fx.js (Anzahl, Größe und Tempo passen sich an Bildschirm, Pixeldichte und Drehung an).
   Hier nur der Rückfall ohne JavaScript: zwei Ebenen, die mit der Bildschirmbreite mitwachsen. */
.theme-fx__a { --tile: clamp(560px, 36vw, 860px); top: calc(var(--tile) * -1); background-image: url("flakes.svg"); background-size: var(--tile) var(--tile); opacity: .95; }
.theme-fx__b { --tile: clamp(400px, 26vw, 620px); top: calc(var(--tile) * -1); background-image: url("flakes-far.svg"); background-size: var(--tile) var(--tile); opacity: .75; }
.theme-fx__c { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .theme-fx__a { animation: t-wi-fall-a 46s linear infinite; }
  .theme-fx__b { animation: t-wi-fall-b 64s linear infinite; }
  html[data-theme] .hero::after { animation: t-wi-spin 240s linear infinite; }
  html[data-theme] .site-header::after { animation: t-wi-glint 6s ease-in-out infinite alternate; }
}
@keyframes t-wi-fall-a { to { transform: translate3d(0, var(--tile), 0); } }
@keyframes t-wi-fall-b { to { transform: translate3d(0, var(--tile), 0); } }
@keyframes t-wi-spin { to { transform: rotate(360deg); } }
@keyframes t-wi-glint { from { opacity: .6; } to { opacity: 1; } }
