/* PrimeTime 24h – wie das Logo: Pink, Gelb, Cyan auf Schwarz, runde Schrift, glänzende Knöpfe
   (gleicher Stil wie das Reklamationsformular) */
@font-face {
  font-family: "Fredoka";
  src: url("fredoka.woff2") format("woff2");   /* SIL Open Font License, siehe fredoka-lizenz.txt */
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --pink: #ff2a9a;
  --yellow: #ffd21f;
  --blue: #19c6ff;
  --orange: #ff9f1c;
  --bg: #07060b;
  --card: #14121c;
  --field: #0c0b12;
  --text: #fbf8ff;
  --muted: #b4adc6;
  --line: #2f2a42;
  --radius: 22px;
  --rund: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --logo: linear-gradient(90deg, var(--pink), var(--yellow) 52%, var(--blue));
  --glanz: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(520px 360px at -6% 8%, rgba(255, 42, 154, .28), transparent 70%),
    radial-gradient(460px 380px at 106% 22%, rgba(25, 198, 255, .24), transparent 70%),
    radial-gradient(520px 360px at 12% 70%, rgba(255, 210, 31, .12), transparent 70%),
    radial-gradient(520px 420px at 96% 92%, rgba(255, 42, 154, .18), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--blue); text-underline-offset: 3px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.schmal { max-width: 460px; margin: 0 auto; }

/* ---------- Kopf ---------- */
/* sticky: Safari (iOS 26) färbt die Statusleiste dann schwarz wie die Kopfzeile, statt Inhalt darunter durchzuschieben */
.top { position: sticky; top: 0; z-index: 20; background: #000; padding: calc(8px + env(safe-area-inset-top)) 0 12px; overflow: hidden; }
.top::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(110px 70px at 6% 40%, rgba(255, 42, 154, .35), transparent 70%),
    radial-gradient(130px 60px at 94% 60%, rgba(25, 198, 255, .28), transparent 70%);
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--logo); }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { display: block; width: 72px; height: auto; flex: none; mix-blend-mode: lighten; }   /* schwarzer Bildgrund verschmilzt */
.sub { font-family: var(--rund); font-weight: 700; font-size: 22px; line-height: 1.1; background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wer { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.wer b { color: var(--text); font-family: var(--rund); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }

/* ---------- Inhalt ---------- */
main { padding: 24px 16px 40px; }
.laden { color: var(--muted); text-align: center; padding: 40px 0; font-family: var(--rund); }
h1, h2, label, button, .button, .tag, .zustand, .e-tag, legend, th { font-family: var(--rund); }
/* Uhr und Stunden in der Systemschrift: Fredoka hat keine gleich breiten Ziffern, die laufende Uhr würde springen */
h1 {
  width: fit-content; font-size: 30px; line-height: 1.15; font-weight: 700; margin: 0 0 8px;
  background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
}
h2 { font-size: 21px; font-weight: 600; margin: 0 0 12px; color: var(--yellow); }
.lead, .muted { color: var(--muted); }
.lead { margin: 0 0 18px; }
.klein { font-size: 14px; }

.card {
  position: relative; padding: 22px; margin: 0 0 16px; border-radius: var(--radius);
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, rgba(255, 42, 154, .7), rgba(255, 210, 31, .4) 50%, rgba(25, 198, 255, .7)) border-box;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
}

/* ---------- Formulare ---------- */
.field { margin: 0 0 16px; min-width: 0; }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
label { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; margin: 0 0 7px; }
input, select {
  width: 100%; font: inherit; color: inherit; background: var(--field);
  border: 2px solid var(--line); border-radius: 14px; padding: 11px 14px; min-height: 52px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: #4a4263; }
/* Safari am iPhone: Datums-/Zeitfelder haben sonst eine feste Mindestbreite und ragen aus der Karte, Wert steht mittig */
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; display: block; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.5em; }
input[type=checkbox] { width: 22px; min-height: 22px; height: 22px; padding: 0; accent-color: var(--blue); vertical-align: middle; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(25, 198, 255, .25); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
select.gross { font-family: var(--rund); font-size: 21px; font-weight: 600; min-height: 62px; border-color: var(--blue); }

/* Knöpfe: rund und glänzend wie die Logo-Buchstaben */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 600;
  cursor: pointer; text-decoration: none; text-align: center; color: #fff;
  background: var(--glanz), var(--pink);
  border: 0; border-radius: 999px; padding: 12px 22px; min-height: 52px;
  box-shadow: 0 4px 0 #000, 0 8px 22px -8px rgba(255, 42, 154, .6);
  transition: transform .1s, filter .15s;
}
button:hover { filter: brightness(1.1); }
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
button:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
button.gelb { background: var(--glanz), var(--yellow); color: #000; box-shadow: 0 4px 0 #000, 0 8px 22px -8px rgba(255, 210, 31, .55); }
button.blau, .button.blau { background: var(--glanz), var(--blue); color: #000; box-shadow: 0 4px 0 #000, 0 8px 22px -8px rgba(25, 198, 255, .55); }
button.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
button.ghost:hover { border-color: var(--blue); }
button.gefahr { background: transparent; color: var(--pink); border: 2px solid var(--pink); box-shadow: none; }
button.klein { padding: 6px 14px; min-height: 38px; font-size: 15px; box-shadow: 0 3px 0 #000; }
button.ghost.klein, button.gefahr.klein { box-shadow: none; }
button.breit, .button.breit { width: 100%; }
button.verlauf {
  width: 100%; color: #000; font-weight: 700; font-size: 20px; min-height: 58px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%), var(--logo);
  box-shadow: 0 5px 0 #000, 0 0 0 3px rgba(255, 255, 255, .9), 0 14px 30px -8px rgba(255, 42, 154, .6);
}

/* ---------- Stempeln: große Knöpfe für den Daumen ---------- */
.stempel { display: grid; gap: 14px; margin: 18px 0 22px; }
.stempel.zwei { grid-template-columns: 1fr 1fr; }
.stempel button { min-height: 78px; font-size: 22px; font-weight: 700; border-radius: 24px; white-space: nowrap; padding: 12px 10px; }
.stempel.zwei button { font-size: 20px; }
.status { text-align: center; padding: 26px 20px 22px; }
.status.aus { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #3a3452, #1d1a29) border-box; }
.status.an {
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--pink), rgba(255, 42, 154, .35)) border-box;
  box-shadow: 0 0 34px rgba(255, 42, 154, .25);
}
.status.pause {
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--yellow), rgba(255, 210, 31, .35)) border-box;
  box-shadow: 0 0 34px rgba(255, 210, 31, .2);
}
.zustand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; }
.punkt { width: 13px; height: 13px; border-radius: 50%; background: var(--muted); }
.an .punkt { background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: puls 1.6s infinite; }
.pause .punkt { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
@keyframes puls { 50% { opacity: .35; } }
.uhr { font-size: 56px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 10px 0 4px; }
.an .uhr { color: var(--pink); text-shadow: 0 0 24px rgba(255, 42, 154, .45); }
.pause .uhr { color: var(--yellow); text-shadow: 0 0 24px rgba(255, 210, 31, .35); }
.aus .uhr { color: var(--muted); }
.seit { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .an .punkt { animation: none; } * { transition: none !important; } }

.woche { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.woche strong { color: var(--blue); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
ul.eintraege { list-style: none; margin: 0; padding: 0; }
ul.eintraege li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
ul.eintraege li:first-child { border-top: 0; }
.e-tag { font-weight: 600; }
.e-zeit { text-align: right; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.e-info { color: var(--muted); font-size: 14px; grid-column: 1 / -1; }

.alert { background: rgba(255, 42, 154, .12); border: 2px solid var(--pink); border-radius: 16px; padding: 12px 14px; margin: 0 0 16px; }
.alert.gelb { background: rgba(255, 210, 31, .1); border-color: var(--yellow); }
.alert.blau { background: rgba(25, 198, 255, .1); border-color: var(--blue); }
.fehler { color: var(--pink); font-weight: 700; margin: 0 0 12px; }
.fehler:empty { display: none; }

/* Start-Passwort zum Weitergeben */
.zugang { background: #000; border: 2px dashed var(--yellow); border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.zugang dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0; }
.zugang dt { color: var(--muted); }
.zugang dd { margin: 0; font: 800 22px/1.2 ui-monospace, Consolas, monospace; color: var(--yellow); overflow-wrap: anywhere; user-select: all; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 18px; padding: 2px 2px 6px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: var(--card); color: var(--text); border: 2px solid var(--line); border-radius: 999px; min-height: 44px; padding: 8px 18px; font-weight: 600; white-space: nowrap; box-shadow: none; }
.tabs button:hover { border-color: var(--blue); }
.tabs button[aria-current] { background: var(--glanz), var(--blue); color: #000; border-color: var(--blue); }
.leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.leiste h2 { margin: 0; }
.tag { display: inline-block; font-size: 14px; font-weight: 500; padding: 2px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--field); white-space: nowrap; }
.tag.pink { color: var(--pink); border-color: var(--pink); }
.tag.gelb { color: var(--yellow); border-color: var(--yellow); }
.tag.blau { color: var(--blue); border-color: var(--blue); }
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 800; color: var(--blue); border-bottom: 0; }
tr.aus td { opacity: .55; }
.hinw { color: var(--yellow); font-size: 13px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }

/* Dialog */
dialog {
  color: var(--text); border: 2px solid transparent; border-radius: var(--radius); padding: 22px;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--pink), var(--yellow) 50%, var(--blue)) border-box;
  width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
}
dialog::backdrop { background: rgba(0, 0, 0, .75); }
.pausen-zeile { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin: 0 0 8px; }
.dlg-knopf { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.dlg-knopf .links { margin-right: auto; }

@media (max-width: 560px) {
  h1 { font-size: 27px; }
  .uhr { font-size: 50px; }
  .card { padding: 18px 16px; }
  .logo { width: 52px; }
  .brand { gap: 8px; }
  .sub { font-size: 17px; }
  .verbergen-handy { display: none; }
  .topbar { gap: 10px; }
  .wer { gap: 6px; }
  .wer b { max-width: 22vw; font-size: 13px; }
  /* Reiter umbrechen statt rechts abgeschnitten */
  .tabs { flex-wrap: wrap; overflow: visible; }
  .tabs button { flex: 1 1 auto; padding: 6px 12px; min-height: 40px; font-size: 15px; }
}
.tabs.ma button { flex: 1 1 0; }

/* ---------- Auswahl beim Öffnen: Zeiterfassung oder Reklamationen ---------- */
.auswahl { display: grid; gap: 16px; }
.kachel {
  display: grid; justify-items: start; justify-content: stretch; align-content: center; gap: 4px; width: 100%; min-height: 112px; padding: 18px 22px; text-align: left;
  border-radius: var(--radius); color: #000; white-space: normal;
}
.kachel .symbol { font-size: 30px; line-height: 1; }
.kachel b { font-size: 23px; font-weight: 700; }
.kachel span:last-child { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; font-weight: 500; opacity: .8; }
.kachel.zeit { background: var(--glanz), var(--blue); box-shadow: 0 5px 0 #000, 0 12px 28px -10px rgba(25, 198, 255, .6); }
.kachel.rekl { background: var(--glanz), var(--pink); color: #fff; box-shadow: 0 5px 0 #000, 0 12px 28px -10px rgba(255, 42, 154, .6); }
