/* Optim #177: Schriften lokal (WOFF2 unter assets/fonts, kein Google-Request) */
@import url('fonts.css');
/* ============================================================
   BookMyBand – UI
   "Neon Control Desk": die CI-Farben (Magenta/Cyan/Lila aus dem Logo)
   bleiben, aber als bewusst gesetzte Akzente auf flachen, technischen
   Modulen – kein generischer Glas-/Glow-Look, sondern eine eigenständige
   Synthwave-Bedienoberfläche.
   ============================================================ */
:root {
    color-scheme: dark;
    --bg: #070809;
    --bg-soft: #0b0c11;
    --panel: #0f1118;
    --panel-solid: #0f1118;
    --panel-2: #14161e;
    --border: rgba(233, 236, 246, 0.09);
    --border-strong: rgba(233, 236, 246, 0.17);
    --line: rgba(54, 224, 255, 0.16);        /* technische Trennlinie (Cyan-Hauch) */
    --text: #edf0f7;
    --muted: #868fa3;
    --primary: #ff3db6;
    --primary-2: #36e0ff;
    --accent: #36e0ff;
    --pink: #ff3db6;
    --purple: #b06cff;
    --sun: #ffb13d;
    --amber: #ffd23f; /* warmes Gelb aus Logo-Sonnengradient */
    --ok: #45d39b;
    --err: #ff6b7a;
    --warn: #e6b450;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.6);
    --glow: 0 0 0 1px rgba(255, 61, 182, .35), 0 8px 26px rgba(255, 61, 182, .28);
    --grad: linear-gradient(135deg, #ff3db6 0%, #b06cff 55%, #36e0ff 120%);
    --grad-primary: linear-gradient(135deg, #ff3db6 0%, #b06cff 60%, #36e0ff 125%);
    --grad-accent: linear-gradient(135deg, #ffb13d, #ff3db6);
    --grid: rgba(180, 200, 255, 0.05);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-head: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-display: 'Yellowtail', 'Pacifico', cursive; /* 80er Miami-Vice-Script (wie Logo) – nur große Marken-Headlines */
    --grad-sunset: linear-gradient(180deg, #ffd23f 0%, #ff9b3d 36%, #ff3d8b 76%, #b06cff 120%); /* Logo-Sonnenuntergang */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* ---- Control Design Tokens (Buttons, Inputs, Selects) ---- */
    --control-height-sm: 32px;
    --control-height-md: 40px;
    --control-height-lg: 48px;
    --control-padding-sm: 8px 12px;
    --control-padding-md: 11px 16px;
    --control-padding-lg: 14px 22px;
    --control-font-size-sm: 0.82rem;
    --control-font-size-md: 0.9rem;
    --control-font-size-lg: 1rem;
    --control-border-radius: var(--radius);
    --control-border-radius-sm: var(--radius-sm);
    --control-border-width: 1px;
    --control-gap: 8px;
    --control-textarea-min-height: 92px;
    --transition-control: 180ms var(--ease);
    --color-primary: var(--primary);
    --color-primary-hover: var(--pink);
    --color-primary-active: #c9188a;
    --color-secondary: var(--muted);
    --color-secondary-hover: var(--text);
    --color-danger: var(--err);
    --color-danger-hover: #ff5068;
    --color-success: var(--ok);
    --color-warning: var(--warn);
    --color-border: var(--border-strong);
    --color-border-hover: var(--border-strong);
    --color-background: var(--bg-soft);
    --color-background-disabled: var(--panel);
    --color-text: var(--text);
    --color-text-muted: var(--muted);
    --color-text-disabled: #5a6076;
    --color-focus: var(--accent);
    --focus-ring: 0 0 0 3px rgba(54, 224, 255, 0.16);
    --focus-ring-invalid: 0 0 0 3px rgba(255, 107, 122, 0.22);
    --focus-ring-valid: 0 0 0 3px rgba(69, 211, 155, 0.2);
}
/* Light-Mode (Toggle in der Topbar): helle Flächen, gleiche CI-Akzente. */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f5fa;
    --bg-soft: #eaecf4;
    --panel: #ffffff;
    --panel-solid: #ffffff;
    --panel-2: #f1f3f9;
    --border: rgba(18, 22, 38, 0.12);
    --border-strong: rgba(18, 22, 38, 0.22);
    --line: rgba(176, 50, 130, 0.18);
    --text: #14161f;
    --muted: #586074;
    --grid: rgba(18, 22, 38, 0.045);
    --shadow: 0 2px 10px rgba(20, 22, 45, 0.08);
    --shadow-lg: 0 22px 60px rgba(20, 22, 45, 0.16);
    --primary: #d61f8f;
    --pink: #d61f8f;
    --accent: #0aa6c9;
    --primary-2: #0aa6c9;
    --color-background-disabled: var(--panel-2);
    --color-text-disabled: #8a92a8;
    --focus-ring: 0 0 0 3px rgba(10, 166, 201, 0.22);
    --focus-ring-invalid: 0 0 0 3px rgba(255, 107, 122, 0.28);
    --focus-ring-valid: 0 0 0 3px rgba(69, 211, 155, 0.24);
}
html[data-theme="light"] body { background: var(--bg); color: var(--text); }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
/* ---- Statischer Synthwave-Horizont: Sonnenuntergang-Schein oben + perspektivisches
   Raster, das nach unten ausblendet. Bewusst gesetzt, NICHT animiert. ---- */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 30%, transparent 64%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 30%, transparent 64%);
    opacity: .7;
}
body::after {
    content: "";
    position: fixed; z-index: -3; pointer-events: none;
    top: -34vh; left: 50%; transform: translateX(-50%);
    width: 1200px; height: 760px; max-width: 150vw;
    background:
        radial-gradient(ellipse 60% 60% at 50% 40%, rgba(255, 61, 182, .16), transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 30%, rgba(54, 224, 255, .10), transparent 72%);
}

a { color: var(--accent); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: #8ce8ff; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: 1.7rem; margin: 0 0 .3rem; }
h2 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; }
.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 1.4rem 0 .6rem;
}
.section-head-row h2 { margin: 0; flex: 1 1 auto; min-width: 0; }
.section-head-row .btn-row { flex: 0 0 auto; margin-left: auto; gap: 2px; }
.section-head-row .export-wrap { flex: 0 0 auto; }
.section-head-row .btn-row .btn.btn-icon-only,
.section-head-row .btn-row .export-wrap .btn.btn-icon-only,
.section-head-row .btn-row .export-wrap [data-export-toggle].btn.btn-icon-only {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.section-head-row .btn-row .btn.btn-icon-only:hover,
.section-head-row .btn-row .btn.btn-icon-only:focus-visible,
.section-head-row .btn-row .btn.btn-icon-only.is-open,
.section-head-row .btn-row .export-wrap .btn.btn-icon-only:hover,
.section-head-row .btn-row .export-wrap .btn.btn-icon-only:focus-visible,
.section-head-row .btn-row .export-wrap .btn.btn-icon-only.is-open {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.section-head-row .btn-row .btn.btn-icon-only .ic,
.section-head-row .btn-row .export-wrap .btn.btn-icon-only .ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.section-head-row .btn-row .btn.btn-icon-only .ic svg,
.section-head-row .btn-row .export-wrap .btn.btn-icon-only .ic svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Ghost-Icon-Aktionen: unsichtbar bis Hover, Icon frei ohne Button-Hintergrund */
.section-head-row .btn-ghost-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    gap: 0;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    opacity: 0;
    overflow: visible;
    transition: opacity .2s var(--ease), gap .18s var(--ease), padding .18s var(--ease), width .18s var(--ease), color .18s var(--ease);
}
.section-head-row:hover .btn-ghost-icon,
.section-head-row .btn-ghost-icon:hover,
.section-head-row .btn-ghost-icon:focus-visible,
.section-head-row .btn-ghost-icon.is-open,
.section-head-row .btn-ghost-icon.is-label-open,
.section-head-row .btn-ghost-icon.is-pinned {
    opacity: 1;
}
.section-head-row .btn-ghost-icon:hover,
.section-head-row .btn-ghost-icon:focus-visible,
.section-head-row .btn-ghost-icon.is-open,
.section-head-row .btn-ghost-icon.is-label-open,
.section-head-row .btn-ghost-icon.is-pinned {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.section-head-row .btn-ghost-icon .ic,
.section-head-row .btn-ghost-icon .btn-hover-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0;
    line-height: 1;
    opacity: .5;
    transition: opacity .18s var(--ease);
}
.section-head-row .btn-ghost-icon .ic svg,
.section-head-row .btn-ghost-icon .btn-hover-label-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.section-head-row .btn-ghost-icon:hover .ic,
.section-head-row .btn-ghost-icon:hover .btn-hover-label-icon,
.section-head-row .btn-ghost-icon:focus-visible .ic,
.section-head-row .btn-ghost-icon:focus-visible .btn-hover-label-icon,
.section-head-row .btn-ghost-icon.is-open .ic,
.section-head-row .btn-ghost-icon.is-open .btn-hover-label-icon,
.section-head-row .btn-ghost-icon.is-label-open .ic,
.section-head-row .btn-ghost-icon.is-label-open .btn-hover-label-icon,
.section-head-row .btn-ghost-icon.is-pinned .ic,
.section-head-row .btn-ghost-icon.is-pinned .btn-hover-label-icon {
    opacity: 1;
}
.section-head-row .btn-ghost-icon.btn-hover-label:hover,
.section-head-row .btn-ghost-icon.btn-hover-label:focus-visible,
.section-head-row .btn-ghost-icon.btn-hover-label.is-open,
.section-head-row .btn-ghost-icon.btn-hover-label.is-label-open,
.section-head-row .btn-ghost-icon.btn-hover-label.is-pinned {
    width: auto;
    min-width: 36px;
    padding: 0;
    gap: 8px;
    justify-content: center;
}
.section-head-row .export-wrap .btn-ghost-icon.btn-hover-label,
.section-head-row .export-wrap [data-export-toggle].btn-ghost-icon {
    padding: 0;
}
.section-head-row .export-wrap .btn-ghost-icon.btn-hover-label:hover,
.section-head-row .export-wrap .btn-ghost-icon.btn-hover-label:focus-visible,
.section-head-row .export-wrap .btn-ghost-icon.btn-hover-label.is-open,
.section-head-row .export-wrap .btn-ghost-icon.btn-hover-label.is-label-open,
.section-head-row .export-wrap .btn-ghost-icon.btn-hover-label.is-pinned {
    padding: 0;
    gap: 8px;
}
.section-head-row .btn-ghost-icon .btn-hover-label-text {
    font-weight: 600;
    font-size: .82rem;
    color: var(--muted);
}
.section-head-row .btn-ghost-icon:hover .btn-hover-label-text,
.section-head-row .btn-ghost-icon:focus-visible .btn-hover-label-text,
.section-head-row .btn-ghost-icon.is-open .btn-hover-label-text,
.section-head-row .btn-ghost-icon.is-label-open .btn-hover-label-text,
.section-head-row .btn-ghost-icon.is-pinned .btn-hover-label-text {
    color: var(--text);
}
@media (max-width: 720px), (hover: none) {
    .section-head-row .btn-ghost-icon {
        opacity: 1;
    }
    .section-head-row .btn-ghost-icon .ic,
    .section-head-row .btn-ghost-icon .btn-hover-label-icon {
        opacity: .55;
    }
    .section-head-row .btn-ghost-icon.btn-hover-label:hover,
    .section-head-row .btn-ghost-icon.btn-hover-label:focus-visible,
    .section-head-row .btn-ghost-icon.btn-hover-label.is-open,
    .section-head-row .btn-ghost-icon.btn-hover-label.is-label-open,
    .section-head-row .btn-ghost-icon.btn-hover-label.is-pinned {
        gap: 8px;
    }
}
h3 { font-size: 1.02rem; margin: 0 0 .7rem; }
p { margin: .4rem 0; }
small { color: var(--muted); }
code { background: rgba(54, 224, 255, .12); color: #8ce8ff; padding: 1px 6px; border-radius: 4px; font-size: .85em; font-family: var(--font-mono); }
::selection { background: rgba(255, 61, 182, .32); color: #fff; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2f3d; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3a4151; }

/* ---- Layout ---- */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px; flex-shrink: 0;
    background: var(--bg-soft);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 20px 12px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; padding: 4px 8px; }
.brand-mark {
    font-size: 1.1rem; width: 34px; height: 34px; border-radius: var(--radius);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad-primary); color: #fff;
}
.brand-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* ---- Logo-Mark (SVG/Bild) ---- */
.logo-mark { display: block; flex-shrink: 0; }
.brand { padding: 4px 4px 12px; justify-content: center; }
.brand-logo-link { display: flex; justify-content: center; width: 100%; }
.brand .logo-mark { width: 86% !important; height: auto !important; max-width: 86%; }
.auth-logo .logo-mark { display: inline-block; vertical-align: middle; margin-right: 9px; }

.band-badge {
    margin: 14px 6px 18px; padding: 9px 12px;
    background: var(--panel-2);
    border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: var(--radius); font-size: .85rem; font-weight: 600;
}
.band-badge--muted { color: var(--muted); font-weight: 500; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.nav-sep { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin: 18px 12px 7px; display: flex; align-items: center; gap: 7px; }
.nav-sep::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: 0 0 auto; }
.nav-link {
    display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius);
    color: var(--muted); font-weight: 500; font-size: .92rem; position: relative;
    transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-link:hover { background: rgba(233, 236, 246, .045); color: var(--text); }
.nav-link.active { background: linear-gradient(90deg, rgba(255, 61, 182, .16), rgba(255, 61, 182, .04)); color: #fff; }
.nav-link.active::before {
    content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 64%; border-radius: 0 3px 3px 0; background: var(--grad-primary);
}
.nav-link .ic { width: 20px; display: inline-flex; align-items: center; justify-content: center; opacity: .82; flex: 0 0 auto; }
.nav-link.active .ic { opacity: 1; color: var(--pink); }
.nav-ic { width: 18px; height: 18px; display: block; }
.nav-toggle .ic .nav-ic { width: 22px; height: 22px; }
.nav-link--btn { background: none; border: none; width: 100%; cursor: pointer; font: inherit; text-align: left; }

/* Sidebar: ausklappbare Nav-Gruppen */
.nav-group { display: flex; flex-direction: column; gap: 0; }
.nav-group-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 11px;
}
.nav-group-toggle .nav-group-label { flex: 1; min-width: 0; }
.nav-group-chev {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    opacity: .5;
    color: var(--muted);
    transition: transform .24s cubic-bezier(0.32, 0.72, 0, 1), opacity .18s var(--ease), color .18s var(--ease);
}
.nav-group-chev .nav-ic { width: 14px; height: 14px; stroke-width: 2.25; }
.nav-group--open .nav-group-chev {
    transform: rotate(180deg);
    opacity: .9;
    color: var(--accent);
}
.nav-group-toggle:hover .nav-group-chev { opacity: .75; color: var(--text); }
/* Parent bleibt lesbar, gibt dem aktiven Sublink den Vorrang */
.nav-group--open > .nav-group-toggle.active {
    background: rgba(255, 61, 182, 0.07);
    color: var(--text);
}
.nav-group--open > .nav-group-toggle.active::before {
    height: 40%;
    opacity: .5;
}
.nav-sub {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows .28s cubic-bezier(0.32, 0.72, 0, 1);
}
.nav-group--open .nav-sub { grid-template-rows: 1fr; }
.nav-sub-inner {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: none;
}
.nav-group--open .nav-sub-inner {
    /* Rail unter dem Label (Icon 20 + Gap 11) */
    margin: 2px 4px 4px 31px;
    padding: 4px 0 6px;
    border-left: 1px solid var(--line);
}
.nav-sublink {
    display: flex;
    align-items: center;
    padding: 6px 10px 6px 12px;
    margin-left: -1px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: .84rem;
    font-weight: 500;
    letter-spacing: 0.012em;
    line-height: 1.35;
    text-decoration: none;
    position: relative;
    transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-sublink:hover {
    color: var(--text);
    background: rgba(233, 236, 246, 0.045);
}
.nav-sublink:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(54, 224, 255, 0.22);
}
.nav-sublink.active {
    color: var(--text);
    font-weight: 600;
    background: rgba(255, 61, 182, 0.09);
}
.nav-sublink.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 14px;
    border-radius: 1px;
    background: var(--grad-primary);
}
html[data-theme="light"] .nav-group--open > .nav-group-toggle.active {
    background: rgba(214, 31, 143, 0.06);
}
html[data-theme="light"] .nav-sublink:hover { background: rgba(18, 22, 38, 0.04); }
html[data-theme="light"] .nav-sublink.active {
    background: rgba(214, 31, 143, 0.07);
}
@media (max-width: 900px) {
    .nav-group--open .nav-sub-inner {
        margin: 4px 2px 6px 28px;
        padding: 6px 0 8px;
        gap: 3px;
    }
    .nav-sublink {
        font-size: .9rem;
        letter-spacing: 0.01em;
        padding: 10px 12px 10px 14px;
        border-radius: var(--radius);
        min-height: 44px;
    }
    .nav-sublink.active {
        background: linear-gradient(90deg, rgba(255, 61, 182, 0.13) 0%, rgba(54, 224, 255, 0.04) 100%);
    }
    .nav-sublink.active::before {
        width: 2px;
        height: 18px;
    }
    html[data-theme="light"] .nav-sublink.active {
        background: linear-gradient(90deg, rgba(214, 31, 143, 0.09) 0%, rgba(10, 166, 201, 0.04) 100%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .nav-sub, .nav-group-chev { transition: none; }
}

.avatar-sm { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-initials {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .62rem; font-weight: 700; letter-spacing: .02em; line-height: 1;
    color: hsl(var(--avatar-hue, 210) 28% 96%);
    background: hsl(var(--avatar-hue, 210) 42% 42%);
}
html[data-theme="light"] .avatar-initials {
    color: hsl(var(--avatar-hue, 210) 35% 98%);
    background: hsl(var(--avatar-hue, 210) 48% 48%);
}
.sidebar-foot { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 8px; }
.logout-form { margin: 0; }

/* ---- Sprachumschalter ---- */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin: 8px 4px 0; }
.lang-switch__ic { opacity: .7; font-size: .95rem; }
.lang-switch select {
    background: var(--panel); color: var(--text); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 6px 8px; font-size: .85rem; font-family: var(--font-mono); cursor: pointer;
}
.lang-switch--compact select { padding: 4px 6px; font-size: .8rem; }
.topbar-search-wrap {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
}
.topbar-search-wrap.is-open {
    width: auto;
}
.topbar-search-form {
    width: 0;
    min-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    margin-right: 0;
    transition: width .28s var(--ease), opacity .22s var(--ease), margin-right .28s var(--ease);
}
.topbar-search-wrap.is-open .topbar-search-form {
    width: min(280px, calc(100vw - 168px));
    opacity: 1;
    pointer-events: auto;
    margin-right: 6px;
    overflow: visible;
}
.topbar-search-form input[type=search] {
    width: 100%;
    min-width: 160px;
    min-height: 34px;
    padding: 7px 12px;
    background: rgba(233, 236, 246, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .88rem;
    font-family: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.topbar-search-form input[type=search]:focus-visible {
    border-color: var(--accent);
    outline: none;
    background: var(--panel);
    box-shadow: 0 0 0 3px rgba(54, 224, 255, .18);
}
.topbar-search-form { position: relative; }
.topbar-search-suggest.ac-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 80;
    min-width: min(360px, 92vw);
    max-height: min(420px, 60vh);
}
.topbar-search-suggest .ac-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    text-align: left;
}
.topbar-search-suggest .ac-item strong { font-size: .9rem; }
.topbar-search-suggest .ac-item .muted { font-size: .75rem; line-height: 1.3; }
.topbar-search-suggest .ac-item--more {
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    font-size: .85rem;
    border-top: 1px solid var(--border);
}
.topbar-search-suggest .ac-item--quick strong { color: var(--accent); }
.topbar-search-suggest.is-loading { min-height: 40px; }
.topbar-search-suggest .ac-item--loading { pointer-events: none; opacity: .7; }

.tpl-pin-col { width: 2.2rem; text-align: center; }
.tpl-pin-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.8rem; height: 1.8rem; padding: 0; border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1;
}
.tpl-pin-btn:hover, .tpl-pin-btn.is-on { color: var(--accent); }

.upload-progress { margin: 10px 0 12px; }
.upload-progress__bar {
    height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden;
}
.upload-progress__bar > span {
    display: block; height: 100%; width: 0; background: var(--accent);
    transition: width .15s ease;
}
.upload-progress__meta {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 6px; font-size: .82rem; color: var(--muted);
}
form.is-uploading .photo-dropzone { pointer-events: none; opacity: .7; }
html[data-theme="light"] .topbar-search-form input[type=search] {
    background: rgba(12, 14, 22, 0.04);
}
html[data-theme="light"] .topbar-search-form input[type=search]:focus-visible {
    background: #fff;
}
@media (min-width: 901px) {
    .topbar-search-wrap.is-open .topbar-search-form {
        width: min(320px, 36vw);
    }
}
@media (prefers-reduced-motion: reduce) {
    .topbar-search-form { transition: none; }
}
/* ---- Kanban-Pipeline ---- */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.kanban-col { flex: 0 0 250px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.kanban-col h4 { margin: 0 0 10px; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kanban-cards { min-height: 70px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--radius-sm); transition: background .15s var(--ease); padding: 2px; }
.kanban-cards.drop-over { background: rgba(54, 224, 255, .10); outline: 1px dashed var(--accent); }
.kanban-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; cursor: grab; font-size: .87rem; }
.kanban-card.dragging { opacity: .45; }
.kanban-card a { text-decoration: none; color: var(--text); }
.kanban-card .muted { font-size: .77rem; margin-top: 2px; }

.main {
    flex: 1; min-width: 0; width: 100%; max-width: none;
    padding: clamp(16px, 2vw, 32px) clamp(16px, 2.5vw, 48px);
    animation: mainIn .42s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes mainIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .main { animation: none; } }

/* ---- Topbar ---- */
.topbar {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    margin-bottom: 22px;
}
.topbar-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border);
    position: relative;
}
.topbar-left {
    display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto;
}
.topbar-right {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.topbar-right .topbar-search-open,
.topbar-right .topbar-quick-toggle,
.topbar-right .topbar-tour-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    gap: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.topbar-right .topbar-search-open .ic,
.topbar-right .topbar-quick-toggle .ic,
.topbar-right .topbar-tour-btn .ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    line-height: 1;
}
.topbar-right .topbar-search-open .ic svg,
.topbar-right .topbar-quick-toggle .ic svg,
.topbar-right .topbar-tour-btn .ic svg {
    width: 18px;
    height: 18px;
    display: block;
}
.topbar-quick-wrap,
.topbar-user-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
}
/* Optisch: Avatar füllt 34px, Icons nur ~18px mittig — Stern etwas nach links. */
.topbar-right .topbar-quick-wrap {
    margin-left: -3px;
}
.topbar-ctx { font-family: var(--font-head); font-weight: 600; color: var(--text); letter-spacing: .01em; text-decoration: none; }
.topbar-ctx:hover { color: var(--muted); }
.topbar-switch { margin: 0; }
.topbar-switch select {
    appearance: none; -webkit-appearance: none;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text);
    width: auto; max-width: 300px; padding: 8px 36px 8px 14px; border-radius: 11px;
    border: 1px solid var(--border-strong); background-color: var(--panel); cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa0c2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 13px;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.topbar-switch select:hover { border-color: var(--primary); background-color: rgba(54, 224, 255,.07); }
.topbar-switch select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(54, 224, 255,.18); }
.topbar-switch select option { font-weight: 600; }
.topbar-ctx--muted { color: var(--muted); font-weight: 500; }
.topbar-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
}
button.topbar-user {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
    margin: 0;
    border-radius: 50%;
}
.topbar-user:hover, button.topbar-user:hover { color: var(--text); }
.topbar-user:focus-visible, button.topbar-user:focus-visible { outline: none; color: var(--text); box-shadow: 0 0 0 3px rgba(54, 224, 255, .18); border-radius: 50%; }
.topbar-user .avatar-sm,
.topbar-user .avatar-initials { width: 34px; height: 34px; font-size: .78rem; }
.topbar-user-menu { min-width: 200px; }
@media (max-width: 560px) { .topbar-ctx { font-size: .95rem; } }

/* ---- Auth / centered ---- */
.auth-wrap { position: relative; max-width: 412px; margin: 9vh auto 0; padding: 0 18px 40px; animation: fadeIn .4s var(--ease) both; }
.auth-card {
    background: var(--panel);
    border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 40px 36px 34px; box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.auth-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
}
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 13px; margin: 2px 0 6px; }
.auth-logo .logo-mark { display: block; margin: 0; }
.auth-logo__name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; letter-spacing: 0;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: .92rem; }

.auth-foot { display: flex; justify-content: center; margin-top: 20px; }
.auth-foot .lang-switch { margin: 0; padding: 5px 12px 5px 11px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--border); transition: border-color .2s var(--ease); }
.auth-foot .lang-switch:hover { border-color: var(--border-strong); }
.auth-foot .lang-switch select { border: none; background: transparent; padding: 3px 4px; color: var(--muted); }
.auth-foot .lang-switch select:focus { outline: none; color: var(--text); }

/* ---- Versand-Qualitäts-Check (Kampagnen) ---- */
.mailq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mailq-score { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; border: 1px solid; border-radius: var(--radius); padding: 3px 11px; white-space: nowrap; }
.mailq-score span { font-size: .68rem; color: var(--muted); font-weight: 500; }
.mailq-bar { height: 7px; border-radius: 6px; background: rgba(233, 236, 246, .07); overflow: hidden; margin: 11px 0 13px; }
.mailq-bar span { display: block; height: 100%; border-radius: 6px; transition: width .4s var(--ease); }
.mailq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.mailq-list li { display: flex; gap: 9px; font-size: .88rem; align-items: flex-start; line-height: 1.45; }
.mailq-list .mq-ic { flex: 0 0 auto; font-weight: 700; }
.mailq-list .mq-ok { color: var(--muted); }
.mailq-list .mq-ok .mq-ic { color: var(--ok); }
.mailq-list .mq-warn .mq-ic { color: var(--sun); }
.mailq-list .mq-bad .mq-ic { color: var(--err); }

/* ---- Posteingang: In-App-Antwort-Aufklapper ---- */
.reply-toggle { display: inline-block; cursor: pointer; list-style: none; font-size: .86rem; color: var(--accent); font-weight: 600; }
.reply-toggle::-webkit-details-marker { display: none; }
.reply-toggle::marker { content: ''; }
.reply-toggle:hover { text-decoration: underline; }

/* ---- Social-Login-Buttons ---- */
/* Hat eine Auth-Seite die Sprachauswahl im Formular (CI-konform), den globalen Footer-Umschalter
   ausblenden – keine doppelte Sprachauswahl auf Registrierungs-Seiten. */
body:has(.auth-card select[name="lang"]) .auth-foot .lang-switch { display: none; }
.legal-accept--flash { animation: legalFlash 1.3s ease; border-radius: 10px; }
@keyframes legalFlash { 0%, 100% { box-shadow: none; } 25%, 65% { box-shadow: 0 0 0 3px rgba(255, 61, 182, .55); } }
.oauth-top { margin-top: 4px; }
.oauth-top .oauth-sep { display: none; } /* #19: interner „oder"-Trenner im Express-Block oben weg */
.oauth-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: .8rem; }
.oauth-sep::before, .oauth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.oauth-btns { display: flex; flex-direction: column; gap: 9px; }
.oauth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #fff; color: #1f2330;
    border: 1px solid var(--border-strong); font-weight: 600; }
.oauth-btn:hover { background: #f1f1f4; text-decoration: none; }
.oauth-btn--f { background: #1877F2; color: #fff; border-color: #1877F2; }
.oauth-btn--f:hover { background: #166fe0; }

/* ---- Admin-Hub-Karten ---- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 8px; }
.admin-card { display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px; background: var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text);
    transition: border-color .2s var(--ease); }
.admin-card:hover { border-color: var(--accent); }
.admin-card__ic { font-size: 1.4rem; line-height: 1; opacity: .85; }
.admin-card__ic .nav-ic { width: 1.5rem; height: 1.5rem; } /* CI-Iconset (SVG) auf Glyph-Größe bringen */
.admin-card__body { display: flex; flex-direction: column; gap: 3px; }
.admin-card__desc { color: var(--muted); font-size: .85rem; }

/* ---- Tarif-/Plan-Karten ---- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan-card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; }
.plan-card--popular { border-color: var(--pink); box-shadow: inset 0 1px 0 var(--pink); }
.plan-card--current { border-color: var(--ok); }
.plan-flag { position: absolute; top: -11px; left: 20px; background: var(--grad-primary); color: #fff;
    font-family: var(--font-mono); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; }
.plan-card h3 { margin: 0 0 4px; font-family: var(--font-head); }
.plan-price { font-size: 1.9rem; font-weight: 700; font-family: var(--font-head); color: var(--text); }
.plan-price span { font-size: .8rem; font-weight: 500; color: var(--muted); }
.plan-tag { color: var(--muted); font-size: .86rem; margin: 4px 0 14px; min-height: 2.4em; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; font-size: .88rem; }
.plan-feats li { line-height: 1.3; }
.plan-num { font-weight: 700; color: var(--text); }
.plan-on { color: var(--text); } .plan-off { color: var(--muted); opacity: .7; }
.plan-cta { color: var(--muted); font-size: .85rem; }
.plan-cta--current { color: var(--ok); font-weight: 600; }

/* ---- E-Mail-Bestätigungs-Banner ---- */
.verify-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    background: rgba(230,180,80,.10); border: 1px solid rgba(230,180,80,.4); border-left: 3px solid var(--warn); border-radius: var(--radius);
    padding: 11px 16px; margin-bottom: 18px; font-size: .9rem; color: #e9c275; }
.verify-banner strong { color: var(--text); }
.mail-setup-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    background: rgba(54, 224, 255,.08); border: 1px solid rgba(54, 224, 255,.35); border-left: 3px solid var(--accent); border-radius: var(--radius);
    padding: 11px 16px; margin-bottom: 18px; font-size: .9rem; color: #8ce8ff; }
.mail-setup-banner .ic { display: inline-flex; vertical-align: -2px; margin-right: 4px; }
.help-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.help-item:last-child { border-bottom: 0; }
.help-item summary { cursor: pointer; font-weight: 600; padding: 10px 0; list-style: none; }
.help-item summary::-webkit-details-marker { display: none; }
.kanban-empty-hint { font-size: .82rem; line-height: 1.4; padding: 10px 8px; margin: 0; border: 1px dashed var(--border); border-radius: var(--radius); }
.nav-member-hint { font-size: .75rem; line-height: 1.35; margin: 6px 10px 10px; padding: 0; }
.help-pop { display: inline-block; position: relative; vertical-align: middle; margin-left: 6px; }
.help-pop__sum { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: .75rem; font-weight: 700; color: var(--muted); }
.help-pop__sum::-webkit-details-marker { display: none; }
.help-pop[open] .help-pop__sum { color: var(--text); border-color: var(--accent); }
.help-pop__body { position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); width: min(280px, 70vw);
    background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: .85rem; line-height: 1.45; }
.help-pop__body p { margin: 0 0 8px; color: var(--muted); }
.whats-new-panel { position: fixed; inset: 0; z-index: 2100; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.whats-new-panel__card { background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius); max-width: 420px; width: 100%; padding: 16px 18px; }
.whats-new-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.whats-new-panel__list { margin: 0 0 10px; padding-left: 1.1rem; line-height: 1.5; }
.whats-new-panel__build { margin: 0; font-size: .8rem; }
.whats-new--dot::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }

/* ---- Öffentliche Rechtstexte + Footer ---- */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }
.legal-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; margin-bottom: 10px; }
.legal-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.legal-brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.legal-content { line-height: 1.7; color: var(--text); padding-bottom: 40px; }
.legal-content h2 { font-family: var(--font-head); font-size: 1.6rem; margin: 0 0 18px; }
.legal-content h3 { font-family: var(--font-head); font-size: 1.12rem; margin: 28px 0 8px; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content strong { color: var(--text); }
.legal-content ul { padding-left: 20px; }
.legal-content li { margin: 4px 0; }
.legal-content a { color: var(--accent); }
.legal-content hr { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.legal-content th, .legal-content td { border: 1px solid var(--border); padding: 7px 9px; text-align: left; font-size: .92rem; }
.pub-footer { border-top: 1px solid var(--border); padding: 22px; margin-top: 20px; }
.pub-footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; align-items: center; font-size: .85rem; color: var(--muted); }
.pub-footer-inner a { color: var(--muted); }
.pub-footer-inner a:hover { color: var(--text); }

/* ---- Sub-Tabs (z.B. Kassa) ---- */
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 18px; }
.subtab { padding: 9px 15px; color: var(--muted); font-weight: 500; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtab:hover { color: var(--text); text-decoration: none; }
.subtab.active { color: var(--text); border-bottom-color: var(--pink); }

/* ---- Bandkalender ---- */
.cal-toolbar { display: flex; align-items: center; gap: 8px; }
.cal-month { font-family: var(--font-head); font-weight: 600; min-width: 9.5em; text-align: center; }
.cal-legend {
    display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
    margin: 14px 0 0; font-size: .78rem; color: var(--muted);
}
.cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend__hint { font-size: .74rem; opacity: .85; }
.cal-dot {
    width: 8px; height: 8px; border-radius: 2px; display: inline-block;
    background: currentColor; flex-shrink: 0;
}
.cal-dot--yes { color: var(--ok); }
.cal-dot--maybe { color: var(--sun); }
.cal-dot--no { color: var(--err); }
.cal-dot--gig { color: var(--pink); }
.cal {
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
    overflow: hidden; background: var(--panel);
}
.cal-head {
    display: grid; grid-template-columns: repeat(7, 1fr);
    background: rgba(233, 236, 246, .025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cal-head > div {
    text-align: center; padding: 9px 0;
    font-family: var(--font-mono); font-size: .65rem;
    text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell {
    min-height: 96px; display: flex; flex-direction: column; gap: 4px;
    padding: 7px 8px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    transition: background-color .15s var(--ease);
}
.cal-row .cal-cell:last-child { border-right: 0; }
.cal-cell:hover { background: rgba(233, 236, 246, .03); }
.cal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; min-height: 1.35em; }
.cal-num {
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.01em;
    color: var(--text);
}
.cal-count {
    font-size: .62rem; font-weight: 500; letter-spacing: .01em;
    color: var(--ok); opacity: .85; white-space: nowrap;
}
.cal-count--m { color: var(--sun); }
.cal--out { opacity: 1; }
.cal--out .cal-num { color: var(--muted); opacity: .45; }
.cal--out .cal-count,
.cal--out .cal-gig,
.cal--out .cal-mine-btn { opacity: .45; }
.cal--we { background: rgba(233, 236, 246, .015); }
.cal--today { box-shadow: inset 0 0 0 1px rgba(255, 61, 182, 0.22); }
.cal--today .cal-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.5em; height: 1.5em; padding: 0 5px;
    background: var(--grad-primary); color: #fff;
    border-radius: 4px; font-size: .82rem;
}
.cal--yes  { background: rgba(69, 211, 155, .06); }
.cal--maybe { background: rgba(255, 177, 61, .055); }
.cal--no   { background: rgba(255, 107, 122, .055); }
.cal--yes:hover  { background: rgba(69, 211, 155, .09); }
.cal--maybe:hover { background: rgba(255, 177, 61, .08); }
.cal--no:hover   { background: rgba(255, 107, 122, .08); }
.cal-gig {
    display: block; font-size: .65rem; line-height: 1.3;
    padding: 2px 5px; border-radius: 3px; text-decoration: none;
    background: rgba(255, 61, 182, .14); color: #ffc6ea;
    border-left: 2px solid var(--pink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-gig:hover { background: rgba(255, 61, 182, .24); text-decoration: none; }
.cal-gig b { font-variant-numeric: tabular-nums; font-weight: 600; }
.gig--pending { background: rgba(255, 177, 61, .14); color: #e9c275; border-left-color: var(--sun); }
.gig--done { background: rgba(233, 236, 246, .05); color: var(--muted); border-left-color: var(--muted); }
.cal-set { margin: auto 0 0; }
.cal-mine-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: auto; min-width: 0; max-width: 100%;
    min-height: 22px; padding: 1px 7px;
    font: inherit; font-size: .62rem; font-weight: 600;
    letter-spacing: .02em; line-height: 1.2;
    cursor: pointer; text-align: center; border-radius: 3px;
    border: 1px solid transparent; background: transparent;
    color: var(--muted); transition: opacity .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
/* Leer: dezentes Plus, nur on hover/focus sichtbar (Touch: immer leicht sichtbar) */
.cal-mine-btn:not(.on) {
    width: 22px; height: 22px; min-height: 22px; padding: 0;
    border-radius: 4px; font-size: .85rem; font-weight: 500;
    color: var(--muted); opacity: 0.28;
}
.cal-cell:hover .cal-mine-btn:not(.on),
.cal-mine-btn:not(.on):focus-visible {
    opacity: 1; color: var(--text);
    background: rgba(233, 236, 246, .06);
    border-color: rgba(255, 255, 255, 0.1);
}
.cal-mine-btn:not(.on):focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cal-mine-btn.on {
    border-color: transparent;
}
.cal--yes .cal-mine-btn.on {
    background: rgba(69, 211, 155, .18); color: var(--ok);
}
.cal--maybe .cal-mine-btn.on {
    background: rgba(255, 177, 61, .16); color: var(--sun);
}
.cal--no .cal-mine-btn.on {
    background: rgba(255, 107, 122, .16); color: #f08a92;
}
@media (hover: none) {
    .cal-mine-btn:not(.on) { opacity: 0.55; }
}
@media (max-width: 640px) {
    .cal-cell { min-height: 84px; padding: 6px 5px 4px; gap: 3px; }
    .cal-num { font-size: .88rem; }
    .cal-gig { font-size: .58rem; padding: 1px 4px; }
    .cal-mine-btn { min-height: 40px; font-size: .6rem; padding: 0 8px; }
    .cal-mine-btn:not(.on) {
        width: 40px; height: 40px; min-height: 40px; opacity: 0.5;
    }
    .cal-set { min-height: 40px; display: flex; align-items: flex-end; }
}
html[data-theme="light"] .cal {
    border-color: var(--border);
}
html[data-theme="light"] .cal-head,
html[data-theme="light"] .cal-cell {
    border-color: var(--border);
}
html[data-theme="light"] .cal--today {
    box-shadow: inset 0 0 0 1px rgba(214, 31, 143, 0.28);
}

/* ---- Panels / Module ---- */
.panel {
    background: var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px;
    box-shadow: var(--shadow);
    transition: border-color .2s var(--ease);
}
.panel:hover { border-color: var(--border-strong); }
/* Modul-Überschrift bekommt einen kleinen Neon-Tick – wirkt wie ein Bedienpanel, nicht generisch */
.panel > h3:first-child, .panel > h2:first-child { display: flex; align-items: center; gap: 9px; }
.panel > h3:first-child::before, .panel > h2:first-child::before {
    content: ""; width: 3px; height: 1em; border-radius: 2px; background: var(--grad-primary); flex: 0 0 auto;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-1-2 { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.grid-1-3 { grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr); }
.grid-sidebar { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
.grid-sidebar--flip { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); }
.page-split { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
.page-split__stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.page-split__wide { grid-column: 1 / -1; }
.dash-lower {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    width: 100%;
    max-width: 100%;
}
.dash-lower > .panel { min-width: 0; width: 100%; max-width: 100%; }
.dash-lower .table-wrap { max-width: 100%; }

/* ---- Dashboard: Letzte Aktivität (Desktop-Zeilen / Mobile-Karten) ---- */
.dash-recent { display: flex; flex-direction: column; min-width: 0; }
.dash-recent__head,
.dash-recent__row {
    display: grid;
    grid-template-columns: 8.6rem minmax(0, 1.15fr) minmax(0, 1.55fr) 5.8rem;
    gap: 10px 14px;
    align-items: center;
    padding: 11px 2px;
    border-bottom: 1px solid var(--border);
}
.dash-recent__head {
    padding-top: 0;
    padding-bottom: 8px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}
.dash-recent__row:last-child { border-bottom: 0; padding-bottom: 2px; }
a.dash-recent__row {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
a.dash-recent__row:hover {
    color: inherit;
    background: rgba(54, 224, 255, .04);
}
a.dash-recent__row:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.dash-recent__when { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.dash-recent__to {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-recent__subject {
    color: var(--muted);
    font-size: .9rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-recent__status { justify-self: start; }
@media (max-width: 720px) {
    .dash-recent { gap: 10px; }
    .dash-recent__head { display: none; }
    .dash-recent__row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "to status"
            "subject subject"
            "when when";
        gap: 6px 12px;
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--panel-2);
        box-shadow: var(--shadow);
    }
    .dash-recent__row:last-child { padding-bottom: 12px; }
    .dash-recent__to {
        grid-area: to;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        line-height: 1.35;
    }
    .dash-recent__status { grid-area: status; justify-self: end; align-self: start; }
    .dash-recent__subject {
        grid-area: subject;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        line-height: 1.4;
    }
    .dash-recent__when { grid-area: when; white-space: normal; font-size: .8rem; }
}

/* ---- Widget-/Karten-Raster: ordnet Panels responsiv in Spalten statt voll-breit zu stapeln ---- */
.widget-grid {
    display: grid; gap: 18px; align-items: start; margin-bottom: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.widget-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.widget-grid > * { margin-bottom: 0; min-width: 0; }
.widget-grid > .widget--wide, .widget-grid > .widget--full { grid-column: 1 / -1; }
.profile-media-stack { display: flex; flex-direction: column; gap: 0; }
.profile-media-stack .profile-media-panel { margin-bottom: 0; }
.profile-media-stack .profile-media-panel:first-child { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
.profile-media-stack .profile-media-panel--photos { border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 0; }
.profile-media-stack .profile-media-panel--photos::before { content: ''; display: block; border-top: 1px solid var(--border); margin: 0 0 18px; }
/* harte Spaltenzahl-Varianten (nur wenn genug Platz, sonst auto-Stapelung über Media-Query unten) */
.widget-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.widget-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- Formularfelder als responsive Spalten innerhalb eines Panels ---- */
.field-grid { display: grid; gap: 0 18px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid > .field--full, .field-grid > .field--wide { grid-column: 1 / -1; }

/* ---- Einheitlicher Panel-Kopf (Titel + optionale Aktion/Badge) ---- */
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: -2px 0 15px; }
.panel__head > div { min-width: 0; }
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.04rem; font-family: var(--font-head); }
.panel__head .sub { font-size: .82rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.panel__head .ic { color: var(--muted); }

/* Globale Suche: Trefferliste */
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.search-hit {
    display: block; padding: 10px 12px; border-radius: 8px;
    text-decoration: none; color: inherit; border: 1px solid transparent;
}
.search-hit:hover, .search-hit:focus-visible {
    background: var(--surface-2, rgba(255,255,255,.04));
    border-color: var(--border);
    outline: none;
}
.search-hit__sub { display: block; font-size: .85rem; margin-top: 2px; }
/* ---- Aufklappbares Panel (z.B. Cron auf /admin/system) ---- */
.panel--collapsible .panel-collapse-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit;
    font: inherit; text-align: left; cursor: pointer;
}
.panel--collapsible .panel-collapse-toggle h3 {
    display: flex; align-items: center; gap: 9px; margin: 0;
    font-size: 1.04rem; font-family: var(--font-head);
}
.panel--collapsible .panel-collapse-toggle h3::before {
    content: ""; width: 3px; height: 1em; border-radius: 2px; background: var(--grad-primary); flex: 0 0 auto;
}
.panel-collapse-caret {
    flex: 0 0 auto; color: var(--muted); font-size: .75rem; line-height: 1;
    transition: transform .2s var(--ease); transform: rotate(180deg);
}
.panel-collapse-toggle.is-open .panel-collapse-caret { transform: rotate(0); }
.panel--collapsible #cron-panel-body { margin-top: 15px; }
/* ---- Migrations-Changelog (/admin/system) ---- */
table.migration-changelog { width: 100%; font-size: .88rem; }
table.migration-changelog th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 10px; }
table.migration-changelog td { vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--border); }
table.migration-changelog code { font-size: .82rem; white-space: nowrap; }
.migration-changelog__text { color: var(--text); line-height: 1.45; max-width: 42rem; }
.migration-changelog__when { white-space: nowrap; font-size: .82rem; width: 1%; }

/* ---- Admin System (/admin/system) ---- */
.page-head--desc .sub { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.admin-system { min-width: 0; }
.admin-system .grid > .panel { min-width: 0; }
.admin-system .log-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 16px; }
.admin-system .log-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); }
.admin-system .log-filters select,
.admin-system .log-filters input[type=search] { min-width: 120px; }
.admin-system .log-filters .log-filters__search { flex: 1 1 100%; }
.admin-system .log-table table { width: 100%; }
.admin-system .log-details { border-bottom: 1px solid var(--border); }
.admin-system .log-summary {
    display: grid; grid-template-columns: 140px 72px 1fr 120px minmax(80px, 180px); gap: 10px; align-items: center;
    padding: 12px 10px; cursor: pointer; list-style: none; font-size: .86rem; min-height: 44px;
    position: relative; padding-right: 28px;
}
.admin-system .log-summary::-webkit-details-marker { display: none; }
.admin-system .log-summary::after {
    content: "›"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 1.1rem; line-height: 1; transition: transform .2s var(--ease);
}
.admin-system details[open] > .log-summary::after { transform: translateY(-50%) rotate(90deg); }
.admin-system .log-summary__msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.admin-system .log-summary__url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; min-width: 0; }
.admin-system .log-summary__ts { font-size: .82rem; }
.admin-system .log-detail-body { padding: 0 10px 14px 148px; }
.admin-system .log-meta { display: grid; grid-template-columns: 90px 1fr; gap: 4px 10px; margin: 0 0 10px; font-size: .82rem; }
.admin-system .log-meta dt { color: var(--muted); margin: 0; }
.admin-system .log-meta dd { margin: 0; word-break: break-word; }
.admin-system .log-pre {
    margin: 0; padding: 10px 12px; background: rgba(0,0,0,.25); border-radius: 8px; font-size: .75rem;
    line-height: 1.45; overflow: auto; max-height: 320px; white-space: pre-wrap; word-break: break-word;
}
.admin-system .log-pre--trace { max-height: 420px; }
.admin-system .log-trace-label { font-size: .78rem; color: var(--muted); margin: 8px 0 4px; }
.admin-system .log-badge {
    display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px;
    background: rgba(255,255,255,.08); color: var(--muted);
}
.admin-system .log-badge--err { background: rgba(239,68,68,.18); color: #fca5a5; }
.admin-system .log-badge--warn { background: rgba(245,158,11,.18); color: #fcd34d; }
.admin-system .log-badge--info { background: rgba(59,130,246,.15); color: #93c5fd; }
.admin-system .log-badge--channel { background: rgba(255,255,255,.06); font-weight: 500; letter-spacing: 0; text-transform: none; }
.admin-system .pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.admin-system .pager-info { color: var(--muted); font-size: .86rem; }
.admin-system .pager-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-system .pager-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 8px;
    border: 1px solid var(--border); font-size: .84rem; text-decoration: none;
}
.admin-system .pager-btn:hover { border-color: var(--border-strong); background: rgba(255,255,255,.05); }
.admin-system .panel__head .btn { flex-shrink: 0; }
.admin-system .btn-row .btn { min-height: 40px; }

@media (max-width: 900px) {
    .admin-system .log-summary {
        grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start;
    }
    .admin-system .log-summary__ts { grid-column: 1 / -1; }
    .admin-system .log-summary__msg { grid-column: 1 / -1; white-space: normal; }
    .admin-system .log-summary__url,
    .admin-system .log-summary__src { grid-column: 1 / -1; font-size: .78rem; }
    .admin-system .log-detail-body { padding-left: 10px; }
    .admin-system .panel__head { flex-direction: column; align-items: stretch; }
    .admin-system .panel__head form { align-self: flex-start; }
}

@media (max-width: 640px) {
    .page-head--desc .sub { font-size: .84rem; }
    .admin-system table.kv tr { display: block; }
    .admin-system table.kv td { display: block; width: 100%; padding: 6px 0; border-bottom: 1px solid var(--border); }
    .admin-system table.kv tr:last-child td:last-child { border-bottom: 0; }
    .admin-system table.kv td:first-child { border-bottom: 0; padding-bottom: 2px; font-size: .78rem; }
    .admin-system table.kv td:last-child { padding-top: 0; word-break: break-word; }
    .admin-system .log-table thead { display: none; }
    .admin-system .log-table .table-wrap { border: 0; background: transparent; box-shadow: none; }
    .admin-system .log-summary {
        grid-template-columns: 1fr; gap: 6px; padding: 14px 36px 14px 12px;
        border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px;
        background: rgba(255,255,255,.02);
    }
    .admin-system .log-details { border-bottom: 0; }
    .admin-system .log-summary__msg { white-space: normal; line-height: 1.4; }
    .admin-system .log-meta { grid-template-columns: 1fr; gap: 2px; }
    .admin-system .log-meta dt { font-size: .74rem; margin-top: 6px; }
    .admin-system .log-filters label { flex: 1 1 calc(50% - 7px); min-width: 0; }
    .admin-system .log-filters .log-filters__search { flex: 1 1 100%; }
    .admin-system .log-filters select,
    .admin-system .log-filters input[type=search] { width: 100%; min-width: 0; min-height: 44px; }
    .admin-system .log-filters .btn { width: 100%; min-height: 44px; }
    .admin-system .pager { flex-direction: column; align-items: stretch; gap: 10px; }
    .admin-system .pager-nav { width: 100%; }
    .admin-system .pager-nav .pager-btn { flex: 1; min-height: 44px; }
    .admin-system .btn-row { flex-direction: column; align-items: stretch; }
    .admin-system .btn-row .btn,
    .admin-system .btn-row form { width: 100%; }
    .admin-system .btn-row form .btn { width: 100%; }
    table.migration-changelog code { white-space: normal; word-break: break-all; }
    .migration-changelog__when { white-space: normal; }
}

@media (max-width: 480px) {
    .admin-system .log-filters label { flex: 1 1 100%; }
}

/* ---- Mobile-Navigation (Off-canvas-Drawer) ---- */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); color: var(--text); cursor: pointer; font-size: 1.15rem; }
.nav-toggle:hover { border-color: var(--border-strong); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease); z-index: 190; }

@media (min-width: 1200px) {
    .page-split { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr); }
    .grid--xl-3 { grid-template-columns: repeat(3, 1fr); }
    .kanban-col { flex: 0 0 min(290px, 20vw); }
}
@media (min-width: 1400px) {
    .grid--xl-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-2.profile-media-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-lower { grid-template-columns: repeat(3, 1fr); }
    .dash-lower > .panel--span-2 { grid-column: span 2; }
}
@media (min-width: 1600px) {
    .page-split { grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr); gap: 22px; }
    .kanban-col { flex: 0 0 320px; }
    .slide img { max-height: 480px; }
    .gphoto-img { max-width: 100%; }
    .kvs { grid-template-columns: 150px 1fr; }
    .dash-lower { grid-template-columns: repeat(4, 1fr); }
    .grid-2--xl-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2.profile-media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1920px) {
    .quick-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
    .grid-3 { grid-template-columns: repeat(4, 1fr); }
    .grid-2 { grid-template-columns: repeat(3, 1fr); }
    .main { padding: clamp(20px, 1.8vw, 40px) clamp(24px, 2.4vw, 64px); scroll-margin-top: 72px; }
}

@media (max-width: 900px) {
    .app { overscroll-behavior-x: none; }
    .grid-2,.grid-3,.grid-4,.grid-1-2,.grid-2-1,.grid-1-3,.grid-sidebar,.grid-sidebar--flip,.grid--xl-3 { grid-template-columns: 1fr; }
    .widget-grid--2,.widget-grid--3 { grid-template-columns: 1fr; }
    .field-grid,.field-grid--2 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .dash-lower, .page-split { grid-template-columns: 1fr; }
    .dash-lower > .panel,
    .dash-lower > .panel--span-2 { grid-column: 1 / -1; width: 100%; max-width: 100%; }
    .main { padding: 16px 15px; }
    .sidebar {
        position: fixed; top: 0; left: 0; height: 100vh; width: 272px; max-width: 86vw;
        transform: translateX(-100%); transition: transform .28s var(--ease); z-index: 200;
        box-shadow: 0 0 50px rgba(0,0,0,.6); overflow-y: auto;
    }
    .app.nav-open .sidebar { transform: translateX(0); }
    .app.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
    .nav-toggle { display: inline-flex; }
    .page-head { gap: 10px; }
    .page-head > div:first-child, .page-head > .btn-row { flex: 1 1 100%; }
    .page-head h1 { font-size: 1.5rem; line-height: 1.35; padding: .08em 0 .12em; }
    .row > * { min-width: 100%; }
    .grid[style] { grid-template-columns: 1fr !important; }
    .topbar { margin-bottom: 16px; }
    .topbar-row { gap: 9px; padding-bottom: 12px; }
    .topbar-left { gap: 9px; min-width: 0; }
    .topbar-right { gap: 8px; }
    .topbar-ctx, .topbar-switch select { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .table-wrap > table:not(.table-cards) { min-width: 560px; }
    .stat .num { font-size: 1.5rem; }
}
@media (max-width: 560px) {
    .main { padding: 14px 12px; }
    h1 { font-size: 1.4rem; } h2 { font-size: 1.15rem; }
    .btn { padding: 11px 14px; }
    .panel { padding: 16px 14px; }
}

/* ---- Stat-Module: Neon-Readouts ---- */
.stat {
    background: var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
    transition: border-color .2s var(--ease);
}
.stat::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--grad-primary); opacity: .8;
}
.stat:hover { border-color: var(--border-strong); }
.stat .num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; line-height: 1.1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; margin-top: 4px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs__sep { opacity: .55; }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head > div:first-child { flex: 1 1 16rem; min-width: 0; }
/* UX-073: Desktop – Titel für Screenreader behalten (kein display:none), optisch clippen.
   Mobile (≤900px): Audit-Regeln zeigen .sub weiterhin sichtbar. */
@media (min-width: 901px) {
    .page-head:not(.page-head--desc):not(.dash-actions-bar) > div:first-child {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
    .page-head:not(.page-head--desc):not(:has(> .btn-row, > a.btn, > form, > .scope-switch, > .abook-dd, > .cal-toolbar)) {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
}
.page-head h1 { /* visuell oft redundant zu Subnav/<title>; bleibt im A11y-Tree */ }
.page-head .sub { /* Desktop via Parent-clip; Mobile via Audit-Block sichtbar */ }
/* Posteingang-Nachrichten: eigene Kopfzeile, nicht wie kompakter Seiten-Page-Head behandeln */
.inbox-msg__head > div:first-child { display: block; position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.inbox-msg__head .sub { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.page-head:not(.page-head--desc):has(> .btn-row, > a.btn, > form, > .scope-switch, > .abook-dd, > .cal-toolbar) { justify-content: flex-end; }
.sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Page-head: alle Aktions-Buttons einheitlich btn-sm (~32px), ohne Views anzufassen */
.page-head > .btn-row .btn,
.page-head > .btn-row a.btn,
.page-head > .btn-row button.btn,
.page-head > .btn,
.page-head > a.btn,
.page-head > form .btn,
.page-head > .cal-toolbar .btn {
    min-height: 32px;
    padding: 8px 12px;
    font-size: .82rem;
    border-radius: var(--radius-sm);
}
.page-head > .btn-row .export-wrap .btn:not(.btn-icon-only),
.page-head > .btn-row .dash-quick-toggle {
    padding: 8px;
}
.page-head > .btn-row .btn.btn-icon-only,
.page-head > .btn-row .export-wrap .btn.btn-icon-only,
.page-head > .btn-row .export-wrap [data-export-toggle].btn.btn-icon-only,
.page-head > .cal-toolbar .btn.btn-icon-only {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--muted);
}
.page-head > .btn-row .btn.btn-icon-only:hover,
.page-head > .btn-row .btn.btn-icon-only:focus-visible,
.page-head > .btn-row .btn.btn-icon-only.is-open,
.page-head > .btn-row button.btn.btn-icon-only:hover,
.page-head > .btn-row button.btn.btn-icon-only:focus-visible,
.page-head > .btn-row button.btn.btn-icon-only.is-open,
.page-head > .btn-row .export-wrap .btn.btn-icon-only:hover,
.page-head > .btn-row .export-wrap .btn.btn-icon-only:focus-visible,
.page-head > .btn-row .export-wrap .btn.btn-icon-only.is-open,
.page-head > .btn-row .export-wrap [data-export-toggle].btn.btn-icon-only:hover,
.page-head > .btn-row .export-wrap [data-export-toggle].btn.btn-icon-only:focus-visible,
.page-head > .btn-row .export-wrap [data-export-toggle].btn.btn-icon-only.is-open,
.page-head > .cal-toolbar .btn.btn-icon-only:hover,
.page-head > .cal-toolbar .btn.btn-icon-only:focus-visible {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--text);
}
.page-head > .btn-row .btn.btn-icon-only .ic,
.page-head > .btn-row .export-wrap .btn.btn-icon-only .ic,
.page-head > .cal-toolbar .btn.btn-icon-only .ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.page-head > .btn-row .btn.btn-icon-only .ic svg,
.page-head > .btn-row .export-wrap .btn.btn-icon-only .ic svg,
.page-head > .cal-toolbar .btn.btn-icon-only .ic svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Page-head: Content-Aktionen ohne Ruhe-Hintergrund — Fill nur bei Hover/Fokus/Pin */
.page-head > .btn-row .btn,
.page-head > .btn-row a.btn,
.page-head > .btn-row button.btn,
.page-head > .btn,
.page-head > a.btn,
.page-head > form .btn,
.page-head > .cal-toolbar .btn {
    background: transparent;
    border-color: var(--border);
    box-shadow: none;
    transition:
        background-color 0.22s var(--ease),
        border-color 0.22s var(--ease),
        color 0.22s var(--ease),
        box-shadow 0.22s var(--ease),
        gap 0.24s var(--ease),
        padding 0.24s var(--ease),
        transform 120ms var(--ease);
}
.page-head > .btn-row .btn-primary,
.page-head > a.btn-primary,
.page-head > form .btn-primary,
.page-head > .cal-toolbar .btn-primary {
    color: var(--text);
    text-shadow: none;
}
.page-head > .btn-row .btn-danger,
.page-head > a.btn-danger,
.page-head > form .btn-danger {
    color: #ffb3bb;
    border-color: rgba(255, 107, 122, 0.35);
}
.page-head > .btn-row .btn:hover,
.page-head > .btn-row a.btn:hover,
.page-head > .btn-row button.btn:hover,
.page-head > .btn:hover,
.page-head > a.btn:hover,
.page-head > form .btn:hover,
.page-head > .cal-toolbar .btn:hover,
.page-head > .btn-row .btn:focus-visible,
.page-head > .btn-row a.btn:focus-visible,
.page-head > .btn-row button.btn:focus-visible,
.page-head > .btn:focus-visible,
.page-head > a.btn:focus-visible,
.page-head > form .btn:focus-visible,
.page-head > .cal-toolbar .btn:focus-visible,
.page-head > .btn-row .btn.is-label-open,
.page-head > .btn-row .btn.is-pinned,
.page-head .btn.btn-hover-label.is-label-open,
.page-head .btn.btn-hover-label.is-pinned {
    background: var(--panel-2);
    border-color: var(--border-strong);
}
.page-head > .btn-row .btn-primary:hover,
.page-head > .btn-row .btn-primary:focus-visible,
.page-head > a.btn-primary:hover,
.page-head > a.btn-primary:focus-visible,
.page-head > form .btn-primary:hover,
.page-head > form .btn-primary:focus-visible,
.page-head > .cal-toolbar .btn-primary:hover,
.page-head > .cal-toolbar .btn-primary:focus-visible,
.page-head .btn.btn-primary.btn-hover-label:hover,
.page-head .btn.btn-primary.btn-hover-label:focus-visible,
.page-head .btn.btn-primary.btn-hover-label.is-label-open,
.page-head .btn.btn-primary.btn-hover-label.is-pinned {
    background: var(--grad-primary);
    border: none;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: var(--glow);
}
.page-head > .btn-row .btn-danger:hover,
.page-head > .btn-row .btn-danger:focus-visible,
.page-head > a.btn-danger:hover,
.page-head > a.btn-danger:focus-visible,
.page-head > form .btn-danger:hover,
.page-head > form .btn-danger:focus-visible {
    background: rgba(255, 107, 122, 0.22);
    border-color: rgba(255, 107, 122, 0.55);
}
.page-head > .btn-row .btn-ghost:hover,
.page-head > .btn-row .btn-ghost:focus-visible,
.page-head > a.btn-ghost:hover,
.page-head > a.btn-ghost:focus-visible {
    background: rgba(54, 224, 255, 0.07);
    border-color: var(--accent);
}

/* Icon-Button: Label eingeklappt, bei Hover/Fokus/Pin aufklappen */
.btn-hover-label {
    gap: 0;
    transition: gap .18s var(--ease), padding .18s var(--ease);
}
.btn-hover-label .btn-hover-label-text {
    display: inline-block; max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap;
    transition: max-width .2s var(--ease), opacity .15s var(--ease);
}
.btn-hover-label .btn-hover-label-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 1;
}
.btn-hover-label:hover,
.btn-hover-label:focus-visible,
.btn-hover-label.is-open,
.btn-hover-label.is-label-open,
.btn-hover-label.is-pinned { gap: 8px; }
.btn-hover-label:hover .btn-hover-label-text,
.btn-hover-label:focus-visible .btn-hover-label-text,
.btn-hover-label.is-open .btn-hover-label-text,
.btn-hover-label.is-label-open .btn-hover-label-text,
.btn-hover-label.is-pinned .btn-hover-label-text { max-width: 16rem; opacity: 1; }

.page-head > .btn-row .btn.btn-hover-label,
.page-head > a.btn.btn-hover-label,
.page-head > form .btn.btn-hover-label,
.page-head > .cal-toolbar .btn.btn-hover-label {
    gap: 0;
    padding: 8px;
    position: relative;
    overflow: visible;
    min-width: 36px;
    min-height: 36px;
    z-index: 1;
}
.page-head .btn.btn-hover-label.is-label-open,
.page-head .btn.btn-hover-label.is-pinned,
.page-head .btn.btn-hover-label:focus-visible,
.page-head .btn.btn-hover-label:hover {
    z-index: 6;
}
.page-head .btn.btn-hover-label .btn-hover-label-text {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    height: calc(100% + 2px);
    display: inline-flex;
    align-items: center;
    padding: 0 12px 0 8px;
    margin: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    background: var(--panel-2);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: none;
    transition:
        max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.18s var(--ease),
        box-shadow 0.24s var(--ease),
        background-color 0.18s var(--ease);
}
.page-head .btn.btn-primary.btn-hover-label .btn-hover-label-text {
    background: var(--grad-primary);
    color: #fff;
}
.page-head .btn.btn-primary.btn-hover-label:not(:hover):not(.is-label-open):not(.is-pinned):not(:focus-visible) .btn-hover-label-text {
    background: none;
}
.page-head .btn.btn-ghost.btn-hover-label .btn-hover-label-text {
    background: var(--panel);
}
.page-head .btn.btn-hover-label.is-label-open .btn-hover-label-text,
.page-head .btn.btn-hover-label.is-pinned .btn-hover-label-text,
.page-head .btn.btn-hover-label:focus-visible .btn-hover-label-text,
.page-head .btn.btn-hover-label:hover .btn-hover-label-text {
    max-width: 16rem;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
    border: 1px solid var(--border-strong);
    border-left: none;
    box-shadow: 4px 2px 12px rgba(0,0,0,.25);
}
.page-head .btn.btn-primary.btn-hover-label.is-label-open .btn-hover-label-text,
.page-head .btn.btn-primary.btn-hover-label.is-pinned .btn-hover-label-text,
.page-head .btn.btn-primary.btn-hover-label:focus-visible .btn-hover-label-text,
.page-head .btn.btn-primary.btn-hover-label:hover .btn-hover-label-text {
    border: none;
    box-shadow: none;
}
.page-head .btn.btn-ghost.btn-hover-label.is-label-open .btn-hover-label-text,
.page-head .btn.btn-ghost.btn-hover-label.is-pinned .btn-hover-label-text,
.page-head .btn.btn-ghost.btn-hover-label:focus-visible .btn-hover-label-text,
.page-head .btn.btn-ghost.btn-hover-label:hover .btn-hover-label-text {
    border-color: var(--border);
}
/* Rechte Seite: Label nach links aufklappen, am Button rechts ausgerichtet */
.page-head .btn.btn-hover-label.btn-hover-label--expand-left .btn-hover-label-text {
    left: auto;
    right: 0;
    padding: 0 8px 0 12px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    transform: translateY(-50%) translateX(8px);
    transform-origin: right center;
}
.page-head .btn.btn-hover-label.btn-hover-label--expand-left.is-label-open .btn-hover-label-text,
.page-head .btn.btn-hover-label.btn-hover-label--expand-left.is-pinned .btn-hover-label-text,
.page-head .btn.btn-hover-label.btn-hover-label--expand-left:focus-visible .btn-hover-label-text,
.page-head .btn.btn-hover-label.btn-hover-label--expand-left:hover .btn-hover-label-text {
    transform: translateY(-50%) translateX(0);
    border: 1px solid var(--border-strong);
    border-right: none;
    box-shadow: -6px 2px 16px rgba(0, 0, 0, 0.28);
    transition:
        max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.18s var(--ease),
        box-shadow 0.26s var(--ease),
        background-color 0.18s var(--ease);
}
.page-head .btn.btn-primary.btn-hover-label.btn-hover-label--expand-left.is-label-open .btn-hover-label-text,
.page-head .btn.btn-primary.btn-hover-label.btn-hover-label--expand-left.is-pinned .btn-hover-label-text,
.page-head .btn.btn-primary.btn-hover-label.btn-hover-label--expand-left:focus-visible .btn-hover-label-text,
.page-head .btn.btn-primary.btn-hover-label.btn-hover-label--expand-left:hover .btn-hover-label-text {
    border: none;
    box-shadow: none;
}
.page-head .btn.btn-ghost.btn-hover-label.btn-hover-label--expand-left.is-label-open .btn-hover-label-text,
.page-head .btn.btn-ghost.btn-hover-label.btn-hover-label--expand-left.is-pinned .btn-hover-label-text,
.page-head .btn.btn-ghost.btn-hover-label.btn-hover-label--expand-left:focus-visible .btn-hover-label-text,
.page-head .btn.btn-ghost.btn-hover-label.btn-hover-label--expand-left:hover .btn-hover-label-text {
    border-color: var(--border);
}
@media (max-width: 720px), (hover: none) {
    .page-head > .btn-row .btn.btn-hover-label,
    .page-head > a.btn.btn-hover-label,
    .page-head > form .btn.btn-hover-label,
    .page-head > .cal-toolbar .btn.btn-hover-label {
        gap: 8px;
        padding: 8px 12px;
        z-index: auto;
    }
    .page-head .btn.btn-hover-label .btn-hover-label-text {
        position: static;
        transform: none;
        height: auto;
        display: inline-block;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        pointer-events: auto;
        max-width: 16rem;
        opacity: 1;
    }
}

/* Einstellungs-Hub */
.settings-subnav { margin: -8px 0 20px; }
.settings-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.settings-hub-card { display: block; position: relative; padding: 20px 44px 20px 20px; text-decoration: none; color: inherit;
    transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.settings-hub-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.35); text-decoration: none; }
.settings-hub-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.settings-hub-card .muted { margin: 0; font-size: .88rem; line-height: 1.5; }
.settings-hub-icon { display: inline-flex; color: var(--accent); }
.settings-hub-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }

/* ---- Buttons (zentrales Control-System) ---- */
.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--control-gap);
    min-height: var(--control-height-md);
    padding: var(--control-padding-md);
    border: var(--control-border-width) solid var(--color-border);
    border-radius: var(--control-border-radius);
    background: var(--panel-2);
    color: var(--color-text);
    font-family: inherit;
    font-size: var(--control-font-size-md);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    transition:
        background-color var(--transition-control),
        border-color var(--transition-control),
        color var(--transition-control),
        box-shadow var(--transition-control),
        opacity var(--transition-control),
        transform 120ms var(--ease);
}
/* padding-block haelt einzeilige Buttons bei ~40px; mehrzeilige Labels in
   schmalen Containern (btn-block, Tabellenzellen) brechen mit vertikalem
   Innenabstand sauber um, statt horizontal ueberzulaufen (Bug S12). */
.btn:hover,
a.btn:hover {
    background: #1a1d27;
    border-color: var(--color-border-hover);
    text-decoration: none;
}
.btn:active,
a.btn:active { transform: translateY(1px); }
.btn:focus-visible,
a.btn:focus-visible {
    outline: none;
    border-color: var(--color-focus);
    box-shadow: var(--focus-ring);
}
.btn-primary {
    background: var(--grad-primary);
    border: none;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover {
    background: var(--grad-primary);
    border: none;
    box-shadow: var(--glow);
}
.btn-primary:focus-visible { border: none; box-shadow: var(--glow), var(--focus-ring); }
.btn-secondary {
    background: var(--panel-2);
    border-color: var(--color-border);
    color: var(--color-text);
}
.btn-secondary:hover {
    background: #1a1d27;
    border-color: var(--color-border-hover);
    color: var(--color-secondary-hover);
}
.btn-danger {
    background: rgba(255, 107, 122, 0.14);
    border-color: rgba(255, 107, 122, 0.4);
    color: #ffb3bb;
}
.btn-danger:hover {
    background: rgba(255, 107, 122, 0.22);
    border-color: rgba(255, 107, 122, 0.55);
    color: #ffd0d5;
}
.btn-success {
    background: rgba(69, 211, 155, 0.12);
    border-color: rgba(69, 211, 155, 0.38);
    color: #9ef0cd;
}
.btn-success:hover {
    background: rgba(69, 211, 155, 0.2);
    border-color: rgba(69, 211, 155, 0.52);
    color: #c8f7e4;
}
.btn-warning {
    background: rgba(230, 180, 80, 0.12);
    border-color: rgba(230, 180, 80, 0.42);
    color: #f5d89a;
}
.btn-warning:hover {
    background: rgba(230, 180, 80, 0.2);
    border-color: rgba(230, 180, 80, 0.55);
    color: #ffe8bc;
}
.btn-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(54, 224, 255, 0.07);
}
.btn-ghost {
    background: transparent;
    border-color: var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    background: transparent;
}
.btn-link {
    min-height: auto;
    padding: 4px 8px;
    border-color: transparent;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
}
.btn-link:hover {
    color: #8ce8ff;
    background: transparent;
    text-decoration: underline;
}
.btn-sm,
.btn.btn-sm {
    min-height: var(--control-height-sm);
    padding: var(--control-padding-sm);
    font-size: var(--control-font-size-sm);
    border-radius: var(--control-border-radius-sm);
}
.btn-md,
.btn.btn-md {
    min-height: var(--control-height-md);
    padding: var(--control-padding-md);
    font-size: var(--control-font-size-md);
    border-radius: var(--control-border-radius);
}
.btn-lg,
.btn.btn-lg {
    min-height: var(--control-height-lg);
    padding: var(--control-padding-lg);
    font-size: var(--control-font-size-lg);
}
.btn-icon,
.btn-icon-only {
    width: var(--control-height-md);
    min-width: var(--control-height-md);
    height: var(--control-height-md);
    padding: 0;
}
.btn-sm.btn-icon,
.btn-sm.btn-icon-only,
.btn-icon.btn-sm {
    width: var(--control-height-sm);
    min-width: var(--control-height-sm);
    height: var(--control-height-sm);
}
.btn-lg.btn-icon,
.btn-lg.btn-icon-only,
.btn-icon.btn-lg {
    width: var(--control-height-lg);
    min-width: var(--control-height-lg);
    height: var(--control-height-lg);
}
.btn-block { width: 100%; justify-content: center; white-space: normal; }
.btn-row,
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.form-actions { justify-content: flex-end; margin-top: 24px; }
@media (max-width: 640px) {
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn,
    .form-actions a.btn,
    .form-actions form .btn { width: 100%; justify-content: center; }
}
/* ---- Share-Band-Panel (Dashboard + Profil) ---- */
.share-band {
    border-color: var(--border-strong);
    padding: 18px 20px;
}
.share-band__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.share-band__intro { min-width: 0; }
.share-band__intro h3 {
    margin: 0 0 4px;
    font-size: 1.04rem;
    display: flex;
    align-items: center;
    gap: 9px;
}
.share-band__intro h3::before {
    content: "";
    width: 3px;
    height: 1em;
    border-radius: 2px;
    background: var(--grad-primary);
    flex: 0 0 auto;
}
.share-band__sub {
    margin: 0;
    font-size: .84rem;
    line-height: 1.45;
    max-width: 52ch;
}
@media (min-width: 480px) {
    .share-band__sub {
        white-space: nowrap;
        max-width: none;
    }
}
@media (max-width: 479px) {
    .share-band__sub { font-size: .78rem; }
}
.share-band__dismiss { margin: 0; flex: 0 0 auto; }
.share-band__dismiss .btn { min-width: 32px; padding-inline: 8px; color: var(--muted); }
.share-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}
@media (min-width: 640px) {
    .share-band__actions {
        flex-wrap: nowrap;
        gap: 14px;
    }
}
.share-band__sep {
    width: 1px;
    height: 22px;
    background: var(--border-strong);
    margin: 0 2px;
    flex: 0 0 auto;
}
.share-band__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.share-band__btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.share-band__btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: #1a1d27;
    text-decoration: none;
}
.share-band__btn:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(54, 224, 255, .16);
}
.share-band__btn--wa:hover { color: #5fe89a; border-color: rgba(37, 211, 102, .35); }
.share-band__btn--fb:hover { color: #6ea8ff; border-color: rgba(24, 119, 242, .35); }
.share-band__btn--x:hover { color: #c8cdd8; border-color: rgba(233, 236, 246, .28); }
.share-band__btn--mail:hover { color: var(--accent); border-color: rgba(54, 224, 255, .3); }
.share-band__btn--copy:hover,
.share-band__btn--ig:hover { color: var(--accent); border-color: rgba(54, 224, 255, .3); }
.share-band__copied {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    margin-left: 4px;
    white-space: nowrap;
}
.share-band__url input {
    width: 100%;
    font-family: var(--font-mono);
    font-size: .82rem;
    min-height: 36px;
    padding: 7px 12px;
    background: var(--bg-soft);
    border-color: var(--border);
    color: var(--muted);
    cursor: text;
}
.share-band__url input:focus {
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: none;
}

/* ---- Forms (zentrales Control-System) ---- */
.form-group,
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-label,
.field label {
    display: block;
    margin-bottom: 0;
    color: #c2c8da;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.form-help,
.field .hint {
    margin-top: 0;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
}
.form-error,
.field .error {
    color: var(--color-danger);
    font-size: 0.75rem;
    line-height: 1.35;
}
.form-control,
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number],
input[type=date], input[type=time], input[type=search], input[type=tel], input[type=file],
select, textarea {
    display: block;
    width: 100%;
    min-height: var(--control-height-md);
    padding: 8px 13px;
    border: var(--control-border-width) solid var(--color-border);
    border-radius: var(--control-border-radius-sm);
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.4;
    transition:
        border-color var(--transition-control),
        box-shadow var(--transition-control),
        background-color var(--transition-control);
}
textarea.form-control,
textarea {
    min-height: var(--control-textarea-min-height);
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.5;
    resize: vertical;
}
input::placeholder,
textarea::placeholder,
.form-control::placeholder { color: var(--color-text-disabled); }
.form-control:hover,
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):hover,
select:hover,
textarea:hover { border-color: var(--color-border-hover); }
.form-control:focus,
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-focus);
    box-shadow: var(--focus-ring);
}
.form-control:disabled,
.form-control[readonly],
input:disabled, select:disabled, textarea:disabled,
input[readonly], select[readonly], textarea[readonly] {
    background-color: var(--color-background-disabled);
    color: var(--color-text-disabled);
    cursor: not-allowed;
    opacity: 0.88;
}
input[type=file],
input[type=file].form-control { padding: 8px 12px; }
.form-control--compact {
    max-width: 190px;
    min-height: var(--control-height-sm);
    padding: 5px 8px;
    font-size: var(--control-font-size-sm);
}
.form-control.is-invalid,
.is-invalid.form-control,
.field.has-error :is(input, select, textarea, .form-control),
.field.is-invalid :is(input, select, textarea, .form-control),
input.is-invalid, select.is-invalid, textarea.is-invalid {
    border-color: rgba(255, 107, 122, 0.55);
}
.form-control.is-invalid:focus,
.is-invalid.form-control:focus,
.field.has-error :is(input, select, textarea, .form-control):focus,
.field.is-invalid :is(input, select, textarea, .form-control):focus,
input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus {
    border-color: var(--color-danger);
    box-shadow: var(--focus-ring-invalid);
}
.form-control.is-valid,
.is-valid.form-control,
.field.is-valid :is(input, select, textarea, .form-control),
input.is-valid, select.is-valid, textarea.is-valid {
    border-color: rgba(69, 211, 155, 0.45);
}
.form-control.is-valid:focus,
.is-valid.form-control:focus,
.field.is-valid :is(input, select, textarea, .form-control):focus,
input.is-valid:focus, select.is-valid:focus, textarea.is-valid:focus {
    border-color: var(--color-success);
    box-shadow: var(--focus-ring-valid);
}
/* Feld-Wrapper: eine Border am Shell, kein Doppel-Ring am Input (wie Webmail .wm-field) */
.field-shell {
    display: flex; align-items: center; gap: 0.5rem;
    border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
    background: var(--bg-soft); padding: 0 0.75rem;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field-shell:focus-within {
    border-color: rgba(255, 61, 182, .28);
    box-shadow: 0 0 0 1px rgba(255, 61, 182, .1), 0 0 0 3px rgba(54, 224, 255, .1);
}
.field-shell > :is(input, select, textarea) {
    width: 100%; border: 0 !important; box-shadow: none !important; outline: none !important;
    background: transparent; min-height: 0; padding: 0.625rem 0; font-size: inherit;
}
.field-shell > :is(input, select, textarea):is(:focus, :focus-visible) {
    border: 0 !important; box-shadow: none !important; outline: none !important;
}
.field-shell--stack { display: block; padding: 0; }
.field-shell--stack > textarea { padding: 0.625rem 0.75rem; min-height: 88px; }
/* CI-konforme Dropdown-Optionen (Fallback, falls color-scheme das Popup nicht abdeckt). */
select option, select optgroup { background: var(--panel-2); color: var(--text); }
.form-check,
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--control-gap);
    font-weight: 500;
    cursor: pointer;
}
.form-check input,
.checkbox input {
    width: auto;
    min-height: auto;
    margin: 0;
    accent-color: var(--pink);
}
.form-row,
.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.legal-accept { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; text-align: left; }
.legal-accept--compact { gap: 7px; margin: 0 0 10px; font-size: .78rem; }
.legal-accept--compact .checkbox { font-weight: 400; align-items: flex-start; line-height: 1.4; }
.legal-accept--compact .checkbox input { margin-top: 3px; flex-shrink: 0; }
.legal-accept a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.oauth-btn--disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }
/* In Inline-Form-Rows kein Feld-Bottom-Margin -> Button sitzt exakt auf Feld-Linie (gleiche 40px-Hoehe) */
.form-row > .field,
.form-row > .form-group,
.row > .field,
.row > .form-group { margin-bottom: 0; }
.form-row > *,
.row > * { flex: 1; min-width: 140px; }
/* Buttons in einer .row dürfen NICHT auf die ganze Breite gestreckt werden – sie bleiben inhaltsbreit */
.form-row > .btn,
.form-row > button.btn,
.form-row > .btn-sm,
.row > .btn,
.row > button.btn,
.row > .btn-sm { flex: 0 0 auto; min-width: 0; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { background: rgba(233, 236, 246, .02); color: var(--muted); font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: rgba(54, 224, 255,.05); }

/* Klickbare Bandnamen-Zelle (/bands) */
.band-name-cell { padding: 0; }
.band-name-link-form { margin: 0; display: block; }
.band-name-link,
button.band-name-link {
    display: block; width: 100%; padding: 12px 14px; margin: 0;
    color: inherit; text-decoration: none; text-align: left;
    background: none; border: none; font: inherit; cursor: pointer;
    transition: color .15s var(--ease), background .15s var(--ease);
}
.band-name-link:hover,
button.band-name-link:hover { color: var(--accent); background: rgba(54, 224, 255, .05); }

/* ---- Badges (Status-Readouts) ---- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; border: 1px solid var(--border-strong); }
.badge-new { color: var(--muted); }
.badge-queued { color: #8ce8ff; border-color: rgba(54, 224, 255,.4); background: rgba(54, 224, 255,.08); }
.badge-contacted { color: #8ce8ff; border-color: rgba(54, 224, 255,.4); background: rgba(54, 224, 255,.08); }
.badge-replied { color: #7be3c8; border-color: rgba(69,211,155,.4); background: rgba(69,211,155,.08); }
.badge-negotiating { color: #c9a6ff; border-color: rgba(176, 108, 255,.45); background: rgba(176, 108, 255,.08); }
.badge-booked { color: #06120d; background: linear-gradient(135deg,#45d39b,#34c6e0); border-color: transparent; }
.badge-rejected, .badge-not_interested { color: #ffb3bb; border-color: rgba(255,107,122,.4); background: rgba(255,107,122,.07); }
.badge-type { color: var(--muted); }
.badge-ok { color: #06120d; background: linear-gradient(135deg,#45d39b,#34c6e0); border-color: transparent; }
.badge-off { color: #ffb3bb; border-color: rgba(255,107,122,.4); }
.badge-err { color: #ffb3bb; border-color: rgba(255,107,122,.4); background: rgba(255,107,122,.07); }

/* ---- Key/Value-Tabelle (z.B. Zustellbarkeit) ---- */
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.kv tr:last-child td { border-bottom: 0; }
.kv td:first-child { color: var(--muted); white-space: nowrap; width: 1%; }

/* ---- Checkliste mit Häkchen ---- */
ul.checklist { list-style: none; padding: 0; margin: 8px 0 0; }
ul.checklist li { position: relative; padding: 6px 0 6px 24px; line-height: 1.5; border-bottom: 1px solid var(--border); }
ul.checklist li:last-child { border-bottom: 0; }
ul.checklist li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--accent, #36e0ff); font-weight: 700; }

/* ---- Flash ---- */
.flash { padding: 13px 17px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 500; border: 1px solid var(--border-strong); border-left-width: 3px; animation: flashIn .35s var(--ease) both; }
.flash--ok { background: rgba(69,211,155,.12); border-color: rgba(69,211,155,.4); border-left-color: var(--ok); color: #b6f5dd; }
.flash--err { background: rgba(255,107,122,.12); border-color: rgba(255,107,122,.4); border-left-color: var(--err); color: #ffc4cb; }
.flash--info { background: rgba(54, 224, 255,.12); border-color: rgba(54, 224, 255,.4); border-left-color: var(--accent); color: #8ce8ff; }
.flash--warn { background: rgba(255, 196, 86,.12); border-color: rgba(255, 196, 86,.4); border-left-color: #ffc456; color: #ffe0a3; }

/* ---- Design-System UI-Partials (Phase 3) ---- */
.ui-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 4px;
}
.ui-empty__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
}
.ui-empty__text { margin: 0; max-width: 36ch; }
.ui-empty__action { margin: 6px 0 0; }

.ui-loading { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.ui-loading__label { margin: 0; font-size: .88rem; }
.ui-skeleton { display: flex; flex-direction: column; gap: 10px; }
.ui-skeleton__line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));
    background-size: 200% 100%;
    animation: ui-skeleton-shimmer 1.2s ease-in-out infinite;
}
@keyframes ui-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ui-skeleton__line { animation: none; background: rgba(255,255,255,.08); }
}

.ui-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: .9rem;
}
.ui-switch.is-disabled { opacity: .55; cursor: not-allowed; }
.ui-switch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.ui-switch__track {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid var(--border-strong);
    transition: background .15s var(--ease), border-color .15s var(--ease);
    flex-shrink: 0;
}
.ui-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.35);
    transition: transform .15s var(--ease);
}
.ui-switch__input:checked + .ui-switch__track {
    background: rgba(54, 224, 255, .28);
    border-color: var(--accent);
}
.ui-switch__input:checked + .ui-switch__track .ui-switch__thumb { transform: translateX(18px); }
.ui-switch__input:focus-visible + .ui-switch__track {
    box-shadow: 0 0 0 3px rgba(54, 224, 255, .22);
}

.ui-modal {
    position: fixed;
    inset: 0;
    z-index: 2800;
    display: grid;
    place-items: center;
    padding: 20px;
}
.ui-modal[hidden] { display: none !important; }
.ui-modal.is-open { display: grid; }
.ui-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 18, .62);
    backdrop-filter: blur(4px);
}
.ui-modal__panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    padding: 18px 18px 16px;
}
.ui-modal__title { margin: 0 0 8px; font-size: 1.1rem; }
.ui-modal__body { margin: 0 0 16px; }
.ui-modal__actions { justify-content: flex-end; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
/* KI-Status-Zeile: Farbe ueber CI-Tokens (setzt app.js .is-ok/.is-err), nicht per Inline-Hex im JS. */
[data-ai-status].is-ok  { color: var(--ok); }
[data-ai-status].is-err { color: var(--err); }
.hint.is-ok { color: var(--ok); }

/* ---- Misc ---- */
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ---- Musik / Song-Formular (W117) ---- */
.song-form-section {
    border: 0;
    margin: 0 0 4px;
    padding: 0 0 4px;
    min-width: 0;
}
.song-form-section + .song-form-section {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
}
.song-form-section > legend {
    padding: 0;
    margin: 0 0 10px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.song-plat-hint {
    margin: -4px 0 10px;
}
.song-plats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.song-plat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.song-plat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    color: var(--muted);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.song-plat-btn:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(54, 224, 255, 0.12);
}
.song-plat-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.song-plat-btn.is-open,
.song-plat-btn[aria-expanded="true"] {
    color: #fff;
    border-color: var(--accent);
    background: rgba(54, 224, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(54, 224, 255, 0.25);
}
.song-plat-btn.has-value {
    color: var(--accent);
    border-color: rgba(54, 224, 255, 0.45);
}
.song-plat-btn.has-value.is-open {
    color: #fff;
}
.song-plat-panel {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}
@media (prefers-reduced-motion: reduce) {
    .song-plat-btn { transition: none; }
}
.song-title {
    word-break: break-word;
}
.song-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 0;
    vertical-align: middle;
}
.song-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    color: var(--muted);
    text-decoration: none;
    touch-action: manipulation;
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.song-link:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(54, 224, 255, 0.14);
}
.song-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.song-link svg {
    display: block;
}
.kvs { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: .9rem; }
.kvs dt { color: var(--muted); font-family: var(--font-mono); font-size: .82rem; }
.kvs dd { margin: 0; }
.preview-box { background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px; white-space: pre-wrap; font-size: .9rem; line-height: 1.65; }
.secret-code { font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: .12em; background: var(--bg-soft); padding: 11px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); word-break: break-all; }
.codes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.code-chip { background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 12px; font-family: var(--font-mono); letter-spacing: .08em; text-align: center; }
.progress { background: var(--bg-soft); border-radius: 20px; height: 12px; overflow: hidden; border: 1px solid var(--border-strong); }
.progress > span { display: block; height: 100%; background: var(--grad-primary); border-radius: 20px; transition: width .6s var(--ease); }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); }
.step-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; }
.step-dots span { width: 28px; height: 5px; border-radius: 3px; background: var(--border-strong); transition: background .3s; }
.step-dots span.on { background: var(--grad-primary); }
.pill { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .02em; padding: 4px 10px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--border-strong); color: var(--muted); transition: all .18s var(--ease); }
a.pill:hover { background: rgba(54, 224, 255,.16); color: #fff; border-color: var(--accent); }
.qr { background: #fff; padding: 12px; border-radius: var(--radius); display: inline-block; }
.qr--ready {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow), 0 0 0 1px rgba(54, 224, 255, 0.08);
    line-height: 0;
}
.qr--ready img,
.qr--ready canvas {
    width: 120px !important;
    height: 120px !important;
    display: block;
}
.ready-panel__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.ready-panel__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}
.ready-panel__list li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ready-panel__qr {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.ready-panel__qr-label {
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .02em;
    text-align: center;
}
@media (max-width: 640px) {
    .ready-panel__body {
        flex-direction: column;
        align-items: stretch;
    }
    .ready-panel__qr {
        margin: 4px auto 0;
    }
}

/* ---- Locations: Chip-Zeile + Icon-Aktionen, darunter Toolbar (Suche / Filter / Sort) ---- */
.venues-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    min-height: 28px;
}
.venues-meta-row .filter-chips {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}
.venues-meta-row__spacer {
    flex: 1 1 auto;
    min-width: 0;
}
.venues-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 14px;
}
.venues-topbar .ac { flex: 1 1 320px; min-width: 220px; }
.venues-topbar .sort-ctl { margin-left: 0; }
.venues-topbar .sort-ctl select { width: auto; min-width: 190px; max-width: 100%; }
.venues-topbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex: 0 0 auto;
}
.venues-topbar__actions .btn,
.venues-topbar__actions .btn-icon-only,
.venues-topbar__actions .export-wrap .btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--muted);
    border-radius: var(--control-border-radius);
}
.venues-topbar__actions .btn:hover,
.venues-topbar__actions .btn:focus-visible,
.venues-topbar__actions .btn.is-open,
.venues-topbar__actions .btn-icon-only:hover,
.venues-topbar__actions .btn-icon-only:focus-visible,
.venues-topbar__actions .export-wrap .btn:hover,
.venues-topbar__actions .export-wrap .btn:focus-visible,
.venues-topbar__actions .export-wrap .btn.is-open {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--text);
}
.venues-topbar__actions .btn .ic,
.venues-topbar__actions .btn-icon-only .ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.venues-topbar__actions .btn .ic svg,
.venues-topbar__actions .btn-icon-only .ic svg {
    width: 16px;
    height: 16px;
    display: block;
}
.venues-topbar > .btn,
.venues-topbar > .btn.btn-sm {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-height-md);
    height: var(--control-height-md);
    padding: var(--control-padding-md);
    font-size: var(--control-font-size-md);
    border-radius: var(--control-border-radius);
    box-sizing: border-box;
}
.venues-topbar > .btn .fbadge { height: 18px; min-width: 18px; font-size: .68rem; }
.fbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
    border-radius: 999px; background: var(--grad-primary); color: #fff; font-size: .72rem; font-weight: 700; font-family: var(--font-mono); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.filter-chips .pill { max-width: 100%; }
.filter-chips .pill a.chip-x { color: inherit; text-decoration: none; margin-left: 6px; font-weight: 700; }
.filter-chips .pill a.chip-x:hover { color: var(--err); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.filter-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.filter-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
/* Gespeicherte Filter: dezente Inline-Zeile im aufgeklappten Filter-Bereich */
.seg-inline { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: .85rem; }
.seg-inline .seg-lbl { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.seg-inline .seg-lbl .ic svg { width: 14px; height: 14px; display: block; }
.seg-inline .seg-pill { display: inline-flex; align-items: center; max-width: 240px; }
.seg-inline .seg-pill a.seg-apply { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.seg-inline .seg-pill a.seg-apply:hover { color: var(--accent); }
.seg-inline .seg-pill form { display: inline; margin: 0; }
.seg-inline .chip-x { background: none; border: 0; padding: 0 0 0 6px; color: inherit; font-weight: 700; cursor: pointer; font-size: .9rem; line-height: 1; }
.seg-inline .chip-x:hover { color: var(--err); }
.seg-save { display: flex; gap: 8px; align-items: stretch; margin-left: auto; flex: 0 1 320px; min-width: 220px; }
.seg-save input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 720px) { .seg-save { margin-left: 0; flex-basis: 100%; min-width: 0; } }
.list-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
/* Selects in Toolbars: Inline-Steuerelement statt globalem width:100% (sprengt sonst die Zeile) */
.list-toolbar select { width: auto; min-width: 180px; max-width: 100%; }
/* Umschalter "Aktive Band / Alle meine Bands" (Multi-Band) */
.scope-switch { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.scope-switch .scope-opt { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: .85rem;
    color: var(--muted); background: var(--panel-2); text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease); }
.scope-switch .scope-opt + .scope-opt { border-left: 1px solid var(--border-strong); }
.scope-switch .scope-opt:hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.scope-switch .scope-opt.is-active { background: var(--grad-primary); color: #fff; font-weight: 600; cursor: default; }

/* Adressbuch-Dropdown (Kontakte) */
.abook-dd { position: relative; display: inline-flex; max-width: min(100%, 320px); }
.abook-dd__trigger {
    display: inline-flex; align-items: center; gap: 12px;
    min-height: var(--control-height-md); max-width: 100%;
    padding: 6px 12px 6px 14px;
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--panel-2); color: var(--text);
    cursor: pointer; font: inherit; text-align: left;
    transition: border-color var(--transition-control), background var(--transition-control), box-shadow var(--transition-control);
}
.abook-dd__trigger:hover { border-color: rgba(54, 224, 255, .35); background: rgba(54, 224, 255, .06); }
.abook-dd__trigger:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--accent); }
.abook-dd__trigger[aria-expanded="true"],
.abook-dd__trigger.is-open {
    border-color: rgba(54, 224, 255, .45);
    background: rgba(54, 224, 255, .1);
    box-shadow: 0 0 0 1px rgba(54, 224, 255, .18);
}
.abook-dd__meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.abook-dd__eyebrow {
    font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); line-height: 1.2;
}
.abook-dd__current {
    font-size: .9rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}
.abook-dd__caret {
    display: inline-flex; flex: 0 0 auto; color: var(--muted);
    transition: transform .22s var(--ease), color var(--transition-control);
}
.abook-dd__trigger[aria-expanded="true"] .abook-dd__caret,
.abook-dd__trigger.is-open .abook-dd__caret { transform: rotate(180deg); color: var(--accent); }
.abook-dd__menu.export-menu {
    left: auto; right: 0; top: calc(100% + 8px);
    min-width: min(92vw, 300px); max-width: min(94vw, 340px);
    max-height: min(70vh, 420px); overflow: auto;
    padding: 6px; z-index: 60;
    transform-origin: top right;
}
.abook-dd__menu.export-menu:not([hidden]) {
    animation: abook-dd-in .2s var(--ease) both;
}
@keyframes abook-dd-in {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.abook-dd__list { display: flex; flex-direction: column; gap: 2px; }
.abook-dd__item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s var(--ease), border-color .15s var(--ease);
    min-height: 44px; justify-content: center;
}
.abook-dd__item:hover { background: rgba(54, 224, 255, .08); text-decoration: none; border-color: rgba(54, 224, 255, .12); }
.abook-dd__item.is-active {
    background: rgba(255, 61, 182, .1);
    border-color: rgba(255, 61, 182, .28);
}
.abook-dd__item-name {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: .88rem; font-weight: 600; line-height: 1.25;
}
.abook-dd__item-hint { font-size: .75rem; color: var(--muted); }
.abook-dd__badge {
    display: inline-flex; align-items: center;
    padding: 1px 7px; border-radius: 999px;
    font-size: .65rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--accent); border: 1px solid rgba(54, 224, 255, .35);
    background: rgba(54, 224, 255, .08);
}
.abook-dd__divider {
    height: 1px; margin: 6px 4px; background: var(--border);
}
.abook-dd__create { padding: 6px 6px 4px; }
.abook-dd__create-label {
    display: block; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); margin: 0 2px 8px;
}
.abook-dd__create-row { display: flex; gap: 8px; align-items: stretch; }
.abook-dd__create-input {
    flex: 1; min-width: 0; min-height: 40px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text);
    font: inherit; font-size: .88rem;
}
.abook-dd__create-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.abook-dd__create-btn { flex: 0 0 auto; min-height: 40px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
    .abook-dd__menu.export-menu:not([hidden]) { animation: none; }
    .abook-dd__caret { transition: none; }
}

.sort-ctl { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.sort-ctl .ic svg { width: 16px; height: 16px; display: block; color: var(--muted); }
th a.th-sort { color: inherit; text-decoration: none; }
th a.th-sort:hover { color: var(--accent); }
@media (max-width: 960px) {
    .venues-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
    }
    .venues-topbar .ac {
        grid-column: 1 / -1;
        flex: unset;
        min-width: 0;
        width: 100%;
    }
    .venues-topbar .ac input {
        min-height: 44px;
        font-size: 16px;
    }
    .venues-topbar > .btn,
    .venues-topbar > .btn.btn-sm {
        width: 100%;
        justify-content: center;
        align-self: stretch;
        min-height: 44px;
        height: 44px;
        padding: var(--control-padding-md);
        font-size: var(--control-font-size-md);
    }
    .venues-topbar .sort-ctl {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }
    .venues-topbar .sort-ctl select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        font-size: 16px;
    }
    .venues-meta-row {
        margin-bottom: 10px;
        gap: 8px;
    }
    .venues-topbar__actions {
        margin-left: 0;
        justify-content: flex-end;
        flex-shrink: 0;
        gap: 4px;
    }
    .venues-topbar__actions .btn,
    .venues-topbar__actions .btn-icon-only,
    .venues-topbar__actions .export-wrap .btn {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
    }
    .venues-meta-row .filter-chips,
    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 4px;
        gap: 8px;
        padding-bottom: 2px;
        scrollbar-width: none;
        margin-bottom: 0 !important;
    }
    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chips .pill {
        flex: 0 0 auto;
        scroll-snap-align: start;
        max-width: none;
        white-space: nowrap;
        min-height: 34px;
        padding: 6px 10px;
        font-size: .74rem;
    }
    .filter-chips .pill a.chip-x {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        min-height: 32px;
        margin: -4px -6px -4px 4px;
        padding: 0 6px;
    }
}

/* ---- Mitglieder-Liste (rundes +/- Icon) ---- */
.member-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.member-row input { flex: 1; }
.icon-btn {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--border-strong); background: var(--panel-2); color: var(--text);
    font-size: 1.35rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; padding: 0; transition: background .18s var(--ease); }
.icon-btn:hover { background: #1a1d27; }
.icon-btn--add { background: var(--grad-primary); border-color: transparent; color: #fff; margin-top: 4px; }
.icon-btn--add:hover { box-shadow: var(--glow); }

/* ---- Foto-Slider ---- */
.slider { position: relative; }
.slide { display: none; position: relative; }
.slide.active { display: block; }
.slide img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border-strong); display: block; }
.slide-del { position: absolute; top: 10px; right: 10px; margin: 0; }
.slider-nav {
    position: absolute; top: 45%; transform: translateY(-50%); z-index: 2;
    background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.18); width: 44px; height: 44px;
    border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
    transition: background .2s var(--ease);
}
.slider-nav:hover { background: rgba(0,0,0,.78); }
.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }
.slider-dots { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.slider-dots .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); cursor: pointer; transition: all .2s var(--ease); }
.slider-dots .dot.active { background: var(--grad-primary); width: 22px; border-radius: 5px; }

/* ---- Keyframes ---- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Echtes Logo-Bild: keine feste Größe (kommt inline), keine Drehung/Animation */
.logo-mark { transform: none !important; animation: none !important; }

/* Dashboard-Schnellzugriff (Basis – auch Admin-Newsletter) */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.quick-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    padding: 18px 12px; text-align: center; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--panel); color: var(--text); font-weight: 500; font-size: .9rem; text-decoration: none;
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease); }
.quick-tile:hover { border-color: var(--border-strong); background: var(--panel-2); color: var(--text); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.quick-ic { width: 40px; height: 40px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center;
    background: var(--panel-2); border: 1px solid var(--border-strong); color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.quick-tile .quick-ic { transition: transform .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.quick-tile:hover .quick-ic { transform: scale(1.06); }
.quick-ic .nav-ic { width: 21px; height: 21px; }

/* Dashboard-Schnellzugriff – Premium-Kacheln */
.quick-grid--dash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 22px;
}
@media (min-width: 900px) {
    .quick-grid--dash { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 560px) {
    .quick-grid--dash {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 14px 0 16px;
    }
    .quick-grid--dash .quick-tile {
        min-height: 84px;
        gap: 8px;
        padding: 12px 11px 11px;
        border-radius: 12px;
    }
    .quick-grid--dash .quick-ic {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
    .quick-grid--dash .quick-ic .nav-ic { width: 17px; height: 17px; }
    .quick-grid--dash .quick-label {
        font-size: .76rem;
        line-height: 1.3;
    }
    .quick-grid--dash .quick-tile::after {
        width: 72px;
        height: 72px;
        right: -28px;
        top: -28px;
    }
}
.quick-grid--dash .quick-tile {
    position: relative;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 13px;
    min-height: 108px;
    padding: 16px 15px 15px;
    text-align: left;
    border-radius: 14px;
    border: 1px solid var(--border);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, .045) 0%, transparent 42%),
        linear-gradient(180deg, rgba(15, 17, 24, .92) 0%, rgba(11, 12, 17, .88) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 1px 0 rgba(0, 0, 0, .18);
    overflow: hidden;
    isolation: isolate;
}
.quick-grid--dash .quick-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 61, 182, .55) 0%, rgba(176, 108, 255, .45) 48%, rgba(54, 224, 255, .5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .25s var(--ease);
    pointer-events: none;
}
.quick-grid--dash .quick-tile::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--qglow, rgba(54, 224, 255, .28)) 0%, transparent 72%);
    opacity: .14;
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.quick-grid--dash .quick-tile:hover {
    border-color: transparent;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, .06) 0%, transparent 46%),
        linear-gradient(180deg, rgba(18, 20, 28, .96) 0%, rgba(12, 13, 19, .94) 100%);
    transform: translateY(-4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 14px 34px rgba(0, 0, 0, .34),
        0 0 28px var(--qshadow, rgba(54, 224, 255, .08));
}
.quick-grid--dash .quick-tile:hover::before { opacity: 1; }
.quick-grid--dash .quick-tile:hover::after { opacity: .34; transform: scale(1.08); }
.quick-grid--dash .quick-ic {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--qaccent, var(--accent));
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01)),
        rgba(20, 22, 30, .72);
    border: 1px solid rgba(233, 236, 246, .1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 6px 18px rgba(0, 0, 0, .24),
        0 0 0 1px rgba(0, 0, 0, .12);
}
.quick-grid--dash .quick-ic::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--qaccent, var(--accent)), transparent 68%);
    opacity: .22;
    pointer-events: none;
    z-index: -1;
}
.quick-grid--dash .quick-tile:hover .quick-ic {
    transform: translateY(-1px) scale(1.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 8px 22px rgba(0, 0, 0, .3),
        0 0 18px var(--qshadow, rgba(54, 224, 255, .14));
}
.quick-grid--dash .quick-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-head);
    font-size: .84rem;
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.35;
    color: var(--text);
    transition: color .2s var(--ease);
}
.quick-grid--dash .quick-tile:hover .quick-label { color: #f4f6fc; }
.quick-grid--dash .quick-ic .nav-ic { width: 20px; height: 20px; }
/* CI-Zyklus: Cyan → Pink → Sun-Orange → Amber-Gelb (Logo/Synthwave) */
.quick-grid--dash .quick-tile:nth-child(8n+1) { --qaccent: var(--accent); --qglow: rgba(54, 224, 255, .34); --qshadow: rgba(54, 224, 255, .12); }
.quick-grid--dash .quick-tile:nth-child(8n+2) { --qaccent: var(--pink); --qglow: rgba(255, 61, 182, .34); --qshadow: rgba(255, 61, 182, .12); }
.quick-grid--dash .quick-tile:nth-child(8n+3) { --qaccent: var(--sun); --qglow: rgba(255, 177, 61, .34); --qshadow: rgba(255, 177, 61, .12); }
.quick-grid--dash .quick-tile:nth-child(8n+4) { --qaccent: var(--amber); --qglow: rgba(255, 210, 63, .32); --qshadow: rgba(255, 210, 63, .1); }
.quick-grid--dash .quick-tile:nth-child(8n+5) { --qaccent: var(--accent); --qglow: rgba(54, 224, 255, .3); --qshadow: rgba(54, 224, 255, .1); }
.quick-grid--dash .quick-tile:nth-child(8n+6) { --qaccent: var(--pink); --qglow: rgba(255, 61, 182, .3); --qshadow: rgba(255, 61, 182, .1); }
.quick-grid--dash .quick-tile:nth-child(8n+7) { --qaccent: var(--sun); --qglow: rgba(255, 177, 61, .3); --qshadow: rgba(255, 177, 61, .1); }
.quick-grid--dash .quick-tile:nth-child(8n) { --qaccent: var(--amber); --qglow: rgba(255, 210, 63, .3); --qshadow: rgba(255, 210, 63, .1); }
html[data-theme="light"] .quick-grid--dash .quick-tile {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .78) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(20, 22, 45, .06);
}
html[data-theme="light"] .quick-grid--dash .quick-tile:hover {
    background: linear-gradient(155deg, #fff 0%, #f6f7fc 100%);
    box-shadow: 0 12px 28px rgba(20, 22, 45, .1), 0 0 20px var(--qshadow, rgba(10, 166, 201, .08));
}
html[data-theme="light"] .quick-grid--dash .quick-ic {
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(241, 243, 249, .9));
    border-color: rgba(18, 22, 38, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(20, 22, 45, .06);
}
@media (prefers-reduced-motion: reduce) {
    .quick-tile:hover { transform: none; }
    .quick-tile:hover .quick-ic,
    .quick-grid--dash .quick-tile:hover .quick-ic { transform: none; }
    .quick-grid--dash .quick-tile:hover::after { transform: none; }
}

/* Unter-Navigation (Tabs einer Hauptgruppe) — schlichte Text-Tabs */
.topbar:has(+ .subnav) { margin-bottom: 6px; }
.subnav,
[data-nav-tabs] {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin: 0 0 14px;
    padding: 0;
    height: 36px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
}
.subnav::-webkit-scrollbar,
[data-nav-tabs]::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.subnav-link {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 0 12px;
    height: 36px;
    min-height: 0;
    line-height: 1.25;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: 0;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    background: transparent;
    box-shadow: none;
    transition: color .15s var(--ease), border-color .15s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
}
.subnav-link:hover {
    color: var(--text);
    background: transparent;
}
.subnav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}
.subnav-link.active {
    color: var(--text);
    font-weight: 600;
    background: transparent;
    border-bottom-color: var(--primary);
    box-shadow: none;
}
.subnav-link.active::after { content: none; }
.settings-subnav.subnav {
    margin-bottom: 14px;
}
html[data-theme="light"] .subnav {
    background: transparent;
    border-bottom-color: var(--border);
    box-shadow: none;
}
html[data-theme="light"] .subnav-link:hover {
    background: transparent;
    color: var(--text);
}
html[data-theme="light"] .subnav-link.active {
    background: transparent;
    border-bottom-color: var(--primary);
    box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
    .subnav-link { transition: none; }
}

/* Reverse-Trial-Banner */
.trial-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    background: rgba(255, 61, 182,.12); border: 1px solid rgba(255, 61, 182,.4); border-left: 3px solid var(--pink); border-radius: var(--radius);
    padding: 11px 16px; margin-bottom: 18px; font-size: .9rem; color: #ffb0e0; }

/* Onboarding-Rundgang */
.tour-overlay { position: fixed; inset: 0; z-index: 2000; }
.tour-overlay--dim { background: rgba(6, 7, 12, .76); }
.tour-ring {
    position: fixed; border-radius: var(--radius); pointer-events: none; display: none;
    box-shadow: 0 0 0 2px var(--pink), 0 0 0 100vmax rgba(6, 7, 12, .76);
    transition: top .2s var(--ease), left .2s var(--ease), width .2s var(--ease), height .2s var(--ease);
}
.tour-pop {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(320px, calc(100vw - 32px)); background: var(--panel-solid, #0e1016);
    border: 1px solid var(--border-strong, rgba(255,255,255,.14)); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: var(--text, #edf0f7);
}
.tour-pop--anchored { transform: none; }
.tour-pop__title { font-family: var(--font-head, inherit); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.tour-pop__text { color: var(--muted, #868fa3); font-size: .9rem; line-height: 1.5; margin-bottom: 14px; }
.tour-pop__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-pop__nav { display: flex; align-items: center; gap: 10px; }
.tour-pop__dots { color: var(--muted, #868fa3); font-size: .78rem; font-family: var(--font-mono); }

/* PWA: schwebender "App installieren"-Button */
.pwa-install {
    position: fixed; right: 16px; bottom: 16px; z-index: 1200;
    padding: 11px 16px; border: 0; border-radius: 999px; cursor: pointer;
    color: #fff; font: 600 14px/1 inherit; letter-spacing: .01em;
    background: var(--grad-primary);
    box-shadow: var(--shadow);
}
.pwa-install:hover { box-shadow: var(--glow); }
@media (max-width: 560px) { .pwa-install { left: 16px; right: 16px; text-align: center; } }

/* Eigene Venue-Bewertung (Sterne) */
.rating-cell { white-space: nowrap; }
.stars { color: #f4c45e; letter-spacing: 1px; }
.stars .stars-empty { color: #3a3d4a; }

/* --- Google-Standortfotos --- */
.venue-namecell { display: flex; align-items: center; gap: 10px; }
.venue-thumb {
    width: 52px; height: 40px; flex: 0 0 52px;
    object-fit: cover; border-radius: var(--radius-sm);
    background: var(--bg); border: 1px solid var(--border);
}
.gphoto-block { margin-top: 14px; }
.gphoto-img {
    display: block; width: 100%; max-width: 360px; height: auto;
    aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--bg);
}
.gphoto-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: .86rem; }
.gphoto-attr { margin-top: 6px; font-size: .72rem; opacity: .75; }
.gphoto-attr a { color: inherit; text-decoration: underline; }

@media print {
    .no-print { display: none !important; }
    .sidebar, nav, .topbar, .page-head .btn-row, .flash, .pwa-install-tip { display: none !important; }
    body { background: #fff !important; color: #111 !important; }
    .panel, .card, .gig-card { box-shadow: none !important; border-color: #ccc !important; background: #fff !important; }
    a { color: #111 !important; text-decoration: none !important; }
    /* UX-098: Tagesblatt / Rechnung / Setlist */
    .tour-day, .invoice-print, .setlist-print, .print-sheet {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .invoice-print .btn, .setlist-print .btn, .tour-day .btn { display: none !important; }
    h1, h2, h3 { color: #111 !important; -webkit-text-fill-color: #111 !important; background: none !important; }
}

/* --- Datei-/Bild-Uploads (app-weit) --- */
input[type="file"] {
    display: block; width: 100%; max-width: 440px;
    font: inherit; font-size: .9rem; color: var(--muted);
    background: var(--bg-soft); border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius); padding: 10px 12px; cursor: pointer;
    transition: border-color .18s var(--ease), background .18s var(--ease);
}
input[type="file"]:hover { border-color: var(--pink); background: var(--panel); }
input[type="file"]:focus-visible { outline: none; border-color: var(--pink); border-style: solid; }
input[type="file"]::file-selector-button {
    font: inherit; font-weight: 600; cursor: pointer; color: #fff;
    margin-right: 12px; padding: 8px 16px; border: 0; border-radius: var(--radius-sm);
    background: var(--grad-primary);
}
input[type="file"]::-webkit-file-upload-button {
    font: inherit; font-weight: 600; cursor: pointer; color: #fff;
    margin-right: 12px; padding: 8px 16px; border: 0; border-radius: var(--radius-sm);
    background: var(--grad-primary);
}

/* ---- Community-Bewertungen ---- */
.review-stars { color: #ffcf3a; letter-spacing: 1px; font-size: 1rem; }
.review-agg { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.review-form .row { gap: 12px; align-items: flex-start; }
.review-list { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 6px; }
.review-item { padding: 11px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: 0; }
.review-item__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-item__txt { margin: 6px 0 0; color: var(--muted); white-space: pre-wrap; line-height: 1.5; }

/* ---- Große Marken-Headlines: Miami-Vice-Script (passend zum Logo) ---- */
.page-head h1 {
    font-family: var(--font-display); font-weight: 400; letter-spacing: 0; font-size: 2.1rem;
    line-height: 1.35; padding: .08em 0 .12em; overflow: visible;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.auth-logo__name { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
@media (max-width: 720px) { .page-head h1 { font-size: 1.8rem; } }

/* ---- Responsive Tabellen-Karten (#24): breite Listen → Karten ≤900px ---- */
@media (max-width: 900px) {
    .table-wrap > table.table-cards { min-width: 0; width: 100%; }
    .table-wrap:has(> table.table-cards) { overflow-x: visible; }
    .table-wrap > table.table-cards thead {
        position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .table-wrap > table.table-cards,
    .table-wrap > table.table-cards tbody { display: block; width: 100%; }
    .table-wrap > table.table-cards tbody tr {
        display: block; margin: 0 0 12px; border: 1px solid var(--border); border-radius: 12px;
        background: var(--panel); padding: 4px 14px; box-shadow: var(--shadow);
    }
    .table-wrap > table.table-cards tbody tr:hover { background: var(--panel); }
    .table-wrap > table.table-cards tbody tr:has(> td[colspan]) {
        border: 0; box-shadow: none; background: transparent; padding: 0; margin: 0;
    }
    .table-wrap > table.table-cards tbody tr:has(> td[colspan]) td {
        display: block; text-align: center; padding: 24px 12px; border: 0;
    }
    .table-wrap > table.table-cards tbody tr:has(> td[colspan]) td::before { display: none; }
    .table-wrap > table.table-cards tbody td {
        display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
        padding: 8px 0; border: 0; border-bottom: 1px solid var(--border); text-align: right;
        min-width: 0; word-break: break-word;
    }
    .table-wrap > table.table-cards tbody tr > td:last-child { border-bottom: 0; }
    .table-wrap > table.table-cards tbody td::before {
        content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left;
        flex: 0 0 38%; max-width: 42%; font-size: .78rem; line-height: 1.35;
        text-transform: uppercase; letter-spacing: .04em;
    }
    .table-wrap > table.table-cards tbody td:not([data-label])::before,
    .table-wrap > table.table-cards tbody td[data-label=""]::before { display: none; }
    .table-wrap > table.table-cards tbody td:empty { display: none; }
    .table-wrap > table.table-cards tbody td .mono,
    .table-wrap > table.table-cards tbody td small.mono { word-break: break-all; }
    .table-wrap > table.table-cards tbody td.table-card-primary {
        flex-direction: column; align-items: stretch; gap: 4px; padding-top: 12px; padding-bottom: 10px;
        border-bottom: 1px solid var(--border-strong); text-align: left;
    }
    .table-wrap > table.table-cards tbody td.table-card-primary::before {
        flex: none; max-width: none; margin-bottom: 2px;
    }
    .table-wrap > table.table-cards tbody td.table-card-primary strong,
    .table-wrap > table.table-cards tbody td.table-card-primary a strong { font-size: 1.02rem; }
    .table-wrap > table.table-cards tbody td.table-card-compact {
        flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px;
        padding-top: 6px; padding-bottom: 6px; border-bottom: 0;
    }
    .table-wrap > table.table-cards tbody td.table-card-compact::before { display: none; }
    .table-wrap > table.table-cards tbody td.table-card-actions {
        flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; text-align: left;
    }
    .table-wrap > table.table-cards tbody td.table-card-actions::before {
        flex: none; max-width: none; margin-bottom: 2px;
    }
    .table-wrap > table.table-cards tbody td.table-card-actions .btn,
    .table-wrap > table.table-cards tbody td.table-card-actions button.btn,
    .table-wrap > table.table-cards tbody td.table-card-actions a.btn {
        display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
        margin: 0; white-space: normal; text-align: center;
    }
    .table-wrap > table.table-cards tbody td.table-card-actions form {
        display: block; width: 100%; margin: 0 !important;
    }
    .table-wrap > table.table-cards tbody td.table-card-actions > div[style*="display:flex"] {
        display: flex !important; flex-direction: column; gap: 8px; width: 100%;
    }
    .table-wrap > table.table-cards tbody td.table-card-actions > div[style*="display:flex"] .btn,
    .table-wrap > table.table-cards tbody td.table-card-actions > div[style*="display:flex"] form {
        width: 100%;
    }
    .table-wrap > table.table-cards tbody td .badge { flex-shrink: 0; }
    .table-wrap > table.table-cards tbody td .venue-namecell { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .table-wrap:has(> table.table-cards) {
        border: 0; background: transparent; box-shadow: none;
    }
    .table-wrap > table.table-cards tbody td::before { flex-basis: 42%; max-width: 46%; }
}

@media (max-width: 480px) {
    .table-wrap > table.table-cards tbody td {
        flex-direction: column; align-items: stretch; gap: 4px; text-align: left;
    }
    .table-wrap > table.table-cards tbody td::before {
        flex: none; max-width: none; margin-right: 0;
    }
    .table-wrap > table.table-cards tbody td.table-card-actions,
    .table-wrap > table.table-cards tbody td.table-card-primary { flex-direction: column; }
}

/* ---- Lade-/Doppelklick-Schutz für Buttons (#26) ---- */
.btn.is-loading, button.is-loading { opacity: .7; cursor: progress; pointer-events: none; }
.btn:disabled,
.btn.is-disabled,
.btn[aria-disabled="true"],
button:disabled,
button[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-spin { display: inline-block; width: .8em; height: .8em; border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; vertical-align: -1px; animation: btnspin .6s linear infinite; }
@keyframes btnspin { to { transform: rotate(360deg); } }

/* ---- Tastatur-Bedienbarkeit: sichtbarer Fokus-Ring (a11y, Welle „hoch" #34) ----
   Nur für Tastatur-Navigation (:focus-visible), stört Maus-Klicks nicht. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible,
.nav-link:focus-visible,
.tab:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent, #36e0ff);
    outline-offset: 2px;
    border-radius: 4px;
}
/* Topbar-Icon-Buttons (Suche, Schnellzugriff, Rundgang): .btn/.btn-ghost und globales
   :focus-visible liegen später in der Cascade — daher hier mit höherer Spezifität und
   !important alle Umrandungen entfernen (nur dezenter Hover wie Suche). */
/* Nach .btn/.btn-sm: feste 34×34-Hitbox ohne Padding, damit Lupe/Stern/Avatar
   gleiche Außenabstände (flex gap) und optisch zentrierte Icons behalten. */
.btn.btn-ghost.topbar-search-open,
.btn.btn-ghost.topbar-quick-toggle,
.btn.btn-ghost.topbar-tour-btn,
button.btn.btn-ghost.topbar-search-open,
button.btn.btn-ghost.topbar-quick-toggle,
button.btn.btn-ghost.topbar-tour-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    gap: 0;
    margin: 0;
    border: none !important;
    border-color: transparent !important;
    background: transparent;
    box-shadow: none;
    outline: none;
}
.btn.btn-ghost.topbar-search-open:hover,
.btn.btn-ghost.topbar-quick-toggle:hover,
.btn.btn-ghost.topbar-tour-btn:hover,
.btn.btn-ghost.topbar-search-open:active,
.btn.btn-ghost.topbar-quick-toggle:active,
.btn.btn-ghost.topbar-tour-btn:active,
button.btn.btn-ghost.topbar-search-open:hover,
button.btn.btn-ghost.topbar-quick-toggle:hover,
button.btn.btn-ghost.topbar-tour-btn:hover,
button.btn.btn-ghost.topbar-search-open:active,
button.btn.btn-ghost.topbar-quick-toggle:active,
button.btn.btn-ghost.topbar-tour-btn:active {
    border: none !important;
    border-color: transparent !important;
    box-shadow: none;
    outline: none;
}
.btn.btn-ghost.topbar-search-open:hover,
.btn.btn-ghost.topbar-quick-toggle:hover,
.btn.btn-ghost.topbar-tour-btn:hover,
button.btn.btn-ghost.topbar-search-open:hover,
button.btn.btn-ghost.topbar-quick-toggle:hover,
button.btn.btn-ghost.topbar-tour-btn:hover {
    background: rgba(54, 224, 255, .07);
}
.topbar-search-wrap.is-open .topbar-search-open,
.topbar-search-wrap.is-open button.topbar-search-open {
    background: rgba(54, 224, 255, .07);
}
.btn.btn-ghost.topbar-search-open:focus,
.btn.btn-ghost.topbar-quick-toggle:focus,
.btn.btn-ghost.topbar-tour-btn:focus,
.btn.btn-ghost.topbar-search-open:focus-visible,
.btn.btn-ghost.topbar-quick-toggle:focus-visible,
.btn.btn-ghost.topbar-tour-btn:focus-visible,
button.btn.btn-ghost.topbar-search-open:focus,
button.btn.btn-ghost.topbar-quick-toggle:focus,
button.btn.btn-ghost.topbar-tour-btn:focus,
button.btn.btn-ghost.topbar-search-open:focus-visible,
button.btn.btn-ghost.topbar-quick-toggle:focus-visible,
button.btn.btn-ghost.topbar-tour-btn:focus-visible {
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    outline-offset: 0;
    box-shadow: 0 0 0 3px rgba(54, 224, 255, .18);
}
/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- Location-Schnellsuche (Autocomplete) ---- */
.ac { position: relative; }
.ac > input[type=text] { width: 100%; padding-left: 34px; }
.ac .ac-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: inline-flex; }
.ac .ac-ic svg { width: 16px; height: 16px; }
.ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; max-height: 320px; overflow-y: auto;
    background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 4px; }
.ac-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
    padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); font: inherit; line-height: 1.3; }
.ac-item:hover, .ac-item.is-active { background: rgba(54, 224, 255, .1); }
.ac-item strong { font-weight: 600; }
.ac-item .ac-warn { float: right; font-size: .72rem; color: var(--warn); font-family: var(--font-mono); }

/* Export-Dropdown (Locations u.a.) */
.export-wrap { position: relative; display: inline-flex; }
.export-wrap [data-export-toggle].btn { padding: 0; }
.export-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 132px;
    background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 4px; }
.export-menu__item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--text); font-size: .88rem; text-decoration: none; white-space: nowrap; }
.export-menu__item:hover { background: rgba(54, 224, 255, .1); text-decoration: none; }
button.export-menu__item { width: 100%; background: transparent; border: 0; cursor: pointer; font: inherit; text-align: left; }
.export-menu--wide { min-width: 220px; }

/* Dashboard: Schnellmenü + Anpassungsseite */
.dash-quick-wrap .dash-quick-toggle { padding: 11px; }
.dash-quick-menu { min-width: 210px; max-width: min(92vw, 280px); }
.topbar-quick-wrap { position: relative; }
.topbar-quick-menu {
    min-width: 210px;
    max-width: min(92vw, 280px);
}
@media (max-width: 900px) {
    /* Dashboard: Titel + Hamburger bündig in einer Zeile (nicht untereinander stapeln) */
    .page-head:has(.dash-quick-wrap) {
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }
    .page-head:has(.dash-quick-wrap) > div:first-child {
        flex: 1 1 auto;
        min-width: 0;
    }
    .page-head:has(.dash-quick-wrap) > .btn-row {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        margin-left: auto;
    }
    .page-head:has(.dash-quick-wrap) h1 {
        margin-bottom: 0;
    }
    .page-head:has(.dash-quick-wrap) .dash-quick-wrap {
        align-self: center;
    }
}
.dash-widget-toggles { display: grid; gap: 8px; margin-top: 10px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; line-height: 1.35; }
.check-row input { margin-top: 3px; accent-color: var(--primary); }
.dash-link-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dash-link-row { display: flex; align-items: center; gap: 8px; }
.dash-link-select { flex: 1; min-width: 0; padding: 9px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; }
.dash-link-remove { flex: 0 0 auto; min-width: 36px; }

/* Export-Dropdown-Toggles (z.B. Termine-Kalender, Locations-Export) */
.export-wrap .btn-hover-label { padding: 11px; }
.export-wrap .btn-hover-label:hover,
.export-wrap .btn-hover-label:focus-visible,
.export-wrap .btn-hover-label.is-open,
.export-wrap .btn-hover-label.is-label-open,
.export-wrap .btn-hover-label.is-pinned { padding: 11px 16px; }
.export-wrap .btn-hover-label .btn-hover-label-text { max-width: 0; }
.export-wrap .btn-hover-label:hover .btn-hover-label-text,
.export-wrap .btn-hover-label:focus-visible .btn-hover-label-text,
.export-wrap .btn-hover-label.is-open .btn-hover-label-text,
.export-wrap .btn-hover-label.is-label-open .btn-hover-label-text,
.export-wrap .btn-hover-label.is-pinned .btn-hover-label-text { max-width: 12rem; }

th.venue-fav-col { width: 40px; padding-left: 8px; padding-right: 8px; text-align: center; text-transform: none; letter-spacing: 0; font-size: 1.15rem; font-weight: 400; line-height: 1; color: var(--muted); font-family: inherit; }
.venue-fav-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 2px 4px; transition: color .15s var(--ease), transform .12s var(--ease); }
.venue-fav-btn:hover, .venue-fav-btn.is-on, .venue-fav.is-on { color: #f0c040; }
.venue-fav-btn:active { transform: scale(.92); }
.fav-chip .venue-fav { margin-right: 2px; }

/* Skip-Link, Toast, Theme-Toggle */
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 9999; padding: 10px 16px; background: var(--panel-solid); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 12px; outline: none; box-shadow: 0 0 0 3px rgba(54, 224, 255, .25); }
.bmb-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(12px); z-index: 3000; padding: 10px 18px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--border-strong); color: var(--text); font-size: .88rem; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.bmb-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .bmb-toast { transition: none; } }
.theme-toggle .theme-ic { display: inline-flex; align-items: center; }
html[data-theme="light"] .theme-ic--dark { display: none; }
html:not([data-theme="light"]) .theme-ic--light { display: none; }

/* Termine: Karten auf schmalen Screens statt horizontaler Tabelle */
.gig-cards { display: none; gap: 10px; }
.gig-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 14px 16px; }
.gig-card__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.gig-card__meta { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.gig-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 720px) {
    .gig-table-wrap { display: none; }
    .gig-cards { display: grid; }
}


/* ---- Dashboard: KPI-Cards, Charts, Reveal (#183 aus dashboard/index.php ausgelagert) ---- */
/* ===== KPI-Cards, Charts & Reveal-Animationen (CI-Tokens, reduced-motion-safe) ===== */
.kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 14px;margin-bottom:12px}
@media(max-width:900px){.kpi-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:460px){.kpi-row{grid-template-columns:1fr;gap:10px}}
.kpi{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:3px;min-height:108px;padding:16px 18px;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:var(--text);text-decoration:none;transition:border-color .2s var(--ease),transform .2s var(--ease),box-shadow .2s var(--ease)}
.kpi::after{content:"";position:absolute;right:-42px;top:-42px;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,var(--kglow,transparent) 0%,transparent 70%);opacity:.16;pointer-events:none;transition:opacity .25s var(--ease)}
.kpi:hover{border-color:var(--border-strong);transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.28)}
.kpi:hover::after{opacity:.3}
.kpi-ic{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--panel-2);color:var(--muted);margin-bottom:7px;transition:color .2s}
.kpi-ic svg{width:18px;height:18px}
.kpi-num{font-family:var(--font-mono);font-size:1.9rem;font-weight:600;line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.kpi-lbl{font-size:.82rem;color:var(--muted)}
.kpi-bar{height:5px;border-radius:99px;background:var(--panel-2);overflow:hidden;margin-top:8px}
.kpi-bar>span{display:block;height:100%;background:var(--grad-primary);border-radius:99px;width:var(--w,0)}
/* Akzent je Kennzahl – CI: Pink / Cyan / Sun-Orange / Amber (Logo) */
.kpi--pink{--kglow:var(--primary)}.kpi--pink .kpi-ic{background:rgba(255,61,182,.13);color:var(--primary)}
.kpi--cyan{--kglow:var(--accent)}.kpi--cyan .kpi-ic{background:rgba(54,224,255,.11);color:var(--accent)}
.kpi--sun,.kpi--ok{--kglow:var(--sun)}.kpi--sun .kpi-ic,.kpi--ok .kpi-ic{background:rgba(255,177,61,.13);color:var(--sun)}
.kpi--amber,.kpi--warn{--kglow:var(--amber)}.kpi--amber .kpi-ic,.kpi--warn .kpi-ic{background:rgba(255,210,63,.13);color:var(--amber)}
.kpi--purple{--kglow:var(--primary)}.kpi--purple .kpi-ic{background:rgba(255,61,182,.13);color:var(--primary)}
.kpi--hot{border-color:var(--primary)}
.kpi--hot .kpi-num{color:var(--primary)}
/* Reveal-on-scroll: nur mit JS (html.has-anim) + ohne reduced-motion */
.has-anim .reveal-up{opacity:0;transform:translateY(16px)}
.has-anim .reveal-up.in{opacity:1;transform:none;transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1)}
.has-anim .reveal-up.d1.in{transition-delay:.07s}.has-anim .reveal-up.d2.in{transition-delay:.14s}.has-anim .reveal-up.d3.in{transition-delay:.21s}
.has-anim .kpi-bar>span,.has-anim .pipe-fill{width:0;transition:width 1s cubic-bezier(.16,1,.3,1) .25s}
.has-anim .reveal-up.in .kpi-bar>span,.has-anim .reveal-up.in .pipe-fill{width:var(--w,0)}
/* Graph-Sektion */
.dash-graphs{display:grid;grid-template-columns:1.7fr 1fr;gap:14px;margin-bottom:18px}
.dash-graphs .chart-card:nth-child(3){grid-column:1/-1}
@media(max-width:760px){.dash-graphs{grid-template-columns:1fr}.dash-graphs .chart-card:nth-child(3){grid-column:auto}}
.chart-card{border:1px solid var(--border);border-radius:14px;background:var(--panel);padding:18px}
.chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.chart-head h3{margin:0;font-size:1.02rem}
.chart-sub{display:block;color:var(--muted);font-size:.78rem;margin-top:2px}
.chart-kpis{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chart-total{font-family:var(--font-mono);font-size:1.55rem;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.trend-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;border:1px solid rgba(69,211,155,.32);background:rgba(69,211,155,.1);color:var(--ok);font-family:var(--font-mono);font-size:.72rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.chart-link{font-size:.8rem;color:var(--muted)}
.chart-link:hover{color:var(--accent)}
.chart-svg{width:100%;height:auto;display:block;overflow:visible}
.chart-grid line{stroke:var(--border);stroke-dasharray:3 5;stroke-width:1}
.chart-line{fill:none;stroke:url(#epkGrad);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
/* Linie immer voll zeichnen (kein stroke-dasharray / pathLength) – Dash-Anims
   blieben unter .reveal-up oft bei ~50% hängen und endeten vor „heute“. */
.chart-fill,.chart-dot{opacity:0}
.has-anim .reveal-up.in .chart-fill{animation:areaIn .9s ease .15s forwards}
.has-anim .reveal-up.in .chart-dot{animation:areaIn .5s ease .35s forwards}
html:not(.has-anim) .chart-fill,html:not(.has-anim) .chart-dot{opacity:1}
@keyframes areaIn{to{opacity:1}}
.chart-x{display:flex;justify-content:space-between;margin-top:6px;padding:0 2%;color:var(--muted);font-family:var(--font-mono);font-size:.7rem;letter-spacing:.04em}
.chart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:150px;text-align:center;color:var(--muted);font-size:.88rem}
/* EPK-Aufrufe Chart – interaktiv, CI-konform */
.chart-card--epk{
  position:relative;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%,rgba(54,224,255,.07),transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%,rgba(255,61,182,.04),transparent 50%),
    var(--panel);
  border-color:rgba(54,224,255,.14);
  overflow:visible;
}
.chart-card--epk::before{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(135deg,rgba(54,224,255,.03) 0%,transparent 40%,rgba(255,61,182,.02) 100%);
}
.chart-card--epk .chart-head{position:relative;z-index:1}
.chart-card--epk .chart-total{color:var(--accent)}
.chart-body{position:relative;margin-top:4px}
.chart-tooltip{
  position:absolute;z-index:5;pointer-events:none;
  display:flex;flex-direction:column;gap:1px;
  padding:6px 10px;border-radius:8px;
  background:var(--panel-solid);border:1px solid rgba(54,224,255,.35);
  box-shadow:0 8px 24px rgba(0,0,0,.45),0 0 0 1px rgba(54,224,255,.08);
  transform:translate(-50%,-100%);margin-top:-10px;
  opacity:0;transition:opacity .15s var(--ease);
  white-space:nowrap;
}
.chart-tooltip:not([hidden]){opacity:1}
.chart-tooltip-date{font-size:.7rem;color:var(--muted);font-family:var(--font-mono);letter-spacing:.03em}
.chart-tooltip-val{font-family:var(--font-mono);font-size:.95rem;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums}
.chart-svg--epk{touch-action:none}
.chart-plot-bg{fill:rgba(54,224,255,.02);stroke:none}
.chart-card--epk .chart-grid line{stroke:var(--line);stroke-dasharray:2 6;stroke-width:.8;opacity:.7}
.chart-line--epk{fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;filter:url(#epkGlow)}
.chart-crosshair{stroke:var(--accent);stroke-width:1;stroke-dasharray:3 4;opacity:0;transition:opacity .12s;pointer-events:none}
.chart-card--epk.is-hovering .chart-crosshair{opacity:.55}
.chart-hit{fill:transparent;stroke:none;cursor:crosshair}
.chart-dot{fill:var(--panel-solid);stroke:url(#epkGrad);stroke-width:1.6;opacity:.85;transition:opacity .12s,r .15s var(--ease),stroke-width .12s}
.chart-dot-glow{fill:var(--accent);opacity:.14;pointer-events:none}
.chart-point.is-today .chart-dot{stroke:var(--accent);stroke-width:2.2;opacity:1}
.chart-point.is-active .chart-dot{stroke:var(--accent);stroke-width:2.4;opacity:1;r:4.2}
.chart-point.is-active .chart-dot-glow{opacity:.28;r:11}
.chart-card--epk:not(.is-hovering) .chart-point.is-today .chart-dot-glow{opacity:.2}
.chart-x-today{color:var(--accent)}
@media(max-width:480px){
  .chart-card--epk{padding:14px}
  .chart-total{font-size:1.3rem}
  .chart-tooltip{padding:5px 8px;font-size:.85rem}
  .chart-tooltip-val{font-size:.85rem}
}
.pipe-list{display:flex;flex-direction:column;gap:11px;margin-top:6px}
.pipe-row{display:grid;grid-template-columns:92px 1fr 34px;align-items:center;gap:10px;font-size:.84rem}
.pipe-track{height:8px;background:var(--panel-2);border-radius:99px;overflow:hidden}
.pipe-fill{display:block;height:100%;border-radius:99px;background:var(--grad-primary);width:var(--w,0)}
.pipe-row .n{text-align:right;font-family:var(--font-mono);color:var(--text);font-variant-numeric:tabular-nums}
.dash-weekly-bars{display:flex;align-items:flex-end;gap:5px;height:120px;margin-top:8px}
.dash-weekly-bar{flex:1;height:var(--h,2%);min-height:3px;border-radius:5px 5px 0 0;background:var(--grad-primary);opacity:.85}
.dash-funnel{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.dash-funnel-row .progress{height:8px}
.dash-funnel-meta{display:flex;justify-content:space-between;align-items:center;font-size:.84rem;margin-bottom:4px}
@media(prefers-reduced-motion:reduce){
  .has-anim .reveal-up{opacity:1;transform:none;transition:none}
  .kpi-bar>span,.pipe-fill{transition:none}
  .has-anim .chart-fill,.has-anim .chart-dot{animation:none;opacity:1}
}

/* ---- Dashboard Premium: React-Insel + Glass-Panels ---- */
.dash-premium-wrap {
  position: relative;
  margin-bottom: 6px;
}
.dash-top {
  position: relative;
  margin-bottom: 12px;
}
.dash-island-host { min-height: 0; }
.dash-premium-wrap:has([data-island-mounted]) .dash-fallback { display: none; }

/* Chart-/Panel-Glas auf dem Dashboard */
.main:has(.dash-premium-wrap) .chart-card:not(.chart-card--epk) {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035) 0%, transparent 42%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 0 rgba(0, 0, 0, 0.16);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
.main:has(.dash-premium-wrap) .chart-card:not(.chart-card--epk):hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.26);
}
.main:has(.dash-premium-wrap) .panel {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.main:has(.dash-premium-wrap) .dash-lower .panel {
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.main:has(.dash-premium-wrap) .dash-lower .panel:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 22px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .dash-premium-wrap:has([data-island-mounted]) .dash-top { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .main:has(.dash-premium-wrap) .chart-card:not(.chart-card--epk):hover,
  .main:has(.dash-premium-wrap) .dash-lower .panel:hover { transform: none; }
  .main:has(.dash-premium-wrap) .chart-card:not(.chart-card--epk),
  .main:has(.dash-premium-wrap) .dash-lower .panel { transition: none; }
  .has-anim .reveal-up.in .chart-fill,
  .has-anim .reveal-up.in .chart-dot { animation: none !important; opacity: 1; }
}

/* ---- UI/UX Audit 2026-07-14: Mobile-first Touch & Alignment ---- */
@media (max-width: 900px) {
    /* Seiten-Untertitel auf dem Handy sichtbar (Desktop bleibt kompakt) */
    .page-head:not(.page-head--desc):has(> div:first-child .sub) {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
    }
    .page-head:not(.page-head--desc):has(> div:first-child .sub) > div:first-child { display: block; flex: 1 1 auto; min-width: 0; }
    .page-head:not(.page-head--desc):has(> div:first-child .sub) > .btn-row {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }
    .page-head .sub {
        display: block;
        font-size: .84rem;
        color: var(--muted);
        line-height: 1.45;
        margin-top: 0;
    }
    /* Page-head: Aktionszeile volle Breite, Touch-Ziele ≥44px */
    .page-head > .btn-row,
    .page-head > .scope-switch,
    .page-head > .abook-dd,
    .page-head > a.btn,
    .page-head > form {
        flex: 1 1 100%;
        width: 100%;
    }
    .page-head > .btn-row {
        justify-content: flex-start;
        gap: 8px;
    }
    .page-head > .scope-switch .scope-opt {
        flex: 1;
        justify-content: center;
        min-height: 44px;
    }
    .page-head > .abook-dd {
        max-width: none;
    }
    .page-head > .abook-dd .abook-dd__trigger {
        width: 100%;
        min-height: 44px;
    }
    .page-head > .abook-dd .abook-dd__menu.export-menu {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    .page-head > .abook-dd .abook-dd__current {
        max-width: none;
    }
    .page-head > .btn-row .btn,
    .page-head > .btn-row a.btn,
    .page-head > .btn-row button.btn,
    .page-head > .btn,
    .page-head > a.btn,
    .page-head > form .btn,
    .page-head > .cal-toolbar .btn {
        min-height: 44px;
        padding: 10px 14px;
    }
    .page-head > .btn-row .btn-icon-only,
    .page-head > .btn-row .btn-icon,
    .page-head > .btn-row .export-wrap .btn,
    .page-head > .btn-row .dash-quick-toggle,
    .page-head > .cal-toolbar .btn-icon-only {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    /* Globale Touch-Ziele */
    .btn,
    .btn-sm,
    .scope-switch .scope-opt,
    .nav-link,
    .nav-sublink,
    .nav-group-toggle,
    .export-menu__item,
    .verify-banner .btn,
    .trial-banner .btn,
    .mail-setup-banner .btn,
    .gig-card__actions .btn,
    .list-toolbar .btn,
    .filter-actions .btn {
        min-height: 44px;
    }
    .btn-sm { padding: 10px 14px; }
    .btn-icon-only,
    .btn-icon,
    .export-wrap [data-export-toggle].btn-icon-only,
    .export-wrap [data-export-toggle].btn:not(.btn-sm) {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
    }
    .icon-btn { width: 44px; height: 44px; }
    .topbar-switch select { min-height: 44px; padding: 8px 10px; }
    .topbar-search-wrap,
    .topbar-quick-wrap,
    .topbar-user-wrap {
        width: 44px;
        height: 44px;
    }
    .topbar-search-wrap.is-open { width: auto; }
    button.topbar-user {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .topbar-right .topbar-search-open,
    .topbar-right .topbar-quick-toggle,
    .topbar-right .topbar-tour-btn,
    .btn.btn-ghost.topbar-search-open,
    .btn.btn-ghost.topbar-quick-toggle,
    .btn.btn-ghost.topbar-tour-btn,
    button.btn.btn-ghost.topbar-search-open,
    button.btn.btn-ghost.topbar-quick-toggle,
    button.btn.btn-ghost.topbar-tour-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        gap: 0;
    }
    .subnav {
        scrollbar-width: none;
        height: 42px;
        margin-left: -2px;
        margin-right: -2px;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-padding-inline: 8px;
    }
    .subnav::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .subnav-link { padding: 0 12px; height: 42px; min-height: 0; font-size: .86rem; }
    .settings-subnav.subnav { margin-bottom: 14px; }
    .verify-banner,
    .trial-banner,
    .mail-setup-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .verify-banner form,
    .trial-banner .btn,
    .mail-setup-banner .btn-row,
    .mail-setup-banner .btn {
        width: 100%;
    }
    .verify-banner .btn,
    .trial-banner .btn,
    .mail-setup-banner .btn {
        justify-content: center;
    }
    .panel .btn-row .btn { min-height: 44px; }
    .settings-hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    :root {
        --control-height-md: 44px;
        --control-height-sm: 36px;
        --control-textarea-min-height: 96px;
    }
    .form-control,
    input[type=text], input[type=email], input[type=password], input[type=url], input[type=number],
    input[type=date], input[type=time], input[type=search], input[type=tel], select, textarea {
        font-size: 16px; /* iOS-Zoom bei Fokus vermeiden */
    }
    .topbar-search-wrap.is-open .topbar-search-form {
        width: min(260px, calc(100vw - 140px));
    }
    .topbar-row:has(.topbar-search-wrap.is-open) .topbar-search-wrap {
        position: absolute;
        right: 0;
        z-index: 30;
    }
    .topbar-row:has(.topbar-search-wrap.is-open) .topbar-search-wrap.is-open .topbar-search-form {
        width: min(320px, calc(100vw - 72px));
    }
    .topbar-search-form input[type=search] {
        min-height: 44px;
        font-size: 16px;
    }
    .row { flex-direction: column; align-items: stretch; }
    .row > .btn, .row > button.btn { width: 100%; justify-content: center; }
    .gig-card__actions .btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
    .gig-card__actions .btn:only-child { flex: 1 1 100%; }
    .kanban-col { flex: 0 0 min(85vw, 280px); }
}
@media (max-width: 480px) {
    .page-head h1 { font-size: 1.35rem; }
    .grid-5 { grid-template-columns: 1fr; }
}

/* ---- UI/UX Pass 2 — 2026-07-14 ---- */
.camp-progress { min-width: 160px; }
@media (max-width: 900px) {
    .table-wrap > table.table-cards .camp-progress { min-width: 0; }
    .table-wrap > table.table-cards .camp-progress .progress { width: 100%; max-width: 100%; }
    .table-wrap > table.table-cards tbody td.table-card-actions > a.btn,
    .table-wrap > table.table-cards tbody td.table-card-actions > form {
        display: block; width: 100%; margin: 0 !important;
    }
    .subnav {
        scrollbar-width: none;
        height: 42px;
        margin-left: -2px;
        margin-right: -2px;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-padding-inline: 8px;
    }
    .subnav::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .share-band__btn {
        width: 44px;
        height: 44px;
    }
    .share-band__dismiss .btn {
        min-width: 44px;
        min-height: 44px;
        padding-inline: 10px;
    }
    .share-band__url input {
        min-height: 44px;
        font-size: 16px;
    }
}
@media (max-width: 640px) {
    .field-shell > :is(input, select, textarea) { font-size: 16px; }
}
html[data-theme="light"] .form-control:focus,
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
    box-shadow: var(--focus-ring);
}
html[data-theme="light"] .field-shell:focus-within {
    border-color: rgba(255, 61, 182, .32);
    box-shadow: 0 0 0 1px rgba(255, 61, 182, .12), 0 0 0 3px rgba(54, 224, 255, .16);
}
html[data-theme="light"] .trial-banner {
    color: var(--text);
    background: rgba(255, 61, 182, .08);
}
html[data-theme="light"] .verify-banner {
    border-color: rgba(54, 224, 255, .35);
}
html[data-theme="light"] .mail-setup-banner {
    color: var(--text);
    background: rgba(54, 224, 255, .08);
}
.panel > p.muted:only-child {
    padding: 8px 0 4px;
    line-height: 1.5;
}

/* ---- Foto-Alben Admin (/tracks) ---- */
.photo-albums-layout{display:grid;grid-template-columns:minmax(220px,280px) 1fr;gap:16px;align-items:start}
@media(max-width:900px){.photo-albums-layout{grid-template-columns:1fr}}
.photo-albums-sidebar{padding:14px 16px}
.photo-albums-sidebar__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.photo-album-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.photo-album-list__item{border:1px solid var(--border);border-radius:10px;background:var(--panel-2);transition:border-color .2s,opacity .2s}
.photo-album-list__item.is-active{border-color:var(--primary);box-shadow:0 0 0 1px color-mix(in srgb,var(--primary) 35%,transparent)}
.photo-album-list__item.dragging{opacity:.45}
.photo-album-list__link{display:flex;align-items:center;gap:10px;padding:8px 10px;color:inherit;text-decoration:none}
.photo-album-list__thumb{width:44px;height:44px;border-radius:8px;object-fit:cover;border:1px solid var(--border);flex:0 0 auto}
.photo-album-list__thumb--empty{display:grid;place-items:center;background:var(--panel);font-size:1.1rem}
.photo-album-list__meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.photo-album-list__meta strong{font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-album-list__meta small{color:var(--muted);font-size:.78rem}
.photo-album-create{margin-top:14px;border-top:1px solid var(--border);padding-top:12px}
.photo-album-create__form{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.photo-album-editor__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.photo-album-edit{margin-top:10px}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-top:16px}
.photo-grid__item{position:relative;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--panel-2)}
.photo-grid__item.dragging{opacity:.45}
.photo-grid__item img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.photo-grid__cover{position:absolute;top:8px;left:8px;background:rgba(0,0,0,.62);color:#fff;font-size:.68rem;font-weight:700;padding:3px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.04em}
.photo-grid__actions{position:absolute;inset:auto 0 0 0;display:flex;flex-wrap:wrap;gap:4px;padding:6px;background:linear-gradient(to top,rgba(0,0,0,.72),transparent)}
.photo-grid__actions .btn,.photo-grid__actions select{font-size:.72rem;padding:4px 6px;min-height:28px}
.photo-grid__actions select{max-width:110px;border-radius:6px;border:1px solid var(--border);background:var(--panel);color:var(--text)}

/* EPK Foto-Alben (öffentlich, auch klassische demos.php) */
.epk-album-gallery{margin:48px auto 0}
.epk-album-gallery .epk-albums,.epk-albums[data-epk-albums]{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:14px;margin-top:8px}
.epk-album-card{display:flex;flex-direction:column;text-align:left;padding:0;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--panel);cursor:pointer;color:inherit;font:inherit;transition:border-color .25s,transform .25s,box-shadow .25s}
.epk-album-card:hover,.epk-album-card:focus-visible{border-color:var(--primary);transform:translateY(-3px);box-shadow:0 14px 40px rgba(0,0,0,.22);outline:none}
.epk-album-card__img{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--panel-2)}
.epk-album-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.epk-album-card:hover .epk-album-card__img img{transform:scale(1.06)}
.epk-album-card__body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;min-width:0}
.epk-album-card__title{font-weight:700;font-size:1.05rem;line-height:1.25}
.epk-album-card__desc{font-size:.88rem;color:var(--muted);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.epk-album-card__count{font-size:.78rem;color:var(--primary);font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin-top:4px}
.epk-album-panel{margin-top:10px}
.epk-album-panel__head{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 18px;margin-bottom:16px}
.epk-album-back{flex:0 0 auto;border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:999px;padding:8px 14px;font:inherit;font-size:.88rem;cursor:pointer}
.epk-album-back:hover{border-color:var(--primary)}
.epk-album-panel__title{font-size:clamp(1.2rem,3vw,1.65rem);margin:0 0 4px;font-weight:700}
.epk-album-panel__desc{margin:0;color:var(--muted);font-size:.95rem;max-width:52ch}
.epk-ggrid{columns:3 200px;column-gap:12px}
.epk-gitem{display:block;width:100%;margin:0 0 12px;padding:0;border:0;border-radius:12px;overflow:hidden;cursor:pointer;background:var(--panel);break-inside:avoid;line-height:0}
.epk-gitem img{width:100%;height:auto;display:block;transition:transform .45s cubic-bezier(.16,1,.3,1)}
.epk-gitem:hover img{transform:scale(1.05)}
.epk-lightbox{position:fixed;inset:0;z-index:200;background:rgba(4,6,12,.94);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:1fr auto;align-items:center;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.epk-lightbox[hidden]{display:none!important}
.epk-lightbox__frame{grid-column:2;grid-row:1;margin:0;padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:100svh}
.epk-lightbox__frame img{max-width:min(100vw - 24px,1200px);max-height:min(78svh,900px);width:auto;height:auto;object-fit:contain;border-radius:8px;user-select:none}
.epk-lightbox__frame figcaption{margin-top:10px;color:rgba(255,255,255,.78);font-size:.9rem;text-align:center}
.epk-lightbox__close{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:1.6rem;line-height:1;cursor:pointer;z-index:2}
.epk-lightbox__nav{align-self:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:1.8rem;line-height:1;cursor:pointer}
@media(max-width:640px){
  .epk-lightbox{grid-template-columns:1fr;grid-template-rows:auto 1fr auto}
  .epk-lightbox__frame{grid-column:1;grid-row:2}
  .epk-lightbox__prev,.epk-lightbox__next{grid-row:3;position:fixed;bottom:max(18px,env(safe-area-inset-bottom));z-index:3;background:rgba(0,0,0,.45);backdrop-filter:blur(8px)}
  .epk-lightbox__prev{left:16px}
  .epk-lightbox__next{right:16px}
}

/* ---- Statistik-Seite (.stats-*) ---- */
.stats-head{margin-bottom:12px}
.stats-kpi{margin-bottom:14px}
.stats-panel[id]{scroll-margin-top:96px}
.stats-kpi .kpi{text-decoration:none}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.stats-grid--hero{margin-top:2px}
.stats-panel{margin:0 0 14px}
.stats-grid > .stats-panel{margin:0}
.stats-h4{margin:0 0 10px;font-size:.92rem;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600}
.stats-funnel{display:flex;flex-direction:column;gap:12px;margin-top:4px}
.stats-funnel-meta{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:.88rem;margin-bottom:5px}
.stats-funnel-vals{display:inline-flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums}
.stats-conv{font-family:var(--font-mono);font-size:.72rem;color:var(--accent);opacity:.9}
.stats-funnel-bar{height:9px}
.stats-pipe-layout{display:grid;grid-template-columns:140px 1fr;gap:18px;align-items:center;margin-top:6px}
.stats-donut{width:130px;justify-self:center}
.stats-donut-svg{width:100%;height:auto;display:block}
.stats-donut-seg{transition:opacity .2s}
.stats-donut-num{fill:var(--text);font-family:var(--font-mono);font-size:11px;font-weight:700}
.stats-donut-lbl{fill:var(--muted);font-family:var(--font-mono);font-size:6px;letter-spacing:.12em;text-transform:uppercase}
.stats-pipe-list{min-width:0}
.stats-bars{display:flex;align-items:flex-end;gap:5px;height:140px;margin-top:8px}
.stats-bars--inbox{height:90px}
.stats-bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0;gap:4px}
.stats-bar{
  width:100%;height:var(--h,2%);min-height:3px;border-radius:5px 5px 0 0;
  background:var(--grad-primary);opacity:.88;position:relative;
  transition:opacity .15s,filter .15s;
}
.stats-bar-col:hover .stats-bar{opacity:1;filter:brightness(1.08)}
.stats-bar--inbox{background:linear-gradient(180deg,var(--accent),var(--purple))}
.stats-bar-val{
  position:absolute;top:-16px;left:50%;transform:translateX(-50%);
  font-family:var(--font-mono);font-size:.62rem;color:var(--muted);white-space:nowrap;
  opacity:0;transition:opacity .15s;pointer-events:none;
}
.stats-bar-col:hover .stats-bar-val{opacity:1}
.stats-bar-x{font-family:var(--font-mono);font-size:.62rem;color:var(--muted);letter-spacing:.02em;line-height:1}
.stats-bar-x--hide{visibility:hidden}
.stats-legend{display:flex;flex-wrap:wrap;gap:10px 14px;font-size:.75rem;color:var(--muted)}
.stats-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:middle}
.stats-dot--cyan{background:var(--accent)}
.stats-dot--pink{background:var(--primary)}
.stats-dot--ok{background:var(--ok)}
.stats-rates{display:flex;align-items:flex-end;gap:8px;height:160px;margin-top:10px}
.stats-rate-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;height:100%}
.stats-rate-bars{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px;min-height:0}
.stats-rate-contact,.stats-rate-reply,.stats-rate-book{
  width:28%;min-height:2px;border-radius:4px 4px 0 0;height:var(--h,2%);
}
.stats-rate-contact{background:rgba(54,224,255,.45)}
.stats-rate-reply{background:rgba(255,61,182,.7)}
.stats-rate-book{background:rgba(69,211,155,.75)}
.stats-rate-lbl{font-family:var(--font-mono);font-size:.68rem;color:var(--muted)}
.stats-rate-meta{font-family:var(--font-mono);font-size:.62rem;color:var(--text);opacity:.75}
.stats-epk-kpis{margin-top:4px}
.stats-epk-spark{margin-top:16px;padding:14px;border:1px solid rgba(54,224,255,.12);border-radius:12px;background:rgba(54,224,255,.03)}
.stats-epk-spark-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;font-size:.84rem}
.stats-epk-spark-head strong{font-family:var(--font-mono);color:var(--accent);font-variant-numeric:tabular-nums}
.stats-sparkline{display:flex;align-items:flex-end;gap:2px;height:72px}
.stats-spark-bar{
  flex:1;height:var(--h,2%);min-height:2px;border-radius:2px 2px 0 0;
  background:linear-gradient(180deg,var(--accent),rgba(255,61,182,.55));opacity:.85;
}
.stats-spark-bar:hover{opacity:1}
.stats-source-list{display:flex;flex-direction:column;gap:10px}
.stats-source-meta{display:flex;justify-content:space-between;gap:10px;font-size:.84rem;margin-bottom:4px}
.stats-region-list{display:flex;flex-direction:column;gap:12px}
.stats-region-meta{display:flex;justify-content:space-between;gap:10px;font-size:.86rem;margin-bottom:5px;flex-wrap:wrap}
.stats-region-bars{position:relative;height:8px;background:var(--panel-2);border-radius:99px;overflow:hidden}
.stats-region-c,.stats-region-r{position:absolute;left:0;top:0;bottom:0;border-radius:99px}
.stats-region-c{background:rgba(54,224,255,.28)}
.stats-region-r{background:var(--grad-primary)}
.stats-more{margin-top:12px}
.stats-more summary{cursor:pointer;font-size:.84rem;color:var(--muted);font-family:var(--font-mono)}
.stats-more summary:hover{color:var(--accent)}
.stats-track-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stats-track-card{padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--panel-2)}
.stats-track-num{font-family:var(--font-mono);font-size:1.7rem;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.stats-inbox-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:4px}
.stats-inbox-kpis > div{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2)}
.stats-inbox-kpis strong{font-family:var(--font-mono);font-size:1.15rem;font-variant-numeric:tabular-nums}
.stats-inbox-kpis .muted{font-size:.72rem;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.06em}
.stats-gig-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.stats-gig-card{padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--panel-2)}
.stats-gig-card--fee{grid-column:span 1;background:linear-gradient(155deg,rgba(69,211,155,.08),transparent 60%),var(--panel-2)}
.stats-gig-num{font-family:var(--font-mono);font-size:1.35rem;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
@media(max-width:900px){
  .stats-grid,.stats-grid--hero{grid-template-columns:1fr}
  .stats-pipe-layout{grid-template-columns:1fr}
  .stats-donut{width:120px}
  .stats-gig-row{grid-template-columns:repeat(2,1fr)}
  .stats-gig-card--fee{grid-column:span 2}
  .stats-track-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .stats-bars{height:110px;gap:3px}
  .stats-rates{height:130px;gap:5px}
  .stats-bar-val{display:none}
  .stats-inbox-kpis{grid-template-columns:1fr}
  .stats-gig-row{grid-template-columns:1fr}
  .stats-gig-card--fee{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){
  .stats-bar,.stats-spark-bar{transition:none}
}

/* ---- CSS Tooltips (data-tooltip) ----
   Einheitliche Hover-/Fokus-Kästchen statt nativer title-Tooltips.
   Nutzung: data-tooltip="Text" + aria-label (a11y). Kein title= setzen.
   Optional: data-tooltip-pos="top" | data-tooltip-align="end"
   Immer dunkel (CI), verzögert, hoher z-index (über Topbar/Content). */
[data-tooltip]:not([data-tooltip=""]) {
    position: relative;
}
/* Host anheben, damit ::after/::before nicht unter Nachbarn verschwinden. */
@media (hover: hover) and (pointer: fine) {
    [data-tooltip]:not([data-tooltip=""]):hover {
        z-index: 2400;
    }
}
[data-tooltip]:not([data-tooltip=""]):focus-visible {
    z-index: 2400;
}
.topbar-right,
.topbar-quick-wrap,
.topbar-user-wrap,
.topbar-search-wrap,
.venues-topbar__actions,
.venues-meta-row,
.export-wrap {
    overflow: visible;
}
[data-tooltip]:not([data-tooltip=""])::after,
[data-tooltip]:not([data-tooltip=""])::before {
    position: absolute;
    z-index: 2410;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .14s var(--ease),
        transform .14s var(--ease),
        visibility 0s linear .14s;
}
[data-tooltip]:not([data-tooltip=""])::after {
    content: attr(data-tooltip);
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-4px);
    max-width: min(240px, 78vw);
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(233, 236, 246, 0.16);
    background: #0c0e16;
    color: #edf0f7;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .01em;
    text-align: center;
    white-space: normal;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(54, 224, 255, 0.06);
}
/* Pfeil (Caret) */
[data-tooltip]:not([data-tooltip=""])::before {
    content: '';
    left: 50%;
    top: calc(100% + 4px);
    width: 8px;
    height: 8px;
    margin-left: -4px;
    background: #0c0e16;
    border-left: 1px solid rgba(233, 236, 246, 0.16);
    border-top: 1px solid rgba(233, 236, 246, 0.16);
    transform: rotate(45deg) translateY(-4px);
}
[data-tooltip-pos="top"]:not([data-tooltip=""])::after {
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
}
[data-tooltip-pos="top"]:not([data-tooltip=""])::before {
    top: auto;
    bottom: calc(100% + 4px);
    border-left: 0;
    border-top: 0;
    border-right: 1px solid rgba(233, 236, 246, 0.16);
    border-bottom: 1px solid rgba(233, 236, 246, 0.16);
    transform: rotate(45deg) translateY(4px);
}
[data-tooltip-align="end"]:not([data-tooltip=""])::after,
.topbar-right [data-tooltip]:not([data-tooltip=""])::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-4px);
}
[data-tooltip-align="end"]:not([data-tooltip=""])::before,
.topbar-right [data-tooltip]:not([data-tooltip=""])::before {
    left: auto;
    right: 12px;
    margin-left: 0;
}
.topbar-right [data-tooltip-pos="top"]:not([data-tooltip=""])::after,
[data-tooltip-align="end"][data-tooltip-pos="top"]:not([data-tooltip=""])::after {
    transform: translateX(0) translateY(4px);
}
/* Absolute/fixed Hosts behalten ihre Position (Tooltip-CSS setzt sonst relative). */
.slider-nav[data-tooltip],
.epk-lightbox__close[data-tooltip] {
    position: absolute;
}
/* Designer-Slider: Grid-Tracks statt absolute; Tooltip darf relative bleiben. */
.dsgn-lays-nav[data-tooltip] {
    position: relative;
}
.ev-modal__x[data-tooltip] {
    position: absolute;
}
@media (max-width: 640px) {
    .epk-lightbox__prev[data-tooltip],
    .epk-lightbox__next[data-tooltip] {
        position: fixed;
    }
}
/* Desktop-Hover mit Verzögerung; Touch: kein dauerhaftes Hover-Tooltip */
@media (hover: hover) and (pointer: fine) {
    [data-tooltip]:not([data-tooltip=""]):hover::after,
    [data-tooltip]:not([data-tooltip=""]):hover::before {
        opacity: 1;
        visibility: visible;
        transition-delay: .34s, .34s, .34s;
    }
    [data-tooltip]:not([data-tooltip=""]):hover::after {
        transform: translateX(-50%) translateY(0);
    }
    [data-tooltip]:not([data-tooltip=""]):hover::before {
        transform: rotate(45deg) translateY(0);
    }
    [data-tooltip-pos="top"]:not([data-tooltip=""]):hover::after {
        transform: translateX(-50%) translateY(0);
    }
    [data-tooltip-pos="top"]:not([data-tooltip=""]):hover::before {
        transform: rotate(45deg) translateY(0);
    }
    .topbar-right [data-tooltip]:not([data-tooltip=""]):hover::after,
    [data-tooltip-align="end"]:not([data-tooltip=""]):hover::after {
        transform: translateX(0) translateY(0);
    }
}
/* Tastatur-Fokus: schnell sichtbar (auch ohne Hover-Medien) */
[data-tooltip]:not([data-tooltip=""]):focus-visible::after,
[data-tooltip]:not([data-tooltip=""]):focus-visible::before {
    opacity: 1;
    visibility: visible;
    transition-delay: .06s, .06s, .06s;
}
[data-tooltip]:not([data-tooltip=""]):focus-visible::after {
    transform: translateX(-50%) translateY(0);
}
[data-tooltip]:not([data-tooltip=""]):focus-visible::before {
    transform: rotate(45deg) translateY(0);
}
[data-tooltip-pos="top"]:not([data-tooltip=""]):focus-visible::after {
    transform: translateX(-50%) translateY(0);
}
[data-tooltip-pos="top"]:not([data-tooltip=""]):focus-visible::before {
    transform: rotate(45deg) translateY(0);
}
.topbar-right [data-tooltip]:not([data-tooltip=""]):focus-visible::after,
[data-tooltip-align="end"]:not([data-tooltip=""]):focus-visible::after {
    transform: translateX(0) translateY(0);
}
/* Offen: kein Tooltip über Dropdown/Suche */
[data-tooltip][aria-expanded="true"]::after,
[data-tooltip][aria-expanded="true"]::before,
[data-tooltip].is-open::after,
[data-tooltip].is-open::before,
.topbar-search-wrap.is-open .topbar-search-open[data-tooltip]::after,
.topbar-search-wrap.is-open .topbar-search-open[data-tooltip]::before {
    opacity: 0 !important;
    visibility: hidden !important;
    transition-delay: 0s !important;
}
/* Hover-Label-Buttons erweitern sich selbst – kein Parallel-Tooltip */
.btn-hover-label[data-tooltip]::after,
.btn-hover-label[data-tooltip]::before {
    content: none !important;
    display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    [data-tooltip]:not([data-tooltip=""])::after,
    [data-tooltip]:not([data-tooltip=""])::before {
        transition: none;
    }
}

/* Touch: Tooltip per Tap halten (UX-096) */
@media (hover: none) {
    [data-tooltip].is-tip-open::after,
    [data-tooltip].is-tip-open::before {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -6px);
        pointer-events: none;
    }
    [data-tooltip-pos="top"].is-tip-open::after {
        transform: translate(-50%, 6px);
    }
}

.photo-dropzone {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 180px; padding: 24px; border: 2px dashed var(--border-strong); border-radius: var(--radius);
    background: var(--panel-2, var(--bg-soft)); cursor: pointer; text-align: center;
}
.photo-dropzone:hover, .photo-dropzone:focus-within, .photo-dropzone.is-drag { border-color: var(--accent); }
.photo-dropzone__icon { font-size: 1.8rem; }
.photo-upload-inline input[type="file"]#photo-drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cal-num--gigs { color: var(--accent); font-weight: 700; text-decoration: none; }
.cal-num--gigs:hover { text-decoration: underline; }
.setlist-dur--warn { color: var(--warn, #e9c275); }
.setlist-dur--bad { color: var(--err); }
.camp-progress-seg { display: flex; padding: 0; height: 14px; }
.camp-progress-seg .camp-seg { display: block; height: 100%; min-width: 4px; border: none; padding: 0; cursor: pointer; }
.camp-progress-seg .camp-seg.is-on { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 1; position: relative; }
.camp-seg--sent { background: var(--ok); }
.camp-seg--fail { background: var(--err); }
.camp-seg--pend { background: var(--accent); opacity: .55; }
.compose-ph-grid { display: grid; grid-template-columns: 1fr minmax(140px, 180px); gap: 12px; }
@media (max-width: 720px) { .compose-ph-grid { grid-template-columns: 1fr; } }
.compose-ph-panel { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2, var(--bg-soft)); }
.compose-ph-panel .btn { justify-content: flex-start; text-align: left; }
.pwa-install-tip {
    position: fixed; left: 16px; right: 16px; bottom: 72px; z-index: 1200; max-width: 360px; margin: 0 auto;
    background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.badge--epk { border-color: rgba(255, 61, 182, 0.45); color: #ff9ad4; }

/* UX-053 Gig-Wizard + UX-070 Share */
.gig-wizard-steps { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.gig-wizard-step {
    appearance:none; border:1px solid var(--border); background:var(--panel-2, var(--bg-soft));
    color:var(--muted); border-radius:999px; padding:6px 12px; font:inherit; font-size:.82rem; cursor:pointer;
}
.gig-wizard-step.is-on { color:var(--text); border-color:var(--accent); background:rgba(54,224,255,.08); font-weight:600; }
.epk-share { position:relative; }
.epk-share > summary { list-style:none; cursor:pointer; }
.epk-share > summary::-webkit-details-marker { display:none; }
.epk-share__panel {
    position:absolute; top:calc(100% + 6px); right:0; z-index:20;
    display:flex; flex-direction:column; gap:6px; min-width:180px;
    padding:10px; border:1px solid var(--border-strong); border-radius:var(--radius);
    background:var(--panel); box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.map-legend-bar { font-size:.82rem; color:var(--muted); }

/* UX-080 Admin-Newsletter Mobile */
.nl-compose__html {
    width: 100%;
    font-family: var(--font-mono);
    font-size: .82rem;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .nl-compose__tiles { grid-template-columns: 1fr !important; }
    .nl-compose__html { font-size: 16px; min-height: 240px; }
    .nl-compose .row { flex-direction: column; align-items: stretch !important; }
    .nl-compose .btn-row { position: sticky; bottom: 0; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 2; }
}

/* UX-069 Layout-Vergleich */
.dsgn-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.dsgn-compare-grid select { width: 100%; margin: 4px 0 8px; }
.dsgn-compare-thumb {
    display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--panel-2);
}
@media (max-width: 900px) {
    .dsgn-compare { display: none; }
}

/* UX-099 Onboarding-Video */
.dash-onboarding-video__frame {
    position: relative; width: 100%; max-width: 560px;
    aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); background: #000;
}
.dash-onboarding-video__frame iframe,
.dash-onboarding-video__frame video {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
