/* --- BASIS & RESET (Dein Original Code) --- */
: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 (Hell / Grau / Dunkel) --- */
.section-gray { background: var(--bg-gray); padding: 80px 0; }
.section-white { background: white; padding: 80px 0; }

/* NEU: Dark Mode Section für den Mix */
.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; }

/* Dekorative Blobs für Dark Mode */
.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; }

/* Anpassung der Feature-Liste für Dark Mode */
.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; } /* Mockup im Darkmode anpassen */
.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); }

/* --- FEATURES LAYOUT --- */
.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 --- */
.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 & CONTACT --- */
.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 --- */
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 --- */
.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; } }

/* Mobile Anpassungen */
@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; }
}

/* --- NEUE FORMULAR STYLES (Update) --- */

.form-headline {
    text-align: left; /* Im Bild ist der Titel linksbündig */
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Helle Inputs wie im Bild */
.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; /* Grüner Fokus passend zum Button */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

/* Der grüne Button aus dem Bild */
.btn-green {
    background-color: #10B981; /* Ein schönes Emerald Green */
    color: white;
    border-radius: 50px; /* Abgerundet wie im Bild */
    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);
}

/* Kleingedrucktes */
.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 (Vertragsbedingungen) --- */

.accordion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Spalten wie im Screenshot */
    gap: 2rem;
    margin-top: 2rem;
}

.accordion-item {
    border-bottom: 1px solid #E2E8F0;
}

/* Der Header zum Anklicken */
.accordion-item summary {
    list-style: none; /* Standard Dreieck entfernen */
    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;
}

/* Entfernt Standard-Marker in Webkit Browsern */
.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary:hover {
    color: #1075b9; /* Grüner Hover Effekt */
}

/* Der Pfeil */
.accordion-icon {
    color: #1075b9; /* Die grüne Farbe aus deinem Bild */
    transition: transform 0.3s ease;
}

/* Pfeil drehen wenn geöffnet */
.accordion-item[open] .accordion-icon {
    transform: rotate(180deg);
}

/* Der Inhalt */
.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;
}

/* Mobile: Untereinander statt nebeneinander */
@media (max-width: 768px) {
    .accordion-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- PREIS INPUT UPDATE --- */

.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;
    /* Entfernt die Pfeile in manchen Browsern für cleaneren Look */
    -moz-appearance: textfield; 
}

/* Entfernt Webkit Spinner (Pfeile hoch/runter im Input) */
.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 --- */

.dashboard-body {
    background-color: #F1F5F9;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--secondary);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: fixed;
    height: 100%;
    left: 0; top: 0;
}

.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 */
.main-content {
    margin-left: 260px;
    flex: 1;
    width: calc(100% - 260px);
}

.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;
}

.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; }

/* Wenn Paywall aktiv ist, Hintergrund unscharf machen */
.blur-target.blurred { filter: blur(8px); pointer-events: none; user-select: none; }

/* Stats Grid */
.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 Sections */
.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 */
.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;
}
.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);
}
.price-preview {
    background: #F8FAFC; padding: 1rem; border-radius: 8px; margin: 1.5rem 0;
}

/* Danger Zone */
.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; }

/* Paywall Modal Special */
.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; }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; width: 100%; }
}

/* --- INVOICE TABLE STYLES --- */

.table-responsive {
    overflow-x: auto;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.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 Badges */
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pill.paid {
    background-color: #DCFCE7; /* Helles Grün */
    color: #166534; /* Dunkles Grün */
}

.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;
}

/* Action Icons */
.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 NOTIFICATIONS --- */
.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; }
}

/* --- KUNDENDASHBOARD SPEZIFISCH --- */
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; /* Verhindert Scrollbalken */
}

/* Der Bereich für die dynamischen Benachrichtigungen oben mittig */
.customer-dashboard .notification-area {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    z-index: 1000;
}

/* Die Box in der Mitte */
.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;
}

/* Der große Button */
.customer-dashboard .btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* Logout Container unten links */
.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; /* Wird rot beim Drüberfahren */
}





/* ========================================= */
/* ADMIN DASHBOARD (ISOLIERTE KLASSEN)       */
/* ========================================= */

.admindash-body {
    margin: 0;
    padding: 0;
    background-color: #F1F5F9;
    font-family: 'Inter', sans-serif;
    color: #1E293B;
}

/* --- AUTH (LOGIN) --- */
.admindash-auth-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.admindash-auth-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-sizing: border-box;
}

.admindash-logo-text { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.admindash-logo-text span { color: #3B82F6; }
.admindash-auth-subtitle { color: #64748B; font-size: 0.9rem; margin-bottom: 25px; line-height: 1.5; }
.admindash-form-group { text-align: left; margin-bottom: 15px; }
.admindash-form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #475569; }
.admindash-form-group input { width: 100%; padding: 12px; border: 1px solid #CBD5E1; border-radius: 8px; box-sizing: border-box; font-family: 'Inter', sans-serif; }
.admindash-mfa-input { font-size: 2rem !important; letter-spacing: 12px; text-align: center; font-weight: 700; padding: 15px !important; background: #F8FAFC; }
.admindash-mfa-input:focus { border-color: #3B82F6; background: #fff; outline: none; }

/* --- APP LAYOUT --- */
.admindash-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.admindash-sidebar {
    width: 260px;
    background-color: #0F172A;
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.admindash-sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admindash-nav { flex-grow: 1; padding: 20px 0; }
.admindash-nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 24px;
    color: #94A3B8; text-decoration: none; font-weight: 500; transition: all 0.2s;
}
.admindash-nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admindash-nav-item.active { background: #1E293B; color: #fff; border-left: 3px solid #EF4444; }
.admindash-sidebar-footer { padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.admindash-logout { display: flex; align-items: center; gap: 8px; color: #94A3B8; text-decoration: none; font-weight: 500; transition: color 0.2s;}
.admindash-logout:hover { color: #EF4444; }

/* Main Area */
.admindash-main { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
.admindash-topbar {
    background: white; padding: 20px 30px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #E2E8F0; flex-shrink: 0;
}
.admindash-topbar h2 { margin: 0; font-size: 1.25rem; }
.admindash-user-profile { display: flex; align-items: center; gap: 15px; }
.admindash-user-name { font-size: 0.9rem; font-weight: 500; color: #64748B; }
.admindash-avatar { width: 36px; height: 36px; border-radius: 50%; background: #1E293B; color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem;}
.admindash-content { flex-grow: 1; padding: 30px; overflow-y: auto; }

/* --- COMPONENTS --- */
.admindash-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.admindash-stat-card { background: white; padding: 20px; border-radius: 12px; border: 1px solid #E2E8F0; display: flex; align-items: center; gap: 20px; }
.admindash-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.admindash-icon.purple { background: #F3E8FF; color: #9333EA; }
.admindash-icon.green { background: #DCFCE7; color: #166534; }
.admindash-icon.blue { background: #EFF6FF; color: #1D4ED8; }
.admindash-stat-card h3 { margin: 0 0 5px 0; font-size: 0.9rem; color: #64748B; font-weight: 500; }
.admindash-stat-val { margin: 0; font-size: 1.5rem; font-weight: 700; color: #1E293B; }

.admindash-card { background: white; padding: 25px; border-radius: 12px; border: 1px solid #E2E8F0; margin-bottom: 25px; }
.admindash-card-header { margin-bottom: 20px; border-bottom: 1px solid #F1F5F9; padding-bottom: 15px; }
.admindash-card-header h3 { margin: 0; font-size: 1.1rem; }
.admindash-card-header.flex-between { display: flex; justify-content: space-between; align-items: center; }

.admindash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
@media (max-width: 900px) { .admindash-grid-2 { grid-template-columns: 1fr; } }

/* Search & Company */
.admindash-search-wrapper { position: relative; }
.admindash-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94A3B8; }
.admindash-search-input { width: 100%; padding: 15px 15px 15px 45px; font-size: 1rem; border: 1px solid #E2E8F0; border-radius: 8px; outline: none; box-sizing: border-box; }
.admindash-search-input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.admindash-search-results { position: absolute; top: 100%; left: 0; width: 100%; background: white; border: 1px solid #E2E8F0; border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); z-index: 100; max-height: 300px; overflow-y: auto; }
.admindash-search-item { padding: 12px 15px; border-bottom: 1px solid #F1F5F9; cursor: pointer; }
.admindash-search-item:hover { background: #F8FAFC; }

.admindash-company-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.admindash-company-header h2 { margin: 0 0 5px 0; }
.admindash-license-box { margin-bottom: 20px; padding: 15px; background: #F8FAFC; border-radius: 8px; border: 1px solid #E2E8F0; }
.admindash-license-title { margin: 0; font-size: 0.9rem; color: #64748B; }
.admindash-license-count { margin: 5px 0 0 0; font-size: 1.5rem; font-weight: 700; color: #1E293B; }
.admindash-license-count span { font-size: 1rem; font-weight: 500; }
.admindash-free-license-area { padding-top: 15px; border-top: 1px solid #E2E8F0; }
.admindash-free-license-area label { display: block; font-weight: 600; margin-bottom: 10px; }
.admindash-info-text { font-size: 0.85rem; color: #64748B; margin-bottom: 15px; display: flex; align-items: flex-start; gap: 5px; line-height: 1.4; }
.admindash-info-text span { font-size: 16px; color: #3B82F6; }

.admindash-input-row { display: flex; align-items: center; gap: 10px; }
.admindash-input-row input { width: 80px; text-align: center; padding: 10px; border: 1px solid #CBD5E1; border-radius: 8px; }
.admindash-btn-circle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #CBD5E1; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.admindash-btn-circle:hover { background: #F1F5F9; }

.admindash-badge { font-size: 0.85rem; background: #E2E8F0; padding: 4px 10px; border-radius: 12px; font-weight: 500; }
.admindash-table-wrapper { max-height: 300px; overflow-y: auto; }
.admindash-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; text-align: left; }
.admindash-table th { padding: 12px; border-bottom: 2px solid #E2E8F0; color: #64748B; font-weight: 600; }
.admindash-table td { padding: 12px; border-bottom: 1px solid #E2E8F0; }
.text-green { color: #166534; font-weight: 600; }
.text-red { color: #DC2626; font-weight: 600; }

.admindash-placeholder { text-align: center; padding: 60px 20px; }
.admindash-placeholder span { font-size: 48px; color: #CBD5E1; margin-bottom: 15px; display: block; }
.admindash-placeholder h3 { margin-bottom: 10px; }
.admindash-placeholder p { color: #64748B; }

.admindash-nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 24px;
    color: #94A3B8; text-decoration: none; font-weight: 500; transition: all 0.2s;
    border-left: 3px solid transparent; /* NEU: Verhindert Springen und zwingt Reset */
}
.admindash-nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admindash-nav-item.active { background: #1E293B; color: #fff; border-left: 3px solid #EF4444; }

.admindash-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1E293B;
    background-color: #fff;
    cursor: pointer;
}
.admindash-select:focus {
    border-color: #3B82F6;
    outline: none;
}

/* Passwort Sichtbarkeit Toggle */
.admindash-password-wrapper {
    position: relative;
    display: block;
}

.admindash-password-wrapper input {
    padding-right: 45px; /* Macht Platz, damit der Text nicht unters Auge rutscht */
}

.admindash-password-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94A3B8;
    user-select: none; /* Verhindert, dass das Icon als Text markiert wird */
    transition: color 0.2s;
}

.admindash-password-icon:hover {
    color: #3B82F6; /* Wird blau beim Drüberfahren */
}

/* --- SESSION TIMER --- */
.admindash-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F1F5F9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
    margin-right: 15px; /* Abstand zum Namen */
    transition: all 0.3s ease;
}

/* Rote Warnung für die letzten 5 Minuten */
.admindash-timer.warning {
    background: #FEF2F2;
    color: #DC2626;
}

/* Grüner Erfolgs-Button */
.btn-success {
    background-color: #16A34A; /* Ein angenehmes, vertrauenserweckendes Grün */
    color: white;
    border: none;
    transition: background-color 0.2s;
}

.btn-success:hover {
    background-color: #15803D; /* Etwas dunkler beim Drüberfahren */
}

/* --- NEU: Kleine Buttons für Tabellen --- */
.btn-sm { 
    padding: 0.35rem 0.75rem; 
    font-size: 0.8rem; 
    border-radius: 6px;
}

/* Verhindert, dass die Buttons in der Tabelle aneinander kleben */
.admindash-table td button {
    margin-right: 5px;
}

.admindash-table td button:last-child {
    margin-right: 0;
}