/* --- 🎨 SYSTEM-VARIABLEN (Standard: Dark Mode) --- */
:root {
    --bg-color: #0b0f19;
    --surface-glass: rgba(17, 24, 39, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --accent: #48d597;
    --accent-glow: rgba(72, 213, 151, 0.4);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --nav-bg: rgba(15, 23, 42, 0.8);
    --input-bg: rgba(31, 41, 55, 0.5);
}

/* 🌓 LIGHT MODE VARIANTE */
body.light-mode {
    --bg-color: #f0f4f8 !important;
    --surface-glass: rgba(255, 255, 255, 0.75) !important;
    --border-glass: rgba(15, 23, 42, 0.08) !important;
    --accent: #10b981 !important;
    --accent-glow: rgba(16, 185, 129, 0.2) !important;
    --text-main: #0f172a !important;
    --text-muted: #475569 !important;
    --nav-bg: rgba(226, 232, 240, 0.85) !important;
    --input-bg: rgba(255, 255, 255, 0.9) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 20%, rgba(72, 213, 151, 0.06) 0%, transparent 45%);
    z-index: -1;
    pointer-events: none;
}

.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

.accent { color: var(--accent); }

/* 🧭 NAVIGATION & STATUS-BUTTON */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
}

.logo { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; }
.logo img { height: 45px; }
nav ul { display: flex; gap: 25px; list-style: none; align-items: center; }
nav a { color: var(--text-main); text-decoration: none; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--accent); }

.nav-login-btn {
    background: rgba(72, 213, 151, 0.15);
    border: 1px solid var(--accent);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--accent) !important;
    font-weight: 600;
}
.nav-login-btn:hover {
    background: var(--accent);
    color: #0b0f19 !important;
}
body.light-mode .nav-login-btn:hover { color: #fff !important; }

.theme-btn { background: transparent; border: none; color: var(--text-main); font-size: 1.2rem; cursor: pointer; display: flex; }
.menu-toggle, .menu-hamburger { display: none; }

/* 🚀 HERO SECTION */
.hero { text-align: center; padding: 120px 20px 80px 20px; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: 3.2rem; font-weight: 800; margin-bottom: 20px; }
.glow-text { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }

.button {
    display: inline-block;
    background: var(--accent);
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    color: #0b0f19;
    border: none;
    cursor: pointer;
}
body.light-mode .button { color: #fff; }

/* 📊 STATISTIKEN */
.stats { padding: 20px 5% 60px 5%; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat-card { text-align: center; padding: 25px; }
.stat-wrapper { font-size: 3rem; font-weight: 800; color: var(--accent); }

/* 📦 BOXEN & LAYOUTS */
section { padding: 80px 5%; }
h2 { font-size: 2.4rem; margin-bottom: 45px; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.card { padding: 30px; }
.price { font-size: 2rem; font-weight: bold; color: var(--accent); margin: 15px 0; }
.featured { border: 1px solid var(--accent); }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }
.timeline div { padding: 18px; text-align: center; font-weight: 600; }
.warum-list { list-style: none; max-width: 650px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.warum-list li { padding: 18px 25px; }

/* 🙋‍♂️ FAQ ACCORDION */
.faq-container { max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { overflow: hidden; padding: 0; }
.faq-question { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.1rem; font-weight: 600; user-select: none; }
.faq-question i { color: var(--accent); transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 25px; }
.faq-answer p { color: var(--text-muted); padding-bottom: 20px; font-size: 1rem; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* 🔒 MODAL OVERLAY POSITIONIERUNG */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-content {
    width: 100%;
    max-width: 420px;
    padding: 30px 25px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: left;
    box-sizing: border-box;
}

.calc-modal-content { max-width: 500px !important; }

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent !important;
    border: none !important;
    font-size: 2.2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: var(--accent); }

.modal-content h3 { 
    font-size: 1.4rem; margin-bottom: 8px; margin-top: 10px;
    display: flex; align-items: center; gap: 10px; color: var(--text-main);
}
.modal-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; line-height: 1.4; }

/* INPUT & CONTROLS IN MODALEN */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    width: 100%;
}
.input-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.input-group input, .input-group select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-glass);
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.input-group input:focus, .input-group select:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 10px var(--accent-glow);
}
.input-group select option { background: var(--bg-color); color: var(--text-main); }
.form-submit-btn { width: 100%; margin-top: 10px; border: none; text-align: center; }

/* 🧮 KOSTENRECHNER DESIGN */
.price-display-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-glass);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    margin: 20px 0;
}
.price-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; }
.calculated-price { font-size: 2.8rem; font-weight: 800; color: var(--accent); margin: 5px 0; text-shadow: 0 0 15px var(--accent-glow); }
.price-disclaimer { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }

.whatsapp-calc-btn {
    width: 100%;
    background-color: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    border: none;
    text-decoration: none;
    font-weight: bold;
}
.whatsapp-calc-btn:hover { background-color: #20ba59; }

/* 📞 DIREKTER KONTAKT & FOOTER */
.kontakt { text-align: center; }
.kontakt-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 25px; }
.kontakt-buttons .button { color: var(--text-main); display: flex; align-items: center; gap: 10px; }
body.light-mode .kontakt-buttons .button:first-child { color: #fff; }
footer { padding: 30px; text-align: center; background: rgba(15, 23, 42, 0.9); border-top: 1px solid var(--border-glass); }
body.light-mode footer { background: rgba(226, 232, 240, 0.9); }
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; background-color: #25d366; color: #fff; border-radius: 50%; width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; font-size: 28px; z-index: 99; text-decoration: none; }

/* 📱 RESPONSIVENESS (SMARTPHONES) */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.0rem; }
    section { padding: 50px 5%; }
    
    .menu-hamburger { display: flex; flex-direction: column; gap: 5px; }
    .menu-hamburger span { display: block; width: 26px; height: 3px; background: var(--text-main); }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s ease-in-out;
    }
    .menu-toggle:checked ~ ul { right: 0; }
    .nav-login-btn { width: 80%; text-align: center; padding: 12px 0; }
}
