/* Einsatzplanung – Teamflex-Rot als Akzent, sonst ruhig. Schrift: Barlow (Hallen-Beschilderung), Zahlen tabellarisch. */
:root {
  --red: #C1002B; --red-dark: #8F0020; --red-soft: #F9E3E8;
  --gray: #A9AAAC; --ink: #17191D; --ink-2: #4E525A; --ink-3: #7A7E86;
  --line: #DCDEE2; --bg: #EEF0F2; --card: #FFFFFF; --ok: #1F7A4D; --warn: #B45309;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .display { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
h1 { font-size: 34px; font-weight: 700; line-height: 1.05; }
h2 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
h3 { font-size: 17px; font-weight: 600; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 600; }

.top { background: var(--ink); color: #fff; }
.top .in { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; height: 52px; }
.brand { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.brand b { color: var(--red); font-style: italic; }
.top nav a { color: #C9CBD0; font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; margin-right: 18px; }
.top nav a.on, .top nav a:hover { color: #fff; text-decoration: none; }
.top form { margin-left: auto; }
.top button { background: none; border: 1px solid #555; color: #C9CBD0; padding: 5px 10px; border-radius: 4px; cursor: pointer; font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 24px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head .meta { color: var(--ink-2); margin-top: 4px; }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; margin-bottom: -2px; border-bottom: 2px solid transparent; color: var(--ink-2); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.tabs a.on { color: var(--red); border-color: var(--red); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .v { font-family: "Barlow Condensed", sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }
.kpi .l { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.kpi.alert .v { color: var(--red); }

table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F7F8F9; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.dim { color: var(--ink-3); }
tbody tr:hover td { background: #FAFAFB; }
.scroll { overflow-x: auto; }
.tag { display: inline-block; background: #F1F2F4; border-radius: 3px; padding: 1px 6px; font-size: 12px; color: var(--ink-2); margin: 1px 3px 1px 0; white-space: nowrap; }
.tag.red { background: var(--red-soft); color: var(--red-dark); }
.open { color: var(--red); font-weight: 600; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* Belegungsband: ein Balken je Tag, Höhe = Schichten */
.band { display: flex; align-items: flex-end; gap: 2px; height: 36px; }
.band i { display: block; flex: 1 0 4px; min-width: 4px; background: var(--red); border-radius: 1px 1px 0 0; opacity: .85; }
.band i.empty { background: var(--line); height: 2px !important; }
.band i:hover { opacity: 1; }
.band.mini { height: 18px; width: 100%; max-width: 220px; }
.band.mini i { min-width: 3px; }
.band-days { display: flex; gap: 2px; font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.band-days span { flex: 1 0 4px; min-width: 4px; text-align: center; overflow: hidden; }

.areas { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 22px; }
.area h3 { font-size: 20px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.area h3 a { color: var(--ink); }
.area .row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.area .row:last-of-type { border: 0; }

.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter a.chip, .chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink-2); font-weight: 600; font-size: 13px; }
.filter a.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter a.chip:hover { text-decoration: none; border-color: var(--ink-3); }
input[type=text], input[type=password], input[type=search], select {
  font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); min-width: 0;
}
input:focus, button:focus, a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.btn { font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 4px; border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--red-dark); }
.btn.quiet { background: transparent; border-color: var(--line); color: var(--ink-2); }
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.flash.ok { background: #E6F4EC; border-color: #B7E0C7; color: var(--ok); }
.flash.error { background: var(--red-soft); border-color: #F0B8C3; color: var(--red-dark); }
.warn { color: var(--warn); }

.upload { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.upload input[type=file] { font: inherit; }
.login { max-width: 380px; margin: 12vh auto; }
.login h1 { margin-bottom: 18px; }
.login .btn { width: 100%; margin-top: 10px; }
.stack { display: grid; gap: 8px; }
.people { font-size: 13px; color: var(--ink-2); }
.people a { color: var(--ink); }
.plan th.day { text-align: center; min-width: 46px; }
.plan td.day { text-align: center; }
.plan td.day.hot { background: var(--red-soft); color: var(--red-dark); font-weight: 700; }
.plan td.day.gap { color: var(--gray); }
.plan tr.area-row td { background: var(--ink); color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
details summary { cursor: pointer; color: var(--red-dark); font-weight: 600; }
.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } .upload { grid-template-columns: 1fr; } h1 { font-size: 28px; } .wrap { padding: 16px; } }
@media (prefers-reduced-motion: no-preference) { .band i { transition: opacity .15s; } }
@media print { .top, .tabs, .filter, .btn, form { display: none !important; } body { background: #fff; } }
