:root {
  --holz-dunkel: #412402; --holz: #5a3a17; --holz-mittel: #854f0b; --gold: #ba7517;
  --kachel: #fac775; --kachel-hell: #fbdca6; --creme: #faeeda; --creme-2: #f4e2c2; --linie: #e2c99a;
  --text: #412402; --text-2: #7a5320; --gruen: #2f8a4a; --rot: #a32d2d;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--creme); color: var(--text); font: 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; overscroll-behavior: none; }
input, button { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.ico { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.kopf {
  position: sticky; top: 0; z-index: 5; padding: calc(var(--safe-t) + 10px) 16px 12px; color: var(--creme);
  background-color: var(--holz);
  background-image: repeating-linear-gradient(178deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(181deg, rgba(0,0,0,.10) 0 1px, transparent 1px 23px), linear-gradient(180deg, #6b4520, #4d300f);
  display: flex; align-items: center; gap: 10px;
}
.kopf h1 { font-size: 24px; font-weight: 600; margin: 0; flex: 1; }
.kopf .knopf { color: var(--creme); padding: 4px; display: flex; }
.kopf .knopf .ico { width: 24px; height: 24px; }
.kopf .zurueck { font-size: 17px; }

#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { padding: 14px 14px calc(var(--safe-b) + 24px); flex: 1 0 auto; width: 100%; max-width: 900px; margin: 0 auto; }
main.schmal { max-width: 480px; }

.gruss { margin: 4px 2px 12px; color: var(--text-2); font-size: 15px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kachel {
  position: relative; background: var(--kachel); border-radius: 16px; padding: 16px 8px 12px; min-height: 118px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--holz-dunkel);
  box-shadow: inset 0 -2px 0 rgba(65,36,2,.12); transition: transform .08s;
}
.kachel:active { transform: scale(.97); }
.kachel .name { font-weight: 600; margin-top: 6px; }
.kachel .sub { font-size: 13px; color: var(--holz-mittel); }
.kachel .lan { position: absolute; top: 6px; right: 8px; font-size: 13px; opacity: .75; }
.fuss { color: var(--text-2); font-size: 13px; text-align: center; margin-top: 18px; }

.ampel { display: block; border-radius: 18px; padding: 18px 16px; margin-bottom: 14px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.ampel-kopf { display: block; font-size: 28px; font-weight: 700; }
.ampel.gruen { background: #2f8a4a; color: #fff; }
.ampel.rot { background: #b3302b; color: #fff; }
.ampel.grau { background: var(--creme-2); color: var(--text-2); }
.ampel-liste { list-style: none; margin: 8px 0 0; padding: 0; font-size: 15px; }
.ampel-liste li { padding: 3px 0; border-top: 1px solid rgba(255,255,255,.3); }
.ampel-liste:empty { display: none; }
.heute h2 { font-size: 20px; margin: 4px 2px 8px; }
.heute .karte { padding: 12px 14px; margin-bottom: 10px; }
.heute .karte h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 0 0 6px; }
.zeile { display: flex; gap: 12px; padding: 5px 0; align-items: baseline; }
.zeile .zeit { flex: 0 0 74px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zeile .zeit.gross-t { font-size: 22px; flex-basis: 84px; }
.zeile .text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.zeile small { display: block; color: var(--text-2); font-size: 13px; }
.leer { color: var(--text-2); margin: 2px 0; font-size: 15px; }
.warnung { background: #f6d6d3; color: #7c1f1f; border-radius: 8px; padding: 6px 10px; margin: 8px 0 0; font-size: 14px; }
.kacheln { margin-top: 16px; }

.karte { background: #fff8ec; border: 1px solid var(--linie); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.karte h2 { font-size: 17px; margin: 0 0 10px; }
.anmelden { text-align: center; margin-top: 16px; }
.anmelden .logo { width: 84px; height: 84px; border-radius: 20px; }
.hinweis { color: var(--text-2); font-size: 14px; }
.gross { display: block; width: 100%; padding: 13px 14px; border-radius: 12px; background: var(--holz); color: var(--creme); font-weight: 600; margin-top: 10px; }
.gross.zweit { background: var(--kachel); color: var(--holz-dunkel); }
.gross.rot { background: var(--rot); color: #fff; }
.klein { padding: 6px 10px; border-radius: 8px; font-size: 14px; background: var(--creme-2); }
.klein.rot { color: var(--rot); }
.haken { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 14px; margin: 14px 2px 6px; color: var(--text-2); }
.haken input { width: 20px; height: 20px; margin: 0; flex: none; }
details { margin-top: 12px; text-align: left; }
summary { color: var(--holz-mittel); cursor: pointer; padding: 6px 2px; }
input[type=password], input[type=text] { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--linie); background: #fff; margin-top: 8px; }
.reihe-form { margin-top: 6px; }
.meldung { min-height: 1.2em; color: var(--rot); font-size: 15px; text-align: center; }
.meldung.gut { color: var(--gruen); }
.meldung.warn { background: #fbe7c2; color: var(--holz-dunkel); border-radius: 12px; padding: 10px; }
.liste { list-style: none; padding: 0; margin: 0; }
.liste li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.liste li div { display: flex; flex-direction: column; }
.liste li small { color: var(--text-2); font-size: 12px; }
.liste li.leer { color: var(--text-2); }
