        :root {
            --sparfuchs-green: #2ecc71;
            --sparfuchs-dark: #27ae60;
            --gradient-sparfuchs: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
            --bg-dark: #0a0f1a;
            --bg-card: #111827;
            --bg-input: #1a2235;
            --text-primary: #ffffff;
            --text-secondary: #94a3b8;
            --border: rgba(255,255,255,0.1);
            --warning: #f39c12;
            --danger: #e74c3c;
            --success: #27ae60;
            --gradient-energy: linear-gradient(90deg, #28a745 0%, #55efc4 15%, #ffc107 35%, #fd7e14 50%, #dc3545 70%, #c0392b 85%, #8b0000 100%);
        }
        /* Theme: Ocean Blue */
        body.theme-ocean {
            --sparfuchs-green: #3498db;
            --sparfuchs-dark: #2980b9;
            --gradient-sparfuchs: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        }
        /* Theme: Royal Purple */
        body.theme-purple {
            --sparfuchs-green: #9b59b6;
            --sparfuchs-dark: #8e44ad;
            --gradient-sparfuchs: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
        }
        /* Theme: Sunset Orange */
        body.theme-orange {
            --sparfuchs-green: #e67e22;
            --sparfuchs-dark: #d35400;
            --gradient-sparfuchs: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
        }
        /* Theme: Standard Grün (default) - keine extra Klasse nötig */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { font-size: 95%; scroll-behavior: smooth; }
        body { font-family: 'Segoe UI', system-ui, -apple-system, 'Nunito', sans-serif; background: var(--bg-dark); color: var(--text-primary); min-height: 100vh; line-height: 1.6; }
        .header { background: rgba(10, 15, 26, 0.95); backdrop-filter: blur(10px); padding: 1rem 2rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
        .header-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
        .logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; font-weight: 800; color: var(--text-primary); text-decoration: none; cursor: pointer; }
        .logo-icon { width: 40px; height: 40px; }
        .logo span { color: var(--sparfuchs-green); }
        .nav-links { display: flex; gap: 2rem; align-items: center; }
        .nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s; cursor: pointer; font-size: 0.95rem; }
        .nav-link:hover, .nav-link.active { color: var(--sparfuchs-green); }
        .btn { padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s; font-family: inherit; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
        .btn-primary { background: var(--gradient-sparfuchs); color: white; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3); }
        .btn-primary:disabled, .btn-primary.btn-disabled { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); cursor: not-allowed; opacity: 0.6; transform: none !important; box-shadow: none !important; }
        .btn-secondary { background: transparent; border: 2px solid var(--sparfuchs-green); color: var(--sparfuchs-green); }
        .btn-secondary:hover { background: var(--sparfuchs-green); color: white; }
        .btn-danger { background: var(--danger); color: white; }
        .btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
        .main-container { max-width: 1400px; margin: 0 auto; padding: 2rem; }
        .selection-screen { text-align: center; padding: 4rem 2rem; }
        .selection-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
        .selection-title span { color: var(--sparfuchs-green); }
        .selection-subtitle { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 3rem; max-width: 620px; margin-left: auto; margin-right: auto; }
        @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
        .selection-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.7rem; max-width: 765px; margin: 0 auto; }
        .selection-card { background: var(--bg-card); border-radius: 17px; padding: 2.1rem; border: 2px solid var(--border); cursor: pointer; transition: all 0.4s; position: relative; overflow: hidden; }
        .selection-card.recommended { border-color: var(--sparfuchs-green); }
        .selection-card.recommended::before { content: 'Beliebt'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient-sparfuchs); color: white; padding: 0.25rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
        .selection-card:hover { border-color: var(--sparfuchs-green); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(46, 204, 113, 0.15); }
        .card-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }
        .card-icon .card-logo { width: 68px; height: 68px; object-fit: contain; }
        .title-logo { width: 36px; height: 36px; object-fit: contain; vertical-align: middle; margin-right: 0.5rem; }
        .card-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.4rem; }
        .card-price { font-size: 2.1rem; font-weight: 800; color: var(--sparfuchs-green); margin-bottom: 0.85rem; }
        .card-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-secondary); }
        .card-description { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: 0.9rem; }
        .card-features { text-align: left; margin-bottom: 1.25rem; }
        .card-feature { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
        .card-feature:last-child { border-bottom: none; }
        .card-feature-icon { color: var(--sparfuchs-green); font-size: 1.2rem; }
        .form-container { display: none; }
        .form-container.active { display: block; }
        .form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.9rem; flex-wrap: wrap; gap: 0.95rem; }
        .header-buttons { display: flex; gap: 0.7rem; align-items: center; }
        .btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text-secondary); }
        .btn-outline:hover { border-color: var(--sparfuchs-orange); color: var(--sparfuchs-orange); background: rgba(230, 126, 34, 0.1); }
        .form-title { font-size: 1.65rem; font-weight: 800; }
        .progress-bar { display: flex; gap: 0.475rem; margin-bottom: 1.9rem; }
        .progress-step { flex: 1; height: 5px; background: var(--bg-input); border-radius: 3px; transition: background 0.3s; }
        .progress-step.completed { background: var(--gradient-sparfuchs); }
        .progress-step.active { background: var(--sparfuchs-green); }
        .form-section { background: var(--bg-card); border-radius: 14px; padding: 1.9rem; margin-bottom: 1.4rem; border: 1px solid var(--border); }
        .section-title { font-size: 1.19rem; font-weight: 700; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.7rem; }
        .section-icon { width: 38px; height: 38px; background: rgba(46, 204, 113, 0.1); border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.14rem; }
        .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 1.4rem; }
        .form-group { display: flex; flex-direction: column; gap: 0.475rem; }
        .form-group.full-width { grid-column: 1 / -1; }
        .form-label { font-weight: 600; color: var(--text-secondary); font-size: 0.855rem; }
        .form-label .required { color: var(--sparfuchs-green); }
        .form-input, .form-select { padding: 0.8rem 0.95rem; background: var(--bg-input); border: 2px solid var(--border); border-radius: 9px; color: var(--text-primary); font-size: 0.95rem; font-family: inherit; transition: all 0.3s; }
        .form-input:focus, .form-select:focus { outline: none; border-color: var(--sparfuchs-green); box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.15); }
        .form-input::placeholder { color: var(--text-secondary); opacity: 0.7; }
        .form-select { cursor: pointer; }
        .form-select option { background: var(--bg-input); color: var(--text-primary); }
        .input-with-unit { display: flex; align-items: stretch; }
        .input-with-unit .form-input { border-radius: 9px 0 0 9px; flex: 1; }
        .input-unit { padding: 0 1.19rem; background: rgba(46, 204, 113, 0.1); border: 2px solid var(--border); border-left: none; border-radius: 0 9px 9px 0; display: flex; align-items: center; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
        .radio-group { display: flex; gap: 0.95rem; flex-wrap: wrap; }
        .radio-option { flex: 1; min-width: 114px; }
        .radio-option input { display: none; }
        .radio-label { display: block; padding: 0.95rem; background: var(--bg-input); border: 2px solid var(--border); border-radius: 9px; text-align: center; cursor: pointer; transition: all 0.3s; font-weight: 600; font-size: 0.9rem; }
        .radio-option input:checked + .radio-label { border-color: var(--sparfuchs-green); background: rgba(46, 204, 113, 0.1); color: var(--sparfuchs-green); }
        .radio-label:hover { border-color: var(--sparfuchs-green); }
        .checkbox-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
        .checkbox-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: var(--bg-input); border: 2px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; }
        .checkbox-option:hover { border-color: var(--sparfuchs-green); }
        .checkbox-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--sparfuchs-green); cursor: pointer; }
        .checkbox-option input[type="checkbox"]:checked + span { color: var(--sparfuchs-green); }
        .checkbox-option input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }
        .checkbox-option input[type="checkbox"]:disabled + span { opacity: 0.5; }
        .form-hint { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.35rem; }
        .consumption-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 0.95rem; }
        .consumption-table th, .consumption-table td { padding: 0.95rem; text-align: left; border-bottom: 1px solid var(--border); }
        .consumption-table th { background: rgba(46, 204, 113, 0.1); font-weight: 600; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
        .consumption-table th:first-child { border-radius: 9px 0 0 0; }
        .consumption-table th:last-child { border-radius: 0 9px 0 0; }
        .consumption-table td { background: var(--bg-card); }
        .consumption-table .form-input { width: 100%; }
        .form-actions { display: flex; justify-content: space-between; gap: 0.95rem; margin-top: 1.9rem; }
        .form-actions-right { display: flex; gap: 0.95rem; }
        .results-container { display: none; }
        .results-container.active { display: block; }
        .energy-certificate { background: var(--bg-card); border-radius: 20px; padding: 2.5rem; border: 1px solid var(--border); position: relative; overflow: hidden; }
        .certificate-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
        .certificate-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
        .certificate-subtitle { color: var(--text-secondary); font-size: 1rem; }
        .certificate-badge { background: var(--gradient-sparfuchs); color: white; padding: 0.5rem 1rem; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
        .energy-scale-container { margin: 2rem 0; }
        .energy-scale-title { font-weight: 600; margin-bottom: 1rem; font-size: 1rem; }
        .energy-scale { height: 50px; background: var(--gradient-energy); border-radius: 10px; position: relative; margin-bottom: 0.5rem; }
        .energy-marker { position: absolute; top: -10px; transform: translateX(-50%); transition: left 0.5s ease; }
        .energy-marker-arrow { width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 14px solid var(--text-primary); margin: 0 auto; }
        .energy-marker-value { background: var(--text-primary); color: var(--bg-dark); padding: 0.25rem 0.75rem; border-radius: 6px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; margin-bottom: 4px; }
        .energy-scale-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); }
        .energy-class-display { display: flex; align-items: center; justify-content: center; gap: 2rem; margin: 2rem 0; padding: 2rem; background: var(--bg-input); border-radius: 15px; }
        .energy-class-badge { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.75rem; font-weight: 700; color: var(--bg-dark); }
        .energy-class-A-plus { background: #00b894; }
        .energy-class-A { background: #00cec9; }
        .energy-class-B { background: #55efc4; }
        .energy-class-C { background: #ffeaa7; }
        .energy-class-D { background: #fdcb6e; }
        .energy-class-E { background: #e17055; }
        .energy-class-F { background: #d63031; }
        .energy-class-G { background: #b71540; }
        .energy-class-H { background: #6c5ce7; }
        .energy-class-info h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
        .energy-class-info p { color: var(--text-secondary); font-size: 1rem; }
        .results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
        .result-card { background: var(--bg-input); padding: 1.5rem; border-radius: 15px; text-align: center; border: 1px solid var(--border); }
        .result-value { font-size: 2rem; font-weight: 700; color: var(--sparfuchs-green); font-family: 'JetBrains Mono', monospace; }
        .result-unit { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }
        .result-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }
        .building-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
        .detail-item { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
        .detail-label { color: var(--text-secondary); }
        .detail-value { font-weight: 600; }
        .certificate-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
        .admin-panel { display: none; }
        .admin-panel.active { display: block; }
        .admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
        .admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
        .stat-card { background: var(--bg-card); padding: 1.5rem; border-radius: 15px; border: 1px solid var(--border); }
        .stat-value { font-size: 2.5rem; font-weight: 700; color: var(--sparfuchs-green); font-family: 'JetBrains Mono', monospace; }
        .stat-label { color: var(--text-secondary); margin-top: 0.5rem; font-size: 0.9rem; }
        .data-table { width: 100%; background: var(--bg-card); border-radius: 15px; overflow: hidden; border: 1px solid var(--border); }
        .data-table th, .data-table td { padding: 1rem 1.25rem; text-align: left; font-size: 0.95rem; }
        .data-table th { background: rgba(46, 204, 113, 0.1); font-weight: 600; color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; }
        .data-table td { border-bottom: 1px solid var(--border); }
        .data-table tr:last-child td { border-bottom: none; }
        .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); z-index: 1000; align-items: center; justify-content: center; }
        .modal-overlay.active { display: flex; }
        .modal { background: var(--bg-card); border-radius: 20px; padding: 2.5rem; max-width: 420px; width: 90%; border: 1px solid var(--border); position: relative; }
        .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
        .modal-header .modal-title { margin-bottom: 0; text-align: left; }
        .modal-header .close-btn { position: static; }
        .modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
        
        /* Password Toggle Styles */
        .password-input-wrapper { position: relative; display: flex; align-items: center; }
        .password-input-wrapper .form-input { padding-right: 45px; width: 100%; }
        .password-toggle { position: absolute; right: 10px; background: none; border: none; cursor: pointer; padding: 5px; color: var(--text-secondary); transition: color 0.3s; display: flex; align-items: center; justify-content: center; }
        .password-toggle:hover { color: var(--sparfuchs-green); }
        .password-toggle .eye-icon { pointer-events: none; }
        
        /* Modern Captcha Styles */
        .captcha-container {
            background: var(--bg-input);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 1rem;
            margin: 1rem 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: border-color 0.3s;
        }
        .captcha-container.verified {
            border-color: var(--sparfuchs-green);
            background: rgba(46, 204, 113, 0.05);
        }
        .captcha-box {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .captcha-checkbox {
            width: 28px;
            height: 28px;
            border: 2px solid var(--border);
            border-radius: 4px;
            background: var(--bg-card);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        .captcha-checkbox:hover {
            border-color: var(--sparfuchs-green);
        }
        .captcha-checkbox.checked {
            background: var(--sparfuchs-green);
            border-color: var(--sparfuchs-green);
        }
        .captcha-checkbox.loading {
            position: relative;
        }
        .captcha-checkbox.loading::after {
            content: '';
            width: 16px;
            height: 16px;
            border: 2px solid var(--border);
            border-top-color: var(--sparfuchs-green);
            border-radius: 50%;
            animation: captcha-spin 0.8s linear infinite;
        }
        @keyframes captcha-spin {
            to { transform: rotate(360deg); }
        }
        .captcha-checkmark {
            width: 18px;
            height: 18px;
            color: white;
        }
        .captcha-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            user-select: none;
        }
        .captcha-logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
            color: var(--text-secondary);
            opacity: 0.6;
        }
        .captcha-logo span {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; background: var(--bg-input); padding: 0.5rem; border-radius: 10px; }
        .tab { flex: 1; padding: 0.75rem; background: transparent; border: none; color: var(--text-secondary); font-weight: 500; cursor: pointer; border-radius: 8px; transition: all 0.3s; font-size: 0.95rem; }
        .tab.active { background: var(--sparfuchs-green); color: white; }
        @media (max-width: 768px) {
            .header-content { flex-direction: column; gap: 1rem; }
            .nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
            .selection-cards { grid-template-columns: 1fr; }
            .selection-title { font-size: 2rem; }
            .form-grid { grid-template-columns: 1fr; }
            .form-actions { flex-direction: column; }
            .form-actions-right { flex-direction: column; }
            .energy-class-display { flex-direction: column; }
            .results-grid { grid-template-columns: 1fr 1fr; }
            .btn-large { width: 100%; justify-content: center; }
        }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .animate-in { animation: fadeIn 0.5s ease forwards; }
        .footer { background: var(--bg-card); padding: 1rem 2rem; border-top: 1px solid var(--border); position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; }
        .footer-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 2rem; }
        .footer-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; cursor: pointer; }
        .footer-link:hover { color: var(--sparfuchs-green); }
        .footer-divider { color: var(--border); }
        body { padding-bottom: 60px; }
        .legal-page { display: none; }
        .legal-page.active { display: block; }
        .legal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
        .legal-title { font-size: 1.75rem; font-weight: 800; }
        .close-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-input); border: 2px solid var(--border); color: var(--text-secondary); font-size: 1.25rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
        .close-btn:hover { background: var(--danger); border-color: var(--danger); color: white; }
        .legal-content { background: var(--bg-card); border-radius: 15px; padding: 2.5rem; border: 1px solid var(--border); }
        .legal-content h1 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--sparfuchs-green); }
        .legal-content h2 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 1rem; }
        .legal-content p { margin-bottom: 1rem; line-height: 1.8; color: var(--text-secondary); }
        .legal-content ul { margin-left: 1.5rem; margin-bottom: 1rem; }
        .legal-content li { margin-bottom: 0.5rem; color: var(--text-secondary); }
        .admin-textarea { width: 100%; min-height: 300px; padding: 1.25rem; background: var(--bg-input); border: 2px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 1rem; font-family: 'JetBrains Mono', monospace; resize: vertical; }
        .admin-textarea:focus { outline: none; border-color: var(--sparfuchs-green); }
        .logo-upload-container { display: flex; flex-direction: column; gap: 1rem; }
        .logo-preview { width: 300px; height: 100px; border: 2px dashed var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg-input); overflow: hidden; }
        .logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
        .logo-placeholder { color: var(--text-secondary); font-size: 0.9rem; }
        .logo-upload-actions { display: flex; gap: 0.75rem; }
        
        /* Admin Main Tabs */
        .admin-main-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 2rem;
            border-bottom: 2px solid var(--border);
            padding-bottom: 0;
            flex-wrap: wrap;
        }
        .admin-main-tab {
            padding: 1rem 1.5rem;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            color: var(--text-secondary);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: -2px;
        }
        .admin-main-tab:hover {
            color: var(--sparfuchs-green);
            background: rgba(46, 204, 113, 0.05);
        }
        .admin-main-tab.active {
            color: var(--sparfuchs-green);
            border-bottom-color: var(--sparfuchs-green);
            background: rgba(46, 204, 113, 0.1);
        }
        .admin-main-tab .tab-icon {
            font-size: 1.1rem;
        }
        .admin-tab-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        .admin-tab-content.active {
            display: block;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Admin Sub-Tabs (für CMS) */
        .admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
        .admin-tab { padding: 0.85rem 1.5rem; background: var(--bg-input); border: 2px solid var(--border); border-radius: 10px; color: var(--text-secondary); font-weight: 600; cursor: pointer; transition: all 0.3s; }
        .admin-tab:hover { border-color: var(--sparfuchs-green); }
        .admin-tab.active { background: var(--sparfuchs-green); color: white; border-color: var(--sparfuchs-green); }
        
        /* Admin Section Headers */
        .admin-section-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .admin-section-title .section-icon {
            font-size: 1.5rem;
        }
        
        /* Admin Settings Row - Passwort und Farbstil nebeneinander */
        .admin-settings-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }
        .admin-settings-row .admin-password-section {
            margin-top: 0;
        }
        @media (max-width: 900px) {
            .admin-settings-row {
                grid-template-columns: 1fr;
            }
        }
        
        /* Theme Selector */
        .theme-selector {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        .theme-option {
            background: var(--bg-input);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }
        .theme-option:hover {
            border-color: var(--text-secondary);
            transform: translateY(-2px);
        }
        .theme-option.active {
            border-color: var(--sparfuchs-green);
            box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
        }
        .theme-preview {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            margin: 0 auto 0.75rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }
        .theme-preview-green {
            background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
        }
        .theme-preview-ocean {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        }
        .theme-preview-purple {
            background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
        }
        .theme-preview-orange {
            background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
        }
        .theme-option span {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-secondary);
        }
        .theme-option.active span {
            color: var(--text-primary);
        }
        
        @media print {
            .header, .footer, .form-actions, .certificate-actions, .nav-links { display: none !important; }
            body { background: white; color: black; padding-bottom: 0; }
            .energy-certificate { background: white; border: 2px solid black; }
        }
        
        /* Password Complexity Matrix */
        .password-matrix {
            background: rgba(46, 204, 113, 0.05);
            border: 1px solid rgba(46, 204, 113, 0.2);
            border-radius: 10px;
            padding: 1rem;
            margin-top: 0.5rem;
        }
        .pw-requirement {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0;
            font-size: 0.85rem;
            color: var(--text-secondary);
            transition: all 0.3s ease;
        }
        .pw-requirement.valid {
            color: var(--sparfuchs-green);
        }
        .pw-requirement.valid .pw-icon {
            color: var(--sparfuchs-green);
        }
        .pw-requirement.invalid {
            color: #e74c3c;
        }
        .pw-requirement.invalid .pw-icon {
            color: #e74c3c;
        }
        .pw-icon {
            font-size: 1rem;
            width: 20px;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        /* Admin Password Section */
        .admin-password-section {
            background: var(--card-bg);
            border: 1px solid rgba(46, 204, 113, 0.2);
            border-radius: 15px;
            padding: 1.5rem;
            margin-top: 2rem;
        }
        .admin-password-section h3 {
            color: var(--sparfuchs-green);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

/* Cookie Consent Banner */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(5px);
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--sparfuchs-green);
    padding: 1.5rem 2rem;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-consent-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.cookie-consent-header .cookie-icon {
    font-size: 1.5rem;
}

.cookie-consent-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.cookie-consent-text a {
    color: var(--sparfuchs-green);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent-text a:hover {
    color: var(--sparfuchs-dark);
}

.cookie-consent-options {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--sparfuchs-green);
    cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-option-content {
    flex: 1;
}

.cookie-option-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-option-title .badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: var(--sparfuchs-green);
    color: white;
    border-radius: 20px;
    font-weight: 500;
}

.cookie-option-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-consent-buttons .btn {
    min-width: 140px;
    justify-content: center;
}

.btn-cookie-settings {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.btn-cookie-settings:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-cookie-reject {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-cookie-reject:hover {
    background: var(--danger);
    color: white;
}

.btn-cookie-accept {
    background: var(--gradient-sparfuchs);
    color: white;
    border: none;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.3);
}

/* Cookie Settings Modal */
.cookie-settings-expanded {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cookie-settings-expanded.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.25rem 1rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
    }
    
    .cookie-consent-buttons .btn {
        width: 100%;
    }
    
    .cookie-option {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-option input[type="checkbox"] {
        align-self: flex-start;
    }
}

/* Cookie Settings Link im Footer */
.cookie-settings-link {
    cursor: pointer;
    color: var(--text-secondary);
    text-decoration: none;
}

.cookie-settings-link:hover {
    color: var(--sparfuchs-green);
    text-decoration: underline;
}

/* Passwort vergessen Link */
.forgot-password-link {
    color: var(--sparfuchs-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: var(--sparfuchs-dark);
    text-decoration: underline;
}

/* Message Boxes für Reset */
.reset-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.reset-message.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--sparfuchs-green);
    color: var(--sparfuchs-green);
}

.reset-message.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.reset-message.info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid #3498db;
    color: #3498db;
}

/* ==================== BACKUP/RESTORE STYLES ==================== */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-dark);
    font-weight: 600;
    color: var(--text-primary);
}

.admin-table tr:hover {
    background: rgba(46, 204, 113, 0.05);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: var(--sparfuchs-green);
    color: white;
}

.btn-small {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    min-width: auto;
}

.btn-success {
    background: var(--sparfuchs-green);
    color: white;
}

.btn-success:hover {
    background: var(--sparfuchs-dark);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--sparfuchs-green);
    color: var(--sparfuchs-green);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid #3498db;
    color: #3498db;
}

.admin-hint {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-hint code {
    background: rgba(0,0,0,0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}
