:root {
    --accent-blue: #007AFF;
    --accent-green: #34C759;
    --accent-red: #ff3b30;

    /* ── Glass Mode (Standard) ── */
    --text-dark: #1D1D1F;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);

    /* ── Gantt Theme Tokens ── */
    --theme-body-bg:          transparent;
    --theme-gantt-bg:         rgba(255,255,255,0.12);
    --theme-gantt-border:     rgba(255,255,255,0.18);
    --theme-header-bg:        rgba(200,217,241,0.55);
    --theme-row-border:       rgba(255,255,255,0.05);
    --theme-row-hover:        rgba(255,255,255,0.05);
    --theme-label-bg:         rgba(210,227,252,0.65);
    --theme-label-text:       rgb(29,29,31);
    --theme-label-sub:        rgba(29,29,31,0.5);
    --theme-timeline-bg:      rgba(255,255,255,0.03);
    --theme-day-text:         rgba(255,255,255,0.65);
    --theme-day-weekend:      rgba(255,255,255,0.25);
    --theme-day-today:        rgba(255,255,255,0.95);
    --theme-day-cell-border:  rgba(255,255,255,0.06);
    --theme-month-text:       rgba(255,255,255,0.55);
    --theme-month-border:     rgba(255,255,255,0.15);
    --theme-zoom-bg:          rgba(200,217,241,0.55);
    --theme-zoom-btn:         rgba(29,29,31,0.55);
    --theme-zoom-btn-hover:   rgba(29,29,31,0.85);
    --theme-modal-bg:         rgba(255,255,255,0.92);
    --theme-input-bg:         rgba(255,255,255,0.7);
    --theme-input-border:     rgba(79,103,115,0.2);
    --theme-popup-bg:         rgba(255,255,255,0.96);
    --theme-today-line:       rgba(255,80,80,0.85);
    --theme-scrollbar:        rgba(255,255,255,0.15);
}

/* ══ WHITE MODE ══════════════════════════════════════════════════════════ */
[data-theme="white"] {
    --glass-bg:               rgba(255,255,255,0.95);
    --glass-border:           rgba(0,0,0,0.08);
    --text-dark:              #1A1A2E;

    --theme-body-bg:          #F0F4F8;
    --theme-gantt-bg:         #FFFFFF;
    --theme-gantt-border:     rgba(0,0,0,0.08);
    --theme-header-bg:        #F7F9FC;
    --theme-row-border:       rgba(0,0,0,0.05);
    --theme-row-hover:        rgba(0,100,220,0.03);
    --theme-label-bg:         #F7F9FC;
    --theme-label-text:       #1A1A2E;
    --theme-label-sub:        rgba(26,26,46,0.45);
    --theme-timeline-bg:      #FFFFFF;
    --theme-day-text:         #4A5568;
    --theme-day-weekend:      #A0AEC0;
    --theme-day-today:        #1A1A2E;
    --theme-day-cell-border:  rgba(0,0,0,0.05);
    --theme-month-text:       #718096;
    --theme-month-border:     rgba(0,0,0,0.06);
    --theme-zoom-bg:          #F7F9FC;
    --theme-zoom-btn:         #4A5568;
    --theme-zoom-btn-hover:   #1A1A2E;
    --theme-modal-bg:         #FFFFFF;
    --theme-input-bg:         #F7F9FC;
    --theme-input-border:     rgba(0,0,0,0.12);
    --theme-popup-bg:         #FFFFFF;
    --theme-today-line:       rgba(220,53,69,0.8);
    --theme-scrollbar:        rgba(0,0,0,0.12);
}

/* ══ DARK MODE ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --glass-bg:               rgba(22,28,36,0.92);
    --glass-border:           rgba(255,255,255,0.06);
    --text-dark:              #E8EAF0;

    --theme-body-bg:          #0D1117;
    --theme-gantt-bg:         #161C24;
    --theme-gantt-border:     rgba(255,255,255,0.06);
    --theme-header-bg:        #1C2333;
    --theme-row-border:       rgba(255,255,255,0.04);
    --theme-row-hover:        rgba(255,255,255,0.03);
    --theme-label-bg:         #1C2333;
    --theme-label-text:       #CDD5E0;
    --theme-label-sub:        rgba(205,213,224,0.4);
    --theme-timeline-bg:      #161C24;
    --theme-day-text:         rgba(205,213,224,0.6);
    --theme-day-weekend:      rgba(205,213,224,0.25);
    --theme-day-today:        #E8EAF0;
    --theme-day-cell-border:  rgba(255,255,255,0.04);
    --theme-month-text:       rgba(205,213,224,0.45);
    --theme-month-border:     rgba(255,255,255,0.06);
    --theme-zoom-bg:          #1C2333;
    --theme-zoom-btn:         rgba(205,213,224,0.6);
    --theme-zoom-btn-hover:   #E8EAF0;
    --theme-modal-bg:         #1C2333;
    --theme-input-bg:         rgba(255,255,255,0.05);
    --theme-input-border:     rgba(255,255,255,0.1);
    --theme-popup-bg:         #1C2333;
    --theme-today-line:       rgba(255,100,100,0.8);
    --theme-scrollbar:        rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background: #003755 url('https://iplanlane.com/media/14731307_rm218-bb-07.webp') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark);
    min-height: 100vh;
    transition: background 0.4s ease, color 0.3s ease;
}

[data-theme="white"] body,
body[data-theme="white"] {
    background: var(--theme-body-bg) !important;
    background-image: none !important;
}

[data-theme="dark"] body,
body[data-theme="dark"] {
    background: var(--theme-body-bg) !important;
    background-image: none !important;
}

/* Zentrale Layout-Zentrierung */
.app-layout { 
    min-height: 100vh; 
    padding: 20px 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    gap: 24px;
}

/* Landing Page Layout */
.landing-layout {
    min-height: 100vh;
    padding: 20px 28px 0px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-x: clip; /* clip statt hidden — erlaubt 100vw-Ausbruch der Children */
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 25px; /* Padding wiederhergestellt */
    width: 100%;
    /*max-width: 1200px;*/
}

.action-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.btn-primary { background: var(--accent-blue); color: #fff; }