/* Gestaltung der Service-App: Aufbau nach dem am 02.10. gewählten Entwurf der JUMAG-Entwicklung
   („Toolbox · Service“, Bereich Außendienst). Werte im Browser aus dem Entwurf gemessen (JSA-39).
   Schrift: Overpass erst, wenn selbst gehostet (keine Fremdquellen, CSP self); bis dahin Ersatzschrift des Entwurfs. */
:root {
  /* Aufbau nach dem gewählten Entwurf, Farben JUMAG-CI (Marine/Stahlblau wie Logo, Website, Toolbox-Rahmen und Dispo
     des Entwurfs). Grün nur für „in Ordnung“/„vollständig“, Rot für „nicht in Ordnung“. */
  --kopf: #001e37;
  --kopf-karte: #0e3159;
  --kopf-text: #9fc3e0;
  --akzent: #134076;
  --akzent-dunkel: #134076;
  --akzent-hell: #36beef;
  --ok: #2e9e6b;
  --ok-dunkel: #1f7a52;
  --mint: #e3f3ea;
  --soft: #eef3f8;
  --hintergrund: #f5f8fb;
  --surface: #ffffff;
  --tinte: #16232e;
  --grau: #5d7183;
  --grau-pille: #eaf0f5;
  --linie: #d9e4ed;
  --rot: #b42318;
  --rot-hell: #fdf1f1;
  --warn-hell: #fff6e8;
  --warn-tinte: #8a5c14;
  --schrift: Overpass, Arial, Helvetica, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-karte: 14px;
  --hair: 1px solid var(--linie);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--schrift);
  background: var(--hintergrund);
  color: var(--tinte);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.2; }
[hidden] { display: none !important; }

/* ---------- Kopfleiste und Reiter ---------- */
.kopf {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 28px; padding-top: max(16px, env(safe-area-inset-top));
  background: var(--kopf); color: #fff;
}
.logo { flex: none; height: 20px; width: auto; }
.kopf-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kennzeile { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--kopf-text); }
.titel { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stand { font-size: .8rem; color: var(--kopf-text); }
.pillen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pille {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; font: inherit; font-size: .8rem; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
}
.pille.netz { background: rgba(54, 190, 239, .16); border-color: rgba(54, 190, 239, .35); color: #cdeefb; }
body.offline .pille.netz { background: rgba(255, 188, 83, .16); border-color: rgba(255, 188, 83, .4); color: #ffe2ac; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: #5fd49a; }
body.offline .punkt { background: #ffbc53; }
.pille.wartet { background: rgba(255, 188, 83, .16); border-color: rgba(255, 188, 83, .4); color: #ffe2ac; }
.pille.abgelehnt { background: rgba(240, 68, 56, .2); border-color: rgba(240, 68, 56, .5); color: #ffd6d2; }
.knopf-pille { cursor: pointer; min-height: 40px; font-weight: 700; }
.knopf-pille:hover { background: rgba(255, 255, 255, .16); }
.knopf-pille:disabled { opacity: .5; cursor: default; }

.reiter {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-bottom: var(--hair); padding: 0 28px;
}
.reiter button {
  font: inherit; font-size: .95rem; color: var(--grau); background: none; border: 0; cursor: pointer;
  min-height: 52px; border-bottom: 3px solid transparent;
}
.reiter button[aria-current="page"] { color: var(--akzent); font-weight: 800; border-bottom-color: var(--akzent-hell); }
.reiter button:disabled { color: #b5c2ce; cursor: default; }

main { padding: 24px 28px 48px; max-width: 1280px; margin: 0 auto; }

/* ---------- Raster ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.layout.voll { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.haupt, .seite { display: grid; gap: 16px; min-width: 0; }
.seite { position: sticky; top: 104px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
@media (max-width: 899px) {
  main { padding: 16px; }
  .kopf { padding: 12px 16px; }
  .reiter { padding: 0 8px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .seite { position: static; }
  .bericht .seite { order: -1; }  /* Fortschritt oben, wenn die Spalte fehlt */
}

/* ---------- Karten und Bausteine ---------- */
.karte { background: var(--surface); border: var(--hair); border-radius: var(--radius-karte); padding: 20px; }
.karte h2 { font-size: 1.2rem; font-weight: 800; }
.kennzeile-dunkel { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); margin-bottom: 4px; }
.unter { color: var(--grau); font-size: .9rem; }
.leer { color: var(--grau); text-align: center; padding: 40px 0; }
.hinweis { padding: 12px 14px; border-radius: var(--radius); background: var(--warn-hell); color: var(--warn-tinte); }
dl.daten { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; font-size: .92rem; }
dl.daten dt { color: var(--grau); }
dl.daten dd { margin: 0; }

.status { display: inline-block; font-style: normal; font-size: .75rem; font-weight: 800; border-radius: 999px; padding: 3px 8px;
  background: var(--grau-pille); color: #5d6a66; white-space: nowrap; }
.status.vor-ort { background: var(--mint); color: var(--ok-dunkel); }
.status.erledigt { background: var(--mint); color: var(--ok-dunkel); }
.status.helfer { background: #e8f1fb; color: #134076; }
.status.nio { background: var(--rot-hell); color: var(--rot); }
.status.warn { background: var(--warn-hell); color: var(--warn-tinte); }

.knopf {
  font: inherit; font-weight: 800; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--akzent-dunkel); color: #fff; min-height: 48px; padding: 0 20px;
}
.knopf:hover { background: #0e3159; }
.knopf:disabled { opacity: .45; cursor: default; }
.knopf.hell { background: var(--soft); color: var(--akzent); border: 1px solid #c3d5e6; }
.knopf.hell:hover { background: #e2ebf4; }
.knopf.mint { background: var(--akzent-hell); color: #001e37; }
.knopf.breit { width: 100%; }
.knopf.klein { min-height: 36px; padding: 0 14px; font-size: .9rem; }

/* ---------- Heute ---------- */
.hero {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px; border-radius: 16px; background: linear-gradient(120deg, #e4eef7, #f3f8fc); border: 1px solid #cddcea;
}
.gruss { font-size: 2rem; font-weight: 800; margin: 0; }
.hero p { margin: 4px 0 0; color: var(--grau); }
.hero-zahl { display: flex; flex-direction: column; align-items: flex-end; border-left: 1px solid #cddcea; padding-left: 22px; }
.hero-zahl strong { font-size: 1.8rem; }
.hero-zahl span { font-size: .8rem; color: var(--grau); }
.tag { font-size: 1.05rem; margin: 0 0 10px; }
.tour { display: grid; gap: 4px; }
.einsatz, .entwurf, .abschluss-zeile {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: inherit;
  background: none; border: 0; border-radius: 11px; padding: 14px 10px; cursor: pointer; min-height: 56px;
}
.einsatz { border-top: var(--hair); border-radius: 0; }
.einsatz:first-child { border-top: 0; }
.einsatz:hover, .entwurf:hover, .abschluss-zeile:hover, .einsatz.gewaehlt { background: var(--soft); border-radius: 11px; }
.nr { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: var(--grau-pille); color: #5d6a66; }
.einsatz.gewaehlt .nr { background: var(--akzent-dunkel); color: #fff; }
.zeit { flex: none; width: 64px; font-weight: 800; font-size: .95rem; display: flex; flex-direction: column; }
.zeit small { font-weight: 400; color: var(--grau); font-size: .75rem; }
.zeile-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oben { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ort { font-size: .82rem; color: var(--grau); }
.pfeil { font-size: 1.6rem; color: var(--grau); }
.entwurf { border: var(--hair); margin-top: 8px; }
.zahl-gross { flex: none; font-weight: 800; color: var(--akzent-dunkel); min-width: 44px; }

/* ---------- Einsatz ---------- */
.auftrag { background: var(--kopf-karte); color: #fff; border-radius: 16px; padding: 24px; display: grid; gap: 8px; justify-items: start; }
.auftrag h2 { font-size: 1.7rem; margin: 0; }
.auftrag p { margin: 0; color: #c9d9ea; }
.auftrag-oben { display: flex; gap: 10px; align-items: center; font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: var(--kopf-text); }
.auftrag-hinweis { background: rgba(255, 188, 83, .13); color: #ffe2ac; border-radius: var(--radius); padding: 10px 12px; font-size: .85rem; }
.kessel .knopf, .karte > .knopf { margin-top: 12px; }

/* ---------- Abschluss ---------- */
.abschluss-zeile { border: var(--hair); margin-top: 10px; }
.abschluss-zeile.fertig { border-color: #b9dcc8; }

/* ---------- Anmelden ---------- */
form.anmelden { display: grid; gap: 12px; max-width: 440px; margin: 40px auto; }
form.anmelden label { display: grid; gap: 6px; font-weight: 700; }
form.anmelden input { font: inherit; padding: 12px; border: var(--hair); border-radius: var(--radius); }

/* ---------- Bericht (JSA-6) ---------- */
.berichtkopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.berichtkopf h2 { margin: 0; }
.fortschritt { display: grid; gap: 10px; justify-items: center; text-align: center; }
.ring {
  --p: 0;
  width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--akzent) calc(var(--p) * 1%), var(--grau-pille) 0);
}
.ring span { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800; }
.balken { width: 100%; height: 6px; border-radius: 3px; background: var(--grau-pille); overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--akzent); transition: width .2s; }
.fehlend { font-size: .88rem; color: var(--grau); text-align: left; justify-self: stretch; }
.sprung { font: inherit; background: none; border: 0; color: var(--akzent-dunkel); text-decoration: underline; cursor: pointer;
  padding: 4px 6px; min-height: 32px; text-align: left; }
.fertig { color: var(--ok-dunkel); font-weight: 800; }
.schritt { font-size: .78rem; color: var(--grau); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.abschnitt h2 { margin-bottom: 12px; }
.feld { padding: 12px 0; border-top: var(--hair); }
.abschnitt h2 + .feld, .schritt + h2 + .feld { border-top: 0; }
.feldkopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.feld label { display: block; font-weight: 700; }
.pflicht { color: var(--rot); }
.feld.unsicher { background: var(--warn-hell); margin: 0 -20px; padding: 12px 20px; }
.merkmal { font-size: .85rem; color: var(--warn-tinte); margin-bottom: 6px; }
.feld textarea, .feld input { font: inherit; width: 100%; padding: 10px 12px; min-height: 44px;
  border: var(--hair); border-radius: var(--radius); background: #fff; }
.feld input[aria-invalid="true"] { border-color: var(--rot); }
.zahl { display: flex; align-items: center; gap: 8px; max-width: 300px; }
.einheit { color: var(--grau); font-family: var(--mono); }
.auswahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl { font: inherit; min-height: 44px; min-width: 72px; padding: 0 16px; border-radius: var(--radius); cursor: pointer;
  border: var(--hair); background: #fff; color: var(--tinte); }
.wahl[aria-pressed="true"] { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: #fff; }
.wahl.io[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.wahl.nio[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); }
.spaeter { color: var(--grau); font-style: italic; }
.entfaellt-knopf { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--grau); cursor: pointer;
  text-decoration: underline; min-height: 32px; padding: 0 4px; white-space: nowrap; }
.feld.entfallen label { color: var(--grau); text-decoration: line-through; font-weight: 400; }
.feld.io { box-shadow: inset 4px 0 0 var(--ok); padding-left: 12px; }
.feld.nio { box-shadow: inset 4px 0 0 var(--rot); padding-left: 12px; background: var(--rot-hell); }
.grund { margin-top: 10px; }
.grund label { color: var(--rot); margin-bottom: 4px; }
.navi { display: flex; justify-content: space-between; gap: 12px; }
.navi .knopf { flex: 1; max-width: 240px; }

/* Fotos (JSA-8) */
.fotofeld { display: grid; gap: 10px; justify-items: start; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; width: 100%; }
.foto { margin: 0; display: grid; gap: 4px; }
.foto img { width: 100%; height: 96px; object-fit: cover; border-radius: var(--radius); border: var(--hair); }
.foto figcaption { font-size: .8rem; color: var(--ok-dunkel); }

/* Abschluss und Sperre (JSA-7) */
.abschluss-block { display: grid; gap: 4px; }
.fehlt-liste { font-size: .85rem; color: var(--warn-tinte); padding: 0 10px; }
.unterschrift-bereich { display: grid; gap: 10px; margin-top: 12px; }
.unterschrift-bereich input { font: inherit; padding: 10px 12px; min-height: 44px; border: var(--hair); border-radius: var(--radius); }
.zeichenflaeche { width: 100%; height: auto; aspect-ratio: 900 / 260; background: #fff; border: 2px dashed var(--linie);
  border-radius: var(--radius); touch-action: none; cursor: crosshair; }
.unterschrift-bild { max-width: 100%; border: var(--hair); border-radius: var(--radius); background: #fff; }
.sperre { border-left: 4px solid var(--akzent); }
.sperre textarea { font: inherit; width: 100%; padding: 10px 12px; border: var(--hair); border-radius: var(--radius); margin: 6px 0 10px; }
.nachtraege { margin: 8px 0; padding-left: 18px; }
.gesperrt .wahl:disabled { opacity: 1; cursor: default; }
.gesperrt .feld input:disabled, .gesperrt .feld textarea:disabled { background: var(--soft); color: var(--tinte); }

/* Material (JSA-9) */
.material-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 10px; align-items: center;
  padding: 10px 0; border-top: var(--hair); }
.material-zeile select, .karte input[type=search], .frei-felder input { font: inherit; min-height: 44px; padding: 0 10px;
  border: var(--hair); border-radius: var(--radius); background: #fff; }
.karte input[type=search] { width: 100%; }
.menge { display: flex; align-items: center; gap: 6px; }
.menge .wahl { min-width: 44px; padding: 0; }
.menge-zahl { min-width: 56px; text-align: center; font-weight: 800; }
.treffer { display: grid; gap: 4px; margin-top: 8px; }
.treffer-zeile { font: inherit; text-align: left; background: var(--soft); border: var(--hair); border-radius: var(--radius);
  min-height: 44px; padding: 8px 12px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.treffer-zeile .plus { margin-left: auto; font-weight: 800; color: var(--akzent); font-size: 1.3rem; }
.frei { margin-top: 12px; }
.frei-felder { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-top: 8px; }
@media (max-width: 899px) { .material-zeile { grid-template-columns: 1fr 1fr; } }

/* Disposition / Plantafel (JSA-14) */
body.dispo-modus main { max-width: none; }
.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kennzahl { display: grid; gap: 2px; padding: 14px 18px; }
.kennzahl strong { font-size: 1.8rem; color: var(--akzent); }
.kennzahl.warn strong { color: var(--warn-tinte); }
.kennzahl span { color: var(--grau); font-size: .85rem; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; padding: 12px 16px; }
.filter select { font: inherit; min-height: 44px; padding: 0 10px; border: var(--hair); border-radius: var(--radius); background: #fff; }
.filter > .knopf { margin-left: auto; }
.layout.dispo { grid-template-columns: minmax(0, 1fr) 360px; }
.tafel { padding: 0; overflow-x: auto; }
.tafel-zeile { display: grid; grid-template-columns: 210px minmax(640px, 1fr); border-top: var(--hair); min-height: 72px; }
.tafel-zeile.woche { grid-template-columns: 210px repeat(7, minmax(110px, 1fr)); }
.tafel-zeile.kopfzeile { min-height: 36px; border-top: 0; background: var(--soft); font-size: .8rem; color: var(--grau); }
.tech { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-right: var(--hair); }
.tech .unter { display: block; font-size: .78rem; }
.kuerzel { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent);
  color: #fff; font-weight: 800; font-size: .8rem; }
.stunden { display: grid; grid-template-columns: repeat(11, 1fr); align-items: center; }
.stunden span { padding-left: 4px; border-left: var(--hair); }
.spur { position: relative; background-image: linear-gradient(to right, var(--linie) 1px, transparent 1px);
  background-size: calc(100% / 11) 100%; }
.block { position: absolute; top: 6px; bottom: 6px; background: #e4eef7; border: 1px solid #b9cde2; border-left: 4px solid var(--akzent);
  border-radius: 8px; padding: 4px 8px; overflow: hidden; font-size: .8rem; display: grid; align-content: start; cursor: grab; }
.block.helfer { background: #fff; border-style: dashed; }
.block.gewaehlt, .block-woche.gewaehlt { outline: 2px solid var(--akzent-hell); }
.zeit-klein { font-family: var(--mono); font-size: .72rem; color: var(--grau); }
.zelle { border-left: var(--hair); padding: 6px; display: grid; gap: 4px; align-content: start; }
.zelle-kopf { border-left: var(--hair); padding: 8px; }
.block-woche { background: #e4eef7; border-left: 3px solid var(--akzent); border-radius: 6px; padding: 4px 6px; font-size: .8rem; cursor: grab; }
.dispo-karte { display: grid; gap: 2px; padding: 10px 12px; margin-top: 8px; border: var(--hair); border-left: 4px solid var(--warn-tinte);
  border-radius: var(--radius); background: #fff; cursor: grab; }
.frist { display: grid; padding: 8px 0; border-top: var(--hair); }
.frist.ueberfaellig strong { color: var(--rot); }
.planung { display: grid; gap: 6px; }
.planung input, .planung select, .planung textarea { font: inherit; min-height: 44px; padding: 0 10px; border: var(--hair);
  border-radius: var(--radius); background: #fff; width: 100%; }
.planung textarea { padding: 8px 10px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zwei label { display: grid; gap: 4px; }
.haken { display: flex; gap: 6px; align-items: center; min-height: 36px; padding-right: 10px; }
.haken input { width: auto; min-height: 0; }
@media (max-width: 1100px) { .layout.dispo { grid-template-columns: minmax(0, 1fr); } .kennzahlen { grid-template-columns: 1fr 1fr; } }
body.dispo-modus #abgleichen, body.dispo-modus #ausgang, body.dispo-modus #stand { display: none; }

/* Vor der Fahrt / Vormerken (JSA-33) */
.vor-der-fahrt { display: grid; gap: 10px; }
.vor-der-fahrt h3 { font-size: .95rem; margin: 4px 0 2px; color: var(--akzent); }
.vor-der-fahrt ul, .planung ul { margin: 6px 0 0; padding-left: 18px; }
.vormerken { display: grid; gap: 6px; }
.vormerken textarea { font: inherit; width: 100%; padding: 8px 10px; border: var(--hair); border-radius: var(--radius); }
.vormerkung-neu { margin: 0; color: var(--akzent); font-weight: 700; }

/* Störung (JSA-15) */
#stoerung textarea { padding: 8px 10px; }
.auftrag-hinweis a { color: #ffe2ac; font-weight: 800; }

/* Auswertung (JSA-16) */
.auswertung { display: grid; gap: 14px; margin-top: 14px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th { text-align: left; color: var(--grau); font-weight: 700; border-bottom: 2px solid var(--akzent); padding: 6px 8px; }
.tabelle td { border-bottom: var(--hair); padding: 6px 8px; vertical-align: top; }
.filter label { display: flex; gap: 6px; align-items: center; }
.filter input[type=date] { font: inherit; min-height: 44px; padding: 0 10px; border: var(--hair); border-radius: var(--radius); }
.link-knopf { display: inline-flex; align-items: center; text-decoration: none; }
body:not(.darf-auswerten) #zur-auswertung { display: none; }

/* Ansprechpartner (JSA-19) */
.kontakte { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.kontakt-wege { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.kontakt-wege a { color: var(--akzent); min-height: 32px; display: inline-flex; align-items: center; }

/* Qualitätsliste (JSA-35) */
.qualitaet { border-top: var(--hair); padding: 10px 0; }
.qualitaet summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qualitaet.ueber summary strong { color: var(--rot); }
.marke-rot { background: var(--rot); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 700; }
.schwelle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.zahl-kurz { width: 5.5em; min-height: 40px; font: inherit; padding: 0 8px; }

/* Arbeitszeit vor Ort (JSA-31) */
.zeit-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: var(--hair); }
.zeit-titel { min-width: 5.5em; color: var(--grau); }
.zeit-zeile strong { font-size: 1.15rem; min-width: 3.2em; }
.zeit-form { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.zeit-form input { font: inherit; min-height: 40px; padding: 0 8px; }
.zeit-form input[type=text] { flex: 1 1 12em; }
.zeit-dauer { font-weight: 700; margin-top: 8px; }

/* Kontaktänderungen (JSA-30) */
.kontakte li { display: grid; gap: 4px; }
.kontakte li > .knopf { justify-self: start; }
.kontakt-marke { color: var(--warn-tinte); background: var(--warn-hell); border-radius: 8px; padding: 4px 10px; font-size: .9rem; }
.kontakt-form { display: grid; gap: 8px; margin-top: 8px; }
.kontakt-form input, .vorschlag input { font: inherit; min-height: 44px; padding: 0 10px; border: var(--hair); border-radius: 8px; }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.knopfzeile input { flex: 1 1 14em; }
.vorschlaege { display: grid; gap: 14px; margin-top: 14px; }
.vergleich td.alt { color: var(--grau); text-decoration: line-through; }
.vergleich td.neu { font-weight: 700; }

/* Umlagerungen (JSA-29) */
#umlagerung-summen td:last-child, .vorschlag .tabelle td:last-child { text-align: right; white-space: nowrap; }

/* Wichtig zu diesem Kessel (JSA-25) */
.wichtig ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.wichtig li.ueberfaellig { color: var(--rot); font-weight: 700; }

/* Befunde der Prüfung Phase B (JSA-96): Ablehnungen sichtbar, Mengenfeld, Doppelbelegung — nur vorhandene Farben */
.abgelehnt-text { color: var(--rot); }
.hinweis.abgelehnt-text { background: var(--rot-hell); color: var(--rot); }
.entwurf .abgelehnt-text { font-size: .82rem; }
.abgelehnt-zeile { font-size: .85rem; padding: 0 10px; }
.foto figcaption.abgelehnt-text { color: var(--rot); }
.zahl-hinweis { margin-top: 6px; }
.menge input.menge-zahl { width: 4.6em; min-width: 0; min-height: 44px; padding: 0 6px; font: inherit; font-weight: 800; text-align: center;
  border: var(--hair); border-radius: var(--radius); background: #fff; }
.menge input.menge-zahl[aria-invalid="true"] { border-color: var(--rot); }
.wieder-oeffnen { display: grid; gap: 8px; justify-items: start; margin: 10px 0; }
.verwerfen { display: grid; gap: 6px; }
#anmelden-ohne-server { display: grid; gap: 12px; max-width: 440px; margin: 40px auto; }
.block.doppelt { border-left-color: var(--rot); background: var(--rot-hell); border-color: #f0c4bf; }
.block-woche.doppelt { border-left-color: var(--rot); background: var(--rot-hell); }
.tech .status { margin-top: 2px; }
.rueckfrage { display: grid; gap: 8px; margin-bottom: 14px; }
#dispo-meldung { margin-bottom: 14px; }

/* JSA-99: gedruckter Hinweis der Vorlage vor der Kundenunterschrift (z. B. Haftungserklärung Säuern) */
.vorlage-hinweis { padding: 12px 14px; border-radius: var(--radius); background: var(--warn-hell); color: var(--warn-tinte); margin-bottom: 12px; }
.vorlage-hinweis p { margin: 6px 0 0; white-space: pre-line; }
/* JSA-99: Arbeitshinweis am Feld */
.hilfe { margin: 4px 0 8px; font-size: .85rem; color: var(--grau); }
.hilfe summary { cursor: pointer; color: var(--akzent); }
.hilfe p { white-space: pre-line; margin: 6px 0 0; }
