/* Arbeitshilfen der Fachplattform · gemeinsames Blatt.
   Übernimmt Farben, Raster und Typografie der bestehenden Festpreis-Seiten
   (public/maengelruege.html und andere), damit die Werkzeuge nicht wie ein
   Fremdkörper wirken. Nur Ergänzungen für Formulare und Ergebnistabellen. */
:root {
  --ink: #16303f;
  --grey: #5b6b76;
  --line: #d8dedf;
  --blue: #2b5d8a;
  --gruen: #1e7a45;
  --rot: #9c3a2e;
  --sand: #fdf6ec;
  --sandline: #e8d5b0;
}
* { margin: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #f4f6f5; }
.blatt {
  max-width: 900px; margin: 0 auto; background: #fff; min-height: 100vh;
  padding: 40px 48px; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 14px; gap: 16px; }
header img { width: 190px; }
.marke { font-size: 11px; color: var(--grey); text-align: right; line-height: 1.5; }
h1 { font-size: 25px; margin: 26px 0 6px; line-height: 1.25; }
.sub { color: var(--grey); font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }
h2 { font-size: 12px; letter-spacing: .09em; color: var(--grey); margin: 30px 0 10px; text-transform: uppercase; }
h3 { font-size: 15px; margin: 20px 0 6px; }
p { font-size: 13.5px; line-height: 1.75; margin: 8px 0; }
ul, ol { margin: 6px 0 10px 20px; font-size: 13.5px; line-height: 1.75; }
a { color: var(--blue); }

.grundlage {
  background: var(--sand); border: 1px solid var(--sandline);
  padding: 14px 18px; margin: 14px 0; font-size: 13px; line-height: 1.7;
}
.grundlage b { display: block; margin-bottom: 4px; }
.herkunft { font-size: 11.5px; color: var(--grey); border-left: 3px solid var(--line); padding-left: 12px; margin: 12px 0; line-height: 1.65; }
.meldung { padding: 12px 16px; font-size: 13px; line-height: 1.7; margin: 12px 0; border: 1px solid var(--line); }
.meldung.warn { background: #fbf1ef; border-color: #e3c4bd; }
.meldung.gut { background: #f0f7f2; border-color: #c3ddcc; }
.meldung.hinweis { background: var(--sand); border-color: var(--sandline); }

/* min-inline-size: 0 ist Pflicht, nicht Kosmetik. <fieldset> hat vom Browser
   `min-inline-size: min-content` mitbekommen und schrumpft deshalb nie unter die
   Mindestbreite seines Inhalts. Auf /arbeitshilfe-bauzeit wuchs der Rahmen
   dadurch auf 526px, zog das darin liegende .tab-scroll auf 488px mit — und weil
   der Scrollrahmen so breit wurde wie seine Tabelle, hatte er nichts mehr zu
   scrollen. Die Seite wanderte stattdessen 151px seitlich weg. */
fieldset { border: 1px solid var(--line); padding: 16px 18px; margin: 14px 0; min-inline-size: 0; max-width: 100%; }
legend { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); padding: 0 6px; }
label { display: block; font-size: 12.5px; color: var(--grey); margin: 10px 0 3px; }
label .frage { color: var(--ink); font-size: 13.5px; display: block; }
input[type=text], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); font-family: inherit; font-size: 13.5px; color: var(--ink); background: #fff;
}
textarea { min-height: 70px; resize: vertical; }
.zeile { display: flex; gap: 12px; flex-wrap: wrap; }
.zeile > * { flex: 1 1 180px; }
button {
  background: var(--blue); color: #fff; border: none; padding: 11px 22px;
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; margin: 14px 8px 0 0;
}
button.leise { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
button[disabled] { opacity: .55; cursor: default; }

.tab-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 100%; }
th { text-align: left; font-size: 10.5px; letter-spacing: .07em; color: var(--grey); font-weight: 600; border-bottom: 1px solid var(--ink); padding: 0 8px 7px; }
td { border-top: 1px solid var(--line); padding: 8px; vertical-align: top; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
tr.summe td { font-weight: 700; background: #fafbfa; }
tr.kritisch td { background: #fbf1ef; }

.punkt { border-top: 1px solid var(--line); padding: 12px 0; }
.punkt:first-child { border-top: none; }
.punkt .frage { font-size: 13.5px; font-weight: 600; }
.punkt .worauf, .punkt .nachweis, .punkt .offen { font-size: 12.5px; color: var(--grey); line-height: 1.65; margin-top: 4px; }
.punkt .offen { background: var(--sand); border: 1px solid var(--sandline); padding: 8px 10px; margin-top: 6px; }
.punkt .fund { font-size: 11px; color: var(--grey); margin-top: 5px; }
.wahl { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; }
.wahl label { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: var(--ink); }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.karte { border: 1px solid var(--line); padding: 16px 18px; }
.karte h3 { margin-top: 0; }
.karte p { font-size: 12.5px; }
.karte .stand { font-size: 11px; color: var(--grey); margin-top: 8px; }
.luecke { border-color: var(--sandline); background: var(--sand); }

footer { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 11px; color: var(--grey); line-height: 1.7; }
footer a { display: inline-block; padding: 4px 3px; }

/* Tippflaechen (Mobil-Abnahme 2026-08-11). Zwei Stellen waren am Handy zu klein:
   der Titel-Link in den Katalogkarten (17px hoch) und der Ruecksprung
   „Alle Arbeitshilfen" im Kopf (13px hoch). Beide bekommen Innenabstand statt
   einer neuen Gestaltung; die Karten selbst bleiben unveraendert. */
.karte h3 a { display: inline-block; padding: 6px 0; }
.marke a { display: inline-block; padding: 6px 4px; margin: -6px -4px; }

@media (max-width: 640px) {
  .blatt { padding: 22px 14px; }
  h1 { font-size: 21px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
}
