/* SEGELKEN — Monteur-App, Stufe 2 (HERO-Ablösung, Baustein 6, 15.11.2026). Ergänzt zeit.css (Gerüst, Knöpfe, Karten, Dialog). */

.hud { display: flex; gap: 2px; }
.zurueck { align-self: flex-start; padding-left: 0; }
.titel { font-size: 20px; font-weight: 600; color: var(--kopf); line-height: 1.25; }
.karte.gruen { border-color: #B5DBC4; background: var(--ok-bg); }
.karte.gelb { border-color: #E9D49A; background: var(--warn-bg); }
.karte p.text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--kopf); }
.kopf .link { padding: 2px 4px; }
.leer { color: var(--dim); }

/* ---------- Termine und Projekte ---------- */
.termin { display: grid; grid-template-columns: 62px 1fr; gap: 2px 12px; padding: 11px 14px; text-align: left; width: 100%;
  background: var(--bg); border: 1px solid var(--linie); border-radius: 10px; }
button.termin:hover, .projekt:hover { border-color: var(--gruen); }
.termin .uhrzeit { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--kopf); }
.termin b { color: var(--kopf); font-weight: 600; }
.termin.erledigt { opacity: .6; }
.tagkopf { padding: 10px 4px 2px; font-size: 13px; color: var(--dim); letter-spacing: .04em; }
.tagkopf.heute { color: var(--gruen); font-weight: 600; }
.projekt { display: block; text-align: left; width: 100%; background: var(--bg); border: 1px solid var(--linie); border-radius: 10px; padding: 11px 14px; }
.projekt b { color: var(--kopf); font-weight: 600; display: block; }
.tel { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--gruen); border-radius: 8px; text-decoration: none; font-weight: 500; }
.verlauf { font-size: 13px; color: var(--dim); border-top: 1px solid var(--grau-hell); padding-top: 6px; }
.verlauf div { padding: 2px 0; }

/* ---------- Unterlagen und Bilder ---------- */
.datei { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--grau-hell); }
.datei:first-child { border-top: 0; }
.datei .name { background: none; border: 0; padding: 0; text-align: left; color: var(--kopf); font-weight: 500; overflow-wrap: anywhere; }
.datei .name:hover { color: var(--gruen); }
.stern { color: var(--warn); font-weight: 600; }
.schalter { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); white-space: nowrap; min-height: 36px; }
.schalter input { width: 20px; height: 20px; accent-color: var(--gruen); }
.schalterreihe { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bild { position: relative; aspect-ratio: 1; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; background: var(--weich); padding: 0; }
.bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bild .zu { position: absolute; left: 4px; top: 4px; background: var(--rot); color: #fff; font-size: 10px; border-radius: 6px; padding: 1px 5px; }
.bild .wichtig { position: absolute; right: 4px; top: 4px; background: var(--warn); color: #fff; font-size: 10px; border-radius: 6px; padding: 1px 5px; }
.gross-bild { max-width: 100%; max-height: 62vh; object-fit: contain; align-self: center; border-radius: 8px; background: var(--weich); }

/* ---------- Bericht und Unterschrift ---------- */
textarea.feld { min-height: 92px; resize: vertical; line-height: 1.4; }
.wahlreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wahlreihe.drei { grid-template-columns: 1fr; }
.wahl { border: 1px solid var(--linie); border-radius: 8px; background: var(--bg); padding: 11px 10px; min-height: 44px; text-align: center; }
.wahl.an { border-color: var(--gruen); background: var(--ok-bg); color: var(--gruen-dunkel); font-weight: 500; }
.unterschrift { border: 1px dashed var(--dim); border-radius: 8px; background: #fff; width: 100%; height: 180px; touch-action: none; display: block; }
.marke-s.fertig, .marke-s.genehmigt { color: var(--gruen); background: var(--ok-bg); border-color: #B5DBC4; }
.marke-s.beantragt { color: var(--blau); background: var(--blau-bg); border-color: #B9D4E8; }
.marke-s.abgelehnt { color: var(--rot); background: var(--rot-bg); border-color: #E5BDB6; }
.antrag { padding: 10px 0; border-top: 1px solid var(--grau-hell); display: flex; flex-direction: column; gap: 6px; }
.antrag:first-child { border-top: 0; }
.antrag b { color: var(--kopf); font-weight: 600; }

@media (min-width: 700px) {
  .wahlreihe.drei { grid-template-columns: repeat(3, 1fr); }
  .hud { margin-left: auto; }
}
