/* public/assets/sheriff.css  ✅ KOMPLETT REPLACE */

:root{
  --bg0:#07090c;
  --bg1:#0b1017;
  --bg2:#0e1621;

  --ink:#e9edf5;
  --muted:#aab3c4;

  --gold0:#f2d48b;
  --gold1:#d7b15a;
  --gold2:#b8892d;

  --line: rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --focus: 0 0 0 3px rgba(215,177,90,.18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--ink);
  font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(38,80,120,.18), transparent 60%),
    radial-gradient(900px 520px at 10% 20%, rgba(215,177,90,.08), transparent 55%),
    radial-gradient(900px 520px at 90% 20%, rgba(215,177,90,.06), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 30%, var(--bg0) 100%);
  overflow-x:hidden;
}

body:before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
  opacity:.10;
}

a{ color:inherit; text-decoration:none; }
.wrap{ width:min(1200px, calc(100% - 32px)); margin:0 auto; }
.hr{ height:1px; background:var(--line); margin:12px 0; }
.hint{ color:var(--muted); font-size:12px; }
.row{ display:flex; align-items:center; gap:10px; }
.split{ display:flex; align-items:center; gap:10px; }
.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width: 900px){ .grid2{ grid-template-columns:1fr; } }

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:50;
  background: linear-gradient(180deg, rgba(6,8,12,.92), rgba(6,8,12,.72));
  border-bottom:1px solid rgba(215,177,90,.10);
  backdrop-filter: blur(10px);
}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  gap:12px;
}
.brand{ display:flex; align-items:center; gap:12px; min-width: 280px; }
.brand h1{
  margin:0;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-weight:900;
}
.brand .sub{ color:rgba(215,177,90,.75); font-size:12px; margin-top:2px; }
.logo{
  width:36px; height:36px; border-radius:12px;
  object-fit:cover;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
  border:1px solid rgba(215,177,90,.26);
}

.nav{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.nav a, .nav button{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(16, 12, 8, .25);
  color: rgba(240,244,255,.92);
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.nav a:hover, .nav button:hover{
  border-color: rgba(215,177,90,.32);
  box-shadow: 0 0 0 3px rgba(215,177,90,.10), 0 18px 40px rgba(0,0,0,.22);
  transform: translateY(-1px);
}
.nav a.active{
  background: linear-gradient(180deg, rgba(215,177,90,.18), rgba(16,12,8,.25));
  border-color: rgba(215,177,90,.45);
  box-shadow: 0 0 0 3px rgba(215,177,90,.12);
}

/* ---------- Buttons ---------- */
.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(18,12,8,.55), rgba(10,12,16,.35));
  color: rgba(245,248,255,.95);
  padding:10px 14px;
  border-radius:999px;
  min-height:40px;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover{
  border-color: rgba(215,177,90,.35);
  box-shadow: 0 0 0 3px rgba(215,177,90,.12), 0 18px 40px rgba(0,0,0,.24);
  transform: translateY(-1px);
}
.btn:active{ transform: translateY(0px) scale(.99); }
.btn:focus{ outline:none; box-shadow: var(--focus), 0 18px 40px rgba(0,0,0,.24); }

.btnGold{
  background: linear-gradient(180deg, rgba(215,177,90,.22), rgba(16,12,8,.35));
  border-color: rgba(215,177,90,.45);
}

/* ✅ Schöner Reload/Action Button (für „Neu laden“) */
.btnSquare{
  min-height:40px;
  padding:10px 16px;
  border-radius:14px; /* weniger rund */
  border:1px solid rgba(215,177,90,.28);
  background: linear-gradient(180deg, rgba(215,177,90,.18), rgba(16,12,8,.45));
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  font-weight:900;
}
.btnSquare:hover{
  border-color: rgba(215,177,90,.55);
  box-shadow: 0 0 0 3px rgba(215,177,90,.12), 0 18px 40px rgba(0,0,0,.24);
  transform: translateY(-1px);
}

/* ---------- Cards ---------- */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(215,177,90,.14);
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(215,177,90,.10), transparent 60%),
    linear-gradient(180deg, rgba(10,14,20,.70), rgba(6,8,12,.64));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card > h2{
  margin:0;
  padding:12px 14px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:1000;
  color: rgba(242,212,139,.92);
  border-bottom: 1px solid rgba(215,177,90,.14);
  background: linear-gradient(180deg, rgba(18,12,8,.55), rgba(10,12,16,.22));
}
.card .body{ padding:14px; }

/* ---------- Inputs ---------- */
input, textarea, select{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(16, 12, 8, .55);
  color: rgba(245,248,255,.95);
  padding: 10px 12px;
  min-height:40px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
textarea{ min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(215,177,90,.55);
  box-shadow: var(--focus), inset 0 1px 0 rgba(255,255,255,.05);
}
::placeholder{ color: rgba(170,179,196,.65); }

select{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(242,212,139,.85) 50%),
    linear-gradient(135deg, rgba(242,212,139,.85) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat:no-repeat;
  padding-right: 34px;
}

/* ---------- Checkbox (schöner) ---------- */
.chk{
  display:inline-flex;
  align-items:center;
  gap:10px;
  user-select:none;
  font-weight:800;
  color: rgba(245,248,255,.92);
}
.chk input[type="checkbox"]{
  appearance:none;
  width:44px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(16,12,8,.55);
  position:relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.chk input[type="checkbox"]:focus{ outline:none; box-shadow: var(--focus), inset 0 1px 0 rgba(255,255,255,.05); }
.chk input[type="checkbox"]:after{
  content:"";
  position:absolute;
  top:3px; left:3px;
  width:20px; height:20px;
  border-radius:999px;
  background: linear-gradient(180deg, rgba(245,248,255,.88), rgba(170,179,196,.55));
  box-shadow: 0 10px 18px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.chk input[type="checkbox"]:checked{
  background: linear-gradient(180deg, rgba(215,177,90,.35), rgba(16,12,8,.45));
  border-color: rgba(215,177,90,.55);
}
.chk input[type="checkbox"]:checked:after{ transform: translateX(18px); }

/* ---------- Global Motion (außer Login) ---------- */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes glowPulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(215,177,90,.0); }
  50%{ box-shadow: 0 0 0 10px rgba(215,177,90,.06); }
}

html.withMotion .card{ animation: fadeUp .35s ease both; }
html.withMotion .card:nth-of-type(2){ animation-delay: .03s; }
html.withMotion .card:nth-of-type(3){ animation-delay: .06s; }
html.withMotion .card:nth-of-type(4){ animation-delay: .09s; }
html.withMotion .nav a, html.withMotion .nav button, html.withMotion .btn{ transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; }

/* ---------- Hilfe Button + Modal ---------- */
.helpFab{
  position:fixed;
  right:16px;
  bottom:16px;
  width:54px;
  height:54px;
  border-radius:999px;
  border:1px solid rgba(215,177,90,.35);
  background: linear-gradient(180deg, rgba(215,177,90,.22), rgba(16,12,8,.45));
  color: rgba(245,248,255,.96);
  font-weight:1000;
  font-size:20px;
  cursor:pointer;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  z-index: 999;
  animation: glowPulse 2.8s ease-in-out infinite;
}
.helpFab:hover{ transform: translateY(-1px); border-color: rgba(215,177,90,.55); }

.helpModal{ position:fixed; inset:0; display:none; z-index:1000; }
.helpModal.on{ display:block; }
.helpBackdrop{ position:absolute; inset:0; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); }
.helpPanel{
  position:absolute;
  right:16px;
  bottom:86px;
  width:min(520px, calc(100% - 32px));
  max-height: min(70vh, 720px);
  overflow:hidden;
  border-radius: 18px;
  border:1px solid rgba(215,177,90,.18);
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(215,177,90,.10), transparent 60%),
    linear-gradient(180deg, rgba(10,14,20,.88), rgba(6,8,12,.82));
  box-shadow: 0 28px 80px rgba(0,0,0,.65);
  animation: fadeUp .18s ease both;
}
.helpHead{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid rgba(215,177,90,.14); }
.helpTitle{ font-weight:1000; letter-spacing:.06em; text-transform:uppercase; font-size:12px; color: rgba(242,212,139,.92); }
.helpClose{ min-height:34px; padding:8px 12px; }
.helpBody{ padding:14px; overflow:auto; max-height: calc(70vh - 64px); color: rgba(233,237,245,.92); }
.helpBody code{ padding:2px 6px; border-radius:10px; border:1px solid rgba(255,255,255,.10); background: rgba(16,12,8,.45); }
.helpDoc ul{ margin: 8px 0 0 18px; }

select option{
  background: #0b1017;
  color: #e9edf5;
}

.lbl{
  display:block;
  font-size:12px;
  color: rgba(200,210,230,.86);
  margin-bottom:6px;
}

/* ---------- Layout ---------- */
.layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:14px;
  padding: 14px 0 26px;
}
@media (max-width: 1000px){
  .layout{ grid-template-columns: 1fr; }
}

.list{ display:flex; flex-direction:column; gap:10px; }

/* ---------- Employee item ---------- */
.empItem{
  width:100%;
  text-align:left;
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(18,12,8,.42), rgba(10,12,16,.22));
  color: rgba(245,248,255,.94);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.empItem:hover{
  border-color: rgba(215,177,90,.35);
  box-shadow: 0 0 0 3px rgba(215,177,90,.10), 0 18px 40px rgba(0,0,0,.24);
  transform: translateY(-1px);
}
.empItem.active{
  border-color: rgba(215,177,90,.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(215,177,90,.22);
}
.empName{ font-weight:950; letter-spacing:.02em; }
.empSub{ color: rgba(200,210,230,.88); font-size:12px; margin-top:3px; }

.emptyState{
  padding: 36px 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(215,177,90,.18);
  background: rgba(10,12,16,.25);
  text-align:center;
}

/* ---------- Case folder ---------- */
.caseFolder{
  position:relative;
  border-radius: var(--radius);
  border: 1px solid rgba(215,177,90,.18);
  background:
    radial-gradient(900px 520px at 75% 40%, rgba(215,177,90,.08), transparent 62%),
    linear-gradient(180deg, rgba(18,12,8,.52), rgba(10,12,16,.38));
  padding: 14px;
  box-shadow: 0 0 0 3px rgba(215,177,90,.06), 0 26px 80px rgba(0,0,0,.55);
}
.caseFolder:after{
  content:"";
  position:absolute;
  inset: 14px;
  border-radius: calc(var(--radius) - 6px);
  background:
    radial-gradient(closest-side at 70% 45%, rgba(0,0,0,.0), rgba(0,0,0,.0) 55%, rgba(0,0,0,.12) 100%),
    url("/assets/logo.png");
  background-repeat:no-repeat;
  background-position: 78% 52%;
  background-size: 420px 420px;
  opacity:.10;
  filter: saturate(.9) contrast(1.05);
  pointer-events:none;
}

/* ---------- filterBar (legacy) ---------- */
.filterBar{
  display:grid;
  grid-template-columns: 1fr 170px 210px auto;
  gap:10px;
  align-items:center;
}
@media (max-width: 980px){
  .filterBar{ grid-template-columns: 1fr; }
}

/* ---------- Modal ---------- */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 999;
}
.modalCard{
  width: min(980px, 100%);
  background: rgba(16, 12, 8, .96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
}
.modalTitle{
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: .02em;
}

/* =========================
   ✅ Mitarbeiter Sortierleiste V2
========================= */
.empPanelV2{
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:12px;
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(215,177,90,.08), transparent 55%),
    rgba(0,0,0,.26);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.empHeadV2{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.empTitleV2{
  font-size:20px;
  font-weight:1000;
  letter-spacing:.02em;
}

.empActionsV2{
  display:flex;
  gap:8px;
  align-items:center;
}

.empNewV2{
  min-height:38px;
  padding:9px 14px;
}

.empControlsV2{
  display:grid;
  grid-template-columns: 1fr;  /* alles full width */
  gap:10px;
}

.empControlsV2 input,
.empControlsV2 select{
  width:100% !important;
  max-width:none !important;
  min-height:40px;
  border-radius:14px;
}

.empDividerV2{
  height:1px;
  margin-top:12px;
  background: linear-gradient(90deg, rgba(215,177,90,.35), rgba(255,255,255,.08), transparent);
}

/* kleiner Hint-Feinschliff */
.empPanelV2 .hint{
  opacity:.95;
}
/* =========================
   ✅ Login Screen (Blaulicht / Rotlicht wie im Screenshot)
   - animierter Hintergrund
   - Card Slide/Fade
   - kleine Logo-Animation
========================= */

body.loginPage{
  overflow:hidden;
}

/* Vollflächiger „Blaulicht“-Backdrop */
.sirenBg{
  position:fixed;
  inset:-18% -18% -18% -18%;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(1200px 800px at 50% 10%, rgba(255,255,255,.05), transparent 62%),
    radial-gradient(900px 600px at 50% 120%, rgba(0,0,0,.35), transparent 65%),
    linear-gradient(135deg, rgba(0,0,0,.92), rgba(0,0,0,.70));
  filter: saturate(1.08);
}

.sirenBg::before,
.sirenBg::after{
  content:"";
  position:absolute;
  inset:-10%;
  background-repeat:no-repeat;
  background-size:100% 100%;
  mix-blend-mode: screen;
  opacity:.88;
  filter: blur(52px) saturate(1.45);
  transform: translate3d(0,0,0);
}

/* zusätzlicher „Blaulicht“-Sweep / Beam */
.sirenBeam{
  position:absolute;
  inset:-30%;
  pointer-events:none;
  background:
    conic-gradient(from 210deg at 50% 50%,
      rgba(40,110,255,0) 0deg,
      rgba(40,110,255,.14) 18deg,
      rgba(40,110,255,0) 42deg,
      rgba(255,60,80,0) 180deg,
      rgba(255,60,80,.12) 198deg,
      rgba(255,60,80,0) 222deg,
      rgba(40,110,255,0) 360deg);
  mix-blend-mode: screen;
  filter: blur(18px);
  opacity:.65;
  animation: beamSweep 5.8s linear infinite;
}

@keyframes beamSweep{
  from{ transform: rotate(0deg) scale(1.02); }
  to{ transform: rotate(360deg) scale(1.02); }
}

/* Blaues Licht */
.sirenBg::before{
  background-image:
    radial-gradient(900px 620px at 25% 45%, rgba(40,110,255,.60), transparent 60%),
    radial-gradient(720px 520px at 18% 65%, rgba(30,90,210,.45), transparent 62%);
  animation: sirenBlueMove 8.5s ease-in-out infinite, sirenPulse 2.6s ease-in-out infinite;
}

/* Rotes Licht */
.sirenBg::after{
  background-image:
    radial-gradient(900px 620px at 75% 55%, rgba(255,60,80,.50), transparent 60%),
    radial-gradient(700px 520px at 82% 70%, rgba(210,25,55,.38), transparent 62%);
  animation: sirenRedMove 9.2s ease-in-out infinite, sirenPulse 2.6s ease-in-out infinite;
}

/* leichte Vignette + Kontrast wie im Bild */
body.loginPage::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
  background:
    radial-gradient(1200px 700px at 50% 40%, rgba(0,0,0,.00), rgba(0,0,0,.55) 70%, rgba(0,0,0,.78) 100%),
    linear-gradient(160deg, rgba(0,0,0,.45), rgba(0,0,0,.10) 45%, rgba(0,0,0,.45));
}

/* optional: ganz leichtes „Atmen“/Zoom */
body.loginZoom .sirenBg{
  animation: loginZoom 16s ease-in-out infinite alternate;
}

@keyframes loginZoom{
  from{ transform: scale(1); }
  to{ transform: scale(1.06); }
}

@keyframes sirenBlueMove{
  0%{ transform: translate(-3%, -2%) rotate(-2deg); }
  50%{ transform: translate(3%, 2%) rotate(1deg); }
  100%{ transform: translate(-3%, -2%) rotate(-2deg); }
}

@keyframes sirenRedMove{
  0%{ transform: translate(3%, 2%) rotate(2deg); }
  50%{ transform: translate(-3%, -1%) rotate(-1deg); }
  100%{ transform: translate(3%, 2%) rotate(2deg); }
}

@keyframes sirenPulse{
  0%, 100%{ opacity:.78; }
  50%{ opacity:.95; }
}

/* Bühne */
.loginStage{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 22px;
}

/* Card wie im Screenshot */
.loginCard{
  width: min(520px, 92vw);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(12,16,24,.78), rgba(8,10,14,.62));
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  animation: cardIn .60s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes cardIn{
  from{ opacity:0; transform: translateY(22px) scale(.985); filter: blur(6px); }
  to{ opacity:1; transform: translateY(0) scale(1); filter: blur(0px); }
}

.loginTitle,
.loginSub,
.loginBtn,
.loginHint{
  animation: fadeUp .55s ease-out both;
}
.loginTitle{ animation-delay: .05s; }
.loginSub{ animation-delay: .10s; }
.loginBtn{ animation-delay: .16s; }
.loginHint{ animation-delay: .22s; }

@keyframes fadeUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

.loginLogoWrap{
  display:flex;
  justify-content:center;
  margin-top: 2px;
  margin-bottom: 10px;
}

.loginLogo{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(215,177,90,.35);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  animation: logoFloat 3.2s ease-in-out infinite;
}

@keyframes logoFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-3px); }
}

.loginTitle{
  margin: 0;
  text-align:center;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: .02em;
}

.loginSub{
  text-align:center;
  margin-top: 4px;
  color: rgba(200,210,230,.82);
  font-size: 12px;
}

.loginBtn{
  width:100%;
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:relative;
  overflow:hidden;
}

.btnDiscord{
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(20,28,44,.62), rgba(12,14,20,.42));
}

.btnDiscord::after{
  content:"";
  position:absolute;
  inset:-40% -80%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
  transform: rotate(12deg) translateX(-40%);
  opacity: 0;
}

.btnDiscord:hover::after{
  opacity: 1;
  animation: sheen 1.0s ease-out both;
}

@keyframes sheen{
  from{ transform: rotate(12deg) translateX(-45%); }
  to{ transform: rotate(12deg) translateX(45%); }
}

.discordDot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(120,170,255,.95);
  box-shadow:
    0 0 0 3px rgba(120,170,255,.16),
    0 0 22px rgba(120,170,255,.25);
}

.loginHint{
  margin-top: 10px;
  text-align:center;
  font-size: 11px;
  color: rgba(170,179,196,.70);
}

.loginError{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,80,110,.28);
  background: rgba(80,10,20,.35);
  color: rgba(255,200,210,.95);
  font-weight: 700;
  animation: errIn .35s ease-out both;
}

@keyframes errIn{
  from{ opacity:0; transform: translateY(-6px); }
  to{ opacity:1; transform: translateY(0); }
}
/* =========================
   ✅ Personalakte Layout (Padding / Abstände)
========================= */
.caseFolderPanel{
  position:relative;
  padding: 18px;
}

@media (max-width: 900px){
  .caseFolderPanel{ padding: 14px; }
}

/* Mehr Luft zwischen Header/Titel und Inhalt */
#employeePanel{
  padding: 4px; /* sanft */
}

/* =========================
   ✅ CCSD Logo als Wasserzeichen im Hintergrund
   (wie im Soll-Bild)
========================= */
.caseFolderPanel:after{
  content:"";
  position:absolute;
  inset: 18px;
  border-radius: calc(var(--radius) - 8px);
  pointer-events:none;

  background:
    radial-gradient(closest-side at 72% 52%, rgba(0,0,0,0), rgba(0,0,0,0) 55%, rgba(0,0,0,.20) 100%),
    url("/assets/logo.png");
  background-repeat:no-repeat;
  background-position: 72% 52%;
  background-size: 520px 520px;

  opacity: .16;
  filter: saturate(.85) contrast(1.05);
}

/* Damit Inhalte über dem Wasserzeichen liegen */
.caseFolderPanel > *{
  position:relative;
  z-index:1;
}

/* =========================
   ✅ Tabs wie "Aktenzeichen" (Pill Buttons)
========================= */
.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(215,177,90,.16);
  margin-bottom: 12px;
}

.tab{
  appearance:none;
  border: 1px solid rgba(215,177,90,.30);
  background: rgba(12,14,18,.35);
  color: rgba(245,248,255,.92);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.tab:hover{
  border-color: rgba(215,177,90,.55);
  box-shadow: 0 0 0 3px rgba(215,177,90,.10), 0 18px 40px rgba(0,0,0,.18);
  transform: translateY(-1px);
}

.tab.active{
  border-color: rgba(215,177,90,.70);
  background: linear-gradient(180deg, rgba(215,177,90,.22), rgba(10,12,16,.30));
  box-shadow: 0 0 0 3px rgba(215,177,90,.14);
}

/* =========================
   ✅ Inputs/Blöcke etwas "aktiger" (bessere Ränder)
========================= */
.caseFolderPanel input,
.caseFolderPanel textarea,
.caseFolderPanel select{
  border-color: rgba(255,255,255,.10);
  background: rgba(10,12,16,.45);
}

.caseFolderPanel input:focus,
.caseFolderPanel textarea:focus,
.caseFolderPanel select:focus{
  border-color: rgba(215,177,90,.65);
  box-shadow: var(--focus), inset 0 1px 0 rgba(255,255,255,.05);
}

/* =========================
   📅 Kalender (Training Events)
========================= */
.calendar{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:8px;
}
.calendar .calHead{
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color: rgba(255,255,255,.65);
  padding:2px 6px;
}
.calendar .calDay{
  min-height:84px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,16,.35);
  border-radius:12px;
  padding:8px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.calendar .calDay:hover{
  transform: translateY(-1px);
  border-color: rgba(215,177,90,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.calendar .calDay.isOtherMonth{
  opacity:.45;
}
.calendar .calDay.isSelected{
  border-color: rgba(215,177,90,.70);
  box-shadow: 0 0 0 3px rgba(215,177,90,.14);
}
.calendar .calNum{
  font-weight:700;
  font-size:13px;
  color: rgba(255,255,255,.88);
}
.calendar .calBadges{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.calendar .calBadge{
  font-size:11px;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Completion list rows */
.passRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,16,.35);
  border-radius:14px;
  margin-bottom:8px;
}
.passRow .left{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.passRow .name{
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.passRow .meta{
  font-size:12px;
  color: rgba(255,255,255,.65);
}
