/* =====================================================================
   Band Management Dashboard – Oberflächen-Design
   Basis: Bootstrap 5.3, heller SaaS-Stil mit dezentem Indigo-Akzent
   ===================================================================== */

:root {
    --app-sidebar-width: 260px;
    --app-topbar-height: 64px;
    --app-bg: #f5f6fa;
    --app-surface: #ffffff;
    --app-border: #e6e8ef;
    --app-text: #2e2e2e;
    --app-muted: #6b7280;
    --app-accent: #cb0101;
    --app-accent-rgb: 203, 1, 1;
    --app-accent-soft: rgba(203, 1, 1, .08);
    --app-radius: 14px;

    --bs-primary: #cb0101;
    --bs-primary-rgb: 203, 1, 1;
    --bs-link-color: #cb0101;
    --bs-link-color-rgb: 203, 1, 1;
    --bs-link-hover-color: #ad0002;
    --bs-link-hover-color-rgb: 173, 0, 2;
    --bs-body-font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-size: .9375rem;
    --bs-body-color: var(--app-text);
    --bs-border-color: var(--app-border);
}

body {
    background: var(--app-bg);
    color: var(--app-text);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .page-link:hover, .list-group-item:hover { text-decoration: none; }

/* ----- OneWay-Branding ----------------------------------------------- */
@font-face {
    font-family: "Outfit";
    src: url("../brand/outfit-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --bs-primary-bg-subtle: #fdecec;
    --bs-primary-border-subtle: #f1b0b0;
    --bs-primary-text-emphasis: #8f0002;
    --bs-focus-ring-color: rgba(203, 1, 1, .2);
}
.form-check-input:checked { background-color: var(--app-accent); border-color: var(--app-accent); }
.form-check-input:focus { border-color: #e88080; box-shadow: 0 0 0 .2rem rgba(203, 1, 1, .15); }
.form-switch .form-check-input:focus:not(:checked) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23e88080'/%3e%3c/svg%3e"); }
.pagination {
    --bs-pagination-color: var(--app-accent);
    --bs-pagination-hover-color: #ad0002;
    --bs-pagination-active-bg: var(--app-accent);
    --bs-pagination-active-border-color: var(--app-accent);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(203, 1, 1, .15);
}
.brand-bar { height: 4px; background: #ad0002; }
@media (min-width: 992px) {
    .app-sidebar.brand-top { border-top: 4px solid #ad0002; }
    /* Bootstrap blendet den Offcanvas-Header ab lg aus – Markenbereich trotzdem zeigen */
    .app-sidebar .offcanvas-header { display: flex; }
}
.brand-name { font-size: .95rem; font-weight: 600; color: #6b7280; }
.auth-card { border-top: 4px solid #cb0101; }
h1, h2, h3, .page-header h1, .stat-value { letter-spacing: -.01em; }

/* ----- Buttons -------------------------------------------------------- */
.btn { border-radius: 9px; font-weight: 500; }
.btn-primary {
    --bs-btn-bg: #cb0101; --bs-btn-border-color: #cb0101;
    --bs-btn-hover-bg: #ad0002; --bs-btn-hover-border-color: #ad0002;
    --bs-btn-active-bg: #8f0002; --bs-btn-active-border-color: #8f0002;
    --bs-btn-disabled-bg: #cb0101; --bs-btn-disabled-border-color: #cb0101;
    --bs-btn-focus-shadow-rgb: 203, 1, 1;
}
.btn-outline-primary {
    --bs-btn-color: #cb0101; --bs-btn-border-color: #f1b0b0;
    --bs-btn-hover-bg: #cb0101; --bs-btn-hover-border-color: #cb0101;
    --bs-btn-active-bg: #ad0002; --bs-btn-active-border-color: #ad0002;
}
.btn-light {
    --bs-btn-bg: #fff; --bs-btn-border-color: var(--app-border);
    --bs-btn-hover-bg: #f3f4f6; --bs-btn-hover-border-color: #d9dce5;
    --bs-btn-active-bg: #eceef3;
}
.btn-icon {
    width: 38px; height: 38px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; border: 1px solid transparent; color: var(--app-muted);
}
.btn-icon:hover { background: #f1f2f6; color: var(--app-text); }
.btn-group .btn.active { background: var(--app-accent-soft); color: var(--app-accent); border-color: #f1b0b0; }

/* ----- Layout --------------------------------------------------------- */
.app-sidebar {
    background: var(--app-surface);
    border-right: 1px solid var(--app-border);
    --bs-offcanvas-width: 280px;
}
.app-sidebar .offcanvas-body { overflow-y: auto; }

@media (min-width: 992px) {
    .app-sidebar {
        position: fixed; inset: 0 auto 0 0;
        width: var(--app-sidebar-width);
        display: flex; flex-direction: column;
        z-index: 1030;
    }
    .app-main { margin-left: var(--app-sidebar-width); }
}

.sidebar-brand { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--app-border); min-height: var(--app-topbar-height); }
.brand-link { display: flex; align-items: center; gap: .7rem; color: var(--app-text); font-weight: 700; font-size: 1.05rem; }
.brand-link:hover { text-decoration: none; color: var(--app-text); }
.brand-logo { height: 42px; width: auto; flex-shrink: 0; }
.brand-logo-lg { height: 110px; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-nav { padding: .75rem; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav .nav-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .55rem .75rem; border-radius: 9px;
    color: #4b5563; font-weight: 500;
}
.sidebar-nav .nav-link i { font-size: 1.05rem; color: #9ca3af; width: 1.2rem; text-align: center; }
.sidebar-nav .nav-link:hover { background: #f4f5f8; color: var(--app-text); }
.sidebar-nav .nav-link.active { background: var(--app-accent-soft); color: var(--app-accent); }
.sidebar-nav .nav-link.active i { color: var(--app-accent); }
.sidebar-heading {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
    color: #9ca3af; font-weight: 600; padding: 1.1rem .75rem .4rem;
}
.sidebar-footer { padding: 1rem 1.25rem; font-size: .8rem; color: #9ca3af; border-top: 1px solid var(--app-border); }

.app-topbar {
    position: sticky; top: 0; z-index: 1020;
    height: var(--app-topbar-height);
    display: flex; align-items: center; gap: .75rem;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--app-border);
}
.topbar-search { position: relative; align-items: center; width: 100%; max-width: 380px; }
.topbar-search i { position: absolute; left: .8rem; color: #9ca3af; pointer-events: none; }
.topbar-search .form-control { padding-left: 2.3rem; background: #f4f5f8; border-color: transparent; border-radius: 9px; }
.topbar-search .form-control:focus { background: #fff; border-color: #f1b0b0; }

.user-menu-toggle { display: flex; align-items: center; gap: .5rem; border: 0; padding: .25rem .5rem; border-radius: 10px; }
.user-menu-toggle:hover { background: #f4f5f8; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--app-accent-soft); color: var(--app-accent);
    font-weight: 700; font-size: .8rem;
}

.app-content { padding: 1.75rem 1.5rem 3rem; max-width: 1440px; }
@media (max-width: 575.98px) {
    .app-content { padding: 1.25rem .9rem 2.5rem; }
    .app-topbar { padding: 0 .9rem; }
}

/* ----- Seitenkopf ----------------------------------------------------- */
.page-header {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: flex-end; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.55rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.page-subtitle { color: var(--app-muted); margin: .25rem 0 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.breadcrumb { font-size: .825rem; margin-bottom: .35rem; --bs-breadcrumb-divider-color: #c0c4ce; }
.breadcrumb a { color: var(--app-muted); }

/* ----- Karten --------------------------------------------------------- */
.card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    --bs-card-cap-bg: transparent;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--app-border);
    font-weight: 600;
}
.card-header:first-child { border-radius: var(--app-radius) var(--app-radius) 0 0; }
.card-title-icon { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font-size: 1rem; font-weight: 600; }
.card-title-icon i { color: var(--app-accent); }
.card-body { padding: 1.25rem; }

/* Kennzahlen */
.stat-card { height: 100%; }
.stat-card .card-body { display: flex; gap: 1rem; align-items: flex-start; }
.stat-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.3rem;
}
.stat-label { color: var(--app-muted); font-size: .825rem; font-weight: 500; margin-bottom: .2rem; }
.stat-value { font-size: 1.65rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.stat-hint { font-size: .8rem; color: var(--app-muted); margin-top: .25rem; }
.stat-link { color: inherit; }
.stat-link:hover { text-decoration: none; }
.stat-link .card { transition: border-color .15s, box-shadow .15s, transform .15s; }
.stat-link:hover .card { border-color: #f1b0b0; box-shadow: 0 6px 18px rgba(16, 24, 40, .06); transform: translateY(-1px); }

.tone-brand   { background: #fdecec; color: #cb0101; }
.tone-green   { background: #ecfdf3; color: #16a34a; }
.tone-amber   { background: #fffbeb; color: #d97706; }
.tone-sky     { background: #f0f9ff; color: #0284c7; }
.tone-rose    { background: #fff1f2; color: #e11d48; }
.tone-slate   { background: #f1f5f9; color: #475569; }

.highlight-card {
    background: linear-gradient(135deg, #cb0101 0%, #6e0001 100%);
    color: #fff; border: 0;
}
.highlight-card .text-muted-light { color: rgba(255, 255, 255, .75); }
.highlight-card a { color: #fff; }

/* ----- Tabellen ------------------------------------------------------- */
.table-modern { margin: 0; --bs-table-hover-bg: #f9fafb; }
.table-modern > thead > tr > th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--app-muted); font-weight: 600;
    background: #f9fafb;
    border-bottom: 1px solid var(--app-border);
    padding: .7rem 1rem; white-space: nowrap;
}
.table-modern > tbody > tr > td { padding: .8rem 1rem; vertical-align: middle; border-color: #f0f1f5; }
.table-modern > tbody > tr:last-child > td { border-bottom: 0; }
.table-modern .row-link { color: var(--app-text); font-weight: 600; }
.table-modern .row-link:hover { color: var(--app-accent); }
.cell-sub { font-size: .8rem; color: var(--app-muted); }
.col-actions { width: 1%; white-space: nowrap; text-align: right; }

/* Datum-Kachel */
.date-chip {
    width: 50px; flex-shrink: 0; text-align: center;
    border: 1px solid var(--app-border); border-radius: 10px; overflow: hidden; background: #fff;
}
.date-chip .month { background: var(--app-accent); color: #fff; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 0; }
.date-chip .day { font-size: 1.15rem; font-weight: 700; line-height: 1.6; }
.date-chip.is-past .month { background: #9ca3af; }

/* Status */
.badge-status { font-weight: 600; font-size: .75rem; padding: .4em .7em; border-radius: 999px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Leere Zustände */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--app-muted); }
.empty-state .empty-icon {
    width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 1rem;
    display: grid; place-items: center; font-size: 1.7rem;
    background: var(--app-accent-soft); color: var(--app-accent);
}
.empty-state h3 { font-size: 1.05rem; color: var(--app-text); font-weight: 600; }

/* Detail-Listen */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem 1.5rem; margin: 0; }
.info-grid dt { font-size: .78rem; font-weight: 500; color: var(--app-muted); margin-bottom: .2rem; }
.info-grid dd { margin: 0; font-weight: 500; word-break: break-word; }
.info-grid .span-all { grid-column: 1 / -1; }
.info-list { margin: 0; }
.info-list .info-row { display: flex; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed #eceef3; }
.info-list .info-row:last-child { border-bottom: 0; }
.info-list .info-row i { color: #9ca3af; width: 1.1rem; }
.text-prewrap { white-space: pre-wrap; }
.min-w-0 { min-width: 0; }

/* ----- Formulare ------------------------------------------------------ */
.form-label { font-weight: 500; font-size: .85rem; margin-bottom: .35rem; color: #374151; }
.form-control, .form-select { border-radius: 9px; border-color: #dfe2ea; padding: .5rem .8rem; }
.form-control:focus, .form-select:focus { border-color: #e88080; box-shadow: 0 0 0 .2rem rgba(203, 1, 1, .12); }
.input-group-text { background: #f9fafb; border-color: #dfe2ea; color: var(--app-muted); }
.input-group > .form-control, .input-group > .btn, .input-group > .input-group-text { border-radius: 9px; }
.input-group > :not(:first-child):not(.dropdown-menu) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.form-section-title { font-size: .95rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.form-section-title i { color: var(--app-accent); }
.form-actions {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; justify-content: flex-end; gap: .5rem;
    padding: 1rem 0; margin-top: .5rem;
    background: linear-gradient(to top, var(--app-bg) 70%, rgba(245, 246, 250, 0));
}
.required::after { content: " *"; color: #dc2626; }
.code-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.55; min-height: 460px; }

/* Kacheln der Einstellungsübersicht */
.settings-tile { display: block; height: 100%; color: inherit; }
.settings-tile:hover { text-decoration: none; color: inherit; }
.settings-tile .card { height: 100%; transition: border-color .15s, box-shadow .15s, transform .15s; }
.settings-tile:hover .card, .settings-tile:focus-visible .card { border-color: #f1b0b0; box-shadow: 0 8px 22px rgba(16, 24, 40, .07); transform: translateY(-2px); }
.settings-tile .tile-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.5rem; background: var(--app-accent-soft); color: var(--app-accent);
}
.settings-tile h2 { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 .35rem; }
.settings-tile .tile-meta { font-size: .8rem; color: var(--app-muted); border-top: 1px dashed var(--app-border); padding-top: .75rem; margin-top: auto; }
.settings-tile .tile-arrow { color: var(--app-muted); transition: transform .15s, color .15s; }
.settings-tile:hover .tile-arrow { color: var(--app-accent); transform: translateX(3px); }

/* Durchsuchbares Auswahlfeld (select[data-searchable]) */
.search-select { position: relative; }
.search-select-native {
    position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
    opacity: 0; pointer-events: none;
}
.search-select-toggle {
    text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    background-color: #fff; width: 100%;
}
.search-select-toggle.is-placeholder { color: var(--app-muted); }
.search-select-toggle.is-invalid { border-color: var(--bs-form-invalid-border-color); }
.search-select.is-open .search-select-toggle { border-color: #e88080; box-shadow: 0 0 0 .2rem rgba(203, 1, 1, .12); }
.search-select-menu {
    display: none;
    position: absolute; top: calc(100% + 4px); left: 0;
    width: 100%; min-width: 280px;
    z-index: 1060;
    background: #fff; border: 1px solid var(--app-border); border-radius: 12px;
    padding: .5rem;
}
.search-select.is-open .search-select-menu { display: block; }
.search-select-list { max-height: 260px; overflow-y: auto; }
.search-select-item {
    display: block; width: 100%; text-align: left;
    border: 0; background: transparent; border-radius: 7px;
    padding: .4rem .6rem; font-size: .875rem; color: var(--app-text);
}
.search-select-item:hover { background: #f4f5f8; }
.search-select-item.active { background: var(--app-accent-soft); color: var(--app-accent); }
.search-select-item.is-pinned { font-weight: 600; color: var(--app-accent); border-bottom: 1px dashed var(--app-border); border-radius: 7px 7px 0 0; margin-bottom: .25rem; }
.filter-bar .search-select { max-width: 220px; width: 100%; }
@media (max-width: 575.98px) { .filter-bar .search-select { max-width: none; } }

/* Öffentliche Unterschriftsseite */
.public-body { background: var(--app-bg); }
.public-header { background: #fff; border-bottom: 1px solid var(--app-border); }
.signature-pad {
    position: relative; border: 1.5px dashed #c9cdd6; border-radius: 10px; background: #fff;
    touch-action: none; overflow: hidden;
}
.signature-pad canvas { display: block; cursor: crosshair; touch-action: none; }
.signature-pad.is-invalid { border-color: var(--bs-form-invalid-border-color); }
.signature-hint {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #9ca3af; font-size: .9rem; pointer-events: none;
}
.signature-pad::after {
    content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 2.25rem;
    border-bottom: 1px solid #e5e7eb; pointer-events: none;
}

/* Filterleiste */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--app-border); }
.filter-bar .form-control, .filter-bar .form-select { max-width: 220px; }
.filter-bar .search-input { max-width: 300px; min-width: 200px; flex: 1; }
@media (max-width: 575.98px) {
    .filter-bar .form-control, .filter-bar .form-select, .filter-bar .search-input { max-width: none; width: 100%; }
}

/* ----- Platzhalter-Referenz ------------------------------------------- */
.placeholder-list { max-height: 560px; overflow-y: auto; }
.placeholder-chip {
    display: flex; justify-content: space-between; gap: .5rem; align-items: center;
    width: 100%; text-align: left; border: 0; background: transparent;
    padding: .35rem .5rem; border-radius: 7px; font-size: .8rem;
}
.placeholder-chip:hover { background: var(--app-accent-soft); }
.placeholder-chip code { color: var(--app-accent); font-size: .78rem; }
.placeholder-chip span { color: var(--app-muted); text-align: right; }

/* ----- Dokumente ------------------------------------------------------ */
.doc-preview { width: 100%; height: 75vh; min-height: 480px; border: 1px solid var(--app-border); border-radius: 10px; background: #fff; }
.version-item { border-left: 3px solid transparent; }
.version-item.active { border-left-color: var(--app-accent); background: var(--app-accent-soft); }
.invoice-items td { vertical-align: top; }
.invoice-items .form-control { padding: .35rem .5rem; font-size: .875rem; }
.totals-table td { padding: .3rem 0; }
.totals-table .total-row td { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--app-border); padding-top: .6rem; }

/* ----- Kalender (FullCalendar) ----------------------------------------- */
.calendar-card .fc {
    --fc-border-color: var(--app-border);
    --fc-today-bg-color: rgba(203, 1, 1, .06);
    --fc-page-bg-color: #fff;
    --fc-neutral-bg-color: #f9fafb;
    --fc-button-bg-color: #fff;
    --fc-button-border-color: var(--app-border);
    --fc-button-text-color: #374151;
    --fc-button-hover-bg-color: #f3f4f6;
    --fc-button-hover-border-color: #d9dce5;
    --fc-button-active-bg-color: var(--app-accent);
    --fc-button-active-border-color: var(--app-accent);
    font-size: .875rem;
}
.calendar-card .fc .fc-button { border-radius: 8px; font-weight: 500; text-transform: none; box-shadow: none !important; padding: .35rem .75rem; }
.calendar-card .fc .fc-button-primary:not(:disabled).fc-button-active { color: #fff; }
.calendar-card .fc .fc-toolbar-title { font-size: 1.2rem; font-weight: 700; }
.calendar-card .fc .fc-col-header-cell-cushion { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--app-muted); font-weight: 600; padding: .6rem 0; }
.calendar-card .fc .fc-daygrid-day-number { color: #374151; font-weight: 500; }
.calendar-card .fc .fc-event { border-radius: 6px; padding: 1px 4px; cursor: pointer; font-weight: 500; }
.calendar-card .fc a { text-decoration: none; }
@media (max-width: 767.98px) {
    .calendar-card .fc .fc-toolbar { flex-direction: column; gap: .5rem; }
    .calendar-card .fc .fc-toolbar-title { font-size: 1.05rem; }
}
.calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--app-muted); }
.calendar-legend span { display: inline-flex; align-items: center; gap: .4rem; }

/* ----- Repertoire & Setlists ------------------------------------------ */
.song-id {
    display: inline-block; min-width: 3.2rem; padding: .1rem .45rem; border-radius: 6px;
    background: var(--app-accent-soft); color: var(--app-accent); font-weight: 600;
    font-variant-numeric: tabular-nums; text-align: center;
}
.song-id-input { font-weight: 600; font-variant-numeric: tabular-nums; }
.setlist-items { max-height: 62vh; overflow-y: auto; }
.setlist-item, .song-pick {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .9rem; border-bottom: 1px solid var(--app-border); background: var(--app-surface);
}
.setlist-item .drag-handle { cursor: grab; color: var(--app-muted); font-size: 1.1rem; }
.setlist-item .item-number { width: 2rem; color: var(--app-muted); font-variant-numeric: tabular-nums; text-align: right; }
.setlist-item .item-body, .song-pick .item-body { flex: 1 1 auto; min-width: 0; }
.setlist-item .item-title, .song-pick .item-title { font-weight: 600; overflow-wrap: anywhere; }
.setlist-item .item-actions { display: flex; gap: .25rem; flex-shrink: 0; margin-left: auto; }
.setlist-item.is-break { background: var(--app-accent-soft); }
.setlist-item.is-break .break-label { max-width: 16rem; font-weight: 600; }
.setlist-item.is-dragging { opacity: .45; }
.setlist-item.is-over { box-shadow: inset 0 2px 0 var(--app-accent); }
.song-picker { max-height: 62vh; overflow-y: auto; border-top: 1px solid var(--app-border); }
.song-pick.is-used .item-title { color: var(--app-muted); }
.setlist-break-row td { background: var(--app-accent-soft) !important; color: var(--app-accent); font-weight: 600; }
@media (max-width: 575.98px) {
    .setlist-item { padding: .5rem .6rem; gap: .4rem; }
    .setlist-item .item-actions .btn { padding: .2rem .4rem; }
}

/* ----- Social Media ---------------------------------------------------- */
.teaser-preview {
    position: relative; margin: 0 auto; max-width: 420px; border-radius: 10px; overflow: hidden;
    background: #111; box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.teaser-preview.teaser-post { aspect-ratio: 4 / 5; }
.teaser-preview.teaser-square { aspect-ratio: 1 / 1; }
.teaser-preview.teaser-story { aspect-ratio: 9 / 16; max-width: 340px; }
.teaser-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.teaser-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); }
.teaser-preview-card { position: sticky; top: calc(var(--app-topbar-height) + 1rem); }
.image-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.image-pick {
    padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; background: none;
    aspect-ratio: 1 / 1; cursor: pointer;
}
.image-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-pick.is-selected { border-color: var(--app-accent); }
.image-pick:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.library-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--app-radius) var(--app-radius) 0 0; background: #111; }
.library-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Meldungen & Dialoge -------------------------------------------- */
.app-alert { border-radius: 12px; border: 0; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.confirm-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.3rem;
    background: #fef2f2; color: #dc2626;
}
.dropdown-menu { border-color: var(--app-border); border-radius: 12px; padding: .4rem; --bs-dropdown-link-active-bg: var(--app-accent); }
.dropdown-item { border-radius: 7px; padding: .45rem .75rem; font-size: .875rem; }
.dropdown-item i { width: 1.1rem; }
.dropdown-item-form button { width: 100%; text-align: left; }

/* ----- Anmeldung ------------------------------------------------------ */
.auth-body {
    /* Bühnen-Atmosphäre: dunkler Grund, darüber die Animation (auth-bg.js) */
    background:
        radial-gradient(900px 500px at 50% 0%, rgba(110, 10, 10, .35), transparent 70%),
        radial-gradient(1000px 600px at 50% 110%, rgba(203, 1, 1, .22), transparent 65%),
        linear-gradient(180deg, #0b0b0d 0%, #110a0a 55%, #1a0606 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}
.auth-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.auth-wrapper { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card {
    width: 100%; max-width: 420px;
    background: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 18px;
    padding: 2.25rem 2rem;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .04), 0 0 60px -10px rgba(203, 1, 1, .35);
}
.auth-footer { margin-top: 1.5rem; font-size: .8rem; color: rgba(255, 255, 255, .65); }
.auth-footer .legal-links a:hover { color: #fff; }
.auth-footer + .auth-footer { margin-top: .5rem; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; margin-top: .5rem; }
.public-body .legal-links { justify-content: flex-start; }
.legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-links a:hover { color: var(--app-accent); }
.error-icon {
    width: 64px; height: 64px; border-radius: 18px; margin: 0 auto;
    display: grid; place-items: center; font-size: 1.8rem;
    background: var(--app-accent-soft); color: var(--app-accent);
}

/* Logo-Vorschau */
.logo-preview {
    width: 100%; max-width: 260px; height: 140px; border-radius: 12px;
    border: 1px dashed #d1d5db; background: #fafafa;
    display: grid; place-items: center; overflow: hidden;
}
.logo-preview img { max-width: 90%; max-height: 120px; object-fit: contain; }
