/* bpannen.de – Design-Extras: Farbthemen, animierter Hintergrund, Logo-Glitch, Konfetti,
   Tageszeit, Saison-Themen, Aktivitätsband, Kipp-Effekt und der Design-Knopf (🎨). */

/* ---------- Farbthemen ---------- */
html[data-thema="synthwave"] {
  --cyan: #ff9a3c; --blue: #ff4f8b; --indigo: #b84dff; --violet: #c13cff; --magenta: #ff2fa0; --pink: #ffc46b;
  --cyan-rgb: 255, 154, 60; --blue-rgb: 255, 79, 139; --indigo-rgb: 184, 77, 255; --violet-rgb: 193, 60, 255; --magenta-rgb: 255, 47, 160; --pink-rgb: 255, 196, 107;
  --bg: #0d0414; --bg-rgb: 13, 4, 20; --card-rgb: 40, 14, 48; --tief-rgb: 24, 8, 30; --muted: #c4a6c9;
}
html[data-thema="matrix"] {
  --cyan: #39ff88; --blue: #00c46a; --indigo: #1f9e5a; --violet: #7dffb0; --magenta: #00e0a0; --pink: #b6ffd2;
  --cyan-rgb: 57, 255, 136; --blue-rgb: 0, 196, 106; --indigo-rgb: 31, 158, 90; --violet-rgb: 125, 255, 176; --magenta-rgb: 0, 224, 160; --pink-rgb: 182, 255, 210;
  --bg: #020a05; --bg-rgb: 2, 10, 5; --card-rgb: 8, 30, 18; --tief-rgb: 4, 18, 10; --muted: #8fbfa0; --text: #e6fff0;
}
html[data-thema="gold"] {
  --cyan: #ffd76a; --blue: #f5a623; --indigo: #c9922b; --violet: #ffe9a8; --magenta: #d4a017; --pink: #fff1c1;
  --cyan-rgb: 255, 215, 106; --blue-rgb: 245, 166, 35; --indigo-rgb: 201, 146, 43; --violet-rgb: 255, 233, 168; --magenta-rgb: 212, 160, 23; --pink-rgb: 255, 241, 193;
  --bg: #070605; --bg-rgb: 7, 6, 5; --card-rgb: 30, 24, 12; --tief-rgb: 16, 13, 7; --muted: #bfae8a; --text: #fff8e8;
}
html[data-thema="eis"] {
  --cyan: #a8f0ff; --blue: #5cc8ff; --indigo: #7aa8ff; --violet: #c3d9ff; --magenta: #8fb8ff; --pink: #e6f6ff;
  --cyan-rgb: 168, 240, 255; --blue-rgb: 92, 200, 255; --indigo-rgb: 122, 168, 255; --violet-rgb: 195, 217, 255; --magenta-rgb: 143, 184, 255; --pink-rgb: 230, 246, 255;
  --bg: #030812; --bg-rgb: 3, 8, 18; --card-rgb: 14, 26, 46; --tief-rgb: 8, 15, 30; --muted: #9fb4cf;
}
html[data-thema="lava"] {
  --cyan: #ff6a2b; --blue: #ff3d2e; --indigo: #d6336c; --violet: #ff9b3d; --magenta: #ff2d55; --pink: #ffc46b;
  --cyan-rgb: 255, 106, 43; --blue-rgb: 255, 61, 46; --indigo-rgb: 214, 51, 108; --violet-rgb: 255, 155, 61; --magenta-rgb: 255, 45, 85; --pink-rgb: 255, 196, 107;
  --bg: #0e0403; --bg-rgb: 14, 4, 3; --card-rgb: 40, 14, 10; --tief-rgb: 24, 8, 6; --muted: #d1a99c; --text: #fff1ea;
}
html[data-thema="ozean"] {
  --cyan: #2ee6d6; --blue: #1a9fff; --indigo: #2b6fd6; --violet: #5ad1ff; --magenta: #00b3a6; --pink: #a8fff4;
  --cyan-rgb: 46, 230, 214; --blue-rgb: 26, 159, 255; --indigo-rgb: 43, 111, 214; --violet-rgb: 90, 209, 255; --magenta-rgb: 0, 179, 166; --pink-rgb: 168, 255, 244;
  --bg: #020b10; --bg-rgb: 2, 11, 16; --card-rgb: 8, 30, 42; --tief-rgb: 4, 18, 26; --muted: #8fb9c2; --text: #eafcff;
}
html[data-thema="kirsch"] {
  --cyan: #ff8fc8; --blue: #ff5fa2; --indigo: #c86bff; --violet: #ffb3d9; --magenta: #ff3d8b; --pink: #ffd6ea;
  --cyan-rgb: 255, 143, 200; --blue-rgb: 255, 95, 162; --indigo-rgb: 200, 107, 255; --violet-rgb: 255, 179, 217; --magenta-rgb: 255, 61, 139; --pink-rgb: 255, 214, 234;
  --bg: #12060d; --bg-rgb: 18, 6, 13; --card-rgb: 44, 16, 32; --tief-rgb: 26, 9, 19; --muted: #d4a8bf; --text: #fff0f7;
}
html[data-thema="cyber"] {
  --cyan: #f5e33a; --blue: #ff2bd6; --indigo: #7a2bff; --violet: #00f0ff; --magenta: #ff2bd6; --pink: #fffb8a;
  --cyan-rgb: 245, 227, 58; --blue-rgb: 255, 43, 214; --indigo-rgb: 122, 43, 255; --violet-rgb: 0, 240, 255; --magenta-rgb: 255, 43, 214; --pink-rgb: 255, 251, 138;
  --bg: #07040f; --bg-rgb: 7, 4, 15; --card-rgb: 26, 14, 44; --tief-rgb: 14, 8, 26; --muted: #b9a9d6; --text: #fdfbff;
}
html[data-thema="mitternacht"] {
  --cyan: #8f7bff; --blue: #5b4bff; --indigo: #3b2fd6; --violet: #b49bff; --magenta: #7a3cff; --pink: #d8ccff;
  --cyan-rgb: 143, 123, 255; --blue-rgb: 91, 75, 255; --indigo-rgb: 59, 47, 214; --violet-rgb: 180, 155, 255; --magenta-rgb: 122, 60, 255; --pink-rgb: 216, 204, 255;
  --bg: #04030c; --bg-rgb: 4, 3, 12; --card-rgb: 18, 14, 42; --tief-rgb: 10, 8, 26; --muted: #a7a0cf; --text: #f3f0ff;
}
html[data-thema="smaragd"] {
  --cyan: #3df2b0; --blue: #18c08a; --indigo: #0f8f6a; --violet: #9bffd9; --magenta: #22d3a0; --pink: #d0ffee;
  --cyan-rgb: 61, 242, 176; --blue-rgb: 24, 192, 138; --indigo-rgb: 15, 143, 106; --violet-rgb: 155, 255, 217; --magenta-rgb: 34, 211, 160; --pink-rgb: 208, 255, 238;
  --bg: #030c09; --bg-rgb: 3, 12, 9; --card-rgb: 10, 34, 27; --tief-rgb: 5, 20, 16; --muted: #94c2b2; --text: #ecfff7;
}
html[data-thema="retro"] {
  --cyan: #2ad4c4; --blue: #ff7a3d; --indigo: #ff4f6d; --violet: #ffc24b; --magenta: #ff4f6d; --pink: #ffe0a3;
  --cyan-rgb: 42, 212, 196; --blue-rgb: 255, 122, 61; --indigo-rgb: 255, 79, 109; --violet-rgb: 255, 194, 75; --magenta-rgb: 255, 79, 109; --pink-rgb: 255, 224, 163;
  --bg: #0a0a12; --bg-rgb: 10, 10, 18; --card-rgb: 30, 26, 42; --tief-rgb: 18, 16, 28; --muted: #c2b6a8; --text: #fff6ea;
}
html[data-thema="bonbon"] {
  --cyan: #8ee8ff; --blue: #ff9ed8; --indigo: #b9a2ff; --violet: #ffd28e; --magenta: #ff7fc4; --pink: #c6ffd9;
  --cyan-rgb: 142, 232, 255; --blue-rgb: 255, 158, 216; --indigo-rgb: 185, 162, 255; --violet-rgb: 255, 210, 142; --magenta-rgb: 255, 127, 196; --pink-rgb: 198, 255, 217;
  --bg: #0d0a16; --bg-rgb: 13, 10, 22; --card-rgb: 36, 28, 54; --tief-rgb: 22, 17, 34; --muted: #c9bddb; --text: #fffaff;
}
html[data-thema="blutmond"] {
  --cyan: #ff3b3b; --blue: #b3122e; --indigo: #7a1ca8; --violet: #ff6b6b; --magenta: #c4123a; --pink: #ffb0b0;
  --cyan-rgb: 255, 59, 59; --blue-rgb: 179, 18, 46; --indigo-rgb: 122, 28, 168; --violet-rgb: 255, 107, 107; --magenta-rgb: 196, 18, 58; --pink-rgb: 255, 176, 176;
  --bg: #0a0204; --bg-rgb: 10, 2, 4; --card-rgb: 36, 8, 14; --tief-rgb: 20, 4, 8; --muted: #c99a9f; --text: #fff0f1;
}
html[data-thema="nordlicht"] {
  --cyan: #4dffb8; --blue: #2fd6a0; --indigo: #8a5cff; --violet: #b38bff; --magenta: #6f4dff; --pink: #c8ffe8;
  --cyan-rgb: 77, 255, 184; --blue-rgb: 47, 214, 160; --indigo-rgb: 138, 92, 255; --violet-rgb: 179, 139, 255; --magenta-rgb: 111, 77, 255; --pink-rgb: 200, 255, 232;
  --bg: #030712; --bg-rgb: 3, 7, 18; --card-rgb: 12, 24, 44; --tief-rgb: 6, 14, 28; --muted: #9ab8c6; --text: #effffa;
}
html[data-thema="kupfer"] {
  --cyan: #f0a46b; --blue: #c8703f; --indigo: #9c4f2c; --violet: #ffc79a; --magenta: #d9774a; --pink: #ffe1c9;
  --cyan-rgb: 240, 164, 107; --blue-rgb: 200, 112, 63; --indigo-rgb: 156, 79, 44; --violet-rgb: 255, 199, 154; --magenta-rgb: 217, 119, 74; --pink-rgb: 255, 225, 201;
  --bg: #0b0705; --bg-rgb: 11, 7, 5; --card-rgb: 36, 22, 15; --tief-rgb: 20, 13, 9; --muted: #c4a894; --text: #fff4ec;
}
html[data-thema="graphit"] {
  --cyan: #e6e9ef; --blue: #a9b0bc; --indigo: #6f7684; --violet: #ffffff; --magenta: #c9ced8; --pink: #f4f5f7;
  --cyan-rgb: 230, 233, 239; --blue-rgb: 169, 176, 188; --indigo-rgb: 111, 118, 132; --violet-rgb: 255, 255, 255; --magenta-rgb: 201, 206, 216; --pink-rgb: 244, 245, 247;
  --bg: #08090b; --bg-rgb: 8, 9, 11; --card-rgb: 26, 28, 32; --tief-rgb: 15, 16, 19; --muted: #a3a8b2; --text: #f6f7f9;
}
/* Halloween färbt das Neon-Thema orange-violett (eigene Themen bleiben) */
html[data-saison="halloween"]:not([data-thema]) {
  --cyan: #ff8a1f; --blue: #ff5e00; --violet: #9b4dff; --magenta: #b026ff; --pink: #ffb347;
  --cyan-rgb: 255, 138, 31; --blue-rgb: 255, 94, 0; --violet-rgb: 155, 77, 255; --magenta-rgb: 176, 38, 255; --pink-rgb: 255, 179, 71;
}
html[data-thema] body, html[data-saison] body { background-color: var(--bg); }

/* ---------- animierter Hintergrund: Tron-Gitter, das auf einen zuläuft ---------- */
.bp-raster { position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: -1; pointer-events: none; overflow: hidden;
  perspective: 260px; perspective-origin: 50% 0; opacity: .5;
  -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
.bp-raster i { position: absolute; left: -50%; right: -50%; top: 0; height: 200%; transform-origin: 50% 0; transform: rotateX(70deg);
  background-image: linear-gradient(rgba(var(--cyan-rgb), .55) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(var(--magenta-rgb), .45) 1.5px, transparent 1.5px);
  background-size: 64px 64px; animation: bp-fahrt 3.2s linear infinite; }
@keyframes bp-fahrt { to { background-position: 0 64px; } }
body.start .bp-raster { opacity: .75; }
.bp-sonne { position: fixed; left: 50%; bottom: 30vh; width: min(38vw, 250px); aspect-ratio: 1; transform: translate(-50%, 50%); z-index: -2; pointer-events: none; border-radius: 50%; opacity: .26;
  background: linear-gradient(var(--pink), var(--magenta) 60%, var(--blue));
  -webkit-mask-image: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 68%, #000 68% 75%, transparent 75% 80%, #000 80% 86%, transparent 86% 92%, #000 92%);
  mask-image: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 68%, #000 68% 75%, transparent 75% 80%, #000 80% 86%, transparent 86% 92%, #000 92%);
  filter: drop-shadow(0 0 40px rgba(var(--magenta-rgb), .6)); }
html[data-ruhig] .bp-raster i { animation: none; }
html[data-ruhig] .bp-sterne i, html[data-ruhig] .bp-schnee, html[data-ruhig] .bp-geister { animation: none !important; }

/* ---------- Logo: Neon-Zündung mit Lichtstreif ---------- */
.logo picture, .kopf__marke { position: relative; }
.logo picture { display: block; }
.bp-blitz { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask: var(--logo-maske) center / contain no-repeat; mask: var(--logo-maske) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 40%, rgba(var(--cyan-rgb), 0) 42%, rgba(var(--cyan-rgb), .75) 46.5%, #fff 50%, rgba(var(--magenta-rgb), .75) 53.5%, rgba(var(--magenta-rgb), 0) 58%, transparent 60%) 115% 0 / 220% 100% no-repeat;
  mix-blend-mode: screen; mix-blend-mode: plus-lighter; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .6)); }
.bp-blitz.laeuft { animation: bp-blitz 1.5s cubic-bezier(.4, 0, .25, 1) .3s both; }
@keyframes bp-blitz { 0% { background-position: 115% 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { background-position: -15% 0; opacity: 0; } }
.zuendet { animation: bp-zuenden 1.8s ease-out both; }
@keyframes bp-zuenden {
  0% { filter: none; }
  7% { filter: brightness(.7); }
  12% { filter: brightness(1.12); }
  17% { filter: brightness(.8); }
  30% { filter: brightness(1.4) saturate(1.25) drop-shadow(0 0 18px rgba(var(--cyan-rgb), .75)) drop-shadow(0 0 36px rgba(var(--magenta-rgb), .45)); }
  65% { filter: brightness(1.1) drop-shadow(0 0 12px rgba(var(--cyan-rgb), .35)); }
  100% { filter: none; }
}
.logo picture, .kopf__marke img { cursor: pointer; }
html[data-ruhig] .zuendet, html[data-ruhig] .bp-blitz.laeuft { animation-duration: .01s; }

/* ---------- Konfetti und Wackeln ---------- */
.bp-konfetti { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.bp-wackeln { animation: bp-wackeln .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes bp-wackeln { 10%, 90% { transform: translate3d(-2px, 0, 0); } 20%, 80% { transform: translate3d(4px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-7px, 1px, 0); } 40%, 60% { transform: translate3d(7px, -1px, 0); } }

/* ---------- Tageszeit (Startseite) ---------- */
body.start::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; transition: background 1s; }
html[data-tageszeit="morgen"] body.start::after { background: radial-gradient(120% 70% at 50% 0%, rgba(120, 200, 255, .16), transparent 70%); }
html[data-tageszeit="abend"] body.start::after { background: radial-gradient(120% 70% at 50% 100%, rgba(255, 90, 160, .14), transparent 65%), radial-gradient(100% 60% at 50% 0%, rgba(130, 60, 255, .12), transparent 70%); }
html[data-tageszeit="nacht"] body.start::after { background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .15)); }
.bp-sterne { position: fixed; inset: 0 0 35vh; z-index: -1; pointer-events: none; }
.bp-sterne i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: bp-funkeln 3s ease-in-out infinite; }
@keyframes bp-funkeln { 50% { opacity: .2; transform: scale(.6); } }

/* ---------- Saison ---------- */
.bp-schnee { position: fixed; inset: 0; z-index: 9997; pointer-events: none; }
.bp-lichter { position: absolute; left: 10px; right: 10px; top: -3px; height: 14px; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 50% 70%, var(--l1, #ff4d4d) 0 3.5px, transparent 4.5px) 0 0 / 28px 14px repeat-x,
              radial-gradient(circle at 50% 70%, var(--l2, #ffd84d) 0 3.5px, transparent 4.5px) 14px 0 / 28px 14px repeat-x;
  filter: drop-shadow(0 0 4px rgba(255, 230, 120, .9)); animation: bp-lichter 1.6s steps(1) infinite; }
.bp-lichter::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 6px; border-top: 1.5px solid rgba(40, 80, 40, .9); border-radius: 50%; }
@keyframes bp-lichter { 50% { --l1: #4dff88; --l2: #4dc3ff; filter: drop-shadow(0 0 6px rgba(120, 255, 200, .9)); } }
html[data-saison="halloween"] a.choice:hover { box-shadow: 0 0 0 1px rgba(255, 138, 31, .25), 0 18px 50px rgba(255, 94, 0, .3), 0 0 70px rgba(176, 38, 255, .25); }
.bp-geister { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bp-geister span { position: absolute; bottom: -60px; font-size: 28px; opacity: .55; filter: drop-shadow(0 0 10px rgba(255, 138, 31, .8)); animation: bp-schweben linear infinite; }
@keyframes bp-schweben { to { transform: translateY(-115vh) rotate(25deg); } }
.bp-feuerwerk { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Aktivitätsband (Startseite) ---------- */
.aktivitaet { display: flex; align-items: center; gap: 10px; width: min(760px, calc(100vw - 32px)); box-sizing: border-box; margin: -18px auto 30px; padding: 7px 12px 7px 8px; border-radius: 999px;
  background: rgba(var(--tief-rgb), .6); box-shadow: inset 0 0 0 1px rgba(var(--indigo-rgb), .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .88rem; }
.aktivitaet__live { flex: none; padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; color: #fff; background: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, .7); animation: bp-funkeln 2s infinite; }
.aktivitaet__band { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.aktivitaet__laeufer { display: flex; width: max-content; animation: bp-laufen var(--dauer, 40s) linear infinite; }
.aktivitaet__laeufer span { white-space: nowrap; padding-right: 48px; color: var(--muted); }
.aktivitaet:hover .aktivitaet__laeufer { animation-play-state: paused; }
@keyframes bp-laufen { to { transform: translateX(-50%); } }
html[data-ruhig] .aktivitaet__laeufer { animation-duration: 120s; }

/* ---------- Kipp-Effekt der Startseiten-Kacheln ---------- */
.choice.kippt { transition: transform .12s linear, box-shadow .4s var(--ease); will-change: transform; }
.bp-glanz { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 45%); }
.choice.kippt .bp-glanz { opacity: 1; }

/* ---------- Design-Knopf und -Menü ---------- */
.bp-design-knopf { cursor: pointer; border: 0; font: inherit; }
.eck .bp-design-knopf { padding: 8px 10px; }
.bp-design { position: fixed; z-index: 9999; top: calc(max(14px, env(safe-area-inset-top)) + 46px); right: 16px; width: min(320px, calc(100vw - 32px)); padding: 16px; border-radius: 18px;
  background: rgba(var(--tief-rgb), .96); box-shadow: inset 0 0 0 1px rgba(var(--indigo-rgb), .45), 0 20px 60px rgba(0, 0, 0, .55); color: var(--text); font-size: .92rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: bp-auf .2s var(--ease, ease) both; }
@keyframes bp-auf { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.bp-design h3 { margin: 0 0 10px; font-size: 1rem; }
.bp-design__themen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 10px; margin-bottom: 28px; }
.bp-design__thema { aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; }
.bp-design__thema.an { border-color: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .45); }
.bp-design__thema span { position: absolute; left: 0; right: 0; bottom: -18px; font-size: .62rem; color: var(--muted); white-space: nowrap; }
.bp-design__zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(var(--indigo-rgb), .2); }
.bp-schalter { position: relative; width: 44px; height: 26px; flex: none; border-radius: 99px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14); transition: background .2s; }
.bp-schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.bp-schalter[aria-checked="true"] { background: var(--cyan); }
.bp-schalter[aria-checked="true"]::after { transform: translateX(18px); }
.bp-design small { color: var(--muted); display: block; font-size: .78rem; }
@media print { .bp-raster, .bp-sonne, .bp-sterne, .bp-schnee, .bp-geister, .bp-feuerwerk, .bp-konfetti, .bp-design, .bp-design-knopf, .bp-lichter { display: none !important; } }

/* Kopfleiste auf schmalen Handys: alles in einer Zeile halten */
.kopf__nav .chip, .eck .admin-link { white-space: nowrap; }
@media (max-width: 440px) {
  .kopf__nav { gap: 6px; }
  .kopf__nav .chip { padding: 7px 10px; font-size: .84rem; }
  .kopf__nav .chip--icon, .kopf__nav .bp-design-knopf { padding: 7px 9px; }
  .eck { gap: 6px; right: 10px; }
  .eck .admin-link { padding: 8px 10px; font-size: .8rem; }
}
/* nächster Countdown auf der Startseite */
.start-cd { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: calc(100vw - 32px); box-sizing: border-box; margin: -14px auto 28px; padding: 8px 16px 8px 10px; border-radius: 999px; text-decoration: none; color: var(--text);
  background: rgba(var(--card-rgb), .75); box-shadow: inset 0 0 0 1px rgba(var(--magenta-rgb), .45), 0 0 18px rgba(var(--magenta-rgb), .18); }
.start-cd:hover { box-shadow: inset 0 0 0 1px var(--magenta), 0 0 24px rgba(var(--magenta-rgb), .35); }
.start-cd__emoji { font-size: 1.3rem; }
.start-cd__titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.start-cd__zeit { font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; text-shadow: 0 0 8px var(--magenta); }
/* Patchnotes: „Neu auf bpannen.de“ */
.bp-neu { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border: 0; border-radius: 22px; color: var(--text, #e8ecff);
  background: radial-gradient(420px 180px at 50% -40px, rgba(var(--magenta-rgb, 201, 77, 255), .28), transparent 70%), rgb(var(--card-rgb, 16, 22, 48));
  box-shadow: 0 0 0 1px rgba(var(--cyan-rgb, 24, 213, 254), .35), 0 0 40px rgba(var(--cyan-rgb, 24, 213, 254), .18), 0 30px 80px rgba(0, 0, 0, .6); animation: bp-neu-auf .45s cubic-bezier(.2, 1.3, .4, 1); }
.bp-neu::backdrop { background: rgba(2, 4, 12, .7); backdrop-filter: blur(3px); }
@keyframes bp-neu-auf { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.bp-neu__kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bp-neu__funken { font-size: 2.2rem; filter: drop-shadow(0 0 12px rgba(253, 224, 71, .7)); animation: bp-neu-funkeln 2s ease-in-out infinite; }
@keyframes bp-neu-funkeln { 50% { transform: rotate(-10deg) scale(1.12); } }
.bp-neu h2 { margin: 0; font-size: 1.3rem; background: var(--grad, linear-gradient(90deg, #18d5fe, #c94dff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bp-neu__kopf small { color: var(--muted, #9aa3c7); font-size: .82rem; }
.bp-neu__update { padding: 12px 0; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.bp-neu__update h3 { margin: 0 0 8px; font-size: 1rem; }
.bp-neu__update h3 small { color: var(--muted, #9aa3c7); font-weight: 500; font-size: .78rem; margin-left: 6px; }
.bp-neu ul, .neu-update ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-neu li, .neu-update li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 8px; align-items: start; line-height: 1.45; font-size: .95rem; }
.bp-neu li a, .neu-update li a { white-space: nowrap; }
.bp-neu__fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.neu-liste { display: grid; gap: 16px; max-width: 760px; }
.neu-update__kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.neu-update__kopf h2 { margin: 0; font-size: 1.15rem; }
.neu-update__kopf time { color: var(--muted); font-size: .85rem; }
.neu-update__marke { padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; color: #050816; background: var(--grad); }
.neu-update--aktuell { box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), .55), 0 0 26px rgba(var(--cyan-rgb), .14); }

/* Verwaltungsknopf (nur für das Admin-Konto) */
.chip--verwaltung, .eck .admin-link--verwaltung { color: #eef3ff; box-shadow: inset 0 0 0 1px rgba(24, 213, 254, .5), 0 0 16px rgba(24, 213, 254, .2); }
@media (max-width: 560px) { .chip--verwaltung span, .eck .admin-link--verwaltung span { display: none; } }

/* ---------- Wählbare Hintergründe (design.js, data-hg) ---------- */
.bp-hg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }   /* genaue Größe setzt design.js in px */
html[data-hg] .bp-raster, html[data-hg] .bp-sonne, html[data-hg] .floor, html[data-hg] .sparks, html[data-hg] .fog { display: none !important; }
html[data-hg="schlicht"] .fog { display: block !important; animation: none; }
html[data-hg="lichter"] .bp-hg, html[data-hg="aurora"] .bp-hg { filter: blur(2px); }
.bp-design__hg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.bp-design__hg-k { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 6px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; color: var(--text); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(var(--indigo-rgb), .25); }
.bp-design__hg-k:hover { background: rgba(255, 255, 255, .1); }
.bp-design__hg-k.an { box-shadow: inset 0 0 0 2px var(--cyan), 0 0 14px rgba(var(--cyan-rgb), .3); }
.bp-design__hg-emoji { font-size: 1.35rem; line-height: 1; }
.bp-design__hg-k small { font-size: .62rem !important; color: var(--muted); white-space: nowrap; }
.bp-design { max-height: calc(100dvh - 90px); overflow-y: auto; }
@media print { .bp-hg { display: none !important; } }
/* Knöpfe im „Neu“-Fenster – eigene Stile, da die Startseite die allgemeinen Knopf-Stile nicht lädt */
.bp-neu__fuss { flex-wrap: wrap; }
.bp-neu__fuss a { margin-right: auto; }
.bp-neu__fuss button { min-height: 40px; padding: 9px 16px; border: 0; border-radius: 12px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; color: var(--text, #e8ecff); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.bp-neu__fuss button[data-patch-ok] { color: #050816; background: linear-gradient(135deg, var(--cyan, #2ef2ff), var(--violet, #8b5cf6)); box-shadow: none; }
.bp-neu__fuss .bp-neu__aus { margin-left: 0; font-weight: 600; color: var(--muted, #9aa6c7); }
/* Passende Spiel-Hintergründe: die normalen Hintergrund-Ebenen ausblenden */
html[data-spielhg] .bp-raster, html[data-spielhg] .bp-sonne, html[data-spielhg] .floor, html[data-spielhg] .sparks, html[data-spielhg] .fog { display: none !important; }
html[data-spielhg] .bp-hg { filter: none; }

/* ---------- Fokus-Modus (fokus.js): Ablenkungen ausblenden, ruhige Timer-Leiste ---------- */
html[data-fokus] .kopf, html[data-fokus] .eck, html[data-fokus] .fuss, html[data-fokus] body > footer, html[data-fokus] .ideen, html[data-fokus] .chat-knopf, html[data-fokus] .chat,
html[data-fokus] .aktivitaet, html[data-fokus] .bp-neu, html[data-fokus] .hinweis-band, html[data-fokus] .bp-konfetti, html[data-fokus] .bp-sonne, html[data-fokus] .bp-sterne,
html[data-fokus] .bp-raster, html[data-fokus] .bp-schnee, html[data-fokus] .bp-geister, html[data-fokus] .bp-lichter, html[data-fokus] .bp-feuerwerk, html[data-fokus] .unterzeile,
html[data-fokus] .held, html[data-fokus] .zuletzt { display: none !important; }
html[data-fokus] .bp-hg { opacity: .35; transition: opacity .6s; }
html[data-fokus] .seite { padding-top: 28px; padding-bottom: 110px; }
.bp-fokus { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 20px); padding: 8px 8px 8px 12px; border-radius: 999px; color: var(--text); background: rgba(var(--card-rgb), .9);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); box-shadow: 0 0 0 1px var(--line), 0 12px 34px rgba(0, 0, 0, .22); animation: bp-fokus-rein .35s ease; }
@keyframes bp-fokus-rein { from { opacity: 0; transform: translate(-50%, 14px); } }
.bp-fokus__ring { width: 34px; height: 34px; flex: none; }
.bp-fokus__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bp-fokus__ring circle { fill: none; stroke-width: 3; }
.bp-fokus__spur { stroke: rgba(var(--cyan-rgb), .18); }
.bp-fokus__wert { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 97.4; transition: stroke-dashoffset 1s linear; }
.bp-fokus[data-phase="pause"] .bp-fokus__wert, .bp-fokus[data-phase="lang"] .bp-fokus__wert { stroke: var(--ok); }
.bp-fokus__text { display: grid; line-height: 1.15; min-width: 0; }
.bp-fokus__zeit { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bp-fokus__phase { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-fokus__knoepfe { display: flex; gap: 4px; margin-left: 4px; }
.bp-fokus__knoepfe button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--text); background: rgba(var(--cyan-rgb), .1); cursor: pointer; white-space: nowrap; }
.bp-fokus__knoepfe button:hover { background: rgba(var(--cyan-rgb), .18); }
.bp-fokus__knoepfe .bp-fokus__haupt { background: var(--cyan); color: var(--bg); }
.bp-fokus__knoepfe .bp-fokus__aus { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
html[data-stil="buero"] .bp-fokus { background: rgba(var(--card-rgb), .92); box-shadow: 0 0 0 1px var(--line), 0 12px 34px rgba(var(--schatten, 0, 0, 0), .16); }
html[data-stil="buero"] .bp-fokus__knoepfe .bp-fokus__haupt { background: var(--a); color: var(--weiss); }
@media (max-width: 520px) { .bp-fokus { gap: 8px; } .bp-fokus__phase { max-width: 38vw; } .bp-fokus__knoepfe button { padding: 0 10px; } }
@media print { .bp-fokus { display: none !important; } }
/* „Heute“-Karte auf der Startseite (nur für Mitglieder) */
.heute { width: min(640px, 100%); box-sizing: border-box; margin: -8px auto 22px; padding: 6px; border-radius: 18px; background: rgba(var(--card-rgb), .55); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.heute__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.heute__zeile { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: .94rem; line-height: 1.4; text-align: left; color: var(--text); text-decoration: none; }
.heute__zeile:hover { background: rgba(var(--cyan-rgb), .08); }
.heute__zeile--dringend { background: rgba(255, 182, 72, .1); box-shadow: inset 3px 0 0 #ffb648; }
.heute__em { flex: none; width: 1.4em; text-align: center; }
.heute__leer { margin: 0; padding: 8px 12px; color: var(--muted); font-size: .92rem; text-align: center; }
html[data-stil="buero"] .heute { background: var(--weiss); box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(var(--schatten), .06); backdrop-filter: none; }
html[data-stil="buero"] .heute__zeile:hover { background: var(--creme-1); }
html[data-stil="buero"] .heute__zeile--dringend { background: rgba(168, 116, 44, .08); box-shadow: inset 3px 0 0 var(--warn); }
/* Patchnotes nach Wochen */
.neu-update__titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 16px 0 8px; font-size: 1rem; }
.neu-update__titel:first-of-type { margin-top: 4px; }
.neu-update__titel time { color: var(--muted); font-size: .8rem; font-weight: 500; }
.bp-neu__woche { margin: 14px 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #9aa3c7); }
.bp-neu__kurz { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bp-neu__kurz li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .08)); }
.bp-neu__kurz li:last-child { border-bottom: 0; }
.bp-neu__kurz a { color: inherit; text-decoration: none; font-weight: 600; }
.bp-neu__kurz a:hover { text-decoration: underline; }
.bp-neu__mehr a { color: var(--cyan, #23d5ff); font-weight: 600; }
.bp-neu__kurz li > span { flex: none; }
.bp-neu__kurz li > a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
