/* Schieferhof Bedachungen. Seitenstil. Die Engine-Klassen (.sc-*, [data-sc-*])
   bleiben unangetastet; hier stehen Marke, Zeichnung, Legende, Schriftfeld. */
:root {
  --sc-canvas:     #2E3640;
  --sc-surface:    #38414C;
  --sc-ink:        #E9EDF0;
  --sc-ink-soft:   #BCC5CE;
  --sc-accent:     #C4682E;
  --sc-accent-ink: #101418;
  --sc-font-display: "Barlow Condensed", system-ui, sans-serif;
  --sc-font-text:    "Barlow", system-ui, sans-serif;
  --sc-font-mono:    "Barlow Condensed", system-ui, sans-serif;
  --sc-shadow-color: 212 25% 8%;
  --kupfer-hell: #E39A66;
  --linie: #C9D2DA;
  --linie-2: #8994A0;
  --papier: #E7EAED;
  --papier-tinte: #1C232B;
  --papier-leise: #4A5561;
  color-scheme: dark;
}
html { background: var(--sc-canvas); scrollbar-color: #56606C var(--sc-canvas); }
body { font-family: var(--sc-font-text); background: var(--sc-canvas); color: var(--sc-ink); }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:focus-visible { outline: 2px solid var(--kupfer-hell); outline-offset: 3px; border-radius: 2px; }
input, select { caret-color: var(--sc-accent); }
b, .zaehler b, [data-seit] { font-variant-numeric: tabular-nums; }

/* Anzeige-Schrift: schmal wie Normschrift auf der Bauzeichnung. Hell auf
   dunkel bekommt eine Stufe mehr Gewicht und etwas Laufweite. */
.sc-display {
  font-family: var(--sc-font-display);
  font-weight: 600;
  letter-spacing: 0.002em;
  line-height: 1.02;
  text-wrap: balance;
}
.sc-display--xl { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 5.2rem); line-height: 0.98; }
.sc-display--lg { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.6rem); }
.sc-body { color: var(--sc-ink-soft); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); line-height: 1.62; letter-spacing: .006em; text-wrap: pretty; }
@media (max-width: 700px) {
  .sc-display--xl { font-size: clamp(2rem, 1.3rem + 3.4vw, 2.6rem); }
  .sc-display--lg { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.1rem); }
  .sc-body { font-size: 1rem; line-height: 1.55; }
}

/* ---------- Der Tisch: Zeichnung + Regen, fest hinter allem ---------- */
.tisch { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.zeichnung {
  position: absolute; left: 36vw; width: 62vw; top: 4vh; height: 84vh;
  max-width: none; overflow: visible;
  transition: transform 900ms cubic-bezier(0.23, 1, 0.32, 1);
}
.zeichnung { transform-origin: 0 50%; }
.tisch.ist-links .zeichnung { transform: translateX(-30vw) scale(0.68); }
.regen { position: absolute; inset: 0; width: 100%; height: 100%; }
.zaehler {
  position: absolute; left: 0; top: 0; margin: 0;
  display: grid; gap: 2px; justify-items: start;
  font-family: var(--sc-font-display); color: var(--sc-ink);
  transform: translate3d(var(--zx, -999px), var(--zy, -999px), 0);
}
.zaehler span { font-size: 0.82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sc-ink-soft); }
.zaehler b { font-size: clamp(2rem, 1.4rem + 1.8vw, 3.2rem); font-weight: 700; line-height: 1; }
.zaehler small { font-size: 0.9rem; font-weight: 500; color: var(--sc-ink-soft); }
.zaehler.ist-null b { color: var(--kupfer-hell); }

/* Zeichnungs-Stile (SVG-Elemente, die dach.js anlegt) */
.z-linie { fill: none; stroke: var(--linie); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.z-leise { fill: none; stroke: var(--linie-2); stroke-width: 1; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.z-wand { fill: url(#schraffur); stroke: var(--linie); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.z-boden { fill: url(#schraffur); stroke: var(--linie); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.z-bremse { fill: #7FA3C4; }
.z-daemmung { fill: url(#daemmung); stroke: var(--linie); stroke-width: 1; vector-effect: non-scaling-stroke; }
.z-nass { fill: #1B3B5C; }
.z-bahn { fill: #DCE3EA; }
.z-holz { fill: #A88A6A; stroke: #E2CDB4; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.z-stein { fill: url(#steinbild); stroke: #9AABBD; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.z-kupfer { fill: none; stroke: var(--sc-accent); stroke-linecap: round; stroke-linejoin: round; }
.z-luft { fill: none; stroke: #CFE0EE; stroke-width: 1.4; stroke-dasharray: 3 14; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: luft 1.6s linear infinite; }
@keyframes luft { to { stroke-dashoffset: -34; } }
.z-moebel { fill: color-mix(in oklab, var(--sc-canvas) 70%, #000); stroke: var(--linie); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.z-decke { fill: #8C6E8F; opacity: .0; }
.z-text { font-family: var(--sc-font-display); font-weight: 600; fill: var(--sc-ink-soft); }
.z-bezug { fill: none; stroke: var(--linie-2); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Legende (Navigation) ---------- */
.legende {
  position: fixed; left: var(--sc-gutter); bottom: 18px; z-index: var(--sc-z-chrome);
  width: 15.5rem;
  background: color-mix(in oklab, #171C22 92%, transparent);
  border: 1px solid #56606C; border-radius: 2px;
  font-family: var(--sc-font-display);
}
.legende__kopf {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; background: none; cursor: pointer; text-align: left;
}
.legende__stapel { display: grid; gap: 2px; width: 20px; }
.legende__stapel i { display: block; height: 2px; background: #56606C; transition: background-color 200ms; }
.legende__stapel i.ist-an { background: var(--linie); }
.legende__stapel i:first-child.ist-an { background: var(--sc-accent); }
.legende__titel { font-size: 0.82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sc-ink-soft); }
.legende__jetzt { display: block; margin-left: auto; font-size: 1rem; font-weight: 600; color: var(--sc-ink); }
.legende__liste { list-style: none; margin: 0; padding: 6px 0; display: none; border-top: 1px solid #3E4752; }
.legende.ist-offen .legende__liste, .legende.ist-auto .legende__liste { display: block; }
.legende.ist-offen .legende__jetzt, .legende.ist-auto .legende__jetzt { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .legende:hover .legende__liste, .legende:focus-within .legende__liste { display: block; }
  .legende:hover .legende__jetzt, .legende:focus-within .legende__jetzt { display: none; }
}
.legende__liste a {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px; min-height: 30px;
  font-size: 1.02rem; font-weight: 500; color: #A3AEB9; text-decoration: none;
  transition: color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.legende__liste a.ist-gelegt { color: var(--sc-ink); }
.legende__liste a.ist-dran { color: var(--kupfer-hell); }
@media (hover: hover) and (pointer: fine) { .legende__liste a:hover { color: var(--kupfer-hell); } }
.muster { flex: none; width: 28px; height: 10px; border: 1px solid #56606C; position: relative; overflow: hidden; }
.muster::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--f, 0)); }
.muster--rinne::after { background: var(--sc-accent); }
.muster--schiefer::after { background: repeating-linear-gradient(100deg, #5D6B7B 0 6px, #9AABBD 6px 7px); }
.muster--lattung::after { background: repeating-linear-gradient(90deg, #A88A6A 0 4px, transparent 4px 9px); }
.muster--konter::after { background: #A88A6A; }
.muster--bahn::after { background: #DCE3EA; }
.muster--daemmung::after { background: repeating-linear-gradient(60deg, #E1C66D 0 2px, #4E5762 2px 5px); }
.muster--bremse::after { background: #7FA3C4; }
.muster--sparren::after { background: repeating-linear-gradient(90deg, var(--linie-2) 0 4px, transparent 4px 7px); height: 1px; top: 4px; }

/* ---------- Schriftfeld (Kopf, unten rechts) ---------- */
.schriftfeld {
  position: fixed; right: var(--sc-gutter); bottom: 18px; z-index: var(--sc-z-chrome);
  display: grid; grid-template-columns: auto auto;
  background: var(--papier); color: var(--papier-tinte);
  border: 1.5px solid var(--papier-tinte); border-radius: 2px;
  font-family: var(--sc-font-display);
  transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.legende.ist-weg, .schriftfeld.ist-weg { opacity: 0; transform: translateY(8px); pointer-events: none; }
.schriftfeld > * { padding: 8px 12px; }
.schriftfeld__marke {
  grid-column: 1 / -1; border-bottom: 1px solid var(--papier-tinte);
  font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--papier-tinte); text-decoration: none; line-height: 1;
}
.schriftfeld__marke span { display: block; margin-top: 3px; font-size: 0.8rem; font-weight: 600; letter-spacing: .16em; color: var(--papier-leise); }
.schriftfeld__zeile { font-size: 0.9rem; font-weight: 500; color: var(--papier-leise); border-right: 1px solid var(--papier-tinte); align-self: stretch; display: flex; align-items: center; }
.schriftfeld__link {
  font-size: 1rem; font-weight: 700; color: var(--papier-tinte); text-decoration: underline;
  text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) { .schriftfeld__link:hover { color: #8A4219; } }

/* ---------- Knopf ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 2px; border: 0;
  font: 700 1.12rem/1 var(--sc-font-display); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.knopf:active { transform: translateY(1px); }
/* Der volle Knopf ist gefalztes Kupfer: feines Stehfalz-Raster, ein Lichtstreif läuft darüber. */
.knopf--voll {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--sc-accent-ink); background: var(--sc-accent);
}
.knopf--voll::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, transparent 35%, rgb(255 236 214 / .34) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat,
    repeating-linear-gradient(90deg, rgb(0 0 0 / .08) 0 1px, transparent 1px 7px);
  animation: streif 4.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes streif { 0%, 55% { background-position: -200% 0, 0 0; } 100% { background-position: 200% 0, 0 0; } }
@media (hover: hover) and (pointer: fine) { .knopf--voll:hover { background: #CF7539; } }

/* ---------- Bühnen über der Zeichnung ---------- */
.buehne { background: transparent; }
.spalte {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); top: clamp(4rem, 14vh, 9rem);
  width: min(33rem, 31vw);
  display: grid;
}
.spalte > * { grid-area: 1 / 1; }
.spalte .sc-body { margin-top: var(--sc-4); max-width: 38ch; }
.spalte-scrim {
  position: absolute; inset: 0 auto 0 0; width: 46vw; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, color-mix(in oklab, var(--sc-canvas) 92%, transparent) 0%, color-mix(in oklab, var(--sc-canvas) 70%, transparent) 62%, transparent 100%);
}
.held__sub { max-width: 34ch; }
.held .knopf { margin-top: var(--sc-6); }
.null { color: var(--kupfer-hell); font-weight: 600; }

/* ---------- Blätter (opake Abschnitte, gleiten über die Zeichnung) ---------- */
main { position: relative; z-index: 1; }
.blatt { position: relative; background: #252C34; }
.blatt::before { /* feines Zeichenraster im Blatt, nach unten ausgeblendet */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(201 210 218 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(201 210 218 / .045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.hand { padding-block: var(--sc-section); box-shadow: 0 -24px 48px -24px rgb(8 10 14 / .6); }
.hand__raster {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start;
}
.hand__gross { margin: 0; grid-row: span 2; }
.hand__gross img, .hand__klein img { width: 100%; height: auto; border-radius: 2px; }
.hand__text { padding-top: clamp(1rem, 6vw, 6rem); }
.hand__text .sc-body { max-width: 40ch; }
.hand__klein { margin: 0; width: min(100%, 22rem); justify-self: end; }
.hand__klein figcaption { margin-top: var(--sc-3); font-size: 0.98rem; line-height: 1.5; color: var(--sc-ink-soft); }
.daten { margin: var(--sc-6) 0 0; display: grid; border-top: 1px solid #4A5460; }
.daten div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 12px 0; border-bottom: 1px solid #4A5460; }
.daten dt { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-ink-soft); }
.daten dd { margin: 0; color: var(--sc-ink); }

/* Deckarten: gezeichnete Flächen auf einer Schiene */
.buehne--blatt { background: #252C34; }
.buehne--blatt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(201 210 218 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(201 210 218 / .045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.schiene {
  position: absolute; inset: 0 auto 0 0; display: flex; align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem); padding-inline: var(--sc-gutter); padding-bottom: 90px;
  width: max-content;
}
.schiene__kopf, .schiene__ende { width: clamp(17rem, 28vw, 25rem); flex: none; }
.schiene__kopf .sc-body, .schiene__ende .sc-body { margin-top: var(--sc-4); }
.schiene__ende b { color: var(--sc-ink); font-weight: 600; }
.deckung {
  position: relative; flex: none; width: clamp(16.5rem, 24vw, 22rem);
  display: grid; gap: 8px; padding: 12px 12px 16px; cursor: pointer;
  background: #2E3640; border: 1px solid #4A5460; border-radius: 2px;
  transition: border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.deckung input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.deckung__bild { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; background: #1A1F25; }
.deckung__name { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; margin-top: 4px; }
.deckung__satz { color: var(--sc-ink-soft); font-size: 0.98rem; line-height: 1.5; }
.deckung__wahl {
  justify-self: start; margin-top: 6px; padding: 6px 12px; border: 1px solid #6B7682; border-radius: 2px;
  font-family: var(--sc-font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-ink);
}
.deckung:has(input:checked) { border-color: var(--sc-accent); }
.deckung:has(input:checked) .deckung__wahl { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }
.deckung__wahl .w-ja, .deckung:has(input:checked) .deckung__wahl .w-nein { display: none; }
.deckung:has(input:checked) .deckung__wahl .w-ja { display: inline; }
.deckung:has(input:focus-visible) { outline: 2px solid var(--kupfer-hell); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .deckung:hover { border-color: #8994A0; transform: translateY(-3px); } }

/* Abend */
.abend { min-height: 118svh; display: flex; align-items: flex-end; overflow: hidden; background: #1E242B; }
.abend__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; max-width: none; }
.abend__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right, rgb(22 27 33 / .94) 0%, rgb(22 27 33 / .7) 30%, rgb(22 27 33 / .18) 55%, transparent 72%),
              linear-gradient(to bottom, #1E242B 0%, transparent 18%, transparent 82%, #1C2128 100%);
}
.abend__text { position: relative; padding-bottom: clamp(7rem, 18vh, 11rem); }
.abend__text .sc-body { margin-top: var(--sc-4); max-width: 34ch; }

/* Sturm: Wolken und Böen als Ebenen */
.wolken { position: absolute; left: -10%; right: -10%; pointer-events: none; z-index: 2; }
.wolken--fern {
  top: -12%; height: 46%;
  background:
    radial-gradient(40% 60% at 20% 40%, rgb(14 18 23 / .75), transparent 70%),
    radial-gradient(35% 55% at 62% 30%, rgb(14 18 23 / .7), transparent 70%),
    radial-gradient(30% 50% at 90% 50%, rgb(14 18 23 / .6), transparent 70%);
  opacity: var(--sturm, 0);
}
.wolken--nah {
  top: -6%; height: 30%;
  background:
    radial-gradient(30% 70% at 38% 30%, rgb(40 48 58 / .7), transparent 70%),
    radial-gradient(26% 60% at 78% 20%, rgb(40 48 58 / .6), transparent 70%);
  opacity: var(--sturm, 0);
}
.boeen {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    repeating-linear-gradient(-12deg, transparent 0 140px, rgb(201 216 230 / .05) 140px 142px, transparent 142px 300px);
  opacity: var(--sturm, 0);
}

/* Schluss: das Schriftfeld als Anfrage */
.aufmass { position: relative; min-height: 100svh; padding: clamp(5rem, 12vh, 8rem) var(--sc-gutter) 1.5rem; }
.aufmass__raster { display: grid; grid-template-columns: 1fr minmax(0, 40rem); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; min-height: calc(100svh - 10rem); }
.feld-blatt {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--papier); color: var(--papier-tinte);
  border: 2px solid var(--papier-tinte); border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgb(6 8 11 / .8), 0 1px 0 rgb(255 255 255 / .5) inset;
}
.feld-blatt::before { /* Millimeterpapier, nur ganz leise */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(28 35 43 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(28 35 43 / .045) 1px, transparent 1px);
  background-size: 16px 16px;
}
.feld-blatt > * { position: relative; }
.fb__kopf { grid-column: 1 / -1; padding: 20px 22px 18px; border-bottom: 2px solid var(--papier-tinte); }
.fb__marke { margin: 0 0 10px; font: 700 1.05rem/1 var(--sc-font-display); letter-spacing: .04em; text-transform: uppercase; }
.fb__marke span { margin-left: 8px; font-weight: 600; font-size: .82rem; letter-spacing: .16em; color: var(--papier-leise); }
.fb__titel { margin: 0; font: 600 clamp(2rem, 1.4rem + 1.8vw, 3rem)/1.02 var(--sc-font-display); }
.fb__lead { margin: 10px 0 0; color: var(--papier-leise); font-size: 1rem; line-height: 1.55; max-width: 46ch; }
.fb__zelle { margin: 0; padding: 12px 16px 14px; border: 0; border-bottom: 1px solid var(--papier-tinte); min-width: 0; display: grid; gap: 6px; align-content: start; }
.fb__zelle:nth-child(odd):not(.fb__zelle--fuss):not(.fb__zelle--skizze) { border-right: 1px solid var(--papier-tinte); }
.fb__zelle--form { border-right: 1px solid var(--papier-tinte); }
.fb__zelle--skizze { grid-row: span 2; }
.fb__zelle--breit { grid-column: 1 / -1; border-right: 0 !important; }
.fb__zelle--fuss { grid-column: 1 / -1; border-bottom: 0; gap: 10px; }
.fb__label, .fb__zelle legend {
  font: 600 0.82rem/1.2 var(--sc-font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--papier-leise); padding: 0;
}
.fb__zelle legend { float: left; width: 100%; margin-bottom: 6px; }
.feld-blatt input:not([type=radio]), .feld-blatt select {
  width: 100%; min-height: 40px; padding: 4px 2px; border: 0; border-bottom: 1.5px solid var(--papier-tinte); border-radius: 0;
  background: transparent; color: var(--papier-tinte); font: 500 1.08rem/1.3 var(--sc-font-text); caret-color: var(--sc-accent);
}
.feld-blatt select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--papier-tinte) 50%) right 10px center / 7px 7px no-repeat, transparent; padding-right: 26px; }
.feld-blatt input:focus-visible, .feld-blatt select:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.feld-blatt input[aria-invalid=true] { border-bottom-color: #A3361B; }
.fb__fehler { color: #8E2E16; font-size: .92rem; }
.formen { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.formen label {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; cursor: pointer;
  border: 1px solid rgb(28 35 43 / .35); border-radius: 2px; font: 600 1rem/1.1 var(--sc-font-display);
}
.formen input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.formen svg { width: 30px; height: 20px; flex: none; fill: none; stroke: var(--papier-tinte); stroke-width: 2; }
.formen label:has(input:checked) { border-color: var(--papier-tinte); background: var(--papier-tinte); color: var(--papier); }
.formen label:has(input:checked) svg { stroke: var(--sc-accent); }
.formen label:has(input:focus-visible) { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.skizze { width: 100%; height: auto; display: block; }
.fb__trocken { margin: 0; font-size: 1rem; color: var(--papier-leise); }
.fb__trocken b { color: var(--papier-tinte); font-weight: 700; }
.fb__zelle--fuss .knopf { justify-self: start; }
.fb__hinweis { margin: 0; font-size: .95rem; color: var(--papier-leise); }
.feld-blatt.ist-gesendet .fb__hinweis { color: var(--papier-tinte); font-weight: 500; }
.fuss { margin-top: 2rem; display: flex; justify-content: flex-end; font-size: .92rem; color: var(--sc-ink-soft); }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .zeichnung { left: 0; width: 100vw; top: 44svh; height: 46svh; }
  .tisch.ist-links .zeichnung { transform: none; }
  .spalte { top: 18px; width: calc(100% - 2 * var(--sc-gutter)); }
  .spalte .sc-body { margin-top: var(--sc-3); }
  .spalte-scrim { inset: 0 0 auto 0; width: auto; height: 50svh;
    background: linear-gradient(180deg, color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%, color-mix(in oklab, var(--sc-canvas) 82%, transparent) 72%, transparent 100%); }
  .held .knopf { margin-top: var(--sc-4); }
  .zaehler span { font-size: .72rem; }
  .zaehler b { font-size: 1.7rem; }
  .zaehler small { font-size: .78rem; }

  .legende { left: 10px; bottom: 10px; width: auto; max-width: calc(52vw - 14px); }
  .legende__kopf { border-bottom: 0; padding: 9px 10px; min-height: 44px; }
  .legende__titel { display: none; }
  .legende__jetzt { display: block; margin-left: 0; font-size: .98rem; }
  .legende.ist-offen { width: 15rem; max-width: calc(100vw - 20px); }

  .schriftfeld { right: 10px; bottom: 10px; grid-template-columns: auto; }
  .schriftfeld > * { padding: 6px 10px; }
  .schriftfeld__marke { font-size: 1rem; }
  .schriftfeld__marke span { font-size: .74rem; }
  .schriftfeld__zeile { display: none; }
  .schriftfeld__link { font-size: .95rem; min-height: 32px; display: flex; align-items: center; }

  .hand__raster { grid-template-columns: 1fr; }
  .hand__gross { grid-row: auto; }
  .hand__text { padding-top: 0; }
  .hand__klein { justify-self: start; width: min(100%, 20rem); }
  .daten div { grid-template-columns: 1fr; gap: 2px; }

  .schiene { padding-bottom: 80px; align-items: center; }
  .deckung { width: min(78vw, 19rem); padding: 10px 10px 12px; }
  .deckung__name { font-size: 1.35rem; }
  .deckung__satz { font-size: .92rem; }
  .schiene__kopf, .schiene__ende { width: min(78vw, 19rem); }

  .abend { min-height: 100svh; }
  .abend__bild { object-position: 62% 50%; }

  .aufmass { padding: 3rem 12px 5.5rem; }
  .aufmass__raster { grid-template-columns: 1fr; min-height: 0; }
  .aufmass__frei { display: none; }
  .feld-blatt { grid-template-columns: 1fr; }
  .fb__zelle { border-right: 0 !important; }
  .fb__zelle--skizze { grid-row: auto; }
  .fuss { justify-content: flex-start; }
}
@media (max-height: 700px) and (min-width: 861px) {
  .legende__liste a { min-height: 24px; padding-block: 2px; font-size: .95rem; }
}

/* ---------- Ruhig ---------- */
@media (prefers-reduced-motion: reduce) {
  .knopf--voll::before { animation: none; }
  .z-luft { animation: none; }
  .zeichnung { transition: none; }
  [data-sc-act="pan"] .schiene { position: relative; }
}
@media (max-width: 860px) { .nur-breit { display: none; } }
