/* =========================================================================
   LEVONOVA Immobilien — Wertermittlungs-Funnel
   Mobile first; ab 768px greift das Desktop-Layout.
   ========================================================================= */

/* ---------------------------------- Tokens -------------------------------- */
:root {
  --navy:        #091F44;
  --gold:        #A58500;
  --gold-hell:   #C9A227;
  --olive:       #594C20;
  --papier:      #FAF8F3;
  --fuss-bg:     #F1EDE3;
  --border:      #E5E0D5;
  --border-kraeftig: #C9C2B2;
  --text-muted:  #7A7261;
  --placeholder: #A39B87;
  --fehler:      #A34A3A;
  --weiss:       #FFFFFF;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --r-feld: 20px;
  --r-pill: 999px;

  --seite-padding: 20px;
}

/* ---------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
a:hover { color: var(--gold); }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

input:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
}

input::placeholder,
textarea::placeholder { color: var(--placeholder); opacity: 1; }

.visuell-versteckt {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: var(--papier);
  padding: 12px 18px;
  border-radius: 0 0 var(--r-feld) 0;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--papier); }

[hidden] { display: none !important; }

/* --------------------------------- Gerüst --------------------------------- */
.seite {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
}

.kopf {
  background: var(--papier);
  border-bottom: 1px solid var(--border);
}

.kopf__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--seite-padding);
  display: flex;
  align-items: center;
  gap: 10px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.marke:hover { color: var(--navy); }

.marke__logo { height: 28px; width: auto; }

.marke__wort {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.marke__wort-sub { font-size: 11px; letter-spacing: 0.2em; }

/* Der Claim steht auf Mobil bereits im Header-Bereich der Marke – ausgeblendet,
   um die Zeile nicht zu brechen (entspricht der Mobil-Referenz). */
.kopf__claim { display: none; }

.inhalt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  padding: 24px var(--seite-padding) 28px;
}

.vertraulich {
  margin: 0 auto;
  padding: 0 var(--seite-padding) 20px;
  max-width: 640px;
  text-align: center;
  color: var(--placeholder);
  font-size: 13px;
  line-height: 1.7;
}

.fuss {
  background: var(--fuss-bg);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.fuss__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px var(--seite-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fuss__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 12px;
}
.fuss__links a { color: var(--olive); }
.fuss__links a:hover { color: var(--gold); }
.fuss__trenner { color: var(--border-kraeftig); }

.fuss__copy {
  margin: 0;
  color: var(--placeholder);
  font-size: 11px;
}

/* ------------------------------- Fortschritt ------------------------------ */
.fortschritt {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.fortschritt__zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.fortschritt__label { color: var(--navy); font-size: 13px; font-weight: 600; }
.fortschritt__wert  { color: var(--navy); font-size: 13px; }

.fortschritt__track {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--border);
  overflow: hidden;
}

.fortschritt__fill {
  height: 6px;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--gold);
  transition: width 300ms var(--ease);
}

/* --------------------------------- Typo ----------------------------------- */
.titel {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  text-wrap: pretty;
}

.titel--landing { font-size: 30px; line-height: 1.15; }
.titel--frage   { font-size: 26px; line-height: 1.18; }
.titel--danke   { font-size: 40px; line-height: 1.1; }
.titel--rechts  { font-size: 30px; line-height: 1.15; }

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow--gross { font-size: 11px; }

.goldlinie {
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.goldlinie--lang { width: 88px; }

.subline {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* -------------------------------- Ansichten ------------------------------- */
.ansicht { width: 100%; }

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.landing__kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.vertrauenszeile {
  margin: 0;
  text-align: center;
  color: var(--placeholder);
  font-size: 12px;
  line-height: 1.7;
  max-width: 520px;
}

/* Objektart-Kacheln — Mobil: Zeilen-Buttons */
.kacheln {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.kachel {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 16px 20px;
  text-align: left;
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.kachel svg { flex-shrink: 0; width: 34px; height: 34px; }
.kachel:hover { border-color: var(--gold); }
.kachel[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* Schritt-Ansicht */
.schritt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
}

.schritt__icon { display: flex; }
.schritt__icon svg { width: 48px; height: 48px; }

.schritt__kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  max-width: 780px;
}

.schritt__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* -------------------------------- Felder ---------------------------------- */
.feldgruppe {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 480px;
}
.feldgruppe--breit   { max-width: 560px; }
.feldgruppe--pills   { max-width: 760px; }
.feldgruppe--kontakt { max-width: 760px; gap: 12px; }

.feldgruppe--adresse {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

.paar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.feldbox {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-kraeftig);
  border-radius: var(--r-feld);
  background: var(--weiss);
  overflow: hidden;
}
.feldbox--suffix  { padding-right: 14px; }
.feldbox--praefix { align-items: stretch; }

.feldbox__suffix { color: var(--text-muted); font-size: 14px; }

.feldbox__praefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--fuss-bg);
  color: var(--navy);
  font-size: 15px;
  border-right: 1px solid var(--border-kraeftig);
}

.eingabe {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 16px; /* verhindert iOS-Zoom beim Fokus */
  color: var(--navy);
}

.eingabe--plz { width: 105px; flex: 0 0 auto; }
.eingabe--ort { flex: 1; padding-left: 4px; }

.eingabe--solo {
  border: 1px solid var(--border-kraeftig);
  border-radius: var(--r-feld);
  background: var(--weiss);
}

.textfeld {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border-kraeftig);
  border-radius: var(--r-feld);
  background: var(--weiss);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--navy);
  resize: vertical;
}

.zaehler {
  margin: 0;
  text-align: right;
  color: var(--placeholder);
  font-size: 12px;
}

.stepper {
  display: flex;
  border: 1px solid var(--border-kraeftig);
  border-radius: var(--r-feld);
  overflow: hidden;
}

.stepper__knopf {
  width: 52px;
  min-height: 48px;
  border: none;
  background: var(--papier);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: background 160ms var(--ease);
}
.stepper__knopf--plus { color: var(--navy); }
.stepper__knopf:hover { background: var(--border); }
.stepper__knopf:disabled { opacity: 0.4; cursor: not-allowed; }

.stepper__wert {
  flex: 1;
  background: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--navy);
  border-left: 1px solid var(--border-kraeftig);
  border-right: 1px solid var(--border-kraeftig);
}

/* Anliegen-Pills — Mobil: 2 Spalten */
.pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 10px;
  background: var(--weiss);
  border: 1px solid var(--border-kraeftig);
  border-radius: var(--r-pill);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.pill:hover { border-color: var(--gold); }
.pill[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.dsgvo {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.fehler {
  margin: 0;
  width: 100%;
  max-width: 760px;
  color: var(--fehler);
  font-size: 13px;
  text-align: center;
}

/* --------------------------------- Buttons -------------------------------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 480px;
}

.knopf {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

.knopf--primaer {
  width: 100%;
  min-height: 52px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--weiss);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.knopf--primaer:hover {
  background: #937600;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(9, 31, 68, 0.12);
}
.knopf--primaer:active { transform: translateY(0); box-shadow: none; }

.knopf--zurueck {
  align-self: center;
  padding: 8px;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms var(--ease);
}
.knopf--zurueck:hover { color: var(--gold); }
.knopf--links { align-self: flex-start; padding-left: 0; }

/* --------------------------------- Danke ---------------------------------- */
.danke {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.danke__kreis {
  width: 84px;
  height: 84px;
  border-radius: var(--r-pill);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.danke__kreis svg { width: 40px; height: 40px; }

.danke__kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.danke__text {
  margin: 0;
  color: var(--olive);
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
}

.danke__claim {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  color: var(--olive);
  font-size: 21px;
}

/* ------------------------------ Rechtstexte ------------------------------- */
.rechtstext {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 760px;
  padding: 12px 0 24px;
  text-align: left;
}

.rechtstext__block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rechtstext__fliess {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.8;
}

.legal-h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.25;
}
.legal-h2:first-child { margin-top: 0; }

.legal-p {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.legal-p--weit { line-height: 2; }

.legal-hinweis {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========================================================================== */
/*  Tablet / Desktop ab 768px                                                 */
/* ========================================================================== */
/* ========================================================================== */
/*  Tablet / Desktop ab 768px                                                 */
/*                                                                            */
/*  Der gesamte Block ist gegenüber der ursprünglichen Vorlage auf rund 70 %  */
/*  herunterskaliert: der Funnel soll kompakter wirken und vollständig ohne   */
/*  Scrollen sichtbar sein. Schriftgrößen, Abstände und Bedienelemente sind   */
/*  gemeinsam verkleinert, damit die Proportionen erhalten bleiben.           */
/* ========================================================================== */
@media (min-width: 768px) {
  :root { --seite-padding: clamp(20px, 3.5vw, 44px); }

  body { font-size: 14px; }

  .kopf__inner { padding: 11px var(--seite-padding); gap: 14px; }
  .marke { gap: 9px; }
  .marke__logo { height: 23px; }
  .marke__wort { font-size: 14px; }
  .marke__wort-sub { font-size: 10px; letter-spacing: 0.22em; }

  .kopf__claim {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
  }

  .inhalt {
    max-width: 1200px;
    gap: 0;
    padding: 18px clamp(16px, 3vw, 34px) 20px;
  }

  .fortschritt { max-width: 520px; gap: 7px; }
  .fortschritt__label,
  .fortschritt__wert { font-size: 11px; }
  .fortschritt__track, .fortschritt__fill { height: 5px; }

  /* Typo */
  .titel--landing { font-size: clamp(25px, 3.4vw, 39px); line-height: 1.14; max-width: 620px; }
  .titel--frage   { font-size: clamp(22px, 3.1vw, 35px); line-height: 1.16; }
  .titel--danke   { font-size: clamp(31px, 4.2vw, 48px); }
  .titel--rechts  { font-size: clamp(22px, 2.8vw, 31px); }

  .eyebrow        { font-size: 10px; letter-spacing: 0.2em; }
  .eyebrow--gross { font-size: 11px; letter-spacing: 0.2em; }

  .goldlinie       { width: 62px; height: 2px; }
  .goldlinie--lang { width: 84px; }

  .subline { font-size: 12px; line-height: 1.6; max-width: 470px; }

  /* Landing */
  .landing { gap: 18px; }
  .landing__kopf { gap: 9px; }
  .vertrauenszeile { font-size: 11px; max-width: 420px; }

  /* Objektart-Kacheln: ab hier immer 3+2 als Quadrate. Die Kantenlänge ist
     fließend und von drei Grenzen gedeckelt — dem Wunschmaß, der verfügbaren
     Breite (drei nebeneinander) und der verfügbaren Höhe (zwei Reihen).
     Dadurch sind alle fünf Kacheln ohne Scrollen sichtbar, und es gibt
     keinen unschönen 2+2+1-Umbruch mehr. */
  .kacheln {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 580px;
    margin: 0 auto;
  }

  .kachel {
    flex: 0 0 auto;
    /* 400px = gemessene Höhe des übrigen Seiteninhalts (Kopf, Headline,
       Vertrauenszeile, Fußbereich, Abstände) zuzüglich Reihenabstand. */
    width: max(96px, min(175px, (100vw - 100px) / 3, (100vh - 400px) / 2));
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: clamp(6px, 1vh, 9px);
    padding: 11px;
    text-align: center;
    border-radius: 20%;
    font-size: clamp(11px, 0.85vw, 13px);
  }
  .kachel svg { width: clamp(22px, 3.1vw, 43px); height: auto; }
  .kachel:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(9, 31, 68, 0.1);
  }

  /* Schritte */
  .schritt { gap: 13px; padding-top: 12px; }
  .schritt__icon svg { width: 45px; height: 45px; }
  .schritt__kopf { gap: 8px; }
  .schritt__form { gap: 16px; }

  .feldgruppe { gap: 11px; max-width: 360px; }
  .feldgruppe--breit   { max-width: 420px; }
  .feldgruppe--pills   { max-width: 560px; }
  /* Der Kontaktschritt ist der längste — etwas enger gesetzt, damit er auch
     auf 720px hohen Fenstern ohne Scrollen vollständig sichtbar bleibt. */
  .feldgruppe--kontakt { gap: 7px; max-width: 520px; }
  .feldgruppe--kontakt .label { font-size: 11px; }
  .feldgruppe--kontakt .eingabe { padding: 8px 12px; }
  .feldgruppe--kontakt .feld { gap: 4px; }
  .feldgruppe--adresse { grid-template-columns: 1fr 80px; gap: 9px; }
  .paar { grid-template-columns: 1fr 1fr; gap: 9px; }

  .label { font-size: 12px; }
  .eingabe { padding: 10px 12px; font-size: 14px; }
  .eingabe--plz { width: 82px; }
  .feldbox, .eingabe--solo, .textfeld, .stepper { border-radius: 14px; }
  .feldbox__praefix { padding: 0 11px; font-size: 13px; }
  .stepper__knopf { min-height: 38px; width: 38px; font-size: 15px; }
  .textfeld { padding: 11px 13px; font-size: 13px; }
  .zaehler { font-size: 11px; }
  .dsgvo { font-size: 10px; line-height: 1.5; }
  .fehler { font-size: 11px; }

  .pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .pill {
    min-height: 0;
    padding: 10px 22px;
    font-size: 13px;
  }
  .pill:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(9, 31, 68, 0.08);
  }

  /* CTA mittig, nicht volle Breite */
  .cta { align-items: center; width: auto; gap: 9px; }
  .knopf--primaer {
    min-width: 154px;
    width: auto;
    min-height: 37px;
    padding: 10px 20px;
    font-size: 11px;
  }
  .knopf--zurueck { font-size: 10px; padding: 5px; }

  /* Danke */
  .danke { gap: 17px; max-width: 600px; margin: 0 auto; }
  .danke__kreis { width: 76px; height: 76px; }
  .danke__kreis svg { width: 36px; height: 36px; }
  .danke__kopf { gap: 11px; }
  .danke__text { font-size: clamp(12px, 1.4vw, 14px); max-width: 450px; }
  .danke__claim { font-size: clamp(15px, 1.75vw, 20px); }

  /* Rechtstexte: bleiben lesbar, nur moderat verkleinert */
  .rechtstext { gap: 25px; margin: 0 auto; }
  .rechtstext__fliess { gap: 16px; font-size: 13px; }
  .legal-h2 { font-size: 19px; }
  .legal-p  { font-size: 13px; }
  .legal-hinweis { font-size: 12px; }

  /* Footer */
  .fuss__inner { padding: 14px var(--seite-padding); gap: 5px; }
  .fuss__links { font-size: 11px; gap: 5px 16px; }
  .fuss__copy { font-size: 10px; }

  .vertraulich { font-size: 11px; padding-bottom: 12px; }
}

/* Sehr schmale Geräte (z. B. iPhone SE) */
@media (max-width: 359px) {
  .titel--landing { font-size: 27px; }
  .titel--frage { font-size: 24px; }
  .kachel { padding: 14px 16px; font-size: 15px; gap: 12px; }
  .eingabe--plz { width: 92px; }
  .feldgruppe--adresse { grid-template-columns: 1fr 84px; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Druck */
@media print {
  .kopf, .fuss, .cta, .fortschritt, .vertraulich, .skip-link { display: none !important; }
  body { background: #fff; }
}
