/* immobilien-verkaufen-duesseldorf.de — Motiv „Die Verkaufsakte“: Aktendeckel aus Manilakarton, Registerreiter,
   gelochte Blätter, roter Stempel „erledigt“. Schriften lokal (SIL OFL 1.1), keine Abrufe bei Dritten.
   Eine Hintergrundfarbe für die ganze Seite (iPhone-Safari färbt Status- und Adressleiste danach). */

@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 {
  --grund: #EFE9DD;          /* Seitenhintergrund = THEMA_FARBE */
  --blatt: #FBF8F1;          /* Aktenpapier */
  --karton: #E5DBC8;         /* Fuß, Tabellenkopf */
  --manila: #D9C393;         /* Aktendeckel */
  --manila-tief: #BFA06B;    /* Rückseite, Lochung */
  --tinte: #2B2118;
  --tinte-2: #5A4A3B;
  --stempel: #A6352B;
  --stempel-hell: #F3DCD5;
  --linie: #D6C9B1;
  --linie-fein: #E6DDCC;
  --marker: #F2D05A;
  --r0: #E2CFA5; --r1: #C9D2BC; --r2: #C3CDD6; --r3: #E6C8BA;
  --schatten: 0 1px 0 rgba(43, 33, 24, .07), 0 14px 30px -20px rgba(43, 33, 24, .45);
  --kopf-h: 4.25rem;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Schibsted", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(1rem, 4vw, 2.5rem);
  /* Ink-Struktur für Stempel: Rauschen als Maske (data:-URI, erlaubt durch img-src data:) */
  --tinte-maske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 0 0 0 2.15'/%3E%3C/filter%3E%3Crect width='140' height='70' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::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; overflow-x: clip; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--tinte); text-decoration-color: var(--stempel); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--stempel); }
:focus-visible { outline: 3px solid var(--stempel); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--marker); color: var(--tinte); }

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -.022em; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw + .4rem, 4.1rem); letter-spacing: -.038em; line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 2.4vw + .4rem, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .45em; }
strong, b { 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; }
.kicker { font: 500 .9375rem/1.4 var(--mono); color: var(--stempel); 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(--blatt); 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(--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; gap: .75rem; min-height: 2.75rem; text-decoration: none; font: 500 .9375rem/1.12 var(--sans); color: var(--tinte); }
.marke b { display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; }
.marke:hover { color: var(--tinte); }
/* Zeichen: Aktendeckel mit Reiter und rotem Stempelpunkt */
.marke-zeichen { position: relative; flex: none; width: 2.15rem; height: 1.6rem; margin-top: .35rem; border-radius: 3px 5px 4px 4px;
  background: var(--manila); border: 2px solid var(--tinte); }
.marke-zeichen::before { content: ""; position: absolute; left: -2px; top: -.5rem; width: 1rem; height: .5rem; border: 2px solid var(--tinte); border-bottom: 0;
  border-radius: 4px 4px 0 0; background: var(--manila); }
.marke-zeichen::after { content: ""; position: absolute; right: .25rem; bottom: .2rem; width: .9rem; height: .5rem; border: 2px solid var(--stempel); border-radius: 2px; transform: rotate(-12deg); }
.menue { display: flex; align-items: center; gap: .25rem 1.3rem; }
.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(--stempel); 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(--stempel) 0 calc(var(--fortschritt, 0) * 100%), transparent 0); }

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

/* ---------- Startbühne ---------- */
.buehne { padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: clip; }
.buehne .huelle { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.buehne h1 { margin-bottom: .4em; max-width: 13ch; }
.buehne .unterzeile { font-size: clamp(1.1rem, 1.5vw + .3rem, 1.3rem); color: var(--tinte-2); max-width: 36rem; }
.buehne .aufruf { margin-top: 1.4rem; }
.buehne .stand { margin-top: 1.1rem; }
.buehne-akte { padding-top: 1rem; }
.buehne .motiv .aufruf { margin: 0; }

/* ---------- Die Akte ---------- */
.akte { --auf: 1; --winkel: -122deg; position: relative; width: 100%; max-width: 27rem; aspect-ratio: 480 / 560; margin-left: auto;
  perspective: 1500px; perspective-origin: 30% 50%; filter: drop-shadow(0 26px 26px rgba(43, 33, 24, .22)); }
.akte-grund { position: absolute; inset: 0; width: 100%; height: 100%; }
.akte-deckel { position: absolute; left: 1.25%; top: 3.57%; width: 85%; height: 95%; transform-origin: 0 50%; transform-style: preserve-3d;
  transform: rotateY(calc(var(--auf) * var(--winkel))); }
.deckel-vorne, .deckel-innen { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; }
.deckel-vorne svg { display: block; width: 100%; height: 100%; }
.deckel-innen { transform: rotateY(180deg); background: linear-gradient(90deg, #C7AC79, #D3BB8A 30%, #CDB382); box-shadow: inset 0 0 0 1px rgba(43, 33, 24, .25); }
.akte-stempel { position: absolute; left: 22%; top: 76%; font-size: clamp(1.05rem, 2.2vw, 1.5rem); padding: .5rem .9rem .45rem; transform: rotate(-11deg); }
.haken { stroke-dasharray: 1; stroke-dashoffset: 0; }
.akte.klein { max-width: 19rem; }

/* Stempel (gemeinsam) */
.stempel { display: inline-block; font: 600 1rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--stempel);
  border: 3px solid currentColor; border-radius: 7px; padding: .42rem .7rem .38rem; box-shadow: inset 0 0 0 2px var(--blatt), inset 0 0 0 4px currentColor;
  background: transparent; pointer-events: none; user-select: none; mix-blend-mode: multiply;
  -webkit-mask-image: var(--tinte-maske); mask-image: var(--tinte-maske); -webkit-mask-size: 140px 70px; mask-size: 140px 70px; }

/* ---------- Seitenkopf der Unterseiten ---------- */
.seitenkopf { padding: clamp(1.8rem, 5vw, 3.6rem) 0 1.2rem; overflow: clip; }
.seitenkopf .huelle { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .seitenkopf .huelle:has(> .motiv), .seitenkopf .huelle:has(> .ansprech) { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); }
}
.seitenkopf h1 { max-width: 19ch; font-size: clamp(2.1rem, 3.6vw + .5rem, 3.5rem); }
.pfad { font: 400 .9375rem/1.4 var(--mono); color: var(--tinte-2); margin-bottom: 1.2rem; }
.pfad a { color: var(--tinte-2); }
.unterzeile { font-size: clamp(1.08rem, 1.2vw + .4rem, 1.25rem); color: var(--tinte-2); max-width: 42rem; }
.motiv { display: flex; flex-direction: column; gap: 1.6rem; }
.motiv .aufruf { margin: 0; order: 2; }
.motiv .akte { order: 1; margin: 0 0 0 auto; }
@media (min-width: 960px) {
  .motiv { align-items: flex-end; }
  .motiv .aufruf { width: 100%; max-width: 27rem; }
  .motiv .knoepfe { justify-content: flex-end; }
  .motiv .aufruf .leise { text-align: right; }
}

/* Antwortkasten als Aktenvermerk mit Büroklammer */
.kurz { position: relative; max-width: 44rem; margin: 1.7rem 0 1.1rem; padding: 1.2rem 1.35rem 1.15rem; background: var(--blatt);
  border: 1px solid var(--linie); border-radius: 3px; box-shadow: var(--schatten); }
.kurz::before { content: ""; position: absolute; left: 1.5rem; top: -1.05rem; width: .8rem; height: 2.6rem; border: 2px solid #8A8178; border-radius: .5rem; }
.kurz::after { content: ""; position: absolute; left: 1.72rem; top: -.75rem; width: .4rem; height: 1.8rem; border: 2px solid #8A8178; border-bottom: 0; border-radius: .3rem .3rem 0 0; }
.kurz p { margin: 0; font-size: 1.08rem; }
.kurz .kurz-marke { font: 600 .9375rem/1 var(--mono); color: var(--stempel); margin: 0 0 .55rem 1.6rem; }
.stand { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font: 400 .875rem/1.45 var(--mono); color: var(--tinte-2); margin: 0; }

/* ---------- Aktenlauf: Blätter + Register ---------- */
.aktenlauf { padding: 1.5rem 0 1rem; }
.aktenlauf .huelle { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.blaetter { min-width: 0; }
.blatt { position: relative; margin: 3.4rem 0 0; padding: 0; }
.blatt:first-child { margin-top: 2.6rem; }
.blatt-reiter { position: absolute; top: -2.25rem; left: 1.4rem; height: 2.3rem; margin: 0; padding: .5rem 1.05rem 0; border-radius: 9px 9px 0 0;
  font: 500 .9375rem/1.2 var(--mono); color: var(--tinte); background: var(--r0); border: 1px solid rgba(43, 33, 24, .18); border-bottom: 0; white-space: nowrap; }
.blatt:nth-child(4n+2) .blatt-reiter { background: var(--r1); left: 22%; }
.blatt:nth-child(4n+3) .blatt-reiter { background: var(--r2); left: 42%; }
.blatt:nth-child(4n+4) .blatt-reiter { background: var(--r3); left: 62%; }
.blatt-papier { position: relative; background: var(--blatt); border: 1px solid var(--linie); border-radius: 3px 3px 4px 4px;
  padding: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.15rem, 4vw, 3rem) clamp(1.5rem, 3.5vw, 2.4rem) clamp(2.6rem, 5vw, 4.4rem);
  box-shadow: 0 1px 0 #E3D8C4, 0 3px 0 -1px var(--blatt), 0 3px 0 0 var(--linie), var(--schatten);
  background-image: radial-gradient(circle at 50% 50%, var(--grund) 0 .5rem, #CDBFA5 .5rem .6rem, transparent .62rem),
                    radial-gradient(circle at 50% 50%, var(--grund) 0 .5rem, #CDBFA5 .5rem .6rem, transparent .62rem);
  background-size: 1.6rem 1.6rem; background-repeat: no-repeat; background-position: clamp(.45rem, 1.4vw, 1.1rem) 5.5rem, clamp(.45rem, 1.4vw, 1.1rem) 16rem; }
.blatt-papier > :last-child { margin-bottom: 0; }
.blatt-papier > p, .blatt-papier > ul, .blatt-papier > ol, .blatt-papier > h2, .blatt-papier > h3, .blatt-papier > .hinweis { max-width: 44rem; }
.blatt-stempel { position: absolute; right: clamp(.8rem, 3vw, 2.2rem); top: clamp(-.6rem, -1vw, 0rem); transform: rotate(9deg); font-size: .9375rem; }
.blatt h2 { padding-right: 7.5rem; }

.register { display: none; }
@media (min-width: 75em) {
  .aktenlauf .huelle { grid-template-columns: minmax(0, 1fr) 14.5rem; gap: 3.5rem; }
  .register { display: block; position: sticky; top: calc(var(--kopf-h) + 2.2rem); align-self: start; margin-top: 2.6rem; }
}
.register-titel { font: 600 1.05rem/1.2 var(--sans); margin: 0 0 .2rem; }
.register-stand { font: 400 .875rem/1.4 var(--mono); color: var(--tinte-2); margin: 0 0 1rem; }
.register ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--tinte); }
.register li { margin: 0 0 .4rem; }
.register a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 2.75rem; padding: .45rem .8rem .45rem .9rem;
  text-decoration: none; font: 500 .9375rem/1.25 var(--mono); background: var(--r0); border-radius: 0 9px 9px 0; border: 1px solid rgba(43, 33, 24, .14); border-left: 0;
  transition: transform .25s ease, background .25s, color .25s; }
.register li:nth-child(4n+2) a { background: var(--r1); }
.register li:nth-child(4n+3) a { background: var(--r2); }
.register li:nth-child(4n+4) a { background: var(--r3); }
.register a:hover { color: var(--tinte); transform: translateX(4px); }
.register a[aria-current] { background: var(--tinte); color: var(--blatt); transform: translateX(10px); }
.register-haken { flex: none; width: .95rem; height: .5rem; border-left: 3px solid var(--stempel); border-bottom: 3px solid var(--stempel); transform: rotate(-45deg) translate(1px, -2px); opacity: 0; }
.register a.erledigt .register-haken { opacity: 1; }
.register a[aria-current] .register-haken { border-color: var(--blatt); }

/* ---------- Abschnitte, Bausteine ---------- */
.abschnitt { padding: clamp(2rem, 5vw, 3.4rem) 0; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.2rem); margin: 1.4rem 0; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 1.4rem 0; }
.kachel { background: #F5F0E5; border: 1px solid var(--linie-fein); border-radius: 4px; padding: 1.1rem 1.2rem 1rem; }
.kachel h3 { margin: 0 0 .4em; font-size: 1.1rem; }
.kachel p:last-child { margin-bottom: 0; }
.merk { padding-left: 1.25rem; }
.merk li::marker { color: var(--stempel); }
.liste-haken { list-style: none; padding: 0; }
.liste-haken li { position: relative; padding-left: 2rem; }
.liste-haken li::before { content: ""; position: absolute; left: .1rem; top: .3rem; width: 1.05rem; height: 1.05rem; border: 1.6px solid var(--tinte); border-radius: 2px; }
.liste-haken li::after { content: ""; position: absolute; left: .38rem; top: .48rem; width: .55rem; height: .3rem; border-left: 2.5px solid var(--stempel); border-bottom: 2.5px solid var(--stempel); transform: rotate(-45deg); }
.hinweis { background: var(--stempel-hell); border-left: 4px solid var(--stempel); border-radius: 0 4px 4px 0; padding: .95rem 1.15rem; margin: 1.4rem 0; }
.hinweis p:last-child { margin: 0; }
.rechnung { font-family: var(--mono); font-size: .9375rem; }
.zahl { font: 600 1.05em/1 var(--mono); white-space: nowrap; }

/* Tabellen als Kontoblatt */
.tabelle-huelle { overflow-x: auto; margin: 1.4rem 0; max-width: 46rem; }
.tabelle { width: 100%; border-collapse: collapse; background: #FFFDF8; border: 1px solid var(--linie); font-size: 1rem; }
.tabelle caption { caption-side: bottom; text-align: left; padding: .6rem .1rem 0; font-size: .9375rem; color: var(--tinte-2); }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--linie-fein); }
.tabelle thead th { font: 600 .9375rem/1.3 var(--mono); background: var(--karton); color: var(--tinte); border-bottom: 2px solid var(--tinte); }
.tabelle tbody th { font-weight: 700; }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }
.tabelle td:last-child { font-family: var(--mono); font-size: .9375rem; }

/* Fragen als Rückfragezettel */
.fragen-bereich .huelle > h2 { max-width: 30ch; }
.fragen { display: grid; gap: .55rem; margin: 1.3rem 0; max-width: 50rem; }
.fragen details { background: var(--blatt); border: 1px solid var(--linie); border-radius: 3px; }
.fragen details[open] { box-shadow: var(--schatten); }
.fragen summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; padding: .95rem 3rem .95rem 1.15rem; font-weight: 700; position: relative; min-height: 2.75rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 1.05rem; top: .72rem; font: 500 1.45rem/1 var(--mono); color: var(--stempel); transition: transform .2s; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen .antwort { padding: 0 1.15rem 1.05rem; border-top: 1px dashed var(--linie); margin: 0 1.15rem; padding: .85rem 0 1rem; }
.fragen .antwort p { margin: 0; }
.faq-verzeichnis { font: 400 .9375rem/1.9 var(--mono); }
.faq-gruppe .huelle > h2 { max-width: 30ch; }

/* Weiterlesen als Karteireiter */
.weiter-liste { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.4rem 1rem; }
.weiter-liste li { position: relative; background: var(--blatt); border: 1px solid var(--linie); border-radius: 0 4px 4px 4px; padding: 1rem 1.15rem 1.05rem; margin: 0; display: grid; gap: .3rem; }
.weiter-liste li::before { content: ""; position: absolute; left: -1px; top: -1.1rem; width: 6.5rem; height: 1.1rem; background: var(--r0); border: 1px solid rgba(43, 33, 24, .18); border-bottom: 0; border-radius: 7px 7px 0 0; }
.weiter-liste li:nth-child(2)::before { background: var(--r1); left: 30%; }
.weiter-liste li:nth-child(3)::before { background: var(--r2); left: 55%; }
.weiter-liste li:nth-child(4)::before { background: var(--r3); }
.weiter-liste a { font-weight: 700; font-size: 1.08rem; }
.weiter-liste span { color: var(--tinte-2); font-size: .97rem; }
.quellen { font-size: .9375rem; color: var(--tinte-2); border-top: 1px solid var(--linie); padding-top: .9rem; margin-top: 1.8rem; max-width: 46rem; }
.quellen a { color: var(--tinte-2); }

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

/* ---------- Anfrageformular als Auftragsbogen ---------- */
.anfrage-bereich { padding-top: clamp(2.4rem, 6vw, 4rem); }
.anfrage-karte { position: relative; background: var(--blatt); border: 1px solid var(--linie); border-radius: 3px; box-shadow: var(--schatten);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.4rem, 4vw, 3.2rem);
  padding: clamp(1.4rem, 4vw, 2.8rem) clamp(1.15rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 2.6rem) clamp(2.6rem, 5vw, 4.2rem);
  background-image: radial-gradient(circle at 50% 50%, var(--grund) 0 .5rem, #CDBFA5 .5rem .6rem, transparent .62rem),
                    radial-gradient(circle at 50% 50%, var(--grund) 0 .5rem, #CDBFA5 .5rem .6rem, transparent .62rem);
  background-size: 1.6rem 1.6rem; background-repeat: no-repeat; background-position: clamp(.45rem, 1.4vw, 1.1rem) 6rem, clamp(.45rem, 1.4vw, 1.1rem) 18rem; }
.anfrage-karte::before { content: "Auftragsbogen"; position: absolute; top: -2.2rem; left: 1.4rem; height: 2.25rem; padding: .5rem 1.05rem 0; border-radius: 9px 9px 0 0;
  font: 500 .9375rem/1.2 var(--mono); background: var(--stempel); color: var(--blatt); }
.anfrage-kopf .kicker { color: var(--tinte-2); }
.anfrage-kopf h2 { font-size: clamp(1.5rem, 2.2vw + .4rem, 2.1rem); }
.anfrage .feld { margin: 0 0 1rem; }
.anfrage label, .anfrage legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.anfrage .wahl { display: flex; flex-wrap: wrap; gap: .55rem; }
.anfrage .wahl label { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .95rem; border: 2px solid var(--linie);
  border-radius: 6px; cursor: pointer; font-weight: 500; margin: 0; background: #FFFDF8; }
.anfrage .wahl input { width: 1.1rem; height: 1.1rem; accent-color: var(--stempel); margin: 0; }
.anfrage .wahl label:has(input:checked) { border-color: var(--tinte); background: var(--grund); }
.anfrage fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.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: #FFFDF8; border: 2px solid var(--linie); border-radius: 6px; padding: .7rem .85rem; 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 var(--stempel-hell); }
.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(--stempel); }
.anfrage button.knopf { cursor: pointer; font-size: 1.05rem; }
.anfrage .versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-stand="fehler"] { color: #8E2A21; font-weight: 600; }
.danach { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: d; display: grid; gap: .95rem; }
.danach li { counter-increment: d; display: grid; grid-template-columns: 2.5rem 1fr; gap: .15rem .85rem; margin: 0; }
.danach li::before { content: counter(d); grid-row: span 2; font: 600 1rem/2.2rem var(--mono); color: var(--stempel); border: 2px solid var(--stempel);
  border-radius: 5px; width: 2.3rem; height: 2.3rem; text-align: center; transform: rotate(-7deg); }
.danach b { display: block; }
.danach span { color: var(--tinte-2); font-size: .97rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--karton); border-top: 1px solid var(--linie); padding: 3rem 0 2.5rem; margin-top: 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: .1rem; }
.fuss li a { display: inline-block; padding: .25rem 0; }
.fuss .klein { margin-top: 2rem; font-size: .9375rem; color: var(--tinte-2); max-width: 60rem; }
.querlinks ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* ---------- 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(43, 33, 24, .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 html.bewegt, also JavaScript und ohne Wunsch nach weniger Bewegung) ---------- */
html.bewegt .akte { --auf: 0; }
html.bewegt .akte .akte-stempel { opacity: 0; transform: rotate(-11deg) scale(2.3); }
html.bewegt .akte.gestempelt .akte-stempel { opacity: .94; transform: rotate(-11deg) scale(1); transition: opacity .12s ease-out, transform .32s cubic-bezier(.2, 1.7, .45, 1); }
html.bewegt .akte .haken { stroke-dashoffset: 1; }
html.bewegt .akte.gestempelt .haken { stroke-dashoffset: 0; transition: stroke-dashoffset .3s ease-out; }
html.bewegt .akte.gestempelt .h1 { transition-delay: .12s; }
html.bewegt .akte.gestempelt .h2 { transition-delay: .24s; }
html.bewegt .akte.gestempelt .h3 { transition-delay: .36s; }
html.bewegt .akte.gestempelt .h4 { transition-delay: .48s; }
html.bewegt .akte.gestempelt .h5 { transition-delay: .6s; }
html.bewegt .reiter-g { animation: reiter-raus .7s cubic-bezier(.2, .9, .3, 1.15) both; }
html.bewegt .rg1 { animation-delay: .12s; }
html.bewegt .rg2 { animation-delay: .24s; }
html.bewegt .rg3 { animation-delay: .36s; }
html.bewegt .rg4 { animation-delay: .48s; }
html.bewegt .rg5 { animation-delay: .6s; }
@keyframes reiter-raus { from { transform: translateX(-58px); } to { transform: none; } }
html.bewegt .blatt-stempel { opacity: 0; transform: rotate(9deg) scale(2.4); }
html.bewegt .blatt.erledigt .blatt-stempel { opacity: .95; transform: rotate(9deg) scale(1); transition: opacity .1s ease-out, transform .3s cubic-bezier(.2, 1.7, .45, 1); }
html.bewegt .blatt.erledigt .blatt-papier { animation: stoss .26s ease-out .2s 1; }
@keyframes stoss { 0% { transform: none; } 35% { transform: translateY(3px) rotate(.12deg); } 100% { transform: none; } }
html.bewegt .register-haken { transform: rotate(-45deg) translate(1px, -2px) scale(.2); transition: opacity .2s, transform .35s cubic-bezier(.2, 1.7, .45, 1); }
html.bewegt .register a.erledigt .register-haken { transform: rotate(-45deg) translate(1px, -2px) scale(1); }
@media (prefers-reduced-motion: reduce) {
  html.bewegt .akte { --auf: 1; }
  .akte-stempel, .blatt-stempel { opacity: .95 !important; }
  .reiter-g { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1120px) {
  :root { --kopf-h: 3.85rem; }
  .menue-schalter { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem; border: 2px solid var(--tinte); border-radius: 6px; 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(--grund); border-bottom: 1px solid var(--linie); flex-direction: column; align-items: stretch; padding: .5rem var(--rand) 1.2rem; gap: 0; box-shadow: 0 18px 30px -24px rgba(43, 33, 24, .6); }
  .menue.offen-menue { display: flex; }
  .menue a { padding: .8rem 0; border-bottom: 1px dotted var(--linie); font-size: 1.08rem; }
  .menue .knopf.klein { margin-top: .9rem; border-bottom: 2px solid var(--tinte); }
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .buehne .huelle { grid-template-columns: 1fr; }
  .buehne-akte { padding-top: 0; }
  .akte { --winkel: -100deg; max-width: 19rem; margin: 0 auto; }
  .akte.klein { max-width: 15.5rem; }
  .zwei, .drei { grid-template-columns: 1fr; }
  .anfrage-karte { grid-template-columns: 1fr; }
  .anfrage .feld-zeile { grid-template-columns: 1fr; }
}
@media (max-width: 959px) {
  .motiv .aufruf { order: 0; }
  .motiv .akte { margin: .4rem auto 0; }
}
@media (max-width: 640px) {
  .marke { gap: .6rem; font-size: .875rem; }
  .marke b { font-size: 1.04rem; }
  .fuss .spalten { grid-template-columns: 1fr; }
  .blatt-reiter { left: .8rem; padding: .5rem .8rem 0; }
  .blatt:nth-child(4n+2) .blatt-reiter { left: 26%; }
  .blatt:nth-child(4n+3) .blatt-reiter { left: auto; right: 22%; }
  .blatt:nth-child(4n+4) .blatt-reiter { left: auto; right: .8rem; }
  .blatt h2 { padding-right: 0; }
  .blatt-stempel { top: auto; bottom: .8rem; right: .8rem; font-size: .875rem; }
  .blatt-papier { padding: 1.3rem 1rem 3.6rem 2.25rem; background-position: .35rem 5.5rem, .35rem 16rem; }
  .anfrage-karte { padding-left: 2.25rem; padding-right: 1rem; background-position: .35rem 6rem, .35rem 18rem; }
  .knoepfe .knopf { width: 100%; }
  .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-fein); 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 .2rem; }
  .tabelle.stapel td::before { content: attr(data-spalte); display: block; font: 600 .875rem/1.3 var(--mono); color: var(--tinte-2); margin-bottom: .1rem; }
  .anfrage-karte::before { left: 1rem; }
}
@media (max-width: 380px) {
  .marke-zeichen { width: 1.9rem; }
  .marke span:last-child { font-size: .875rem; }
}

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