/* Handy-Seite: KSL-Blau, KSL-Kreuz und KSL-Schrift (Fedra Serif) nur im Kopf, sonst gut lesbare Systemschrift. */
@font-face {
  font-family: "Fedra Serif A Std";
  src: url("fonts/FedraSerifAStdBook.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --blue: #00528C;        /* KSL-Blau */
  --blue-deep: #0A2F4D;
  --blue-tint: #E3EEF7;
  --paper: #F1F6FA;
  --card: #FFFFFF;
  --ink: #0F2233;
  --muted: #587089;
  --line: #D3E1ED;
  --signal: #FFC83D;
  --signal-ink: #3D2B00;
  --radius: 14px;
  --font-head: "Fedra Serif A Std", "Palatino Linotype", Palatino, Georgia, serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.35; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.hero {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--blue-tint) 100%);
  padding: 18px 16px 18px; border-bottom: 4px solid var(--blue);
  font-family: var(--font-head);
}
.hero::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 96px; height: 4px; background: var(--signal); }
.hero .cross { flex: none; width: 70px; height: 70px; display: block; }
.hero-text { min-width: 0; }
.hero .school { margin: 0 0 2px; font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.hero h1 { margin: 0; font-size: 33px; line-height: 1.06; font-weight: 400; color: var(--blue); overflow-wrap: break-word; }
.hero .date { margin: 4px 0 0; font-size: 18px; color: var(--blue-deep); }
.hero .slot { display: inline-block; margin: 10px 0 0; padding: 3px 12px; background: var(--blue); color: #fff; border-radius: 20px; font-size: 16px; }

.searchbar { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 18px 16px 8px; }
.searchbar input {
  width: 100%; font: inherit; font-size: 18px; padding: 13px 18px; color: var(--ink);
  background: var(--card); border: 2px solid var(--blue); border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 82, 140, .12);
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar input:focus-visible { outline: 3px solid var(--signal); outline-offset: 1px; }
.count { margin: 6px 8px 0; font-size: 14px; color: var(--muted); }

main { padding: 0 16px 24px; }
.list { list-style: none; margin: 0; padding: 0; }
.letter {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; margin: 18px 0 4px 2px; padding: 0 8px;
  font-size: 17px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 16px;
}
.list.filtering .letter { display: none; }

.item {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 4px rgba(10, 47, 77, .14);
  padding: 12px 14px 12px 20px; margin: 8px 0;
}
.item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--blue); }
.item.st-limited::before, .item.st-away::before, .item.st-note::before { background: var(--signal); }
.item.st-absent::before { background: #AFC0CF; }
.who { min-width: 0; }
.nm { display: block; font-size: 19px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.rn { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.when { display: inline-block; margin-top: 6px; padding: 1px 10px; font-size: 14px; font-weight: 600; background: var(--signal); color: var(--signal-ink); border-radius: 20px; }
.when.off { background: transparent; border: 1px dashed #9FB3C6; color: var(--muted); font-weight: 500; }
.item.st-absent { background: #F7FAFC; box-shadow: none; border: 1px solid var(--line); }
.item.st-absent .nm { color: var(--muted); font-weight: 500; }

/* Raumschild: blaue Tafel mit hellem Rahmen */
.plate {
  flex: none; min-width: 3.4em; max-width: 45%; padding: 8px 12px; text-align: center;
  font-size: 23px; font-weight: 700; line-height: 1.1; letter-spacing: .01em; color: #fff; background: var(--blue);
  border-radius: 10px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 3.5px rgba(255, 255, 255, .92);
  overflow-wrap: break-word;
}
.plate.noroom { background: transparent; color: var(--muted); box-shadow: none; font-weight: 400; }
.rn, .when { overflow-wrap: break-word; }

.none, .empty-state p { margin: 28px 4px; color: var(--muted); }
.empty-state { padding: 0 16px; }
.empty-state p {
  font-size: 22px; font-weight: 600; line-height: 1.35; color: var(--blue); text-align: center;
  background: #fff; border-radius: var(--radius); padding: 28px 20px; margin: 24px 0;
  box-shadow: 0 1px 4px rgba(10, 47, 77, .14); border-top: 5px solid var(--signal);
}
footer { padding: 4px 16px 28px; color: var(--muted); font-size: 14px; }
footer p { margin: 0; }
