/* Stile der Werkzeugseiten, Lösungsseiten, der Werkzeugbibliothek und der Schnellrechner – aus marke.css
   herausgelöst (P7.12), damit die Startseite und die Formularseiten sie nicht laden. Eingebunden von
   vorlagen/werkzeugseite.html, werkzeuge.html und loesung.html, nach marke.css. */
/* ==========================================================================
   Werkzeugseiten (/baustelleneinrichtungsplan, /baugrube-berechnen, /flucht-und-rettungsplan)
   Je Werkzeug eine Seite für Besucher und Suchmaschinen – Vorlage werkzeugseite.html. Die Farbe des
   Werkzeugs kommt aus der Ebene (.ebene--bauablauf …).
   ========================================================================== */


.ws-kopf { background: #fff; border-bottom: 1px solid var(--linie); border-top: 4px solid var(--ebene, var(--plan)); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.ws-kopf__innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: center; }
.ws-kopf__titel { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.ws-kopf__satz { margin: 1.1rem 0 0; font-size: 1.1rem; line-height: 1.6; color: #2D3F55; max-width: 36rem; }
.ws-kopf__knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; }
.ws-kopf__klein { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--neben); }
.ws-kopf__bild, .ws-bild { margin: 0; }
.ws-kopf__bild img, .ws-bild img { width: 100%; height: auto; border: 1px solid var(--linie); border-radius: var(--rundung); box-shadow: var(--schatten); background: #fff; }

.ws-abschnitt { background: var(--grund); }
.ws-abschnitt--grund { background: #fff; border-block: 1px solid var(--linie); }
.ws-merkmale { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-top: 2rem; }
.ws-merkmale article { padding: 1.2rem 1.3rem 1.3rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung); box-shadow: var(--schatten-blatt); }
.ws-merkmale h3 { font-size: 1.12rem; margin: 0 0 0.45rem; }
.ws-merkmale p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: #2D3F55; }
.ws-zwei { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: center; }
.ws-schritte { list-style: none; counter-reset: schritt; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.ws-schritte li { counter-increment: schritt; position: relative; padding-left: 3rem; line-height: 1.6; color: #2D3F55; }
.ws-schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--nacht); color: #fff; font-family: var(--anzeige); font-weight: 700; font-size: 0.95rem;
}
.ws-schritte b { color: var(--tinte); }
.ws-weitere { border-top: 1px solid var(--linie); }
.ws-karten { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.ws-karte { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 0.7rem; align-items: baseline; height: 100%; padding: 1.1rem 1.2rem 1.2rem; background: #fff; border: 1px solid var(--linie); border-top: 3px solid var(--ebene); border-radius: var(--rundung); box-shadow: var(--schatten-blatt); color: var(--tinte); transition: box-shadow var(--dauer), border-color var(--dauer); }
.ws-karte:hover { box-shadow: var(--schatten); color: var(--tinte); text-decoration: none; }
.ws-karte b { font-family: var(--anzeige); font-size: 1.1rem; }
.ws-karte span:last-child { grid-column: 2; font-size: 0.95rem; line-height: 1.55; color: var(--neben); }
.ws-karte[aria-current="page"] { background: var(--ebene-hell); }
@media (max-width: 56rem) {
  .ws-kopf__innen, .ws-zwei { grid-template-columns: minmax(0, 1fr); }
  .ws-kopf__knoepfe .knopf { flex: 1 1 auto; }
}
/* Abschnitte, die alle Werkzeugseiten gemeinsam haben: Eingaben und Ergebnisse, Rechenweg, Beispiel, Grenzen */
.ws-bildtext { margin-top: 0.5rem; font-size: 0.85rem; color: var(--neben); }
.ws-drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 1.75rem; }
.ws-zwei--ohne-bild { grid-template-columns: minmax(0, 1fr); }
.ws-zwei--ohne-bild .ws-bild { display: none; }
.ws-zwei--ohne-bild .ws-schritte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 3rem; max-width: none; }
.ws-drei h3 { margin: 0 0 0.7rem; font-family: var(--anzeige, inherit); font-size: 1.15rem; }
.ws-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.ws-liste li { position: relative; padding-left: 1.25rem; line-height: 1.5; }
.ws-liste li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.45rem; height: 0.45rem; background: var(--plan); transform: rotate(45deg); }
.ws-liste--formel li { font-size: 0.97rem; }
.ws-liste--grenzen li::before { background: none; border: 2px solid var(--neben); width: 0.4rem; height: 0.4rem; }
.ws-beleg { margin: 1rem 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--neben); max-width: 52rem; }
.ws-beispiel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem 2.5rem; align-items: start; margin-top: 1.5rem; }
.ws-beispiel__eingaben { margin: 0; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung); display: grid; gap: 0.7rem; }
.ws-beispiel__eingaben dt { font-size: 0.85rem; color: var(--neben); }
.ws-beispiel__eingaben dd { margin: 0; font-weight: 700; }
.ws-beispiel .tabelle-rahmen { overflow-x: auto; background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung); }
.ws-beispiel__tabelle { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.ws-beispiel__tabelle th, .ws-beispiel__tabelle td { padding: 0.65rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.ws-beispiel__tabelle thead th { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neben); background: var(--nebel); }
.ws-beispiel__tabelle tbody tr:last-child > * { border-bottom: 0; }
.ws-beispiel__tabelle tbody th { font-weight: 400; font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--tinte); background: none; }
.ws-beispiel__wert { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ws-beispiel__tabelle td:last-child { color: var(--neben); font-size: 0.92rem; }
/* --- Lösungsseiten (P7.3) --------------------------------------------------------------------------------- */
.loe-fuer { margin: 0.9rem 0 0; font-size: 0.98rem; color: #2D3F55; }
.loe-schritte { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2.5rem; }
.loe-schritt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 3rem; align-items: center; }
.loe-schritt:nth-child(even) .loe-schritt__text { order: 2; }
.loe-schritt--ohne-bild { grid-template-columns: minmax(0, 1fr); }
.loe-schritt--ohne-bild .loe-schritt__text { max-width: 46rem; }
.loe-schritt__text { position: relative; padding-left: 3.4rem; }
.loe-schritt__nr { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--nacht, #172C46); color: #fff; font-family: var(--anzeige, inherit); font-weight: 700; }
.loe-schritt__text h3 { margin: 0.25rem 0 0.5rem; font-family: var(--anzeige, inherit); font-size: 1.3rem; line-height: 1.2; }
.loe-schritt__text p { margin: 0; line-height: 1.6; color: #2D3F55; }
.loe-schritt__bild { margin: 0; }
.loe-schritt__bild img { display: block; width: 100%; height: auto; max-height: 26rem; object-fit: cover; object-position: top; border: 1px solid var(--linie); border-radius: var(--rundung); box-shadow: var(--schatten); background: #fff; }
.loe-preise { margin: 1.5rem 0 0; font-size: 0.98rem; }
@media (max-width: 56rem) { .loe-schritt { grid-template-columns: minmax(0, 1fr); } .loe-schritt:nth-child(even) .loe-schritt__text { order: 0; } }

/* Schnellrechner (P7.6): Formular links, Ergebnis rechts */
.sr { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 2.5rem; align-items: start; margin-top: 1.5rem; }
.sr-form { margin: 0; padding: 1.2rem 1.25rem 1.3rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung); max-width: none; }
.sr-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1rem; }
.sr-feld { display: grid; gap: 0.3rem; margin: 0; font-size: 0.92rem; }
.sr-feld span { color: var(--neben); }
.sr-feld input, .sr-feld select { width: 100%; min-height: 2.75rem; padding: 0 0.7rem; border: 1px solid var(--feld-rand, #9AA8B8); border-radius: var(--rundung-klein); background: #fff; color: var(--tinte); font: inherit; font-size: 1rem; }
.sr-feld input:focus-visible, .sr-feld select:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.sr-feld--fehler input { border-color: var(--fehler); box-shadow: 0 0 0 1px var(--fehler); }
.sr-knoepfe { margin: 1rem 0 0; }
.sr-knoepfe .knopf { min-height: 2.75rem; }
.sr-fehler { margin: 0 0 0.9rem; padding: 0.7rem 0.9rem; border-radius: var(--rundung-klein); background: var(--fehler-hell, #FBEAEA); color: #8F2A2A; font-weight: 700; }
.sr-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 0.7rem; margin: 0; }
.sr-zahl { margin: 0; padding: 0.85rem 1rem; background: #fff; border: 1px solid var(--linie); border-top: 3px solid var(--plan); border-radius: var(--rundung-klein); }
.sr-zahl dt { font-size: 0.85rem; color: var(--neben); }
.sr-zahl dd { margin: 0.2rem 0 0; font-family: var(--anzeige, inherit); font-size: 1.35rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sr-zahl dd small { display: block; margin-top: 0.25rem; font-family: var(--schrift, inherit); font-size: 0.82rem; font-weight: 400; line-height: 1.4; color: var(--neben); }
.sr-pruefung { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; line-height: 1.5; }
.sr-punkt { padding-left: 0.8rem; border-left: 3px solid var(--gut, #12804D); }
.sr-punkt--hinweis { border-left-color: var(--plan); }
.sr-punkt--warnung { border-left-color: var(--warn, #B7791F); }
.sr-punkt--fehler { border-left-color: var(--fehler); }
.sr-punkt__stufe { font-size: 0.85rem; color: var(--neben); }
.sr-hinweis { margin: 1rem 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--neben); }
.sr-weiter { margin: 1rem 0 0; }
.sr-ausgabe--alt { opacity: 0.45; }
.sr--laeuft .sr-ausgabe { opacity: 0.7; transition: opacity 0.2s; }
@media (max-width: 56rem) { .sr { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 26rem) { .sr-felder { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .sr--laeuft .sr-ausgabe { transition: none; } }
.ws-grenzen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem 2.5rem; align-items: start; }
@media (max-width: 56rem) { .ws-drei, .ws-beispiel, .ws-grenzen, .ws-zwei--ohne-bild .ws-schritte { grid-template-columns: minmax(0, 1fr); } }
@media print { .ws-kopf__knoepfe, .ws-weitere { display: none; } }

/* ==========================================================================
   Werkzeugbibliothek (/de/werkzeuge, /en/tools) – Karten aus dem Werkzeugregister, nach Kategorien
   ========================================================================== */
.wb-kopf { padding: 3rem 0 1.6rem; }
.wb-kopf__titel { margin: 0 0 0.6rem; font-family: var(--anzeige, inherit); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; }
.wb-kopf__satz { max-width: 46rem; margin: 0 0 1.4rem; font-size: 1.08rem; color: var(--neben); }
.wb-sprung { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wb-sprung a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem; border: 1px solid var(--feld-rand); border-radius: 999px; background: #fff; color: var(--tinte); text-decoration: none; font-size: 0.92rem; }
.wb-sprung a:hover { border-color: var(--plan); color: var(--plan-tief); }
.wb-sprung__zahl { min-width: 1.4rem; padding: 0 0.35rem; border-radius: 999px; background: var(--grund); font-size: 0.8rem; font-weight: 700; text-align: center; }
.wb-gruppe { padding: 1.4rem 0; scroll-margin-top: 5rem; }
.wb-gruppe__titel { margin: 0 0 0.9rem; font-size: 1.25rem; }
.wb-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
.wb-karte { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.2rem 1.25rem 1.25rem; background: #fff; border: 1px solid var(--linie, #D9E0E8); border-top: 4px solid var(--ebene, var(--plan)); border-radius: var(--rundung, 10px); scroll-margin-top: 5rem; }
.wb-karte__kopf { display: flex; align-items: center; gap: 0.7rem; }
.wb-karte__kategorie { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ebene, var(--neben)); }
.wb-karte { position: relative; }
.wb-anker { position: absolute; top: -5rem; }
.wb-karte__zeichen { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: var(--ebene-hell, var(--plan-hell)); color: var(--ebene, var(--plan)); }
.wb-karte__name { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.wb-karte__kurz { margin: 0; }
.wb-karte__angaben { display: grid; gap: 0.45rem; margin: 0; font-size: 0.92rem; }
.wb-karte__angaben div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.6rem; }
.wb-karte__angaben dt { color: var(--neben); }
.wb-karte__angaben dd { margin: 0; }
.wb-karte__wege { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: auto 0 0; padding-top: 0.4rem; }
.wb-karte__weg { font-size: 0.95rem; }
/* Bibliothek nach Kategorie › Arbeitsbereich; Suche; früherer Name als Suchwort */
.wb-gruppe__titel { padding-bottom: 0.35rem; border-bottom: 1px solid var(--linie); }
.wb-bereich { margin: 0 0 1.6rem; }
.wb-bereich--einzeln { margin-bottom: 1.6rem; }
.wb-bereich__kopf { margin: 0 0 0.8rem; }
.wb-bereich__titel { margin: 0; font-family: var(--anzeige, inherit); font-size: 1.12rem; }
.wb-bereich__text { margin: 0.2rem 0 0; max-width: 52rem; font-size: 0.95rem; color: var(--neben); }
.wb-liste--schritte { counter-reset: wbschritt; }
.wb-liste--schritte > .wb-karte { counter-increment: wbschritt; }
.wb-liste--schritte > .wb-karte .wb-karte__name::before { content: counter(wbschritt) ". "; color: var(--ebene, var(--neben)); }
.wb-karte__frueher { margin: -0.35rem 0 0; font-size: 0.82rem; color: var(--neben); }
.wb-suche { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 0 0 1rem; }
.wb-suche .eingabe { flex: 1 1 16rem; max-width: 28rem; min-height: 2.75rem; }
.wb-suche .knopf { min-height: 2.75rem; }
.wb-suche__alle { font-size: 0.95rem; }
.wb-suche__stand { margin: 0; font-weight: 700; }
.wb-hinweis { padding: 1rem 0 3rem; color: var(--neben); font-size: 0.92rem; }
@media (max-width: 30rem) { .wb-karte__angaben div { grid-template-columns: 1fr; gap: 0.1rem; } .wb-kopf { padding-top: 2rem; } }

/* Startseite: Leiste aller Werkzeuge aus dem Register */

/* --- Vertrauen und Unternehmen (P7.11): Kontakt, Sicherheit, Neuigkeiten ------------------------------------------ */
.vt-kopf .ws-kopf__titel { margin-top: 0.8rem; }
.vt-satz { max-width: 46rem; }
.vt-bahn > * { max-width: 56rem; }
.vt-abschnitt { margin: 0 0 2.4rem; scroll-margin-top: calc(var(--kopf-h, 4rem) + 1rem); }
.vt-abschnitt__titel { margin: 0 0 0.8rem; font-size: 1.3rem; letter-spacing: -0.01em; }
.vt-abschnitt p { margin: 0 0 0.8rem; line-height: 1.65; color: #2D3F55; }
.vt-punkte { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.vt-punkte > div { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 0.3rem 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--linie); }
.vt-punkte dt { font-weight: 700; color: var(--tinte); }
.vt-punkte dd { margin: 0; line-height: 1.6; color: #2D3F55; overflow-wrap: anywhere; }
.vt-stand { margin: 0; font-size: 0.85rem; color: var(--neben); }
.vt-neu { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.vt-neu__eintrag { padding: 1.2rem 1.4rem 1.1rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung); }
.vt-neu__eintrag--bild { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1rem 2rem; align-items: center; }
.vt-neu__kopf { margin: 0 0 0.3rem; font-size: 0.82rem; color: var(--neben); font-variant-numeric: tabular-nums; }
.vt-neu__titel { margin: 0 0 0.45rem; font-size: 1.15rem; line-height: 1.3; }
.vt-neu__text p { margin: 0 0 0.5rem; line-height: 1.6; color: #2D3F55; }
.vt-neu__text .st-weiter { margin-top: 0.2rem; display: inline-block; font-weight: 700; color: var(--plan); }
.vt-neu__bild { margin: 0; }
.vt-neu__bild img { display: block; width: 100%; height: auto; border: 1px solid var(--linie); border-radius: 6px; }
@media (max-width: 720px) {
  .vt-punkte > div { grid-template-columns: minmax(0, 1fr); }
  .vt-neu__eintrag--bild { grid-template-columns: minmax(0, 1fr); }
}

/* --- Wissen (P7.10): Übersicht und Artikel ---------------------------------------------------------------------- */
.wi-karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
.wi-karte { padding: 1.1rem 1.25rem 1.2rem; background: #fff; border: 1px solid var(--linie); border-top: 3px solid var(--ebene, var(--plan)); border-radius: var(--rundung); }
.wi-karte__thema { margin: 0 0 0.3rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neben); }
.wi-karte__titel { margin: 0 0 0.5rem; font-size: 1.12rem; line-height: 1.3; }
.wi-karte__titel a { color: var(--tinte); }
.wi-karte__text { margin: 0; font-size: 0.93rem; line-height: 1.55; color: #34475D; }
.wi-hinweis, .wi-achtung { margin: 1.6rem 0 0; max-width: 56rem; font-size: 0.88rem; line-height: 1.55; color: var(--neben); }
.wi-achtung { margin-top: 0.9rem; padding: 0.7rem 0.9rem; background: #fff; border: 1px solid var(--linie); border-left: 3px solid var(--ebene, var(--plan)); border-radius: var(--rundung); }
.wi-titel { max-width: 48rem; }
.wi-stand { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--neben); }
.wi-text .vt-abschnitt p { font-size: 1.02rem; }
.wi-liste { margin: 0 0 0.8rem; padding-left: 1.2rem; display: grid; gap: 0.35rem; line-height: 1.6; color: #2D3F55; }
.wi-eingaben { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; font-size: 0.93rem; }
.wi-tabellenrahmen { overflow-x: auto; background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung); }
.wi-tabelle th, .wi-tabelle td { padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.wi-tabelle thead th { font-size: 0.8rem; color: var(--neben); }
.wi-tabelle tbody tr:last-child th, .wi-tabelle tbody tr:last-child td { border-bottom: 0; }
.wi-tabelle .ws-beispiel__wert { white-space: normal; }
.wi-wege { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.4rem 0 2.4rem; }
.wi-weitere ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; line-height: 1.55; }
.wi-wege .knopf { max-width: 100%; white-space: normal; text-align: center; }
.wi-titel, .wi-karte__titel { overflow-wrap: anywhere; hyphens: auto; }
.wi-liste > li, .vt-abschnitt { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .wi-titel { font-size: 1.65rem; } }
