/*
  lehmhub, Werkzeug "Foto zeigen" (01.12.2026). Ein Werkzeug: ruhig, gut lesbar, gleiche Schriften und Farben wie die
  Werk-Seiten (seiten.css) und der Versickerungsrechner. Eingaben als Linie auf dem Papier, ein Kasten nur fuer den
  Vorbehalt, der sichtbar sein muss. Desktop: Foto und Einwilligung links (5fr), Ergebnis rechts (7fr).
  Handy: untereinander, Foto zuerst. Der Lehmocker markiert nur eines: den besten Treffer.
*/
.fz-seite { position: relative; z-index: 2; }
.fz-kopf { padding-bottom: var(--s6); }
.fz-kopf h1 { max-width: 12ch; }
.fz-kurz { margin-top: var(--s4); max-width: var(--spalte); font-size: 17px; line-height: 1.5; color: var(--leise); }
.fz-kurz strong { font-weight: 500; color: var(--tusche); }

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

/* evaluation off (KI_AUS, cap, no keys): no upload, only the note and the way on without a photo */
.fz-werk.fz-aus { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.fz-form[hidden] { display: none; }

/* ------------------------------------------------------------ input */
.fz-form { min-width: 0; }
.fz-gruppe { border: 0; min-width: 0; padding: var(--s5) 0 var(--s6); border-top: 1px solid var(--hauch); }
.fz-gruppe:first-child { padding-top: var(--s2); border-top: 0; }
.fz-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); }
.fz-gruppe legend + * { clear: both; }
.fz-hilfe { font-size: 16px; line-height: 1.45; color: var(--leise); max-width: 30rem; margin: var(--s2) 0 var(--s3); }

.fz-waehlen { position: relative; display: inline-block; margin-top: var(--s2); }
.fz-waehlen input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fz-waehlen span { display: inline-block; font-family: var(--grotesk); font-size: 17px; color: var(--tusche); border-bottom: 1.5px solid var(--tusche); padding: 8px 0 4px; }
.fz-waehlen:hover span { border-bottom-width: 2.5px; padding-bottom: 3px; }
.fz-waehlen:focus-within span { outline: 1.5px solid var(--tusche); outline-offset: 4px; border-radius: 2px; }

.fz-vorschau { margin: var(--s4) 0 0; }
.fz-vorschau[hidden] { display: none; }
.fz-vorschau img { width: auto; max-width: 100%; max-height: 46vh; height: auto; border: 1px solid var(--hauch); }
.fz-vorschau figcaption { margin-top: var(--s2); font-size: 15px; font-style: italic; color: var(--leise); }

.fz-ja { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--s3); align-items: start; max-width: 32rem; cursor: pointer; }
.fz-ja input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--tusche); cursor: pointer; }
.fz-ja input:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 3px; }
.fz-ja span { font-size: 16.5px; line-height: 1.5; }
.fz-ja a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(30, 26, 22, 0.45); }
.fz-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fz-los { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: var(--s4); border-top: 1px solid var(--hauch); }
.fz-los button { font: inherit; font-family: var(--grotesk); font-size: 17px; color: var(--grund); background: var(--tusche); border: 0; border-radius: 2px; padding: 10px 18px 9px; cursor: pointer; }
.fz-los button:hover { background: #3A332C; }
.fz-los button:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 3px; }
.fz-los button[disabled] { cursor: progress; background: var(--leise); }
.fz-meldung { font-size: 16px; font-style: italic; color: #8A3B2A; min-height: 1.5em; }
.fz-meldung.leise { color: var(--leise); }

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

.fz-antwort { margin-top: var(--s5); max-width: 44rem; }
.fz-antwort:focus { outline: none; }
.fz-antwort:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 6px; border-radius: 2px; }
.fz-wort { font-family: var(--grotesk); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.2; }
.fz-text { margin-top: var(--s2); font-size: 18px; line-height: 1.5; }
.fz-text + .fz-text { margin-top: var(--s3); }
.fz-text a, .fz-weiter a, .fz-rueck a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(30, 26, 22, 0.45); }

.fz-lesart-titel { margin-top: var(--s5); font-family: var(--grotesk); font-size: 15px; color: var(--leise); }
.fz-lesart { margin-top: var(--s1); padding-left: var(--s4); border-left: 1px solid var(--hauch); font-style: italic; font-size: 18px; line-height: 1.5; }

.fz-treffer { list-style: none; margin-top: var(--s3); border-top: 1px solid var(--hauch); }
.fz-treffer li { border-bottom: 1px solid var(--hauch); }
.fz-treffer a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s4); align-items: baseline; padding: 12px 0 11px; text-decoration: none; }
.fz-treffer .bereich { grid-column: 1; font-family: var(--grotesk); font-size: 14.5px; color: var(--leise); }
.fz-treffer .titel { grid-column: 1; font-family: var(--grotesk); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; }
.fz-treffer .stufe { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: italic; font-size: 16px; color: var(--leise); white-space: nowrap; }
.fz-treffer li:first-child .titel { text-decoration: underline; text-decoration-color: var(--lehm); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.fz-treffer a:hover .titel { text-decoration: underline; text-decoration-color: var(--tusche); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.fz-treffer a:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 2px; border-radius: 2px; }

.fz-weiter { margin-top: var(--s4); font-size: 17px; line-height: 1.5; }

.fz-rueck { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--hauch); }
.fz-rueck[hidden] { display: none; }
.fz-rueck-frage { font-family: var(--grotesk); font-size: 17px; }
.fz-rueck-knoepfe { display: flex; gap: var(--s5); margin-top: var(--s2); }
.fz-rueck 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: 8px 0 3px; cursor: pointer; min-width: 44px; }
.fz-rueck button[aria-pressed="true"] { border-bottom-width: 3px; padding-bottom: 1.5px; }
.fz-rueck button:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 4px; border-radius: 2px; }
.fz-rueck-klein { margin-top: var(--s2); font-size: 15px; line-height: 1.45; color: var(--leise); max-width: 34rem; }
.fz-rueck-danke { margin-top: var(--s2); font-size: 16px; font-style: italic; }

.fz-wie { margin: 0 var(--rand); padding: var(--s7) 0 var(--s8); border-top: 1px solid var(--hauch); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 5vw; }
.fz-wie h2 { font-family: var(--grotesk); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.fz-wie ol { max-width: var(--spalte); padding-left: 1.3em; }
.fz-wie li { font-size: 17px; line-height: 1.55; }
.fz-wie li + li { margin-top: var(--s2); }
.fz-wie p { max-width: var(--spalte); margin-top: var(--s4); font-size: 16px; color: var(--leise); }
.fz-wie a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(30, 26, 22, 0.45); }

html:not(.js) .fz-werk { display: none; }
.fz-ohne-js { padding: 0 var(--rand) var(--s7); font-style: italic; color: var(--leise); }

/* ------------------------------------------------------------ phone: one column, photo first */
@media (max-width: 760px) {
  .fz-werk, .fz-werk.fz-aus { grid-template-columns: 1fr; }
  .fz-aus .fz-ergebnis { margin-top: 0; padding-top: var(--s2); border-top: 0; }
  .fz-ergebnis { margin-top: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--tusche); }
  .fz-vorbehalt { padding: var(--s3); }
  .fz-vorschau img { max-height: 52vh; }
  .fz-treffer .titel { font-size: 19px; }
  .fz-treffer a { grid-template-columns: 1fr; }
  .fz-treffer .stufe { grid-column: 1; grid-row: auto; font-size: 15px; }
  .fz-wie { grid-template-columns: 1fr; }
  .fz-wie ol { margin-top: var(--s3); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
