/*
Theme Name: Immo Premium Theme
Description: Ein maßgeschneidertes, minimalistisches Theme für die Lead-Generierung.
Author: Next-Fix
Version: 1.0
*/

:root {
    --primary: #1a1a1a;
    --accent: #d4af37;
    --bg: #ffffff;
    --box-bg: #f8f9fa;
    --text: #333333;
    --text-muted: #888888;
    --border: #eaeaea;
}

body {
    background-color: #f4f5f7;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

#immo-rechner {
    width: 100%;
    max-width: 650px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.progress-container { width: 100%; height: 6px; background: #f0f0f0; position: relative; }
.progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.4s ease; }
.progress-text { text-align: right; font-size: 12px; color: var(--text-muted); padding: 5px 15px 0; font-weight: 600; }

.step { display: none; padding: 40px 35px; animation: fadeIn 0.4s ease forwards; }
.step.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title { font-size: 24px; font-weight: 300; text-align: center; margin-bottom: 30px; letter-spacing: 0.5px; }

.grid-1 { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
@media (max-width: 500px) { .grid-2 { grid-template-columns: 1fr; } }

.kachel {
    background: var(--box-bg); border: 2px solid transparent; padding: 18px;
    border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.2s ease;
    font-size: 16px; font-weight: 500; user-select: none;
}
.kachel:hover { background: #f1f3f5; }
.kachel.selected { border-color: var(--accent); background: #fffdf5; color: var(--primary); }

.input-field {
    width: 100%; padding: 18px 20px; font-size: 16px; border: 1px solid #ddd;
    border-radius: 8px; background: var(--box-bg); outline: none; transition: border-color 0.2s ease;
    box-sizing: border-box; margin-bottom: 15px;
}
.input-field:focus { border-color: var(--accent); background: #fff; }

.btn-main {
    width: 100%; background: var(--primary); color: #fff; border: none; padding: 22px;
    font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background 0.2s ease;
    text-transform: uppercase; letter-spacing: 1px; margin-top: 15px; display: block;
}
.btn-main:hover { background: #333; }
.btn-main:disabled { background: #ccc; cursor: not-allowed; }

.result-box { text-align: center; padding: 40px 20px; background: var(--primary); color: #fff; border-radius: 8px; margin-bottom: 25px; }
.result-value { font-size: 48px; font-weight: 300; color: var(--accent); margin: 10px 0; }

.disclaimer-box { background: var(--box-bg); border-left: 4px solid var(--accent); padding: 20px; font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 30px; border-radius: 0 8px 8px 0; }
.error-msg { color: #e74c3c; font-size: 14px; margin-top: 10px; text-align: center; display: none; }

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); display: none; justify-content: center; align-items: center; z-index: 9999; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: var(--bg); width: 100%; max-width: 600px; border-radius: 12px; padding: 40px 35px; position: relative; max-height: 90vh; overflow-y: auto; }

.dsgvo-box { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; margin-bottom: 15px; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.dsgvo-box input[type="checkbox"] { margin-top: 3px; accent-color: var(--accent); }
.intro-text { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 25px; }
