/* Unterseiten, Fassung 2: Inhaltsregeln der Fassung 1 mit den Werten der neuen
   Marke. Erzeugt von immobilien-unterseiten.js. Rahmen (Kopf, Fuss, Knoepfe,
   Musterleiste, Schriften) kommt aus rahmen.css. */


/* ------------------------------------------------------------ Grundwerte */
:root {
  /* Farben: 5 Stueck, 10K-03. Kontraste (nachgerechnet 23.08.2026, zweite
     Fassung): Tinte auf Grund 13,37:1, Tinte auf Karte 15,56:1, Tinte auf
     Akzent 12,17:1, Link auf Grund 6,85:1, Grund-Text auf Tinte 13,37:1.
     Nachtrag zweite Fassung: Hugos Befund "sieht nicht wie das Template aus".
     Ursache war der zu blasse Grund #fff8e9 — die Referenz traegt ihr warmes
     Parchment als DOMINANTEN Canvas, nicht als Hauch. */
  --grund: #f3eee6;      /* Warm Parchment, der Canvas der Referenz (R83: getoent, nicht Reinweiss) */
  --karte: #fbf8f2;      /* Karten: Tonstufe (1,16:1) plus Hairline als Kante */
  --tinte: #2a3138;      /* Text und Walnut-Dunkelflaechen */
  --akzent: #f2c46b;     /* Knoepfe, Hervorhebungen, chromatische Punktuation */
  --link: #8f3a2a;       /* abgedunkelt aus der Referenz, deren Original fiel mit 3,58:1 durch */

  /* Radius-System: drei Werte, jeder hat seinen Platz. */
  --radius-flaeche: 2px; /* Bilder, Karten, grosse Flaechen: architektonisch scharf */
  --radius-klein: 4px;   /* Badges, Formularfelder */
  --radius-knopf: 6px;

  --hairline: 1px solid rgba(42, 49, 56, .4);
  --hairline-voll: 1px solid var(--tinte);

  --nw-leiste-h: 62px;   /* Rueckfallwert, das Skript misst nach */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nw-leiste-h) + 76px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Seitenwechsel macht der Browser selbst. Nie selbst animieren (R64). */
@view-transition { navigation: auto; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;         /* 18 px */
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* ------------------------------------------------------------ Typografie */
/* Zwei Schriften: Fraunces traegt die Ueberschriften, Work Sans den Text.
   H1 48 px zu 18 px Fliesstext ist Faktor 2,67 (10K-02: mindestens 2,5). */
h1, h2, h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 550;
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw + .8rem, 3rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.55rem, 2.2vw + .8rem, 2.125rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--tinte); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--akzent); color: var(--tinte); }

img {
  max-width: 100%;
  height: auto;                /* Pflicht neben width/height am Bild */
  display: block;
  border-radius: var(--radius-flaeche);
  background: #f0e7d2;         /* Platzhalterton, solange ein Bild fehlt */
}

.mitte {
  max-width: 71.25rem;         /* 1140 px */
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ------------------------------------------------------------ Abschnitte */
.abschnitt { padding-block: 3.5rem; }
@media (min-width: 48em) { .abschnitt { padding-block: 5.5rem; } }

.abschnitt-dunkel {
  background: var(--tinte);
  color: var(--grund);
}
.abschnitt-dunkel a { color: var(--grund); }
.abschnitt-dunkel .hervor { color: var(--akzent); }
/* Aspelin-Signatur: Ueberschriften auf Dunkelflaechen tragen eine Linie */
.abschnitt-dunkel h2 {
  text-decoration: underline;
  text-decoration-color: var(--akzent);
  text-decoration-thickness: 2px;
  text-underline-offset: .45em;
}
/* Galerie auf der Dunkelflaeche: Fotos auf Walnut, wie beim Vorbild */
.abschnitt-dunkel .objekt { color: var(--grund); }
.abschnitt-dunkel .objekt img { border-color: var(--grund); }

.vorzeile {
  font-family: "Source Sans 3", sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .8rem;
}
/* kurzer Amber-Strich als wiederkehrende Punktuation ueber jedem Abschnitt */
.vorzeile::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--akzent);
  margin-top: .5rem;
}

.einleitung { max-width: 46rem; }

/* ------------------------------------------------------------ Hero */
/* Bauform 1: vollflaechiges Objektfoto, Text auf der Grundflaeche darueber.
   Kein Text im Bild, keine Aufdeckung auf dem ersten Bildschirm. */
.hero { padding-block: 3rem 0; }
.hero-text { max-width: 50rem; padding-bottom: 2.5rem; }
.hero-fuehrung { font-size: 1.25rem; max-width: 42rem; }
.hero-weiter {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 1.25rem;
  font-weight: 500;
}
.hero-weiter.weg { visibility: hidden; }
/* Das Hero-Foto liegt auf einem Walnut-Band: Vollbild-Fotografie auf dunklem
   Canvas ist die Kernanmutung der Referenz. */
.hero-bild {
  background: var(--tinte);
  padding-block: 1.5rem;
}
.hero-bild img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}
.hero-bildzeile {
  font-size: .85rem;
  padding-top: .5rem;
}

/* ------------------------------------------------------------ Zahlenband */
/* Bauform 2: eine waagerechte Zeile, vier Angaben, duenne Trennstriche. */
.zahlenband { border-bottom: var(--hairline); }
.zahlenband-innen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-block: 2rem;
}
.zahl {
  padding: .8rem 1.2rem;
  border-left: var(--hairline);
  overflow-wrap: break-word;
  hyphens: auto;
  min-width: 0; /* Rasterkinder duerfen schrumpfen, sonst Querlauf bei 320 px */
}
.zahl:first-child { border-left: none; }
.zahl b {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.5rem, 4.5vw + .5rem, 2rem);
  font-weight: 600;
  line-height: 1.1;
}
.zahl span { font-size: .95rem; }
@media (max-width: 47.99em) {
  /* Handy entscheidet selbst: zwei Spalten, Trennstrich nur in der Mitte */
  .zahl:nth-child(3) { border-left: none; }
  .zahl:nth-child(n+3) { border-top: var(--hairline); }
}
@media (min-width: 48em) {
  .zahlenband-innen { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------ Leistungen */
/* Bauform 3: ungleiches Raster. Eine grosse Kachel mit Bild, zwei kompakte
   ohne Bild. Karten weiss mit Hairline, keine Schatten. */
.leistungen-raster { display: grid; gap: 1.25rem; margin-top: 2rem; }
.leistung-karte {
  background: var(--karte);
  border: var(--hairline-voll);
  border-radius: var(--radius-flaeche);
  color: var(--tinte);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.leistung-karte:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.leistung-karte img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--hairline-voll); }
.leistung-karte > div { padding: 1.5rem; }
.leistung-karte .weiter { font-weight: 600; color: var(--link); margin-top: auto; padding: 0 1.5rem 1.5rem; }
@media (min-width: 48em) {
  .leistungen-raster { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
  .leistung-gross { grid-row: 1 / 3; }
}

/* ------------------------------------------------------------ Ablauf */
/* Bauform 4: Schrittleiste auf einer Linie, grosse Ziffern, keine Kaesten. */
.ablauf-leiste { display: grid; gap: 2rem; margin-top: 2.5rem; }
.schritt { position: relative; padding-top: 1.2rem; border-top: var(--hairline-voll); }
.schritt b {
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  display: block;
  margin-bottom: .4rem;
}
.schritt h3 { margin-bottom: .35em; }
.schritt p { font-size: 1rem; }
@media (min-width: 48em) { .ablauf-leiste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .ablauf-leiste { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------ Referenzen */
/* Bauform 5: Galerie-Rhythmus, zwei Objekte gross versetzt, Eckdaten als
   Zeile unter dem Bild. Nicht drei gleiche Karten. */
.galerie { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.objekt { text-decoration: none; color: var(--tinte); }
.objekt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--hairline-voll); }
.objekt h3 { margin: .9rem 0 .2rem; }
.objekt:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.eckdaten {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 0;
  font-size: .95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.eckdaten li { display: inline-flex; align-items: center; }
.eckdaten li + li::before { content: "·"; padding-inline: .5rem; }
@media (min-width: 48em) {
  .galerie { grid-template-columns: 1fr 1fr; }
  .galerie-versatz .objekt:nth-child(2) { margin-top: 3.5rem; }
}

/* ------------------------------------------------------------ Kosten */
/* Bauform 6: Aufstellung mit Zahlen auf der Dunkelflaeche. */
.kosten-raster { display: grid; gap: 2rem; margin-top: 2.5rem; }
.kosten-posten { border-top: 1px solid rgba(255, 235, 208, .4); padding-top: 1.2rem; }
.kosten-posten b {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--akzent);
  margin-bottom: .35rem;
}
.kosten-posten p { font-size: 1rem; }
@media (min-width: 48em) { .kosten-raster { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------ Zitat */
/* Bauform 7: ein einziges grosses Zitat ueber die volle Textbreite. */
.zitat {
  margin: 0;
  max-width: 52rem;
}
.zitat p {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.4rem, 2vw + .9rem, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
  quotes: "\201E" "\201C";
}
.zitat p::before { content: open-quote; }
.zitat p::after { content: close-quote; }
.zitat footer { margin-top: 1rem; font-size: 1rem; }

/* ------------------------------------------------------------ Bildpaar */
/* Bauform 8: Bildpaar neben Textspalte, asymmetrisch. */
.paar-raster { display: grid; gap: 2rem; align-items: start; }
.paar-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.paar-bilder img { border: var(--hairline-voll); }
.paar-bilder img:first-child { aspect-ratio: 4 / 5; object-fit: cover; }
.paar-bilder img:last-child { aspect-ratio: 4 / 5; object-fit: cover; margin-top: 2rem; }
@media (min-width: 64em) {
  .paar-raster { grid-template-columns: 1.1fr 1fr; }
}

/* ------------------------------------------------------------ Karte (SVG) */
.gebiet-raster { display: grid; gap: 2rem; align-items: center; margin-top: 1rem; }
.gebiet-karte {
  width: 100%;
  height: auto;
  display: block;
}
.gebiet-liste { padding-left: 1.2rem; margin: 0; }
.gebiet-liste li { margin-bottom: .3rem; }
@media (min-width: 48em) { .gebiet-raster { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ Fragen */
/* Bauform 9: Aufzaehlung ohne Kasten, Frage als Ueberschrift (B5). */
.fragen { max-width: 50rem; margin-top: 1.5rem; }
.fragen details { border-top: var(--hairline-voll); }
.fragen details:last-child { border-bottom: var(--hairline-voll); }
.fragen summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-block: .9rem;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+";
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  flex: none;
}
.fragen details[open] summary::after { content: "\2212"; }
.fragen summary h3 { margin: 0; font-size: 1.15rem; }
.antwort { padding-bottom: 1.2rem; max-width: 44rem; }
.antwort p { font-size: 1.05rem; }

/* ------------------------------------------------------------ Formular */
.formular { max-width: 34rem; }
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.feld input, .feld select {
  width: 100%;
  min-height: 48px;
  padding: .5rem .8rem;
  font: inherit;
  color: var(--tinte);
  background: var(--karte);
  border: var(--hairline-voll);
  border-radius: var(--radius-klein);
}
.feld input:focus-visible, .feld select:focus-visible { outline: 3px solid var(--tinte); outline-offset: 1px; }
.pflichthinweis { font-size: .9rem; max-width: 34rem; }
.formular-erfolg {
  display: none;
  background: var(--akzent);
  border: var(--hairline-voll);
  border-radius: var(--radius-klein);
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}

/* ------------------------------------------------------------ Kontaktseite */
.kontakt-raster { display: grid; gap: 3rem; margin-top: 2rem; }
@media (min-width: 64em) { .kontakt-raster { grid-template-columns: 1.1fr 1fr; } }
.zeitentabelle { border-collapse: collapse; width: 100%; max-width: 26rem; }
.zeitentabelle th, .zeitentabelle td {
  text-align: left;
  padding: .55rem 0;
  border-bottom: var(--hairline);
  font-weight: 400;
}
.zeitentabelle th { font-weight: 600; padding-right: 1rem; }
.telefon-gross {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--tinte);
  text-decoration-thickness: 1px;
}
.abschnitt-dunkel .telefon-gross { color: var(--akzent); }

/* ------------------------------------------------------------ Abschluss */
.abschluss-raster { display: grid; gap: 2.5rem; }
@media (min-width: 48em) { .abschluss-raster { grid-template-columns: 1fr 1fr; } }
/* Telefon- und Mail-Links stehen in Inhalt und Fuss auf eigener Zeile: volle
   Tippflaeche, auch im Impressum und in der Datenschutzerklaerung. Bewusst auf
   main und .fuss begrenzt: eine ungebundene a[href^="tel:"]-Regel schlaegt die
   .kopf-tel-Ausblendung und holt den Kopf-Knopf aufs Handy zurueck (gemessen
   am 23.08.2026: 30 px Querlauf auf jeder Seite bei 320 px). */
.anschrift a,
main a[href^="tel:"],
main a[href^="mailto:"],
.fuss a[href^="tel:"],
.fuss a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 48px; }

/* ------------------------------------------------------------ Einblenden */
/* Erst mit .js versteckt das Stilblatt etwas: ohne Skript bleibt alles da.
   Hoechstens zwoelf Elemente je Seite tragen die Klasse, der Hero nie. */
html.js .einblenden {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
html.js .einblenden.sichtbar { opacity: 1; transform: none; }
html.js .einblenden.ohne-verzoegerung { transition-duration: .01s; }
/* Staffelung nur auf den Kindern eines Rasters */
html.js .ablauf-leiste .einblenden:nth-child(2) { transition-delay: .08s; }
html.js .ablauf-leiste .einblenden:nth-child(3) { transition-delay: .16s; }
html.js .ablauf-leiste .einblenden:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html.js .einblenden { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------ Druck */
@media print {
  body { background: #fff; }
}

html:not(.js) .einblenden { opacity: 1; transform: none; }
/* Nachtraege fuer die neue Marke */
main a[href^="mailto:"], main a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 48px; }
input, select, textarea { max-width: 100%; min-width: 0; }
main * { min-width: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
/* Die Fotos stehen seit dem Umzug im Rahmen .ki-bild (Kennzeichen am Bild, R109).
   Die Bildpaar-Regeln hingen am direkten Bild-Kind und ziehen hierher um. */
.paar-bilder .ki-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-top: 0; }
.paar-bilder .ki-bild:last-child { margin-top: 2rem; }
.ki-bild > img { width: 100%; }
