/*
  lehmhub, Versickerungsrechner (01.12.2026). Ein Werkzeug: ruhig, dicht, gut lesbar. Gleiche Schriften und Farben wie
  die Werk-Seiten (seiten.css), keine Kaesten ausser dem Vorbehalt, der sichtbar sein muss. Eingaben als Linie auf dem
  Papier wie die Filter im Finder. Desktop: Eingaben links (5fr), Ergebnis rechts (7fr). Handy: untereinander,
  Formular zuerst.
*/
.vs-seite { position: relative; z-index: 2; }
.vs-kopf { padding-bottom: var(--s6); }
.vs-kopf h1 { max-width: 14ch; }
.vs-kurz { margin-top: var(--s4); max-width: var(--spalte); font-size: 17px; line-height: 1.5; color: var(--leise); }
.vs-kurz strong { font-weight: 500; color: var(--tusche); }

.vs-werk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 5vw; padding: 0 var(--rand) var(--s8); align-items: start; }

/* ------------------------------------------------------------ the form */
.vs-form { min-width: 0; }
.vs-gruppe { border: 0; min-width: 0; padding: var(--s5) 0 var(--s6); border-top: 1px solid var(--hauch); }
.vs-gruppe:first-child { padding-top: var(--s2); border-top: 0; }
.vs-gruppe legend { float: left; width: 100%; font-family: var(--grotesk); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: var(--s3); }
.vs-gruppe legend + * { clear: both; }
.vs-hilfe { font-size: 16px; line-height: 1.45; color: var(--leise); max-width: 30rem; margin: var(--s2) 0 var(--s3); }
.vs-feld { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0 var(--s4); align-items: baseline; padding: 6px 0; }
.vs-feld[hidden], .vs-hilfe[hidden], .vs-masse[hidden] { display: none; }
.vs-feld label, .vs-label { font-family: var(--grotesk); font-size: 15px; color: var(--leise); line-height: 1.35; padding-top: 4px; }
.vs-feld-wahl { grid-template-columns: 1fr; }
.vs-feld-wahl .wahlen { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.vs-feld-wahl .wahl span small { font-family: var(--serif); font-style: italic; font-size: 14px; margin-left: 5px; color: var(--leise); }
.vs-eingabe { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.vs-eingabe input, .vs-eingabe select {
  font: inherit; font-size: 19px; color: var(--tusche); background: transparent; border: 0; border-bottom: 1.5px solid rgba(30, 26, 22, 0.55);
  border-radius: 0; padding: 4px 2px 3px; font-variant-numeric: tabular-nums; min-width: 0; max-width: 100%;
}
.vs-eingabe input { width: 7.5ch; }
.vs-eingabe input#vs-kf { width: 9ch; }
.vs-eingabe input#vs-plz { width: 9ch; letter-spacing: 0.02em; }
.vs-eingabe input#vs-gw { width: 9ch; }
.vs-eingabe select { -webkit-appearance: none; appearance: none; padding-right: 22px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--tusche) 50%), linear-gradient(135deg, var(--tusche) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.vs-eingabe input::placeholder { color: var(--leise); opacity: 1; font-style: italic; }   /* 6:1 on the paper (was 3,2:1) */
.vs-eingabe input:hover, .vs-eingabe select:hover { border-bottom-color: var(--tusche); }
.vs-eingabe input:focus-visible, .vs-eingabe select:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 3px; border-radius: 2px; }
.vs-eingabe input[aria-invalid="true"] { border-bottom-color: #8A3B2A; }
.vs-einheit { font-size: 16px; color: var(--leise); white-space: nowrap; }
.vs-fehler { display: block; font-size: 15px; font-style: italic; color: #8A3B2A; margin-top: 2px; }

.vs-ort { font-style: italic; font-size: 16.5px; line-height: 1.4; color: var(--leise); margin: var(--s2) 0 var(--s3); min-height: 1.4em; }
.vs-ort.an { color: var(--tusche); }
.vs-karte { margin: var(--s2) 0 0; }
.vs-karte-flaeche { position: relative; width: 100%; aspect-ratio: 1.95 / 1; }
.vs-karte figcaption { margin-top: var(--s1); font-style: italic; font-size: 15px; color: var(--leise); }
.vs-karte .strich-notiz.ort { font-size: 15px; white-space: nowrap; }
.vs-karte .strich-notiz.ort > span { display: table; padding: 0 3px; background: var(--grund); box-shadow: 0 0 5px 3px var(--grund); }
.vs-karte .strich-notiz.leise { white-space: nowrap; }

/* ------------------------------------------------------------ the result */
.vs-ergebnis { min-width: 0; padding-top: var(--s2); }
.vs-ergebnis > h2 { font-family: var(--grotesk); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.vs-vorbehalt { margin-top: var(--s3); padding: var(--s3) var(--s4) var(--s3); border-left: 2px solid var(--tusche); background: rgba(255, 255, 255, 0.28); max-width: 44rem; }
.vs-vorbehalt p { font-size: 16.5px; line-height: 1.5; }
.vs-vorbehalt strong { font-family: var(--grotesk); font-weight: 500; font-size: 16px; }

.vs-vergleich { margin-top: var(--s5); }
.vs-vergleich[hidden] { display: none; }
.vs-vergleich-titel { font-family: var(--grotesk); font-size: 15px; color: var(--leise); }
.vs-vergleich ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 4px; }
.vs-vergleich button { font: inherit; background: none; border: 0; padding: 6px 0 3px; cursor: pointer; color: var(--leise); text-align: left; border-bottom: 1.5px solid transparent; }
.vs-vergleich button .n { font-family: var(--grotesk); font-size: 15.5px; color: var(--tusche); margin-right: 6px; }
.vs-vergleich button .s { font-style: italic; font-size: 16px; }
.vs-vergleich button[aria-pressed="true"] { border-bottom-color: var(--tusche); }
.vs-vergleich button[aria-pressed="true"] .s { color: var(--tusche); }
.vs-vergleich button:hover .s { color: var(--tusche); }
.vs-vergleich button:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 4px; border-radius: 2px; }

.vs-status { margin-top: var(--s5); max-width: 44rem; }
.vs-status-wort { font-family: var(--grotesk); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.15; }
.vs-status-wort .vor { display: block; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--leise); margin-bottom: 4px; }
.vs-status-text { margin-top: var(--s2); font-size: 18px; line-height: 1.5; }

.vs-schnitt { margin: var(--s4) 0 0; }
.vs-schnitt-flaeche { position: relative; width: 100%; aspect-ratio: 1.62; max-height: 82vh; }

.vs-sickerversuch { margin-top: var(--s3); font-style: italic; font-size: 17px; padding-left: var(--s3); border-left: 2px solid var(--lehm); max-width: 40rem; }
.vs-sickerversuch[hidden] { display: none; }

.vs-zahlen { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0 var(--s5); margin-top: var(--s5); max-width: 44rem; border-top: 1px solid var(--hauch); }
.vs-zahlen[hidden] { display: none; }
.vs-zahlen dt, .vs-zahlen dd { padding: 9px 0 8px; border-bottom: 1px solid var(--hauch); }
.vs-zahlen dt { font-family: var(--grotesk); font-size: 15px; color: var(--leise); line-height: 1.35; padding-top: 11px; }
.vs-zahlen dd { font-size: 18px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.vs-zahlen dd small { display: block; font-size: 15px; color: var(--leise); font-style: italic; }

.vs-gruende, .vs-eingang { margin-top: var(--s5); max-width: 44rem; }
.vs-gruende[hidden], .vs-eingang[hidden], .vs-behoerde[hidden] { display: none; }
.vs-gruende h3, .vs-eingang h3, .vs-behoerde h3 { font-family: var(--grotesk); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.vs-gruende ul, .vs-behoerde ul { list-style: none; margin-top: var(--s2); }
.vs-gruende li, .vs-behoerde li { font-size: 17px; line-height: 1.5; padding-left: 1.1em; text-indent: -1.1em; }
.vs-gruende li + li, .vs-behoerde li + li { margin-top: 6px; }
.vs-gruende li::before, .vs-behoerde li::before { content: "·"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--leise); }
.vs-eingang p { font-size: 16px; line-height: 1.5; color: var(--leise); }
.vs-eingang p + p { margin-top: 6px; }

.vs-behoerde { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--hauch); max-width: 44rem; }
.vs-behoerde-text p { margin-top: var(--s2); font-size: 17px; line-height: 1.5; }
.vs-behoerde-text .titel { font-size: 18px; }
.vs-behoerde-text .recht { font-size: 15px; color: var(--leise); }
.vs-behoerde a, .vs-gruende a, .vs-eingang a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(30, 26, 22, 0.45); }

/* ------------------------------------------------------------ phone: one column, form first */
@media (max-width: 760px) {
  .vs-werk { grid-template-columns: 1fr; }
  .vs-feld { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 0 var(--s3); }
  .vs-feld-wahl { grid-template-columns: 1fr; }
  .vs-feld-wahl .wahlen { gap: 0 18px; }
  .vs-karte-flaeche { aspect-ratio: 1.8 / 1; }
  .vs-ergebnis { margin-top: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--tusche); }
  .vs-schnitt { margin-left: calc(-1 * var(--rand) + 6px); margin-right: calc(-1 * var(--rand) + 6px); }
  .vs-schnitt-flaeche { aspect-ratio: 1.18; max-height: none; }
  .vs-zahlen { grid-template-columns: 1fr; }
  .vs-zahlen dt { border-bottom: 0; padding-bottom: 0; }
  .vs-zahlen dd { padding-top: 2px; }
  .vs-vorbehalt { padding: var(--s3); }
}
@media (prefers-reduced-motion: reduce) { .vs-vergleich button { transition: none; } }

/* ------------------------------------------------------------ accessibility (01.12.2026) */
.vs-los { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: var(--s4); border-top: 1px solid var(--hauch); }
.vs-los button { font: inherit; font-family: var(--grotesk); font-size: 16px; color: var(--tusche); background: none; border: 0; border-bottom: 1.5px solid var(--tusche); padding: 6px 0 3px; cursor: pointer; }
.vs-los-text { font-size: 15px; font-style: italic; color: var(--leise); }
.vs-status:focus { outline: none; }
.vs-status:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 6px; border-radius: 2px; }
.vs-karte-flaeche:focus { outline: none; }
.vs-karte-flaeche:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 4px; border-radius: 2px; }
.vs-schnitt .strich-zieh:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 2px; }
/* phone: the drag words hang below the rail, so the focus ring is drawn around rail and words, not through them */
@media (max-width: 760px) {
  .vs-schnitt .strich-zieh:focus-visible { outline: none; }
  .vs-schnitt .strich-zieh:focus-visible::after { content: ""; position: absolute; left: calc(var(--x0, 0px) - 10px); right: calc(var(--x1, 0px) - 10px); top: -2px; bottom: -20px; border: 1.5px solid var(--tusche); border-radius: 2px; pointer-events: none; }
}
/* without JavaScript the still image stands in for the drawing, the empty drawing box and the map go */
.vs-schnitt noscript img { display: block; width: 100%; height: auto; }
.vs-schnitt noscript p { margin-top: var(--s3); font-style: italic; color: var(--leise); }
html:not(.js) .vs-schnitt-flaeche, html:not(.js) .vs-karte { display: none; }
html:not(.js) .vs-status, html:not(.js) .vs-los { display: none; }

/* ------------------------------------------------------------ paved areas and tracing (01.12.2026) */
.vs-zwischen { font-family: var(--grotesk); font-size: 15px; color: var(--tusche); margin: var(--s4) 0 var(--s1); padding-top: var(--s3); border-top: 1px solid var(--hauch); }
.vs-eingabe select#vs-belag { font-size: 17px; max-width: 100%; }
.vs-nz-weg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 var(--s2); }
.vs-nz-los, .vs-nz-knopf {
  font: inherit; font-family: var(--grotesk); font-size: 15.5px; color: var(--tusche); background: none; border: 0;
  border-bottom: 1.5px solid var(--tusche); border-radius: 0; padding: 6px 0 3px; cursor: pointer; line-height: 1.3;
}
.vs-nz-los { font-size: 16px; }
.vs-nz-weg-text { font-size: 15px; font-style: italic; color: var(--leise); }
.vs-nz-los:focus-visible, .vs-nz-knopf:focus-visible, .vs-nz-uebernehmen:focus-visible, .vs-nz-name:focus-visible,
.vs-nz select:focus-visible, .vs-nz input:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 3px; border-radius: 2px; }
.vs-nz-knopf:disabled { color: var(--leise); border-bottom-color: transparent; cursor: default; }
.vs-nz-knopf[aria-pressed="true"] { border-bottom-width: 3px; padding-bottom: 1.5px; font-weight: 500; }
.vs-nz-knopf[hidden] { display: none; }
.vs-nz-uebernommen { font-size: 15.5px; font-style: italic; color: var(--tusche); margin: 0 0 var(--s2); }
.vs-nz-uebernommen[hidden] { display: none; }

.vs-nz { padding: 0; margin: auto; border: 1px solid var(--tusche); border-radius: 0; background: var(--grund); color: var(--tusche);
  width: min(1320px, 94vw); height: min(880px, 92vh); max-width: none; max-height: none; overflow: hidden; }
.vs-nz::backdrop { background: rgba(30, 26, 22, 0.45); }
.vs-nz-rahmen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.vs-nz-kopf { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s3) var(--s4) var(--s2); border-bottom: 1px solid var(--hauch); }
.vs-nz-kopf h2 { font-family: var(--grotesk); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.vs-nz-flaeche { position: relative; min-height: 0; min-width: 0; overflow: hidden; }
.vs-nz-flaeche canvas { display: block; touch-action: none; cursor: crosshair; }
.vs-nz-flaeche canvas:focus { outline: none; }
.vs-nz-flaeche canvas:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: -4px; }
.vs-nz-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 14px; align-items: baseline; padding: 4px 12px 6px; background: var(--grund); border: 1px solid var(--hauch); }
.vs-nz-zoom[hidden] { display: none; }
.vs-nz-zoom .vs-nz-knopf { font-size: 17px; min-width: 1.4em; text-align: center; }
.vs-nz-zoom .vs-nz-knopf[data-nz="ganz"] { font-size: 15px; }
.vs-nz-seite { overflow-y: auto; padding: var(--s3) var(--s4) var(--s5); border-left: 1px solid var(--hauch); min-width: 0; }
.vs-nz-schritt { font-family: var(--grotesk); font-size: 16.5px; line-height: 1.4; min-height: 2.8em; }
.vs-nz-teil { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--hauch); }
.vs-nz-teil h3 { font-family: var(--grotesk); font-weight: 500; font-size: 16px; }
.vs-nz-klein { font-size: 15px; line-height: 1.45; color: var(--leise); margin-top: 6px; }
.vs-nz-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 8px; }
.vs-nz-bild { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 8px; }
.vs-nz-datei { position: relative; display: inline-flex; }
.vs-nz-datei input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vs-nz-datei span { font-family: var(--grotesk); font-size: 15.5px; border-bottom: 1.5px solid var(--tusche); padding: 6px 0 3px; cursor: pointer; }
.vs-nz-datei input:focus-visible + span { outline: 1.5px solid var(--tusche); outline-offset: 3px; border-radius: 2px; }
.vs-nz-laenge { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--grotesk); font-size: 15px; color: var(--leise); }
.vs-nz-laenge input { font: inherit; font-size: 18px; color: var(--tusche); width: 6ch; background: transparent; border: 0; border-bottom: 1.5px solid rgba(30, 26, 22, 0.55); border-radius: 0; padding: 3px 2px 2px; font-variant-numeric: tabular-nums; }
.vs-nz-laenge input[aria-invalid="true"] { border-bottom-color: #8A3B2A; }
.vs-nz-mass { font-style: italic; }
.vs-nz-arten { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 6px; }
.vs-nz-liste { list-style: none; margin-top: var(--s2); }
.vs-nz-liste li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; grid-template-areas: "n w l" "a a a"; gap: 2px 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--hauch); }
.vs-nz-liste li.an .vs-nz-name { font-weight: 600; }
.vs-nz-name { grid-area: n; font: inherit; font-family: var(--grotesk); font-size: 15.5px; color: var(--tusche); background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left; }
.vs-nz-wert { grid-area: w; font-size: 16px; font-variant-numeric: tabular-nums; }
.vs-nz-liste .vs-nz-knopf { grid-area: l; font-size: 14.5px; }
.vs-nz-liste select { grid-area: a; justify-self: start; font: inherit; font-family: var(--grotesk); font-size: 14.5px; color: var(--leise); background: transparent; border: 0; border-bottom: 1px solid var(--hauch); padding: 2px 18px 2px 0; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--leise) 50%), linear-gradient(135deg, var(--leise) 50%, transparent 50%);
  background-position: calc(100% - 8px) 55%, calc(100% - 4px) 55%; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.vs-nz-fuss { position: sticky; bottom: calc(-1 * var(--s5)); margin: var(--s4) calc(-1 * var(--s4)) calc(-1 * var(--s5)); padding: var(--s3) var(--s4) var(--s4); background: var(--grund); border-top: 1px solid var(--tusche); }
.vs-nz-fuss[hidden] { display: none; }
.vs-nz-summe { font-size: 16px; line-height: 1.45; }
.vs-nz-summe > span { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.vs-nz-summe .n { font-family: var(--grotesk); font-size: 15px; color: var(--leise); margin-right: 6px; }
.vs-nz-ende { margin-top: var(--s2); }
.vs-nz-uebernehmen { font: inherit; font-family: var(--grotesk); font-weight: 500; font-size: 16px; color: var(--grund); background: var(--tusche); border: 0; border-radius: 0; padding: 10px 16px; cursor: pointer; }
.vs-nz-uebernehmen:disabled { background: transparent; color: var(--leise); border: 1px dashed rgba(30, 26, 22, 0.35); cursor: default; }

/* phone: the whole screen, picture on top, the steps below it (the dialog scrolls, the picture does not) */
@media (max-width: 760px) {
  .vs-nz { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; margin: 0; overflow-y: auto; }
  .vs-nz-rahmen { grid-template-columns: 1fr; grid-template-rows: auto 62dvh auto; height: auto; }
  .vs-nz-kopf { position: sticky; top: 0; z-index: 2; background: var(--grund); padding: var(--s2) 16px; }
  .vs-nz-seite { border-left: 0; padding: var(--s3) 16px var(--s6); overflow: visible; }
  .vs-nz-zoom { right: 8px; bottom: 8px; }
  .vs-nz-fuss { bottom: 0; margin: var(--s4) -16px calc(-1 * var(--s6)); padding: var(--s3) 16px var(--s4); }
}
