/* --- BASIS & RESET --- */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #EFF6FF;
    --secondary: #0F172A; /* Dunkles Slate */
    --text-main: #334155;
    --text-light: #64748B;
    --bg-white: #FFFFFF;
    --bg-gray: #F8FAFC;
    --radius: 10px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 500; font-size: 0.95rem;
    cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: white; border: 1px solid #E2E8F0; color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-xl { padding: 0.9rem 1.8rem; font-size: 1.1rem; }
.btn-login { background: transparent; color: var(--secondary); font-weight: 600; padding: 0.5rem 1rem; }
.btn-login:hover { background: #F1F5F9; border-radius: 6px; }
.btn-full { width: 100%; }

/* --- HEADER --- */
header {
    height: 80px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid #F1F5F9;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); }
.logo-icon { color: var(--primary); }

nav ul { display: flex; gap: 2rem; align-items: center; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-main); padding: 0.5rem 0; }
.nav-link:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* --- MEGA MENU --- */
.dropdown-wrapper { position: relative; height: 80px; display: flex; align-items: center; }
.mega-menu {
    position: absolute; top: 80px; left: -100px;
    width: 600px;
    background: white; border-radius: 12px; border: 1px solid #E2E8F0;
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.2s ease; padding: 1.5rem;
    z-index: 999;
}
.dropdown-wrapper:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 8px; }
.mega-item:hover { background: #F8FAFC; }
.mega-icon { font-size: 1.5rem; background: #EFF6FF; padding: 8px; border-radius: 8px; line-height: 1; }
.mega-text strong { display: block; font-size: 0.95rem; color: var(--secondary); margin-bottom: 2px; }
.mega-text span { font-size: 0.8rem; color: var(--text-light); line-height: 1.3; display: block; }

/* --- HERO SECTION --- */
.hero { padding: 120px 0 100px; background: white; position: relative; overflow: hidden; }
.hero-bg-blob {
    position: absolute; top: -100px; right: -100px; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; z-index: 0; pointer-events: none;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.badge { display: inline-block; background: #EFF6FF; color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; color: var(--secondary); margin-bottom: 1.5rem; letter-spacing: -1px; }
.highlight { color: var(--primary); }
.hero-text p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2.5rem; max-width: 90%; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; }
.trusted-by { display: flex; align-items: center; gap: 15px; font-size: 0.9rem; color: var(--text-light); }

/* Mockup CSS */
.mockup-card { background: white; border: 1px solid #E2E8F0; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px; position: relative; transform: rotate(-2deg); transition: 0.5s; }
.mockup-card:hover { transform: rotate(0); }
.mockup-header { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; border-bottom: 1px solid #F1F5F9; padding-bottom: 15px; }
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #EF4444; } .yellow { background: #F59E0B; } .green { background: #10B981; }
.mockup-title { font-size: 0.8rem; color: #94A3B8; margin-left: auto; }
.skeleton-sidebar { width: 40px; height: 200px; background: #F1F5F9; border-radius: 8px; float: left; margin-right: 15px; }
.skeleton-main { margin-left: 55px; }
.skeleton-header { height: 30px; width: 100%; background: #F1F5F9; border-radius: 6px; margin-bottom: 15px; }
.skeleton-grid { display: flex; gap: 10px; }
.s-card { height: 60px; flex: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; color: white; }
.c1 { background: #3B82F6; } .c2 { background: #10B981; } .c3 { background: #F59E0B; }

.floating-badge {
    position: absolute; bottom: -20px; right: -20px; background: white; padding: 12px 20px;
    border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
    animation: float 3s ease-in-out infinite; border: 1px solid #E2E8F0;
}
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

/* --- SECTIONS --- */
.section-gray { background: var(--bg-gray); padding: 80px 0; }
.section-white { background: white; padding: 80px 0; }

.section-dark { 
    background: var(--secondary); color: white; padding: 100px 0; 
    position: relative; overflow: hidden;
}
.section-dark h2 { color: white; margin-bottom: 1rem; font-size: 2.2rem; }
.section-dark p { color: #94A3B8; }

.glow-blob { position: absolute; width: 500px; height: 500px; background: var(--primary); filter: blur(120px); opacity: 0.15; border-radius: 50%; pointer-events: none; }
.blob-left { top: -200px; left: -200px; }
.blob-right { bottom: -200px; right: -200px; }

.section-dark .feature-list li { border-left-color: rgba(255,255,255,0.1); }
.section-dark .feature-list li:hover { border-left-color: var(--primary); }
.section-dark .feature-list strong { color: white; }
.section-dark .screen-content { background: #1E293B; color: white; }
.section-dark .shift-item { background: #334155; border-left: 4px solid #475569; color: #E2E8F0; }

.section-header { text-align: center; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--secondary); }
.section-header p { font-size: 1.1rem; color: var(--text-light); }

.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.industry-card { background: white; padding: 2rem; border-radius: 12px; border: 1px solid #E2E8F0; transition: 0.3s; }
.industry-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ind-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.industry-card h3 { margin-bottom: 0.8rem; font-size: 1.2rem; }
.industry-card p { font-size: 0.95rem; color: var(--text-light); }

.feature-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-list li { margin-bottom: 2rem; border-left: 3px solid #E2E8F0; padding-left: 1.5rem; transition: 0.3s; }
.feature-list li:hover { border-color: var(--primary); }
.feature-list strong { display: block; font-size: 1.1rem; color: var(--secondary); margin-bottom: 0.3rem; }
.feature-list p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

.app-screenshot-placeholder { width: 280px; height: 500px; background: var(--secondary); border-radius: 30px; margin: 0 auto; position: relative; border: 8px solid var(--secondary); overflow: hidden; box-shadow: var(--shadow-lg); }
.phone-notch { width: 50%; height: 20px; background: var(--secondary); position: absolute; top: 0; left: 25%; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; z-index: 10; }
.screen-content { background: #F8FAFC; height: 100%; padding: 40px 15px; }
.screen-content h4 { margin-bottom: 20px; text-align: center; }
.shift-item { background: white; padding: 10px; border-radius: 8px; margin-bottom: 10px; border-left: 4px solid #CBD5E1; box-shadow: var(--shadow-sm); }
.shift-item.active { border-left-color: var(--primary); }

.pricing-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: white; border-radius: 16px; padding: 3rem; box-shadow: var(--shadow-md); border: 1px solid #E2E8F0; }
.price-calculator h3 { margin-bottom: 1.5rem; }
.slider-container { margin: 2rem 0; }
.slider { width: 100%; height: 6px; background: #E2E8F0; border-radius: 5px; -webkit-appearance: none; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; background: var(--primary); border-radius: 50%; cursor: pointer; border: 2px solid white; box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.slider-value { text-align: right; font-weight: 600; color: var(--primary); margin-top: 10px; }

.price-display { margin-bottom: 2rem; text-align: center; background: #F8FAFC; padding: 1.5rem; border-radius: 12px; }
.price-tag { display: flex; align-items: baseline; justify-content: center; color: var(--secondary); font-weight: 800; }
.price-tag .currency { font-size: 1.5rem; margin-right: 5px; }
.price-tag span { font-size: 3rem; line-height: 1; }
.price-tag .period { font-size: 1rem; color: var(--text-light); margin-left: 5px; font-weight: 400; }
.price-details { font-size: 0.85rem; color: var(--text-light); margin-top: 5px; }

.price-features li { margin-bottom: 10px; font-size: 0.95rem; color: var(--text-main); }

.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.stat-box { background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 12px; text-align: center; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.1); }
.stat-box .number { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-box .label { color: #94A3B8; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.contact-info p { color: #94A3B8; margin-bottom: 2rem; }
.contact-item { margin-bottom: 1.5rem; }
.contact-item strong { display: block; margin-bottom: 0.2rem; }

.contact-form-wrapper { background: white; padding: 2rem; border-radius: 12px; color: var(--text-main); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #CBD5E1; border-radius: 6px; font-size: 0.95rem; }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

footer { background: #0B1120; color: #64748B; padding: 50px 0; font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-end; }
.footer-links a { margin-left: 20px; }
.footer-links a:hover { color: white; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-box { background: white; padding: 2.5rem; border-radius: 16px; width: 90%; max-width: 450px; position: relative; animation: slideUp 0.3s ease; }
.close-modal { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; cursor: pointer; color: #94A3B8; }
.modal-subtitle { color: var(--text-light); margin-bottom: 1.5rem; font-size: 0.9rem; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-container, .pricing-wrapper, .feature-layout, .about-grid, .contact-layout, .footer-content, .form-row { grid-template-columns: 1fr; }
    nav ul { display: none; }
    .hero-image { display: none; }
    .mega-menu { display: none; }
}

.form-headline { text-align: left; margin-bottom: 1.5rem; color: var(--text-main); font-size: 1.1rem; font-weight: 500; }
.input-light { background: #FFFFFF; border: 1px solid #E2E8F0; padding: 0.8rem 1rem; border-radius: 6px; font-size: 0.95rem; color: #334155; transition: 0.2s; }
.input-light::placeholder { color: #94A3B8; }
.input-light:focus { border-color: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); outline: none; }
.btn-green { background-color: #10B981; color: white; border-radius: 50px; padding: 0.8rem 2rem; font-size: 1rem; font-weight: 600; margin-top: 1rem; box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3); }
.btn-green:hover { background-color: #059669; transform: translateY(-1px); }
.legal-text { font-size: 0.75rem; color: #64748B; margin-top: 1rem; margin-bottom: 1.5rem; line-height: 1.4; }
.legal-text a { text-decoration: underline; color: var(--text-main); }

.accordion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.accordion-item { border-bottom: 1px solid #E2E8F0; }
.accordion-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; font-weight: 700; color: var(--secondary); cursor: pointer; font-size: 1.05rem; transition: color 0.2s; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { color: #1075b9; }
.accordion-icon { color: #1075b9; transition: transform 0.3s ease; }
.accordion-item[open] .accordion-icon { transform: rotate(180deg); }
.accordion-content { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; padding-bottom: 1.5rem; animation: fadeIn 0.3s ease; }
.accordion-content p { margin-bottom: 1rem; }
.accordion-content p:last-child { margin-bottom: 0; }
@media (max-width: 768px) { .accordion-grid { grid-template-columns: 1fr; gap: 0; } }

.input-wrapper-center { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2rem 0; }
.employee-input { width: 100px; padding: 10px; font-size: 1.5rem; font-weight: 700; text-align: center; border: 2px solid #E2E8F0; border-radius: 8px; color: var(--primary); background: white; transition: all 0.2s; -moz-appearance: textfield; }
.employee-input::-webkit-outer-spin-button, .employee-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.employee-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.input-suffix { font-size: 1.1rem; font-weight: 600; color: var(--text-main); }

/* =================================================================== */
/* --- DASHBOARD STYLES (KORREKTES DESKTOP & MOBILE LAYOUT) --- */
/* =================================================================== */

.dashboard-body {
    background-color: #F1F5F9;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Base State (Standardmäßig ausgeblendet, wie gewünscht) */
.sidebar {
    width: 260px;
    background: var(--secondary);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: fixed;
    height: 100%;
    left: 0; top: 0;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.logo-small { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 3rem; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: #94A3B8; border-radius: 8px; margin-bottom: 5px; transition: 0.2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: white; }
.sidebar-footer { margin-top: auto; }
.logout-link { color: #EF4444 !important; }

/* Main Content Base State (Standardmäßig volle Breite) */
.main-content {
    margin-left: 0;
    width: 100%;
    flex: 1;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Toggle Logik (Gesteuert durch dein JavaScript) */
@media (min-width: 769px) {
    /* Wenn JS die Klasse 'hidden' zur Sidebar hinzufügt -> Einblenden */
    .sidebar.hidden {
        transform: translateX(0);
    }
    /* Wenn JS die Klasse 'expanded' zum Content hinzufügt -> Platz machen */
    .main-content.expanded {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

/* Top-Bar (Gestreckt bis an die Ränder) */
.top-bar {
    background: white;
    height: 70px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    box-sizing: border-box; /* Zwingend nötig, damit padding nicht die Breite über 100% treibt */
}

.user-profile { display: flex; align-items: center; gap: 15px; }
.avatar { width: 40px; height: 40px; background: #EFF6FF; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 1px solid #DBEAFE; }

.content-wrapper { padding: 2rem; max-width: 1200px; margin: 0 auto; transition: filter 0.3s; }
.blur-target.blurred { filter: blur(8px); pointer-events: none; user-select: none; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid #E2E8F0; display: flex; align-items: center; gap: 1rem; }

.icon-box { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; }
.icon-box.blue { background: var(--primary); }
.icon-box.green { background: #10B981; }
.icon-box.purple { background: #8B5CF6; }

.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--secondary); }
.status-active { color: #10B981; }
.status-canceled { color: #EF4444; }

.card-section { background: white; border-radius: 12px; border: 1px solid #E2E8F0; padding: 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.card-header { margin-bottom: 2rem; border-bottom: 1px solid #F1F5F9; padding-bottom: 1rem; }

.license-manager { text-align: center; max-width: 500px; margin: 0 auto; }
.btn-circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #CBD5E1; background: white; font-size: 1.2rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; padding: 0; }
.btn-circle:hover { background: #F1F5F9; border-color: var(--primary); color: var(--primary); }
#dashboardLicenseInput { width: 80px; font-size: 1.5rem; text-align: center; border: none; font-weight: 700; color: var(--secondary); background: transparent; }
.price-preview { background: #F8FAFC; padding: 1rem; border-radius: 8px; margin: 1.5rem 0; }

.danger-zone { border-color: #FEE2E2; }
.text-danger { color: #EF4444; }
.btn-outline-danger { border: 1px solid #EF4444; color: #EF4444; background: transparent; padding: 0.6rem 1.2rem; border-radius: 6px; cursor: pointer; }
.btn-outline-danger:hover { background: #FEF2F2; }

.active-forced { display: flex !important; background: rgba(15,23,42,0.9); }
.paywall-box { text-align: center; max-width: 450px; }
.paywall-header { margin-bottom: 2rem; }
.icon-big { font-size: 3rem; margin-bottom: 10px; }
.bill-summary { background: #F8FAFC; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }
.bill-summary .row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; }
.bill-summary .total { border-top: 1px solid #CBD5E1; padding-top: 10px; margin-top: 10px; font-weight: 700; font-size: 1.1rem; color: var(--primary); }

.cc-form { text-align: left; }
.cc-input-group { display: flex; align-items: center; border: 1px solid #CBD5E1; border-radius: 6px; padding: 0 10px; margin-bottom: 10px; }
.cc-input-group input { border: none; outline: none; flex: 1; padding: 10px; }
.cc-row { display: flex; gap: 10px; margin-bottom: 1.5rem; }
.cc-row input { border: 1px solid #CBD5E1; border-radius: 6px; padding: 10px; outline: none; }
.legal-mini { font-size: 0.75rem; color: #94A3B8; margin-top: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* --- INVOICE TABLE STYLES --- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.invoice-table { width: 100%; border-collapse: collapse; margin-top: 1rem; min-width: 600px; }
.invoice-table th { text-align: left; padding: 12px 16px; font-size: 0.85rem; color: #64748B; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; border-bottom: 2px solid #F1F5F9; }
.invoice-table td { padding: 16px; border-bottom: 1px solid #F1F5F9; color: var(--secondary); font-size: 0.95rem; }
.invoice-table tr:last-child td { border-bottom: none; }
.invoice-table tr:hover { background-color: #F8FAFC; }

.status-pill { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.status-pill.paid { background-color: #DCFCE7; color: #166534; }
.status-pill.pending { background-color: #FEF3C7; color: #92400E; }
.status-pill.open { background-color: #DBEAFE; color: #1E40AF; }
.status-pill.draft { background-color: #F1F5F9; color: #475569; }
.status-pill.overdue { background-color: #FEE2E2; color: #991B1B; }
.status-pill.void { background-color: #F1F5F9; color: #94A3B8; text-decoration: line-through; }

.actions { text-align: right; display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn { background: transparent; border: none; color: #94A3B8; cursor: pointer; padding: 6px; border-radius: 6px; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background-color: #F1F5F9; color: var(--primary); }

.dashboard-notification { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 10px; margin-bottom: 1.5rem; font-size: 0.95rem; font-weight: 500; animation: slideDown 0.3s ease; }
.dashboard-notification button { background: none; border: none; font-size: 1.3rem; cursor: pointer; opacity: 0.6; margin-left: 12px; color: inherit; }
.dashboard-notification button:hover { opacity: 1; }
.notif-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.notif-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.notif-info { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

body.customer-dashboard { margin: 0; padding: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: #F8FAFC; font-family: 'Inter', sans-serif; position: relative; overflow: hidden; }
.customer-dashboard .notification-area { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 450px; z-index: 1000; }
.customer-dashboard .center-content { text-align: center; padding: 40px; background: white; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.customer-dashboard .center-content h2 { margin-bottom: 25px; color: #1E293B; font-size: 1.5rem; }
.customer-dashboard .btn-launch { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; padding: 15px 30px; }
.customer-dashboard .logout-container { position: absolute; bottom: 30px; left: 30px; }
.customer-dashboard .logout-btn { display: flex; align-items: center; gap: 8px; color: #64748B; text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.customer-dashboard .logout-btn:hover { color: #DC2626; }

/* ======================================================= */
/* --- PERFEKTIONIERTE MOBILE & RESPONSIVE FIXES --- */
/* ======================================================= */

@media (max-width: 768px) {
    .top-bar { padding: 0 15px !important; }
    .top-bar-left { gap: 10px !important; }
    
    .user-profile .btn-primary { font-size: 0 !important; padding: 10px !important; min-width: 40px !important; width: 40px !important; height: 40px !important; justify-content: center; }
    .user-profile .btn-primary .material-icons-round { font-size: 20px !important; margin: 0 !important; }
    
    .avatar { width: 35px !important; height: 35px !important; font-size: 0.9rem !important; }
    h2#pageTitle { font-size: 1.2rem !important; }
    
    .card-section { padding: 1.2rem !important; }
    .content-wrapper { padding: 1rem !important; }
    
    /* Mobile Overlay Steuerung */
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.active { transform: translateX(0) !important; box-shadow: 10px 0 30px rgba(0,0,0,0.3); }
    .main-content { margin-left: 0 !important; width: 100% !important; }
}

@media (max-width: 500px) {
    #paymentMethodsList > div { flex-wrap: wrap !important; padding: 15px !important; gap: 15px !important; }
    #paymentMethodsList > div > div:first-child { width: 100%; }
    #paymentMethodsList > div > div:last-child { width: 100%; justify-content: flex-end; margin-top: -5px; }

    .license-manager .input-wrapper-center { flex-wrap: nowrap !important; gap: 8px !important; }
    .license-manager #dashboardLicenseInput { width: 45px !important; font-size: 1.2rem !important; padding: 5px !important; }
    .btn-circle { width: 36px !important; height: 36px !important; min-width: 36px !important; font-size: 1.1rem !important; }
    .input-suffix { font-size: 0.9rem !important; }
}