/* Handy-App: große Schrift, große Knöpfe, wichtige Knöpfe unten im Daumenbereich */
body { font-size: 17px; line-height: 1.4; min-height: 100dvh; }
#app { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }

h1 { font-size: 1.35rem; margin: 4px 0 0; font-weight: 700; }
h2 { font-size: 1.1rem; margin: 0; font-weight: 700; }
.karte { background: var(--pn); border: var(--rand) var(--ln); border-radius: var(--r-karte); padding: 14px 16px; }
.zeile { display: flex; align-items: center; gap: 10px; }
.zeile.zw { justify-content: space-between; }
.gross { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.riesig { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }

.knopf.voll { width: 100%; min-height: 56px; font-size: 1.1rem; border-radius: var(--r-karte); }
.knopf.rund { width: 52px; height: 52px; padding: 0; border-radius: var(--r-karte); font-size: 1.3rem; }

/* Untere Leiste */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; background: var(--pn); border-top: 1px solid var(--ln); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 20; }
.leiste button { background: none; border: 0; color: var(--mu); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .78rem; font-weight: 600; padding: 4px 0; min-height: 52px; }
.leiste button .ikon { width: 26px; height: 26px; }
.leiste button[aria-current=page] { color: var(--ac); }

.netz { position: sticky; top: 0; z-index: 30; background: var(--warn); color: #1a1a1a; text-align: center; font-weight: 700; padding: 6px 12px; font-size: .9rem; }

/* Anmeldung */
.anmeldung { min-height: 80dvh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.4rem; }
.logo img { width: 44px; height: 44px; }
.anmeldung input { font-size: 1.3rem; padding: 14px; text-align: center; border-radius: var(--r-karte); }
.pin-punkte { display: flex; justify-content: center; gap: 14px; height: 22px; }
.pin-punkte span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--mu); }
.pin-punkte span.voll { background: var(--ac); border-color: var(--ac); }
.tastatur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tastatur button { min-height: 62px; font-size: 1.5rem; font-weight: 700; border-radius: var(--r-karte); border: var(--rand) var(--ln); background: var(--pn); }
.tastatur button.ok { background: var(--ac); color: var(--on); border-color: var(--ac); }
.fehlertext { color: var(--bad); font-weight: 600; text-align: center; min-height: 1.4em; }

/* Für wen buche ich (Kolonnenführer) */
.fuer { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.fuer button { flex: none; border: var(--rand) var(--ln); background: var(--pn); border-radius: var(--r-pille); padding: 8px 14px; font-weight: 600; white-space: nowrap; min-height: 44px; }
.fuer button[aria-pressed=true] { background: var(--ac); color: var(--on); border-color: var(--ac); }

/* Wochenleiste */
.woche-kopf { display: flex; align-items: center; justify-content: space-between; }
.woche-kopf .knopf { width: 48px; height: 48px; padding: 0; }
.woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tag { background: var(--pn); border: 2px solid var(--ln); border-radius: var(--r-karte); padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 76px; font-weight: 700; }
.tag small { font-size: .72rem; font-weight: 600; color: var(--mu); }
.tag .stunden { font-size: .78rem; font-weight: 700; }
.tag .marker { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.tag.gebucht .marker { background: var(--ok); color: #06240f; }
.tag.fehlt .marker { background: var(--bad); }
.tag.frei .marker { background: var(--pn2); }
.tag.zukunft { opacity: .45; }
.tag.heute { border-color: var(--mu); }
.tag[aria-pressed=true] { border-color: var(--ac); background: var(--ac-weich); }
.tag .marker .ikon { width: 15px; height: 15px; stroke-width: 3; }

/* Tageskarte */
.tageskarte { display: flex; flex-direction: column; gap: 12px; }
.projektliste { display: flex; flex-direction: column; gap: 6px; }
.projektliste .p { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.hinweise { display: flex; flex-wrap: wrap; gap: 6px; }

/* Bearbeiten */
.blatt { position: fixed; inset: 0; background: var(--bg); z-index: 40; overflow-y: auto; }
.blatt-innen { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.blatt-fuss { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--ln); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 41; }
.blatt-fuss > div { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }
.stepper { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; }
.stepper .wert { min-width: 92px; text-align: center; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper label { font-weight: 700; }
.summe { display: flex; justify-content: space-between; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--ln); }
.projekt-zeile { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ln); }
.projekt-zeile:last-child { border-bottom: 0; }
.projekt-zeile .name { font-weight: 700; }
.projekt-zeile .dauer { display: flex; align-items: center; gap: 8px; }
.projekt-zeile .dauer .knopf { width: 44px; height: 44px; padding: 0; }
.projekt-zeile .dauer b { min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.fahrzeit { display: flex; justify-content: space-between; color: var(--mu); font-weight: 600; padding-top: 8px; }
.waehlbar { display: flex; flex-wrap: wrap; gap: 8px; }
.waehlbar button { border: var(--rand) var(--ln); background: var(--pn2); border-radius: var(--r-pille); padding: 10px 14px; font-weight: 600; min-height: 44px; }
.waehlbar button[aria-pressed=true] { background: var(--ac); color: var(--on); border-color: var(--ac); }
.fehlerbox { background: var(--bad-weich); color: var(--bad); border-radius: var(--r-knopf); padding: 10px 12px; font-weight: 600; }

/* Projektauswahl */
.auswahl-liste { display: flex; flex-direction: column; gap: 8px; }
.auswahl-liste button { text-align: left; background: var(--pn); border: var(--rand) var(--ln); border-radius: var(--r-karte); padding: 14px 16px; font-weight: 700; min-height: 56px; display: flex; justify-content: space-between; align-items: center; }
.auswahl-liste .zuletzt { color: var(--ac); font-size: .8rem; }
.suchfeld { position: sticky; top: 0; background: var(--bg); padding: 4px 0 8px; z-index: 2; }
.suchfeld input { font-size: 1.1rem; padding: 14px; border-radius: var(--r-karte); }

/* Abwesenheiten */
.tag.abwesend .marker { background: var(--info); color: #08203f; font-size: .62rem; font-weight: 800; width: 26px; border-radius: var(--r-klein); }
.abw-zeile { display: flex; align-items: center; gap: 8px; }
.liste { display: flex; flex-direction: column; margin-top: 6px; }
.listen-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ln); }
.listen-zeile:last-child { border-bottom: 0; }
.listen-zeile .rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.datum-feld { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.datum-feld input { font-size: 1.15rem; padding: 14px; border-radius: var(--r-karte); min-height: 56px; }

/* Wartende Buchungen (offline) */
.wartet { background: var(--warn-weich); color: var(--warn); border-radius: var(--r-knopf); padding: 10px 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; }

/* Ich */
.theme-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-wahl button { border: 2px solid var(--ln); border-radius: min(var(--r-karte), 16px); padding: 12px 6px; background: var(--bg-bild), var(--bg); color: var(--tx); font-family: var(--schrift); font-weight: 700; min-height: 60px; font-size: .86rem; overflow-wrap: anywhere; }
.theme-wahl button[aria-pressed=true] { border-color: var(--ac); outline: 3px solid var(--ac); }

/* Scanner (vorbereitet für Phase 5) */
.scanner { position: fixed; inset: 0; background: #000; z-index: 60; display: grid; place-items: center; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-rahmen { position: relative; width: 66vw; max-width: 320px; aspect-ratio: 1; border: 3px solid var(--ac); border-radius: var(--r-karte); box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.scanner-hinweis { position: absolute; top: 18%; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }
.scanner-abbruch { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); min-width: 200px; min-height: 56px; }

/* Material und Foto */
label.knopf { cursor: pointer; }
.knopf.waehl-projekt { justify-content: space-between; text-align: left; font-weight: 700; }
.stepper input.wert { width: 92px; padding: 6px; border-radius: var(--r-knopf); }
.foto-vorschau { width: 100%; max-height: 42vh; object-fit: contain; border-radius: var(--r-karte); background: var(--pn2); }
.auswahl-liste button .gedaempft { font-weight: 500; font-size: .85rem; }
