/* MK Unterwegs — Handy zuerst (375 px). Farben wie MobileKit (Pink). */
* { box-sizing: border-box; }
:root { --pink: #e0187c; --pink-dunkel: #b31363; --kopf: #8f0f4f;
        --hell: #f7b1d2; --flaeche: #f1f5f9; --linie: #e2e8f0; --grau: #64748b; }
body { margin: 0; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
       background: var(--flaeche); color: #1e293b; padding-bottom: 72px; }
.kopf { display: flex; align-items: center; gap: 10px; min-height: 56px;
        padding: 6px 12px; background: var(--kopf); color: #fff; }
.kopf .marke { width: 36px; height: 36px; background: #fff; border-radius: 8px; padding: 3px; }
.kopf .titel { flex: 1; min-width: 0; font-weight: 700; font-size: 17px;
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf .titel small { display: block; font-weight: 400; font-size: 12px; color: var(--hell); }
.kopf .abmelden { color: var(--hell); text-decoration: none; font-size: 14px;
                  min-height: 44px; display: flex; align-items: center; }
main { padding: 12px; max-width: 640px; margin: 0 auto; }
h1 { font-size: 20px; margin: 0 0 10px; }
.karte { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
         box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.karte.leer { color: var(--grau); text-align: center; padding: 28px 16px; }
.mini { font-size: 13px; color: var(--grau); }
label { display: block; margin: 12px 0; font-size: 14px; }
input { display: block; width: 100%; min-width: 0; margin-top: 4px; padding: 11px 12px;
        font-size: 16px; border: 1px solid #cbd5e1; border-radius: 8px; }
/* Auswahllisten mit langen Leistungstexten (HKP-…) dürfen die Seite am Handy
   nicht verbreitern (Probe 16.11.2026: 237 px Überlauf, Regel K47). */
select { max-width: 100%; }
.knopf { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 10px;
         background: var(--pink); color: #fff; font-size: 16px; font-weight: 700; }
.knopf:active { background: var(--pink-dunkel); }
.abgleich { margin-bottom: 12px; }
.abgleich .mini { margin-top: 6px; text-align: center; }
.meldung { padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.meldung.ok { background: #dcfce7; color: #14532d; }
.meldung.fehler { background: #fee2e2; color: #7f1d1d; }
.reiter { position: fixed; left: 0; right: 0; bottom: 0; display: flex;
          background: #fff; border-top: 1px solid var(--linie);
          padding-bottom: env(safe-area-inset-bottom); }
.reiter a, .reiter span { flex: 1; min-height: 56px; display: flex; flex-direction: column;
          align-items: center; justify-content: center; text-align: center;
          font-size: 12px; color: var(--grau); text-decoration: none; }
.reiter a.aktiv { color: var(--pink-dunkel); font-weight: 700; }
.reiter .spaeter { opacity: .4; }
/* Stufe 2: Tourwahl, Einsatzliste, Einsatz */
.tourwahl { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.tourwahl a { flex: none; min-height: 44px; display: flex; align-items: center;
              padding: 0 14px; border-radius: 22px; background: #fff;
              border: 1px solid var(--linie); color: inherit; text-decoration: none;
              white-space: nowrap; font-size: 14px; }
.tourwahl a.aktiv { background: var(--pink-dunkel); border-color: var(--pink-dunkel);
                    color: #fff; font-weight: 700; }
.einsaetze { list-style: none; margin: 0; padding: 0; }
.einsaetze li { margin-bottom: 8px; }
.einsaetze a { display: grid; grid-template-columns: 92px 1fr; gap: 2px 10px;
               min-height: 56px; padding: 10px 14px; background: #fff; border-radius: 12px;
               color: inherit; text-decoration: none; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.einsaetze .zeit { grid-row: span 2; font-weight: 700; font-variant-numeric: tabular-nums;
                   align-self: center; }
.einsaetze .wer { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.einsaetze .anzahl { font-size: 13px; color: var(--grau); }
.blaettern { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.blaettern a, .blaettern span { flex: 1; min-height: 44px; display: flex; align-items: center;
              justify-content: center; border-radius: 10px; text-decoration: none; }
.blaettern a { background: #fff; color: var(--pink-dunkel); font-weight: 600;
               border: 1px solid var(--linie); }
.leistungen { margin: 0; padding-left: 18px; }
.leistungen li { padding: 6px 0; border-bottom: 1px solid var(--linie); }
.leistungen .status { display: block; font-size: 13px; color: #15803d; }
/* Stufe 3: Patientenebene */
.knopf.zweit { background: #fff; color: var(--pink-dunkel); border: 2px solid var(--pink); }
.besuch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.besuch .mini { margin-top: 4px; text-align: center; }
.leistung { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.leistung .titel { margin-bottom: 6px; }
.haken { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 6px 0; }
.haken .knopf { font-size: 14px; padding: 0 4px; min-width: 0; }
textarea { display: block; width: 100%; min-width: 0; padding: 8px 10px; font-size: 16px;
           border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; }
.stand.ok { color: #15803d; } .stand.wartet { color: #b45309; } .stand.nein { color: #b91c1c; }
/* Stufe 3b: Abweichungsmanagement */
.knopf.als-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.anhaken { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.anhaken input { width: 24px; height: 24px; margin: 0; display: inline-block; }
/* Stufe 4: Übergabe */
.datum-zeile { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.datum-zeile input { margin: 0; }
.datum-zeile .knopf { width: auto; padding: 0 16px; }
.uebergaben { list-style: none; margin: 8px 0 0; padding: 0; }
.uebergaben li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.uebergaben .kopfzeile { font-size: 14px; margin-bottom: 2px; }

/* Dienst-Stempel (A9) */
.dienst-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.dienst-knoepfe form { flex: 1 1 45%; min-width: 0; }
.dienst-knoepfe .knopf { width: 100%; }
.stempel-liste { list-style: none; padding: 0; margin: 12px 0 0; }
.stempel-liste li { padding: 4px 0; border-top: 1px solid #eee; font-size: .95rem; }
.tabellen-rolle { overflow-x: auto; max-width: 100%; }
.nachweis-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.nachweis-tabelle th, .nachweis-tabelle td { text-align: left; padding: 3px 6px; border-bottom: 1px solid #eee; }
