:root { --gruen: #14532d; --gruen-hell: #dcfce7; --text: #111827; --grau: #4b5563; --rand: #d1d5db; --rand-eingabe: #6b7280; --fokus: #1d4ed8; --fehler: #991b1b; --fehler-hell: #fee2e2; --ok: #166534; --flaeche: #ffffff; --grund: #f3f4f6; }
@media (prefers-color-scheme: dark) { :root { --text: #f3f4f6; --grau: #d1d5db; --rand: #4b5563; --rand-eingabe: #9ca3af; --fokus: #93c5fd; --flaeche: #1f2937; --grund: #111827; --gruen-hell: #14532d; --fehler-hell: #7f1d1d; --fehler: #fecaca; --ok: #bbf7d0; } }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.45 system-ui, sans-serif; color: var(--text); background: var(--grund); }
#app { display: flex; flex-direction: column; min-height: 100dvh; }
header { background: var(--gruen); color: #fff; padding: .6rem 1rem; }
header h1 { margin: 0; font-size: 1.25rem; }
main { flex: 1; padding: 1rem 1rem 6rem; max-width: 40rem; width: 100%; margin-inline: auto; }
h2 { margin: .2rem 0 .6rem; } h3 { margin: 1.2rem 0 .4rem; } h4 { margin: 0 0 .4rem; }
.hinweis { color: var(--grau); margin-top: 0; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: .75rem; padding: .9rem; margin: .7rem 0; }
.feld, .stepper { margin: .7rem 0; display: flex; flex-direction: column; gap: .3rem; }
label { font-weight: 600; }
input, select, button { font: inherit; color: inherit; }
input[type=number], input[type=text], input[type=date], select { min-height: 48px; padding: .4rem .6rem; border: 1px solid var(--rand-eingabe); border-radius: .5rem; background: var(--flaeche); width: 100%; }
.stepper .reihe { display: flex; gap: .5rem; }
.stepper input { text-align: center; font-size: 1.4rem; font-weight: 700; }
.schritt { min-width: 56px; min-height: 48px; font-size: 1.6rem; border: 1px solid var(--gruen); background: var(--gruen-hell); border-radius: .5rem; cursor: pointer; }
button { cursor: pointer; }
.haupt { width: 100%; min-height: 52px; background: var(--gruen); color: #fff; border: 0; border-radius: .6rem; font-weight: 700; font-size: 1.1rem; margin-top: .6rem; }
.klein { min-height: 44px; min-width: 44px; padding: .2rem .8rem; border: 1px solid var(--rand-eingabe); background: var(--flaeche); border-radius: .5rem; }
.gefahr-knopf { min-height: 48px; padding: .3rem 1rem; border: 1px solid var(--fehler); background: var(--fehler-hell); color: var(--fehler); border-radius: .5rem; font-weight: 600; }
.gefahr { border-color: var(--fehler); }
ul { list-style: none; margin: 0; padding: 0; } li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .25rem 0; border-top: 1px solid var(--rand); } li:first-child { border-top: 0; }
.meldung { padding: .6rem .8rem; border-radius: .5rem; margin: .5rem 0; font-weight: 600; }
.meldung.fehler { background: var(--fehler-hell); color: var(--fehler); } .meldung.ok { background: var(--gruen-hell); color: var(--ok); }
.leer { color: var(--grau); }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--flaeche); border-top: 1px solid var(--rand); z-index: 5; }
.tabs button { flex: 1; min-width: 0; min-height: 56px; border: 0; background: transparent; font-weight: 600; padding: .3rem .1rem; font-size: .84rem; line-height: 1.15; overflow-wrap: anywhere; }
.tabs button[aria-current=page] { color: var(--gruen); border-top: 3px solid var(--gruen); }
@media (prefers-color-scheme: dark) { .tabs button[aria-current=page] { color: #bbf7d0; border-color: #bbf7d0; } }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--flaeche) 85%, transparent); }
header :focus-visible, .haupt:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #1d4ed8; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.gross { font-size: 1.8rem; font-weight: 800; margin: .1rem 0; }
label input[type=checkbox] { width: 44px; height: 44px; vertical-align: middle; margin: 0 .4rem 0 0; }
.meldung.info { background: var(--grund); color: var(--text); font-weight: 500; border: 1px solid var(--rand); }
.volumen li { display: grid; grid-template-columns: 8.5rem 1fr 7.5rem; gap: .5rem; align-items: center; }
.balken { display: block; height: .8rem; background: var(--rand); border-radius: .4rem; overflow: hidden; }
.balken > span { display: block; height: 100%; background: var(--gruen); }
@media (prefers-color-scheme: dark) { .balken > span { background: #86efac; } }
.zahl { font-size: .9rem; text-align: right; }
.grafik { width: 100%; height: auto; color: var(--gruen); } @media (prefers-color-scheme: dark) { .grafik { color: #bbf7d0; } }
input[type=file] { width: 100%; min-height: 48px; padding: .6rem .5rem; }
header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
header > .klein { background: transparent; color: inherit; border-color: currentColor; }
dialog { max-width: min(92vw, 34rem); border-radius: 12px; border: 2px solid var(--rand-eingabe); padding: 1rem; background: var(--flaeche); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog textarea { width: 100%; box-sizing: border-box; font: inherit; }
