/* ==========================================================================
   IMMOYIELD PRO - TOP 3 MARKET LEADER STYLE SYSTEM (ImmoScout24 / Interhyp / Immowelt)
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-subtle: #f1f5f9;
    
    --border-light: #e2e8f0;
    --border-focus: #0f172a;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --brand-navy: #0f172a;
    --brand-navy-hover: #1e293b;
    --brand-accent: #0f766e;
    --color-success: #15803d;
    --color-danger: #b91c1c;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-elevated: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-badge {
    background: var(--brand-navy);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    padding: 9px 16px;
    background: #ffffff;
    color: var(--text-primary);
}

.btn:hover {
    background: var(--bg-subtle);
    border-color: #cbd5e1;
}

.btn-primary {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--brand-navy-hover);
    border-color: var(--brand-navy-hover);
}

.btn-primary-sm {
    background: var(--brand-navy);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.8rem;
    border: none;
}

.btn-secondary-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.btn-hero {
    background: var(--brand-navy);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
}

.btn-hero:hover {
    background: var(--brand-navy-hover);
}

.btn-paywall {
    width: 100%;
    background: var(--brand-navy);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-top: 12px;
    border-radius: 6px;
}

.btn-paywall:hover { background: var(--brand-navy-hover); }

.price-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

/* LANDING HERO */
.hero-landing { padding: 70px 0 45px 0; text-align: center; }
.hero-content { max-width: 760px; }

.hero-tag {
    display: inline-block; font-size: 0.725rem; font-weight: 700; letter-spacing: 0.5px;
    color: var(--brand-navy); background: var(--bg-subtle); padding: 4px 12px;
    border-radius: 4px; border: 1px solid var(--border-light); margin-bottom: 18px;
}

.hero-headline {
    font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800;
    line-height: 1.2; margin-bottom: 16px; color: var(--text-primary);
}

.hero-lead { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 30px; }
.hero-cta-group { display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; }

.trust-bar {
    display: flex; justify-content: center; align-items: center; gap: 32px;
    background: #ffffff; border: 1px solid var(--border-light); padding: 14px 28px;
    border-radius: 8px; max-width: 680px; margin: 0 auto; box-shadow: var(--shadow-card);
}

.trust-item { display: flex; flex-direction: column; align-items: center; }
.trust-num { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.trust-label { font-size: 0.75rem; color: var(--text-muted); }
.trust-divider { width: 1px; height: 24px; background: var(--border-light); }

/* FEATURES & FAQ */
.features-section, .faq-section { padding: 60px 0; border-top: 1px solid var(--border-light); }
.section-header { text-align: center; max-width: 580px; margin: 0 auto 36px auto; }
.section-header h2 { font-family: var(--font-heading); font-size: 1.7rem; margin-bottom: 8px; }
.section-header p { color: var(--text-secondary); font-size: 0.9rem; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 850px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card { background: #ffffff; border: 1px solid var(--border-light); border-radius: 8px; padding: 22px; box-shadow: var(--shadow-card); }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { color: var(--text-secondary); font-size: 0.85rem; }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 800px; margin: 0 auto; }
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { background: #ffffff; border: 1px solid var(--border-light); border-radius: 8px; padding: 18px; box-shadow: var(--shadow-card); }
.faq-item h4 { font-family: var(--font-heading); font-size: 0.9rem; margin-bottom: 6px; }
.faq-item p { color: var(--text-secondary); font-size: 0.825rem; }

.cta-banner-section { padding: 50px 0; text-align: center; border-top: 1px solid var(--border-light); background: #ffffff; }
.footer { padding: 20px 0; border-top: 1px solid var(--border-light); font-size: 0.775rem; color: var(--text-muted); background: #ffffff; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.footer-legal-notice { max-width: 700px; }
.footer-disclaimer-text { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }

/* RECHNER APP INTERFACE */
.main-app { padding-top: 28px; padding-bottom: 50px; }

.calculator-grid { display: grid; grid-template-columns: 440px 1fr; gap: 20px; }
@media (max-width: 1024px) { .calculator-grid { grid-template-columns: 1fr; } }

.section-title-wrap h2 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 2px; }
.subtitle-sm { font-size: 0.775rem; color: var(--text-muted); margin-bottom: 14px; }

.group-header {
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
    color: var(--text-primary); margin: 18px 0 10px 0; padding-top: 12px; border-top: 1px solid var(--border-light);
}

.form-group { margin-bottom: 14px; position: relative; }
.margin-top { margin-top: 16px; }
.margin-bottom-xs { margin-bottom: 6px; }
.margin-bottom-sm { margin-bottom: 10px; }

.label-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.label-with-info { display: flex; align-items: center; gap: 5px; }

.info-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: #e2e8f0; color: #475569; font-size: 0.65rem; font-weight: 700; cursor: help; position: relative;
}

.info-icon:hover { background: var(--brand-navy); color: #ffffff; }

.tooltip-box {
    display: none; position: absolute; bottom: 100%; left: 0; width: 270px;
    background: #0f172a; border: 1px solid #1e293b; border-radius: 6px;
    padding: 10px 12px; font-size: 0.75rem; color: #cbd5e1; box-shadow: 0 10px 25px rgba(0,0,0,0.15); z-index: 50; margin-bottom: 6px; line-height: 1.35;
}

.tooltip-box strong { display: block; color: #ffffff; margin-bottom: 3px; }
.info-icon:hover .tooltip-box { display: block; }

.field-value-display { font-weight: 700; color: var(--text-primary); }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input {
    width: 100%; background: #ffffff; border: 1px solid var(--border-light);
    border-radius: 6px; padding: 7px 32px 7px 10px; color: var(--text-primary);
    font-size: 0.875rem; font-family: var(--font-family); font-weight: 600; outline: none;
}

.input-wrapper input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08); }
.input-wrapper .unit { position: absolute; right: 10px; color: var(--text-muted); font-size: 0.775rem; }

input[type="range"] { width: 100%; accent-color: var(--brand-navy); height: 4px; background: var(--border-light); border-radius: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

/* AUTOCOMPLETE DROPDOWN */
.search-relative { position: relative; }
.autocomplete-dropdown {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: #ffffff; border: 1px solid var(--border-light);
    border-radius: 6px; box-shadow: var(--shadow-elevated); z-index: 200; max-height: 200px; overflow-y: auto;
}
.autocomplete-dropdown.active { display: block; }

.autocomplete-item {
    padding: 8px 12px; font-size: 0.825rem; color: var(--text-primary);
    cursor: pointer; border-bottom: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--bg-subtle); color: var(--brand-navy); }
.autocomplete-item .item-sub { font-size: 0.725rem; color: var(--text-muted); }

/* MIETSPIEGEL BENCHMARK BOX */
.mietspiegel-box { background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: 6px; padding: 12px 14px; margin-bottom: 16px; }
.mietspiegel-header { margin-bottom: 6px; }
.mietspiegel-title { font-family: var(--font-heading); font-size: 0.825rem; font-weight: 700; color: var(--text-primary); }
.mietspiegel-details { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 6px; }
.mietspiegel-stat { display: flex; flex-direction: column; }
.stat-label { color: var(--text-muted); font-size: 0.725rem; }
.mietspiegel-stat strong { color: var(--text-primary); font-size: 0.9rem; }
.mietspiegel-note { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; margin-bottom: 8px; }

.btn-apply-rent {
    width: 100%; background: #ffffff; color: var(--text-primary);
    border: 1px solid var(--border-light); padding: 7px 10px; font-size: 0.775rem; font-weight: 600;
}
.btn-apply-rent:hover { background: var(--bg-page); border-color: #cbd5e1; }
.margin-top-xs { margin-top: 4px; }

/* AIRBNB TOGGLE BOX */
.airbnb-toggle-card { background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: 6px; padding: 12px; margin-top: 14px; }
.toggle-header { display: flex; justify-content: space-between; align-items: center; }
.toggle-title { font-family: var(--font-heading); font-size: 0.825rem; font-weight: 700; color: var(--text-primary); }

.switch { position: relative; display: inline-block; width: 34px; height: 18px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1; transition: .2s; border-radius: 18px;
}
.slider:before {
    position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px;
    background-color: white; transition: .2s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--brand-navy); }
input:checked + .slider:before { transform: translateX(16px); }

.airbnb-panel { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-light); display: none; }
.airbnb-panel.active { display: block; }
.plz-info-badge { font-size: 0.725rem; color: var(--brand-navy); background: #ffffff; border: 1px solid var(--border-light); padding: 5px 8px; border-radius: 4px; margin-top: 6px; }

/* METRICS PANEL */
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.metric-card { background: #ffffff; border: 1px solid var(--border-light); border-radius: 6px; padding: 14px; box-shadow: var(--shadow-card); }
.metric-hero { border-color: var(--brand-navy); }

.metric-label { font-size: 0.75rem; color: var(--text-muted); }
.metric-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin: 2px 0; color: var(--text-primary); }
.metric-sub { font-size: 0.7rem; color: var(--text-muted); }

/* DETAILS & CHART */
.detail-card { margin-bottom: 16px; }
.detail-title { font-family: var(--font-heading); font-size: 0.9rem; margin-bottom: 10px; }
.detail-list { display: flex; flex-direction: column; gap: 6px; }

.detail-row {
    display: flex; justify-content: space-between; font-size: 0.825rem;
    color: var(--text-secondary); padding-bottom: 4px; border-bottom: 1px dashed var(--border-light);
}
.detail-row strong { color: var(--text-primary); }

.highlight-row { border-bottom: none; font-size: 0.9rem; }
.highlight-row strong { color: var(--color-success); }

.chart-card { margin-bottom: 16px; }
.chart-container { height: 200px; }

.paywall-banner { background: #ffffff; border: 1px solid var(--border-light); margin-bottom: 16px; box-shadow: var(--shadow-card); }
.paywall-badge {
    background: var(--bg-subtle); color: var(--brand-navy); font-size: 0.65rem;
    font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-bottom: 4px; display: inline-block;
}

.affiliate-card { background: #ffffff; border: 1px dashed var(--border-light); text-align: center; }
.affiliate-badge { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 2px; }
.affiliate-card h4 { margin-bottom: 2px; font-size: 0.875rem; }
.affiliate-card p { font-size: 0.775rem; color: var(--text-muted); margin-bottom: 10px; }

/* MODALS & PAYMENT BUTTONS */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-card {
    background: #ffffff; border: 1px solid var(--border-light);
    border-radius: 8px; padding: 24px; width: 100%; max-width: 380px;
    position: relative; box-shadow: var(--shadow-elevated);
}

.close-btn {
    position: absolute; top: 10px; right: 12px;
    background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer;
}

.modal-header { text-align: center; margin-bottom: 14px; }
.modal-header h2 { font-family: var(--font-heading); font-size: 1.1rem; }
.modal-header p { color: var(--text-muted); font-size: 0.775rem; }

.modal-summary { background: var(--bg-subtle); padding: 10px; border-radius: 6px; margin-bottom: 12px; }
.summary-item { display: flex; justify-content: space-between; font-size: 0.825rem; }
.summary-price { color: var(--color-success); font-size: 0.95rem; }
.legal-price-note { font-size: 0.675rem; color: var(--text-muted); margin-top: 4px; border-top: 1px dashed var(--border-light); padding-top: 4px; }

.legal-waiver-box {
    background: var(--bg-subtle); border: 1px solid var(--border-light);
    border-radius: 6px; padding: 8px 10px; margin-bottom: 12px;
}
.legal-waiver-label {
    display: flex; align-items: flex-start; gap: 8px; font-size: 0.675rem;
    color: var(--text-secondary); cursor: pointer; line-height: 1.3;
}
.legal-waiver-label input { margin-top: 2px; }

.payment-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.btn-payment { width: 100%; padding: 10px; font-size: 0.825rem; font-weight: 600; border-radius: 6px; cursor: pointer; }
.btn-paypal { background: #003087; color: #ffffff; border: 1px solid #002266; }
.btn-paypal:hover { background: #002566; }
.btn-apple { background: #000000; color: #ffffff; border: 1px solid #000000; }
.btn-klarna { background: #ffb3c7; color: #000000; border: 1px solid #ffa0b8; }
.btn-card { background: var(--brand-navy); color: #ffffff; border: none; }

.modal-footer-note { font-size: 0.7rem; color: var(--text-muted); text-align: center; }

/* ==========================================================================
   OFFICIAL PRINTABLE BANK DOSSIER STYLES (@media print)
   ========================================================================== */
.print-only { display: none; }

@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }

    body {
        background-color: #ffffff !important;
        color: #0f172a !important;
        font-family: var(--font-family) !important;
        font-size: 10pt;
        margin: 0;
        padding: 0;
    }

    .dossier-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        border-bottom: 2px solid #0f172a;
        padding-bottom: 12px;
        margin-bottom: 18px;
    }

    .dossier-brand h1 {
        font-family: var(--font-heading);
        font-size: 13pt;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 2px;
    }

    .dossier-sub {
        font-size: 8.5pt;
        color: #475569;
    }

    .dossier-meta {
        text-align: right;
        font-size: 8.5pt;
        display: flex;
        flex-direction: column;
    }

    .dossier-section {
        margin-bottom: 16px;
    }

    .dossier-section h2 {
        font-family: var(--font-heading);
        font-size: 10.5pt;
        font-weight: 700;
        color: #0f172a;
        border-bottom: 1px solid #cbd5e1;
        padding-bottom: 4px;
        margin-bottom: 8px;
    }

    .dossier-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9pt;
        margin-bottom: 10px;
    }

    .dossier-table th, .dossier-table td {
        padding: 5px 8px;
        border: 1px solid #cbd5e1;
        text-align: left;
    }

    .dossier-table th {
        background-color: #f1f5f9;
        font-weight: 700;
    }

    .table-total {
        background-color: #f8fafc;
        font-weight: 700;
    }

    .highlight-total {
        background-color: #e2e8f0;
    }

    .dossier-metrics-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dossier-box {
        border: 1px solid #cbd5e1;
        padding: 8px 10px;
        border-radius: 4px;
        background: #f8fafc;
        display: flex;
        flex-direction: column;
    }

    .dossier-box-title { font-size: 8pt; color: #475569; font-weight: 600; }
    .dossier-box-value { font-size: 12pt; font-weight: 800; color: #0f172a; margin: 2px 0; }
    .dossier-box-desc { font-size: 7.5pt; color: #64748b; }

    .dossier-callout {
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        padding: 10px 14px;
        font-size: 8.5pt;
        border-left: 4px solid #0f172a;
        line-height: 1.4;
    }

    .dossier-disclaimer {
        margin-top: 14px;
        font-size: 7.5pt;
        color: #475569;
        border-top: 1px dashed #cbd5e1;
        padding-top: 8px;
        line-height: 1.35;
    }

    .dossier-signatures {
        display: flex;
        justify-content: space-between;
        margin-top: 28px;
        padding-top: 10px;
    }

    .sig-box {
        width: 45%;
        text-align: center;
        font-size: 8pt;
        color: #475569;
    }

    .sig-line {
        border-top: 1px solid #0f172a;
        margin-bottom: 4px;
    }

    .page-break {
        page-break-before: always;
    }
}
