/* ==========================================================================
   VPSG v57 – Kopfzeile (Serviceleiste + Hauptleiste) und moderner Feinschliff.
   Baut auf dem VPSG-Design (style.css) auf; Knöpfe bleiben im bekannten Pill-Stil.
   ========================================================================== */
:root {
    --mx-max: 1280px;
    --mx-line: rgba(255, 255, 255, .075);
    --mx-line-2: rgba(255, 255, 255, .13);
    --mx-glass: rgba(9, 17, 13, .72);
    --mx-blur: blur(16px) saturate(1.3);
    --mx-card: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012) 40%), var(--bg-surface);
    --mx-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 16px 36px -22px rgba(0, 0, 0, .9);
    --mx-shadow-hover: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(244, 180, 0, .18);
    --mx-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Ruhiger Hintergrund mit Farbe (fest, ohne Animation) ---------- */
body.dark-mode { background-color: var(--bg-main); }
body.dark-mode::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(1000px 640px at 6% -10%, rgba(11, 102, 35, .32), transparent 62%),
        radial-gradient(800px 520px at 102% 22%, rgba(244, 180, 0, .07), transparent 60%),
        radial-gradient(900px 700px at 55% 115%, rgba(11, 102, 35, .2), transparent 60%);
}

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.site-head, .main-header { display: none; }
.vh { position: sticky; top: 0; z-index: 90; }
.vh-in { max-width: var(--mx-max); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; }
.vh-service { background: rgba(3, 7, 5, .88); border-bottom: 1px solid var(--mx-line); color: var(--text-muted); font-size: .8rem; }
.vh-service .vh-in { min-height: 34px; justify-content: space-between; gap: 1rem; }
.vh-org { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-service-r { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.vh-clock { color: var(--text-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.vh-slink { display: inline-flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: none; font: inherit; color: var(--text-soft) !important; text-decoration: none; cursor: pointer; transition: color .15s; }
.vh-slink:hover { color: var(--gold) !important; }
.vh-slink svg { width: 14px; height: 14px; }
.vh-slink kbd { font: 600 .66rem var(--font); padding: .05rem .38rem; border-radius: 5px; background: rgba(255, 255, 255, .07); border: 1px solid var(--mx-line); color: var(--text-soft); }
/* Glas auf eigener Ebene, damit das fixierte Handy-Menü nicht eingesperrt wird */
.vh-main { position: relative; border-bottom: 1px solid var(--mx-line); }
.vh-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mx-glass); backdrop-filter: var(--mx-blur); -webkit-backdrop-filter: var(--mx-blur); }
.vh-main .vh-in { min-height: 72px; gap: 1.25rem; }
.vh-brand { display: flex; align-items: center; gap: .7rem; flex: none; text-decoration: none; }
.vh-crest { width: 36px; height: 42px; flex: none; filter: drop-shadow(0 4px 12px rgba(244, 180, 0, .22)); }
.vh-brand .brand-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.vh-word { font-family: var(--font-head, var(--font)); font-size: 1.7rem; line-height: 1; letter-spacing: .01em; }
.vh-word b { font-weight: 400; color: var(--green-accent); }
.vh-word i { font-style: normal; color: var(--gold); }
.vh-panel { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.vh-nav { display: flex; align-items: center; gap: .4rem; flex-wrap: nowrap; }
.vh-nav .nav-btn { height: 40px; }
.vh-caret { width: 14px; height: 14px; opacity: .75; transition: transform .2s; }
.vh-dd { position: relative; display: inline-flex; }
.vh-dd.is-open .vh-caret { transform: rotate(180deg); }
.vh-live { display: none; margin-left: .2rem; padding: .05rem .38rem; border-radius: 6px; background: rgba(255, 255, 255, .22); color: #fff; font: 700 .62rem var(--font); letter-spacing: .06em; }
.nav-streamer.is-live .vh-live { display: inline-block; }
.vh-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.vh-menu { position: absolute; top: calc(100% + .6rem); left: 50%; transform: translateX(-50%); z-index: 95; min-width: 270px; padding: .45rem; display: none;
    background: rgba(13, 21, 17, .96); backdrop-filter: var(--mx-blur); -webkit-backdrop-filter: var(--mx-blur);
    border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .95); }
.vh-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem; }
.vh-dd.is-open .vh-menu { display: grid; gap: .15rem; animation: mxIn .16s var(--mx-ease); }
@media (hover: hover) and (min-width: 1281px) { .vh-dd:hover .vh-menu { display: grid; gap: .15rem; } .vh-dd:hover .vh-caret { transform: rotate(180deg); } }
@keyframes mxIn { from { opacity: 0; transform: translate(-50%, -4px); } }
.vh-item { display: block; padding: .6rem .8rem; border-radius: var(--r-sm); color: var(--text) !important; text-decoration: none; transition: background .15s; }
.vh-item b { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 700; }
.vh-item small { display: block; margin-top: .1rem; font-size: .78rem; color: var(--text-muted); }
.vh-item:hover { background: var(--bg-surface-2); }
.vh-item.is-on { background: rgba(244, 180, 0, .1); box-shadow: inset 3px 0 0 var(--gold); }
.vh-item.is-on b { color: var(--gold); }
.vh-badge-live { padding: .05rem .45rem; border-radius: 6px; background: #dc2626; color: #fff; font-size: .66rem; font-weight: 700; }
.vh-actions { display: flex; align-items: center; gap: .55rem; flex: none; }
.vh-actions .vh-cta { padding: .62rem 1.15rem; font-size: .92rem; white-space: nowrap; }
.vh-user { position: relative; }
.vh-avatar { display: flex; align-items: center; gap: .55rem; height: 44px; padding: 0 .9rem 0 .3rem; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--bg-surface-2); color: var(--text); font: 700 .92rem var(--font); cursor: pointer; transition: border-color .15s, background .15s; }
.vh-avatar:hover { border-color: var(--gold); background: var(--bg-raise); }
.vh-avatar img, .vh-avatar span { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--green-primary); color: #fff; font-weight: 800; }
.vh-avatar-name { font-style: normal; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-userpanel { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 96; min-width: 240px; padding: .45rem; display: grid; gap: .15rem;
    background: rgba(13, 21, 17, .97); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .95); }
.vh-userpanel[hidden] { display: none; }
.vh-userhead { padding: .55rem .8rem .7rem; margin-bottom: .2rem; border-bottom: 1px solid var(--border); }
.vh-userhead strong { display: block; } .vh-userhead small { color: var(--text-muted); }
.vh-userpanel a { padding: .6rem .8rem; border-radius: var(--r-sm); color: var(--text) !important; text-decoration: none; font-weight: 600; font-size: .92rem; }
.vh-userpanel a:hover { background: var(--bg-surface-2); }
.vh-userpanel a.danger { color: var(--red) !important; }
.vh-band { height: 2px; background: linear-gradient(90deg, var(--gold) 0 18%, var(--green-accent) 18%, rgba(74, 222, 128, .35) 75%, transparent); }
.vh-band i { display: none; }
.vh-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--border-strong); background: var(--bg-surface-2); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.vh-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.vh.menu-open .vh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vh.menu-open .vh-burger span:nth-child(2) { opacity: 0; }
.vh.menu-open .vh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.vh-lock { overflow: hidden; }

@media (max-width: 1400px) and (min-width: 1281px) { .vh-nav .nav-btn { padding: .55rem .78rem; font-size: .86rem; } .vh-avatar-name { display: none; } .vh-avatar { padding-right: .3rem; } }
@media (max-width: 1280px) {
    .vh-burger { display: flex; }
    .vh-main .vh-in { min-height: 64px; }
    .vh-panel { display: none; position: fixed; left: 0; right: 0; top: var(--header-h, 100px); bottom: 0; z-index: 89; overflow-y: auto;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1rem; padding: 1rem 1.25rem 2rem;
        background: rgba(7, 12, 9, .97); backdrop-filter: var(--mx-blur); -webkit-backdrop-filter: var(--mx-blur); border-top: 1px solid var(--mx-line); }
    .vh-panel.is-open { display: flex; }
    .vh-nav { flex-direction: column; align-items: stretch; gap: .5rem; }
    .vh-nav .nav-btn { height: auto; width: 100%; justify-content: space-between; padding: .85rem 1.1rem; font-size: .98rem; }
    .vh-dd { display: grid; }
    .vh-menu { position: static; transform: none; min-width: 0; margin-top: .4rem; box-shadow: none; background: var(--bg-surface); backdrop-filter: none; }
    .vh-menu::before { display: none; }
    .vh-dd:hover .vh-menu { display: none; }
    .vh-dd.is-open .vh-menu { display: grid; animation: none; }
    .vh-actions { flex-wrap: wrap; padding-top: .9rem; border-top: 1px solid var(--border); }
    .vh-user { width: 100%; }
    .vh-userpanel { position: static; margin-top: .5rem; width: 100%; box-shadow: none; }
}
@media (max-width: 640px) { .vh-org { display: none; } .vh-service .vh-in { justify-content: flex-end; } .vh-in { padding: 0 1rem; } .vh-slink kbd { display: none; } }

/* ==========================================================================
   Moderner Feinschliff
   ========================================================================== */
/* Karten: feine Lichtkante oben, weiche Schatten, ruhiges Anheben */
:root :is(.profile-card, .table-card, .kpi-card, .news-card, .stream-card, .live-panel, .stat-card, .biz-tile, .podium-card, .choose-card, .game-card, .mod-card, .yt-card, .lk-card, .info-item, .fact-group, .card) {
    border-color: var(--mx-line); border-radius: var(--r-lg); box-shadow: var(--mx-shadow);
}
:root :is(.profile-card, .kpi-card, .news-card, .stream-card, .stat-card, .biz-tile, .podium-card, .info-item, .fact-group) { background: var(--mx-card); }
:root :is(.news-card, .stream-card, .biz-tile, .podium-card, .game-card, .mod-card, .yt-card, .lk-card, .choose-card) { transition: transform .25s var(--mx-ease), box-shadow .25s var(--mx-ease), border-color .25s; }
:root :is(.news-card, .stream-card, .biz-tile, .podium-card, .game-card, .mod-card, .yt-card, .lk-card, .choose-card):hover { transform: translateY(-3px); box-shadow: var(--mx-shadow-hover); border-color: rgba(244, 180, 0, .3); }
:root .kpi-card { position: relative; overflow: hidden; }
:root .kpi-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--green-accent), var(--gold)); opacity: .55; }

/* Abschnitte: mehr Luft, klare Hierarchie */
:root .section { padding: clamp(3.5rem, 6vw, 5rem) 0; }
:root .section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 55%), rgba(17, 25, 21, .6); border-color: var(--mx-line); }
:root .section-head { margin-bottom: 2.2rem; }
:root .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
:root .section-head p { font-size: 1.02rem; }
:root .page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }

/* Knöpfe: gleicher Stil, etwas sauberere Übergänge */
:root .btn, :root .nav-btn { transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s var(--mx-ease); }
:root .btn:active, :root .nav-btn:active { transform: translateY(1px); }
:root .btn-gold { box-shadow: 0 10px 24px -12px rgba(244, 180, 0, .75); }

/* Formulare */
:root body.dark-mode :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea) { border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
:root body.dark-mode :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 180, 0, .14); }
:root body.dark-mode :is(input[type=checkbox], input[type=radio]) { accent-color: var(--green-accent); }

/* Tabellen */
:root .data-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); background: rgba(13, 21, 17, .92); }
:root .data-table tbody tr { transition: background .15s; }
:root .data-table tbody tr:hover td { background: rgba(74, 222, 128, .045); }
@media (min-width: 1281px) { :root .data-table thead th { top: var(--header-h, 108px); } }

/* Tafeln & Chips */
:root .live-panel { overflow: hidden; }
:root .chip { border-radius: 999px; }
:root .alert { border-radius: var(--r-md); }
:root .toast, :root .palette-box { border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .95); }

/* Fußzeile: etwas mehr Ruhe */
:root .main-footer { background: rgba(6, 10, 8, .9); }
:root .footer-col a { transition: color .15s; }

@media (prefers-reduced-motion: reduce) { :root * { transition: none !important; animation: none !important; } }

/* v58 – Kennzahl-Boxen kompakter: alle in einer Reihe (Desktop) */
@media (min-width: 1100px) {
    :root .kpi-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .75rem; }
}
@media (min-width: 641px) and (max-width: 1099px) { :root .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; } }
:root .kpi-card { padding: .85rem .95rem .9rem; gap: .15rem; }
:root .kpi-card small { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root .kpi-card strong { font-size: 1.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
:root .kpi-card span { font-size: .74rem; line-height: 1.35; }

/* v58 – Discord-Knopf in der Kopfzeile */
.vh-discord { gap: .5rem; }
.vh-discord svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   v60 – Wunschliste: Karten-Feed, Segment-Filter, Popup zum Eintragen
   ========================================================================== */
.wl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.wl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.4rem; }
.wl-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .03); border: 1px solid var(--mx-line); }
.wl-seg button { display: inline-flex; align-items: center; gap: .4rem; height: 36px; padding: 0 .95rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-soft); font: 600 .86rem var(--font); cursor: pointer; transition: background .15s, color .15s; }
.wl-seg button i { font-style: normal; font-size: .72rem; min-width: 1.4em; padding: .05rem .35rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--text-muted); text-align: center; }
.wl-seg button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.wl-seg button.is-on { background: var(--gold); color: #0b0f0c; }
.wl-seg button.is-on i { background: rgba(0, 0, 0, .15); color: #0b0f0c; }
.wl-bar-r { display: flex; flex-wrap: wrap; gap: .5rem; }
.wl-bar-r .dark-input { height: 42px; padding: 0 .9rem; border-radius: 999px; }
.wl-search { position: relative; display: flex; align-items: center; }
.wl-search svg { position: absolute; left: .85rem; width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.wl-search input { height: 42px; width: 240px; padding: 0 1rem 0 2.4rem !important; border-radius: 999px !important; background-image: none !important; }
.wl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wl-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1.25rem; border-radius: 20px; background: var(--mx-card); border: 1px solid var(--mx-line); box-shadow: var(--mx-shadow); transition: border-color .2s, transform .2s var(--mx-ease), box-shadow .2s; }
.wl-card:hover { border-color: rgba(244, 180, 0, .3); transform: translateY(-2px); box-shadow: var(--mx-shadow-hover); }
.wl-card[hidden] { display: none; }
.wl-card::before { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: transparent; }
.wl-card.is-planned::before { background: var(--gold); }
.wl-card.is-done::before { background: var(--green-accent); }
.wl-card.is-review::before { background: #f59e0b; }
.wl-card.is-declined { opacity: .55; }
.wl-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 1.4rem; background: rgba(255, 255, 255, .045); border: 1px solid var(--mx-line); }
.wl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .45rem; }
.wl-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-accent); margin-right: .15rem; }
.wl-mine-tag { font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; color: var(--gold); background: rgba(244, 180, 0, .1); }
.wl-body { min-width: 0; }
.wl-body h3 { margin: 0 0 .35rem; font-size: 1.18rem; overflow-wrap: anywhere; }
.wl-desc { color: var(--text-soft); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wl-desc > :last-child { margin-bottom: 0; }
.wl-note { margin-top: .7rem; padding: .6rem .8rem; border-radius: 12px; border-left: 3px solid var(--gold); background: rgba(244, 180, 0, .07); font-size: .86rem; color: var(--text-soft); }
.wl-note strong { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: .15rem; }
.wl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: .8rem; font-size: .8rem; color: var(--text-muted); }
.wl-foot b { color: var(--text-soft); font-weight: 600; }
.wl-foot a { color: var(--gold); font-weight: 700; text-decoration: none; }
.wl-delform { margin: 0 0 0 auto; }
.wl-delform button { border: 0; background: none; padding: 0; color: var(--text-muted); font: 600 .8rem var(--font); cursor: pointer; }
.wl-delform button:hover { color: var(--red); }
.wl-vote { margin: 0; }
.wl-vote button { width: 62px; padding: .6rem 0 .5rem; display: flex; flex-direction: column; align-items: center; gap: .1rem; border-radius: 16px; border: 1.5px solid var(--border-strong); background: var(--bg-surface-2); color: var(--text-soft); cursor: pointer; font: inherit; transition: border-color .15s, color .15s, background .15s, transform .15s; }
.wl-vote svg { width: 18px; height: 18px; }
.wl-vote b { font-size: 1.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wl-vote small { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.wl-vote button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.wl-vote button.is-on { background: var(--gold); border-color: var(--gold); color: #0b0f0c; }
.wl-vote button:disabled { opacity: .45; cursor: not-allowed; }
.wl-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 3.5rem 1rem; text-align: center; border-radius: 20px; border: 1px dashed var(--border-strong); color: var(--text-muted); }
.wl-empty-ic { font-size: 2rem; } .wl-empty b { color: var(--text); font-size: 1.1rem; } .wl-empty .btn { margin-top: .8rem; }
.wl-none { grid-column: 1 / -1; padding: 2.5rem 1rem; text-align: center; border-radius: 20px; border: 1px dashed var(--border-strong); color: var(--text-muted); }

/* Popup */
body.wl-lock { overflow: hidden; }
.wl-modal { width: min(640px, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); padding: 0; border: 1px solid var(--border-strong); border-radius: 24px; background: #0f1813; color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 1), 0 0 0 1px rgba(244, 180, 0, .08); overflow: hidden; }
.wl-modal[open] { display: flex; flex-direction: column; animation: wlPop .25s var(--mx-ease); }
.wl-modal::backdrop { background: rgba(2, 5, 3, .7); backdrop-filter: blur(6px); }
@keyframes wlPop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.wl-form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100svh - 2rem); }
.wl-modal-head { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem 1.1rem; border-bottom: 1px solid var(--border);
    background: radial-gradient(400px 160px at 100% -40%, rgba(11, 102, 35, .55), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.wl-modal-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--gold) 0 22px, #111 22px 36px); }
.wl-modal-head h2 { margin: 0 0 .2rem; font-size: 1.5rem; }
.wl-modal-head p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.wl-x { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-surface-2); color: var(--text-soft); cursor: pointer; font-size: .9rem; }
.wl-x:hover { border-color: var(--gold); color: var(--gold); }
.wl-modal-body { padding: 1.3rem 1.5rem; overflow-y: auto; display: grid; gap: 1.05rem; }
.wl-typepick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.wl-typepick legend { font-size: .82rem; font-weight: 700; color: var(--text-soft); margin-bottom: .5rem; padding: 0; }
.wl-typepick label { position: relative; cursor: pointer; }
.wl-typepick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.wl-typepick span { display: flex; flex-direction: column; align-items: center; gap: .15rem; height: 100%; padding: .75rem .35rem .65rem; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--bg-surface-2); text-align: center; transition: border-color .15s, background .15s, transform .15s; }
.wl-typepick i { font-style: normal; font-size: 1.45rem; line-height: 1.2; }
.wl-typepick b { font-size: .8rem; color: var(--text); }
.wl-typepick small { font-size: .64rem; color: var(--text-muted); line-height: 1.25; }
.wl-typepick label:hover span { border-color: rgba(244, 180, 0, .5); }
.wl-typepick input:checked + span { border-color: var(--gold); background: rgba(244, 180, 0, .1); transform: translateY(-2px); }
.wl-typepick input:checked + span b { color: var(--gold); }
.wl-typepick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.wl-field { position: relative; display: grid; gap: .4rem; }
.wl-field label { font-size: .82rem; font-weight: 700; color: var(--text-soft); }
.wl-field label em { font-style: normal; font-weight: 500; color: var(--text-muted); margin-left: .3rem; }
.wl-field input, .wl-field textarea { width: 100%; }
.wl-field textarea { resize: vertical; min-height: 110px; }
.wl-count { justify-self: end; font-size: .72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.wl-modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; padding: 1rem 1.5rem 1.3rem; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.wl-modal-foot > span { font-size: .76rem; color: var(--text-muted); max-width: 30ch; }
.wl-modal-foot > div { display: flex; gap: .5rem; margin-left: auto; }

@media (max-width: 960px) { .wl-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .wl-head .btn { width: 100%; justify-content: center; }
    .wl-seg { border-radius: 16px; }
    .wl-bar-r, .wl-search, .wl-search input { width: 100%; }
    .wl-bar-r .dark-input { flex: 1; }
    .wl-card { grid-template-columns: minmax(0, 1fr) auto; }
    .wl-ic { display: none; }
    .wl-typepick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wl-modal { width: 100vw; max-height: 100svh; border-radius: 20px 20px 0 0; margin-bottom: 0; }
    .wl-modal-foot > div { width: 100%; } .wl-modal-foot .btn { flex: 1; justify-content: center; }
}
.wl-field :is(input, textarea) { box-sizing: border-box; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--bg-input); color: var(--text); font: 400 .95rem var(--font); line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.wl-field :is(input, textarea)::placeholder { color: var(--text-muted); opacity: .8; }
.wl-field :is(input, textarea):focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 180, 0, .14); }
@media (max-width: 640px) { .wl-modal { margin: auto 0 0; } }

/* ==========================================================================
   v62 – Einheitlichkeit & Bedienbarkeit auf allen Seiten
   Ein Muster pro Element: Filter = Segment-Pille, Leerzustand = gestrichelte Box,
   Meta-Infos = kleine Chips, Fokus = goldener Ring, Anker landen unter der Kopfzeile.
   ========================================================================== */
html { scroll-padding-top: calc(var(--header-h, 108px) + 16px); }
:root :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
:root ::placeholder { color: var(--text-muted); opacity: .75; }

/* Filterleisten aller Seiten → Segment-Pille (wie Tickets/Wunschliste) */
:root :is(.cal-filter, .yt-filter, .pl-filter, .lk-filter, .wk-filter, .filter-bar, #cal-filter > div, #yt-filter > div, #pl-filter > div) {
    display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 1.4rem;
    border: 1px solid var(--mx-line); border-bottom: 1px solid var(--mx-line); border-radius: 999px; background: rgba(255, 255, 255, .03);
}
:root :is(.cf-btn, .filter-btn) {
    display: inline-flex; align-items: center; gap: .45rem; height: 36px; padding: 0 1rem; border: 0; border-radius: 999px;
    background: transparent; color: var(--text-soft); font: 600 .86rem var(--font); box-shadow: none; opacity: 1; cursor: pointer; transition: background .15s, color .15s;
}
:root :is(.cf-btn, .filter-btn):hover { color: #fff; background: rgba(255, 255, 255, .05); }
:root :is(.cf-btn, .filter-btn).active { background: var(--gold); color: #0b0f0c; box-shadow: none; }
:root .cf-btn.active::after { display: none; }
:root .cf-btn.empty:not(.active) { opacity: .55; }
:root .cf-btn .n { font-style: normal; font-size: .72rem; min-width: 1.4em; padding: .05rem .4rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--text-muted); text-align: center; }
:root .cf-btn.active .n { background: rgba(0, 0, 0, .15); color: #0b0f0c; }
/* Reiter (Tabs) überall als Segment */
:root .tab-list { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--mx-line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
:root .tab-btn { height: 38px; padding: 0 1.05rem; border-radius: 999px; }
:root .tab-btn[aria-selected="true"] { background: var(--gold); color: #0b0f0c; box-shadow: none; }

/* Meta-Chips im Seitenkopf */
:root .ph-meta { gap: .45rem; margin-top: 1rem; }
:root .ph-chip { height: 30px; padding: 0 .8rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--mx-line); color: var(--text-soft); font-size: .78rem; }
:root .ph-chip i { color: var(--gold); }
:root .hero-chip { border-radius: 999px; }

/* Leerzustände einheitlich */
:root :is(.cal-empty, .ga-empty, .lk-empty, .nw-empty, .pl-empty, .wk-empty, .yt-empty, .sw-empty, .dlc-empty, .empty-box, .table-empty) {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-height: 160px; padding: 2.6rem 1.2rem;
    text-align: center; color: var(--text-muted); font-size: .95rem; border-radius: var(--r-lg); border: 1px dashed var(--border-strong); background: rgba(255, 255, 255, .015); box-shadow: none;
}
:root :is(.cal-empty, .ga-empty, .lk-empty, .nw-empty, .pl-empty, .wk-empty, .yt-empty, .sw-empty, .dlc-empty) > i:first-child { font-size: 1.7rem; color: var(--gold); opacity: .6; margin: 0; }
:root .table-empty[hidden] { display: none; }

/* Hinweise einheitlich */
:root .alert { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--r-md); border: 1px solid; border-left-width: 4px; font-size: .92rem; line-height: 1.5; }

/* Tabellen: Kopf, Zeilen, Zahlen */
:root .table-card { border-radius: var(--r-lg); overflow: hidden; }
:root .data-table td { vertical-align: middle; }
:root .data-table td.num, :root .data-table th.num { font-variant-numeric: tabular-nums; }
:root .table-toolbar { gap: .75rem; }
:root .table-toolbar .dark-input, :root .toolbar-right .dark-input { height: 40px; border-radius: 999px; padding: 0 .95rem; }

/* Mod-Liste: Knopf und Merkmale ruhiger, ohne Großbuchstaben */
:root .dlc-btn, :root .mod-link-btn, :root a.btn-mod { text-transform: none; letter-spacing: 0; }

/* Breadcrumbs einheitlich */
:root .crumbs { font-size: .84rem; }
:root .crumbs a { color: var(--text-soft); text-decoration: none; font-weight: 600; }
:root .crumbs a:hover { color: var(--gold); }

/* „Nach oben“-Knopf */
:root .to-top { width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: #0b0f0c; border: 0; box-shadow: 0 12px 28px -12px rgba(244, 180, 0, .8); }

/* Touch-Ziele am Handy mindestens 44 px */
@media (max-width: 760px) {
    :root :is(.cal-filter, .yt-filter, .pl-filter, .lk-filter, .wk-filter, .filter-bar, .tab-list, .tk-seg, .wl-seg) { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 16px; max-width: 100%; }
    :root :is(.cal-filter, .yt-filter, .pl-filter, .lk-filter, .wk-filter, .filter-bar, .tab-list, .tk-seg, .wl-seg)::-webkit-scrollbar { display: none; }
    :root :is(.cf-btn, .filter-btn, .tab-btn, .tk-seg button, .wl-seg button) { flex: none; height: 40px; }
    :root .btn { min-height: 44px; }
}
/* Mod-Liste (Downloads): Knöpfe im Seitenstil statt Großbuchstaben */
:root .btn-refresh-premium, :root .btn-action-download { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 700; border-radius: 999px; }
:root .btn-action-download { height: 34px; max-width: 8.5rem; border-color: var(--border-strong); color: var(--text); background: var(--bg-surface-2); }
:root .btn-action-download:hover { border-color: var(--gold); color: var(--gold); background: rgba(244, 180, 0, .08); }
:root .btn-refresh-premium { height: 40px; }
@media (max-width: 760px) {
    :root :is(.cal-filter, .yt-filter, .pl-filter, .lk-filter, .wk-filter, .filter-bar, .tab-list, .tk-seg, .wl-seg) { flex-wrap: nowrap !important; overflow-x: auto !important; justify-content: flex-start !important; }
}
:root .ref-btn, :root [class*="refresh"] { text-transform: none; letter-spacing: 0; }
