/* Blaumann Prototyp – Ablauf 2: Tablet im Fahrzeug (draußen robust, E48) */

.t-app { height: 100%; display: flex; flex-direction: column; background: var(--flaeche); position: relative; font-size: 16px; }
.t-kopf { flex: none; min-height: 78px; background: var(--blau); color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 20px; }
.t-kopf__marke { display: flex; align-items: center; gap: 12px; }
.t-kopf__marke b { display: block; font-family: var(--schrift-schmal); font-size: 23px; }
.t-kopf__marke small, .t-kopf__tag small { display: block; font-size: 13px; color: rgba(255,255,255,.72); }
.t-kopf__tag b { font-size: 23px; font-variant-numeric: tabular-nums; }
.t-besetzung { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.1); border-radius: 14px; padding: 8px 14px 8px 18px; min-height: 58px; color: #fff; text-align: left; }
.t-besetzung:hover { background: rgba(255,255,255,.16); }
.t-besetzung__avatare { display: flex; }
.t-besetzung__avatare .avatar { margin-left: -9px; border: 2px solid var(--blau); background: #DDE6F4; }
.t-besetzung b { display: block; font-size: 15px; }
.t-besetzung small { font-size: 12.5px; color: rgba(255,255,255,.72); }
.t-kopf__pin { margin-left: auto; min-height: 54px; font-size: 16px; }
.t-sync { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.t-sync b { display: block; font-size: 15px; }
.t-sync small { font-size: 12.5px; color: rgba(255,255,255,.72); }
.t-sync--offline { color: var(--gelb); }
.t-sync--offline small { color: #FFE7A0; }

.t-haupt { flex: 1; display: flex; min-height: 0; }
.t-liste { width: 340px; flex: none; overflow-y: auto; background: #fff; border-right: 1px solid var(--linie); padding: 16px 14px 20px; }
.t-liste__kopf { display: flex; justify-content: space-between; align-items: baseline; }
.t-liste__kopf h2 { font-family: var(--schrift-schmal); font-size: 23px; margin: 0; }
.t-liste__kopf span { font-size: 13px; color: var(--text-3); }
.t-fahrt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); padding: 7px 0 7px 22px; }
.t-karte { width: 100%; display: grid; grid-template-columns: 58px 1fr; gap: 6px 10px; align-items: start; text-align: left; padding: 14px 12px; border-radius: 16px; border: 1.5px solid var(--linie); background: #fff; min-height: 84px; }
.t-karte .chip { grid-column: 2; justify-self: start; }
.t-karte:hover { border-color: #A9B7CC; }
.t-karte.aktiv { border-color: var(--blau); background: var(--blau-50); box-shadow: 0 0 0 3px rgba(31,58,107,.12); }
.t-karte__zeit { font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; grid-row: span 2; }
.t-karte__zeit small { display: block; font-size: 13px; font-weight: 500; color: var(--text-3); }
.t-karte__text b { display: block; font-size: 16.5px; line-height: 1.25; }
.t-karte__text span { display: block; font-size: 14px; color: var(--text-2); }
.t-karte__text small { display: block; font-size: 13px; color: var(--text-3); }
.t-karte--in_arbeit, .t-karte--beendet { border-color: var(--gelb); }
.t-karte--erledigt, .t-karte--folgetermin, .t-karte--wartet_material { opacity: .7; }

.t-detail { flex: 1; overflow-y: auto; padding: 20px 24px 32px; }
.t-detail__kopf { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.t-detail__kopf h1 { font-family: var(--schrift-schmal); font-weight: 700; font-size: 34px; margin: 6px 0 4px; line-height: 1.1; }
.t-detail__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); }
.t-detail__adresse { display: flex; gap: 6px; align-items: center; font-size: 16.5px; color: var(--text-2); margin: 0; }
.t-detail__plan { text-align: right; flex: none; }
.t-detail__plan small { display: block; font-size: 12.5px; color: var(--text-3); }
.t-detail__plan b { font-size: 21px; font-variant-numeric: tabular-nums; }

.t-aktion { display: flex; align-items: center; gap: 18px; margin: 18px 0 8px; }
.t-aktion .btn--riesig { width: auto; min-width: 400px; }
.t-aktion p { font-size: 14.5px; color: var(--text-3); max-width: 380px; margin: 0; }
.t-aktion--laeuft { background: #fff; border-radius: 18px; padding: 14px 16px; border: 2px solid var(--gelb); box-shadow: 0 6px 20px rgba(242,183,5,.15); }
.t-laeuft { flex: 1; display: flex; gap: 28px; align-items: center; }
.t-laeuft small { display: block; font-size: 12.5px; color: var(--text-3); }
.t-laeuft__zeit { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.t-laeuft__zeit b { grid-column: 1 / -1; font-family: var(--schrift-schmal); font-weight: 700; font-size: 38px; line-height: 1; white-space: nowrap; }
.t-laeuft__zeit b small { display: inline; font-size: 16px; color: var(--text-3); font-family: var(--schrift); font-weight: 500; }
.t-laeuft__personen div { display: flex; gap: 6px; margin-top: 4px; }
.person-knopf { min-width: 58px; min-height: 58px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--linie); background: var(--flaeche); font-weight: 700; font-size: 15px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.person-knopf span { font-size: 11px; font-weight: 500; margin-top: 2px; }
.person-knopf.aktiv { background: var(--blau); border-color: var(--blau); color: #fff; }
.t-laeuft__summe b { font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-aktion--laeuft .btn--gross { min-height: 64px; }
.t-aktion--fertig { background: #fff; border-radius: 18px; padding: 14px 18px; gap: 14px; border: 1px solid var(--linie-2); }
.t-aktion--fertig > .ic { color: var(--blau); }
.t-aktion--fertig > div { flex: 1; }
.t-aktion--fertig b { display: block; font-size: 16px; }
.t-aktion--fertig span { font-size: 15px; color: var(--text-2); }
.t-aktion__ok { margin-left: auto; color: var(--ok) !important; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.t-aktion--fertig .btn { margin-left: auto; }

.t-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--linie); margin: 12px 0 18px; overflow-x: auto; }
.t-tab { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 58px; font-weight: 600; font-size: 16px; color: var(--text-2); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.t-tab.aktiv { color: var(--blau); border-bottom-color: var(--blau); }
.t-tab em { font-style: normal; font-size: 12px; font-weight: 700; background: var(--blau-100); color: var(--blau); border-radius: 999px; padding: 2px 8px; }
.t-tab em.warn { background: var(--warn); color: #fff; }

.t-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.t-box { background: #fff; border-radius: 18px; padding: 18px 20px; border: 1px solid var(--linie-2); }
.t-box h3 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.t-box h3 .pflicht { font-style: normal; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--warn); background: var(--warn-100); padding: 1px 7px; border-radius: 999px; }
.t-box p { margin: 6px 0; }
.t-box--breit { grid-column: 1 / -1; }
.t-gross { font-size: 19px; font-weight: 600; }
.t-tel { display: flex; gap: 8px; align-items: center; font-size: 18px; font-weight: 700; color: var(--blau); }
.t-notiz { display: flex; gap: 8px; align-items: flex-start; background: var(--flaeche); border-radius: 10px; padding: 9px 11px; font-size: 14.5px; color: var(--text-2); }
.t-notiz .ic { color: var(--blau); margin-top: 2px; }
.t-historie { list-style: none; margin: 0; padding: 0; }
.t-historie li { display: grid; grid-template-columns: 104px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie-2); font-size: 15px; }
.t-historie li:last-child { border-bottom: 0; }
.t-historie span, .t-historie small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.t-historie b { font-weight: 600; }
.t-zeile { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.t-zeile p { flex: 1; min-width: 260px; margin: 0; font-size: 14px; }
.t-zeile .feld { flex: 1; min-width: 220px; min-height: 56px; font-size: 17px; }
.t-zeile .btn { min-height: 56px; }

/* Fotos */
.t-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-fotos__spalte { background: #fff; border-radius: 18px; padding: 14px; border: 1px solid var(--linie-2); }
.t-fotos__spalte h3 { display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 2px 2px 10px; }
.t-fotos__spalte h3 span { color: var(--blau); }
.t-fotos__raster { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.foto { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #D8DDE4; aspect-ratio: 10 / 7; }
.foto svg, .foto img { width: 100%; height: 100%; display: block; object-fit: cover; }
.foto figcaption { position: absolute; right: 6px; bottom: 4px; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); display: flex; align-items: center; gap: 3px; }
.foto__weg { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.foto--leer { grid-column: 1 / -1; aspect-ratio: auto; min-height: 104px; border: 2px dashed var(--linie); background: var(--flaeche); color: var(--text-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; }
.foto--leer:hover { border-color: var(--blau); color: var(--blau); }
.foto--leer svg.ic { width: 28px; height: 28px; }

/* Material */
.t-material { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.suchfeld { position: relative; }
.suchfeld > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.suchfeld .feld { padding-left: 42px; }
.t-material .suchfeld .feld { min-height: 54px; font-size: 17px; }
.t-favoriten { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.t-favoriten small { width: 100%; display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.t-favoriten .chip-knopf { min-height: 44px; font-size: 14px; }
.t-treffer { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie-2); }
.t-treffer li { border-bottom: 1px solid var(--linie-2); }
.t-treffer li.gedimmt { padding: 12px 4px; font-size: 14px; }
.t-treffer button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 6px; min-height: 58px; text-align: left; color: var(--blau); }
.t-treffer button:hover { background: var(--blau-50); }
.t-treffer b { display: block; color: var(--text); font-weight: 600; }
.t-treffer small { color: var(--text-3); font-size: 12.5px; }
.t-freitext { margin-top: 16px; border-top: 1px solid var(--linie-2); padding-top: 12px; }
.t-freitext small { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.t-freitext > div { display: flex; gap: 8px; flex-wrap: wrap; }
.t-freitext #t-frei-name { flex: 1; min-width: 160px; }
.t-freitext .feld, .t-freitext .btn { min-height: 52px; }
.t-verbaut { list-style: none; margin: 0; padding: 0; }
.t-verbaut li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie-2); }
.t-verbaut li > div:first-child { flex: 1; }
.t-verbaut b { display: block; font-weight: 600; }
.t-verbaut small { color: var(--text-3); font-size: 12.5px; }
.t-verbaut .stepper button { width: 48px; height: 48px; }
.t-verbaut .btn-icon { width: 48px; height: 48px; }

/* Bericht und Unterschrift */
.t-bausteine { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.t-bausteine .chip-knopf { min-height: 46px; font-size: 14.5px; }
.t-bericht { font-size: 17px; min-height: 230px; }
.t-sig-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 16px; align-items: start; }
.t-sig-zusammenfassung p { font-size: 15px; }
.sig-feld { position: relative; border: 2px dashed var(--linie); border-radius: 16px; background: #FCFCFD; margin-bottom: 14px; }
.sig-feld canvas { width: 100%; height: 250px; display: block; touch-action: none; cursor: crosshair; }
.sig-feld__linie { position: absolute; left: 28px; right: 28px; bottom: 46px; border-top: 1.5px solid #C5CCD6; font-size: 12px; color: var(--text-3); padding-top: 4px; pointer-events: none; }
.t-unterschrift-fertig img { max-width: 560px; width: 100%; border: 1px solid var(--linie); border-radius: 12px; background: #fff; display: block; margin: 6px 0 10px; }

/* Abschluss */
.t-abschluss { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.t-abschluss .pruefliste li { min-height: 60px; }
.t-abschluss .pruefliste b { font-size: 15.5px; }
.ergebnis { display: grid; gap: 8px; }
.ergebnis__karte { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 16px; border: 1.5px solid var(--linie); border-radius: 14px; background: #fff; min-height: 66px; }
.ergebnis__karte b { display: block; font-size: 16px; }
.ergebnis__karte small { font-size: 13px; color: var(--text-3); }
.ergebnis__karte.aktiv { border-color: var(--blau); background: var(--blau-50); }
.t-feld { display: block; margin: 12px 0; }
.t-feld > span { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.t-feld .feld { min-height: 52px; font-size: 16.5px; }
.t-abschluss .btn--gross { margin-top: 10px; min-height: 64px; font-size: 19px; }
.t-fertig { text-align: center; padding: 36px; }
.t-fertig > .ic { width: 64px; height: 64px; padding: 12px; border-radius: 50%; background: var(--ok-100); color: var(--ok); }
.t-fertig h3 { font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--text); justify-content: center; margin: 12px 0 6px; }

/* Überlagerungen: PIN, Besetzung, Kamera */
.t-ov { position: absolute; inset: 0; z-index: 40; }
.t-ov--dialog { background: rgba(12,22,40,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.t-ov__karte { background: #fff; border-radius: 22px; width: 760px; max-width: 100%; max-height: 100%; overflow-y: auto; padding: 22px 26px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.t-ov__kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.t-ov__kopf h2 { display: flex; gap: 10px; align-items: center; font-family: var(--schrift-schmal); font-size: 28px; margin: 0; }
.t-ov__kopf h2 .ic { color: var(--blau); }
.t-ov__lead { font-size: 16px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t-ov__fuss { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.t-pin-personen, .t-besetzung-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-pin-person, .t-bes-person { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border: 1.5px solid var(--linie); border-radius: 16px; min-height: 72px; background: #fff; }
.t-pin-person b, .t-bes-person b { display: block; font-size: 16px; }
.t-pin-person small, .t-bes-person small { font-size: 13px; color: var(--text-3); }
.t-pin-person:hover:not(:disabled), .t-bes-person:hover:not(:disabled) { border-color: var(--blau); }
.t-pin-person.gesperrt, .t-bes-person.gesperrt { opacity: .45; }
.t-bes-person.aktiv { border-color: var(--blau); background: var(--blau-50); }
.t-bes-person .haken { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--flaeche); display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); flex: none; }
.t-bes-person.aktiv .haken { background: var(--blau); color: #fff; }
.pin-punkte { display: flex; gap: 18px; justify-content: center; margin: 18px 0 12px; }
.pin-punkte i { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--blau); }
.pin-punkte i.voll { background: var(--blau); }
.pin-punkte.wackeln { animation: wackeln .35s; }
@keyframes wackeln { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.pin-feld { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 360px; margin: 10px auto 0; }
.pin-feld button { height: 72px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); font-size: 28px; font-weight: 600; }
.pin-feld button:active { background: var(--blau-100); }
.t-pin-status { display: flex; gap: 14px; align-items: center; background: var(--flaeche); border-radius: 16px; padding: 16px; margin: 12px 0; }
.t-pin-status b { display: block; font-size: 20px; }
.t-pin-status span { color: var(--text-2); }
.t-pin-knoepfe { display: grid; gap: 10px; margin: 14px 0; }
.t-pin-knoepfe .btn--riesig { min-height: 76px; font-size: 24px; }

.t-kamera { background: #0B0F16; color: #fff; display: flex; flex-direction: column; }
.t-kamera__oben { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.t-kamera__hinweis { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: rgba(255,255,255,.75); margin-right: auto; }
.t-kamera__oben .btn { min-height: 50px; font-size: 16px; }
.t-kamera__sucher { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.t-kamera__bild { height: 100%; max-height: 520px; aspect-ratio: 10 / 7; }
.t-kamera__bild svg { width: 100%; height: 100%; display: block; }
.t-kamera__raster { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, transparent calc(33.3% - 1px), rgba(255,255,255,.25) 33.3%, transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), rgba(255,255,255,.25) 66.6%, transparent calc(66.6% + 1px)),
              linear-gradient(to bottom, transparent calc(33.3% - 1px), rgba(255,255,255,.25) 33.3%, transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), rgba(255,255,255,.25) 66.6%, transparent calc(66.6% + 1px)); }
.t-kamera__sucher.blitz::after { content: ''; position: absolute; inset: 0; background: #fff; animation: blitz .25s forwards; }
@keyframes blitz { from { opacity: .9; } to { opacity: 0; } }
.t-kamera__unten { display: flex; align-items: center; justify-content: space-between; padding: 16px 26px 22px; gap: 20px; }
.t-kamera__thumbs { display: flex; gap: 8px; width: 330px; }
.t-kamera__thumb { width: 72px; height: 50px; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255,255,255,.8); }
.t-kamera__thumb svg { width: 100%; height: 100%; display: block; }
.ausloeser { width: 88px; height: 88px; border-radius: 50%; border: 5px solid #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ausloeser span { width: 68px; height: 68px; border-radius: 50%; background: #fff; transition: transform .08s; }
.ausloeser:active span { transform: scale(.9); }
.t-kamera__echt { width: 330px; justify-content: center; min-height: 50px; cursor: pointer; }
