/* TORZEISE Monteur-App. Große Knöpfe, Systemschrift. */
:root { --blau: #001659; --orange: #FF5F1F; --text: #0E1530; --leise: #4A5578; --linie: #D5DAE6; --grund: #F4F6FA; --gruen: #1F7A68; --rot: #B42318; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--grund); }
a { color: var(--blau); }
#app { min-height: 100%; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.laden { padding: 40px; text-align: center; color: var(--leise); }

.oben { background: var(--blau); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 12px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; }
.oben .t { font-weight: 700; flex-grow: 1; font-size: 17px; }
.oben .zur { color: #fff; text-decoration: none; font-size: 26px; line-height: 1; padding: 0 6px 0 0; }
.netz { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #0A2672; display: inline-flex; align-items: center; gap: 6px; }
.netz::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; }
.netz.aus::before { background: var(--orange); }

.seite { padding: 14px 14px 100px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 14px; }
.karte.eigene { border-left: 6px solid var(--orange); }
.kap { font-size: 13px; font-weight: 700; color: var(--leise); text-transform: uppercase; letter-spacing: .04em; }
.leise { color: var(--leise); font-size: 14px; }
h1 { font-size: 22px; margin: 2px 0; color: var(--blau); }
h2 { font-size: 18px; margin: 0; color: var(--blau); }

.knopf { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px; border: 2px solid var(--blau); background: #fff; color: var(--blau); font-family: inherit; font-weight: 700; font-size: 17px; text-decoration: none; padding: 0 16px; cursor: pointer; width: 100%; }
.knopf.haupt { background: var(--orange); border-color: var(--orange); color: var(--blau); }
.knopf.dunkel { background: var(--blau); color: #fff; }
.knopf[disabled] { opacity: .45; }
.knopf.riesig { min-height: 72px; font-size: 20px; border-radius: 16px; }
.reihe { display: flex; gap: 10px; }
.reihe > * { flex: 1; }

.check { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #E3E7F1; }
.check:first-of-type { border-top: 0; }
.kreis { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--linie); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.kreis.ok { background: var(--gruen); border-color: var(--gruen); }
.check b { display: block; }

.hinweis { background: #FFF1EA; border: 2px solid var(--orange); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.hinweis ul { margin: 0; padding-left: 20px; }

.liste { display: flex; flex-direction: column; gap: 10px; }
.eintrag { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.eintrag .farbe { width: 6px; align-self: stretch; border-radius: 3px; background: var(--f, var(--linie)); }
.eintrag .mitte { flex-grow: 1; min-width: 0; }
.eintrag b { display: block; color: var(--blau); }
.eintrag .pfeil { color: var(--leise); font-size: 24px; }
.marke { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #FFE6DB; color: #8A2E07; }

.suche { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #9AA3BD; border-radius: 12px; }

.akten-reiter { display: flex; background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 56px; z-index: 4; }
.akten-reiter a { flex: 1; text-align: center; padding: 14px 2px; font-weight: 700; color: var(--leise); text-decoration: none; font-size: 14px; white-space: nowrap; }
.akten-reiter a.an { color: var(--blau); box-shadow: inset 0 -4px 0 var(--orange); }
.dok { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #E3E7F1; cursor: pointer; }
.dok:first-child { border-top: 0; }
.dok .sym { width: 42px; height: 42px; border-radius: 10px; background: #DCE3F7; color: var(--blau); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.dok .mitte { flex-grow: 1; min-width: 0; }
.dok b { display: block; overflow-wrap: anywhere; }
.offline-ok { font-size: 12px; color: var(--gruen); font-weight: 700; }
details.mail { border-top: 1px solid #E3E7F1; padding: 12px 0; }
details.mail:first-child { border-top: 0; }
details.mail summary { font-weight: 700; cursor: pointer; }
.mailtext { white-space: pre-wrap; font-size: 15px; background: var(--grund); border-radius: 10px; padding: 10px; margin-top: 8px; }

.unten { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--linie); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); z-index: 6; }
.unten nav { display: flex; width: 100%; max-width: 560px; }
.unten a { flex: 1; text-align: center; padding: 10px 2px 12px; font-size: 13px; font-weight: 700; color: var(--leise); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.unten a .s { font-size: 22px; line-height: 1; }
.unten a.an { color: var(--blau); }
.unten a.an .s { color: var(--orange); }

.anmeldung { padding: 40px 20px; display: flex; flex-direction: column; gap: 14px; }
.anmeldung .logo { align-self: center; background: var(--orange); color: var(--blau); font-weight: 800; font-size: 28px; border-radius: 14px; padding: 10px 16px; }
.anmeldung label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--leise); font-size: 15px; }
.anmeldung input { font: inherit; font-size: 20px; padding: 14px; border: 1px solid #9AA3BD; border-radius: 12px; }
.anmeldung input:focus { outline: 3px solid var(--orange); border-color: var(--orange); }
.fehler { background: #FDE7E4; color: var(--rot); border-radius: 12px; padding: 12px; font-weight: 600; }
.leer { text-align: center; color: var(--leise); padding: 24px 10px; }
.betrachter { position: fixed; inset: 0; background: #fff; z-index: 20; display: flex; flex-direction: column; }
.betrachter iframe, .betrachter img { flex-grow: 1; border: 0; width: 100%; object-fit: contain; background: #333; }

/* Etappe 2: Erfassen, Einträge */
.knopf.klein { min-height: 40px; width: auto; font-size: 15px; padding: 0 14px; border-radius: 10px; flex-shrink: 0; }
.check .mitte { flex-grow: 1; }
.check b, .check .leise { display: block; }
.formular { display: flex; flex-direction: column; gap: 14px; }
.formular label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--leise); font-size: 15px; }
.formular select, .formular textarea { font: inherit; font-size: 17px; padding: 12px; border: 1px solid #9AA3BD; border-radius: 12px; background: #fff; color: var(--text); width: 100%; }
.formular textarea { resize: vertical; }
.formular label.knopf { flex-direction: row; color: inherit; font-size: 17px; }
.formular label.knopf.dunkel { color: #fff; }
.chipreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.chipwahl { flex-direction: row !important; align-items: center; gap: 6px !important; border: 2px solid var(--linie); border-radius: 999px; padding: 9px 14px; color: var(--text) !important; font-size: 15px !important; }
.chipwahl:has(input:checked) { border-color: var(--orange); background: #FFF1EA; }
.chipwahl input { accent-color: var(--orange); width: 18px; height: 18px; }
.ebilder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.ebilder img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--linie); display: block; }
.ebilder.gross { grid-template-columns: repeat(3, 1fr); margin: 0; }
.fbox { position: relative; }
.weg { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 22, 89, .8); color: #fff; font-size: 20px; line-height: 1; }
.ekarte { display: flex; flex-direction: column; gap: 4px; }
.ekopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.marke.art { background: #DCE3F7; color: var(--blau); }
.etext { white-space: pre-wrap; }
.eoffen { background: #FFF1EA; border-radius: 10px; padding: 8px 10px; margin-top: 4px; }
.estatus { font-weight: 700; font-size: 14px; margin-top: 6px; }
.estatus.orange { color: #8A2E07; }
.estatus.rot { color: var(--rot); }
.estatus.blau { color: var(--blau); }
.estatus.gruen { color: var(--gruen); }
.estatus.grau { color: var(--leise); }
a.knopf.haupt.riesig { text-decoration: none; }
