/* haus-kaufen-meerbusch.de — Motiv „Die Ortstafeln“: gelbe Tafel mit schwarzer Randlinie, Pfosten mit Grünstreifen,
   Pfeilwegweiser am Mast, weiße Zusatzzeichen. Kapitelmarken nähern sich beim Scrollen (Ortseingang), bleiben stehen
   und werden beim Verlassen durchgestrichen (Ortsende). Schrift Schibsted Grotesk lokal (SIL OFL 1.1), keine Abrufe bei Dritten.
   Eine Hintergrundfarbe für die ganze Seite (iPhone-Safari). */

@font-face { font-family: "Schibsted"; src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --grund: #F5F4EE;
  --grund-2: #ECEADF;
  --weiss: #FFFFFF;
  --tinte: #1A1A1A;
  --tinte-2: #4A4944;
  --tafel: #F2C200;
  --tafel-hell: #FBE9A0;
  --gruen: #3C6E47;
  --linie: #D7D4C8;
  --mast: #8B8E90;
  --mast-hell: #D3D5D6;
  --schatten: 0 1px 0 rgba(26, 26, 26, .05), 0 16px 30px -22px rgba(26, 26, 26, .55);
  --kopf-h: 4.5rem;
  --sans: "Schibsted", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 1rem); background: var(--grund); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 1.0625rem/1.65 var(--sans); font-kerning: normal; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--tinte); text-decoration: underline; text-decoration-color: var(--tafel); text-decoration-thickness: .2em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
a:hover { background: var(--tafel-hell); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--tafel); color: var(--tinte); }

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .4em; }
b, strong { font-weight: 700; }
.huelle { max-width: 76rem; margin: 0 auto; padding: 0 var(--rand); }
.lesen { max-width: 44rem; }
.leise { color: var(--tinte-2); font-size: .95rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.offen { background: #FFF07A; outline: 1px dashed #8A6D00; padding: .05em .3em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Kleines Schild als Kennzeichen (statt Großbuchstaben-Zeile) */
.kicker { display: inline-block; font: 700 .9rem/1.2 var(--sans); background: var(--tafel); color: var(--tinte); padding: .3rem .65rem; border-radius: .3rem;
  box-shadow: inset 0 0 0 .14rem var(--tafel), inset 0 0 0 .24rem var(--tinte); margin: 0 0 .9rem; }

.sprung { position: absolute; left: -999px; top: .5rem; background: var(--tinte); color: var(--weiss); padding: .6rem 1rem; z-index: 100; }
.sprung:focus { left: 1rem; }
.entwurf { background: var(--tafel); color: var(--tinte); font: 500 .875rem/1.4 var(--sans); text-align: center; padding: .4rem var(--rand); }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--kopf-h); }
.marke { display: flex; align-items: center; text-decoration: none; }
.marke:hover { background: none; }
.marke-zeichen { display: none; }
.marke > span:last-child { display: grid; justify-items: center; background: var(--tafel); border-radius: .4rem; padding: .32rem .8rem .36rem;
  box-shadow: inset 0 0 0 .16rem var(--tafel), inset 0 0 0 .27rem var(--tinte), 0 6px 12px -10px rgba(26, 26, 26, .7); line-height: 1.05; }
.marke i { font-style: normal; font-weight: 500; font-size: .875rem; }
.marke b { font-size: 1.2rem; letter-spacing: -.01em; }
.menue { display: flex; align-items: center; gap: .25rem 1.4rem; }
.menue a { text-decoration: none; font-weight: 500; font-size: 1rem; padding: .35rem 0; white-space: nowrap; }
.menue a:hover { background: none; text-decoration: underline; text-decoration-color: var(--tafel); text-decoration-thickness: .2em; }
.menue a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tinte); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.menue-schalter { display: none; }
/* Lesefortschritt als Leitlinie: Striche wie auf der Fahrbahn */
.fortschritt { position: absolute; left: 0; bottom: -2px; height: 3px; pointer-events: none; right: calc((1 - var(--fortschritt, 0)) * 100%);
  background: repeating-linear-gradient(90deg, var(--tinte) 0 1.5rem, transparent 1.5rem 2.4rem); }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.3rem; border-radius: .5rem;
  background: var(--tinte); color: var(--tafel); font-weight: 700; text-decoration: none; border: 2px solid var(--tinte); transition: background .2s, color .2s; }
.knopf:hover { background: var(--tafel); color: var(--tinte); }
.knopf.hell { background: transparent; color: var(--tinte); }
.knopf.hell:hover { background: var(--tinte); color: var(--tafel); }
.knopf.klein { min-height: 2.75rem; padding: .45rem 1rem; font-size: .95rem; }
.menue .knopf.klein, .menue .knopf.klein:hover { text-decoration: none; }
.menue .knopf.klein { color: var(--tafel); }
.menue .knopf.klein:hover { color: var(--tinte); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .7rem; }
.aufruf { margin: 1.8rem 0 0; }
.aufruf .leise a { font-weight: 700; }

/* ---------- Ortstafel ---------- */
.tafel { --ring-a: .3rem; --ring-b: .17rem; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--tafel); color: var(--tinte); border-radius: .6rem; padding: 1rem 1.4rem;
  box-shadow: inset 0 0 0 var(--ring-a) var(--tafel), inset 0 0 0 calc(var(--ring-a) + var(--ring-b)) var(--tinte), var(--schatten); }
.tafel-name { display: block; font-weight: 700; line-height: 1; letter-spacing: -.015em; }
.tafel-oben, .tafel-zusatz { display: block; font-weight: 500; font-size: .95rem; line-height: 1.25; }
.tafel-oben { margin-bottom: .35rem; }
.tafel-zusatz { margin: .45rem 0 0; }
.tafel.gross { width: min(100%, 26rem); min-height: 13.5rem; padding: 1.6rem 1.8rem; --ring-a: .42rem; --ring-b: .22rem; border-radius: .8rem; }
.tafel.gross .tafel-name { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.tafel.gross .tafel-zusatz { font-size: 1.1rem; }
.tafel.klein { width: 100%; min-height: 6.6rem; padding: .9rem 1rem; }
.tafel.klein .tafel-name { font-size: clamp(1.25rem, 1.9vw, 1.6rem); overflow-wrap: anywhere; hyphens: manual; }
.tafel.klein .tafel-zusatz { font-size: .875rem; }

/* Schild = Tafel auf zwei Pfosten mit Grünstreifen */
.schild { display: grid; justify-items: center; margin: 0; }
.pfosten { display: block; width: 100%; height: 2.6rem; margin-top: -.2rem; position: relative; z-index: -1;
  background: linear-gradient(90deg, transparent 21%, var(--mast) 21%, var(--mast-hell) 22.4%, var(--mast) 23.8%, transparent 23.8% 76.2%, var(--mast) 76.2%, var(--mast-hell) 77.6%, var(--mast) 79%, transparent 79%);
  border-bottom: .45rem solid var(--gruen); border-radius: 0 0 3px 3px; }
.motiv .schild { isolation: isolate; width: min(100%, 26rem); justify-self: center; }

/* Startbühne: die H1 steht auf der großen Ortstafel */
.buehne { padding: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(2rem, 5vw, 3.6rem); overflow: clip; }
.buehne > .huelle { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.schild-start { isolation: isolate; justify-items: stretch; max-width: 44rem; margin-bottom: 1.3rem; }
.tafel.riesig { --ring-a: .55rem; --ring-b: .28rem; border-radius: 1rem; padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.4rem) clamp(1.1rem, 2.6vw, 1.7rem); }
.tafel.riesig h1 { margin: 0; letter-spacing: -.035em; line-height: 1; }
.tafel.riesig .tafel-oben { font-size: clamp(1.1rem, 2.2vw, 1.6rem); letter-spacing: -.01em; margin-bottom: .4rem; }
.tafel.riesig .tafel-name { font-size: clamp(3rem, 6.6vw, 5.7rem); }
.tafel.riesig .tafel-zusatz { font-size: clamp(1rem, 1.7vw, 1.3rem); margin-top: .7rem; }
.schild-start .pfosten { height: 3rem; }
.buehne .unterzeile { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--tinte-2); max-width: 40rem; }
.buehne-weg { padding-top: .4rem; }
.buehne-weg .wegweiser { --arm-schrift: 1.3rem; }

/* Wegweiser: Mast mit Pfeilschildern */
.wegweiser { --mast-x: 1.2rem; --arm-schrift: 1.12rem; position: relative; padding-top: 1.3rem; isolation: isolate; }
.wegweiser::before { content: ""; position: absolute; left: var(--mast-x); top: 0; bottom: .45rem; width: .8rem; margin-left: -.4rem; z-index: -1;
  border-radius: .4rem .4rem 0 0; background: linear-gradient(90deg, #77797b, var(--mast-hell) 45%, #8a8d8f); }
.wegweiser ul { list-style: none; margin: 0; padding: 0 0 1.9rem; display: grid; gap: .6rem; justify-items: start; }
.wegweiser li { margin: 0; position: relative; padding-left: calc(var(--mast-x) + .4rem); }
.wegweiser li::before { content: ""; position: absolute; left: calc(var(--mast-x) - .55rem); top: 50%; width: 1.1rem; height: .55rem; margin-top: -.275rem; background: #55585a; border-radius: 2px; }
.arm { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 3.1rem; padding: .5rem 2.5rem .5rem 1.05rem;
  font-weight: 700; font-size: var(--arm-schrift); line-height: 1.15; color: var(--tinte); text-decoration: none; transition: transform .25s cubic-bezier(.3, .7, .2, 1); }
.arm::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--tinte);
  clip-path: polygon(0 0, calc(100% - 1.5rem) 0, 100% 50%, calc(100% - 1.5rem) 100%, 0 100%); }
.arm::after { content: ""; position: absolute; inset: .2rem .3rem .2rem .2rem; z-index: -1; background: var(--tafel);
  clip-path: polygon(0 0, calc(100% - 1.36rem) 0, 100% 50%, calc(100% - 1.36rem) 100%, 0 100%); }
a.arm:hover { background: none; transform: translateX(.35rem); }
a.arm:focus-visible { outline-offset: 4px; }
.mast-fuss { position: absolute; left: 0; right: 0; bottom: 0; height: .45rem; background: var(--gruen); border-radius: 3px; }
.mast-fuss::before { content: ""; position: absolute; left: calc(var(--mast-x) - .9rem); width: 1.8rem; bottom: .45rem; height: .55rem; background: #B9B6AB; border-radius: 3px 3px 0 0; }
.motiv .wegweiser { width: min(100%, 24rem); justify-self: center; }

/* Weiße Zusatzzeichen: Antwortkasten, Kennzahlen, Hinweise */
.kurz { position: relative; max-width: 46rem; margin: 1.4rem 0 1rem; padding: 1.05rem 1.3rem 1.1rem; background: var(--weiss); border-radius: .55rem;
  box-shadow: inset 0 0 0 .15rem var(--tinte), var(--schatten); }
.kurz p { margin: 0; font-size: 1.08rem; }
.kurz .kurz-marke { display: inline-block; font-weight: 700; font-size: .95rem; line-height: 1.2; background: var(--tafel); padding: .2rem .55rem; border-radius: .3rem; margin-bottom: .55rem; }
.stand { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font: 400 .9rem/1.45 var(--sans); color: var(--tinte-2); margin: 0; }
.zusatz-leiste { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: .8rem; }
.zusatz-leiste li { margin: 0; background: var(--weiss); border-radius: .5rem; padding: .95rem 1.05rem; box-shadow: inset 0 0 0 .14rem var(--tinte); display: grid; gap: .2rem; align-content: start; }
.zusatz-leiste b { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; }
.zusatz-leiste span { font-size: .95rem; color: var(--tinte-2); line-height: 1.4; }
.hinweis { background: var(--weiss); border-radius: .55rem; padding: 1rem 1.2rem; margin: 1.4rem 0; box-shadow: inset 0 0 0 .14rem var(--tinte); }
.hinweis p:last-child { margin: 0; }

/* ---------- Seitenkopf der Unterseiten ---------- */
.seitenkopf { padding: clamp(1.8rem, 5vw, 3.6rem) 0 1.6rem; }
.seitenkopf .huelle { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .seitenkopf .huelle:has(> .motiv), .seitenkopf .huelle:has(> .ansprech) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .seitenkopf .motiv { padding-top: 2.6rem; display: grid; }
}
.seitenkopf h1 { max-width: 19ch; }
.pfad { font: 500 .95rem/1.4 var(--sans); color: var(--tinte-2); margin-bottom: 1.2rem; }
.pfad a { color: var(--tinte-2); }
.unterzeile { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--tinte-2); max-width: 42rem; }

/* ---------- Abschnitte und Kapitel ---------- */
.abschnitt { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.kapitel + .kapitel > .huelle { border-top: 1px solid var(--linie); padding-top: clamp(2.2rem, 5vw, 3.8rem); }
.kapitel + .kapitel { padding-top: 0; }
.kapitel > .huelle { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: clamp(1.5rem, 4.5vw, 4.5rem); align-items: start; }
.kapitel-marke { position: sticky; top: calc(var(--kopf-h) + 1.4rem); }
.kapitel-text { max-width: 46rem; min-width: 0; }
.kapitel-text > h2 { margin-top: .2rem; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.2rem); margin-bottom: 1.4rem; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.kachel { background: var(--weiss); border-radius: .55rem; padding: 1.1rem 1.2rem; box-shadow: inset 0 0 0 .14rem var(--tinte); }
.kachel h3 { margin: 0 0 .4em; }
.kachel p:last-child { margin-bottom: 0; }
.merk { list-style: none; padding: 0; }
.merk li { position: relative; padding-left: 1.7rem; }
.merk li::before { content: ""; position: absolute; left: 0; top: .42em; width: .85rem; height: .85rem; background: var(--tafel); border-radius: 2px; box-shadow: inset 0 0 0 .14rem var(--tinte); }
ol.schritte { padding: 0; list-style: none; counter-reset: s; }
ol.schritte li { counter-increment: s; position: relative; padding-left: 3rem; margin-bottom: 1rem; }
ol.schritte li::before { content: counter(s); position: absolute; left: 0; top: -.05rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: var(--tafel); border-radius: .35rem; box-shadow: inset 0 0 0 .14rem var(--tinte); font-weight: 700; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; margin: 1.4rem 0; }
.tabelle { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--weiss); border: .14rem solid var(--tinte); border-radius: .55rem; overflow: hidden; font-size: 1rem; }
.tabelle caption { caption-side: bottom; text-align: left; padding: .7rem .2rem 0; font-size: .9rem; color: var(--tinte-2); }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .75rem .95rem; border-bottom: 1px solid var(--linie); }
.tabelle thead th { font-weight: 700; font-size: .95rem; background: var(--tinte); color: var(--tafel); }
.tabelle tbody th { font-weight: 700; }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }

/* Fragen */
.fragen { margin: 1.2rem 0; border-top: 2px solid var(--tinte); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; padding: 1.05rem 3.4rem 1.05rem 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 0; top: .85rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: var(--tafel); border-radius: .35rem; box-shadow: inset 0 0 0 .14rem var(--tinte); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.fragen details[open] summary::after { content: "–"; }
.fragen summary:hover { text-decoration: underline; text-decoration-color: var(--tafel); text-decoration-thickness: .2em; }
.fragen .antwort { padding: 0 3.4rem 1.2rem 0; }
.fragen .antwort p { margin: 0; }
.fragen-bereich h2 { max-width: 30ch; }
.faq-verzeichnis { margin-top: .5rem; }
.faq-gruppe + .faq-gruppe { padding-top: 0; }

/* Weiterlesen: jede Kachel ein Pfeilwegweiser */
.weiter-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.4rem 2rem; }
.weiter-liste li { margin: 0; display: grid; gap: .5rem; align-content: start; }
.weiter-liste a { position: relative; isolation: isolate; justify-self: start; display: inline-flex; align-items: center; min-height: 3.1rem;
  padding: .55rem 2.5rem .55rem 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: transform .25s cubic-bezier(.3, .7, .2, 1); }
.weiter-liste a::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--tinte); clip-path: polygon(0 0, calc(100% - 1.5rem) 0, 100% 50%, calc(100% - 1.5rem) 100%, 0 100%); }
.weiter-liste a::after { content: ""; position: absolute; inset: .2rem .3rem .2rem .2rem; z-index: -1; background: var(--tafel); clip-path: polygon(0 0, calc(100% - 1.36rem) 0, 100% 50%, calc(100% - 1.36rem) 100%, 0 100%); }
.weiter-liste a:hover { background: none; transform: translateX(.35rem); }
.weiter-liste span { color: var(--tinte-2); font-size: .97rem; max-width: 30rem; }
.quellen { font-size: .92rem; color: var(--tinte-2); border-top: 1px solid var(--linie); padding-top: 1rem; margin-top: 2rem; }

/* Ansprechpartner */
.ansprech { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: start; padding: 1.2rem; background: var(--weiss); border-radius: .6rem; box-shadow: inset 0 0 0 .14rem var(--tinte); margin: 1.4rem 0; }
.ansprech img { width: 96px; height: 96px; border-radius: .45rem; object-fit: cover; box-shadow: 0 0 0 .2rem var(--tafel); }
.ansprech p { margin: 0 0 .35rem; }
.ansprech-name { font-weight: 700; font-size: 1.125rem; }
.ansprech-rolle { color: var(--tinte-2); font-size: .95rem; }
.ansprech-tel { font-weight: 700; }
.querlinks ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Ortsausgang am Seitenende */
.ortsende { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem); }
.ortsende .huelle { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3.5rem); align-items: center; }
.ortsende p { margin: 0; max-width: 34rem; color: var(--tinte-2); }
.ortsende p b { color: var(--tinte); }
.klein-schild { isolation: isolate; }
.tafel.ausgang { width: 100%; padding: .8rem 1rem .9rem; gap: 0; }
.ausgang-ziel { display: block; width: 100%; font-weight: 700; font-size: 1.15rem; padding-bottom: .55rem; margin-bottom: .55rem; border-bottom: .17rem solid var(--tinte); }
.ausgang-ort { display: block; position: relative; font-weight: 700; font-size: 1.85rem; line-height: 1.1; padding: .1rem .4rem .2rem; }
.ausgang-ort::after { content: ""; position: absolute; left: -6%; right: -6%; top: 50%; height: .42rem; margin-top: -.21rem; background: var(--tinte); border-radius: 2px;
  transform: rotate(-13deg) scaleX(1); transform-origin: 0 50%; transition: transform .55s cubic-bezier(.65, 0, .25, 1) .15s; }

/* Ortsende einer Kapitelmarke: Strich über die ganze Tafel */
.tafel.klein { overflow: hidden; }
.tafel.klein::after { content: ""; position: absolute; left: 11%; right: 11%; top: 50%; height: .42rem; margin-top: -.21rem; background: var(--tinte); border-radius: 2px;
  transform: rotate(-17deg) scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.65, 0, .25, 1); pointer-events: none; }
.kapitel.vorbei .tafel.klein::after { transform: rotate(-17deg) scaleX(1); }

/* ---------- Anfrage ---------- */
.anfrage-karte { background: var(--weiss); border-radius: .9rem; box-shadow: inset 0 0 0 .16rem var(--tinte), var(--schatten); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.2rem, 4vw, 3rem); padding: clamp(1.3rem, 4vw, 2.6rem); }
.anfrage-kopf h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.anfrage .feld { margin: 0 0 1rem; }
.anfrage label, .anfrage legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.anfrage .wahl label { display: inline-flex; font-weight: 500; margin: 0; }
.anfrage fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.anfrage input[type=text], .anfrage input[type=tel], .anfrage input[type=email], .anfrage textarea, .anfrage select {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--tinte); background: var(--grund); border: 2px solid var(--linie); border-radius: .5rem; padding: .7rem .85rem; min-height: 3rem; }
.anfrage select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--tinte) 50%), linear-gradient(135deg, var(--tinte) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 52%, calc(100% - .85rem) 52%; background-size: .35rem .35rem; background-repeat: no-repeat; }
.anfrage input:focus, .anfrage textarea:focus, .anfrage select:focus { border-color: var(--tinte); outline: none; box-shadow: 0 0 0 3px var(--tafel); }
.anfrage .feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.anfrage .einwilligung label { font-weight: 400; display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; align-items: start; font-size: .95rem; }
.anfrage .einwilligung input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--tinte); }
.anfrage button.knopf { cursor: pointer; font: 700 1.05rem/1.2 var(--sans); }
.anfrage .versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-stand="fehler"] { color: #9B1C1C; font-weight: 700; }
.wahl { display: flex; flex-wrap: wrap; gap: .6rem; }
.wahl label { -webkit-tap-highlight-color: transparent; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .4rem 1rem; border: 2px solid var(--linie); border-radius: .5rem; cursor: pointer; background: var(--grund); }
.wahl input { width: 1.1rem; height: 1.1rem; accent-color: var(--tinte); margin: 0; }
.wahl label:has(input:checked) { border-color: var(--tinte); background: var(--tafel); }
.danach { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: d; display: grid; gap: .9rem; }
.danach li { counter-increment: d; display: grid; grid-template-columns: 2.3rem 1fr; gap: .15rem .8rem; margin: 0; }
.danach li::before { content: counter(d); grid-row: span 2; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; font-weight: 700;
  background: var(--tafel); border-radius: .35rem; box-shadow: inset 0 0 0 .14rem var(--tinte); }
.danach b { display: block; }
.danach span { color: var(--tinte-2); font-size: .97rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--grund-2); border-top: 1px solid var(--linie); padding: 3rem 0 2.5rem; font-size: .97rem; }
.fuss .spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2rem; }
.fuss h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: .7rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss .klein { margin-top: 2rem; font-size: .9rem; color: var(--tinte-2); max-width: 60rem; }

/* Feste Aufrufleiste am Handy */
.leiste-unten { display: none; }
@media (max-width: 980px) {
  .leiste-unten { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem var(--rand) calc(.6rem + env(safe-area-inset-bottom));
    background: var(--grund); border-top: 1px solid var(--linie); box-shadow: 0 -10px 24px -18px rgba(26, 26, 26, .5); transform: translateY(110%); transition: transform .3s ease; }
  .leiste-unten .knopf { flex: 1; min-height: 2.9rem; padding: .5rem .8rem; }
  .leiste-unten .knopf.hell { flex: 0 0 auto; }
  html.leiste-da .leiste-unten { transform: none; }
  html.leiste-da body { padding-bottom: 4.6rem; }
}

/* ---------- Bewegung (nur mit JavaScript: html.bewegt) ---------- */
/* 1. Wegweiser klappen beim Laden nacheinander vom Mast aus */
@keyframes aufklappen { from { transform: perspective(700px) rotateY(-92deg); opacity: 0; } 55% { opacity: 1; } to { transform: perspective(700px) rotateY(0); opacity: 1; } }
html.bewegt .wegweiser .arm { transform-origin: 0 50%; animation: aufklappen .9s cubic-bezier(.2, .8, .25, 1.12) calc(.3s + var(--i, 0) * .12s) backwards; }
/* 2. Kapitelmarken nähern sich wie eine Ortstafel am Straßenrand (--nah von 0 bis 1, site.js) */
html.bewegt .kapitel .tafel.klein { transform-origin: 0 60%;
  transform: perspective(900px) translate3d(0, calc((1 - var(--nah, 1)) * 2.4rem), 0) rotateY(calc((1 - var(--nah, 1)) * 48deg)) scale(calc(.68 + var(--nah, 1) * .32));
  opacity: calc(.12 + var(--nah, 1) * .88); }
/* 3. Ortsausgang: der Strich kommt erst, wenn die Tafel im Blick ist */
html.bewegt .ortsende:not(.vorbei) .ausgang-ort::after { transform: rotate(-13deg) scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  html.bewegt .kapitel .tafel.klein { transform: none !important; opacity: 1 !important; }
  html.bewegt .wegweiser .arm { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
  .menue { gap: .25rem 1rem; }
}
@media (max-width: 1020px) {
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
  .drei { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --kopf-h: 3.9rem; }
  .menue-schalter { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem; border: 2px solid var(--tinte); border-radius: .5rem; background: transparent; color: var(--tinte); font: 700 1rem/1 var(--sans); }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--grund); border-bottom: 1px solid var(--linie); flex-direction: column; align-items: stretch; padding: .5rem var(--rand) 1.2rem; gap: 0; }
  .menue.offen-menue { display: flex; }
  .menue a { padding: .8rem 0; border-bottom: 1px solid var(--linie); font-size: 1.08rem; }
  .menue .knopf.klein { margin-top: .9rem; border-bottom: 2px solid var(--tinte); }
  .buehne > .huelle { grid-template-columns: 1fr; }
  .buehne-weg { padding-top: 0; }
  .zwei { grid-template-columns: 1fr; }
  .kapitel > .huelle { grid-template-columns: 1fr; gap: 1rem; }
  .kapitel-marke { position: static; }
  .tafel.klein { width: auto; max-width: 15rem; min-height: 0; padding: .7rem 1.1rem; align-items: flex-start; text-align: left; }
  .anfrage-karte { grid-template-columns: 1fr; }
  .anfrage .feld-zeile { grid-template-columns: 1fr; }
  .ortsende .huelle { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  h1, .seitenkopf h1 { font-size: clamp(1.95rem, 8.4vw, 2.3rem); }
  .drei { grid-template-columns: 1fr; }
  .fuss .spalten { grid-template-columns: 1fr; }
  .marke i { font-size: .875rem; }
  .marke b { font-size: 1.08rem; }
  .tafel.gross { min-height: 10.5rem; padding: 1.2rem 1.2rem; }
  .pfosten, .schild-start .pfosten { height: 1.9rem; }
  .buehne .unterzeile { font-size: 1.1rem; }
  .ortsende .huelle { grid-template-columns: 1fr; }
  .ortsende .schild { max-width: 15rem; }
  .fragen .antwort { padding-right: 0; }
  .weiter-liste { grid-template-columns: 1fr; }
  .tabelle.stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabelle.stapel, .tabelle.stapel tbody, .tabelle.stapel tr, .tabelle.stapel th, .tabelle.stapel td { display: block; width: 100%; }
  .tabelle.stapel { display: flex !important; flex-direction: column; }
  .tabelle.stapel tr { border-bottom: 2px solid var(--linie); padding: .4rem 0; }
  .tabelle.stapel tbody th { padding-bottom: .2rem; border: 0; }
  .tabelle.stapel td { border: 0; padding-top: .2rem; padding-bottom: .5rem; }
  .tabelle.stapel caption { order: 2; display: block; width: 100%; padding: .7rem 1rem .4rem; }
  .tabelle.stapel td::before { content: attr(data-spalte); display: block; font-weight: 700; font-size: .875rem; color: var(--tinte-2); margin-bottom: .1rem; }
  .knoepfe .knopf { width: 100%; }
}

/* Startbühne beim Vorbeiscrollen (--weg von 0 bis 1, site.js): die Ortstafel dreht sich weg, der Wegweiser hinterher */
html.bewegt .schild-start { transform-origin: 0 100%; transform: perspective(1400px) rotateY(calc(var(--weg, 0) * 24deg)) translateY(calc(var(--weg, 0) * -1.2rem)); }
html.bewegt .buehne-weg .wegweiser { transform-origin: 1.2rem 100%; transform: perspective(1200px) rotateY(calc(var(--weg, 0) * -30deg)); }
@media (prefers-reduced-motion: reduce) { html.bewegt .schild-start, html.bewegt .buehne-weg .wegweiser { transform: none !important; } }

/* Aufruf unter dem Schild im Seitenkopf (erster Bildschirm) */
.motiv > .aufruf { margin-top: 1.4rem; width: min(100%, 26rem); justify-self: center; }
.motiv > .aufruf .knoepfe { margin-bottom: .5rem; }
@media (max-width: 959px) { .motiv > .aufruf { justify-self: start; width: 100%; } .motiv .schild, .motiv .wegweiser { justify-self: start; } }

/* === Cover-Foto (Startseite, 14.11.2026) === */
.cover-foto { position: relative; margin: 0; }
.cover-foto img { display: block; width: 100%; height: clamp(190px, 34vw, 470px); object-fit: cover; object-position: center; }
.cover-foto figcaption { position: absolute; right: .5rem; bottom: .4rem; max-width: calc(100% - 1rem); padding: .15rem .5rem; border-radius: 3px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .875rem; line-height: 1.4; }
.cover-foto figcaption a { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
@media (max-width: 640px) { .cover-foto figcaption { position: static; max-width: none; padding: .3rem 1rem 0; border-radius: 0; background: none; color: inherit; text-align: right; } .cover-foto figcaption a { color: inherit; text-decoration-color: currentColor; } }
/* === Ende Cover-Foto === */
