/* Gestaltung der Website von Nordkant Immobilien. basis.css liefert Tokens und Bausteine, hier entsteht der eigene Auftritt:
   Papier, große Archivo-Schrift, Petrol als einzige Farbe, eine Kante von 4 Pixeln an Knöpfen und Bildern. */

:root { --p900: #0e2831; --p700: #1f4e5f; --p500: #3d7183; --p200: #a9c3cb; --mass: "JetBrains Mono", ui-monospace, monospace; }

html { scrollbar-color: var(--p500) var(--flaeche); }
h1 { letter-spacing: -0.035em; line-height: 0.98; }
h2 { letter-spacing: -0.03em; }
:focus-visible { outline-color: var(--p500); }

/* Kopfleiste und Fuß */
.marke img { height: 3rem; width: auto; }
@media (max-width: 520px) { .marke img { height: 2.5rem; } }
.menue { font-weight: 500; }
.knopf { line-height: 1.4; }
.knopf--hell { background: var(--p700); color: var(--flaeche); }
.knopf--hell:hover { background: var(--p900); }
.fuss__innen { align-items: start; }
.fuss address { font-style: normal; display: grid; gap: 0.2rem; }
.fuss address strong { color: var(--tinte); font-weight: 600; }

/* Einstieg in die Preiseinschätzung: Die Auswahl der Objektart ist schon die erste Frage der Strecke */
.frage { display: grid; gap: 0.7rem; }
.frage > span { font-weight: 600; font-size: var(--gr-s); color: var(--p900); }
.wahl { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wahl a { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0.55rem 1.05rem; border: 1px solid var(--p700); border-radius: var(--radius); background: var(--flaeche); color: var(--p700); font-weight: 600; font-size: var(--gr-s); line-height: 1.4; text-decoration: none; transition: background-color 0.3s, color 0.3s; }
.wahl a:hover { background: var(--p700); color: var(--flaeche); }
.abschnitt--dunkel .frage > span { color: var(--dunkel-tinte); }
.abschnitt--dunkel .wahl a { background: transparent; border-color: rgba(244, 243, 239, 0.55); color: var(--dunkel-tinte); }
.abschnitt--dunkel .wahl a:hover { background: var(--flaeche); color: var(--p900); }

/* Seitenkopf der Startseite. Grundzustand (ohne Bewegung): Text, Landschaft, Foto und zweite Aussage stehen untereinander. */
.held { position: relative; background: var(--flaeche); padding-bottom: 3rem; display: flex; flex-direction: column; }
.held__text { order: 1; position: relative; z-index: 2; padding-top: clamp(6.5rem, 15vh, 9.5rem); display: grid; gap: clamp(1.2rem, 2.6vh, 2rem); }
.held__unten { display: grid; gap: 1.5rem 4rem; align-items: start; }
@media (min-width: 900px) { .held__unten { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); } }
.held .einleitung { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); line-height: 1.55; max-width: 44ch; }
.held__flaeche { order: 2; display: block; width: 100%; height: 46vh; margin-top: -1rem; }
.held__foto { order: 3; position: relative; height: 62vh; margin-inline: var(--rand); border-radius: var(--radius); overflow: clip; }
.held__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.held__schleier { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 40, 49, 0.3) 0%, rgba(14, 40, 49, 0) 26%, rgba(14, 40, 49, 0) 46%, rgba(14, 40, 49, 0.8) 100%); opacity: 0; }
.held__satz { order: 4; margin: 0; padding: 3rem var(--rand) 0; font-family: var(--schrift-titel); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(2rem, 1.1rem + 4.2vw, 4.4rem); color: var(--p900); }
.held__satz span { display: block; max-width: 17ch; }
@media (max-width: 899px) { .held__foto img { object-position: 80% 50%; } }

/* Mit Bewegung: ein Bildschirm, alles liegt übereinander. Gilt schon beim Laden, damit nichts springt. */
.bewegung-wartet .held, .held--buehne { height: 100vh; height: 100svh; min-height: 38rem; padding-bottom: 0; overflow: clip; display: block; }
.bewegung-wartet .held__flaeche, .held--buehne .held__flaeche { position: absolute; inset: 0; height: 100%; margin: 0; }
.bewegung-wartet .held__foto, .held--buehne .held__foto { position: absolute; inset: 0; z-index: 3; height: auto; margin: 0; border-radius: 0; visibility: hidden; will-change: clip-path; }
.held--buehne .held__foto img { will-change: transform; }
.bewegung-wartet .held__satz, .held--buehne .held__satz { position: absolute; z-index: 4; left: var(--rand); right: var(--rand); bottom: clamp(3rem, 9vh, 6rem); padding: 0; color: var(--flaeche); visibility: hidden; }

/* Abschnitt: Käufer von außerhalb, mit zwei versetzten Bildern */
.gross { max-width: 34ch; font-family: var(--schrift-titel); font-weight: 500; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--p900); }
.spalte { max-width: 38em; color: var(--tinte-2); }
.bilderpaar { display: grid; gap: clamp(1rem, 2.4vw, 2rem); margin-top: clamp(3rem, 7vw, 6rem); align-items: start; }
.bilderpaar figure { margin: 0; aspect-ratio: 5 / 3; overflow: clip; border-radius: var(--radius); }
.bilderpaar img { width: 100%; height: 100%; object-fit: cover; }
.bilderpaar figure.hoch { aspect-ratio: 4 / 5; }
.bilderpaar figure.hoch img { object-position: 50% 78%; }
@media (min-width: 760px) {
  .bilderpaar { grid-template-columns: 7fr 5fr; }
  .bilderpaar figure + figure { aspect-ratio: 4 / 3; margin-top: clamp(4rem, 10vw, 9rem); }
  .bilderpaar figure.hoch { aspect-ratio: 4 / 5; }
}

/* Abschnitt: der Preis */
.preis { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
@media (min-width: 900px) { .preis { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.lesetext { color: var(--p900); font-weight: 600; line-height: 1.3; }

/* Zwei Leistungen als große Bildflächen */
.kacheln--paar > li:first-child { grid-column: auto; }
.kacheln--paar > li:first-child .kachel, .kacheln--paar .kachel { aspect-ratio: 4 / 5; }
@media (min-width: 720px) { .kacheln--paar .kachel, .kacheln--paar > li:first-child .kachel { aspect-ratio: 5 / 6; } }
.kachel::before { background: linear-gradient(to top, rgba(14, 40, 49, 0.9), rgba(14, 40, 49, 0.3) 48%, rgba(14, 40, 49, 0) 78%); }

/* Orte in großer Schrift */
.orte { border-block: 1px solid var(--linie); }
.schriftzug { color: var(--p900); }
.schriftzug--linie { -webkit-text-stroke-color: var(--p700); }
.orte__fuss { display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: baseline; justify-content: space-between; padding-bottom: clamp(2rem, 5vw, 4rem); }

/* Über Nordkant: zwei Angaben, groß gesetzt */
.ueber { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) { .ueber { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }

/* Schluss */
.schluss { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.schluss h2 { max-width: 16ch; font-size: var(--gr-xxl); line-height: 0.98; letter-spacing: -0.035em; }

/* Cookie-Banner: kleine Karte unten links, ohne Abdunklung. Ablehnen und Annehmen bleiben gleich gestaltet. */
.cookie { max-width: 26rem; margin-left: 0; padding: 1.1rem 1.2rem; box-shadow: 0 18px 40px -22px rgba(14, 40, 49, 0.45); }
.cookie__knoepfe { margin-top: 0.9rem; }

[data-einwilligung-oeffnen][hidden] { display: none; }

.recht { padding-top: 9rem; }
.recht .rahmen { max-width: 46rem; }
.recht h1 { font-size: var(--gr-xl); }
.recht h2 { font-size: var(--gr-l); margin-top: 2.5rem; }
.recht h3 { font-size: var(--gr-m); margin-top: 2rem; letter-spacing: -0.01em; }

.fehlerseite { min-height: 80svh; display: grid; align-items: center; padding-top: 9rem; }

.held h1 { max-width: 12em; }
.held__satz span { text-wrap: balance; }

/* Große Ortsnamen: kleiner als der Standard des Grundgerüsts */
.orte { --gr-riesig: clamp(2.8rem, 8.5vw, 8rem); }

/* Unterseiten */
.seitenkopf--bild::before { background: linear-gradient(to top, rgba(14, 40, 49, 0.9), rgba(14, 40, 49, 0.4) 55%, rgba(14, 40, 49, 0.68)); }
.seitenkopf--bild .knopf { background: var(--flaeche); color: var(--p900); }
/* Kopf über einem Foto: Logo und Menü hell, bis der Kopf beim Scrollen seine Papierfläche bekommt */
body:has(.seitenkopf--bild) .kopf:not(.kopf--gerollt) { color: #fff; }
body:has(.seitenkopf--bild) .kopf:not(.kopf--gerollt) .marke img { filter: brightness(0) invert(1); }
.menue-offen body:has(.seitenkopf--bild) .kopf:not(.kopf--gerollt) { color: var(--tinte); }
.menue-offen body:has(.seitenkopf--bild) .kopf:not(.kopf--gerollt) .marke img { filter: none; }
.seitenkopf--kurz { min-height: 0; padding-block: 9.5rem 1rem; }
.seitenkopf--kurz h1 { max-width: 18ch; font-size: var(--gr-xl); line-height: 1.02; }
.szene h2 { font-size: var(--gr-xxl); line-height: 0.98; letter-spacing: -0.035em; max-width: 14ch; }
.szene .einleitung { max-width: 32em; }

.ablauf { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 3rem; }
.schritt { padding: 2rem; border: 1px solid var(--linie); border-radius: var(--radius); display: grid; gap: 0.75rem; min-height: 18rem; align-content: end; }
.schritt__nr { font-family: var(--mass); font-size: var(--gr-s); color: var(--tinte-2); }

.ortsliste li { padding-block: 0.9rem; border-top: 1px solid var(--linie); font-family: var(--schrift-titel); font-weight: 600; font-size: var(--gr-xl); line-height: 1.05; letter-spacing: -0.03em; color: var(--p900); }
.ortsliste li:last-child { border-bottom: 1px solid var(--linie); }

.zeichen { display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 26rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche-2); font-family: var(--schrift-titel); font-weight: 600; font-size: var(--gr-xxl); letter-spacing: -0.04em; color: var(--p700); }

/* Preiseinschätzung: Strecke zum Durchklicken */
.strecke-abschnitt { padding-top: clamp(2rem, 4vw, 3.5rem); }
.strecke { max-width: 44rem; display: grid; gap: 2rem; }
.strecke fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 1.5rem; min-width: 0; }
.strecke legend { padding: 0; margin-bottom: 1.5rem; font-family: var(--schrift-titel); font-weight: 600; font-size: var(--gr-l); line-height: 1.15; letter-spacing: -0.02em; color: var(--p900); }
.strecke__kopf { display: none; gap: 0.6rem; }
.strecke--bereit .strecke__kopf { display: grid; }
.strecke__stand { font-family: var(--mass); font-size: var(--gr-xs); color: var(--tinte-2); }
.strecke__balken { height: 3px; background: var(--linie); border-radius: 2px; overflow: hidden; }
.strecke__balken i { display: block; height: 100%; width: 100%; background: var(--p700); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.5s var(--ruhe); }
.auswahl { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .auswahl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.auswahl label { position: relative; display: block; cursor: pointer; }
.auswahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.auswahl span { display: flex; align-items: center; min-height: 3.6rem; padding: 0.8rem 1.1rem; border: 1px solid var(--p700); border-radius: var(--radius); font-weight: 600; color: var(--p700); line-height: 1.4; transition: background-color 0.25s, color 0.25s; }
.auswahl label:hover span { background: var(--flaeche-2); }
.auswahl input:checked + span { background: var(--p700); color: var(--flaeche); }
.auswahl input:focus-visible + span { outline: 2px solid var(--p500); outline-offset: 3px; }
.felder { display: grid; gap: 1.1rem; }
.feld { display: grid; gap: 0.4rem; }
.feld > span { font-weight: 600; font-size: var(--gr-s); color: var(--p900); }
.feld input { width: 100%; min-height: 3.2rem; padding: 0.6rem 0.9rem; border: 1px solid var(--p500); border-radius: var(--radius); background: #fff; color: var(--tinte); font: inherit; caret-color: var(--p700); }
.feld input:focus-visible { outline: 2px solid var(--p500); outline-offset: 2px; border-color: var(--p700); }
.feld input[aria-invalid="true"] { border-color: #a23b2a; }
.feld small { font-size: var(--gr-xs); color: var(--tinte-2); }
.feld--falle { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.haken { display: flex; gap: 0.8rem; align-items: flex-start; font-size: var(--gr-s); line-height: 1.5; cursor: pointer; }
.haken input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--p700); }
.strecke__fehler { min-height: 1.5em; font-weight: 600; font-size: var(--gr-s); color: #a23b2a; }
.strecke__fehler:empty { display: none; }
.strecke__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.strecke button[disabled] { opacity: 0.55; cursor: default; }
.strecke__fertig { max-width: 44rem; display: grid; gap: 1.5rem; }
.strecke__fertig:focus { outline: none; }
.strecke [hidden], .strecke__fertig[hidden], .strecke__fertig [hidden] { display: none; }
.strecke__mail { display: grid; gap: 1.25rem; }
.strecke__mail-knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.strecke__angaben { margin: 0; padding: 1.1rem 1.25rem; border: 1px solid var(--linie); border-radius: var(--radius); font: inherit; font-size: var(--gr-s); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

.frage { align-content: start; }
.wahl { align-items: flex-start; }
.strecke[hidden] { display: none; }

/* Weg zur Preiseinschätzung am Ende der Unterseiten */
.weiter__frage { padding-top: clamp(3.5rem, 2rem + 6vw, 7rem); }
.weiter__frage + .weiter__link { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.abschnitt--dunkel .frage > span { color: var(--dunkel-tinte); }
.schritt h3 a { color: inherit; text-underline-offset: 0.2em; }
/* Kopfzeile bleibt beim Scrollen stehen, damit der Knopf zur Preiseinschätzung immer erreichbar ist */
.kopf--versteckt { transform: none; }
/* Ablauf quer: bei "weniger Bewegung" läuft keine Animation, die Reihe muss dann scrollbar sein */
@media (prefers-reduced-motion: reduce) { [data-bewegung="horizontal"] { overflow-x: auto; } }
/* Fokusring auf dunklen Flächen hell */
.seitenkopf--bild :focus-visible, .abschnitt--dunkel :focus-visible, .szene :focus-visible,
body:has(.seitenkopf--bild) .kopf:not(.kopf--gerollt) :focus-visible { outline-color: var(--flaeche); }
