/* Verwaltung im TICUS-Stil (Farben und Schriften wie ticus-systeme.de) */
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(assets/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(assets/fonts/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(assets/fonts/open-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --grund: #17191E;
  --flaeche: #22252C;
  --flaeche-2: #2a2e36;
  --orange: #F96405;
  --orange-d: #db5200;
  --text: #F4F2EF;
  --leise: #C9C6C0;
  --linie: rgba(244, 242, 239, .1);
  --gruen: #4ade80;
  --rot: #f87171;
  --kopf: "Poppins", system-ui, sans-serif;
  --lauf: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  background: radial-gradient(ellipse 70% 40% at 50% -10%, rgba(249, 100, 5, .12), transparent 70%), var(--grund);
  color: var(--text);
  font-family: var(--lauf);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--kopf); letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 18px; margin-bottom: 6px; }
h2.abstand { margin-top: 34px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--leise); word-break: break-all; }
.leise { color: var(--leise); font-size: 13.5px; margin-bottom: 12px; }

input, select, textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche-2);
  color: var(--text);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(249, 100, 5, .6); outline-offset: 1px; }
textarea { resize: vertical; font-family: var(--lauf); }
#blocked, #allowed { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
input[type="checkbox"] { width: auto; accent-color: var(--orange); }
input[type="time"] { width: auto; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--kopf); font-weight: 600; font-size: 14.5px;
  border-radius: 999px; padding: 11px 22px; border: 0; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, transform .12s;
  white-space: nowrap;
}
.knopf:active { transform: scale(.98); }
.knopf.voll { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(249, 100, 5, .25); }
.knopf.voll:hover { background: var(--orange-d); }
.knopf.rand { background: transparent; color: var(--text); border: 1.5px solid rgba(249, 100, 5, .55); }
.knopf.rand:hover { border-color: var(--orange); }
.knopf.klein { padding: 7px 14px; font-size: 13px; }
.knopf.breit { width: 100%; margin-top: 18px; }
.knopf:disabled { opacity: .5; cursor: wait; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; place-content: center; gap: 28px; padding: 16px; justify-items: center; }
.logo { height: 52px; width: auto; }
.karte {
  background: linear-gradient(180deg, var(--flaeche), #1d2027);
  border: 1px solid var(--linie);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.schmal { width: min(380px, 100%); }
.fehler { color: var(--rot); margin-top: 12px; font-size: 14px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; background: rgba(23, 25, 30, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linie); }
.kopf-i { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; }
.logo-klein { height: 34px; width: auto; }
.profilwahl { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.profilwahl select { width: auto; padding: 7px 10px; }
.reiter { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; }
.reiter button {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--leise);
  font-family: var(--kopf); font-weight: 600; font-size: 14px; padding: 10px 12px; cursor: pointer; white-space: nowrap;
}
.reiter button.aktiv { color: var(--text); border-bottom-color: var(--orange); }

.inhalt { max-width: 1120px; margin: 0 auto; padding: 24px 16px 60px; }
.statuszeile { margin-bottom: 18px; font-size: 13.5px; color: var(--leise); }
.statuszeile b { color: var(--text); }
.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.punkt.an { background: var(--gruen); box-shadow: 0 0 8px var(--gruen); }
.punkt.aus { background: var(--leise); }

.zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.zeile.links { justify-content: flex-start; }
.zeile.filter input[type="search"] { max-width: 320px; }
.haken { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }

.segment { display: inline-flex; background: var(--flaeche-2); border-radius: 999px; padding: 3px; }
.segment button { background: none; border: 0; color: var(--leise); padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; }
.segment button.aktiv { background: var(--orange); color: #fff; }

.tabelle-rahmen { overflow-x: auto; border: 1px solid var(--linie); border-radius: 14px; background: var(--flaeche); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabelle th { text-align: left; font-family: var(--kopf); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); padding: 10px 12px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 9px 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle td.aktionen { text-align: right; white-space: nowrap; }
.tabelle .mini { background: none; border: 1px solid var(--linie); color: var(--leise); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; margin-left: 4px; }
.tabelle .mini:hover { border-color: var(--orange); color: var(--text); }
.tabelle td.zeit { font-variant-numeric: tabular-nums; color: var(--leise); white-space: nowrap; }
.leer { color: var(--leise); text-align: center; padding: 24px !important; }

.marke { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.marke.block { background: rgba(248, 113, 113, .15); color: var(--rot); }
.marke.mixed { background: rgba(249, 100, 5, .15); color: var(--orange); }
.marke.allow { background: rgba(74, 222, 128, .12); color: var(--gruen); }
.gesperrt-zahl { color: var(--rot); font-weight: 600; }

/* Mini-Balken: Aufrufe pro Stunde */
.stunden { display: flex; align-items: flex-end; gap: 1px; height: 22px; width: 120px; }
.stunden i { flex: 1; background: rgba(249, 100, 5, .7); border-radius: 1px; min-height: 1px; }

.zeitplan { margin: 6px 0 4px 26px; }
.tage { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.tage label { display: flex; align-items: center; gap: 5px; margin: 0; font-weight: 400; }
#rules { margin-bottom: 4px; }
section > .knopf.voll { margin-top: 18px; }
.hinweis { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--flaeche-2); font-size: 14px; }
.hinweis.ok { border-left: 3px solid var(--gruen); }
.hinweis.fehler { border-left: 3px solid var(--rot); color: var(--text); }

.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.datei { font-weight: 400; font-size: 13px; color: var(--leise); margin-top: 8px; }
.datei input { margin-top: 4px; padding: 6px; }

.qr { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding: 16px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; }
.qr-bild { width: 180px; height: 180px; background: #fff; border-radius: 10px; padding: 6px; }
.qr-bild svg { width: 100%; height: 100%; display: block; }
.qr a { color: var(--orange); font-weight: 600; }
.schritte { padding-left: 20px; color: var(--leise); margin-bottom: 14px; }
.schritte li { margin: 4px 0; }
.schritte strong, .schritte em { color: var(--text); }
.werte { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; align-items: center; }
.werte dt { color: var(--leise); font-size: 13.5px; }
.code { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; color: var(--leise); margin-bottom: 8px; }
.kopieren { background: none; border: 1px solid var(--linie); color: var(--leise); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.kopieren:hover { border-color: var(--orange); color: var(--text); }

@media (max-width: 760px) {
  .zwei { grid-template-columns: 1fr; }
  .kopf-i { flex-wrap: wrap; }
  .profilwahl { margin-left: 0; order: 3; width: 100%; }
  .profilwahl select { flex: 1; }
  .stunden { width: 72px; }
}
