/* Schriften (Inter + Roboto) selbst-gehostet in fonts.css — @import wirkt NUR vor allen anderen Regeln, ganz oben lassen. Ersetzt den externen Google-Fonts-Hop (schneller + unabhängig beim ersten Aufruf). */
@import url('fonts.css');

/* ===========================================
   SONGMANAGER PLATFORM - GLOBAL STYLES
   Modernes, cleanes Design für die gesamte Platform
   =========================================== */

/* Reset und Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS auto-zoom on input focus (requires 16px minimum) */
@media screen and (max-width: 768px) {
    input, textarea, select, [contenteditable="true"] {
        font-size: 16px !important;
    }
}

/* iOS PWA Standalone Mode - ensure inputs are selectable */
input, textarea, select, [contenteditable="true"], .ProseMirror {
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* Long-Press auf UI-Elemente (Fake-Links "#", Buttons) zeigt kein Aufklapp-/Link-Menue
   (verhindert versehentliches "In neuem Fenster oeffnen"). Echte Inhalts-Links und
   Textmarkierung/-kopieren bleiben unberuehrt. */
a[href="#"],
a:not([href]),
button,
[role="button"] {
    -webkit-touch-callout: none;
}

/* Adjust body padding when keyboard is open */
body.keyboard-open {
    padding-bottom: 0 !important;
}

/* ===== Capacitor Native App ===== */

/* Inner-Scroll: Header/Nav bleiben fix, nur .main bounced (Instagram-Style) */
body.capacitor-native {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 0 !important;
}

body.capacitor-native .livexo-header {
    flex-shrink: 0;
}

body.capacitor-native .main {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: none;
    padding-top: 0 !important;
    padding-bottom: calc(var(--mobile-nav-height, 48px) + env(safe-area-inset-bottom, 0px) + 16px) !important;
}

/* Content-Spacing: ::before als scrollbarer Spacer statt padding-top.
   Padding wuerde sticky top:0 in WKWebView nach unten verschieben,
   ::before scrollt normal mit und beeinflusst sticky nicht. */
body.capacitor-native .main::before {
    content: '';
    display: block;
    height: 14px;
}

/* Sticky Sub-Nav: top:0 flush unter Header; NICHT wenn .tabs-pinned (JS setzt top per :style). */
html body.capacitor-native .group-tabs-wrapper:not(.tabs-pinned),
html body.capacitor-native .dm-header {
    top: 0 !important;
}

html body.capacitor-native .sidebar-sticky,
html body.capacitor-native .members-sidebar,
html body.capacitor-native .classifieds-sidebar {
    top: 0 !important;
}

/* App (Capacitor/PWA): die sticky Sub-Navigation steht bei top:0 direkt am
   Scroll-Rand -> ohne Puffer wirkt die obere Kante von Forum-Suchleiste und
   Thread abgeschnitten. Im Browser-Mobile (Tabs bei top:62px) ist genug Luft.
   Deshalb dem Forum-Inhalt nur in der App etwas oberen Abstand geben. */
body.capacitor-native .forum-tab-content {
    padding-top: 10px;
}
@media all and (display-mode: standalone) {
    .forum-tab-content {
        padding-top: 10px;
    }
}

/* Keyboard-Positionierung (resize: none) */
/* html-Prefix fuer hoehere Spezifitaet als Vue scoped styles [data-v-xxx] */
html body.capacitor-native.keyboard-open .sticky-chat-input,
html body.capacitor-native.keyboard-open .sticky-reply-form, html body.capacitor-native.keyboard-open .cd-reply-box,
html body.capacitor-native.keyboard-open .forum-create-form .form-actions {
    bottom: var(--keyboard-height, 0) !important;
}

/* Scroll-Platz schaffen damit nicht-fixe Inputs per scrollIntoView erreichbar sind */
html body.capacitor-native.keyboard-open {
    padding-bottom: var(--keyboard-height, 0) !important;
}


:root {
    /* Farb-Palette */
    --primary-color: #376de7;
    --primary-hover: #5a88eb;
    --primary-dark: #2857c5;
    --primary-rgb: 55, 109, 231; --chat-bubble-own: #dcf8c6; --chat-tick-read: #1a89bd; /* eigene Chat-Blase + "Gelesen"-Häkchen (Light); Dark: darkmode.css */
    /* Alpha-Token (2026-07-17, Farb-Programm R2): theme-konstante Schleier/Tönungen
       für Schatten, Overlays und Hover-Tints — bewusst in BEIDEN Themes identisch. */
    --black-a05: rgba(0, 0, 0, 0.05); --black-a08: rgba(0, 0, 0, 0.08); --black-a10: rgba(0, 0, 0, 0.1);
    --black-a12: rgba(0, 0, 0, 0.12); --black-a15: rgba(0, 0, 0, 0.15); --black-a18: rgba(0, 0, 0, 0.18);
    --black-a20: rgba(0, 0, 0, 0.2); --black-a25: rgba(0, 0, 0, 0.25); --black-a30: rgba(0, 0, 0, 0.3);
    --black-a40: rgba(0, 0, 0, 0.4); --black-a50: rgba(0, 0, 0, 0.5); --black-a60: rgba(0, 0, 0, 0.6);
    --black-a70: rgba(0, 0, 0, 0.7);
    --white-a06: rgba(255, 255, 255, 0.06); --white-a08: rgba(255, 255, 255, 0.08);
    --white-a10: rgba(255, 255, 255, 0.1); --white-a20: rgba(255, 255, 255, 0.2); --white-a12: rgba(255, 255, 255, 0.12);
    --white-a80: rgba(255, 255, 255, 0.8); --white-a90: rgba(255, 255, 255, 0.9);
    --primary-tint-10: rgba(55, 109, 231, 0.1);
    --error-tint-10: rgba(239, 68, 68, 0.1);
    /* Konferenz-Umbau Etappe 9: 64 wiederkehrende Literale aus dem Konferenz-Bereich, Wert unveraendert. */
    --white-a04: rgba(255, 255, 255, 0.04); --white-a15: rgba(255, 255, 255, 0.15); --white-a25: rgba(255, 255, 255, 0.25);
    --white-a50: rgba(255, 255, 255, 0.5); --primary-tint-08: rgba(55, 109, 231, 0.08); --success-tint-10: rgba(16, 185, 129, 0.1);
    --violet-400: #a78bfa; --amber-400: #fbbf24; --emerald-400: #34d399;
    --black-a80: rgba(0, 0, 0, 0.8);
    --green-500: #22c55e; --green-600: #16a34a; --blue-500: #3b82f6; /* Skalen-Token (wert-identisch konsolidiert) */
    --secondary-color: #64748b;
    --accent-color: #376de7;
    --success-color: #10b981;
    --success-hover: #059669;
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --error-color: #ef4444;
    --error-hover: #dc2626;
    
    /* Graustufen */
    --gray-25: #fcfcfd;
    --gray-50: #fbfbfb;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --meter-bg: #0f172a;
    --fader-thumb: #ffffff;
    --fader-track: #cbd5e1;

    /* Semantic Colors */
    --text-color: #5A5A5A;
    --text-muted: #64748b;
    --text-dark: #333333;
    /* Light-Gegenstueck zu darkmode.css --text-primary (#f3f4f6); vorher im Light
       Mode undefiniert -> App-Seiten (z.B. Production/Courses) ohne Textfarbe. */
    --text-primary: #1e293b;
    --text-light: #E8E8E8;
    --text-on-primary: #ffffff;
    --background-color: #ffffff;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
    --border-light: #E5E5E5;
    --white: #ffffff;
    --black: #000000;

    /* Stage-View Modal (Patchplan) — Theme-Farben */
    --stage-modal-bg: var(--white);
    --stage-modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --stage-modal-border: var(--border-color);
    --stage-modal-hover: var(--light-gray);

    /* Patchplan Device-Type Badges — Theme-Farben */
    --device-badge-mischpult-bg: #dbeafe;
    --device-badge-mischpult-text: #1e40af;
    --device-badge-mischpult-border: #bfdbfe;
    --device-badge-interface-bg: #ede9fe;
    --device-badge-interface-text: #5b21b6;
    --device-badge-interface-border: #ddd6fe;
    --device-badge-stagebox-bg: #dcfce7;
    --device-badge-stagebox-text: #166534;
    --device-badge-stagebox-border: #bbf7d0;

    /* Slideshow Settings */
    --slideshow-settings-bg: #f8f9fa;
    --slideshow-input-bg: #ffffff;

    /* Event Dashboard (immer dunkel - fuer grosse Screens) */
    --db-bg: #0f1117;
    --db-header-bg: #161921;
    --db-panel-bg: #1a1d25;
    --db-card-bg: #22252e;
    --db-border: #2a2d37;
    --db-text: #e5e7eb;
    --db-text-muted: #9ca3af;
    --db-accent: #3b82f6;
    --db-danger: #ef4444;
    --db-danger-bg: rgba(239, 68, 68, 0.1);
    --db-warning: #f59e0b;
    --db-highlight-bg: rgba(59, 130, 246, 0.08);
    --db-row-alt: rgba(255, 255, 255, 0.03);

    /* Text auf farbigen Hintergründen */
    --text-on-color: #ffffff;

    /* Alert Colors */
    --alert-success-bg: #f0fdf4;
    --alert-success-text: #166534;
    --alert-success-border: #bbf7d0;
    --alert-warning-bg: #fffbeb;
    --alert-warning-text: #92400e;
    --alert-warning-border: #fed7aa;
    --alert-error-bg: #fef2f2;
    --alert-error-text: #991b1b;
    --alert-error-border: #fecaca;
    --alert-info-bg: #eff6ff;
    --alert-info-text: #1e40af;
    --alert-info-border: #bfdbfe;
    
    /* Focus Colors */
    /* An --primary-rgb gebunden: beide trugen bis 2026-09-23 noch Farben aelterer
       Markenstaende (#2563eb / #4a3aff) und passten nicht zu --primary-color. */
    --focus-ring: rgba(var(--primary-rgb), 0.1);
    --focus-ring-primary: rgba(var(--primary-rgb), 0.1);
    --focus-ring-info: rgba(23, 162, 184, 0.25);
    --focus-ring-success: rgba(16, 185, 129, 0.25);
    --focus-ring-warning: rgba(245, 158, 11, 0.25);
    --focus-ring-error: rgba(239, 68, 68, 0.25);
    
    /* Modal Overlay */
    --modal-overlay-bg: rgba(15, 23, 42, 0.75);

    /* Brand Colors (extern, nicht thematisierbar) */
    --google-brand-color: #4285f4;
    --outlook-brand-color: #0078d4;

    /* Info Color */
    --info-color: #17a2b8;
    --info-hover: #138496;
    
    /* Typografie */
    --font-family: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-base: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;

    /* Band Builder */
    --bb-stage-color: #f59e0b;
    --bb-tech-color: #3b82f6;
    --bb-card-bg: #f8fafc;
    --bb-slot-bg: #ffffff;
    --bb-slot-filled-bg: #fffbeb;
    --bb-input-bg: #ffffff;
    --bb-progress-bg: rgba(55, 109, 231, 0.1);
}

/* Base HTML Elements */
html {
    /* KEIN scroll-behavior:smooth: Inertia stellt die Scroll-Position nach dem Neuladen per
       scrollTo() her — global smooth liess die Seite dann sichtbar von oben dorthin gleiten. */
    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    overscroll-behavior-x: none;
    /* scrollbar-gutter: reserviert den Platz fuer den vertikalen Scrollbalken dauerhaft,
       damit die Seite beim Navigieren nicht um ~15px springt (Web/Desktop). Auf Mobile
       (Overlay-Scrollbalken, Breite 0) wirkungslos -> unschaedlich. */
    overflow-x: clip; scrollbar-gutter: stable;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    min-height: 100vh;

    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    background: var(--white);
    overscroll-behavior-x: none;
    overflow-x: clip;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}


/* Patchplan Device-Detail: Tabelle braucht mehr Platz */
.container:has(.device-channels-body) {
    max-width: 80%;
}

/* Header - Wird jetzt durch livexo-header.css gesteuert */

/* Main Content */
.main {
    min-height: calc(100vh - 80px);
    padding: var(--spacing-8) 0;
}

/* Inertia SPA-Navigation: Container darf nicht kollabieren beim Seitenwechsel */
.main .container > #app {
    min-height: calc(100vh - 200px);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: none;
    border: 1px solid var(--border-color);
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-6);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--spacing-4);
    margin-bottom: var(--spacing-6);
}

.card-header .card-title {
    flex: 1;
}

.card-header .btn {
    flex-shrink: 0;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-top: var(--spacing-1);
}

/* Vereinheitlichte Seiten-Ueberschrift: gleiche Groesse wie .card-title */
.page-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Close Button (Modal × Button) */
.close,
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.close:hover,
.modal-close:hover {
    color: var(--gray-800);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 38px hoch — der Hausstandard, den Band-Header, Filterleisten und Knopfgruppen
       schon einzeln nachgeruestet hatten. Ueber Polsterung statt fester Hoehe, damit
       ein zweizeiliger Knopf weiterhin waechst statt abzuschneiden. (2026-09-17) */
    padding: var(--spacing-2) var(--spacing-5);
    line-height: 1.5;
    font-family: inherit; font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    /* Transparent statt `none`: .btn-primary bringt einen 1px-Rand mit, .btn-secondary
       nicht — nebeneinander waren die beiden dadurch 2px unterschiedlich hoch. */
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    gap: var(--spacing-2);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-on-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-on-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success-color);
    color: var(--text-on-color);
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--text-on-color);
}

.btn-warning:hover {
    background: var(--warning-hover);
}

.btn-danger {
    background: var(--error-color);
    color: var(--text-on-color);
}

.btn-danger:hover {
    background: var(--error-hover);
}

.btn-info {
    background: var(--info-color);
    color: var(--text-on-color);
}

.btn-info:hover {
    background: var(--info-hover);
}


.btn-lg {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-lg);
}


.form-control {
    width: 100%;
    padding: var(--spacing-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: inherit; font-size: var(--font-size-base);
    transition: all 0.2s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring-primary);
}

.form-control:disabled {
    background: var(--gray-100);
    color: var(--gray-500);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--spacing-3) center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: var(--spacing-10);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-4);
}

.table th,
.table td {
    padding: var(--spacing-3) var(--spacing-4);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Alerts */
.alert {
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-4);
    border: 1px solid transparent;
}

.alert-success {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
    border-color: var(--alert-success-border);
}


.alert-error {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    border-color: var(--alert-error-border);
}

.alert-info {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-color: var(--alert-info-border);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

.col {
    flex: 1;
    padding: 0;
}

.col-1 { flex: 0 0 calc(8.333333% - var(--spacing-4)); }
.col-2 { flex: 0 0 calc(16.666667% - var(--spacing-4)); }
.col-3 { flex: 0 0 calc(25% - var(--spacing-4)); }
.col-4 { flex: 0 0 calc(33.333333% - var(--spacing-4)); }
.col-6 { flex: 0 0 calc(50% - var(--spacing-4)); }
.col-8 { flex: 0 0 calc(66.666667% - var(--spacing-4)); }
.col-9 { flex: 0 0 calc(75% - var(--spacing-4)); }
.col-12 { flex: 0 0 calc(100% - var(--spacing-4)); }

@media (max-width: 768px) {
    
    .col-2, .col-3, .col-4, .col-6, .col-8, .col-9 {
        flex: 0 0 100%;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }


.mt-2 { margin-top: var(--spacing-2); }
.mt-4 { margin-top: var(--spacing-4); }


.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-4 { gap: var(--spacing-4); }

/* Loading Spinner */
.spinner {
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-3);
    }
    
    
    
    .nav {
        gap: var(--spacing-4);
    }
    
    .row {
        flex-direction: column;
    
    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    gap: var(--spacing-3);
}
    
    .col,
    .col-1, .col-2, .col-3, .col-4,
    .col-6, .col-8, .col-9, .col-12 {
        flex: 0 0 100%;
    }
    
}


@media all and (display-mode: standalone) {
    
    
    /* Body-Padding ENTFERNT - wird jetzt pro Komponente gehandhabt */
}

@media (max-width: 768px) {
    
    
    /* Body-Padding ENTFERNT - wird jetzt pro Komponente gehandhabt */
}


.col-actions {
    text-align: right;
}

/* Generische Tabellen-Checkbox-Spalte (auch ausserhalb Patchplan genutzt, z.B. NotificationSettings) */
.col-check {
    width: 32px;
    text-align: center;
}

.col-check input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
}

/* Patchplan Row-Color Presets (Light Mode) */
:root {
    --patchplan-row-red: #fecaca;
    --patchplan-row-orange: #fed7aa;
    --patchplan-row-yellow: #fef3c7;
    --patchplan-row-green: #bbf7d0;
    --patchplan-row-blue: #bfdbfe;
    --patchplan-row-purple: #e9d5ff;
    --patchplan-row-pink: #fbcfe8;
    --patchplan-row-gray: #e5e7eb;
    --patchplan-row-input-bg: rgba(255, 255, 255, 0.75);
    --patchplan-row-input-bg-focus: #ffffff;
    --patchplan-row-text: #0f172a;
}

.color-swatch {
    position: relative;
    width: 22px;
    height: 22px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch[data-preset="red"] { background: var(--patchplan-row-red); }
.color-swatch[data-preset="orange"] { background: var(--patchplan-row-orange); }
.color-swatch[data-preset="yellow"] { background: var(--patchplan-row-yellow); }
.color-swatch[data-preset="green"] { background: var(--patchplan-row-green); }
.color-swatch[data-preset="blue"] { background: var(--patchplan-row-blue); }
.color-swatch[data-preset="purple"] { background: var(--patchplan-row-purple); }
.color-swatch[data-preset="pink"] { background: var(--patchplan-row-pink); }
.color-swatch[data-preset="gray"] { background: var(--patchplan-row-gray); }

.color-swatch-none {
    background: var(--white);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1;
}

.color-swatch-add {
    background: var(--white);
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
}

.color-swatch-custom {
    overflow: visible;
}

.color-swatch-custom .color-swatch-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    line-height: 12px;
    text-align: center;
    background: var(--error-color);
    color: var(--text-on-color);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.12s;
    cursor: pointer;
}

.color-swatch-custom:hover .color-swatch-remove {
    opacity: 1;
}

.color-picker-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Options edit modal */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.option-empty {
    padding: 12px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
    text-align: center;
    background: var(--light-gray);
    border-radius: 4px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.option-text {
    flex-grow: 1;
    font-size: 14px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.option-rename-tag {
    margin-left: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.option-edit-input {
    flex-grow: 1;
    padding: 4px 8px;
    font-size: 14px;
}

.btn-icon-confirm {
    color: var(--success-color);
}

.btn-icon-confirm:hover:not(:disabled) {
    background: var(--success-color);
    color: var(--text-on-color);
}

.btn-icon-cancel {
    color: var(--error-color);
}

.btn-icon-cancel:hover:not(:disabled) {
    background: var(--error-color);
    color: var(--text-on-color);
}

.option-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 1;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    border-radius: 3px;
    font-size: 9px;
    cursor: pointer;
    padding: 0;
}

.btn-icon:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.option-add {
    display: flex;
    gap: 6px;
    align-items: center;
}

.option-add .form-input {
    flex-grow: 1;
}

.btn-icon-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 3px;
}

.btn-icon-delete:hover {
    color: var(--error-color);
    background: var(--light-gray);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--light-gray);
}

.btn-ghost.btn-danger:hover {
    background: var(--error-color);
    color: var(--text-on-color);
    border-color: var(--error-color);
}

/* ===========================
   Modal (Patchplan)
   =========================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dunkler + leicht verschwommener Backdrop, damit der Fokus ganz auf dem Modal
       liegt und der Hintergrund (inkl. Navi) nicht mehr durchdringt. */
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10050;
}

.modal-box {
    background: var(--white);
    border-radius: 8px;
    width: 520px;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px var(--black-a20);
}


.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
}


/* === Modal-Overlay Mobile-Anpassung ===
   Verhindert dass .modal-box hinter Top-Header und Bottom-Nav verschwindet. */
@media (max-width: 768px) {
    .modal-overlay {
        padding-top: calc(64px + env(safe-area-inset-top, 0px) + 0.5rem);
        padding-bottom: calc(var(--mobile-nav-height, 48px) + env(safe-area-inset-bottom, 0px) + 0.5rem);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }

    .modal-box {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        overscroll-behavior: contain;
    }
}

.form-label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-color);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-col {
    flex: 1;
}

.modal-box-wide {
    width: 640px;
}

.modal-box-xl {
    width: fit-content;
    min-width: min(640px, 92vw);
    max-width: 98vw;
    max-height: 94vh;
}

.modal-box-xxl {
    width: 96vw;
    max-width: 1400px;
    max-height: 94vh;
}
.filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 7px;
    font-size: 12px;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: inherit;
}
.filter-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ─── Public Share-Page ─── */
.public-share-page {
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}
.public-share-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}


/* ============================================================
 * Event Travel Map — Pin-DivIcons (global, da Leaflet außerhalb Vue-Scope rendert)
 * ============================================================ */
.ttm-stop-marker {
    background: transparent !important;
    border: none !important;
}
.ttm-stop-pin {
    position: relative;
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px var(--black-a25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ttm-stop-num {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--text-on-color);
    font-size: 0.6rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    border: 1.5px solid var(--white);
}
.ttm-stop-avatars {
    position: absolute;
    top: -8px;
    left: -8px;
    transform: rotate(45deg);
    display: flex;
    flex-direction: row;
    gap: 2px;
}
.ttm-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 1.5px solid var(--white);
    object-fit: cover;
    box-shadow: 0 1px 2px var(--black-a20);
}
.ttm-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-on-color);
    background: var(--primary-color);
}
.ttm-avatar-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-color);
    background: var(--light-gray);
}

/* ============================================================
 * Markdown-gerenderte Inhalte (Highlights / Changelog / News)
 * ============================================================ */
.rich-content {
    line-height: 1.6;
    color: var(--text-color);
    word-break: break-word;
}
.rich-content > *:first-child {
    margin-top: 0;
}
.rich-content > *:last-child {
    margin-bottom: 0;
}
.rich-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: var(--text-color);
}
.rich-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.85rem 0 0.4rem;
    color: var(--text-color);
}
.rich-content p {
    margin: 0 0 0.75rem;
}
.rich-content ul {
    margin: 0 0 0.75rem;
    padding-left: 1.4rem;
}
.rich-content li {
    margin-bottom: 0.25rem;
}
.rich-content strong {
    font-weight: 700;
}
.rich-content em {
    font-style: italic;
}
.rich-content code {
    background: var(--light-gray);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.rich-content a {
    color: var(--primary-color);
    text-decoration: underline;
}
.rich-content a:hover {
    text-decoration: none;
}

.form-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.5;
}
.form-hint code {
    background: var(--light-gray);
    padding: 0.05em 0.3em;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.markdown-preview {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.markdown-preview-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

/* ============================================================
   Aus band.css konsolidiert (Aufloesung, 2026-07-16):
   gemeinsame Bausteine der Band-/App-Seiten. Kaskaden-sicher
   verschoben (kein !important, kein darkmode-Bezug, keine
   Selektor-Kollision mit dazwischen geladenen Dateien).
   ============================================================ */

/* Event-Anfragen Rubrik */
.event-requests-card {
    border: 2px solid var(--warning-color);
    box-shadow: var(--shadow-md);
}

.event-requests-list {
    padding: 0;
}

.event-request-item {
    border-bottom: 1px solid var(--gray-300);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: background-color 0.2s;
}

.event-request-item:hover {
    background-color: var(--gray-100);
}

.event-request-item:last-child {
    border-bottom: none;
}

.event-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.event-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.request-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
.event-request-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Kalender-Dropdown Styles */
.dropdown {
    position: relative;
    z-index: 1000;
}

/* Section Icons für Setlist Builder */
.section-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: var(--spacing-2);
    filter: brightness(0) saturate(100%) invert(47%) sepia(13%) saturate(3207%) hue-rotate(130deg) brightness(95%) contrast(80%);
}

.foh-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z'/%3E%3C/svg%3E");
}

.remote-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.md-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3'/%3E%3C/svg%3E");
}

/* Action Icons für Buttons */
.action-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: var(--spacing-1);
    filter: brightness(0) saturate(100%) invert(100%);
}

.create-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 4v16m8-8H4'/%3E%3C/svg%3E");
}

.delete-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16'/%3E%3C/svg%3E");
}

.lock-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
}

.play-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14.828 14.828a4 4 0 01-5.656 0M9 10h1.586a1 1 0 01.707.293l2.414 2.414a1 1 0 00.707.293H15M9 10v4a2 2 0 002 2h2a2 2 0 002-2v-4M9 10V9a2 2 0 012-2h2a2 2 0 012 2v1M9 7V6a2 2 0 012-2h2a2 2 0 012 2v1'/%3E%3C/svg%3E");
}

.pause-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 9v6m4-6v6m7-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.mail-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}

/* Moderne Berechtigungstabelle für Bearbeitung */
.permissions-table-container {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.permission-row {
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.permission-row:hover {
    background: var(--light-gray);
}

.group-label {
    font-weight: 600;
    color: var(--alert-info-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Moderne Toggle Switches */
.permission-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.permission-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.permission-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.3s;
    border-radius: 24px;
}

.permission-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.permission-checkbox:checked + .permission-slider {
    background-color: var(--success-color);
}

.permission-checkbox:checked + .permission-slider:before {
    transform: translateX(26px);
}

.permission-slider:hover {
    box-shadow: 0 0 8px var(--alert-success-border);
}

.permissions-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* perm-pill Styles → jetzt in Members/Index.vue scoped CSS */

/* Members-Tabelle Spaltenbreiten → jetzt in Members/Index.vue scoped CSS */

/* Leader Icon */
.leader-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z'/%3E%3C/svg%3E");
}

/* Utility Icons für Setlists */
.duration-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: var(--spacing-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    filter: brightness(0) saturate(100%) invert(100%);
}

.warning-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: var(--spacing-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.464 0L4.35 16.5c-.77.833.192 2.5 1.732 2.5z'/%3E%3C/svg%3E");
    filter: brightness(0) saturate(100%) invert(84%) sepia(78%) saturate(2500%) hue-rotate(346deg) brightness(97%) contrast(94%);
}

.view-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E");
}

/* Event List Styling */
.event-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.event-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-3);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.clickable {
    cursor: pointer;
}

.event-details {
    flex: 1;
    margin-right: var(--spacing-4);
}

.event-details strong {
    font-size: var(--font-size-base);
}

.event-status {
    flex: 0 0 auto;
}

/* Song List Styling */
.song-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-3);
}

.item-card-title {
    font-size: var(--font-size-lg);
    font-weight: 500; /* Reduziert von 600 auf 500 */
    color: var(--gray-800);
    margin: 0;
}

.item-card-actions {
    display: flex;
    gap: var(--spacing-2);
}

.item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
.item-card-header {
        margin-bottom: var(--spacing-2);
    }
}

@media (max-width: 992px) {
.event-item {
        flex-direction: column;
        align-items: start;
        gap: var(--spacing-2);
    }
}

@media (max-width: 992px) {
/* Kompakte Formularzeile auf Mobile */
    .row.mb-3 {
        flex-direction: column;
        gap: var(--spacing-2);
    }
}

@media (max-width: 992px) {
.row.mb-3 .col-4,
    .row.mb-3 .col-3 {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 992px) {
.item-card-header {
        flex-direction: column;
        gap: var(--spacing-3);
    }
}

@media (max-width: 992px) {
.item-card-footer {
        flex-direction: column;
        gap: var(--spacing-3);
        align-items: start;
    }
}

@media (max-width: 576px) {
.btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

.form-group {
    margin-bottom: var(--spacing-3);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-1);
    font-weight: 500;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-group input:user-invalid, /* :user-invalid = erst rot NACH dem Tippen (N26, 14.11.2026) */
.form-group textarea:user-invalid {
    border-color: var(--error-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.song-detail {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 400; /* Reduziert von 500 auf 400 */
}

/* Form Enhancements */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    cursor: pointer;
    padding: var(--spacing-2);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: var(--gray-100);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.song-search {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-bottom: var(--spacing-3);
}

.form-section {
    margin-bottom: var(--spacing-5);
    padding: var(--spacing-4);
    background: var(--light-gray);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.form-section h4 {
    margin-bottom: var(--spacing-2);
    color: var(--text-color);
}

/* Moderne CSS Icons */
.icon-microphone {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1.1 0 2 .9 2 2v6c0 1.1-.9 2-2 2s-2-.9-2-2V4c0-1.1.9-2 2-2zm6 6c0 3.31-2.69 6-6 6s-6-2.69-6-6H4c0 3.52 2.61 6.43 6 6.92V21h4v-2.08c3.39-.49 6-3.4 6-6.92h-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-document {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-edit {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-archive {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM6.24 5h11.52l.81.97H5.44l.8-.97zM5 19V8h14v11H5zm8.45-9h-2.9v3H8l4 4 4-4h-2.55z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-restore {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-music {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-music-note {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-clock {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-midi {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8 7.5c0-.83.67-1.5 1.5-1.5S11 6.67 11 7.5 10.33 9 9.5 9 8 8.33 8 7.5zM16 16H8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-user {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-delete {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

/* Icon für Kalender */
.icon-calendar {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

/* Icon für Standort/Location */
.icon-location {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-check {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Icon für Email */
.icon-email {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

/* Icon für Link */
.icon-link {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

/* Icon für Liste */
.icon-list {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

/* Icon für Video */
.icon-video {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

/* Icon für Settings/Zahnrad */
.icon-settings {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}

/* Notizen und Aufnahmen */
.song-notes {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--white);
    border-left: 4px solid var(--gray-500);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

/* Styling für persönliche Notizen Elemente */
.personalized-note-item {
    margin-bottom: 12px;
}

.personalized-note-item:last-child {
    margin-bottom: 0;
}

.note-meta {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
}

.transition-notes-display {
    flex: 1;
}

.transition-duration-display {
    color: var(--gray-500);
    font-size: 13px;
    white-space: nowrap;
}

.transition-icon, .duration-icon {
    margin-right: 6px;
    color: var(--gray-500);
}

.song-sheets {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--gray-100);
    border-left: 4px solid var(--gray-500);
    border-radius: 4px;
}

/* File Upload Interface */
.file-upload-area {
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--spacing-4) var(--spacing-3);
    text-align: center;
    background: var(--gray-50);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
}

.file-upload-area.dragover {
    border-color: var(--gray-400);
    background: var(--gray-100);
    border-style: solid;
}

.file-upload-message {
    pointer-events: none;
}

.file-upload-area p {
    margin: 0 0 var(--spacing-1) 0;
    font-weight: 500;
    color: var(--gray-700);
}

.file-upload-area small {
    color: var(--gray-500);
}

.file-list {
    margin-top: var(--spacing-3);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.file-item-icon {
    font-size: 1.5rem;
    color: var(--gray-500);
}

.file-item-details h4 {
    margin: 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-800);
}

.file-item-details small {
    color: var(--gray-500);
}

.file-item-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: var(--spacing-1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.file-item-remove:hover {
    background: var(--error-color);
    color: var(--text-on-color);
}

.sheet-actions {
    display: flex;
    gap: var(--spacing-1);
}


/* Upload Progress (falls später benötigt) */
.upload-progress {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: var(--spacing-2);
}

@media (max-width: 768px) {
.file-upload-area {
        padding: var(--spacing-4) var(--spacing-3);
    }
}

@media (max-width: 768px) {
.file-item-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
.sheet-actions {
        align-self: flex-end;
    }
}

/* ============================================================
   Alt-Designsystem (ehem. band.css) — Rest konsolidiert 2026-07-16.
   BEWUSSTER Design-Entscheid: Dark-Overrides ([data-theme=dark])
   gewinnen ab jetzt Gleichstände, die sie frueher durch die spaete
   band.css-Ladeposition verloren (alte Bug-Klasse). Hellmodus ist
   von der Verschiebung unberuehrt. Naechster Schritt bleibt der
   weitere Umzug in scoped Komponenten-Styles.
   ============================================================ */

/* ===========================================
   BAND-BEREICH SPEZIFISCHE STYLES
   Nur globale Styles für Blade-Templates (Live-Setlists, Navigation, Header)
   Vue-Seiten nutzen scoped CSS in ihren Komponenten
   =========================================== */

/* Globales Button-Styling */
.filter-bar .btn,
.d-flex .btn,
.btn-group .btn {
    height: 38px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: 1px solid transparent;
}

.filter-bar .form-control,
.filter-bar .form-select {
    height: 38px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    flex-shrink: 1;
}

.filter-bar form {
    flex-wrap: nowrap;
    gap: 0.5rem;
}


/* Responsive Filter */
@media (max-width: 768px) {
    .filter-bar form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar .form-control,
    .filter-bar .form-select {
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
}

.d-flex {
    align-items: center;

    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    display: flex;
}

/* Button-Abstände für bessere Optik */
.d-flex.gap-1 {
    gap: 0.5rem;
}

.d-flex.gap-2 {
    gap: 0.75rem;
}

.d-flex.gap-3 {
    gap: 1rem;
}

.d-flex.gap-4 {
    gap: 1.25rem;
}

/* Standard-Abstände für Aktions-Bereiche */
.song-card-footer .d-flex,
.table-responsive .d-flex,
.card-actions .d-flex,
.setlist-actions .d-flex {
    gap: 0.5rem;
}


.event-requests-header {
    background: linear-gradient(135deg, var(--alert-warning-bg) 0%, var(--alert-warning-bg) 100%);
    border-bottom: 2px solid var(--warning-color) !important;
    padding: 20px !important;
}


.request-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.request-actions .btn {
    white-space: nowrap;
}

/* Icons für Event-Anfragen */
.calendar-icon,
.location-icon,
.notes-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* Responsive Design für Event-Anfragen */
@media (max-width: 768px) {
    
    
    .request-actions {
        width: 100%;
    }
    
    .request-actions .btn {
        flex: 1;
    }
}


.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 99999;
    min-width: 220px;
    padding: 8px 0;
    margin: 4px 0 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
}

.calendar-icon.download-icon,
.calendar-icon.google-icon,
.calendar-icon.outlook-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.location-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: var(--spacing-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
    filter: brightness(0) saturate(100%) invert(41%) sepia(12%) saturate(1034%) hue-rotate(169deg) brightness(98%) contrast(86%);
}


.edit-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E");
}


.permissions-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.permissions-table thead {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--gray-200) 100%);
}

.permissions-table th {
    padding: 1rem 0.75rem !important;
    font-weight: 500 !important;
    color: var(--gray-700) !important;
    border-bottom: 2px solid var(--border-light) !important;
    text-align: left;
}

.permissions-table th:last-child {
    text-align: center;
}


.group-cell {
    background: linear-gradient(135deg, var(--alert-info-bg) 0%, var(--alert-info-bg) 100%);
    border-right: 3px solid var(--info-color);
    padding: 1rem 0.75rem !important;
    vertical-align: top;
    text-align: center;
    min-width: 120px;
}


.perm-name {
    padding: 0.75rem !important;
    font-weight: 500 !important;
    color: var(--gray-800) !important;
    min-width: 180px;
}

.perm-desc {
    padding: 0.75rem !important;
    color: var(--gray-400) !important;
    max-width: 300px;
}


/* Kompakte Darstellung in der Übersichtstabelle */
.permissions-cell {
    min-width: 200px;
    max-width: 280px;
    padding: 0.5rem !important;
}


.search-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
}

.notes-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E");
}


/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}


.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-3);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
}


.song-details {
    flex: 1;
}

.song-meta {
    flex: 0 0 auto;
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
}


/* Event/Setlist Cards */
.item-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: none;
    border: 1px solid var(--border-light);
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-4);
    position: relative;
    z-index: 1;
    /* Hover-Effekt entfernt wegen Dropdown-Flackern */
}

.item-card.archived-event {
    opacity: 0.6;
}

/* Erhöhter z-index wenn Dropdown aktiv */
.item-card:has(.dropdown-menu.show),
.item-card.dropdown-open,
.item-card:has(.live-dropdown.show),
.item-card:has(.print-dropdown.show) {
    z-index: 10000 !important;
}

/* Event-Status Badge mit mehr Padding */
.event-status-badge {
    padding: 6px 12px !important;
    font-size: 13px;
}


.item-card-meta {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-1);
}


.item-card-content {
    margin-bottom: var(--spacing-3);
}


@media (max-width: 768px) {
    .item-card {
        padding: var(--spacing-3);
        margin-bottom: var(--spacing-3);
    }

    

    .item-card-content {
        margin-bottom: var(--spacing-2);
    }
}


.song-pool-item,
.setlist-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2) var(--spacing-3);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-2);
    cursor: pointer;
    transition: all 0.2s ease;
}


/* Status Badges für Events */
.badge.badge-planned {
    background: var(--alert-warning-bg);
    color: var(--alert-warning-text);
}

.badge.badge-confirmed {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
}

.badge.badge-cancelled {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
}

.badge.badge-completed {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
}

/* Tablet und Mobile Anpassungen */
@media (max-width: 992px) {
    .header {
        padding: var(--spacing-2) 0;
    }
    
    
    
    
    
    .logo {
        font-size: 1.3rem !important;
        flex-shrink: 0;
    }
    
    
    
    
    
    .user-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 200px;
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    .song-pool,
    .setlist-songs {
        padding: var(--spacing-3);
        min-height: 300px;
    }
    
    
    
    
    
    
    
    
    
    
}


/* Spezielle Mobile Anpassungen für kleine Bildschirme */
@media (max-width: 576px) {
    .header {
        padding: var(--spacing-2) 0;
    }
    
    
    
    
    
    .logo {
        font-size: 1.1rem !important;
        flex-shrink: 0;
    }
    
    
    
    
    
    .user-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 180px;
        max-width: 90vw;
    }
    
    
    
    
    
    
    
    
    
    .song-pool,
    .setlist-songs {
        padding: var(--spacing-2);
        min-height: 250px;
    }
    
    .song-pool h3,
    .setlist-songs h3 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-2);
    }
    
    .song-pool-item,
    .setlist-song-item {
        padding: var(--spacing-1) var(--spacing-2);
        font-size: 0.9rem;
    }
    
    .song-meta .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Kompakte Header */
    .card-title {
        font-size: 1.3rem !important;
    }
    
    /* Dashboard responsive */
    .d-flex.justify-between {
        flex-direction: column;
        gap: var(--spacing-3);
        align-items: stretch;
    }
    
    
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-a50);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* BaseModal setzt diese Klassen aus seiner `size`-Eigenschaft. Sie fehlten hier —
   `size="lg"` und `size="sm"` waren also wirkungslos, und alle Modals waren gleich
   breit (2026-09-21). Die 90%-Breite oben greift auf schmalen Geraeten weiterhin. */
.modal-content-sm { max-width: 420px; }
.modal-content-lg { max-width: 780px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--gray-800);
    font-size: var(--font-size-lg);
}

/* .modal-close → jetzt in style.css definiert */

.modal-body {
    padding: var(--spacing-4);

    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    display: flex; flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-4);
    border-top: 1px solid var(--gray-200);
}

/* === Modal Mobile-Anpassung ===
   Verhindert dass Modal hinter Top-Header (64px) und Bottom-Nav (48px + safe-area)
   verschwindet. modal-content scrollt innerhalb des sichtbaren Bereichs. */
@media (max-width: 768px) {
    .modal {
        padding-top: calc(64px + env(safe-area-inset-top, 0px) + var(--spacing-2));
        padding-bottom: calc(var(--mobile-nav-height, 48px) + env(safe-area-inset-bottom, 0px) + var(--spacing-2));
        padding-left: var(--spacing-2);
        padding-right: var(--spacing-2);
        box-sizing: border-box;
    }

    .modal-content {
        max-height: 100%;
        width: 100%;
        max-width: 100%;
        overscroll-behavior: contain;
    }

    .modal-header {
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

/* Body-Scroll-Lock wenn ein .modal- oder .modal-overlay-Element gerendert wird.
   v-if entfernt das Element komplett aus dem DOM, daher greift :has() nur bei aktivem Modal. */
body:has(.modal),
body:has(.modal-overlay) {
    overflow: hidden;
}

/* Navi wird NICHT mehr ausgeblendet, solange ein Modal offen ist — das „Wegklappen"
   der Top-Navi beim Öffnen war irritierend. Stattdessen deckt das Modal-Overlay per
   z-index Header (z 1000-1002) und Bottom-Nav (z 9998) mit dem dunklen, leicht
   verschwommenen Backdrop ab → Fokus bleibt auf dem Modal, ohne Layout-Sprung.
   Voraussetzung: jedes Modal-Overlay hat z-index >= 9999 (globales .modal-overlay = 10050;
   früher scoped z-1000-Modals wurden angehoben). */
@media (max-width: 768px) {

    /* Sticky-Speichern/Abbrechen-Bar (Edit-Pages) ausblenden, solange ein Modal offen ist —
       Modal hat eigene Save/Cancel-Buttons; doppelte Bars verwirren. */
    body:has(.modal) .sticky-action-buttons,
    body:has(.modal-overlay) .sticky-action-buttons,
    body:has(.song-personalized-notes-modal) .sticky-action-buttons,
    body:has(.cropper-modal-overlay) .sticky-action-buttons {
        display: none !important;
    }

    /* Modal-Overlay/Modal: bei verstecktem Header kein padding-top mehr noetig,
       der Backdrop deckt jetzt den vollen Viewport. */
    body:has(.modal) .modal,
    body:has(.modal-overlay) .modal-overlay {
        padding-top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
    }

    /* Gleiches Body-Scroll-Lock fuer Komponenten-eigene Modal-Klassen */
    body:has(.song-personalized-notes-modal),
    body:has(.cropper-modal-overlay) {
        overflow: hidden;
    }
}


.user-dropdown-menu {
    min-width: 220px;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}


.dropdown-header {
    padding: var(--spacing-3);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-2);
    background: var(--gray-50);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}


.dropdown-header small {
    color: var(--gray-500);
    font-size: var(--font-size-xs);
    display: block;
    margin-top: var(--spacing-1);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-base);
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
    margin: var(--spacing-1);
}

.user-dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    text-decoration: none;
}

.user-dropdown-menu a:last-child {
    color: var(--error-color);
}

.user-dropdown-menu a:last-child:hover {
    background: var(--alert-error-bg);
    color: var(--error-color);
}


/* Filter und Suche */
.filter-bar {
    display: flex;
    gap: var(--spacing-4);
    align-items: center;
    margin-bottom: var(--spacing-6);
    border-radius: var(--radius-md);
}

.filter-bar .form-control {
    max-width: 200px;
}


/* Song Management */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-4);
    margin-top: var(--spacing-4);
}

.song-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: none;
    border: 1px solid var(--border-color);
    padding: var(--spacing-5);
    min-width: 0;
    overflow: hidden;
}


.song-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--gray-100);
}

/* Song Cards - Mobile */
@media (max-width: 768px) {
    .songs-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-3);
    }

    .song-card {
        padding: var(--spacing-3);
    }

    

    

    .song-card-badges .badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
}


/* Badge Variations für Songs */
.badge.badge-easy {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
}

.badge.badge-medium {
    background: var(--alert-warning-bg);
    color: var(--alert-warning-text);
}

.badge.badge-hard {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
}

/* Setlist Management */
.setlist-view {
    margin-top: var(--spacing-4);
}


.setlist-song-entry {
    display: flex;
    align-items: center;
    padding: var(--spacing-4);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.setlist-song-entry .song-position {
    background: var(--gray-400) !important;
    color: var(--text-on-color) !important;
    font-weight: 600;
    font-size: 1rem;
    min-width: 32px;
    height: 32px;
    border-radius: 2px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: var(--spacing-3);
    box-shadow: none !important;
    text-shadow: none !important;
}

.setlist-song-entry .song-details {
    flex: 1;
    margin-left: var(--spacing-4);
}

.setlist-song-entry .song-meta {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
    flex-wrap: wrap;
}


.song-pool,
.setlist-songs {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-5);
    border: 2px solid var(--gray-200);
    min-height: 500px;
    position: relative;
}

.song-pool h3,
.setlist-songs h3 {
    margin-bottom: var(--spacing-4);
    color: var(--gray-700);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-2);
}


.song-pool-item:hover .badge {
    background: var(--border-light);
    color: var(--white);
}

.song-pool-item .song-info {
    flex: 1;
}

.song-pool-item .song-meta {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
    flex-wrap: wrap;
}


/* Song-Position wird jetzt global definiert */

.setlist-song-item .song-info {
    flex: 1;
}

.setlist-song-item .song-actions {
    display: flex;
    gap: var(--spacing-1);
}

/* Drag & Drop Styles für Setlist Songs */
.setlist-song-item[draggable="true"] {
    cursor: grab;
}

.setlist-song-item[draggable="true"]:active {
    cursor: grabbing;
}

.setlist-song-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border: 2px solid var(--primary-color);
}

.setlist-song-item:active .drag-handle {
    cursor: grabbing;
}


.key-label {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 500;
    margin: 0;
}

.key-select {
    width: 120px;
    padding: 2px 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--border-color);
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.key-select:focus {
    outline: none;
    border-color: var(--border-light);
    background: var(--border-light);
    box-shadow: 0 0 0 2px var(--border-color);
}

.key-select option {
    background: var(--gray-800);
    color: var(--text-on-color);
    padding: 4px 8px;
}

.key-select option:hover {
    background: var(--primary-color);
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Badge-Styles für überschriebene Tonarten */
.badge-warning {
    background-color: var(--warning-color);
    color: var(--text-on-color);
    border: 1px solid var(--warning-hover);
}


.vocalist-select {
    width: 140px;
    padding: 2px 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--border-color);
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vocalist-select:focus {
    outline: none;
    border-color: var(--border-light);
    background: var(--border-light);
    box-shadow: 0 0 0 2px var(--border-color);
}

.vocalist-select option {
    background: var(--gray-800);
    color: var(--text-on-color);
    padding: 4px 8px;
}

.vocalist-select option:hover {
    background: var(--primary-color);
}

/* Leadstimme-Anzeige in Setlist View */
.lead-vocalist {
    color: var(--accent-color) !important;
    font-weight: 500;
}


/* Setlist Statistics */
.setlist-stats,
.setlist-header-stats {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
}

/* Notes Header mit Button Layout */
.notes-header-with-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-2);
}

.notes-header-with-button .notes-label,
.notes-header-with-button strong {
    margin: 0;
}

.notes-header-with-button .personalized-notes-btn {
    font-size: 0.8rem;
    padding: 4px 10px;
    white-space: nowrap;
}

.setlist-header {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--spacing-1);
    margin-bottom: var(--spacing-2);
}


/* Icon für Trash/Delete */
.icon-trash {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
}


/* Normale Ansicht - optimiertes Layout */
.normal-song-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    margin: 0;
    border-radius: 0;
    border: 1px solid var(--gray-200);
}

.normal-song-info {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.normal-song-info .song-position {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-on-color);
    background: var(--primary-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.normal-song-info strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}


/* Neues Layout für nebeneinander angeordnete Notizen */
.notes-container {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 16px;
    flex-wrap: wrap;
}

.notes-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 250px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
}

/* Wenn nur eine Notiz vorhanden ist - maximal 50% Breite */
.notes-container.single-note .notes-column {
    max-width: 50%;
}

/* Persönliche Notizen immer rechts positionieren wenn allein */
.notes-container.single-personal-note {
    justify-content: flex-end;
}

/* Andere Notizen links positionieren wenn allein */
.notes-container.single-song-note,
.notes-container.single-setlist-note {
    justify-content: flex-start;
}

.notes-header {
    background: var(--gray-200);
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-300);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-header .btn {
    font-size: 11px;
    padding: 2px 6px;
    line-height: 1.2;
}

.notes-content {
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
}

/* Verschiedene Farben für die Notizen-Typen */
.song-notes-column .notes-header {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
}

.setlist-notes-column .notes-header {
    background: var(--alert-warning-bg);
    color: var(--alert-warning-text);
}

.personal-notes-column .notes-header {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
}

.recordings-column .notes-header {
    background: var(--gray-200);
    color: var(--gray-700);
}


/* Styling für Aufnahmen in der neuen Spalte */
.recordings-column .recording-item {
    margin-bottom: 12px;
}

.recordings-column .recording-item:last-child {
    margin-bottom: 0;
}

.recordings-column .recording-filename {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
}

.recordings-column .recording-audio {
    width: 100%;
    height: 32px;
}

/* Übergangsnotizen zwischen Songs - gleicher Stil wie Songs */
.song-transition-display {
    display: flex;
    align-items: center;
    padding: var(--spacing-4);
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    gap: 20px;
}


/* Responsive Verhalten - aber nicht im Print */
@media screen and (max-width: 768px) {
    .notes-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .notes-column {
        min-width: 100%;
    }
}


.sheet-link {
    display: inline-block;
    margin-right: 10px;
    padding: 4px 8px;
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
}

.sheet-link:hover {
    background: var(--gray-100);
    color: var(--text-color);
    text-decoration: none;
}


.recording-item {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
}

.recording-item:last-child {
    margin-bottom: 0;
}


.recording-filename {
    font-weight: 600;
    color: var(--text-dark);
    flex-grow: 1;
}


.recording-audio {
    width: 100%;
    height: 40px;
}

/* Verstecke das alte Layout in der normalen Ansicht */
.setlist-song-entry .song-details,
.setlist-song-entry .song-meta {
    display: none;
}

/* Setlist-Song-Entry soll vertikal statt horizontal ausgerichtet sein */
.setlist-view .setlist-song-entry {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
}

/* Print Styles für Setlists */
@media print {
    .header,
    .btn,
    .filter-bar,
    .alert {
        display: none !important;
    }
    
    body {
        background: white !important;
        background-color: white !important;
    }
    
    .main {
        padding: 0;
        margin: 0;
        background: white !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
        margin: 0;
        background: white !important;
    }
    
    .setlist-song-entry {
        break-inside: avoid;
        background: white !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 3px !important;
        margin-bottom: 6px !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Song-Header für Print beibehalten - kompakter */
    .normal-song-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        background: var(--gray-100) !important;
        border-bottom: 1px solid var(--gray-200) !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Notizen-Container für Print beibehalten - kompakter */
    .notes-container {
        display: flex !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 6px 8px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    
    .notes-column {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        background: var(--light-gray) !important;
        border-radius: 4px !important;
        overflow: hidden !important;
        break-inside: avoid !important;
        font-size: 12px !important;
    }
    
    /* Wenn nur eine Notiz vorhanden ist - maximal 50% Breite in Print */
    .notes-container.single-note .notes-column {
        max-width: 50% !important;
    }
    
    /* Persönliche Notizen immer rechts positionieren wenn allein in Print */
    .notes-container.single-personal-note {
        justify-content: flex-end !important;
    }
    
    /* Andere Notizen links positionieren wenn allein in Print */
    .notes-container.single-song-note,
    .notes-container.single-setlist-note {
        justify-content: flex-start !important;
    }
    
    
    
    
    
    /* Spezifische Header-Farben auch im Print */
    .song-notes-column .notes-header {
        background: var(--alert-info-bg) !important;
        color: var(--alert-info-text) !important;
    }
    
    .setlist-notes-column .notes-header {
        background: var(--alert-warning-bg) !important;
        color: var(--alert-warning-text) !important;
    }
    
    .personal-notes-column .notes-header {
        background: var(--alert-success-bg) !important;
        color: var(--alert-success-text) !important;
    }
    
    /* Sicherstellen dass alle Notizen-Elemente sichtbar sind - sehr explizit */
    .setlist-song-entry .notes-container,
    .setlist-song-entry .notes-column,
    .setlist-song-entry .notes-header,
    .setlist-song-entry .notes-content,
    .setlist-song-entry .song-notes-column,
    .setlist-song-entry .setlist-notes-column, 
    .setlist-song-entry .personal-notes-column {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .setlist-song-entry .notes-content {
        display: block !important;
    }
    
    /* Notizen-Container explizit als Flexbox */
    .setlist-song-entry .notes-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    
    /* Übergangszeilen für Print beibehalten - kompakter */
    .song-transition-display {
        display: flex !important;
        align-items: center !important;
        padding: 4px 8px !important;
        background: var(--gray-200) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 3px !important;
        margin-bottom: 4px !important;
        box-shadow: none !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        gap: 12px !important;
        break-inside: avoid !important;
    }
    
    
    
    .card {
        box-shadow: none;
        border: none;
        margin-bottom: 8px !important;
    }
    
    /* Überschrift kompakter gestalten */
    .card-title {
        margin-left: 8px !important;
        margin-right: 8px !important;
        margin-top: 4px !important;
        margin-bottom: 2px !important;
        font-size: 1.3rem !important;
        line-height: 1.1 !important;
    }
    
    .card-subtitle {
        margin-left: 8px !important;
        margin-right: 8px !important;
        margin-bottom: 2px !important;
        font-size: 0.85rem !important;
        line-height: 1.0 !important;
    }
    
    /* Setlist-Header kompakter */
    .setlist-header {
        padding-bottom: 0 !important;
        margin-bottom: 4px !important;
        border-bottom: none !important;
    }
    
    /* Setlist-Stats kompakter */
    .setlist-stats,
    .setlist-header-stats {
        margin: 4px 8px !important;
    }
    
    .setlist-stats .badge,
    .setlist-header-stats .badge {
        font-size: 0.8rem !important;
        padding: 2px 6px !important;
    }
    
    /* Print-optimiertes Layout für Songs */
    .setlist-song-entry .song-details {
        width: 100%;
    }
    
    .setlist-song-entry .song-details strong {
        font-size: 20px;
        font-weight: bold;
    }
    
    /* Erste Zeile: Position, Sänger, Tempo, Tonart */
    .setlist-song-entry .song-position {
        font-size: 18px;
        font-weight: bold;
        margin-right: 12px;
    }
    
    .setlist-song-entry .song-meta {
        display: inline-block;
        margin-left: auto;
    }
    
    
    
    
    
    
    
    
    
    /* Verstecke nur Buttons, interaktive Elemente und Aufnahmen im Druck */
    .btn,
    .personalized-notes-btn,
    .song-recordings,
    .recording-item,
    .recording-audio,
    .recordings-list {
        display: none !important;
    }
    
    /* Aufnahmen-Spalte komplett verstecken */
    .setlist-song-entry .recordings-column,
    .notes-container .recordings-column,
    div.recordings-column {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Zeige das normale Layout auch im Print */
    .normal-song-header,
    .notes-container,
    .notes-column,
    .notes-header,
    .notes-content,
    .song-transition-display {
        display: flex !important;
    }
    
    .notes-header {
        display: flex !important;
    
    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    background: var(--gray-200) !important;
    padding: 4px 6px !important;
    border-bottom: 1px solid var(--gray-300) !important;
    font-size: 10px !important;
    justify-content: space-between !important;
    align-items: center !important;
}
    
    .notes-content {
        display: block !important;
    
    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    padding: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}
    
    /* Entfernt - song-notes werden versteckt, nur print-notes werden angezeigt */
    
    /* Lead Vocalist Info */
    .lead-vocalist {
        font-size: 13px !important;
        font-weight: 600 !important;
    }
    
    /* Badges für Tempo/Tonart - größere Schrift */
    .badge {
        font-size: 16px !important;
        font-weight: 700 !important;
        padding: 6px 12px !important;
        border: 2px solid var(--gray-800) !important;
        background: var(--white) !important;
        color: var(--black) !important;
        text-align: center !important;
        border-radius: 4px !important;
    }
    
    
    
    /* Verstecke Sheet-Links und Aufnahmen im Druck */
    .setlist-song-entry a,
    .song-recordings {
        display: none !important;
    }
    
}

/* Mobile Anpassungen für Setlist */
@media (max-width: 768px) {
    
    
    .song-pool,
    .setlist-songs {
        min-height: 300px;
        padding: var(--spacing-3);
    }
    
    .song-pool-item,
    .setlist-song-item {
        flex-direction: column;
        align-items: start;
        gap: var(--spacing-2);
        padding: var(--spacing-3);
    }
    
    /* Mobile Setlist Song Items - Verbessertes Layout */
    .setlist-song-item {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-2);
        padding: var(--spacing-3);
        padding-right: calc(var(--spacing-3) + 40px); /* Platz für Buttons */
        margin-bottom: var(--spacing-3);
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }
    
    .setlist-song-item:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--gray-300);
    }
    
    
    
    .setlist-song-item .drag-handle {
        display: none; /* Drag-Handle verstecken, da Buttons rechts sind */
    }
    
    .setlist-song-item .song-position {
        display: none; /* Position-Badge verstecken */
    }
    
    .setlist-song-item .song-info {
        order: 1;
        flex: 1;
        margin: 0;
        min-width: 0;
        padding: 0;
    }
    
    .setlist-song-item .song-info strong {
        font-size: 0.95rem;
        color: var(--gray-800);
        display: block;
        margin-bottom: var(--spacing-1);
        line-height: 1.3;
    }
    
    .setlist-song-item .song-info strong::before {
        content: attr(data-position) ". ";
        font-weight: 700;
        color: var(--primary-color);
        margin-right: var(--spacing-1);
    }
    
    .setlist-song-item .song-info small {
        font-size: 0.8rem;
        color: var(--gray-500);
    }
    
    
    
    .setlist-song-item .key-label,
    .setlist-song-item .vocalist-label {
        font-size: 0.75rem;
        color: var(--gray-700);
        font-weight: 600;
        min-width: 60px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .setlist-song-item .key-select,
    .setlist-song-item .vocalist-select {
        flex: 1;
        min-width: 0;
        font-size: 0.8rem;
        padding: var(--spacing-1) var(--spacing-2);
        height: 32px;
        background: var(--white) !important;
        color: var(--gray-800) !important;
        border: 1px solid var(--gray-300);
        border-radius: var(--radius-md);
    }
    
    /* Mobile Actions - Vertikal rechts */
    .setlist-song-item .song-actions {
        position: absolute;
        top: var(--spacing-2);
        right: var(--spacing-2);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-1);
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .setlist-song-item .song-actions .btn {
        min-width: 32px;
        height: 32px;
        padding: 0;
        font-size: 0.8rem;
        border-radius: var(--radius-sm);
    }
    
    .setlist-song-entry {
        flex-direction: column;
        align-items: start;
        gap: var(--spacing-2);
        padding: var(--spacing-3);
    }
    
    
    
    
    
    .setlist-song-entry .song-position {
        margin: 0;
    }
    
    .setlist-song-entry .song-details {
        margin: 0;
        width: 100%;
    }
}


.upload-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-2);
}


/* Existing Sheets */
.existing-sheets {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.sheet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-3);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.sheet-item:hover {
    background: var(--gray-100);
}


/* Badge Variations für Speed */
.badge.badge-slow {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
}

.badge.badge-fast {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
}


/* Mobile Anpassungen für Upload */
@media (max-width: 768px) {
    
    
    .upload-icon {
        font-size: 2rem;
    }
    
    
    
    
    
    .sheet-item {
        flex-direction: column;
        align-items: start;
        gap: var(--spacing-2);
    }
    
    
}


.vocalist-label {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);

    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    opacity: 0.8;
    margin: 0;
}

.vocalist-label strong {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

.vocalist-label .badge {
    margin-left: var(--spacing-2);
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

.vocalist-label .text-muted {
    color: var(--gray-600) !important;
    font-size: var(--font-size-sm);
    font-style: italic;
}


/* Setlist Song Items - Verbessertes Design */
.setlist-song-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    padding: var(--spacing-4);
    margin-bottom: var(--spacing-3);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    cursor: move;

    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    color: var(--text-on-color);
}

.setlist-song-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: var(--white);
}

.setlist-song-item.dragging {
    opacity: 0.6;
    transform: rotate(5deg);
}

/* Konsolidiert aus zwei Alt-Definitionen (2026-07-15) — Effektiv-Optik unveraendert */
.drag-handle {
    color: var(--gray-400);
    font-size: 1.2rem;
    cursor: move;
    opacity: 0.7;
    user-select: none;
    padding: 0 var(--spacing-2);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    transition: all 0.2s ease;
}

.drag-handle:hover {
    background: var(--gray-200);
    color: var(--gray-600);
}

.song-position {
    background: var(--primary-color);
    color: var(--text-on-color);
    font-weight: 600; /* Reduziert von 700 auf 600 */
    font-size: 1rem;
    min-width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    text-shadow: var(--shadow-sm);
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-info strong {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500; /* Reduziert von 600 auf 500 */
    display: block;
    margin-bottom: var(--spacing-1);
}

.song-info small {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400; /* Reduziert von 500 auf 400 */
}


.key-label,
.vocalist-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500; /* Reduziert von 600 auf 500 */
    min-width: 60px;
}

.key-select,
.vocalist-select {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white) !important;
    color: var(--text-dark) !important;
    font-weight: 400; /* Reduziert von 500 auf 400 */
    min-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1rem 1rem !important;
    padding-right: 2rem !important;
}

.key-select:focus,
.vocalist-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
    background: var(--white) !important;
}

.key-select option,
.vocalist-select option {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    padding: 0.5rem;
}

/* Spezifische Fixes für verschiedene Browser */
.key-select::-ms-expand,
.vocalist-select::-ms-expand {
    display: none;
}

.key-select:-moz-focusring,
.vocalist-select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--text-dark);
}


.song-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    align-items: center;
}

.song-actions .btn {
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* Setlist Container */
.setlist-songs {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-5);
    min-height: 400px;
    /* Kein max-height und overflow - Setlist wächst dynamisch */
}

.setlist-songs h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-4);
    font-size: 1.3rem;
    font-weight: 700;
}

.setlist-info {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin-bottom: var(--spacing-4);
}


/* Song Pool Items (linke Seite) */
.song-pool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-3) var(--spacing-4);
    margin-bottom: var(--spacing-2);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: move;
    transition: all 0.2s ease;
    user-select: none;
}

.song-pool-item:hover {
    background: var(--light-gray);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);

    /* aus früherem Duplikat übernommen (Verschmelzung 2026-07-16) */
    color: var(--text-on-color);
}

.song-pool-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.song-pool {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    max-height: 95vh;
    min-height: 800px;
    overflow-y: auto;
}

.song-pool h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-3);
    font-size: 1.2rem;
    font-weight: 600;
}


/* Drop Zone Styles */
.setlist-songs.drag-over {
    border-color: var(--primary-color);
    background: var(--alert-info-bg);
}


/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-8);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin: var(--spacing-6) 0;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-4);
}

.empty-state .btn {
    margin-top: var(--spacing-3);
}

/* ============================================
   POSITIONS PAGE - MOBILE STYLES
   ============================================ */
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}
