body { 
    font-family: 'Inter', sans-serif; 
    overflow-y: scroll; /* Scrollbar immer sichtbar, verhindert Layout-Shift */
}
/* ===== Responsive Reflow Shell (Option A) ===== */
/* Entfernt experimentelle Flex-Shell (Rollback) */
/* html, body height und full-flex wurden entfernt um Überlagerung zu verhindern */
/* Kalender wieder automatische Höhe */
#calendar { height:auto; }
/* ===== Modern Theme Variables ===== */
:root {
    --bg-app: #f1f5f9;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-alt: #0d9488;
    --accent-alt-hover: #0f766e;
    --danger: #dc2626;
    --warn: #f59e0b;
    --ok: #16a34a;
    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px -2px rgba(0,0,0,.12);
}
body.theme-dark {
    --bg-app: #0f172a;
    --bg-surface: #1e293b;
    --border-color: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-alt: #14b8a6;
    --accent-alt-hover: #0d9488;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow-md: 0 4px 16px -2px rgba(0,0,0,.6);
}
body, .calendar-main, #calendar-filterbar .calendar-toolbar { background: var(--bg-app); color: var(--text-primary); }
.theme-dark .bg-white, .theme-dark .calendar-main, .theme-dark .calendar-detail-box, .theme-dark .fc-theme-standard .fc-scrollgrid, .theme-dark .fc-theme-standard td, .theme-dark .fc-theme-standard th { background: var(--bg-surface) !important; border-color: var(--border-color) !important; }
.theme-dark .fc .fc-button-primary { background: var(--accent); border: none; }
.theme-dark .fc .fc-button-primary:hover { background: var(--accent-hover); }
.theme-dark .calendar-detail-box h3 { color: var(--text-primary); }
.theme-dark #calendar-filterbar .filter-group label { background:#1e293b; border-color: var(--border-color); }
.theme-dark #calendar-filterbar .filter-group label:hover { background:#334155; }
.theme-dark .kal-namecell { color: var(--text-primary); }
.theme-dark .kal-right a { background:#334155; }
.theme-dark .kal-right a:hover { background:#475569; }
.theme-dark .calendar-detail-box .row { border-color:#334155; }
.view { display: none; }
.view.active { display: block; }
.modal { display: none; }
.modal.flex { display: flex; }
/* Einheitliche Modal-Zentrierung */
.modal.flex { align-items: center; justify-content: center; }
/* Scroll-Inhalt begrenzen */
.modal.flex > div { max-height: 92vh; overflow-y: auto; }
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.color-button { color: #111827; }
.color-button.selected { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.7); }
/* NEU: Visuelles Feedback für Klick */
.color-button:active {
    transform: scale(0.95);
    filter: brightness(0.9);
    transition: transform 0.1s, filter 0.1s;
}
#optionen-modal-liste button:active {
    transform: scale(0.97);
    filter: brightness(0.95);
    transition: transform 0.1s, filter 0.1s;
}

.status-header-text {
    mix-blend-mode: screen;
    filter: invert(1) grayscale(1) contrast(100);
}
#kunden-vorschlaege {
    position: absolute;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    z-index: 10;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
}
#kunden-vorschlaege div {
    padding: 0.5rem;
    cursor: pointer;
}
#kunden-vorschlaege div:hover {
    background-color: #f3f4f6;
}
/* Dashboard Widget Styling (ANGEPASST) */
.dashboard-widget {
    background-color: white;
    padding: 1rem; /* p-4 (war p-6) */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* shadow-md */
    text-align: center;
}
.dashboard-widget h3 {
    font-size: 0.8rem; /* etwas kleiner als text-sm */
    font-weight: 500; /* font-medium */
    color: #6b7280; /* text-gray-500 */
    margin-bottom: 0.25rem; /* mb-1 (war mb-2) */
}
.dashboard-widget p {
    font-size: 1.5rem; /* text-2xl (kleiner) */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
}
/* Bon Vorschau: Hintergrund auch außerhalb des Druckmodus weiß */
.bon-container {
    background: white;
}

/* Bon Vorschau: Auf dem Bildschirm beide Belege gleich breit darstellen */
.print-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    overflow: auto; /* Scrollen erlauben, wenn Breite/Höhe nicht reicht */
    -webkit-overflow-scrolling: touch;
}
.print-area .bon-container {
    width: 76mm; /* gleiche Breite wie im Druck */
    max-width: 100%;
    margin: 0 auto;
}

/* Quittungsmodal: Inhalt auf Viewport begrenzen und scrollbar machen */
#receipt-modal {
    overflow: auto; /* sowohl x als auch y */
}
#receipt-modal-content {
    max-height: 90vh;
    overflow: auto; /* Buttons unten immer erreichbar */
}
/* Dashboard Liste (jetzt Grid) - Styling wird direkt im HTML gesetzt */
 /* NEU: Styling für Tabs */
.tab-button {
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    background-color: #e5e7eb; /* gray-200 */
    color: #4b5563; /* gray-600 */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
 .tab-button.active {
    background-color: white;
    color: #1f2937; /* gray-800 */
    font-weight: 600; /* font-semibold */
    border-color: #d1d5db; /* gray-300 */
 }
.tab-content {
    display: none;
    border: 1px solid #d1d5db; /* gray-300 */
    border-top: none;
    padding: 1.5rem; /* p-6 */
    background-color: white;
    border-radius: 0 0 0.5rem 0.5rem; /* rounded-b-lg */
}
.tab-content.active {
    display: block;
}

/* Mobile-only UI hints/buttons: standardmäßig ausblenden, auf Touch-Geräten einblenden */
.mobile-only { display: none; }
body.is-touch .mobile-only { display: inline-flex; }

/* Mobile Optimierungen für Auftragskarten */
@media (max-width: 640px) {
    .auftrag-card {
        min-height: auto;
        margin-bottom: 0.75rem;
    }
    
    /* App-Container auf Mobile volle Breite nutzen - minimaler Abstand */
    #app-container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    /* Auftrags- und Kunden-Listen: minimaler Gap auf Mobile */
    #auftrags-liste {
        gap: 0.375rem !important;
        padding: 0 !important;
    }
    
    #kunden-liste {
        gap: 0.375rem !important;
        padding: 0 !important;
    }
    
    /* Header auf Mobile kompakter */
    header {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
    
    /* View-Container: minimaler Padding */
    .view {
        padding: 0.25rem;
    }
    
    /* Suchfelder und Filter: exakt gleiche Breite wie Auftragskarten */
    .view .bg-white {
        padding: 0.5rem !important;
        margin: 0.25rem;
        border-radius: 0.5rem;
    }
    
    /* Suchfeld-Container: gleiche Margins wie Grid */
    .flex.flex-col.md\\:flex-row.justify-between.items-center.mb-4.gap-4 {
        margin-bottom: 0.75rem !important;
        gap: 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Suchfelder: exakt gleiche Breite wie Auftragskarten */
    #suche-auftrag, #suche-kunde {
        padding: 0.5rem;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Filter-Dropdown: exakt gleiche Breite wie Auftragskarten */
    #filter-status {
        padding: 0.5rem;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Container für Suchbereich: gleiche Breite wie Auftragsliste */
    #auftraege-ansicht .bg-white,
    #kunden-ansicht .bg-white {
        padding: 0.25rem !important;
        margin: 0.25rem !important;
    }
    
    /* Flex-Container für Such-/Filter-Bereich: volle Breite */
    .flex-grow.flex.flex-col.md\\:flex-row.gap-2 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Status-Buttons auf Mobile optimiert */
    .status-buttons-mobile {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .status-buttons-mobile button {
        min-height: 2.5rem;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Zahlungsbereich-Button: an Kartenlayout angepasst */
    .flex.items-center.justify-between.mb-4 button {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        min-height: 2rem !important;
        border-radius: 0.375rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* Zahlungsstatus-Text auf Mobile kompakter */
    .flex.items-center.justify-between.mb-4 span {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
    
    /* Zahlungsbereich: kompaktere Abstände */
    .flex.items-center.justify-between.mb-4 {
        margin-bottom: 0.5rem !important;
        gap: 0.5rem !important;
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }
}

/* ================= Kasse Schritte ================= */
.kasse-step { 
    background: var(--bg-surface); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); 
    padding: 1rem 1.25rem; 
    position: relative;
}
.kasse-step + .kasse-step { margin-top: 1.25rem; }
.kasse-step-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.kasse-step-header h3 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); }
.kasse-step .step-hint { font-size: 11px; color: var(--text-secondary); margin-bottom: .5rem; }
.step-badge { 
    display: inline-flex; width: 28px; height: 28px; border-radius: 50%; 
    background: var(--accent); color: #fff; font-weight: 600; 
    align-items: center; justify-content: center; font-size: .85rem; 
    box-shadow: var(--shadow-sm);
}
.theme-dark .kasse-step { background: var(--bg-surface); }
.theme-dark .step-badge { background: var(--accent-hover); }
.kasse-connector { 
    display: flex; align-items: center; justify-content: center; 
    margin: .75rem 0 .5rem; color: var(--text-secondary); font-size: 12px;
}
.kasse-connector:before, .kasse-connector:after { content: ''; flex:1; height:1px; background: var(--border-color); margin: 0 8px; }


/* Tablet-Optimierungen */
@media (min-width: 641px) and (max-width: 1024px) {
    .auftrag-card {
        min-height: 200px;
    }
    
    /* Zahlungsbereich-Button auf Tablet */
    .flex.items-center.justify-between.mb-4 button {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
        min-height: 2.25rem !important;
        border-radius: 0.5rem !important;
    }
    
    .flex.items-center.justify-between.mb-4 span {
        font-size: 0.875rem !important;
    }
    
    .flex.items-center.justify-between.mb-4 {
        margin-bottom: 0.75rem !important;
        gap: 0.75rem !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
}

/* Desktop-Optimierungen */
@media (min-width: 1025px) {
    /* Zahlungsbereich-Button auf Desktop */
    .flex.items-center.justify-between.mb-4 button {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.875rem !important;
        min-height: 2.5rem !important;
        border-radius: 0.5rem !important;
        font-weight: 600 !important;
    }
    
    .flex.items-center.justify-between.mb-4 span {
        font-size: 1rem !important;
    }
    
    .flex.items-center.justify-between.mb-4 {
        margin-bottom: 1rem !important;
        gap: 1rem !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
}


@media print {
    body * {
        visibility: hidden;
    }
    .print-area, .print-area * {
        visibility: visible;
    }
    #receipt-modal, #receipt-modal-content {
        visibility: visible;
        position: static !important;
        background: white !important;
    }
    
    /* Thermal Printer 76mm (Standard) */
    body.print-thermal-76mm #receipt-modal-content {
        width: 76mm;
        max-width: 76mm;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        background: white !important;
    }
    body.print-thermal-76mm .bon-container {
        page-break-after: always;
        width: 100%;
        margin: 0;
        padding: 2mm;
        border: none !important;
        box-sizing: border-box;
        background: white !important;
        font-size: 10pt;
    }
    
    /* Thermal Printer 58mm (Klein) */
    body.print-thermal-58mm #receipt-modal-content {
        width: 58mm;
        max-width: 58mm;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        background: white !important;
    }
    body.print-thermal-58mm .bon-container {
        page-break-after: always;
        width: 100%;
        margin: 0;
        padding: 1.5mm;
        border: none !important;
        box-sizing: border-box;
        background: white !important;
        font-size: 8.5pt;
    }
    
    /* A4 Printer */
    body.print-a4 #receipt-modal-content {
        width: 210mm;
        max-width: 210mm;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        background: white !important;
    }
    body.print-a4 .bon-container {
        page-break-after: always;
        width: 100%;
        max-width: 190mm;
        margin: 10mm auto;
        padding: 10mm;
        border: 1px solid #ccc !important;
        box-sizing: border-box;
        background: white !important;
        font-size: 11pt;
    }
    
    .bon-container:last-child {
        page-break-after: auto;
    }
    .no-print {
        display: none !important;
    }
}

/* ========================= Kalender Responsive Styles ========================= */
/* Toolbar Grundlayout */
#calendar-filterbar { position: relative; }
#calendar-filterbar .calendar-toolbar { align-items: stretch; }
#calendar-hamburger-dropdown { position: absolute; right: 0; top: 100%; margin-top: 8px; }
.calendar-search { min-width:160px; position:relative; }
.calendar-search input { width:100%; padding:6px 8px 6px 28px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-sm); font-size:12px; color:var(--text-primary); }
.calendar-search svg { position:absolute; top:50%; left:8px; width:14px; height:14px; transform:translateY(-50%); color:var(--text-secondary); }
.filter-chip-count { background:var(--accent); color:#fff; padding:0 6px; border-radius:999px; font-size:10px; line-height:16px; display:inline-flex; align-items:center; margin-left:4px; }
.theme-dark .filter-chip-count { background:var(--accent-hover); }

/* Event Card Feintuning */
.fc .fc-timegrid-event, .fc .fc-daygrid-event { border-radius: 8px !important; overflow: hidden; }
.fc .fc-list-event { border-radius: 6px; }
.fc-custom-ev { font-size: 11px; }
@media (min-width: 640px) { .fc-custom-ev { font-size: 12px; } }

/* List View Custom Grid Layout */
.kal-list-row { display: grid; grid-template-columns: 1fr 120px 80px; align-items: center; gap: 8px; }
@media (max-width:640px){ .kal-list-row { grid-template-columns: 1fr 110px 70px; gap:6px; } }
.kal-mid { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; line-height:1.1; }
.kal-mid span { width:100%; }
.kal-right { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.kal-right a { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:6px; background:#f1f5f9; }
.kal-right a:hover { background:#e2e8f0; }
.kal-right a svg { width:18px; height:18px; }
.kal-namecell { min-width:0; display:flex; align-items:center; font-size:0.85rem; font-weight:600; color:#334155; }
.kal-namecell .kal-order-number { font-weight:600; color:#64748b; margin-right:6px; font-size:0.75rem; }
@media (min-width:640px){ .kal-namecell { font-size:0.9rem; } .kal-namecell .kal-order-number { font-size:0.75rem; } }
.kal-namecell .kal-extra { margin-left:6px; font-size:0.65rem; color:#475569; font-weight:500; }
.kal-labels { margin-left:6px; font-size:0.6rem; color:#7e22ce; font-weight:500; white-space:nowrap; }

/* Desktop split layout for calendar + detail panel */
/* Kalender nutzt jetzt volle Breite - kein Split-Layout mehr */
.calendar-detail-box { background:#fff; border:1px solid #e2e8f0; border-radius:8px; box-shadow:0 4px 12px -2px rgba(0,0,0,.08); padding:12px 16px; width:100%; }
.calendar-detail-box h3 { font-size:1rem; font-weight:600; margin-bottom:8px; color:#334155; }
.calendar-detail-box .row { display:flex; justify-content:space-between; padding:4px 0; font-size:0.75rem; border-bottom:1px solid #f1f5f9; }
.calendar-detail-box .row span:last-child { font-weight:600; color:#0f172a; }
.calendar-detail-floating { position:absolute; left:0; right:0; transition:top 0.28s cubic-bezier(0.25,0.8,0.25,1); }
.calendar-detail-close { position:absolute; top:6px; right:8px; font-size:20px; line-height:1; cursor:pointer; color:#64748b; }
.calendar-detail-close:hover { color:#0f172a; }

/* Tooltip für Event Hover */
.kal-hover-tip { position:fixed; z-index:2000; pointer-events:none; background:var(--bg-surface); color:var(--text-primary); border:1px solid var(--border-color); padding:6px 8px; font-size:11px; border-radius:8px; box-shadow:var(--shadow-md); max-width:240px; opacity:0; transform:translateY(-4px); transition:opacity .15s ease, transform .15s ease; }
.kal-hover-tip.visible { opacity:1; transform:translateY(0); }
.kal-hover-tip h4 { margin:0 0 4px; font-size:12px; font-weight:600; }
.kal-hover-tip .line { display:flex; justify-content:space-between; gap:6px; }
.kal-hover-tip .labels { margin-top:4px; font-size:10px; color:#7e22ce; }

/* Year Grid Scroll Snap für Mobile */
.year-grid { scroll-snap-type: y proximity; }
.year-grid > div { scroll-snap-align: start; }
@media (max-width: 640px) {
    .year-grid { display: block; max-height: 70vh; overflow-y: auto; }
    .year-grid > div { margin-bottom: 12px; }
}

/* Agenda Overlay Day Blocks (Scroll-Snap horizontal falls benötigt) */
.agenda-day-block { scroll-snap-align: start; }

/* Leichte Performance-Optimierung: Containment für große Kalenderbereiche */
#calendar, #year-grid-overlay, #agenda-overlay { contain: layout style paint; }

/* Kleinere Buttons im Header auf Mobile enger darstellen */
@media (max-width: 640px) {
    .fc .fc-button { padding: 0 6px; font-size: 11px; border-radius: 6px; }
    .fc .fc-toolbar-title { font-size: 1rem; }
}
/* Custom disclosure arrow for settings/details */
details.settings-group > summary { list-style: none; }
details.settings-group > summary::-webkit-details-marker { display: none; }
.disclosure-arrow { width: 0.75rem; height: 0.75rem; display: inline-block; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s ease; margin-right: 2px; }
details[open] > summary .disclosure-arrow { transform: rotate(135deg); }
/* Flatpickr Tages-Auslastung Farbklassen */
/* Tagesfarben jetzt als voller Gradient (links hell → rechts kräftig) */
.flatpickr-day { position:relative; --load-pct: 0; border-radius: 6px; overflow:hidden; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.inRange { border-radius: 6px !important; }
.flatpickr-day[data-load]::after { display:none !important; content:none !important; }
/* Tageswert Overlay (Summe-Modus) */
.flatpickr-day[data-day-value]::after {
    content: attr(data-day-value);
    position: absolute;
    bottom: 2px; right: 4px;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    color: #0f172a;
    text-shadow: 0 1px 2px rgba(255,255,255,.65);
    pointer-events: none;
}
.theme-dark .flatpickr-day[data-day-value]::after {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
/* Freie Tage leichtes Grün Grundfläche */
.flatpickr-day.fp-day-free:not(.selected){ background:#f0fdf4 !important; color:#065f46 !important; }
/* Gradient Overlay für belegte Tage */
.flatpickr-day::before {
    content:''; position:absolute; inset:2px; border-radius:4px; background:transparent;
    transform-origin:left center; transform:scaleX(var(--load-pct)); pointer-events:none;
}
.flatpickr-day.fp-day-green::before { background:linear-gradient(to right, rgba(34,197,94,.25), rgba(34,197,94,.75)); }
.flatpickr-day.fp-day-yellow::before { background:linear-gradient(to right, rgba(245,158,11,.25), rgba(245,158,11,.75)); }
.flatpickr-day.fp-day-red::before { background:linear-gradient(to right, rgba(239,68,68,.25), rgba(239,68,68,.78)); }
.theme-dark .flatpickr-day.fp-day-free:not(.selected){ background:#052e12 !important; color:#9ef7c2 !important; }
.theme-dark .flatpickr-day.fp-day-green::before { filter:brightness(.9) contrast(1.1); }
.theme-dark .flatpickr-day.fp-day-yellow::before { filter:brightness(.9) contrast(1.1); }
.theme-dark .flatpickr-day.fp-day-red::before { filter:brightness(.9) contrast(1.1); }
/* Größere Kalender-Variante */
.flatpickr-calendar.fp-large { width: 378px; height: auto; font-size: 15px; }
.flatpickr-calendar.fp-large .flatpickr-months { height: 58px; }
.flatpickr-calendar.fp-large .flatpickr-months .flatpickr-month { font-size: 18px; }
.flatpickr-calendar.fp-large .flatpickr-months .flatpickr-month .flatpickr-current-month { padding-top: 8px; }
.flatpickr-calendar.fp-large .flatpickr-days { width: 100% !important; padding: 0; }
.flatpickr-calendar.fp-large { --day-size: 54px; --day-gap: 0px; }
.flatpickr-calendar.fp-large .dayContainer { width:100% !important; max-width:none !important; display:grid; grid-template-columns:repeat(7, var(--day-size)); grid-auto-rows: var(--day-size); gap: var(--day-gap); padding: var(--day-gap); }
.flatpickr-calendar.fp-large .flatpickr-day { width:100% !important; height:100% !important; max-width:none !important; min-width:0 !important; line-height:1 !important; margin:0 !important; padding:0 !important; box-sizing:border-box; font-size:15px; display:flex; align-items:center; justify-content:center; }
/* Gleichmäßiger Abstand zwischen Tagen (horizontal und vertikal) */
.flatpickr-calendar.fp-large .flatpickr-day { border-radius: 6px; border: none; box-sizing: border-box; }
.flatpickr-calendar.fp-large .flatpickr-weekday { font-size:13px; }
.flatpickr-calendar.fp-large .flatpickr-weekdays,
.flatpickr-calendar.fp-large .flatpickr-weekdaycontainer { width:100% !important; }
.flatpickr-calendar.fp-large .flatpickr-weekdaycontainer { display:grid; grid-template-columns:repeat(7, var(--day-size)); }
.flatpickr-calendar.fp-large .flatpickr-weekday { text-align:center; }
.flatpickr-calendar.fp-large .flatpickr-time { height: 54px; }
.flatpickr-calendar.fp-large .numInputWrapper input, .flatpickr-calendar.fp-large .flatpickr-time input { font-size:15px; }
/* Kleinere Geräte: etwas zurückskalieren damit nichts abgeschnitten wird */
@media (max-width: 480px) {
    .flatpickr-calendar.fp-large { width: 340px; height: auto; font-size:14px; }
    .flatpickr-calendar.fp-large { --day-size: 48px; --day-gap: 0px; }
    .flatpickr-calendar.fp-large .dayContainer { grid-template-columns:repeat(7, var(--day-size)); grid-auto-rows: var(--day-size); gap: var(--day-gap); padding: var(--day-gap); }
    .flatpickr-calendar.fp-large .flatpickr-day { width:100% !important; height:100% !important; max-width:none !important; min-width:0 !important; font-size:13px; margin:0 !important; padding:0 !important; box-sizing:border-box; }
    .flatpickr-calendar.fp-large .flatpickr-months { height:58px; }
}
/* Nur aktuelle Monats-Tage anzeigen (verhindert visuelle Verwirrung durch Vormonat/Nachmonat) */
.flatpickr-calendar.fp-large .flatpickr-day.prevMonthDay,
.flatpickr-calendar.fp-large .flatpickr-day.nextMonthDay { visibility:hidden; }
/* Zeitauswahl: Neutral ohne Auslastungs-Färbung */
.flatpickr-calendar.fp-large .flatpickr-time { padding-bottom:4px; }
.flatpickr-calendar.fp-large .flatpickr-time .numInputWrapper { background:#fff; position: relative; overflow: visible; }
.theme-dark .flatpickr-calendar.fp-large .flatpickr-time .numInputWrapper { background:#1e293b; }
.flatpickr-calendar.fp-large .flatpickr-time .numInputWrapper input { background:#fff !important; padding-right: 26px; }
.theme-dark .flatpickr-calendar.fp-large .flatpickr-time .numInputWrapper input { background:#1e293b !important; }
.flatpickr-calendar.fp-large .flatpickr-time .numInputWrapper span.arrowUp,
.flatpickr-calendar.fp-large .flatpickr-time .numInputWrapper span.arrowDown {
    position: absolute; right: 0; width: 24px; pointer-events: auto; z-index: 3; opacity: 1;
}
.flatpickr-calendar.fp-large .flatpickr-time .numInputWrapper span.arrowUp { top: 0; height: 50%; }
.flatpickr-calendar.fp-large .flatpickr-time .numInputWrapper span.arrowDown { bottom: 0; height: 50%; }