/* wohnung-kaufen-meerbusch.de — Motiv „Das Klingelschild“: Hauswand, gebürstetes Messing, Namensschilder hinter Glas,
   Klingelknöpfe, die beim Erreichen eines Abschnitts aufleuchten. Schriften lokal (SIL OFL 1.1), keine Abrufe bei Dritten.
   Eine Hintergrundfarbe für die ganze Seite (iPhone-Safari), THEMA_FARBE = --wand.
   Ohne JavaScript und bei „Bewegung reduzieren“ gilt der Endzustand: alle Schilder stecken, alle Knöpfe leuchten. */

@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; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --wand: #F1F1EF;          /* Putz, Seitenhintergrund */
  --wand-2: #E5E4DF;        /* Sockel: Fußbereich */
  --schild: #FBFAF6;        /* Namensschild, Karten */
  --tinte: #202326;         /* Anthrazit: Schrift, Knopfkappe */
  --tinte-2: #4A4E54;       /* Nebentext, 7,4 : 1 auf --wand */
  --messing: #B08D57;       /* Messingplatte (nur Fläche, nie Schrift) */
  --messing-hell: #D4BC8E;
  --messing-tief: #7A5D30;  /* Messington für Schrift, 5,4 : 1 auf --wand */
  --messing-kante: #85673A;
  --linie: #D4D2CB;
  --feldrand: #85827A;      /* Formularränder, 3 : 1 */
  --licht: #F3C766;         /* leuchtender Knopf */
  --licht-hell: #FFF4D2;
  --licht-tief: #D29A35;
  --schein: rgba(255, 190, 84, .62);
  --marker: #F7D257;        /* gelbe Stellen (Entscheidungen offen) */
  --kopf-h: 4.25rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Schibsted", "Helvetica Neue", Arial, sans-serif;
  --gebuerstet: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, 0) 1px 2px, rgba(60, 40, 10, .045) 2px 3px);
  --messing-flaeche: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 34%, rgba(40, 25, 5, .1)),
    var(--gebuerstet), linear-gradient(104deg, #CBAE7A 0%, #B08D57 46%, #A0804C 100%);
  --platte-schatten: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(40, 25, 5, .22), 0 1px 1px rgba(32, 35, 38, .2),
    0 22px 34px -22px rgba(32, 35, 38, .55);
}

*, *::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(--wand); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--wand); 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-color: var(--messing); text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: var(--messing-tief); text-decoration-color: var(--messing-tief); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--licht); color: var(--tinte); }

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -.022em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); letter-spacing: -.038em; line-height: 1.02; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
h3 { font-size: 1.22rem; letter-spacing: -.012em; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .45em; }
strong, b { font-weight: 700; }
.huelle { max-width: 74rem; margin: 0 auto; padding: 0 var(--rand); }
.lesen { max-width: 41rem; }
.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; }
.kicker { font: 500 .875rem/1.4 var(--mono); color: var(--messing-tief); margin: 0 0 .8rem; }
.offen { background: var(--marker); padding: .05em .3em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: .95em; }

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

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--wand); 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; gap: .75rem; min-height: 2.75rem; text-decoration: none; font: 500 .95rem/1.1 var(--sans); color: var(--tinte); }
.marke b { display: block; font-weight: 700; font-size: 1.16rem; letter-spacing: -.015em; }
.marke:hover { color: var(--tinte); }
/* Bildmarke: kleine Klingelplatte mit Namensschild und leuchtendem Knopf */
.marke-zeichen { position: relative; flex: none; width: 1.7rem; height: 2.3rem; border-radius: 5px; background: var(--messing-flaeche); box-shadow: var(--platte-schatten); }
.marke-zeichen::before { content: ""; position: absolute; left: .28rem; right: .28rem; top: .34rem; height: .5rem; border-radius: 1px; background: var(--schild); box-shadow: inset 0 0 0 1.5px var(--tinte); }
.marke-zeichen::after { content: ""; position: absolute; left: 50%; bottom: .3rem; width: .78rem; height: .78rem; margin-left: -.39rem; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, var(--licht-hell), var(--licht) 50%, var(--licht-tief)); box-shadow: 0 0 0 2px var(--tinte), 0 0 7px 1px var(--schein); }
.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[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--messing); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.menue-schalter { display: none; }
.fortschritt { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--messing) 0 calc(var(--fortschritt, 0) * 100%), transparent 0); }

/* ---------- Knöpfe: Anthrazit-Kappe im Messingring, Hauptknopf mit Klingellicht ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3rem; padding: .7rem 1.45rem; border-radius: 999px; border: 0;
  background: var(--tinte); color: var(--wand); font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 3px var(--messing), 0 0 0 4px var(--messing-kante), 0 12px 22px -14px rgba(32, 35, 38, .7); transition: box-shadow .25s, background-color .25s, transform .12s; }
.knopf::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--licht); box-shadow: 0 0 7px 1px var(--schein); }
.knopf:hover { background: #2D3136; color: var(--wand); box-shadow: 0 0 0 3px var(--messing), 0 0 0 4px var(--messing-kante), 0 0 24px 3px var(--schein); }
.knopf:active { transform: translateY(1px); }
.knopf:focus-visible { outline-offset: 6px; }
.knopf.hell { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--tinte); }
.knopf.hell::before { display: none; }
.knopf.hell:hover { background: var(--tinte); color: var(--wand); box-shadow: inset 0 0 0 2px var(--tinte); }
.knopf.klein { min-height: 2.6rem; padding: .45rem 1.1rem; font-size: .95rem; box-shadow: 0 0 0 2px var(--messing), 0 0 0 3px var(--messing-kante); }
.menue .knopf.klein, .menue .knopf.klein:hover { color: var(--wand); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 .8rem; padding: 4px; }
.aufruf { margin: 1.8rem 0 0; }

/* ---------- Seitenkopf mit Tableau ---------- */
.seitenkopf { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem); }
.seitenkopf .huelle { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .klingelkopf .huelle, .seitenkopf .huelle:has(> .ansprech) { grid-template-columns: minmax(0, 1fr) minmax(0, 22.5rem); column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
}
.seitenkopf h1 { max-width: 15ch; }
.pfad { font: 400 .875rem/1.4 var(--mono); color: var(--tinte-2); margin-bottom: 1.4rem; }
.pfad a { color: var(--tinte-2); }
.unterzeile { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--tinte-2); max-width: 38rem; }
.kurz { position: relative; max-width: 42rem; margin: 1.6rem 0 1.1rem; padding: 1.1rem 1.35rem 1.15rem; background: var(--schild); border: 1px solid var(--linie); border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff, 0 14px 28px -24px rgba(32, 35, 38, .55); }
.kurz p { margin: 0; font-size: 1.07rem; }
.kurz .kurz-marke { display: flex; align-items: center; gap: .5rem; font: 500 .875rem/1 var(--mono); color: var(--messing-tief); margin-bottom: .6rem; }
.kurz .kurz-marke::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--licht); box-shadow: 0 0 6px 1px var(--schein); }
.stand { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font: 400 .875rem/1.4 var(--mono); color: var(--tinte-2); margin: 0; }

/* ---------- Das Klingeltableau ---------- */
.tableau { position: relative; width: 100%; max-width: 22.5rem; justify-self: end; padding: 1.35rem 1.25rem 1.2rem; border-radius: 12px;
  background: var(--messing-flaeche); border: 1px solid var(--messing-kante); box-shadow: var(--platte-schatten); }
.schraube { position: absolute; width: .7rem; height: .7rem; border-radius: 50%;
  background: linear-gradient(45deg, transparent 43%, rgba(45, 32, 12, .75) 44% 56%, transparent 57%), radial-gradient(circle at 35% 30%, #F0E2C2, #A98650 60%, #7A5D30);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(60, 40, 10, .35); }
.schraube.lo { top: .55rem; left: .55rem; }
.schraube.ro { top: .55rem; right: .55rem; transform: rotate(70deg); }
.schraube.lu { bottom: .55rem; left: .55rem; transform: rotate(25deg); }
.schraube.ru { bottom: .55rem; right: .55rem; transform: rotate(110deg); }
.sprech { display: block; width: 100%; height: auto; margin: .2rem 0 .9rem; }
.sprech-feld { fill: rgba(70, 48, 16, .12); stroke: rgba(70, 48, 16, .35); stroke-width: 1.5; }
.sprech-schlitze rect { fill: var(--tinte); }
.sprech-linse { fill: var(--tinte); stroke: var(--messing-kante); stroke-width: 2; }
.sprech-linse-innen { fill: #3D4F63; }
.sprech-glanz { fill: rgba(255, 255, 255, .75); }
.sprech-wellen path { fill: none; stroke: var(--tinte); stroke-width: 2.6; stroke-linecap: round; opacity: .55; }
.tableau-ort { margin: 0 0 .8rem; text-align: center; font: 700 1.3rem/1.1 var(--sans); letter-spacing: .01em; color: #231B10; text-shadow: 0 1px 0 rgba(255, 255, 255, .42); }
.tableau-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tableau-liste li { margin: 0; }
.tableau-zeile { margin: .9rem 0 0; text-align: center; font: 500 .875rem/1.3 var(--sans); color: #231B10; }
.klingel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 2.9rem; text-decoration: none; color: var(--tinte); border-radius: 6px; }
.klingel:hover { color: var(--tinte); }
.klingel:focus-visible { outline-offset: 2px; }

/* Namensschild hinter Glas (Tableau und Abschnittsschild) */
.klingel-halter, .schild-halter { position: relative; display: block; overflow: hidden; min-width: 0; padding: .5rem .8rem; border-radius: 3px; background: var(--schild);
  box-shadow: inset 0 0 0 2px var(--messing-kante), inset 0 3px 5px rgba(40, 28, 10, .28); }
.klingel-halter::after, .schild-halter::after { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 42%; pointer-events: none; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); opacity: .55; }
.klingel-name, .schild-name { display: block; font: 500 .9375rem/1.25 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Klingelknopf: Messingring, Kappe, Licht */
.knopf-rund { position: relative; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F2E4C4, #B8955E 52%, #7A5D30);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), inset 0 -2px 3px rgba(40, 25, 5, .35), 0 1px 2px rgba(32, 35, 38, .35); }
.knopf-rund::before, .knopf-rund::after { content: ""; position: absolute; inset: 21%; border-radius: 50%; }
.knopf-rund::before { background: radial-gradient(circle at 40% 34%, #51565D, var(--tinte) 68%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(255, 255, 255, .2); }
.knopf-rund::after { background: radial-gradient(circle at 42% 36%, var(--licht-hell) 0 12%, var(--licht) 45%, var(--licht-tief));
  box-shadow: 0 0 0 1px rgba(90, 60, 20, .55), 0 0 12px 3px var(--schein); }
.klingel:hover .knopf-rund::after, .klingel:hover .knopf-rund::before { transform: scale(.9); }
.jetzt .knopf-rund::after { box-shadow: 0 0 0 1px rgba(90, 60, 20, .55), 0 0 18px 7px var(--schein); }

/* ---------- Kapitel: Klingelschild links, Text rechts ---------- */
.abschnitt { padding: clamp(2rem, 4.5vw, 3.4rem) 0; }
.kapitel .huelle { display: grid; grid-template-columns: 13.5rem minmax(0, 42rem); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.kapitel-text > h2:first-child { margin-top: .1rem; }
.schild { position: sticky; top: calc(var(--kopf-h) + 1.5rem); display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 13.5rem; margin: .2rem 0 0;
  padding: .45rem .6rem .45rem .45rem; border-radius: 9px; background: var(--messing-flaeche); border: 1px solid var(--messing-kante); box-shadow: var(--platte-schatten); }
.schild .knopf-rund { width: 2.3rem; height: 2.3rem; }
.schild-halter { flex: 1; }

/* ---------- Bausteine im Text ---------- */
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.6rem; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.kachel { background: var(--schild); border: 1px solid var(--linie); border-radius: 6px; padding: 1.2rem 1.25rem 1.05rem; }
.kachel h3 { margin: 0 0 .4em; }
.kachel p:last-child { margin-bottom: 0; }
.zahl-gross { display: block; font: 600 clamp(1.8rem, 4vw, 2.6rem)/1 var(--mono); color: var(--messing-tief); letter-spacing: -.04em; margin-bottom: .5rem; }
.merk { padding-left: 1.2rem; }
.merk li::marker { color: var(--messing-tief); }
ol.schritte { list-style: none; padding: 0; counter-reset: s; display: grid; gap: .85rem; margin: 1.2rem 0 1.4rem; }
ol.schritte li { counter-increment: s; position: relative; margin: 0; padding-left: 2.9rem; min-height: 2rem; }
ol.schritte li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  font: 600 .9rem/1 var(--mono); color: var(--wand); background: var(--tinte); box-shadow: 0 0 0 2px var(--messing-hell), 0 0 0 3px var(--messing-kante); }
.hinweis { background: #ECE4D4; border-radius: 6px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.hinweis p:last-child { margin: 0; }
.zitat { margin: 1.4rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--messing); font-size: 1.05rem; }
.zitat footer { font: 400 .875rem/1.4 var(--mono); color: var(--tinte-2); margin-top: .4rem; }
.quellen { font-size: .9rem; color: var(--tinte-2); border-top: 1px solid var(--linie); padding-top: 1rem; margin-top: 2rem; }
.quellen a { color: var(--tinte-2); }
.glossar dt { font-weight: 700; font-size: 1.15rem; margin-top: 1.4rem; }
.glossar dd { margin: .3rem 0 0; max-width: 42rem; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; margin: 1.4rem 0; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--schild); border: 1px solid var(--linie); 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: .8rem 1rem; border-bottom: 1px solid var(--linie); }
.tabelle thead th { font: 500 .875rem/1.3 var(--mono); background: var(--tinte); color: var(--wand); }
.tabelle tbody th { font-weight: 700; }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }

/* Fragen: Zeilen eines Tableaus, der Knopf leuchtet, wenn die Antwort offen ist */
.fragen { margin: 1.2rem 0; background: var(--schild); border: 1px solid var(--linie); border-radius: 8px; }
.fragen details { border-top: 1px solid var(--linie); }
.fragen details:first-child { border-top: 0; }
.fragen summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; position: relative; min-height: 3.4rem; padding: 1rem 4.2rem 1rem 1.2rem; font-weight: 700; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 2rem; height: 2rem; margin-top: -1rem; border-radius: 50%;
  background: radial-gradient(circle, var(--tinte) 0 40%, transparent 42%), radial-gradient(circle at 35% 30%, #F2E4C4, #B8955E 52%, #7A5D30);
  box-shadow: inset 0 -1px 2px rgba(40, 25, 5, .35), 0 1px 2px rgba(32, 35, 38, .3); transition: box-shadow .3s; }
.fragen details[open] summary::after { background: radial-gradient(circle at 46% 42%, var(--licht-hell) 0 9%, var(--licht) 26%, var(--licht-tief) 40%, transparent 42%),
  radial-gradient(circle at 35% 30%, #F2E4C4, #B8955E 52%, #7A5D30); box-shadow: 0 0 12px 2px var(--schein), 0 1px 2px rgba(32, 35, 38, .3); }
.fragen summary:hover::after { box-shadow: 0 0 9px 1px var(--schein), 0 1px 2px rgba(32, 35, 38, .3); }
.fragen .antwort { padding: 0 1.2rem 1.15rem; max-width: 42rem; }
.fragen .antwort p { margin: 0; }
.faq-verzeichnis a { white-space: nowrap; }

/* Weiterlesen: Klingelreihen */
.weiter-liste { list-style: none; margin: 0; padding: 0; background: var(--schild); border: 1px solid var(--linie); border-radius: 8px; }
.weiter-liste li { position: relative; display: grid; gap: .2rem; margin: 0; padding: 1rem 4.2rem 1rem 1.2rem; border-top: 1px solid var(--linie); }
.weiter-liste li:first-child { border-top: 0; }
.weiter-liste a { font-weight: 700; text-decoration: none; }
.weiter-liste a::after { content: ""; position: absolute; inset: 0; }
.weiter-liste li:hover a { text-decoration: underline; text-decoration-color: var(--messing); }
.weiter-liste span { color: var(--tinte-2); font-size: .97rem; }
.weiter-liste li::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 2rem; height: 2rem; margin-top: -1rem; border-radius: 50%;
  background: radial-gradient(circle, var(--tinte) 0 40%, transparent 42%), radial-gradient(circle at 35% 30%, #F2E4C4, #B8955E 52%, #7A5D30);
  box-shadow: inset 0 -1px 2px rgba(40, 25, 5, .35), 0 1px 2px rgba(32, 35, 38, .3); }
.weiter-liste li:hover::after, .weiter-liste li:focus-within::after { background: radial-gradient(circle at 46% 42%, var(--licht-hell) 0 9%, var(--licht) 26%, var(--licht-tief) 40%, transparent 42%),
  radial-gradient(circle at 35% 30%, #F2E4C4, #B8955E 52%, #7A5D30); box-shadow: 0 0 12px 2px var(--schein); }

/* Selbstcheck und Rechner (falls eine Seite sie nutzt) */
.check { background: var(--schild); border: 1px solid var(--linie); border-radius: 8px; padding: clamp(1.2rem, 4vw, 2rem); margin: 1.5rem 0; }
.check fieldset { border: 0; border-bottom: 1px solid var(--linie); margin: 0; padding: .9rem 0 1rem; }
.check legend { font-weight: 700; padding: 0; float: left; width: 100%; margin-bottom: .6rem; }
.befund { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 6px; background: var(--wand); border-left: 4px solid var(--messing); }
.befund p:last-child { margin: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: .6rem; clear: both; }
.wahl label { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem 1rem; border: 1.5px solid var(--feldrand); border-radius: 999px; cursor: pointer; font-weight: 500; }
.wahl input { width: 1.1rem; height: 1.1rem; accent-color: var(--messing-tief); margin: 0; }
.wahl label:has(input:checked) { border-color: var(--tinte); background: rgba(176, 141, 87, .2); }

/* ---------- Anfrage: Messingfeld mit großer Klingel, daneben das Formular ---------- */
.anfrage-karte { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: var(--schild); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 40px -30px rgba(32, 35, 38, .6); }
.anfrage-kopf { position: relative; padding: clamp(1.4rem, 4vw, 2.6rem); padding-top: clamp(5rem, 9vw, 6rem); color: #1C1810;
  background: var(--gebuerstet), linear-gradient(160deg, #D6BE90 0%, #C3A36D 55%, #B8975F 100%); }
.anfrage-kopf::before { content: ""; position: absolute; left: clamp(1.4rem, 4vw, 2.6rem); top: clamp(1.4rem, 3vw, 2rem); width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: radial-gradient(circle at 46% 42%, var(--licht-hell) 0 9%, var(--licht) 26%, var(--licht-tief) 40%, var(--tinte) 41% 44%, transparent 45%),
  radial-gradient(circle at 35% 30%, #F2E4C4, #B8955E 52%, #7A5D30);
  box-shadow: 0 0 16px 3px var(--schein), inset 0 -2px 3px rgba(40, 25, 5, .35); }
.anfrage-kopf .kicker { color: #1C1810; }
.anfrage-kopf h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.anfrage-kopf p { color: #1C1810; }
.anfrage { padding: clamp(1.4rem, 4vw, 2.6rem); }
.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(--wand); border: 1.5px solid var(--feldrand); border-radius: 6px; padding: .72rem .9rem; min-height: 3rem; }
.anfrage select { appearance: auto; }
.anfrage input:focus, .anfrage textarea:focus, .anfrage select:focus { border-color: var(--tinte); outline: none; box-shadow: 0 0 0 3px rgba(176, 141, 87, .5); }
.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; flex: none; margin-top: .15rem; accent-color: var(--messing-tief); }
.anfrage .hilfe { display: block; margin-top: .3rem; font-size: .9rem; color: var(--tinte-2); }
.anfrage button.knopf { font-size: 1.05rem; margin: .3rem 0 0 4px; }
.anfrage .versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-stand="fehler"] { color: #9B1C1C; font-weight: 600; }
.danach { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: d; display: grid; gap: 1rem; }
.danach li { counter-increment: d; display: grid; grid-template-columns: 2.4rem 1fr; gap: .15rem .85rem; margin: 0; }
.danach li::before { content: counter(d); grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  font: 600 .95rem/1 var(--mono); color: var(--wand); background: var(--tinte); box-shadow: 0 0 0 2px var(--messing-hell), 0 0 0 3px var(--messing-kante); }
.danach b { display: block; }
.danach span { font-size: .97rem; }

/* Ansprechpartner */
.ansprech { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: start; padding: 1.3rem; background: var(--schild); border: 1px solid var(--linie); border-radius: 8px; }
.ansprech img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--messing), 0 0 0 4px var(--messing-kante); }
.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; }

/* ---------- Fuß ---------- */
.fuss { background: var(--wand-2); border-top: 1px solid var(--linie); padding: 3rem 0 2.5rem; margin-top: 2rem; font-size: .97rem; }
.fuss .spalten { display: grid; grid-template-columns: 1.5fr 1fr 1fr; 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; }
.querlinks ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Feste Aufrufleiste am Handy: erst nach dem ersten Bildschirm */
.leiste-unten { display: none; }
@media (max-width: 980px) {
  .leiste-unten { display: flex; gap: .9rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .7rem var(--rand) calc(.7rem + env(safe-area-inset-bottom));
    background: var(--wand); border-top: 1px solid var(--linie); box-shadow: 0 -10px 24px -18px rgba(32, 35, 38, .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.8rem; }
}

/* ---------- Bewegung: nur mit html.bewegt (kern.js), sonst Endzustand ---------- */
@keyframes einschieben { from { transform: translateX(-106%); } to { transform: none; } }
@keyframes druecken { 0% { transform: scale(1); } 35% { transform: scale(.8); } 100% { transform: scale(1); } }
@keyframes klingeln { 0% { box-shadow: 0 0 0 0 rgba(255, 190, 84, .85), 0 0 12px 3px var(--schein); } 100% { box-shadow: 0 0 0 1.5rem rgba(255, 190, 84, 0), 0 0 12px 3px var(--schein); } }
@keyframes welle { 0%, 100% { opacity: .55; } 30% { opacity: 1; stroke: var(--licht-tief); } }

/* Tableau: beim Laden werden die Namensschilder nacheinander eingeschoben */
html.bewegt .tableau .klingel-name { animation: einschieben .6s cubic-bezier(.2, .9, .3, 1.12) both; }
html.bewegt .tableau li:nth-child(1) .klingel-name { animation-delay: .15s; }
html.bewegt .tableau li:nth-child(2) .klingel-name { animation-delay: .22s; }
html.bewegt .tableau li:nth-child(3) .klingel-name { animation-delay: .29s; }
html.bewegt .tableau li:nth-child(4) .klingel-name { animation-delay: .36s; }
html.bewegt .tableau li:nth-child(5) .klingel-name { animation-delay: .43s; }
html.bewegt .tableau li:nth-child(6) .klingel-name { animation-delay: .5s; }
html.bewegt .tableau li:nth-child(7) .klingel-name { animation-delay: .57s; }
html.bewegt .tableau li:nth-child(8) .klingel-name { animation-delay: .64s; }
html.bewegt .tableau li:nth-child(9) .klingel-name { animation-delay: .71s; }
html.bewegt .tableau li:nth-child(10) .klingel-name { animation-delay: .78s; }
html.bewegt .tableau.klingelt .sprech-wellen path { animation: welle .9s ease-out 1; }
html.bewegt .tableau.klingelt .sprech-wellen path + path { animation-delay: .14s; }

/* Knöpfe sind aus, bis ihr Abschnitt erreicht ist; dann Schild einschieben, Knopf drücken, Licht an, Klingelring */
html.bewegt .klingel .knopf-rund::after, html.bewegt .schild .knopf-rund::after { opacity: 0; transform: scale(.6); transition: opacity .35s ease .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1) .3s; }
html.bewegt .klingel.an .knopf-rund::after, html.bewegt .schild.an .knopf-rund::after { opacity: 1; transform: none; animation: klingeln 1.1s ease-out .45s 1; }
html.bewegt .klingel.an .knopf-rund::before, html.bewegt .schild.an .knopf-rund::before { animation: druecken .42s ease-out .15s 1; }
html.bewegt .klingel:hover .knopf-rund::after { opacity: .7; transform: scale(.9); }
html.bewegt .klingel.an:hover .knopf-rund::after { opacity: 1; }
html.bewegt .schild-name { transform: translateX(-106%); transition: transform .6s cubic-bezier(.2, .9, .3, 1.12); }
html.bewegt .schild.an .schild-name { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .schild-name, .klingel-name, .knopf-rund::after { transform: none !important; opacity: 1 !important; }
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1020px) {
  .drei { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --kopf-h: 3.75rem; }
  .menue-schalter { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem; border: 2px solid var(--tinte); border-radius: 999px; background: transparent; color: var(--tinte); font: 600 1rem/1 var(--sans); cursor: pointer; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--wand); 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: 1rem; border-bottom: 0; }
  .zwei { grid-template-columns: 1fr; }
}
@media (max-width: 959px) {
  .tableau { justify-self: start; max-width: 30rem; }
}
@media (max-width: 900px) {
  .kapitel .huelle { display: block; }
  .schild { position: static; max-width: 15rem; margin: 0 0 1.1rem; }
  .anfrage-karte { grid-template-columns: 1fr; }
  .anfrage .feld-zeile { grid-template-columns: 1fr; }
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
  .fuss .spalten > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .drei { grid-template-columns: 1fr; }
  .fuss .spalten { grid-template-columns: 1fr; }
  .marke span:last-child { font-size: .875rem; }
  .marke b { font-size: 1.04rem; }
  .tableau { padding: 1.15rem .9rem 1rem; }
  .tableau-liste { grid-template-columns: 1fr 1fr; gap: .5rem .6rem; }
  .klingel { gap: .45rem; }
  .klingel-halter { padding: .45rem .5rem; }
  .klingel-name { font-size: .875rem; }
  .tableau .knopf-rund { width: 2.25rem; height: 2.25rem; }
  .knoepfe .knopf { width: 100%; }
  .fragen summary { padding-right: 3.8rem; }
  .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: .25rem; padding-bottom: .5rem; }
  .tabelle.stapel caption { display: block; width: 100%; padding: .7rem 1rem .2rem; order: 2; }
  .tabelle.stapel td::before { content: attr(data-spalte); display: block; font: 500 .875rem/1.3 var(--mono); color: var(--tinte-2); margin-bottom: .1rem; }
  .ansprech { grid-template-columns: 72px 1fr; }
  .ansprech img { width: 72px; height: 72px; }
}

/* === 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 === */
