:root {
    --primary: #ff4500;
    --primary-light: #ff7643;
    --bg: #0f0f0f;
    --text: #ffffff;
    --link-color: #00d4ff;
    --card-bg: #1a1a1a;
}

/* Globale Einstellungen */
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid #333;
}

.nav-global {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    border-bottom: 1px solid #222;
}

.nav-sections {
    display: flex;
    align-items: center;
    padding: 0.35rem 5%;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.nav-sections::-webkit-scrollbar { display: none; }

nav a { color: #ccc; text-decoration: none; margin-left: 20px; font-size: 0.9rem; transition: color 0.3s; }
nav a:hover { color: var(--primary); text-decoration: none; }
.nav-global a { color: #fff; }
.nav-global a:first-child { margin-left: 0; }
.nav-sections a { font-size: 0.78rem; color: #888; }
.nav-active { color: var(--primary) !important; }
.nav-scroll-active { color: var(--primary) !important; }

/* Layout & Sektionen */
section { padding: 150px 10% 120px; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
#home { text-align: center; background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 100%); }

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.3));
}

h1 { font-size: 3.5rem; margin: 0; letter-spacing: 4px; text-transform: uppercase; }
h2 { font-size: 2.5rem; margin-top: 0; }
.subtitle { color: #888; font-size: 1.4rem; margin-top: 10px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Karten */
.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.card h3 { color: var(--primary); margin-top: 0; }

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link p { color: #ccc; }

/* Formulare */
form { display: flex; flex-direction: column; max-width: 500px; gap: 15px; }
input, textarea {
    background: #222; border: 1px solid #444; padding: 15px;
    color: white; border-radius: 8px; font-size: 1rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); }

button {
    background: var(--primary); color: white; border: none; padding: 18px;
    border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 1rem;
    transition: opacity 0.3s;
}
button:hover { opacity: 0.9; }

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer & Animationen */
footer { text-align: center; padding: 60px; font-size: 0.8rem; color: #555; border-top: 1px solid #222; }

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}
/* Zwei-Spalten Layout für Über-Section */
.two-col {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}

.two-col .text { flex: 1 1 420px; color: #ccc; }

.two-col .photo { flex: 0 0 220px; }
.two-col .photo img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; border: 1px solid #333; }

@media (max-width: 700px) {
    .two-col { flex-direction: column; }
    .two-col .photo { flex-basis: 100%; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Lightbox Styles */
.lightbox {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 2000; /* Über der Navigationsleiste */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Cursor-Effekt für klickbare Bilder */
section img {
    cursor: zoom-in;
    transition: opacity 0.3s;
}

section img:hover {
    opacity: 0.9;
}

/* 1. Zuerst entfernen wir die Lupe von ALLEN Bildern in den Sektionen */
section img {
    cursor: default;
    transition: opacity 0.3s;
}

/* 2. Nur Bilder mit der Klasse .zoomable bekommen die Lupe und den Effekt */
img.zoomable {
    cursor: zoom-in !important; /* !important stellt sicher, dass andere Regeln überschrieben werden */
}

img.zoomable:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* ── Pull-Quote ── */
blockquote {
    border-left: 4px solid var(--primary);
    margin: 28px 0;
    padding: 16px 24px;
    background: #1a1a1a;
    border-radius: 0 8px 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
}

/* ── Prozess-Timeline ── */
.timeline {
    display: flex;
    position: relative;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 23px;
    left: calc(16.67% + 8px);
    right: calc(16.67% + 8px);
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
}

.timeline-step {
    flex: 1;
    padding: 0 24px;
    text-align: center;
}

.timeline-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.timeline-step h3 {
    margin-bottom: 10px;
}

.timeline-step .highlight {
    color: var(--primary);
    font-weight: 600;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        gap: 28px;
    }
    .timeline::before { display: none; }
    .timeline-step {
        text-align: left;
        display: flex;
        gap: 20px;
        align-items: flex-start;
        padding: 0;
    }
    .timeline-num { flex-shrink: 0; margin: 0; }
}

/* ── FAQ ── */
.faq-list {
    max-width: 800px;
    margin-top: 24px;
}

.faq-item {
    border-bottom: 1px solid #2a2a2a;
}

.faq-item summary {
    padding: 18px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    padding: 0 0 18px;
    color: #ccc;
    line-height: 1.7;
    margin: 0;
}

/* ── Cookie-Consent-Banner ── */
#consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a1a;
    border-top: 2px solid var(--primary);
    padding: 20px 24px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
    font-size: 0.9rem;
}

.consent-inner {
    max-width: 960px;
    margin: 0 auto;
}

.consent-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text);
}

.consent-text p {
    margin: 0 0 16px;
    color: #ccc;
    line-height: 1.5;
}

.consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.consent-btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.consent-btn-primary:hover {
    background: var(--primary-light);
}

.consent-btn-secondary {
    background: transparent;
    color: #ccc;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}

.consent-btn-secondary:hover {
    border-color: #888;
    color: #fff;
}

.consent-settings {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

#consent-save {
    align-self: flex-start;
    margin-top: 6px;
}

/* ── ImmoManager: Preis-Box ── */
.price-box {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    text-align: center;
}
.price-box .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.price-box .period {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.price-box ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}
.price-box ul li {
    padding: 8px 0;
    color: #ccc;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.price-box ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Feature-Rows (Text + Bild nebeneinander) ── */
.feature-row {
    display: flex;
    gap: 48px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row .text { flex: 1 1 380px; color: #ccc; }
.feature-row .text h3 { color: var(--primary); margin-top: 0; font-size: 1.6rem; }
.feature-row .text p { line-height: 1.8; }
.feature-row .visual { flex: 1 1 380px; }
.feature-row .visual img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .feature-row, .feature-row.reverse { flex-direction: column; }
}

/* ── Badge (lokal / offline) ── */
.badge-local {
    display: inline-block;
    background: rgba(255,69,0,0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* ── Abgerundete Bilder in Karten ── */
.card img {
    border-radius: 12px;
}

/* ── Mobile (≤640px) ── */
@media (max-width: 767px) {
    .nav-sections {
        display: none;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    h2 {
        font-size: 1.6rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    section {
        padding: 110px 5% 60px;
    }
    .nav-global {
        flex-wrap: wrap;
        gap: 6px;
        padding: 0.6rem 4%;
    }
    .nav-global > div:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 0;
    }
    .nav-global a {
        font-size: 0.78rem;
        margin-left: 10px;
    }
    .card {
        padding: 24px;
    }
    .price-box {
        padding: 28px 20px;
    }
    .price-box .amount {
        font-size: 2.5rem;
    }
    .hero-logo {
        width: 120px;
    }
}