/**
 * MyImmoLeads: Landingpage Mehrfamilienhaus verkaufen im Rheinland
 *
 * Ergänzt css/style.css und css/city-landingpage.css. Dort liegen Kopfzeile,
 * Hero, Funnel, Kacheln, Ablauf, FAQ und Fußzeile. Diese Datei enthält nur,
 * was die Standortseiten nicht kennen: Kennzahlenband, Vergleichstabelle,
 * Rechner, Städteliste, Three.js-Hintergrund und Einblenden.
 *
 * Farben kommen ausschließlich aus den Variablen von .mil-lp (--lp-*).
 * BEM mit Präfix zh-.
 */

/* ─── Allgemein ───────────────────────────────────────────────────────────── */

.zh-nur-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Fokus sichtbar auch bei Links und Zusammenfassungen */
.zh-seite a:focus-visible,
.zh-seite summary:focus-visible,
.zh-seite .zh-tabelle:focus-visible {
    outline: 2px solid var(--lp-rot);
    outline-offset: 2px;
}

/* Kopfzeile: Button statt Telefonnummer, Touch-Ziel mindestens 44 px */
.zh-topbar__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 0;
    padding: .55rem 1.1rem;
    font-size: .92rem;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .zh-topbar__cta { padding: .5rem .8rem; font-size: .82rem; }
}

/* Weitere Touch-Ziele im Funnel und in der Fußzeile */
.zh-seite .mil-lp__btn,
.zh-seite .mil-lp__input { min-height: 48px; }
.zh-seite .mil-lp__footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ─── Hero: Three.js-Hintergrund ──────────────────────────────────────────── */

.zh-hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(1.25rem, 3vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

/* Der Canvas liegt absolut hinter dem Inhalt: keine Layout-Verschiebung */
.zh-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: 0;
    transition: opacity .8s ease;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 75%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 75%, transparent 100%);
}
.zh-hero__canvas--bereit { opacity: 1; }
.zh-hero__grid { position: relative; z-index: 1; }

/* Honeypot: für Menschen unsichtbar */
.zh-funnel__falle {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Vier Objektarten in zwei Spalten statt 3 + 1 */
.mil-lp__kacheln.zh-kacheln--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zh-kacheln--zwei .mil-lp__kachel { min-height: 5.6rem; }

/* Datenschutz-Checkbox: Fehlerzustand */
.zh-check--fehler { color: var(--lp-rot); }
.zh-check--fehler input { outline: 2px solid var(--lp-rot); outline-offset: 2px; }

.zh-seite .mil-lp__feldhinweis a { color: var(--lp-rot); }

/* ─── Kennzahlenband ──────────────────────────────────────────────────────── */

.zh-band {
    background: var(--lp-text);
    color: var(--lp-flaeche);
    padding: 1.75rem 0;
}
.zh-band__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
}
.zh-band__punkt { display: flex; flex-direction: column; gap: .15rem; }
.zh-band__punkt strong { font-size: 1.2rem; letter-spacing: -.3px; }
.zh-band__punkt span { font-size: .85rem; color: var(--lp-linie); line-height: 1.4; }

/* ─── Abschnitte ──────────────────────────────────────────────────────────── */

.zh-abschnitt { padding: clamp(2rem, 5vw, 4rem) 0; }
.zh-abschnitt--hell {
    background: var(--lp-flaeche);
    border-top: 1px solid var(--lp-linie);
    border-bottom: 1px solid var(--lp-linie);
}
.zh-abschnitt h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -.5px;
    margin: 0 0 1rem;
}
.zh-abschnitt__lead {
    color: var(--lp-grau);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 62ch;
}

/* Vergleichstabelle: auf Mobil horizontal scrollbar im Container */
.zh-tabelle {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--lp-flaeche);
    border: 1px solid var(--lp-linie);
    border-radius: var(--lp-radius);
}
.zh-tabelle__tabelle {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    text-align: left;
}
.zh-tabelle__tabelle th,
.zh-tabelle__tabelle td {
    padding: .9rem 1rem;
    vertical-align: top;
    line-height: 1.5;
    border-bottom: 1px solid var(--lp-linie);
}
.zh-tabelle__tabelle thead th {
    background: var(--lp-hinter);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.zh-tabelle__tabelle thead th:last-child { background: var(--lp-rot); color: var(--lp-flaeche); }
.zh-tabelle__tabelle tbody th { width: 24%; font-weight: 700; }
.zh-tabelle__tabelle tbody td:last-child { background: var(--lp-hinter); font-weight: 600; }
.zh-tabelle__tabelle tbody tr:last-child th,
.zh-tabelle__tabelle tbody tr:last-child td { border-bottom: 0; }

/* Rechner */
.zh-rechner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
.zh-rechner__karte {
    background: var(--lp-hinter);
    border: 1px solid var(--lp-linie);
    border-radius: var(--lp-radius);
    padding: clamp(1.1rem, 3vw, 1.75rem);
}
.zh-rechner__ergebnis { margin: 1.1rem 0 .9rem; min-height: 4rem; }
.zh-rechner__leer { margin: 0; color: var(--lp-grau); }
.zh-rechner__zeile {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .2rem .8rem;
    margin: 0;
    padding: .65rem 0;
    border-bottom: 1px solid var(--lp-linie);
}
.zh-rechner__zeile strong { color: var(--lp-rot); }
.zh-rechner__btn { width: 100%; margin-top: .5rem; }

/* Städteliste */
.zh-staedte {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 1.5rem;
}
.zh-staedte li {
    break-inside: avoid;
    padding: .45rem 0;
    border-bottom: 1px solid var(--lp-linie);
    font-weight: 600;
}

/* Abschluss: Block aus den Ratgeber-Klassen, hier ohne Zusatzabstand oben */
.zh-abschluss { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.zh-abschluss .mil-lp__ratgeber-cta { margin-top: 0; }
.zh-abschluss .mil-lp__feldhinweis { margin-top: 1rem; }

/* ─── Einblenden ──────────────────────────────────────────────────────────── */

.zh-reveal--bereit { opacity: 0; transform: translateY(14px); }
.zh-reveal--bereit.zh-reveal--sichtbar {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s ease;
}

/* Hover auf Karten der Standortseiten-Klassen */
.zh-seite .mil-lp__bezirk { transition: border-color .15s, transform .15s; }
.zh-seite .mil-lp__bezirk:hover { border-color: var(--lp-rot); transform: translateY(-2px); }

/* ─── Breiter ─────────────────────────────────────────────────────────────── */

@media (min-width: 640px) {
    .zh-band__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .zh-staedte { columns: 3; }
}

@media (min-width: 960px) {
    .zh-rechner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3rem;
        align-items: start;
    }
    .zh-staedte { columns: 4; }
}

/* ─── Bewegung aus ────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .zh-hero__canvas,
    .zh-seite .mil-lp__bezirk,
    .zh-reveal--bereit.zh-reveal--sichtbar { transition: none; }
    .zh-seite .mil-lp__bezirk:hover { transform: none; }
    .zh-reveal--bereit { opacity: 1; transform: none; }
}
