/* Halloween-Event 2026: wird von halloween.js nur bei AKTIVEM Event eingeschaltet (html.halloween). Ohne die Klasse greift keine Regel hier.
   Orange #ff7a00, Lila #8a2be2/#b000ff, Dunkel #120a1a. Wird NACH theme.css geladen und ueberschreibt Variablen und die fest verdrahteten Cyan-Stellen.
   Kein eigenes nav-CSS (siehe Falle in CLAUDE.md): nav.sn wird nur ueber vorhandene Selektoren in der Farbe angepasst. */

/* ---------- Variablen: hell ---------- */
html.halloween {
  --accent: #ff7a00;
  --accent-dark: #d96400;
  --accent-ink: #b34700;
  --card-hover: #fff4e8;
  --hw-purple: #8a2be2;
  --hw-grad: linear-gradient(135deg, #e85d00 0%, #7a22c8 100%);
  --hw-grad-text: linear-gradient(315deg, #8a2be2 0%, #ff7a00 100%);
}
html.halloween ::selection { background: #ff7a00; color: #120a1a; }

/* ---------- Variablen: dunkel (Violett-Schwarz #120a1a) ---------- */
html.dark.halloween {
  --bg: #120a1a; --bg-alt: #181022; --card: #1c1229; --card-hover: #251a35;
  --card-border: #33264a; --border: #33264a; --card-2: #251a35;
  --accent: #ff8a1f; --accent-dark: #ff9a3d; --accent-ink: #ffa24d;
  --hw-grad: linear-gradient(135deg, #ff9a2e 0%, #c58bff 100%);
  --hw-grad-text: linear-gradient(315deg, #d08bff 0%, #ff9a2e 100%);
  --shadow: 0 10px 30px rgba(0,0,0,.55); --shadow-sm: 0 2px 10px rgba(0,0,0,.45);
}
html.dark.halloween ::selection { background: #ff8a1f; color: #120a1a; }

/* ---------- Hero / Titelbereiche ---------- */
html.halloween .hero { background: linear-gradient(0deg, rgba(255,255,255,0) 10%, #fff1e3 60%, rgba(255,255,255,0) 100%) !important; }
html.halloween .pl-hero { background: linear-gradient(0deg, #fff 10%, #fff1e3 60%, #fff 100%); }
html.dark.halloween .hero, html.dark.halloween .pl-hero { background: linear-gradient(0deg, transparent 10%, #2b1238 60%, transparent 100%) !important; }
html.halloween .hero h1 .hero-hl, html.halloween .tp-hero h1 b {
  background: var(--hw-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
html.halloween .hero-badge { background: rgba(255,122,0,.12) !important; }
html.dark.halloween .hero-badge { background: rgba(255,138,31,.18) !important; }
html.halloween .tp-chip { color: var(--accent-ink); background: rgba(255,122,0,.14); }
html.halloween .mode-card .mode-tag { background: rgba(255,122,0,.14); }
html.halloween .rank-card.hot { box-shadow: 0 14px 34px rgba(255,122,0,.2); }
html.dark.halloween .rank-card.hot { box-shadow: 0 14px 34px rgba(255,138,31,.16); }

/* ---------- Buttons: Verlauf Orange -> Lila ---------- */
html.halloween .btn:not(.ghost):not(.btn-ghost):not(.btn-secondary):not(.btn-discord):not(.discord),
html.halloween .btn-primary, html.halloween .btn-play,
html.halloween nav.sn .sn-cta,
html.halloween .pl-btn:not(.white), html.halloween .tp-btn:not(.white):not(.hw-ghost):not(.hw-btn-ghost),
html.halloween .pl-copy, html.halloween .lc-top {
  background: var(--hw-grad); color: #fff;
}
html.halloween nav.sn .sn-cta, html.halloween .pl-btn:not(.white), html.halloween .tp-btn:not(.white):not(.hw-ghost):not(.hw-btn-ghost) { color: #fff !important; }
html.dark.halloween .btn:not(.ghost):not(.btn-ghost):not(.btn-secondary):not(.btn-discord):not(.discord),
html.dark.halloween .btn-primary, html.dark.halloween .btn-play,
html.dark.halloween .pl-copy, html.dark.halloween .lc-top { color: #1a0b05; }
html.dark.halloween nav.sn .sn-cta, html.dark.halloween .pl-btn:not(.white), html.dark.halloween .tp-btn:not(.white):not(.hw-ghost):not(.hw-btn-ghost) { color: #1a0b05 !important; }
html.halloween .lc-top { box-shadow: 0 10px 26px rgba(255,122,0,.4); }

/* ---------- Symbol-Kacheln (Verlauf) ---------- */
html.halloween .pl-tile .ic, html.halloween .tp-tile i, html.halloween .rp-tip i, html.halloween .st-hubcard .ic { background: linear-gradient(135deg, #e85d00 0%, #8a2be2 100%); color: #fff; }

/* ---------- Seiten-Komponenten mit festem Cyan ---------- */
html.halloween .pl-steps li::before { background: rgba(255,122,0,.15); color: var(--accent-ink); }
html.halloween .pl-steps code, html.halloween .ps-cmds code, html.halloween .ps-modes code { background: #fff1e3; color: #b34700; }
html.dark.halloween .pl-steps code, html.dark.halloween .ps-cmds code, html.dark.halloween .ps-modes code { background: rgba(255,138,31,.16); color: var(--accent-ink); }
html.halloween .pl-checks li::before { background-color: #e85d00; }
html.halloween .pl-tab.on { color: var(--accent-ink); }
html.halloween .pl-step-card { background: linear-gradient(160deg, #fff4e8, #fff); border-color: #ffd9b3; }
html.dark.halloween .pl-step-card { background: linear-gradient(160deg, #2a1636, var(--card)); border-color: #4a2b63; }
html.halloween .pl-step-card small { color: var(--accent-ink); }
html.halloween .topic-num { color: var(--accent-ink) !important; background: rgba(255,122,0,.14) !important; }
html.halloween .lc-s-list a em { color: var(--accent-ink); background: rgba(255,122,0,.14); }

/* ---------- Header / Footer (nur Farben der vorhandenen Selektoren) ---------- */
html.halloween nav.sn .sn-mega-head { border-bottom-color: #ff7a00; }
html.halloween nav.sn .sn-mega-head a, html.halloween nav.sn .sn-links > a.sn-shop { color: var(--accent-ink); }
html.halloween nav.sn .sn-col a:hover, html.halloween nav.sn .sn-mega-side a:hover { color: var(--accent-ink); }
html.halloween footer.sf .sf-social a:hover { color: var(--accent-ink); border-color: #ff7a00; }
html.halloween .hw-navlink { color: var(--accent-ink) !important; font-weight: 800; }
html.dark.halloween nav.sn { background: rgba(18,10,26,.9); }
html.dark.halloween nav.sn .sn-theme, html.dark.halloween nav.sn .nav-toggle, html.dark.halloween nav.sn .sn-search { background: #251a35; }
html.dark.halloween nav.sn .sn-links > a:hover, html.dark.halloween nav.sn .sn-dd-btn:hover, html.dark.halloween nav.sn .sn-dd:hover > .sn-dd-btn, html.dark.halloween nav.sn .sn-dd.open > .sn-dd-btn { background: #251a35; }
html.dark.halloween footer.sf { background: #0d0714; }
html.dark.halloween section.dark { background: #0a0510; }

/* ---------- Banner oben (nur im DOM, wenn das Event aktiv ist) ---------- */
.hw-bar { position: relative; z-index: 61; overflow: hidden; color: #fff; font-family: var(--font, 'Nunito', system-ui, sans-serif); font-size: 14px; font-weight: 700; line-height: 1.35; background: linear-gradient(90deg, #2b0f4a 0%, #5b1d8f 50%, #a84a00 100%); }
.hw-bar-in { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 9px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; text-align: center; }
.hw-bar a.hw-bar-link { color: #fff; text-decoration: none; }
.hw-bar a.hw-bar-link:hover, .hw-bar a.hw-bar-link:focus-visible { text-decoration: underline; }
.hw-bar-pump { display: inline-flex; width: 22px; height: 22px; flex: none; }
.hw-bar-pump svg { width: 22px; height: 22px; }
.hw-count { background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 2px 11px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Spinnennetze in den Banner-Ecken */
.hw-bar::before, .hw-bar::after { content: ''; position: absolute; top: 0; width: 46px; height: 46px; opacity: .38; pointer-events: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='white' stroke-width='1.2'><path d='M0 0H60M0 0L56 22M0 0L42 42M0 0L22 56M0 0V60M18 0Q14 14 0 18M36 0Q28 28 0 36M54 0Q44 44 0 54'/></svg>") no-repeat 0 0 / contain; }
.hw-bar::before { left: 0; }
.hw-bar::after { right: 0; transform: scaleX(-1); }
@media (max-width: 600px) {
  .hw-bar { font-size: 13px; }
  .hw-bar-in { padding: 0 40px; }
  .hw-bar a.hw-bar-link { display: inline-flex; align-items: center; min-height: 44px; }
  .hw-bar-pump { display: none; }
  .hw-bar::before, .hw-bar::after { width: 34px; height: 34px; }
}

/* ---------- Deko ---------- */
.hw-deco { position: fixed; left: 16px; bottom: 16px; z-index: 40; width: 50px; height: 50px; pointer-events: none; opacity: .94; filter: drop-shadow(0 0 10px rgba(255,122,0,.55)); transform-origin: 50% 90%; animation: hw-sway 4.5s ease-in-out infinite; }
.hw-deco svg { width: 100%; height: 100%; }
@keyframes hw-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (max-width: 700px) { .hw-deco { display: none; } }
@media (prefers-reduced-motion: reduce) { .hw-deco { animation: none; } }
@media print { .hw-bar, .hw-deco { display: none; } }
/* Spinnennetz in der Fusszeilen-Ecke */
html.halloween footer.sf { position: relative; }
html.halloween footer.sf::before { content: ''; position: absolute; top: 0; left: 0; width: 84px; height: 84px; opacity: .5; pointer-events: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23b34700' stroke-width='1.1'><path d='M0 0H60M0 0L56 22M0 0L42 42M0 0L22 56M0 0V60M18 0Q14 14 0 18M36 0Q28 28 0 36M54 0Q44 44 0 54'/></svg>") no-repeat 0 0 / contain; }
html.dark.halloween footer.sf::before { opacity: .55; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23ffa24d' stroke-width='1.1'><path d='M0 0H60M0 0L56 22M0 0L42 42M0 0L22 56M0 0V60M18 0Q14 14 0 18M36 0Q28 28 0 36M54 0Q44 44 0 54'/></svg>"); }
@media (max-width: 700px) { html.halloween footer.sf::before { width: 56px; height: 56px; } }

/* =====================================================================================================
   Schaurig-Schicht (11.10.2026): Fledermaeuse, Geister, Nebel, Blitze, leuchtende Augen, Blut-Tropfen, Friedhof, Flackern.
   Alles nur bei html.halloween; Elemente erzeugt halloween.js (#hw-fx). Reduzierte Bewegung: keine Animation.
   ===================================================================================================== */

/* Rangfarben in den dunklen Bereichen immer in den hellen Varianten (sonst unlesbar auf Schwarz) */
html.halloween section.dark, html.halloween .dark {
  --mc-0: #7b8794; --mc-1: #7c7cff; --mc-2: #2fc02f; --mc-3: #25c4c4; --mc-4: #ff5e5e; --mc-5: #d85cd8; --mc-6: #ffb02e; --mc-7: #aab4bf;
  --mc-8: #8a96a3; --mc-9: #7b7bff; --mc-a: #55ff55; --mc-b: #55ffff; --mc-c: #ff6b6b; --mc-d: #ff7aff; --mc-e: #ffff66; --mc-f: #ffffff;
}
html.halloween section.dark { background: radial-gradient(1200px 500px at 50% 0%, #2a0f3d 0%, #0a0510 70%) !important; }
html.halloween .lb-card { border-color: rgba(255,122,0,.35); box-shadow: 0 0 0 1px rgba(138,43,226,.25), 0 10px 30px rgba(0,0,0,.5); }
html.halloween .lb-card:hover { box-shadow: 0 0 0 1px rgba(255,122,0,.7), 0 0 28px rgba(255,122,0,.35); }

/* Seitenhintergrund: leichter Violett-Schleier und Vignette */
html.halloween body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(40,10,60,.12) 100%); }
html.dark.halloween body::before { background: radial-gradient(ellipse at 50% 30%, transparent 35%, rgba(0,0,0,.35) 100%); }

/* Titel flackern wie eine defekte Laterne */
html.halloween .hero h1, html.halloween .tp-hero h1, html.halloween .pl-hero h1 { animation: hw-flicker 7s infinite; text-shadow: 0 0 22px rgba(255,122,0,.28); }
@keyframes hw-flicker { 0%,19%,21%,23%,100% { opacity: 1; } 20%,22% { opacity: .55; } 60% { opacity: .92; } 61% { opacity: 1; } }

/* Effekt-Ebene */
#hw-fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
#hw-fx * { pointer-events: none; }
.hw-fog { position: absolute; left: -20%; right: -20%; bottom: -6%; height: 34%; opacity: .55; background: radial-gradient(60% 100% at 30% 100%, rgba(190,150,255,.20), transparent 70%), radial-gradient(55% 100% at 75% 100%, rgba(255,150,60,.14), transparent 70%); animation: hw-fog 38s ease-in-out infinite alternate; }
.hw-fog.b { height: 24%; opacity: .45; animation-duration: 55s; animation-direction: alternate-reverse; }
@keyframes hw-fog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

.hw-bat { position: absolute; left: -90px; width: 54px; height: 28px; color: #1b0f26; opacity: .85; animation: hw-fly var(--d, 24s) linear var(--delay, 0s) infinite; top: var(--y, 20%); }
html.dark.halloween .hw-bat { color: #000; filter: drop-shadow(0 0 4px rgba(255,122,0,.45)); }
.hw-bat svg { width: 100%; height: 100%; animation: hw-flap .32s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes hw-fly { 0% { transform: translate(0, 0); } 25% { transform: translate(30vw, 28px); } 50% { transform: translate(60vw, -22px); } 75% { transform: translate(85vw, 30px); } 100% { transform: translate(115vw, -10px); } }
@keyframes hw-flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }

.hw-ghost { position: absolute; bottom: -90px; width: 62px; height: 78px; opacity: 0; left: var(--x, 20%); animation: hw-float var(--d, 40s) ease-in-out var(--delay, 0s) infinite; filter: drop-shadow(0 0 12px rgba(220,200,255,.7)); }
.hw-ghost svg { width: 100%; height: 100%; }
@keyframes hw-float { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .30; } 50% { transform: translate(70px, -55vh); opacity: .22; } 90% { opacity: .26; } 100% { transform: translate(-30px, -115vh); opacity: 0; } }

.hw-eyes { position: absolute; left: var(--x, 3%); top: var(--y, 60%); width: 34px; height: 10px; opacity: 0; animation: hw-blink var(--d, 14s) steps(1) var(--delay, 0s) infinite; }
.hw-eyes::before, .hw-eyes::after { content: ''; position: absolute; top: 0; width: 11px; height: 8px; border-radius: 50% 50% 45% 45%; background: #ffcc33; box-shadow: 0 0 10px 3px rgba(255,150,0,.75); }
.hw-eyes::before { left: 0; } .hw-eyes::after { right: 0; }
@keyframes hw-blink { 0%, 100% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: .1; } 14% { opacity: 1; } 30% { opacity: 1; } 32% { opacity: 0; } }

.hw-flash { position: absolute; inset: 0; background: rgba(230,215,255,.0); animation: hw-lightning 23s linear infinite; }
@keyframes hw-lightning { 0%, 96.2%, 97.4%, 100% { background: rgba(230,215,255,0); } 96.4% { background: rgba(235,225,255,.34); } 96.9% { background: rgba(235,225,255,.08); } 97.1% { background: rgba(235,225,255,.28); } }

/* Blut-Tropfen am unteren Rand des Banners */
.hw-drips { position: absolute; left: 0; right: 0; bottom: -17px; height: 18px; pointer-events: none; z-index: 2; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='18' viewBox='0 0 160 18'><path fill='%238b0000' d='M0 0H160V3C150 3 148 9 147 15C146 18 143 18 142 15C141 9 139 3 128 3C121 3 120 6 119 9C118 11 115 11 114 9C113 6 112 3 102 3C92 3 91 5 90 8C89 12 85 12 84 8C83 5 82 3 68 3C60 3 59 7 58 12C57 16 53 16 52 12C51 7 50 3 40 3C30 3 29 5 28 9C27 13 23 13 22 9C21 5 20 3 10 3C5 3 3 4 0 4Z'/></svg>") repeat-x 0 0 / 160px 18px; opacity: .92; }

/* Friedhof als Silhouette an der Oberkante der Fusszeile */
html.halloween footer.sf::after { content: ''; position: absolute; left: 0; right: 0; top: -38px; height: 40px; pointer-events: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='40' viewBox='0 0 420 40'><g fill='%231a0b2a'><path d='M0 40V30H18V22Q18 14 26 14Q34 14 34 22V30H60V40Z'/><path d='M80 40V26L88 26V18H92V26H100V30H92V40Z'/><path d='M130 40V24Q130 16 140 16Q150 16 150 24V40Z'/><path d='M190 40V22L197 12L204 22V40Z'/><path d='M240 40V28H256V20Q256 12 264 12Q272 12 272 20V28H290V40Z'/><path d='M320 40V25H326V20H330V25H336V29H330V40Z'/><path d='M350 40Q352 28 360 24L358 14L364 22L372 12L372 24Q384 28 386 40Z'/><path d='M398 40V26Q398 19 406 19Q414 19 414 26V40Z'/></g></svg>") repeat-x 0 100% / 420px 40px; }
html.dark.halloween footer.sf::after { filter: brightness(.55) drop-shadow(0 -2px 6px rgba(255,122,0,.18)); }

/* Karten / Kacheln leuchten beim Ueberfahren */
html.halloween .mode-card:hover, html.halloween .pl-tile:hover, html.halloween .tp-tile:hover, html.halloween .rank-card:hover { box-shadow: 0 0 0 1px rgba(255,122,0,.55), 0 14px 38px rgba(255,122,0,.22); }

@media (max-width: 700px) { .hw-ghost, .hw-eyes { display: none; } .hw-bat { width: 38px; height: 20px; } }
@media (prefers-reduced-motion: reduce) {
  html.halloween .hero h1, html.halloween .tp-hero h1, html.halloween .pl-hero h1, .hw-fog, .hw-bat, .hw-bat svg, .hw-ghost, .hw-eyes, .hw-flash { animation: none !important; }
  .hw-bat, .hw-ghost, .hw-eyes { display: none; }
}
@media print { #hw-fx, .hw-drips { display: none; } }

/* Heller Modus: Kopfleiste warm statt grau ueber dunklen Abschnitten */
html.halloween:not(.dark) nav.sn { background: rgba(255,246,236,.95); border-bottom: 1px solid rgba(255,122,0,.25); }

/* Discord-Banner im Halloween-Stil: lila Verlauf statt Discord-Blau (der orange Button passte nicht zum Blau) */
html.halloween .dc-cta { background: linear-gradient(120deg, #2b0f4a 0%, #5b1d8f 55%, #8a3a00 100%) !important; box-shadow: 0 14px 40px rgba(91,29,143,.35); }
html.halloween .dc-cta .btn { background: #ff8a1f !important; color: #1a0b05 !important; }

/* =====================================================================================================
   Startseite: Halloween-Schaufenster (#hw-home) und Hero-Button. Ohne html.halloween bleibt alles unsichtbar.
   ===================================================================================================== */
#hw-home { display: none; }
.hw-only { display: none !important; }
html.halloween #hw-home { display: block; padding: 8px 0 8px; position: relative; z-index: 2; }
html.halloween .hw-only { display: inline-flex !important; background: var(--hw-grad); color: #fff; border: 0; }
html.dark.halloween .hw-only { color: #1a0b05; }

.hwh-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: center;
  border-radius: 28px; padding: 44px 48px; color: #fff;
  background: radial-gradient(900px 380px at 85% 40%, rgba(255,122,0,.34), transparent 60%), linear-gradient(125deg, #1a0a2b 0%, #3b1466 55%, #5a2a00 120%);
  box-shadow: 0 24px 60px rgba(60,10,100,.38), inset 0 0 0 1px rgba(255,160,70,.28);
}
.hwh-card::before { /* Spinnennetz oben links */
  content: ''; position: absolute; top: 0; left: 0; width: 140px; height: 140px; opacity: .35; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23ffd9b3' stroke-width='.9'><path d='M0 0L60 60M0 14L46 60M0 28L32 60M0 42L18 60M14 0L60 46M28 0L60 32M42 0L60 18'/><path d='M0 8Q10 10 8 0M0 20Q18 22 20 0M0 33Q26 34 33 0M0 46Q34 46 46 0M0 58Q42 58 58 0'/></svg>") no-repeat left top / contain;
}
.hwh-main { position: relative; z-index: 1; }
.hwh-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffc27a; margin-bottom: 14px; }
.hwh-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff7a00; box-shadow: 0 0 0 0 rgba(255,122,0,.7); animation: hwh-pulse 1.8s infinite; }
@keyframes hwh-pulse { 70% { box-shadow: 0 0 0 11px rgba(255,122,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,0,0); } }
.hwh-card h2 { margin: 0 0 14px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; font-weight: 900; letter-spacing: -.02em; color: #fff; }
.hwh-card h2 b { background: linear-gradient(315deg, #d08bff, #ff9a2e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hwh-card p { margin: 0 0 20px; max-width: 560px; font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,.86); }
.hwh-card p strong { color: #ffc27a; }
.hwh-timer { display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 18px; border-radius: 16px; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.2); margin-bottom: 22px; }
.hwh-timer small { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 700; }
.hwh-timer span { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; color: #ffb35a; }
.hwh-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hwh-cta .btn { min-height: 48px; background: linear-gradient(135deg, #ff9a2e, #ff6a00); color: #1a0b05; border: 0; }
.hwh-cta .btn.btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.hwh-art { position: relative; z-index: 1; display: flex; justify-content: center; }
.hwh-pumpkin { width: min(100%, 300px); filter: drop-shadow(0 0 26px rgba(255,122,0,.65)); animation: hwh-bob 5.5s ease-in-out infinite; }
.hwh-glow { position: absolute; inset: 20% 12% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255,150,40,.4), transparent 68%); filter: blur(10px); z-index: -1; animation: hwh-flick 3.2s infinite; }
@keyframes hwh-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes hwh-flick { 0%,100% { opacity: 1; } 42% { opacity: .75; } 46% { opacity: 1; } 78% { opacity: .85; } }

.hwh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.hwh-tile {
  display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 3px; align-items: center; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--card-border, var(--border)); border-radius: 20px; padding: 18px 20px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hwh-tile i { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #e85d00 0%, #8a2be2 100%); }
.hwh-tile i svg { width: 24px; height: 24px; }
.hwh-tile b { font-size: 16px; font-weight: 800; align-self: end; }
.hwh-tile span { font-size: 13.5px; line-height: 1.45; color: var(--text-dim); align-self: start; }
.hwh-tile:hover { transform: translateY(-3px); border-color: #ff7a00; box-shadow: 0 14px 34px rgba(255,122,0,.22); }
html.dark.halloween .hwh-card { box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,160,70,.3); }

@media (max-width: 900px) {
  .hwh-card { grid-template-columns: 1fr; padding: 32px 24px; text-align: left; }
  .hwh-art { order: -1; }
  .hwh-pumpkin { width: 150px; }
  .hwh-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .hwh-grid { grid-template-columns: 1fr; } .hwh-card h2 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { .hwh-pumpkin, .hwh-glow, .hwh-dot { animation: none; } }
@media print { #hw-home { display: none !important; } }

/* =====================================================================================================
   Halloween-Seite (halloween.html), ausfuehrliche Fassung 12.10.2026.
   Alles mit Praefix .hw- (Achtung: .hw-ghost, .hw-bat, .hw-fog, .hw-eyes, .hw-count, .hw-bar, .hw-deco gehoeren der Effekt-Ebene oben).
   Gilt in hell und dunkel; Farben kommen aus den Variablen von theme.css (Orange/Lila kommt per html.halloween). Die Titelbilder
   (.hw-banner) sind bewusst immer dunkle Nachtszenen mit weisser Schrift.
   ===================================================================================================== */
#hw-live {
  --hw-o: #ff7a00; --hw-p: #8a2be2; --hw-night: #12081c;
  --hw-g-strong: linear-gradient(135deg, #c04a00 0%, #6b21a8 100%);
  --hw-g-text: linear-gradient(135deg, #b34700 0%, #6b21a8 100%);
  --hw-on-strong: #fff;
  --hw-nav: 71px;
  --hw-offset: 150px;
}
html.dark #hw-live {
  --hw-g-strong: linear-gradient(135deg, #ff9a2e 0%, #c58bff 100%);
  --hw-g-text: linear-gradient(135deg, #ffa24d 0%, #d4a0ff 100%);
  --hw-on-strong: #1a0b05;
}
html:has(#hw-jump) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(#hw-jump) { scroll-behavior: auto; } }
#hw-live .hw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#hw-live code { word-break: break-word; }
#hw-live .hw-ic { width: 1em; height: 1em; vertical-align: -.14em; flex: none; }

/* ---------- Kopfbereich: Nachtszene ---------- */
.hw-hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 88px 24px 0; color: #fff;
  background: radial-gradient(760px 380px at 80% 6%, rgba(255,122,0,.34), transparent 64%), radial-gradient(640px 360px at 8% 0%, rgba(138,43,226,.42), transparent 62%), linear-gradient(180deg, #12081c 0%, #241038 55%, #42195c 100%); }
.hw-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .85; pointer-events: none;
  background-image: radial-gradient(2px 2px at 8% 22%, #fff 50%, transparent), radial-gradient(1.6px 1.6px at 19% 62%, #fff 50%, transparent), radial-gradient(2px 2px at 31% 14%, #ffe9c4 50%, transparent), radial-gradient(1.4px 1.4px at 44% 40%, #fff 50%, transparent), radial-gradient(1.8px 1.8px at 57% 18%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 66% 54%, #ffe9c4 50%, transparent), radial-gradient(2px 2px at 76% 30%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 88% 66%, #fff 50%, transparent), radial-gradient(1.8px 1.8px at 93% 16%, #fff 50%, transparent), radial-gradient(1.4px 1.4px at 3% 74%, #fff 50%, transparent);
  animation: hw-twinkle 7s ease-in-out infinite alternate; }
@keyframes hw-twinkle { from { opacity: .45; } to { opacity: .95; } }
.hw-hero .tp-in { position: relative; z-index: 2; max-width: 880px; padding-bottom: 176px; }
html .hw-hero .tp-chip { background: rgba(255,255,255,.14); color: #ffd9b0; border: 1px solid rgba(255,255,255,.22); }
.hw-hero h1 { color: #fff; text-shadow: 0 4px 44px rgba(255,122,0,.4); }
html .hw-hero h1 b { background: linear-gradient(315deg, #d08bff 0%, #ff9a2e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hw-hero p { color: rgba(255,255,255,.9); }
.hw-hero .hw-timer { background: rgba(0,0,0,.38); border-color: rgba(255,255,255,.24); color: #ffc27a; box-shadow: none; }
.hw-hero .hw-timer small { color: rgba(255,255,255,.72); }
html body .hw-hero .hw-cta a.tp-btn { background: linear-gradient(135deg, #ff9a2e, #ff6a00); color: #1a0b05 !important; box-shadow: 0 10px 28px rgba(255,106,0,.38); }
html body .hw-hero .hw-cta a.tp-btn.hw-btn-ghost { background: rgba(255,255,255,.08); color: #fff !important; border: 1.5px solid rgba(255,255,255,.42); box-shadow: none; }
html body .hw-hero .hw-cta a.tp-btn.hw-btn-ghost:hover { border-color: #ffb35a; background: rgba(255,255,255,.14); }
.hw-moon { position: absolute; z-index: 0; top: 40px; right: max(24px, 9%); width: 112px; height: 112px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 36% 34%, #fff6e0 0 26%, #ffd9a0 62%, #ffb35a 100%); box-shadow: 0 0 56px 18px rgba(255,170,80,.34), 0 0 150px 64px rgba(255,122,0,.16); }
.hw-moon::before, .hw-moon::after { content: ''; position: absolute; border-radius: 50%; background: rgba(190,120,50,.28); }
.hw-moon::before { width: 22px; height: 22px; left: 58%; top: 24%; }
.hw-moon::after { width: 14px; height: 14px; left: 30%; top: 58%; }
.hw-hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 170px; z-index: 1; display: block; pointer-events: none; }
.hw-hero-art .hw-glow { filter: drop-shadow(0 0 9px rgba(255,140,30,.85)); }
.hw-hbat { position: absolute; z-index: 1; width: 44px; height: 23px; color: #07040c; opacity: .92; left: -60px; top: var(--y, 30%); animation: hw-hbat var(--d, 18s) linear var(--delay, 0s) infinite; pointer-events: none; }
.hw-hbat svg { width: 100%; height: 100%; display: block; }
@keyframes hw-hbat { 0% { transform: translate(0, 0); } 30% { transform: translate(34vw, 22px); } 60% { transform: translate(68vw, -18px); } 100% { transform: translate(calc(100vw + 120px), 14px); } }

/* ---------- Sprungnavigation ---------- */
.hw-jump { position: sticky; top: var(--hw-nav, 71px); z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--card-border); }
.hw-jump-in { position: relative; max-width: 1100px; margin: 0 auto; }
.hw-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hw-chips::-webkit-scrollbar { display: none; }
.hw-chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 800; text-decoration: none; white-space: nowrap; color: var(--text-dim); background: var(--bg-alt); border: 1px solid var(--card-border); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.hw-chip:hover { border-color: var(--accent); color: var(--text); }
.hw-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hw-chip.on { background: var(--hw-g-strong); color: var(--hw-on-strong); border-color: transparent; }
.hw-jump-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--card-border); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); padding: 0; }
.hw-jump-btn[hidden] { display: none !important; }
.hw-jump-btn svg { width: 18px; height: 18px; }
.hw-jump-btn.prev { left: 6px; }
.hw-jump-btn.next { right: 6px; }
.hw-jump-in::before, .hw-jump-in::after { content: ''; position: absolute; top: 0; bottom: 0; width: 34px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.hw-jump-in::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.hw-jump-in::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.hw-jump-in.l::before, .hw-jump-in.r::after { opacity: 1; }
@media (max-width: 1000px) { #hw-live { --hw-nav: 62px; } }
@media (max-width: 720px) { .hw-chips { padding-left: 14px; padding-right: 14px; gap: 6px; } .hw-jump-btn { display: none !important; } }

/* ---------- Zahlenleiste ---------- */
.hw-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hw-stat { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; padding: 18px 14px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.hw-stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hw-g-strong); }
.hw-stat svg { width: 30px; height: 30px; margin: 4px auto 6px; display: block; }
.hw-stat b { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; color: var(--accent-ink); background: var(--hw-g-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hw-stat span { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--text-dim); }
.hw-stat small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); }
@media (max-width: 1000px) { .hw-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .hw-stat { padding: 14px 10px 12px; } }

/* ---------- Abschnitte ---------- */
.hw-sec { padding: 68px 0 0; scroll-margin-top: var(--hw-offset, 150px); }
.hw-sec.hw-first { padding-top: 40px; }
.hw-anchor { display: block; position: relative; top: calc(-1 * var(--hw-offset, 150px)); visibility: hidden; height: 0; }
.hw-head { margin: 0 0 22px; }
.hw-head h2 { margin: 6px 0 8px; font-size: clamp(30px, 4.2vw, 44px); font-weight: 900; letter-spacing: -.02em; text-align: left; }
.hw-head p { margin: 0; max-width: 720px; color: var(--text-dim); font-size: 17px; line-height: 1.65; }
.hw-kicker { display: inline-block; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; margin-bottom: 12px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hw-head .hw-kicker { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-ink); margin-bottom: 0; }

/* Titelbild-Kacheln */
.hw-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 240px; border-radius: 26px; color: #fff; box-shadow: var(--shadow);
  background: radial-gradient(560px 280px at 82% 28%, color-mix(in srgb, var(--c1, #ff7a00) 52%, transparent), transparent 72%), linear-gradient(120deg, color-mix(in srgb, var(--c2, #5b1d8f) 80%, #07040c) 0%, #12081c 120%); }
.hw-banner-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hw-banner::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,4,18,.8) 0%, rgba(10,4,18,.5) 42%, rgba(10,4,18,0) 74%); }
.hw-banner-txt { position: relative; z-index: 1; padding: 34px 38px; max-width: 580px; }
.hw-banner h2 { margin: 0 0 8px; color: #fff; font-size: clamp(30px, 4.6vw, 48px); font-weight: 900; letter-spacing: -.02em; line-height: 1.06; text-align: left; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hw-banner p { margin: 0; color: rgba(255,255,255,.9); font-size: 17px; font-weight: 600; line-height: 1.55; }
.hw-bob { animation: hw-bob 5.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hw-bob.d2 { animation-duration: 6.4s; animation-delay: -2s; }
.hw-bob.d3 { animation-duration: 4.4s; animation-delay: -1s; }
@keyframes hw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 720px) {
  .hw-banner { min-height: 250px; border-radius: 22px; }
  .hw-banner-txt { padding: 24px 20px; }
  .hw-banner::after { background: linear-gradient(0deg, rgba(10,4,18,.88) 0%, rgba(10,4,18,.55) 55%, rgba(10,4,18,.1) 100%); }
}

/* Inhalt unter dem Titelbild */
.hw-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; margin-top: 22px; align-items: start; }
.hw-body.one { grid-template-columns: minmax(0, 1fr); }
.hw-body.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hw-body > * { min-width: 0; }
.hw-stack { display: grid; gap: 18px; min-width: 0; }
.hw-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); min-width: 0; }
.hw-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 900; letter-spacing: -.01em; }
.hw-card h3 + .hw-sub { margin-top: -4px; }
.hw-card p { margin: 0 0 12px; color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.hw-card p:last-child { margin-bottom: 0; }
.hw-card b, .hw-card strong { color: var(--text); }
.hw-card code, .hw-callout code, .hw-table code, .hw-steps code { background: color-mix(in srgb, var(--accent) 12%, var(--bg-alt)); color: var(--accent-ink); padding: 2px 8px; border-radius: 8px; font-weight: 800; font-size: .94em; }
.hw-sub { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; }
.hw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hw-list li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 15.5px; line-height: 1.6; }
.hw-list li::before { content: ''; position: absolute; left: 3px; top: .5em; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--hw-g-strong); }
.hw-list li b { color: var(--text); }
.hw-note-s { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }

/* Info-Kaesten */
.hw-callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--card-border); border-left: 5px solid var(--cc, var(--accent)); background: color-mix(in srgb, var(--cc, var(--accent)) 8%, var(--card)); min-width: 0; }
.hw-callout > svg { flex: none; width: 26px; height: 26px; margin-top: 1px; color: color-mix(in srgb, var(--cc, var(--accent)) 72%, var(--text)); }
.hw-callout > div { min-width: 0; }
.hw-callout h4 { margin: 0 0 4px; font-size: 16.5px; font-weight: 900; color: var(--text); }
.hw-callout p { margin: 0; color: var(--text-dim); font-size: 15.5px; line-height: 1.65; }
.hw-callout p + p { margin-top: 8px; }
.hw-callout.info { --cc: #2f80ed; }
.hw-callout.tip { --cc: #14a864; }
.hw-callout.warn { --cc: #d98a00; }
.hw-callout.fresh { --cc: #ff7a00; }
.hw-callout.violet { --cc: #8a2be2; }
.hw-gap { margin-top: 18px; }

/* Tabellen */
.hw-tablebox { background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); min-width: 0; }
.hw-tablebox > h3 { margin: 0; padding: 20px 24px 6px; font-size: 20px; font-weight: 900; }
.hw-tablebox > .hw-sub { padding: 0 24px; margin-bottom: 8px; }
.hw-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hw-table th { text-align: left; font-size: 12.5px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); padding: 12px 22px; border-bottom: 2px solid var(--card-border); background: color-mix(in srgb, var(--bg-alt) 70%, transparent); }
.hw-table td { padding: 13px 22px; border-bottom: 1px solid var(--card-border); vertical-align: middle; color: var(--text-dim); line-height: 1.5; }
.hw-table td:first-child { color: var(--text); font-weight: 800; }
.hw-table tbody tr:last-child td { border-bottom: 0; }
.hw-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.hw-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hw-table a { color: var(--accent-ink); font-weight: 800; text-decoration: none; }
.hw-table a:hover { text-decoration: underline; }
.hw-price { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hw-price svg { width: 20px; height: 20px; }
.hw-tag { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--hw-g-strong); color: var(--hw-on-strong); vertical-align: middle; }
.hw-tag.soft { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-ink); }
@media (max-width: 680px) {
  .hw-table thead { display: none; }
  .hw-table, .hw-table tbody, .hw-table tr, .hw-table td { display: block; width: 100%; }
  .hw-table tr { padding: 12px 18px; border-bottom: 1px solid var(--card-border); }
  .hw-table tbody tr:last-child { border-bottom: 0; }
  .hw-table td { padding: 3px 0; border: 0; }
  .hw-table td:first-child { font-size: 16.5px; margin-bottom: 3px; }
  .hw-table td[data-l]::before { content: attr(data-l) ": "; font-weight: 800; color: var(--text); }
  .hw-table tbody tr:hover td { background: none; }
  .hw-tablebox > h3 { padding: 18px 18px 6px; } .hw-tablebox > .hw-sub { padding: 0 18px; }
}

/* Haeufigkeitsstufen */
.hw-rar { --lv: #5b7287; --n: 1; display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 800; padding: 4px 12px 4px 10px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--lv) 14%, transparent); color: color-mix(in srgb, var(--lv) 50%, var(--text)); }
.hw-rar::before { content: ''; width: 40px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--lv) calc(var(--n) * 20%), color-mix(in srgb, var(--lv) 24%, transparent) 0); }
.hw-rar[data-lv="2"] { --lv: #14a864; --n: 2; }
.hw-rar[data-lv="3"] { --lv: #2f80ed; --n: 3; }
.hw-rar[data-lv="4"] { --lv: #e86a00; --n: 4; }
.hw-rar[data-lv="5"] { --lv: #d4145a; --n: 5; }

/* Nummerierte Schritte */
.hw-steps { list-style: none; margin: 0; padding: 0; counter-reset: hs; display: grid; gap: 12px; }
.hw-steps li { counter-increment: hs; position: relative; min-height: 64px; padding: 15px 18px 15px 72px; background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.hw-steps li::before { content: counter(hs); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 13px; background: var(--hw-g-strong); color: var(--hw-on-strong); display: grid; place-items: center; font-size: 18px; font-weight: 900; }
.hw-steps b { display: block; margin-bottom: 2px; font-size: 16.5px; }
.hw-steps span { display: block; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.hw-steps.tight li { min-height: 0; padding-top: 12px; padding-bottom: 12px; }

/* Ueberblick: Karten mit Mini-Bild */
.hw-ovgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.hw-ov { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.hw-ov:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.hw-ov:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hw-ov-art { height: 108px; display: grid; place-items: center; background: radial-gradient(160px 90px at 70% 30%, color-mix(in srgb, var(--c1, #ff7a00) 55%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--c2, #5b1d8f) 80%, #07040c), #12081c 125%); }
.hw-ov-art svg { width: 66px; height: 66px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); transition: transform .3s ease; }
.hw-ov:hover .hw-ov-art svg { transform: scale(1.1) rotate(-4deg); }
.hw-ov b { display: block; padding: 14px 18px 2px; font-size: 18px; font-weight: 900; }
.hw-ov span.t { display: block; padding: 0 18px 18px; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }

/* Nachbau des Halloween-Menues */
.hw-menu { padding: 14px; border-radius: 20px; background: #1b1b1f; box-shadow: inset 0 0 0 3px #2c2c33, var(--shadow-sm); }
.hw-menu-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hw-slot { min-height: 56px; border-radius: 8px; background: #2c2c33; min-width: 0; }
.hw-slot.edge { background: #3a3340; }
.hw-it { grid-row: var(--r); grid-column: var(--col); display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 1; min-width: 0; }
.hw-it i { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a, #ff7a00), var(--b, #8a2be2)); box-shadow: 0 0 14px color-mix(in srgb, var(--a, #ff7a00) 55%, transparent); }
.hw-it i svg { width: 74%; height: 74%; }
.hw-it em { font-style: normal; font-size: 11px; font-weight: 800; color: #f1e9ff; text-align: center; line-height: 1.15; }
.hw-menu-cap { margin: 12px 4px 0; font-size: 13px; color: #b5aac4; line-height: 1.5; }
@media (max-width: 560px) { .hw-it em { font-size: 9.5px; } .hw-menu { padding: 9px; } .hw-menu-grid { gap: 3px; } }

/* Meilensteine (Kuerbisse) */
.hw-ms { position: relative; margin: 6px 4px 26px; height: 90px; }
.hw-ms-track { position: absolute; left: 0; right: 0; top: 12px; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 14%, var(--bg-alt)); }
.hw-ms-track i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--hw-o, #ff7a00), var(--hw-p, #8a2be2)); }
.hw-ms-dot { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; width: 92px; }
.hw-ms-dot:last-child { transform: translateX(-100%); align-items: flex-end; text-align: right; }
.hw-ms-dot:first-of-type { }
.hw-ms-dot svg { width: 36px; height: 36px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); margin-top: -8px; }
.hw-ms-dot b { font-size: 16px; font-weight: 900; margin-top: 4px; }
.hw-ms-dot span { font-size: 13px; font-weight: 800; color: var(--accent-ink); margin-top: -4px; }

/* Geister-Karten */
.hw-ghostcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hw-gc { text-align: center; padding: 20px 14px 18px; border-radius: 20px; border: 1px solid var(--card-border); background: var(--card); box-shadow: var(--shadow-sm); }
.hw-gc .art { height: 92px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 16px; background: radial-gradient(90px 60px at 50% 40%, color-mix(in srgb, var(--gc, #b69cff) 40%, transparent), transparent 72%), linear-gradient(160deg, #241038, #12081c); }
.hw-gc .art svg { width: 58px; height: 66px; color: var(--gc, #f4eeff); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--gc, #b69cff) 70%, transparent)); }
.hw-gc.gold { --gc: #ffc93c; }
.hw-gc b { display: block; font-size: 17px; font-weight: 900; }
.hw-gc .v { display: block; margin: 2px 0 4px; font-size: 26px; font-weight: 900; color: var(--accent-ink); }
.hw-gc span.t { display: block; font-size: 13.5px; color: var(--text-dim); line-height: 1.45; }

/* Beispiel-Tag der Tagesaufgaben */
.hw-day { display: grid; gap: 10px; }
.hw-task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--card-border); }
.hw-task .chk { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--card-border); display: grid; place-items: center; background: var(--card); }
.hw-task.done .chk { background: var(--hw-g-strong); border-color: transparent; color: var(--hw-on-strong); }
.hw-task .chk svg { width: 16px; height: 16px; }
.hw-task b { display: block; font-size: 15.5px; }
.hw-task small { display: block; margin-top: 1px; color: var(--text-dim); font-size: 13px; }
.hw-bonus { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 14px 16px; border-radius: 16px; background: var(--hw-g-strong); color: var(--hw-on-strong); font-weight: 800; line-height: 1.4; }
.hw-bonus svg { flex: none; width: 30px; height: 30px; }

/* Parkour-Strecke */
.hw-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: rt; }
.hw-route li { counter-increment: rt; position: relative; text-align: center; padding: 58px 6px 0; }
.hw-route li::before { content: counter(rt); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; background: var(--hw-g-strong); color: var(--hw-on-strong); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent); z-index: 1; }
.hw-route li::after { content: ''; position: absolute; top: 20px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--card-border) 0 8px, transparent 8px 14px); }
.hw-route li:last-child::after { display: none; }
.hw-route b { display: block; font-size: 16px; font-weight: 900; }
.hw-route span { display: block; margin-top: 3px; font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.hw-route li.end::before { background: linear-gradient(135deg, #ffc93c, #ff7a00); color: #2a1200; }
@media (max-width: 860px) {
  .hw-route { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hw-route li { text-align: left; padding: 10px 0 18px 66px; min-height: 64px; }
  .hw-route li::before { left: 0; top: 8px; transform: none; }
  .hw-route li::after { top: 54px; bottom: -6px; left: 21px; right: auto; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--card-border) 0 8px, transparent 8px 14px); }
}

/* Texturpaket-Liste */
.hw-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hw-feats li { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--card-border); font-weight: 700; font-size: 15px; }
.hw-feats li svg { flex: none; width: 22px; height: 22px; color: var(--accent-ink); }

/* Vierer-Raster (Lobby) und Icon-Kopf */
.hw-grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.hw-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #e85d00 0%, #7a22c8 100%); margin-bottom: 14px; }
.hw-ico svg { width: 28px; height: 28px; }
html.dark .hw-ico { background: linear-gradient(135deg, #ff9a2e 0%, #a56bff 100%); color: #1a0b05; }

/* Bestenliste: Medaillen fuer die ersten drei (das Markup kommt aus halloween.html/Skript) */
.hw-top-row:nth-child(1) b.pos { color: color-mix(in srgb, var(--gold) 62%, var(--text)); } .hw-top-row:nth-child(2) b.pos { color: color-mix(in srgb, var(--silver) 52%, var(--text)); } .hw-top-row:nth-child(3) b.pos { color: color-mix(in srgb, var(--bronze) 62%, var(--text)); }
#hw-live .pl-cta .disc p { color: #fff; }
.hw-top-row { padding: 10px 14px; }
.hw-top-row.first { background: linear-gradient(90deg, color-mix(in srgb, var(--hw-o, #ff7a00) 26%, transparent), transparent); }

/* Buttons in den Info-Kaesten und Aktionsleiste */
.hw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hw-reveal-ready .hw-rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.hw-reveal-ready .hw-rv.hw-in { opacity: 1; transform: none; }

/* FAQ in dieser Seite */
#hw-live .pl-faq { margin-top: 0; }
#hw-live .pl-faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
#hw-live .pl-faq summary::after { float: none; flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); }
#hw-live .pl-faq details[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--card-border)); box-shadow: var(--shadow-sm); }
#hw-live .pl-faq .a code { background: color-mix(in srgb, var(--accent) 12%, var(--bg-alt)); color: var(--accent-ink); padding: 2px 8px; border-radius: 8px; font-weight: 800; }
#hw-live .pl-faq .a b { color: var(--text); }
.hw-faqgroup { margin: 26px 0 10px; font-size: 14px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.hw-faqgroup:first-of-type { margin-top: 0; }

@media (max-width: 900px) {
  .hw-body, .hw-body.even, .hw-grid4 { grid-template-columns: minmax(0, 1fr); }
  .hw-sec { padding-top: 52px; }
  .hw-card { padding: 22px 18px; }
  .hw-feats { grid-template-columns: minmax(0, 1fr); }
  .hw-hero { padding-top: 56px; }
  .hw-hero .tp-in { padding-bottom: 130px; }
  .hw-hero-art { height: 140px; }
  .hw-moon { width: 72px; height: 72px; top: 22px; right: 18px; }
}
@media (max-width: 560px) {
  .hw-ovgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hw-ov-art { height: 78px; }
  .hw-ov-art svg { width: 50px; height: 50px; }
  .hw-ov b { padding: 10px 12px 2px; font-size: 16px; }
  .hw-ov span.t { padding: 0 12px 14px; font-size: 13.5px; line-height: 1.5; }
  .hw-ghostcards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .hw-ms-dot { width: 76px; }
  .hw-ms-dot svg { width: 30px; height: 30px; }
  .hw-callout { padding: 16px 14px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-hero::before, .hw-bob, .hw-hbat { animation: none; }
  .hw-hbat { display: none; }
  .hw-reveal-ready .hw-rv { opacity: 1; transform: none; transition: none; }
  .hw-ov, .hw-ov-art svg { transition: none; }
}
@media print { .hw-jump, .hw-hero-art, .hw-moon, .hw-hbat { display: none !important; } .hw-banner { box-shadow: none; } }

/* Halloween-Menue-Nachbau: Titel und feste Zeilenhoehen (Anordnung wie im Spiel: Zeile 2, 4 und 5) */
.hw-menu-title { margin: 0 0 10px; padding: 0 2px; font-size: 14px; font-weight: 900; letter-spacing: .02em; color: #c9bdd9; }

/* Die Kopfleisten-Regel fuer schmale Handys (bis 400 px: 10 px Rand) ist entfernt (14.11.2026): Sie galt ohne html.halloween auf allen
   Seiten von cockcraft.net, nicht aber auf den Subdomains. Die Leiste passt seit Design-System 2 auch bei 320 px mit 20 px Rand aus nav.css. */

/* Hinweiskaesten ohne Farbe (Nutzerwunsch 12.10.2026: das Vorbild kennt keine getoenten Boxen mit Akzentstreifen und Icon): schlichter Textblock */
.hw-callout, .hw-callout.info, .hw-callout.tip, .hw-callout.warn, .hw-callout.fresh, .hw-callout.violet { display: block; padding: 0; margin: 4px 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.hw-callout > svg { display: none; }
.hw-callout h4 { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: var(--text); }
.hw-callout p { font-size: 16px; line-height: 1.65; color: var(--text-dim); }

/* Buttons liegen immer ueber den schwebenden Geistern/Fledermaeusen (16.10.2026: ein Geist ueberdeckte "Jetzt spielen") */
html.halloween .pl-btn, html.halloween .ko-ghost, html.halloween .btn, html.halloween .sn-cta, html.halloween .hero-actions a, html.halloween main a.pl-btn { position: relative; z-index: 3; }
