/* UHLPARTMENT Team. Gestaltung aus shared/Brand/brand.json:
   Gruen #22813c, Nunito Sans, 16 px Grundschrift, Knoepfe mindestens 44 px,
   Du-Form, nuechterne Knoepfe. Kein Dunkelmodus in Stufe 1.
   Schriften kommen nicht von einem fremden Server (die Inhaltsrichtlinie
   des Containers erlaubt nur eigene Quellen), deshalb Systemschrift als
   Rueckfall. */

:root {
  --gruen: #22813c;
  --gruen-dunkel: #1a6630;
  --gruen-hell: #e8f5ec;
  --gruen-blass: #f2faf4;
  --grund: #f5f5f2;
  --weiss: #ffffff;
  --text: #1a1a2e;
  --text-mittel: #45456a;
  --text-hell: #888888;
  --rand: #e5e0e0;
  --warnung: #a33;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main { max-width: 720px; margin: 0 auto; padding: 12px 12px 40px; }

.kopf {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--gruen); color: #fff; padding: 10px 14px;
  position: sticky; top: 0; z-index: 5;
}
.kopf .marke { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.kopf nav a { color: #fff; text-decoration: none; margin-left: 14px; font-size: .95rem; }

h1 { font-size: 1.5rem; margin: 12px 0 4px; }
h2 { font-size: 1.15rem; margin: 18px 0 8px; }

.karte {
  background: var(--weiss); border: 1px solid var(--rand); border-radius: 12px;
  padding: 14px; margin: 12px 0; display: block; color: inherit;
  text-decoration: none;
}
.karte.mitte { max-width: 420px; margin: 40px auto; }

.zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.klein { font-size: .85rem; color: var(--text-mittel); }
.hinweis { background: var(--gruen-blass); border-left: 3px solid var(--gruen);
           padding: 8px 10px; border-radius: 6px; margin: 8px 0; }
.fehler { color: var(--warnung); font-weight: 600; }

/* Einsatzliste */
.einsatz .kuerzel { font-weight: 800; font-size: 1.25rem; color: var(--gruen); }
.einsatz .typ { background: var(--gruen-hell); color: var(--gruen-dunkel);
                border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
.einsatz .tag { margin-left: auto; font-size: .85rem; color: var(--text-mittel); }
.einsatz .titel { margin: 4px 0; }
.einsatz.status-fertig { opacity: .7; }
.fertig { color: var(--gruen); font-weight: 700; }

/* Knoepfe: mindestens 44 px hoch, damit man sie mit Handschuh trifft */
.knopf, button, .haken {
  min-height: 44px; min-width: 44px; font-size: 1rem; font-family: inherit;
  border-radius: 10px; border: 1px solid var(--gruen); cursor: pointer;
  background: var(--gruen); color: #fff; padding: 10px 16px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.knopf.leise, button.leise {
  background: var(--weiss); color: var(--gruen-dunkel);
}
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

input, select {
  width: 100%; font-size: 1.05rem; padding: 12px; margin: 6px 0 14px;
  border: 1px solid var(--rand); border-radius: 10px; font-family: inherit;
  min-height: 44px;
}
label { font-weight: 600; font-size: .95rem; }

/* Checklisten-Punkt */
.punkt { display: flex; gap: 12px; align-items: flex-start; }
.punkt.erledigt { background: var(--gruen-blass); }
.haken {
  width: 52px; height: 52px; min-width: 52px; border-radius: 12px;
  background: var(--weiss); color: var(--gruen); border: 2px solid var(--gruen);
  font-size: 1.6rem; padding: 0;
}
.haken.an { background: var(--gruen); color: #fff; }
.punkt-inhalt { flex: 1; min-width: 0; }
.punkt-titel { font-weight: 700; }
.punkt-kurz { margin: 4px 0; }
.punkt-bild { width: 100%; border-radius: 8px; margin: 6px 0; }
.mini { height: 64px; border-radius: 6px; margin: 4px 4px 0 0; }
.vorschau img { height: 64px; border-radius: 6px; }
.fotoeingabe { display: none; }
.fotoblock { margin: 8px 0; }

details { margin-top: 8px; }
summary { cursor: pointer; color: var(--gruen-dunkel); font-weight: 600;
          min-height: 32px; }
.anleitung img { max-width: 100%; height: auto; border-radius: 8px; }
.anleitung { font-size: .95rem; }

/* Kopfkarte */
.kopfkarte .feld { margin: 8px 0; }
.gastfeld { background: var(--gruen-blass); border-radius: 8px; padding: 8px 10px; }
.ja { color: var(--gruen); font-weight: 700; }
.warten { color: #b8860b; font-weight: 700; }
.unbekannt { color: var(--text-hell); font-weight: 700; }
.codes .wert { font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; }
.code { margin: 6px 0; }

.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th, .tabelle td { text-align: left; padding: 6px 4px;
                           border-bottom: 1px solid var(--rand); vertical-align: top; }

.wissen img { max-width: 100%; height: auto; }
.wissen { overflow-x: auto; }

.fuss { text-align: center; padding: 18px; }
.notfall { font-size: .85rem; color: var(--text-mittel); }
.warteschlange { text-align: center; }

/* Unbesetzte Einsaetze und Rueckgabe. Beides nuechtern: Wer zurueckgibt,
   tut nichts Falsches, und ein Einsatz ohne Fee ist kein Alarm, sondern
   eine offene Frage. */
.sucht { color: #b8860b; font-weight: 700; }
.zurueckgeben summary { color: var(--text-mittel); font-weight: 500; }
.beginn { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.beginn-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.beginn-form input[type=time] { width: auto; margin: 0; }
.beginn-form button { padding: 6px 12px; min-height: 38px; }
