/* HSPK Stundenzettel – gemeinsames Aussehen für Handy-App und Verwaltung */
:root {
  --bg: #f1f4f5; --surface: #ffffff; --sunk: #e6ecee; --ink: #15262e; --muted: #5b6d75; --line: #d3dde0;
  --accent: #0f6e78; --accent-ink: #ffffff; --accent-soft: #d9eef0; --immo: #8a5a12; --immo-soft: #f6e8cf;
  --good: #2f7a3b; --good-soft: #e1f1e3; --warn: #9a5b00; --warn-soft: #fbecd2; --bad: #a8322b; --bad-soft: #f8e0de;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0f181c; --surface: #172329; --sunk: #1f2e35; --ink: #e3ecef; --muted: #93a6ae; --line: #2c3d45;
  --accent: #4fb7c1; --accent-ink: #082024; --accent-soft: #173c42; --immo: #e0b26a; --immo-soft: #3a2b14;
  --good: #7cc98a; --good-soft: #1b3321; --warn: #e7b25e; --warn-soft: #3a2c14; --bad: #f08a82; --bad-soft: #3d1d1b;
  color-scheme: dark } }

* { box-sizing: border-box }
html, body { margin: 0 }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.15 }
h1 { font-size: 1.5rem } h2 { font-size: 1.2rem } h3 { font-size: 1rem }
button, input, select { font: inherit; color: inherit }
[hidden] { display: none !important }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums }
.muted { color: var(--muted) } .small { font-size: .85rem }
.label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em }
.brand span { color: var(--accent) }
.linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 4px; font-weight: 600; font-size: .85rem }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0 }
.panel { padding: 18px; display: grid; gap: 14px }
.field { display: grid; gap: 5px }
.field label { font-size: .82rem; font-weight: 600 }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-height: 46px }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.err { color: var(--bad); font-size: .88rem; min-height: 1.2em }
.btn { border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 600; cursor: pointer; background: var(--accent); color: var(--accent-ink); min-height: 46px }
.btn:disabled { opacity: .6; cursor: default }
.btn.ghost { background: var(--sunk); color: var(--ink) }
.btn.danger { background: var(--bad-soft); color: var(--bad) }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; border-radius: 8px }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap }
.btnrow .btn { flex: 1 }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap }
.chip.good { background: var(--good-soft); color: var(--good) }
.chip.warn { background: var(--warn-soft); color: var(--warn) }
.chip.bad { background: var(--bad-soft); color: var(--bad) }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-right: 6px; white-space: nowrap }
.tag.GmbH { background: var(--accent-soft); color: var(--accent) }
.tag.GbR { background: var(--immo-soft); color: var(--immo) }
.tag.obj { background: var(--sunk); color: var(--ink); font-weight: 500 }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 20; max-width: calc(100% - 32px) }
.center { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 10px; max-width: 34ch; margin: 0 auto }
