/*
 * OLYMP Immobilien – Suchauftrag Landingpage (/anlegen)
 * Ergänzt style.css um Landingpage-spezifische Styles
 */

/* Floating CTA auf der Landingpage ausblenden */
.floating-cta { display: none !important; }

/* Menüleiste auf Mobile ausblenden (nur /anlegen/) */
@media (max-width: 768px) {
    .site-header { display: none !important; }
}

:root {
    --text: #3F3F3F;
    --text-light: #767676;
    --border: #e8e4df;
}

/* ============================================================
   SEITEN-HEADER (Back-Link + Titel)
   ============================================================ */
.lp-page-header {
    background: #f7f5f2;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
}
.lp-page-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lp-page-header .back-link {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
.lp-page-header-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

/* ============================================================
   TRUST-STREIFEN
   ============================================================ */
.lp-trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
}
.lp-trust-strip-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.lp-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}
.lp-trust-strip svg { color: var(--primary, #924545); flex-shrink: 0; }
.lp-trust-strip-sep { color: var(--border); font-size: 1rem; line-height: 1; }

@media (max-width: 480px) {
    .lp-trust-strip-sep { display: none; }
    .lp-trust-strip-inner { gap: 0.4rem 1rem; }
    .lp-page-header-title { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
    background: linear-gradient(135deg, #3F3F3F 0%, #2a2a2a 100%);
    padding: 5rem 2rem 4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/hero_bg.webp') center/cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
}
.lp-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(146,69,69,0.25);
    border: 1px solid rgba(146,69,69,0.5);
    color: #f5c5c5;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}
.lp-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #fff;
}
.lp-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 520px;
}
.lp-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 2rem;
}
.lp-hero-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}
.lp-hero-trust svg { color: #7ec87e; flex-shrink: 0; }
.lp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(146,69,69,0.4);
}
.lp-hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(146,69,69,0.5);
}
.lp-hero-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* Social Proof */
.lp-social-proof { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; margin-left: auto; }
@media (min-width: 1400px) {
    .lp-social-proof { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
    .lp-social-proof .sp-stats { grid-column: 1 / -1; }
}
.sp-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    backdrop-filter: blur(8px);
}
.sp-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sp-text strong { display: block; font-size: 0.85rem; color: #fff; margin-bottom: 2px; }
.sp-text span { font-size: 0.8rem; color: rgba(255,255,255,0.65); line-height: 1.4; }
.sp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.25rem; }
.sp-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 0.875rem 1rem; text-align: center;
}
.sp-stat-num { display: block; font-size: 1.5rem; font-weight: 900; color: var(--secondary); line-height: 1.1; }
.sp-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.55); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   USP-LEISTE
   ============================================================ */
.lp-usp-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem;
}
.lp-usp-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.lp-usp-item { display: flex; align-items: flex-start; gap: 1rem; }
.lp-usp-item svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.lp-usp-item strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.lp-usp-item span { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; }

/* ============================================================
   FORMULAR-SEKTION
   ============================================================ */
.lp-form-section { background: #f7f5f2; padding: 5rem 2rem; }
.lp-form-section.has-bg { background: linear-gradient(to right, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15) 100%), url('/assets/background-anlegen.webp') center/cover no-repeat; }
#lp-form-card {
    background: rgba(255,255,255,0.65) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255,255,255,0.5) !important;
}
.lp-form-section.has-bg .lp-form-context h2 { color: #111; }
.lp-form-section.has-bg .lp-form-context > div > p { color: #2a2a2a; font-weight: 500; }
.lp-form-section.has-bg .lp-step-text strong { color: #111; }
.lp-form-section.has-bg .lp-step-text span { color: #2a2a2a; font-weight: 500; }
.lp-form-section.has-bg .section-eyebrow { color: var(--primary); }
.lp-form-outer {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
    /* Grid-Kinder dürfen nicht über Containergrenzen hinauswachsen */
    min-width: 0;
}
.lp-form-outer > * { min-width: 0; }
.lp-form-context-inner { position: sticky; top: 120px; }
.section-eyebrow {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem;
}
.lp-form-context h2 { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1.25; margin-bottom: 1rem; }
.lp-form-context > div > p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }
.lp-steps { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.lp-step { display: flex; align-items: flex-start; gap: 1rem; }
.lp-step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 0.85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lp-step-text strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.lp-step-text span { font-size: 0.82rem; color: var(--text-light); }
.lp-form-google {
    display: flex; align-items: center; gap: 0.875rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.875rem 1.25rem;
}
.lp-google-stars { font-size: 1.1rem; color: #f59e0b; letter-spacing: 2px; }
.lp-google-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text); }
.lp-google-text span { font-size: 0.78rem; color: var(--text-light); }

/* Formular-Karte */
.lp-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    padding: 2.5rem;
    border: 1px solid var(--border);
    overflow: visible;
}
.lp-form-card-wrap { overflow: visible; }

/* Schritt-Indikator */
.lp-form-steps { display: flex; align-items: center; margin-bottom: 2rem; }
.lp-form-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.lp-form-step span { font-size: 0.72rem; color: var(--text-light); font-weight: 600; text-transform: none; letter-spacing: 0; }
.lp-form-step.active span { color: var(--primary); }
.lp-form-step.done span { color: #16a34a; }
.lp-step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid #e0dbd5; background: #fff;
    color: var(--text-light); font-size: 0.82rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.lp-form-step.active .lp-step-dot { border-color: var(--primary); background: var(--primary); color: #fff; }
.lp-form-step.done .lp-step-dot { border-color: #16a34a; background: #16a34a; color: #fff; }
.lp-step-line { flex: 1; height: 2px; background: #e0dbd5; margin-bottom: 18px; }

/* Schritt-Inhalt */
.lp-step-body { display: flex; flex-direction: column; gap: 1.25rem; }
.lp-step-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.lp-step-sub { font-size: 0.88rem; color: var(--text-light); margin-top: -0.5rem; }

/* Objektart */
.lp-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; }
.lp-type-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 0.875rem 0.5rem; border: 2px solid var(--border);
    border-radius: var(--radius); background: #fff; cursor: pointer;
    transition: all 0.15s; font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.lp-type-btn:hover { border-color: var(--primary); background: #fdf5f5; }
.lp-type-btn.active { border-color: var(--primary); background: #fdf5f5; color: var(--primary); }
.lp-type-icon { color: var(--text-light); }
.lp-type-btn.active .lp-type-icon { color: var(--primary); }

/* Chips */
.lp-chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lp-chip {
    padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 100px;
    background: #fff; font-size: 0.82rem; font-weight: 600; color: var(--text); cursor: pointer; transition: all 0.15s;
}
.lp-chip:hover { border-color: var(--primary); color: var(--primary); }
.lp-chip.active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Budget */
.lp-budget-display { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.lp-slider { width: 100%; accent-color: var(--primary); height: 6px; cursor: pointer; }
.lp-slider-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

/* Felder */
.lp-form-group { display: flex; flex-direction: column; gap: 6px; }
.lp-form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.lp-input, .lp-textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-family: inherit; font-size: 0.9rem; color: var(--text);
    background: #fff; transition: border-color 0.15s; outline: none;
}
.lp-input:focus, .lp-textarea:focus { border-color: var(--primary); }
.lp-textarea { resize: vertical; min-height: 80px; }
.lp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Privacy */
.lp-privacy-row { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }
.lp-privacy-row input { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.lp-privacy-row a { color: var(--primary); text-decoration: underline; }

/* Buttons */
.lp-btn-row { display: flex; gap: 0.75rem; }
.lp-btn-next {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff; font-size: 0.95rem; font-weight: 700;
    padding: 13px 28px; border-radius: var(--radius); border: none; cursor: pointer;
    transition: background 0.2s, transform 0.15s; flex: 1; justify-content: center;
}
.lp-btn-next:hover { background: var(--primary-dark); transform: translateY(-1px); }
.lp-btn-back {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0ece8; color: var(--text); font-size: 0.88rem; font-weight: 600;
    padding: 13px 20px; border-radius: var(--radius); border: none; cursor: pointer;
    transition: background 0.15s; white-space: nowrap;
}
.lp-btn-back:hover { background: #e5e0da; }
.lp-btn-submit {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff; font-size: 0.95rem; font-weight: 700;
    padding: 13px 28px; border-radius: var(--radius); border: none; cursor: pointer;
    transition: background 0.2s, transform 0.15s; flex: 1; justify-content: center;
}
.lp-btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.lp-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Fehler */
.lp-form-error {
    font-size: 0.82rem; color: #dc2626; display: none;
    padding: 8px 12px; background: #fef2f2;
    border-radius: var(--radius); border: 1px solid #fecaca;
}
.lp-form-error.active { display: block; }
.req { color: var(--primary); }
.lp-step-hint { font-size: 0.78rem; color: var(--text-light); text-align: center; }

/* Erfolg */
.lp-success { text-align: center; padding: 1rem 0; }
.lp-success-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: #f0fdf4; border: 2px solid #bbf7d0;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
}
.lp-success h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 0.75rem; }
.lp-success p { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.25rem; }
.lp-success-detail {
    background: #f7f5f2; border-radius: var(--radius); padding: 1rem 1.25rem;
    text-align: left; font-size: 0.85rem; color: var(--text);
    display: flex; flex-direction: column; gap: 4px; margin-bottom: 1.5rem;
}
.lp-success-link { color: var(--primary); font-weight: 700; font-size: 0.9rem; text-decoration: underline; }

/* ============================================================
   TRUST-SEKTION
   ============================================================ */
.lp-trust-section { background: #fff; padding: 5rem 2rem; border-top: 1px solid var(--border); }
.lp-trust-inner { max-width: var(--max-width); margin: 0 auto; }
.lp-trust-title { font-size: 1.8rem; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 3rem; line-height: 1.3; }
.lp-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.lp-trust-card { background: #f7f5f2; border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; border: 1px solid var(--border); }
.lp-trust-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; color: var(--primary);
}
.lp-trust-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.lp-trust-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   FAQ
   ============================================================ */
.lp-faq-section { background: #f7f5f2; padding: 5rem 2rem; }
.lp-faq-inner { max-width: 760px; margin: 0 auto; }
.lp-faq-title { font-size: 1.8rem; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 2.5rem; }
.lp-faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.lp-faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lp-faq-item summary {
    padding: 1.25rem 1.75rem; font-size: 0.95rem; font-weight: 600; color: var(--text);
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; user-select: none;
    min-height: 44px;
}
@media (max-width: 640px) {
    .lp-faq-item summary { padding: 1rem 1.25rem; }
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--primary); font-weight: 400; }
.lp-faq-item[open] summary::after { content: '−'; }
.lp-faq-item p { padding: 0 1.5rem 1.25rem; font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   FINALER CTA
   ============================================================ */
.lp-final-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 2rem; text-align: center; color: #fff;
}
.lp-final-cta-inner { max-width: 600px; margin: 0 auto; }
.lp-final-cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.25; }
.lp-final-cta p { font-size: 1rem; color: rgba(255,255,255,0.82); margin-bottom: 2rem; line-height: 1.6; }
.lp-final-cta .lp-hero-cta { background: #fff; color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.lp-final-cta .lp-hero-cta:hover { background: #f5f5f5; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .lp-usp-inner { grid-template-columns: repeat(2, 1fr); }
    .lp-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .lp-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .lp-hero-visual { display: none; }
    .lp-form-outer { grid-template-columns: 1fr; gap: 2rem; }
    .lp-form-context-inner { position: static; }
}
@media (max-width: 640px) {
    /*
     * overflow-x: clip statt hidden – verhindert horizontales Scrollen
     * OHNE einen neuen Scroll-Container zu erzeugen, damit position:sticky
     * am Site-Header weiterhin korrekt funktioniert.
     */
    body { overflow-x: clip; }

    .lp-hero { padding: 4rem 1.25rem 3rem; }
    .lp-usp-bar { padding: 2rem 1.25rem; }
    .lp-usp-inner { grid-template-columns: 1fr; gap: 1rem; }
    /* Sektionen: gleichmäßiger Randabstand (1.25rem = 20px je Seite) */
    .lp-form-section { padding: 2rem 1.25rem 2.5rem; }
    .lp-form-card { padding: 1.5rem 1rem; }
    .lp-type-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-form-row { grid-template-columns: 1fr; }
    .lp-trust-section, .lp-faq-section { padding: 3.5rem 1.25rem; }
    .lp-trust-grid { grid-template-columns: 1fr; }
    .lp-final-cta { padding: 3.5rem 1.25rem; }
    .lp-final-cta h2 { font-size: 1.5rem; }
    .lp-hero h1 { font-size: 1.75rem; }

    /* Schritt-Indikator: Labels kleiner */
    .lp-form-step span { font-size: 0.65rem; }
    .lp-step-dot { width: 28px; height: 28px; font-size: 0.78rem; }
    .lp-form-steps { margin-bottom: 1.5rem; }

    /* Formular-Buttons: volle Breite */
    .lp-btn-row { flex-direction: column; }
    .lp-btn-back { width: 100%; justify-content: center; order: 2; }
    .lp-btn-next, .lp-btn-submit { order: 1; }

    /* Formular-Karten-Wrapper: volle Breite sicherstellen */
    .lp-form-card-wrap { width: 100%; box-sizing: border-box; }
    /* Kontext-Spalte: kein Mindest-Breite, kein Textüberlauf */
    .lp-form-context { min-width: 0; }
    .lp-form-context h2 { word-break: break-word; }

    /* Beschreibungstext unter dem Titel auf Mobile ausblenden */
    .lp-form-context > div > p { display: none; }

    /* Abstand zwischen Schritten-Liste und Formular kleiner */
    .lp-steps { margin-bottom: 1rem; }
    .lp-form-outer { gap: 1.5rem; }

    /* Zeilenumbruch im Titel auf Mobile deaktivieren */
    .lp-form-context h2 br { display: none; }
}
