/* Baustellen-Formulare – Gestaltung „Messgerät mit Durchschlag“.
   Regeln: Rot gehört der Unterschrift (Knopf „Weiter zur Unterschrift“, Unterschriftsfeld, „Unterschreiben und senden“,
   Stempel) – nirgends sonst, auch nicht bei Fehlern. Rot nie als Schrift oder dünne Linie auf Petrol.
   Ausgefüllt wird auf hellem Grund; dunkel ist nur der Kopf. Tippflächen mindestens 52 px, Eingabetext mindestens 17 px.
   Schriften liegen in static/schriften (SIL Open Font License), keine Fremdserver. */
@font-face { font-family: "Archivo"; src: url("schriften/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("schriften/jetbrainsmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("schriften/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --petrol: #0f3440; --tief: #092730; --beton: #e7e5df; --papier: #fcfaf4; --tinte: #0c1c21; --leise: #3b4d52;
  --hell: #f1f5f0; --matt: #a6c0c4; --nebenhell: #d5e1e0; --rot: #c4262e; --rot-tief: #8a1a20; --rosa: #f8d9df;
  --kuli: #2440c4; --linie: #9aa7a8; --kante: #8fa5a6;
  --satz: "Archivo", "Arial Narrow", Arial, sans-serif;
  --zahl: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --rand: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--satz); font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--tinte); background: var(--beton);
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1 { font-size: 28px; line-height: 1.1; font-weight: 850; letter-spacing: -.02em; }
h2 { font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 18px; line-height: 1.2; font-weight: 800; }
a { color: inherit; text-underline-offset: 3px; }
b, strong { font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
.app-kopf :focus-visible, .kopf :focus-visible, .leiste :focus-visible, .s-oben :focus-visible { outline-color: var(--hell); }
.zahl { font-family: var(--zahl); font-weight: 500; letter-spacing: -.03em; }
.klein { font-size: 14.5px; color: var(--leise); }
.mitte { text-align: center; }
.lade { padding: 48px var(--rand); text-align: center; color: var(--leise); font-weight: 700; }
.lade::before { content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 12px; border: 4px solid var(--linie); border-top-color: var(--petrol); border-radius: 50%; animation: dreh 0.9s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lade::before { animation: none; } }

/* --- Knöpfe ------------------------------------------------------------------------------------ */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px; border: 0; border-radius: 7px;
  background: var(--petrol); color: var(--hell); font-weight: 800; font-size: 17.5px; line-height: 1.15; text-decoration: none; text-align: center;
  box-shadow: 0 4px 0 var(--tief); margin-bottom: 4px; }
.knopf:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--tief); }
.knopf.grau { background: #fff; color: var(--tinte); border: 2px solid var(--tinte); box-shadow: none; margin-bottom: 0; }
.knopf.gefahr { background: #fff; color: var(--tinte); border: 3px solid var(--tinte); box-shadow: none; margin-bottom: 0; }
.knopf.hell { background: var(--hell); color: var(--tinte); box-shadow: 0 5px 0 var(--kante); }
.knopf.rot { background: var(--rot); color: #fff; box-shadow: 0 5px 0 var(--rot-tief); min-height: 62px; font-size: 20px; font-weight: 850; margin-bottom: 5px; }
.knopf.rot:active { box-shadow: 0 2px 0 var(--rot-tief); }
.knopf.voll { width: 100%; }
.knopf.gross { min-height: 62px; font-size: 20px; font-weight: 850; }
.knopf.klein { min-height: 44px; font-size: 15.5px; padding: 0 14px; }
.knopf[disabled], .knopf.wartet { opacity: .55; cursor: default; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.textknopf { background: none; border: 0; padding: 0 4px; min-height: 52px; font-weight: 700; font-size: 16.5px; text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.pfeil { width: 22px; height: 14px; flex: none; }

/* --- Kopf der App und der öffentlichen Seiten ------------------------------------------------- */
.kopf, .app-kopf { background: var(--petrol); color: var(--hell); }
.kopf-innen { max-width: 1200px; margin: 0 auto; padding: 0 var(--rand); min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; color: var(--hell); min-height: 52px; white-space: nowrap; }
.logo-zeichen { width: 28px; height: 28px; flex: none; border-radius: 4px; background: var(--hell) url("icon.svg") center / 100% no-repeat; }
.kopf nav { display: flex; align-items: center; gap: 4px 22px; font-size: 16px; font-weight: 600; }
.kopf nav a { text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.kopf nav .knopf.klein { background: none; border: 2px solid var(--hell); box-shadow: none; margin: 0; color: var(--hell); min-height: 44px; }
.app-nav { display: flex; gap: 4px; }
.app-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--nebenhell); }
.app-nav a.aktiv { background: var(--tief); color: var(--hell); }
.app-main { max-width: 760px; margin: 0 auto; padding: 18px var(--rand) 110px; display: grid; gap: 12px; align-content: start; }
.app-main.voll { max-width: none; padding: 0; display: block; }
.app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 2px solid var(--tinte);
  padding-bottom: env(safe-area-inset-bottom); }
.app-tabs a { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 60px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--leise); }
.app-tabs a svg { width: 24px; height: 24px; }
.app-tabs a.aktiv { color: var(--tinte); box-shadow: inset 0 4px 0 var(--petrol); }
@media (max-width: 719px) {
  .app-kopf .app-nav { display: none; }
  .app-tabs { display: grid; }
  body.schreibt .app-tabs, body.tastatur .app-tabs { display: none; }
  .kopf nav a:not(.knopf) { display: none; }
}
@media (max-width: 400px) { .logo { font-size: 15px; gap: 8px; } }
body.schreibt .app-kopf { display: none; }

/* --- Leiste und Statuszeile (Ausfüllen) ---------------------------------------------------- */
.leiste { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; min-height: 60px; padding-right: var(--rand); background: var(--petrol); color: var(--hell); }
.leiste .zurueck { height: 60px; width: 52px; display: grid; place-items: center; background: none; border: 0; color: var(--hell); }
.leiste .zurueck svg { width: 14px; height: 22px; }
.leiste b { font-size: 22px; font-weight: 850; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste h1 { font-size: 22px; min-width: 0; display: grid; margin: 0; }
.leiste a.zurueck { text-decoration: none; }
.leiste .nr { font-family: var(--zahl); font-size: 14px; font-weight: 500; background: var(--tief); border-radius: 4px; padding: 6px 9px; white-space: nowrap; }
.status { display: flex; justify-content: space-between; gap: 12px; padding: 9px var(--rand); background: var(--tief); color: var(--matt); font-size: 13.5px; font-weight: 600; }
.status .zahl { letter-spacing: 0; }
.schreiben { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.schreiben .inhalt { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 14px var(--rand) 28px; display: grid; gap: 10px; align-content: start; }

/* --- Felder -------------------------------------------------------------------------------------- */
.feld { display: grid; align-content: center; gap: 1px; background: #fff; border: 2px solid var(--tinte); border-radius: 7px; min-height: 64px; padding: 8px 14px 9px; position: relative; }
.feld > span, .kl { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); line-height: 1.3; }
.feld > span i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.feld input, .feld select, .feld textarea { border: 0; background: none; padding: 0; margin: 0; width: 100%; min-width: 0; font-size: 18px; font-weight: 700; letter-spacing: -.005em; outline: none; border-radius: 0;
  appearance: none; -webkit-appearance: none; min-height: 28px; }
.feld textarea { font-weight: 500; line-height: 1.38; resize: none; min-height: 104px; display: block; margin-top: 3px; }
.feld select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230c1c21' stroke-width='2.4'/%3E%3C/svg%3E") right 2px center / 14px no-repeat; padding-right: 24px; text-overflow: ellipsis; }
.feld input::placeholder, .feld textarea::placeholder { color: #6d7b7f; font-weight: 500; opacity: 1; }
.feld:focus-within { box-shadow: 0 0 0 3px var(--petrol); }
.feld.fehlt { border-width: 4px; padding: 6px 12px 7px; }
.feld > b { font-size: 18px; font-weight: 700; letter-spacing: -.005em; }
.feld > small { font-size: 14.5px; color: var(--leise); font-weight: 500; }
.feld.tipp { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; padding-right: 40px; }
.feld.tipp::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; border: solid var(--tinte); border-width: 0 2.5px 2.5px 0; transform: translateY(-70%) rotate(-45deg); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drei { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.gruppe { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.gruppe span { font-size: 16px; letter-spacing: 0; text-transform: none; font-weight: 600; white-space: nowrap; }
.gruppe span b { font-family: var(--zahl); font-size: 19px; font-weight: 500; letter-spacing: -.04em; }
.hilfe { font-size: 15px; line-height: 1.4; color: var(--leise); font-weight: 500; }
.hinweis { background: #fff; border: 2px solid var(--tinte); border-left-width: 8px; border-radius: 7px; padding: 10px 14px; font-size: 15.5px; line-height: 1.4; font-weight: 500; }
.hinweis b { display: block; }
.fehler { background: #fff; border: 4px solid var(--tinte); border-radius: 7px; padding: 12px 14px; font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.fehler::before { content: "Bitte prüfen: "; font-weight: 850; }
.haken { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; min-height: 52px; padding: 10px 0; cursor: pointer; font-size: 16.5px; line-height: 1.38; }
.haken input { appearance: none; -webkit-appearance: none; width: 32px; height: 32px; margin: 0; border: 2.5px solid var(--tinte); border-radius: 5px; background: #fff; display: grid; place-items: center; }
.haken input:checked { background: var(--tinte); }
.haken input:checked::after { content: ""; width: 9px; height: 17px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(42deg) translate(-1px, -2px); }
.haken.kasten { background: #fff; border: 2px solid var(--tinte); border-radius: 7px; padding: 12px 14px; }
.wahl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 2px solid var(--tinte); border-radius: 7px; overflow: hidden; background: #fff; }
.wahl.hoch { grid-auto-flow: row; }
.wahl label { position: relative; display: grid; place-items: center; min-height: 54px; padding: 6px 8px; text-align: center; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; border-left: 2px solid var(--tinte); }
.wahl.hoch label { border-left: 0; border-top: 2px solid var(--tinte); justify-items: start; text-align: left; padding: 8px 14px; font-size: 17px; }
.wahl label:first-child { border: 0; }
.wahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wahl label:has(input:checked) { background: var(--petrol); color: var(--hell); }
.wahl label:has(input:focus-visible) { outline: 3px solid var(--tinte); outline-offset: -5px; }
.wahl-titel { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); margin-bottom: -4px; }

/* --- Karten, Listen, Stepper ------------------------------------------------------------------- */
.karte { background: #fff; border: 2px solid var(--tinte); border-radius: 8px; padding: 12px 14px 14px; display: grid; gap: 10px; }
.karte > h2 + p { margin-top: -4px; }
.wer { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.wer i { width: 44px; height: 44px; border-radius: 50%; background: var(--petrol); color: var(--hell); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 16px; }
.wer b { display: block; font-size: 19px; font-weight: 800; line-height: 1.15; }
.wer span { font-size: 14.5px; color: var(--leise); font-weight: 500; }
.wer .textknopf { font-size: 15px; }
.stufen { display: grid; grid-template-columns: 76px 1fr 76px; gap: 8px; }
.stufen button { height: 58px; background: var(--petrol); color: var(--hell); border: 0; border-radius: 7px; box-shadow: 0 4px 0 var(--tief); display: grid; justify-items: center; align-content: center;
  font-size: 30px; font-weight: 700; line-height: .8; padding: 0 0 2px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stufen button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--tief); }
.stufen button small { font-family: var(--zahl); font-size: 12.5px; font-weight: 500; color: var(--matt); line-height: 1.2; }
.stufen output { display: flex; align-items: baseline; justify-content: center; gap: 8px; background: var(--beton); border-radius: 7px; height: 62px; padding-top: 9px; }
.stufen output b { font-family: var(--zahl); font-size: 38px; line-height: 1; font-weight: 500; letter-spacing: -.06em; }
.stufen output span { font-size: 16px; font-weight: 700; }
.zeiten { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.zeiten .feld { min-height: 60px; padding: 6px 10px 7px; }
.zeiten .feld input { font-family: var(--zahl); font-weight: 500; font-size: 18px; }
.zeit-summe { text-align: center; font-size: 16px; font-weight: 700; background: var(--beton); border-radius: 7px; padding: 10px; }
.zeit-summe b { font-family: var(--zahl); font-weight: 500; font-size: 24px; letter-spacing: -.05em; }
.mehr { min-height: 54px; width: 100%; background: none; border: 2px dashed var(--tinte); border-radius: 7px; font-size: 17px; font-weight: 800; color: var(--tinte); padding: 0 10px; }
.liste { background: #fff; border: 2px solid var(--tinte); border-radius: 8px; overflow: hidden; }
.liste > * { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 0; border-top: 1px solid var(--linie); font-size: 18px; font-weight: 600; width: 100%;
  background: none; text-align: left; text-decoration: none; color: inherit; line-height: 1.25; }
.liste > :first-child { border-top: 0; }
.liste > * > span:last-child:not(:first-child) { font-family: var(--zahl); font-weight: 500; font-size: 17px; white-space: nowrap; letter-spacing: -.03em; }
.liste .zweizeilig { display: grid; gap: 1px; min-width: 0; }
.liste .zweizeilig small { font-size: 14.5px; color: var(--leise); font-weight: 500; }
.liste .marke { font-family: var(--satz) !important; font-size: 12.5px !important; font-weight: 800 !important; letter-spacing: .06em !important; text-transform: uppercase; border: 2px solid var(--tinte); border-radius: 4px; padding: 3px 7px; }
.liste .marke.voll { background: var(--tinte); color: #fff; }
.marke { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--tinte); border-radius: 4px; padding: 3px 7px; white-space: nowrap; }
.leer { border: 2px dashed var(--linie); border-radius: 8px; padding: 22px 16px; text-align: center; color: var(--leise); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 52px; padding: 0 16px; background: #fff; border: 2px solid var(--tinte); border-radius: 26px; font-weight: 700; font-size: 16.5px; display: inline-flex; align-items: center; gap: 6px; }
.chip small { font-weight: 500; color: var(--leise); font-size: 14px; }
.chip.an { background: var(--petrol); color: var(--hell); }
.chip.an small { color: var(--matt); }
.fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fotos button { padding: 0; border: 2px solid var(--tinte); border-radius: 6px; overflow: hidden; aspect-ratio: 1; background: #fff; position: relative; }
.fotos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fotos .mehr { aspect-ratio: 1; min-height: 0; font-size: 15px; line-height: 1.2; border-style: dashed; }
.fotos .laedt { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--leise); }
.foto-gross { display: block; width: 100%; max-height: 46vh; object-fit: contain; background: var(--beton); border-radius: 6px; }

/* --- Fester Fuß ---------------------------------------------------------------------------------- */
.fuss-fest { position: sticky; bottom: 0; z-index: 10; background: #fff; border-top: 2px solid var(--tinte); padding: 9px var(--rand) calc(14px + env(safe-area-inset-bottom)); }
.fuss-fest > div { max-width: 688px; margin: 0 auto; display: grid; gap: 8px; }
.fuss-fest p { font-size: 14.5px; font-weight: 600; text-align: center; color: var(--leise); }
.fuss-fest .textknopf { justify-self: center; min-height: 44px; font-size: 15.5px; }
body.tastatur .fuss-fest { position: static; }

/* --- Dialog (Blatt von unten), Toast ----------------------------------------------------------- */
.dialog { position: fixed; inset: 0; z-index: 50; background: rgba(9, 39, 48, .62); display: grid; align-items: end; justify-items: center; }
.dialog > div { background: var(--beton); width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 14px 14px 0 0; border-top: 2px solid var(--tinte);
  padding: 18px var(--rand) calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; overscroll-behavior: contain; }
.dialog > div > h2 { padding-right: 60px; }
.dialog .zu { position: absolute; }
.dialog-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -8px 0 -4px; }
.dialog-kopf .textknopf { margin-right: -4px; }
.dialog form { display: grid; gap: 10px; }
@media (min-width: 720px) { .dialog { align-items: center; } .dialog > div { border-radius: 10px; border: 2px solid var(--tinte); padding: 22px; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; background: var(--tinte); color: #fff; padding: 13px 18px; border-radius: 7px; font-weight: 700; font-size: 16px;
  max-width: calc(100vw - 32px); width: max-content; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.toast.fehler { background: #fff; color: var(--tinte); border: 4px solid var(--tinte); }

/* --- Seiten der App --------------------------------------------------------------------------- */
.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.haupt-kachel { background: var(--petrol); color: var(--hell); border-radius: 8px; padding: 18px 18px 20px; display: grid; gap: 12px; }
.haupt-kachel h1 { font-size: 26px; }
.haupt-kachel p { color: var(--nebenhell); font-size: 16px; }
.zweier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kachel { background: #fff; border: 2px solid var(--tinte); border-radius: 7px; padding: 14px; display: grid; gap: 4px; text-decoration: none; min-height: 84px; align-content: center; text-align: left; font: inherit; color: inherit; }
.kachel b { font-size: 18px; line-height: 1.15; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.kachel span { font-size: 14.5px; color: var(--leise); }
.probe-stand { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter .breit { grid-column: 1 / -1; }
@media (min-width: 720px) { .filter { grid-template-columns: 2fr 1.3fr 1fr 1fr 1fr; } .filter .breit { grid-column: auto; } }
.angaben { display: grid; gap: 4px; font-size: 16.5px; }
.angaben div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; }
.angaben dt, .angaben div > span:first-child { color: var(--leise); font-weight: 600; }
.protokoll { font-size: 15px; line-height: 1.45; display: grid; gap: 6px; }
.protokoll code, .summe { font-family: var(--zahl); font-size: 12.5px; word-break: break-all; font-weight: 500; }
.stempel { display: inline-block; transform: rotate(-4deg); border: 3px solid var(--rot); color: var(--rot); padding: 7px 14px 6px; font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; text-align: center; border-radius: 3px; background: var(--papier); }
.stempel small { display: block; font-family: var(--zahl); font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.fertig { background: var(--papier); border: 2px solid var(--tinte); border-radius: 8px; padding: 22px 16px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.fertig .knopf-reihe { justify-content: center; }
.anmelde { max-width: 460px; width: 100%; margin: 8px auto 0; }
.anmelde h1 { font-size: 25px; }
.zweige { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.formular { display: grid; gap: 10px; }
.formular > label:not(.haken):not(.zeile) { display: grid; gap: 1px; background: #fff; border: 2px solid var(--tinte); border-radius: 7px; min-height: 64px; padding: 8px 14px 9px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.formular > label:not(.haken):not(.zeile) .klein { font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.formular > label:not(.haken):not(.zeile):focus-within { box-shadow: 0 0 0 3px var(--petrol); }
.formular > label input:not([type=checkbox]):not([type=radio]), .formular > label textarea, .formular > label select, .formular .zwei label input {
  border: 0; background: none; padding: 0; width: 100%; font-size: 18px; font-weight: 700; color: var(--tinte); outline: none; text-transform: none; letter-spacing: 0; min-height: 28px; }
.formular > label textarea { font-weight: 500; resize: vertical; }
.zeile { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; min-height: 52px; padding: 8px 0; font-size: 16px; line-height: 1.4; cursor: pointer; }
.zeile input[type=checkbox], .zeile input[type=radio] { appearance: none; -webkit-appearance: none; width: 32px; height: 32px; margin: 0; border: 2.5px solid var(--tinte); border-radius: 5px; background: #fff; display: grid; place-items: center; }
.zeile input[type=radio] { border-radius: 50%; }
.zeile input:checked { background: var(--tinte); box-shadow: inset 0 0 0 5px #fff; }
.logo-vorschau { max-height: 80px; max-width: 220px; border: 1px solid var(--linie); background: #fff; padding: 6px; border-radius: 4px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.preis-gross { font-family: var(--zahl); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -.04em; }

/* --- Kundenbildschirm (Unterschrift) ---------------------------------------------------------- */
body.kunde-an { background: var(--papier); }
.kunde { background: var(--papier); min-height: 100vh; min-height: 100dvh; font-size: 17px; line-height: 1.3; }
.k-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 var(--rand); min-height: 60px; border-bottom: 2px solid var(--tinte); max-width: 560px; margin: 0 auto; }
.k-kopf b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }
.k-kopf div span { font-size: 14.5px; color: var(--leise); font-weight: 500; }
.k-kopf .textknopf { font-size: 15px; }
.k-inhalt { padding: 16px var(--rand) 28px; display: grid; gap: 11px; max-width: 560px; margin: 0 auto; }
.k-vor { font-size: 20px; font-weight: 700; }
.k-zahlen { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 2px solid var(--tinte); border-radius: 7px; background: #fff; }
.k-zahlen div { padding: 8px 14px 10px; min-width: 0; }
.k-zahlen div + div { border-left: 2px solid var(--tinte); }
.k-zahlen b { display: block; font-family: var(--zahl); font-weight: 500; font-size: 44px; line-height: 1.05; letter-spacing: -.05em; white-space: nowrap; }
.k-zahlen.lang b { font-size: 30px; }
.k-zahlen span { font-size: 19px; font-weight: 800; line-height: 1.15; display: block; }
.k-zahlen.lang span { font-size: 15.5px; font-weight: 700; }
.k-wo { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.k-wo span { display: block; font-size: 17px; font-weight: 500; letter-spacing: 0; }
.k-link { margin-top: -6px; min-height: 44px; justify-self: start; font-size: 17px; }
.k-erkl { display: grid; gap: 8px; }
.k-klein { text-align: center; font-size: 15.5px; color: var(--leise); font-weight: 500; }
.uf { position: relative; width: 100%; }
.uf-flaeche { display: block; width: 100%; height: 282px; background: var(--rosa); border: 3px solid var(--rot); border-radius: 7px; touch-action: none; cursor: crosshair; }
.uf-linie { position: absolute; left: 52px; right: 16px; top: 224px; border-top: 2px solid var(--tinte); pointer-events: none; }
.uf-linie::before { content: ""; position: absolute; left: -36px; top: -14px; width: 26px; height: 26px; background:
  linear-gradient(45deg, transparent 43%, var(--rot) 43%, var(--rot) 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--rot) 43%, var(--rot) 57%, transparent 57%); }
.uf-hinweis { position: absolute; left: 14px; top: 12px; right: 96px; font-size: 18px; font-weight: 800; pointer-events: none; line-height: 1.2; }
.uf .uf-loeschen { position: absolute; right: 2px; top: 0; min-height: 48px; padding: 0 12px; background: none; border: 0; box-shadow: none; margin: 0; font-size: 15.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--tinte); }
.uf.klein-feld .uf-flaeche { height: 200px; }
.uf.klein-feld .uf-linie { top: 150px; }
@media (max-height: 560px) and (orientation: landscape) { .uf-flaeche { height: 200px; } .uf-linie { top: 150px; } }

/* --- Lesefassung (dieselben Blöcke wie im PDF) ------------------------------------------------ */
.ansicht { background: #fff; border: 2px solid var(--tinte); border-radius: 8px; padding: 16px 14px 18px; font-size: 16px; line-height: 1.42; display: grid; gap: 8px; }
.ansicht.papier { background: var(--papier); }
.a-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; border-top: 8px solid var(--tinte); padding-top: 10px; }
.a-kopf b { font-size: 24px; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.a-kopf span { font-family: var(--zahl); font-size: 15px; font-weight: 500; }
.a-betrieb { font-size: 14.5px; color: var(--leise); }
.a-betrieb b { color: var(--tinte); font-size: 16px; display: block; }
.a-angaben { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 4px; }
.a-angaben > div { border-top: 3px solid var(--tinte); padding-top: 5px; min-width: 0; }
.a-angaben b { display: block; font-size: 16.5px; line-height: 1.25; }
.a-angaben small { display: block; font-size: 14.5px; line-height: 1.35; }
.a-abschnitt { border-top: 3px solid var(--tinte); padding-top: 6px; margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.a-tab { overflow-x: auto; }
.ansicht table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.ansicht th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px 4px 0; border-bottom: 1.5px solid var(--tinte); vertical-align: bottom; }
.ansicht td { padding: 6px 8px 6px 0; border-bottom: 1px solid #8a8a8a; vertical-align: top; }
.ansicht td:first-child { font-weight: 800; }
.ansicht th.z, .ansicht td.z { text-align: right; padding-right: 0; padding-left: 8px; font-family: var(--zahl); font-weight: 500; white-space: nowrap; }
.ansicht th.z { font-family: var(--satz); font-weight: 800; }
.ansicht tfoot td { border-bottom: 0; border-top: 1.5px solid var(--tinte); font-weight: 800; }
.ansicht tfoot td.z { font-size: 18px; }
.a-text { white-space: pre-wrap; }
.a-satz { font-weight: 700; font-size: 15.5px; }
.a-klein { font-size: 14.5px; color: var(--leise); }
.a-vermerk { border: 3px solid var(--tinte); padding: 8px 10px; font-weight: 800; }
.a-kasten { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.a-kasten i { width: 20px; height: 20px; border: 2px solid var(--tinte); margin-top: 2px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 15px; line-height: 1; }
.a-kasten small { display: block; color: var(--leise); }
.a-paare { display: grid; gap: 2px; }
.a-paare div { display: grid; grid-template-columns: 8em 1fr; gap: 8px; }
.a-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a-fotos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #8a8a8a; background: var(--beton); }
.a-fotos figcaption { font-size: 13.5px; line-height: 1.3; margin-top: 3px; }
.a-unter { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.a-unter > div { border-top: 3px solid var(--tinte); padding-top: 5px; font-size: 14.5px; min-width: 0; }
.a-unter b { display: block; font-size: 16px; }
.a-unter .kl { display: block; }
.a-rahmen { border: 1.5px solid var(--tinte); padding: 12px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; margin-top: 10px; }
.a-rahmen h4 { margin: 0; text-align: center; font-size: 17px; font-weight: 800; }
.a-rahmen .zw { font-weight: 800; }
.a-rahmen .pk { padding-left: 16px; position: relative; }
.a-rahmen .pk::before { content: "–"; position: absolute; left: 0; }
.a-summe { font-size: 12.5px; color: var(--leise); margin-top: 6px; }

/* --- Öffentliche Seiten ------------------------------------------------------------------------- */
main.schmal { max-width: 760px; margin: 0 auto; padding: 28px var(--rand) 56px; display: grid; gap: 12px; align-content: start; }
main.schmal h1 { margin-bottom: 4px; }
main.schmal h2 { margin-top: 14px; }
main.schmal ul, main.schmal ol { padding-left: 1.3em; display: grid; gap: 6px; }
main.breit { display: block; }
.krumen { font-size: 14.5px; color: var(--leise); }
.fuss { background: var(--tief); color: var(--matt); padding: 22px var(--rand) calc(26px + env(safe-area-inset-bottom)); font-size: 14.5px; display: grid; gap: 8px; }
.fuss > * { max-width: 1072px; width: 100%; margin: 0 auto; }
.fuss b { color: var(--hell); }
.fuss a { display: inline-block; padding: 8px 0; }
.fuss .klein { color: var(--matt); font-size: 13.5px; }
.faq { max-width: 1200px; margin: 0 auto; padding: 56px var(--rand) 0; display: grid; gap: 10px; }
.faq h2 { font-size: 30px; font-weight: 850; letter-spacing: -.02em; margin-bottom: 8px; }
.faq details { background: #fff; border: 2px solid var(--tinte); border-radius: 7px; }
.faq summary { min-height: 56px; display: flex; align-items: center; padding: 8px 16px; font-weight: 800; font-size: 17.5px; cursor: pointer; }
.faq details p { padding: 0 16px 14px; }
.s-oben { background: var(--petrol); color: var(--hell); border-top: 1px solid rgba(241, 245, 240, .2); }
.s-innen { max-width: 1200px; margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
.s-held { display: grid; gap: 30px; padding-top: 34px; padding-bottom: 40px; align-items: center; }
.s-held h1 { font-size: clamp(31px, 8.6vw, 50px); line-height: 1.05; font-weight: 850; letter-spacing: -.025em; text-wrap: balance; }
.s-lauf { margin-top: 18px; font-size: clamp(17px, 2vw, 19px); line-height: 1.45; max-width: 29em; color: var(--nebenhell); }
.s-ohne { margin-top: 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 17px; font-weight: 700; }
.s-ohne li { display: flex; align-items: center; gap: 12px; }
.s-ohne li::before { content: ""; width: 7px; height: 14px; border: solid var(--hell); border-width: 0 3px 3px 0; transform: rotate(42deg); margin: -5px 0 0 4px; }
.s-tat { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.s-tat .knopf { min-height: 68px; padding: 0 28px; font-size: 20px; }
.s-tat p { font-size: 15.5px; line-height: 1.4; color: var(--nebenhell); }
.s-tat p b { display: block; font-size: 17px; color: var(--hell); font-weight: 700; }
.s-stapel { position: relative; height: 500px; width: 100%; max-width: 452px; justify-self: center; }
.s-durchschlag, .s-original { position: absolute; inset: 0 16px 0 4px; }
.s-durchschlag { background: #f5ccd5; transform: rotate(2.4deg) translate(15px, 11px); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.s-original { background: var(--papier); color: var(--petrol); transform: rotate(-1.3deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 34px rgba(0, 0, 0, .28); padding: 22px 24px; font-size: 10.5px; line-height: 1.3; }
.s-o-kopf { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2.5px solid var(--petrol); padding-bottom: 8px; }
.s-o-kopf b { font-size: 23px; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; line-height: 1; }
.s-o-kopf span { font-family: var(--zahl); font-size: 13px; }
.s-o-raster { display: grid; grid-template-columns: 1.7fr 1fr; border-left: 1px solid var(--petrol); }
.s-o-raster > div, .s-o-voll { border-right: 1px solid var(--petrol); border-bottom: 1px solid var(--petrol); padding: 5px 9px 3px; min-height: 48px; }
.s-o-voll { border-left: 1px solid var(--petrol); }
.s-o-raster span, .s-o-voll > span, .s-o-sign > span { display: block; letter-spacing: .09em; text-transform: uppercase; font-size: 8.5px; font-weight: 700; }
.s-hand { font-family: var(--hand); color: var(--kuli); font-size: 24px; line-height: 1.1; font-weight: 500; }
.s-o-voll.hoch .s-hand { line-height: 1.2; }
.s-o-sign { position: relative; height: 116px; border: 1px solid var(--petrol); border-top: 0; padding: 5px 9px; }
.s-o-sign .sig { position: absolute; left: 44px; top: 32px; color: var(--kuli); width: 150px; height: 56px; }
.s-o-sign .kreuz { position: absolute; left: 14px; top: 70px; color: var(--rot); width: 14px; height: 14px; }
.s-o-sign .linie { position: absolute; left: 38px; right: 150px; top: 92px; border-top: 1px solid var(--petrol); }
.s-stempel { position: absolute; right: 10px; top: 28px; transform: rotate(-7deg); border: 3px solid var(--rot); color: var(--rot); padding: 6px 11px 5px; font-weight: 800; font-size: 14px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; text-align: center; border-radius: 3px; }
.s-stempel small { display: block; font-family: var(--zahl); font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
.s-gewerke { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; padding-top: 15px; padding-bottom: 15px; border-top: 1px solid rgba(241, 245, 240, .2); color: var(--matt); font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.s-schritte { list-style: none; padding-top: 40px; display: grid; gap: 22px; }
.s-schritte li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 0 18px; align-items: start; }
.s-schritte li > b { font-family: var(--zahl); font-weight: 500; font-size: 58px; line-height: .95; letter-spacing: -.04em; grid-row: 1 / 3; }
.s-schritte h3 { font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; padding-top: 4px; }
.s-schritte p { font-size: 16px; line-height: 1.4; color: #2c3c41; margin-top: 5px; }
.s-teil { padding-top: 52px; }
.s-teil-kopf { display: grid; gap: 10px; margin-bottom: 22px; }
.s-teil h2 { font-size: clamp(29px, 6vw, 38px); line-height: 1.05; font-weight: 850; letter-spacing: -.02em; }
.s-teil-kopf p { font-size: 16px; max-width: 30em; color: #39494d; }
.s-kacheln { display: grid; gap: 12px; }
.s-kachel { background: #fff; border: 2px solid var(--tinte); border-radius: 7px; padding: 16px 18px; display: grid; gap: 6px; align-content: start; grid-template-rows: auto auto 1fr auto; min-height: 150px; text-decoration: none; }
.s-kachel .nr { font-family: var(--zahl); font-size: 13px; color: #4a5b5f; }
.s-kachel h3 { font-size: 22px; line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
.s-kachel h3 small { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--leise); margin-top: 4px; }
.s-kachel p { font-size: 15.5px; line-height: 1.4; color: #2c3c41; }
.s-kachel .weiter { align-self: end; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; border-top: 2px solid var(--tinte); padding-top: 10px; margin-top: 8px; min-height: 44px; }
.s-kachel.haupt { background: var(--petrol); color: var(--hell); border-color: var(--petrol); padding: 22px 24px 24px; }
.s-kachel.haupt .nr { color: var(--matt); }
.s-kachel.haupt h3 { font-size: 34px; letter-spacing: -.02em; }
.s-kachel.haupt h3 small { color: var(--matt); }
.s-kachel.haupt p { color: var(--nebenhell); font-size: 16.5px; margin-top: 6px; }
.s-kachel.haupt .knopf { justify-content: space-between; min-height: 56px; margin-top: 14px; box-shadow: 0 4px 0 var(--kante); }
.s-preissatz { font-size: clamp(18px, 3.6vw, 22px); line-height: 1.3; font-weight: 800; letter-spacing: -.01em; margin: -4px 0 20px; }
.s-preise { display: grid; gap: 12px; }
.s-preise > div { background: #fff; border: 2px solid var(--tinte); border-radius: 7px; padding: 18px 20px 20px; }
.s-preis { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; padding-bottom: 10px; border-bottom: 2px solid var(--tinte); }
.s-preis b { font-family: var(--zahl); font-weight: 500; font-size: 54px; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.s-preis span { font-size: 13.5px; line-height: 1.3; font-weight: 600; color: #33444a; }
.s-preise ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 16px; line-height: 1.3; font-weight: 500; }
.s-preise li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.s-preise li i { width: 20px; height: 20px; border-radius: 3px; background: var(--tinte); position: relative; }
.s-preise li i::after { content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(42deg); }
.s-preise li.nein { color: #5a686c; }
.s-preise li.nein i { background: none; border: 2px solid #9aa5a6; }
.s-preise li.nein i::after { left: 3px; top: 7px; width: 10px; height: 0; border-width: 2px 0 0; border-color: #9aa5a6; transform: none; }
.s-preise .knopf { margin-top: 16px; }
.s-ende { padding-top: 22px; padding-bottom: 60px; font-size: 14.5px; color: var(--leise); }
@media (min-width: 620px) {
  :root { --rand: 24px; }
  .s-schritte { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .s-schritte li { padding: 2px 22px 4px; border-left: 2px solid var(--tinte); }
  .s-schritte li:first-child { padding-left: 0; border-left: 0; }
  .s-kacheln { grid-template-columns: 1fr 1fr; }
  .s-preise { grid-template-columns: 1fr 1fr; }
  .s-teil-kopf { grid-template-columns: 1fr auto; align-items: end; }
  .s-teil-kopf p { text-align: right; }
}
@media (max-width: 619px) { .s-schritte li > b { font-size: 46px; } .s-stapel { transform: scale(.88); transform-origin: top center; margin-bottom: -60px; } }
@media (max-width: 380px) { .s-stapel { transform: scale(.76); margin-bottom: -120px; } }
@media (min-width: 1000px) {
  :root { --rand: 64px; }
  .kopf-innen { min-height: 84px; }
  .kopf .logo { font-size: 21px; gap: 12px; }
  .s-held { grid-template-columns: minmax(0, 1fr) 452px; gap: 36px; padding-top: 52px; padding-bottom: 58px; }
  .s-kacheln { grid-template-columns: 1.15fr 1fr; }
  .app-main, .schreiben .inhalt { --rand: 16px; }
}
.app-kopf .kopf-innen { min-height: 60px; }
.app-kopf .logo { font-size: 17px; }
body:not(.seite) { --rand: 16px; }
@media print { .app-kopf, .app-tabs, .fuss-fest, .knopf, .textknopf { display: none !important; } body { background: #fff; } }

/* --- Nachträge nach dem Klicktest -------------------------------------------------------------- */
/* Der Kunde hat das Handy in der Hand: keine Navigation der App, nur sein Dokument. */
body.kunde-an .app-kopf, body.kunde-an .app-tabs { display: none; }
.s-o-kopf span { white-space: nowrap; }
@media (max-width: 460px) {
  .kopf .logo, .app-kopf .logo { font-size: 14.5px; letter-spacing: 0; min-width: 0; }
  .kopf-innen { gap: 8px; }
  .kopf nav .knopf.klein { padding: 0 11px; font-size: 15px; }
  .s-o-kopf b { font-size: 19px; }
  .s-o-kopf span { font-size: 11.5px; }
}
@media (max-width: 380px) { .k-zahlen span { font-size: 16px; } }
/* lange Mailadressen und zusammengesetzte Wörter sprengen keine Karte */
.karte, .fertig, .haken span, .liste small { overflow-wrap: anywhere; }
.fertig h1 .zahl { white-space: nowrap; }
.fertig > * { min-width: 0; max-width: 100%; }
.a-angaben b, .a-angaben small, .a-unter > div { overflow-wrap: break-word; hyphens: auto; }
.ansicht td.z + td, .ansicht th.z + th { padding-left: 7px; }
@media (max-width: 380px) {
  .kopf .logo { font-size: 12.5px; gap: 7px; }
  .kopf .logo .logo-zeichen { width: 24px; height: 24px; }
  .kopf nav .knopf.klein { padding: 0 9px; font-size: 14.5px; }
}
.fertig { grid-template-columns: minmax(0, 1fr); }
.ansicht { overflow-wrap: anywhere; min-width: 0; }
.ansicht > *, .a-rahmen > * { min-width: 0; }

/* --- Gratis-Seiten: Ratgeber, Vergleich, Rechner ------------------------------------------------ */
main.schmal .faq { padding: 26px 0 0; }
main.schmal .faq h2 { font-size: 24px; margin-top: 0; }
.s-ratgeber { display: grid; gap: 12px; }
.s-rechner { background: var(--petrol); color: var(--hell); border-radius: 7px; padding: 20px 22px; display: grid; gap: 8px; align-content: start; text-decoration: none; }
.s-rechner b { font-size: 24px; line-height: 1.12; font-weight: 850; letter-spacing: -.015em; }
.s-rechner > span { font-size: 15.5px; line-height: 1.4; color: var(--nebenhell); }
.s-rechner .weiter { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--hell); border-top: 2px solid rgba(241, 245, 240, .45); padding-top: 10px; margin-top: 8px; min-height: 44px; }
.s-ratgeber .liste, .r-liste { display: grid; gap: 8px; align-content: start; background: none; border: 0; border-radius: 0; overflow: visible; }
.s-ratgeber .liste a, .r-liste a { background: #fff; border: 2px solid var(--tinte); border-radius: 7px; min-height: 58px; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-weight: 800; font-size: 16.5px; line-height: 1.25; text-decoration: none; width: auto; }
.s-ratgeber .liste a > span, .r-liste a > span { font-family: var(--satz) !important; font-weight: 800 !important; font-size: 16.5px !important; letter-spacing: 0 !important; white-space: normal !important; }
.s-ratgeber .liste .pfeil, .s-rechner .pfeil { width: 22px; flex: none; }
.r-liste a::after { content: "›"; font-size: 24px; line-height: 1; }
@media (min-width: 760px) { .s-ratgeber { grid-template-columns: 1fr 1.2fr; } }

.ratgeber { display: grid; gap: 12px; }
.ratgeber p, .ratgeber li { font-size: 17px; line-height: 1.5; }
.r-stand { font-size: 14.5px !important; color: var(--leise); }
.r-kern { background: #fff; border: 2px solid var(--tinte); border-left-width: 8px; border-radius: 7px; padding: 12px 16px; }
.r-weiter { background: var(--petrol); color: var(--hell); border-radius: 7px; padding: 18px 20px 20px; display: grid; gap: 12px; margin-top: 16px; justify-items: start; }
.r-weiter p { font-weight: 700; }
.r-weiter .knopf { background: var(--hell); color: var(--tinte); box-shadow: 0 4px 0 var(--kante); }
.r-weiter .klein { color: var(--matt); font-weight: 500; font-size: 14.5px; }
.quellen { margin-top: 18px; font-size: 14.5px; color: var(--leise); }
.quellen h2 { font-size: 16px; margin: 0 0 6px; }
.quellen ol { gap: 3px !important; }
.quellen a { overflow-wrap: anywhere; }

main.breit > .krumen, main.breit > h1, main.breit > h2, main.breit > p, .v-rahmen { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: var(--rand); padding-right: var(--rand); }
main.breit > .krumen { padding-top: 28px; }
main.breit > h1 { margin-top: 10px; margin-bottom: 10px; }
main.breit > h2 { margin-top: 30px; margin-bottom: 8px; }
main.breit > p { max-width: calc(46em + 2 * var(--rand)); margin-left: max(0px, calc((100% - 1200px) / 2)); }
.v-rahmen { overflow-x: auto; margin-top: 18px; -webkit-overflow-scrolling: touch; }
.vergleich { border-collapse: collapse; width: 100%; min-width: 860px; background: #fff; border: 2px solid var(--tinte); font-size: 15px; line-height: 1.35; }
.vergleich caption { caption-side: bottom; text-align: left; padding: 8px 0 0; font-size: 13.5px; color: var(--leise); }
.vergleich th, .vergleich td { padding: 9px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.vergleich thead th { background: var(--petrol); color: var(--hell); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; border-bottom: 0; }
.vergleich tbody th { font-weight: 800; min-width: 150px; }
.vergleich td.leer { color: #5f6d70; font-size: 13.5px; }
.vergleich tr.wir th, .vergleich tr.wir td { background: var(--hell); border-bottom: 2px solid var(--tinte); font-weight: 600; }

.r-form { display: grid; gap: 12px; margin-top: 6px; }
.r-gruppe { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; min-width: 0; }
.r-gruppe legend { font-size: 19px; font-weight: 850; letter-spacing: -.01em; padding: 0; margin-bottom: 8px; }
.r-feld { display: grid; gap: 4px; }
.r-feld .feld input { font-family: var(--zahl); font-weight: 500; }
.r-feld .quelle { font-size: 13.5px; line-height: 1.35; color: var(--leise); padding: 0 2px 4px; }
.r-feld > select { min-height: 52px; border: 2px solid var(--tinte); border-radius: 7px; background-color: #fff; padding: 0 10px; font-size: 17px; font-weight: 600; width: 100%; }
.r-gruppe .haken { margin-bottom: 4px; }
@media (min-width: 620px) { .r-gruppe { grid-template-columns: 1fr 1fr; column-gap: 12px; } .r-gruppe legend, .r-gruppe .haken { grid-column: 1 / -1; } }
.r-ergebnis { background: #fff; border: 2px solid var(--tinte); border-radius: 7px; padding: 16px 16px 12px; display: grid; gap: 10px; margin-top: 10px; }
.r-ergebnis.alt { opacity: .45; }
.r-ergebnis h2 { margin-top: 6px !important; font-size: 18px; }
.r-satz { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--tinte); }
.r-satz > div { display: grid; gap: 2px; }
.r-satz b { font-size: clamp(27px, 8vw, 44px); line-height: 1.05; white-space: nowrap; }
.r-satz > div + div b { font-size: clamp(20px, 5.6vw, 30px); align-self: end; }
.weg { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.3; }
.weg td { padding: 6px 4px; border-bottom: 1px solid var(--nebenhell); vertical-align: top; }
.weg td.zahl { text-align: right; white-space: nowrap; font-size: 14.5px; }
.weg td:last-child { color: var(--leise); white-space: nowrap; width: 1%; }
.weg tr.zw td { font-weight: 800; border-bottom: 2px solid var(--tinte); }

/* lange zusammengesetzte Wörter (Stundenverrechnungssatz, Behinderungsanzeige) trennen statt seitlich herauszuragen */
main.schmal h1, main.breit > h1, .r-gruppe legend, .ratgeber h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* Rasterkinder dürfen schmaler werden als ihr Inhalt (sonst schiebt die Rechenweg-Tabelle die ganze Spalte auf) */
main.schmal > *, .r-ergebnis > *, .r-form > * { min-width: 0; }
.weg td:first-child { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.liste .zweizeilig b { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.liste .marke { white-space: normal !important; overflow-wrap: normal !important; word-break: keep-all !important; text-align: center; flex: none; }
.s-ratgeber { grid-template-columns: minmax(0, 1fr); }
.s-ratgeber > *, .s-kacheln > * { min-width: 0; }
.s-rechner b, .s-kachel h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 760px) { .s-ratgeber { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
@media (max-width: 420px) { .liste .marke { font-size: 11px !important; letter-spacing: .02em !important; padding: 2px 5px; } }
