:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 60px;
    margin-bottom: 30px;
    background: #EAEAEA !important;
    padding: 20px;
    border-radius: var(--border-radius);
    color: var(--dark-color);
    box-shadow: var(--box-shadow);
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

header h1 i {
    color: var(--warning-color);
}

.file-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-input-label {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-input-label:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

#excel-file {
    display: none;
}

#file-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.search-container {
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

#global-search {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #9C27B0;
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

#global-search:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.3);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #2B79EE;
}

/* Toggle-Button für mobile Filter-Gruppe (nur in mobilen Ansicht aktiv) */
#mobile-filter-toggle {
    display: none; /* Desktop: nicht sichtbar */
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: #2B79EE;
    text-align: left;
    margin-bottom: 10px;
}

#mobile-filter-toggle span {
    flex: 1;
}

.filter-toggle-icon {
    transition: transform 0.3s ease;
    margin-left: 10px;
}

/* Mobile Filter-Gruppe (Tag, Datum, Uhrzeit, Thema) */
.mobile-filter-group {
    display: contents; /* Desktop: Inhalte direkt im Flex-Container */
    width: 100%;
}

/* Desktop: Alle Filter immer sichtbar */
@media (min-width: 769px) {
    #mobile-filter-toggle {
        display: none !important; /* Button nicht sichtbar */
    }
    
    .mobile-filter-group {
        display: contents !important; /* Inhalte direkt im Flex-Container, Filter nebeneinander */
    }
}

/* Mobile: Aufklappbare Filter-Gruppe */
@media (max-width: 768px) {
    /* Toggle-Button sichtbar machen */
    #mobile-filter-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Filter-Gruppe: Standardmäßig komplett zugeklappt */
    .mobile-filter-group {
        display: none !important;
    }
    
    /* Wenn aufgeklappt: Filter-Gruppe anzeigen */
    .mobile-filter-group.mobile-filter-expanded {
        display: block !important;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    #mobile-filter-toggle:hover {
        background: #e9ecef;
    }
    
    #mobile-filter-toggle:active {
        background: #dee2e6;
    }
    
    .filter-toggle-icon {
        display: inline-block;
        transition: transform 0.3s ease;
    }
    
}

.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
}

.reset-button {
    background-color: #2B79EE;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
}

.reset-button:hover {
    background-color: #1e5fc7;
    transform: translateY(-2px);
}

.table-container {
    background-color: white;
    border-radius: var(--border-radius);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 20px;
}

/* DataTables Scroll-Container für scrollX */
.dataTables_scrollHead {
    background: linear-gradient(to right, #0B6DC0, #004BA8);
}

.dataTables_scrollHeadInner {
    width: 100% !important;
}

.dataTables_scrollHeadInner table {
    width: 100% !important;
}

.dataTables_scrollBody {
    overflow-x: auto !important;
}

table.dataTable {
    border-collapse: collapse !important;
    width: 100% !important;
    min-width: 700px; /* sorgt für horizontales Scrollen auf kleinen Bildschirmen */
    margin: 0;
}

/* Sicherstellen, dass Header und Body die gleiche Breite haben */
.dataTables_scrollHead table,
.dataTables_scrollBody table {
    width: 100% !important;
    margin: 0 !important;
}

table.dataTable thead th {
    background: linear-gradient(to right, #0B6DC0, #004BA8) !important;
    color: white !important;
    padding: 15px 10px;
    border: none !important;
    text-align: left;
    vertical-align: middle;
    position: relative;
}

/* Checkbox-Spalte im Header zentrieren */
table.dataTable thead th:first-child {
    text-align: center;
    padding: 15px 5px;
    width: 40px;
}

/* Sicherstellen, dass alle Header-Zellen den gleichen Hintergrund haben */
.dataTables_scrollHead thead th,
table.dataTable thead th {
    background: linear-gradient(to right, #0B6DC0, #004BA8) !important;
}

table.dataTable tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

table.dataTable tbody tr:hover {
    background-color: rgba(78, 84, 200, 0.1);
}

/* Bearbeitete Zeilen markieren */
table.dataTable tbody tr.row-edited {
    background-color: #fff3cd !important; /* Gelber Hintergrund für bearbeitete Zeilen */
    border-left: 4px solid #ffc107; /* Gelbe linke Markierung */
}

table.dataTable tbody tr.row-edited:hover {
    background-color: #ffe69c !important; /* Etwas dunkleres Gelb beim Hover */
}

/* Neue Zeilen markieren */
table.dataTable tbody tr.row-new {
    background-color: #e3f2fd !important; /* Blauer Hintergrund für neue Zeilen */
    border-left: 4px solid #2196F3; /* Blaue linke Markierung */
}

table.dataTable tbody tr.row-new:hover {
    background-color: #bbdefb !important; /* Etwas dunkleres Blau beim Hover */
}

table.dataTable tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

/* Checkbox-Spalte im Body zentrieren */
table.dataTable tbody td:first-child {
    text-align: center;
    padding: 12px 5px;
}

.dataTables_info, .dataTables_paginate {
    margin-top: 15px;
}

.dataTables_paginate .paginate_button {
    padding: 8px 12px;
    margin: 0 3px;
    border-radius: var(--border-radius);
    background-color: #f0f0f0;
    color: var(--dark-color) !important;
    border: none !important;
}

.dataTables_paginate .paginate_button.current {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white !important;
}

.dataTables_paginate .paginate_button:hover {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(78, 84, 200, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }
    
    body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
        margin: 0;
        padding: 0;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
        margin: 0;
        overflow-x: hidden;
    }
    
    header {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        padding-left: 10px;
        padding-right: 10px;
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
        box-sizing: border-box;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .filter-container {
        box-sizing: border-box;
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        padding: 15px 10px;
        margin-left: 15px;
        margin-right: 15px;
        overflow-x: hidden;
    }
    
    .dataTables_wrapper {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
        overflow-x: hidden;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .table-container {
        box-sizing: border-box;
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
        /* overflow-x: auto bleibt für Tabellen-Scroll */
    }
    
    /* Tabelle selbst kann scrollen, aber Container nicht */
    .table-container > table {
        max-width: 100%;
    }
    
    /* Alle DataTables Elemente */
    .dataTables_wrapper * {
        max-width: 100%;
    }
    
    /* Footer */
    footer {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    /* Search-Container */
    .search-container {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Volltextsuche schmaler */
    .search-box {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    #global-search {
        box-shadow: none !important; /* Schatten entfernen für mobile */
        padding-left: 40px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    #global-search:focus {
        box-shadow: 0 0 0 2px rgba(156, 39, 176, 0.2) !important; /* Kleinerer Schatten beim Focus */
    }
    
    /* DataTables Scroll-Container begrenzen */
    .dataTables_scrollHead,
    .dataTables_scrollBody {
        max-width: 100%;
        overflow-x: auto;
    }
    
    .dataTables_scrollHeadInner,
    .dataTables_scrollBody table {
        max-width: 100%;
    }
    
    .header-logo {
        height: 45px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    /* Button-Container für Export-Buttons - zentriert */
    .filter-group > div {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    /* Export-Buttons gleich groß machen auf mobilen Geräten - überschreibt reset-button */
    #export-ics,
    #export-csv,
    #export-qr-feed,
    #cart-button,
    #help-button {
        width: auto !important;
        min-width: 120px !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        flex: 0 0 auto;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    /* Icons auf mobilen Geräten */
    #export-ics i,
    #export-csv i,
    #export-qr-feed i,
    #cart-button i,
    #help-button i {
        font-size: 16px !important;
    }
    
    /* Mobile Layout: 3 Reihen */
    @media (max-width: 480px) {
        /* Button-Container: Erzwinge 3 Reihen */
        .filter-group > div {
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 6px !important;
        }
        
        /* Überschreibe reset-button width für alle Buttons */
        .filter-group > div > button,
        .filter-group > div > div {
            width: auto !important;
        }
        
        /* Export-Buttons in mobilen Ansicht ausblenden (werden im Cart-Popup angezeigt) */
        #export-ics,
        #export-csv,
        #export-qr-feed {
            display: none !important;
        }
        
        /* Warenkorb und Hilfe nebeneinander, gleich groß */
        .filter-group > div > div[style*="position:relative"],
        #help-button {
            width: calc(50% - 3px) !important;
            min-width: 0 !important;
            max-width: calc(50% - 3px) !important;
            flex: 0 0 calc(50% - 3px) !important;
        }
        
        #cart-button {
            width: 100% !important; /* Volle Breite des Wrapper-Divs */
            min-width: 0 !important;
            max-width: 100% !important;
            padding: 12px 10px !important;
            font-size: 12px !important;
        }
        
        #help-button {
            padding: 12px 10px !important;
            font-size: 12px !important;
        }
        
        /* Icons größer auf kleinen Bildschirmen */
        #cart-button i,
        #help-button i {
            font-size: 16px !important;
            margin-right: 4px !important;
        }
        
    }
    
    /* Auf extra kleinen Bildschirmen: etwas kleiner */
    @media (max-width: 360px) {
        /* Erste Reihe: ICS Export, CSV Export */
        #export-ics,
        #export-csv {
            width: calc(50% - 3px) !important;
            padding: 10px 8px !important;
            font-size: 11px !important;
        }
        
        /* Zweite Reihe: QR-Feed, Warenkorb */
        #export-qr-feed {
            width: calc(50% - 3px) !important;
            padding: 10px 8px !important;
            font-size: 11px !important;
        }
        
        .filter-group > div > div[style*="position:relative"] {
            width: calc(50% - 3px) !important;
        }
        
        #cart-button {
            width: 100% !important;
            padding: 10px 8px !important;
            font-size: 11px !important;
        }
        
        /* Dritte Reihe: Hilfe (volle Breite) */
        #help-button {
            width: 100% !important;
            padding: 10px 8px !important;
            font-size: 11px !important;
        }
        
        #export-ics i,
        #export-csv i,
        #export-qr-feed i,
        #cart-button i,
        #help-button i {
            font-size: 14px !important;
            margin-right: 3px !important;
        }
    }
    
    /* reset-button width für Export-Buttons wird von spezifischen Regeln oben gesetzt */
    /* reset-button nur für andere Buttons (z.B. Filter zurücksetzen) */
    .reset-button:not(#export-ics):not(#export-csv):not(#export-qr-feed):not(#cart-button):not(#help-button) {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for rows */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Custom styling for select dropdowns */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e54c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    padding-right: 30px !important;
}

/* Highlight effect for search matches */
.highlight {
    background-color: rgba(255, 220, 0, 0.4);
    padding: 2px;
    border-radius: 3px;
}

/* Hilfe-Modal */
#help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.help-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.help-modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.help-modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.help-modal-content h2 {
    margin: 0 0 25px 0;
    color: #2B79EE;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-section {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.help-section-ics {
    border-left-color: #00C48C;
}

.help-section-csv {
    border-left-color: #FFA500;
}

.help-section-qr {
    border-left-color: #FF3366;
}

.help-section:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.help-section h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.help-section p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 1rem;
}

.help-tip {
    margin-top: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.95rem;
}

.help-tip strong {
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .help-modal-content {
        margin: 20px;
        padding: 20px;
        max-height: 90vh;
    }
    
    .help-modal-content h2 {
        font-size: 1.5rem;
    }
}

/* x-editable Anpassungen */
.editable-click {
    cursor: pointer;
    border-bottom: 1px dashed #2B79EE;
    color: #2B79EE;
}

.editable-click:hover {
    background-color: rgba(43, 121, 238, 0.1);
}

.editable-empty {
    color: #999;
    font-style: italic;
}

.editable-input {
    padding: 6px 10px;
    border: 2px solid #2B79EE;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.editable-buttons {
    margin-top: 5px;
}

.editable-buttons button {
    padding: 6px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.editable-buttons .editable-submit {
    background-color: #2B79EE;
    color: white;
}

.editable-buttons .editable-submit:hover {
    background-color: #1e5fc7;
}

.editable-buttons .editable-cancel {
    background-color: #ccc;
    color: #333;
}

.editable-buttons .editable-cancel:hover {
    background-color: #bbb;
}

/* Admin-Tabs */
.admin-tabs {
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    display: flex;
    gap: 0;
}

.admin-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.admin-tab:hover {
    color: #2B79EE;
    background-color: rgba(43, 121, 238, 0.05);
}

.admin-tab.active {
    color: #2B79EE;
    border-bottom-color: #2B79EE;
}

.admin-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Warenkorb-Dropdown */
#cart-button {
    position: relative;
}

#cart-button:hover {
    background-color: #00a876 !important;
}

#cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #00C48C;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid #00C48C;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
}

#cart-badge.show {
    display: flex;
}

/* Warenkorb-Modal (ähnlich Hilfe-Modal) */
#cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cart-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    margin: 50px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

.cart-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.cart-modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

.cart-header {
    background: linear-gradient(to right, #FF3366, #FF6B9D);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}


#cart-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
}


.cart-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.cart-items {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FF3366;
    transition: all 0.2s;
}

.cart-item:hover {
    background: #e9ecef;
    transform: translateX(-2px);
}

.cart-item-info {
    flex: 1;
    font-size: 14px;
}

.cart-item-info strong {
    color: #2B79EE;
    display: block;
    margin-bottom: 4px;
}

.cart-item-info small {
    color: #666;
    display: block;
}

.cart-item-remove {
    background: #FF3366;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    margin-left: 10px;
}

.cart-item-remove:hover {
    background: #e02855;
    transform: scale(1.1);
}

.cart-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.cart-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0; /* Button immer sichtbar halten */
}

.cart-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-btn-clear {
    background: #dc3545;
}

.cart-btn-clear:hover {
    background: #c82333;
}

.cart-btn-ics {
    background: #00C48C;
}

.cart-btn-ics:hover {
    background: #00a876;
}

.cart-btn-csv {
    background: #FFA500;
}

.cart-btn-csv:hover {
    background: #e69400;
}

/* Cart-Export-Buttons: Standardmäßig ausblenden, nur in mobilen Ansicht anzeigen */
.cart-export-buttons {
    display: none;
}

@media (max-width: 480px) {
    /* Export-Buttons im Cart-Popup anzeigen (nur in mobilen Ansicht, wenn Items vorhanden) */
    .cart-export-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        border-top: 1px solid #eee;
    }
}


