/* Einsatzplan Honisch – gemeinsame Gestaltung */
@font-face { font-family: 'Archivo'; font-weight: 400; font-display: swap; src: url('/fonts/archivo-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-weight: 400; font-display: swap; src: url('/fonts/archivo-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-weight: 600; font-display: swap; src: url('/fonts/archivo-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Archivo'; font-weight: 600; font-display: swap; src: url('/fonts/archivo-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: 'Archivo'; font-weight: 700; font-display: swap; src: url('/fonts/archivo-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Archivo'; font-weight: 700; font-display: swap; src: url('/fonts/archivo-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: 'Archivo'; font-weight: 800; font-display: swap; src: url('/fonts/archivo-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --red: #B3141C; --red-dark: #8E0F16; --red-soft: #FBECEC; --red-pill: #F6E3E3;
  --ink: #1A1A1A; --ink-2: #3A3A3A; --muted: #5A5A5A;
  --line: #E4E1DC; --line-2: #EFECE7; --ground: #F5F3EF; --card: #FFFFFF; --grey: #F0EEEA;
  --green: #22562F; --green-soft: #E7F1EA; --amber: #6B4100; --amber-ink: #4A3000; --amber-soft: #FFF4E0; --amber-line: #F0D9A8;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans Arabic', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--ground); font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
a { color: var(--red); } a:hover { color: var(--red-dark); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; } h2 { font-size: 18px; font-weight: 700; } h3 { font-size: 16px; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #1F5FBF; outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .bold { font-weight: 700; }
.hidden { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 2px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; } .btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: #fff; border-color: #D9D5CF; color: var(--ink-2); font-weight: 600; }
.btn-outline { background: #fff; border-color: var(--red); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-link { background: none; border: none; color: var(--red); font-weight: 700; min-height: 44px; padding: 0 8px; }
.btn-block { width: 100%; }
.btn:disabled { background: #D9D5CF; color: #4A4A4A; border-color: transparent; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.box { border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.box-green { background: var(--green-soft); color: #1F3D27; } .box-green .t { color: var(--green); font-weight: 700; }
.box-amber { background: var(--amber-soft); color: var(--amber-ink); } .box-amber .t { color: var(--amber); font-weight: 700; }
.box-grey { background: var(--grey); color: var(--ink-2); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill-free { background: var(--green-soft); color: var(--green); } .pill-full { background: var(--red-pill); color: var(--red-dark); }
.pill-grey { background: var(--grey); color: #4A4A4A; } .pill-amber { background: var(--amber-soft); color: var(--amber); }
.status-free { color: var(--green); font-weight: 700; } .status-full { color: var(--red-dark); font-weight: 700; }

/* Auswahl-Kacheln und Chips */
.opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; border-radius: 10px; border: 2px solid var(--line); background: #fff; padding: 8px 4px; }
.opt[aria-pressed="true"], .chip[aria-pressed="true"], .wide[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.opt .time { font-size: 17px; font-weight: 700; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; }
.wide { min-height: 52px; width: 100%; text-align: start; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-weight: 600; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Formulare */
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=time], select {
  width: 100%; min-height: 46px; border: 2px solid #D9D5CF; border-radius: 10px; padding: 0 12px; background: #fff;
}

/* Login-Seiten */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.login-card .logo { height: 40px; width: auto; align-self: flex-start; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }

/* Schalter */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: none; border: none; padding: 0; font-weight: 600; font-size: 14px; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #BDB8B0; flex: none; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] .track { background: var(--green); }
.switch[aria-checked="true"] .knob { left: 21px; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; max-width: calc(100% - 32px); z-index: 50; }
.toast.err { background: var(--red-dark); }
