@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo.woff2) format('woff2-variations'), url(/fonts/archivo.woff2) format('woff2');
}
html, body { margin: 0; height: 100%; }
/* Paradiso Studio-Verwaltung – hell, für lange Arbeit am Tresen */
.pa {
  --ink: #000000; --paper: #FFFFFF; --wash: #F2F2F0; --line: #DCDCD8; --muted: #6B6B66;
  --lime: #E5FF7B; --ok: #E5FF7B; --warn: #FFE08A; --bad: #FFB4A8;
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--wash);
  height: 100%; min-height: 100%; position: relative; container-type: inline-size;
  -webkit-font-smoothing: antialiased;
}
.pa-in { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 100%; }
.pa *, .pa *::before, .pa *::after { box-sizing: border-box; }
.pa :where(button, input, select, textarea) { font: inherit; color: inherit; }
.pa :where(button) { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.pa :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pa h1 { font-size: 30px; font-weight: 800; font-stretch: 112%; margin: 0; letter-spacing: -.01em; }
.pa h2 { font-size: 18px; margin: 28px 0 10px; }
.pa h3 { font-size: 17px; margin: 6px 0 4px; }
.pa p { margin: 0 0 6px; }
.pa :where(a) { color: inherit; }
.pa small { color: var(--muted); }

.pa-mark { font-weight: 800; font-stretch: 125%; letter-spacing: .14em; font-size: 15px; }
.pa-mark span { font-weight: 400; letter-spacing: 0; font-stretch: 100%; color: var(--muted); margin-left: 4px; }
.pa-muted { color: var(--muted); }
.pa-error { color: #B3261E; }

.pa-side { background: var(--ink); color: var(--paper); padding: 24px 14px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.pa-side .pa-mark span { color: rgba(255,255,255,.55); }
.pa-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pa-nav button { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.7); font-weight: 600; }
.pa-nav button:hover { color: #fff; }
.pa-nav button[aria-current="page"] { background: var(--lime); color: var(--ink); }
.pa-nav b { font-size: 12px; min-width: 22px; text-align: center; border-radius: 999px; background: var(--lime); color: var(--ink); padding: 1px 6px; }
.pa-nav b:empty { display: none; }
.pa-nav button[aria-current="page"] b { background: var(--ink); color: var(--lime); }
.pa-logout { color: rgba(255,255,255,.55); padding: 10px 12px; }

.pa-main { padding: 28px 32px 60px; overflow-y: auto; min-width: 0; min-height: 0; }
.pa-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pa-intro { max-width: 70ch; margin-bottom: 18px; }

.pa-card { background: var(--paper); border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); }
.pa-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-align: center; }
.pa-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.pa-btn.small { min-height: 36px; padding: 0 12px; font-size: 18px; }
.pa-btn:disabled { opacity: .5; }
.pa-link { color: var(--muted); text-decoration: underline; font-size: 14px; }
.pa-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }

.pa-form { display: flex; flex-direction: column; gap: 12px; }
.pa-form label, .pa-inline label { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pa-form label > span, .pa-inline label > span { font-size: 13px; color: var(--muted); }
.pa input:not([type=checkbox]), .pa textarea, .pa select { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--paper); width: 100%; outline: none; }
.pa input:focus, .pa textarea:focus, .pa select:focus { border-color: var(--ink); }
.pa-checkbox { flex-direction: row !important; align-items: center; gap: 8px !important; flex: none !important; padding-bottom: 10px; }
.pa-checkbox input { width: 18px; height: 18px; accent-color: var(--ink); }
.pa-inline { display: flex; gap: 10px; align-items: flex-end; margin-top: 18px; }
.pa-inline input { max-width: 220px; }

.pa-login { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.pa-login .pa-card { width: 100%; max-width: 380px; gap: 16px; padding: 28px; }
.pa-hint { font-size: 13px; color: var(--muted); background: var(--wash); border-radius: 10px; padding: 10px 12px; margin: 0; }

.pa-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pa-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.pa-tile strong { font-size: 44px; font-weight: 850; font-stretch: 120%; line-height: 1; font-variant-numeric: tabular-nums; }
.pa-tile span { color: var(--muted); }
.pa-tile:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pa-tile:first-child strong { color: var(--lime); }
.pa-tile:first-child span { color: rgba(255,255,255,.6); }
.pa-todo { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.pa-todo button { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 12px; padding: 14px 16px; }

.pa-checkin { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.pa-video { position: relative; aspect-ratio: 4 / 3; background: #111; border-radius: 12px; overflow: hidden; }
.pa-video video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pa-frame { position: absolute; inset: 18%; border: 3px solid var(--lime); border-radius: 18px; pointer-events: none; }
.pa-video-off { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); margin: 0; }
.pa-result { min-height: 240px; }
.pa-result.ok { background: var(--ok); border-color: var(--ok); }
.pa-result.warn { background: var(--warn); border-color: var(--warn); }
.pa-result.bad { background: var(--bad); border-color: var(--bad); }
.pa-res-state { font-size: 28px; font-weight: 850; font-stretch: 118%; margin-bottom: 16px; }
.pa-res-person { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.pa-res-person img, .pa-nophoto { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: rgba(0,0,0,.08); display: grid; place-items: center; font-weight: 800; font-size: 24px; flex: none; }
.pa-res-person h2 { margin: 0 0 4px; font-size: 22px; }

.pa-daynav { display: flex; align-items: center; gap: 12px; }
.pa-daynav strong { min-width: 120px; text-align: center; }
.pa-slots { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.pa-slot { padding: 0; }
.pa-slot summary { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.pa-slot summary::-webkit-details-marker { display: none; }
.pa-slot summary small { display: block; }
.pa-time { font-size: 20px; font-weight: 800; font-stretch: 120%; font-variant-numeric: tabular-nums; }
.pa-cap { font-weight: 700; font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 999px; background: var(--wash); }
.pa-cap.full { background: var(--lime); }
.pa-slot ol { margin: 0 18px 14px 84px; padding: 0 0 0 18px; }
.pa-slot > p { margin-left: 84px; }

.pa-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.pa-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pa-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pa-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pa-table tr:last-child td { border-bottom: 0; }
.pa-table tr.new td:first-child { box-shadow: inset 4px 0 0 var(--lime); }
.pa-table select { width: auto; }
.pa-credits { width: 76px !important; }
.pa-search { max-width: 320px; }

.pa-msgs { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-top: 14px; }
.pa-msgs article.open { border-left: 4px solid var(--lime); }
.pa-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.pa-reply { background: var(--wash); border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
.pa-badge { font-size: 12px; font-weight: 700; background: var(--lime); border-radius: 999px; padding: 2px 9px; }
.pa-badge.ghost { background: var(--wash); }
.pa-diff { border-collapse: collapse; margin: 8px 0; }
.pa-diff th { text-align: left; font-weight: 600; padding: 4px 16px 4px 0; color: var(--muted); }
.pa-diff td { padding: 4px 16px 4px 0; }
.pa-diff td.old { color: var(--muted); text-decoration: line-through; }
.pa-photos { display: flex; gap: 16px; margin: 10px 0; }
.pa-photos figure { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.pa-photos img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 4px; }

.pa-toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: all .2s; pointer-events: none; z-index: 50; }
.pa-toast.show { opacity: 1; transform: none; }
.pa-toast.bad { background: #B3261E; }

@container (max-width: 860px) {
  .pa-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pa-side { flex-direction: row; align-items: center; padding: 10px 12px; gap: 12px; overflow-x: auto; }
  .pa-side > .pa-mark { display: none; }
  .pa-nav { flex-direction: row; }
  .pa-nav button { white-space: nowrap; gap: 6px; }
  .pa-main { padding: 20px 16px 50px; }
  .pa-inline { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .pa * { transition: none !important; } }
