/* Retter-Portal v1.3.86 – Admin UX refresh, stabile Smooth-Navigation und Traffic-Polish */

/* Admin-Navigation: eine ruhige, echte Werkzeugleiste statt vier schwerer Kästen. */
body.admin-surface .admin-command-nav--v1386{
  position:sticky;
  top:72px;
  z-index:12;
  display:grid;
  grid-template-columns:max-content minmax(0,1.35fr) minmax(0,1.1fr) minmax(0,1fr);
  align-items:stretch;
  gap:0;
  width:100%;
  margin:0 0 18px;
  padding:7px 9px;
  overflow-x:auto;
  overflow-y:hidden;
  border:1px solid color-mix(in srgb,var(--line) 88%,transparent);
  border-radius:19px;
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  box-shadow:0 14px 34px rgba(2,6,23,.14),inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter:blur(20px) saturate(1.1);
  scrollbar-width:none;
}
body.admin-surface .admin-command-nav--v1386::-webkit-scrollbar{display:none}
body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group{
  display:flex;
  flex-wrap:wrap;
  align-content:center;
  align-items:center;
  gap:5px;
  min-width:max-content;
  min-height:58px;
  padding:5px 11px;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group+.admin-command-nav__group{
  border-left:1px solid color-mix(in srgb,var(--line-soft) 86%,transparent)!important;
}
body.admin-surface .admin-command-nav--v1386 .admin-command-nav__label{
  flex:0 0 100%;
  width:100%;
  padding:0 5px 2px;
  color:var(--muted-2);
  font-size:.57rem;
  line-height:1.15;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
  white-space:nowrap;
}
body.admin-surface .admin-command-nav--v1386 a{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex:0 0 auto;
  min-width:0;
  min-height:35px;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:11px;
  background:transparent;
  color:var(--muted);
  font-size:.75rem;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  box-shadow:none;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
body.admin-surface .admin-command-nav--v1386 a:hover{
  color:var(--text);
  border-color:var(--line-soft);
  background:color-mix(in srgb,var(--surface-2) 75%,transparent);
}
body.admin-surface .admin-command-nav--v1386 a.is-active{
  color:#fff;
  border-color:rgba(244,63,94,.42);
  background:linear-gradient(135deg,#e11d48,#be123c);
  box-shadow:0 8px 18px rgba(225,29,72,.20),inset 0 1px 0 rgba(255,255,255,.16);
}
body.admin-surface .admin-command-nav--v1386 a.is-active:hover{transform:none}
body.admin-surface .admin-command-nav--v1386 a span{overflow:visible;text-overflow:clip}
body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group--primary a{flex:0 0 auto}
body.admin-surface .admin-command-nav--v1386 .admin-nav-live-dot{width:6px;height:6px;margin-left:0}

/* Allgemeine Admin-Hierarchie: weniger „riesige Flächen“, mehr erkennbare Ebenen. */
body.admin-surface .content{width:min(1740px,100%);padding-top:18px}
body.admin-surface .admin-page-hero{
  margin-bottom:16px;
  padding:24px 26px;
  border-radius:23px;
  background:
    radial-gradient(circle at 92% 0,rgba(59,130,246,.10),transparent 27rem),
    radial-gradient(circle at 0 100%,rgba(225,29,72,.075),transparent 24rem),
    var(--surface);
  box-shadow:0 15px 35px rgba(2,6,23,.12),inset 0 1px 0 rgba(255,255,255,.03);
}
body.admin-surface .admin-page-hero h1{font-size:clamp(2rem,3.15vw,3.45rem);line-height:.98;letter-spacing:-.055em}
body.admin-surface .admin-page-hero p.muted{margin-top:10px;font-size:.94rem;line-height:1.55}
body.admin-surface .admin-page-hero__actions{gap:8px}
body.admin-surface .admin-page-hero__actions .btn{min-height:40px;padding:8px 13px}

body.admin-surface .card,
body.admin-surface .table-wrap,
body.admin-surface .toolbar{
  border-color:color-mix(in srgb,var(--line) 88%,transparent);
  box-shadow:0 11px 28px rgba(2,6,23,.09),inset 0 1px 0 rgba(255,255,255,.025);
}
body.admin-surface .card{border-radius:20px}
body.admin-surface .card-head{gap:16px}
body.admin-surface .card-head h2{font-size:1.08rem}
body.admin-surface .card-head p.muted{margin-top:4px;font-size:.79rem;line-height:1.45}

/* Übersicht: Karten wirken wie eindeutige Aktionen statt gleichförmige Blöcke. */
body.admin-surface .admin-stat-grid--overview{gap:10px;margin-bottom:16px}
body.admin-surface .admin-stat-grid--overview article{
  min-height:105px;
  padding:15px 17px;
  border-radius:17px;
  box-shadow:0 9px 22px rgba(2,6,23,.08);
}
body.admin-surface .admin-stat-grid--overview strong{font-size:2.05rem}
body.admin-surface .admin-hub-grid{gap:10px;margin-bottom:18px}
body.admin-surface .admin-hub-card{
  min-height:116px;
  padding:15px;
  border-radius:18px;
  box-shadow:0 9px 22px rgba(2,6,23,.075);
}
body.admin-surface .admin-hub-card:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(2,6,23,.12)}
body.admin-surface .admin-hub-card__icon{width:44px;height:44px;border-radius:14px}
body.admin-surface .admin-hub-card p{font-size:.81rem;line-height:1.43}

/* Traffic: ALLE KPIs benutzen denselben Kartenstil – vorher war nur „Jetzt online“ markiert. */
body.admin-surface .traffic-kpi-grid{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
body.admin-surface .traffic-kpi{
  min-height:116px;
  padding:16px 17px;
  border-radius:18px;
  border:1px solid color-mix(in srgb,var(--line) 88%,transparent);
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 98%,transparent),color-mix(in srgb,var(--surface-2) 72%,transparent));
  box-shadow:0 10px 24px rgba(2,6,23,.08),inset 0 1px 0 rgba(255,255,255,.035);
}
body.admin-surface .traffic-kpi::before{width:3px;opacity:.88}
body.admin-surface .traffic-kpi>span{font-size:.64rem;letter-spacing:.105em}
body.admin-surface .traffic-kpi>strong{font-size:2.2rem;margin-top:7px}
body.admin-surface .traffic-kpi>small{font-size:.7rem;line-height:1.35}
body.admin-surface .traffic-chart-card{padding:19px}
body.admin-surface .traffic-chart-wrap{border-radius:16px}
body.admin-surface .traffic-chart-tooltip{
  border-radius:13px;
  box-shadow:0 18px 45px rgba(2,6,23,.34);
}
body.admin-surface .traffic-live-row--detail{
  border-radius:14px;
  transition:border-color .16s ease,background .16s ease;
}
body.admin-surface .traffic-live-row--detail:hover{border-color:color-mix(in srgb,var(--admin-accent) 28%,var(--line-soft))}
body.admin-surface .traffic-person-detail-grid article{border-radius:12px}

/* Tabellen / Formulare bekommen im Adminbereich konsistentere Abstände. */
body.admin-surface .admin-filter-card,
body.admin-surface .admin-create-account,
body.admin-surface .admin-workflow-card{border-radius:19px}
body.admin-surface .admin-account-card{border-radius:19px}
body.admin-surface .admin-account-card__head{padding:16px}
body.admin-surface .admin-account-editor>summary{padding:12px 16px}
body.admin-surface .admin-account-editor__body{padding:16px;gap:11px}
body.admin-surface .admin-account-editor__section{padding:15px;border-radius:15px}
body.admin-surface .table-wrap{border-radius:18px}
body.admin-surface .toolbar{border-radius:18px}
body.admin-surface table thead th{font-size:.68rem;letter-spacing:.075em}

/* Lightmode behält exakt dieselbe Geometrie. */
body.admin-surface[data-theme="light"] .admin-command-nav--v1386{
  background:rgba(255,255,255,.95);
  border-color:rgba(148,163,184,.24);
  box-shadow:0 13px 32px rgba(100,116,139,.13);
}
body.admin-surface[data-theme="light"] .admin-command-nav--v1386 .admin-command-nav__group+.admin-command-nav__group{
  border-left-color:rgba(148,163,184,.22)!important;
}
body.admin-surface[data-theme="light"] .admin-command-nav--v1386 a:hover{background:#f1f5f9;border-color:rgba(148,163,184,.24)}
body.admin-surface[data-theme="light"] .traffic-kpi{
  background:linear-gradient(180deg,#fff,#f8fafc);
  border-color:rgba(148,163,184,.24);
  box-shadow:0 10px 24px rgba(100,116,139,.10);
}

@media (max-width:1600px){
  body.admin-surface .admin-command-nav--v1386{
    display:flex;
    gap:0;
    overflow-x:auto;
  }
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group{flex:0 0 auto}
  body.admin-surface .traffic-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1120px){
  body.admin-surface .admin-command-nav--v1386{top:104px}
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__label{display:block}
  body.admin-surface .admin-page-hero{padding:20px}
}
@media (max-width:760px){
  body.admin-surface .content{padding:13px!important}
  body.admin-surface .admin-command-nav--v1386{
    position:relative;
    top:auto;
    margin-bottom:12px;
    padding:6px;
    border-radius:16px;
    scroll-snap-type:x proximity;
  }
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group{
    min-height:44px;
    padding:4px 7px;
    scroll-snap-align:start;
  }
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__label{display:none}
  body.admin-surface .admin-command-nav--v1386 a{min-height:34px;padding:7px 9px;font-size:.72rem}
  body.admin-surface .admin-page-hero{padding:18px;border-radius:19px}
  body.admin-surface .traffic-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.admin-surface .traffic-kpi{min-height:102px;padding:13px 14px}
  body.admin-surface .traffic-kpi>strong{font-size:1.9rem}
  body.admin-surface .traffic-chart-card{padding:14px}
}
@media (max-width:430px){
  body.admin-surface .traffic-kpi-grid{grid-template-columns:1fr 1fr}
  body.admin-surface .traffic-kpi{min-height:96px}
  body.admin-surface .traffic-kpi>small{font-size:.66rem}
}

/* Admin-Startseite in klaren Arbeitsbereichen */
body.admin-surface .admin-overview-groups{display:grid;gap:14px;margin-bottom:18px}
body.admin-surface .admin-overview-group{
  padding:15px;
  border:1px solid color-mix(in srgb,var(--line) 86%,transparent);
  border-radius:20px;
  background:color-mix(in srgb,var(--surface) 78%,transparent);
  box-shadow:0 10px 26px rgba(2,6,23,.075),inset 0 1px 0 rgba(255,255,255,.025);
}
body.admin-surface .admin-overview-group__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding:1px 3px 12px;
}
body.admin-surface .admin-overview-group__head>div>span{
  display:block;
  color:#fb7185;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.11em;
  text-transform:uppercase;
}
body.admin-surface .admin-overview-group__head h2{margin-top:4px;font-size:1.05rem;letter-spacing:-.025em}
body.admin-surface .admin-overview-group__head>small{color:var(--muted);font-size:.72rem;font-weight:800;white-space:nowrap}
body.admin-surface .admin-hub-grid--grouped{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin:0;
}
body.admin-surface .admin-hub-grid--grouped .admin-hub-card{
  grid-template-columns:42px minmax(0,1fr);
  grid-template-rows:auto auto;
  min-height:108px;
  padding:14px;
  background:color-mix(in srgb,var(--surface-2) 54%,transparent);
}
body.admin-surface .admin-hub-grid--grouped .admin-hub-card__icon{grid-row:1/-1;width:42px;height:42px;border-radius:13px}
body.admin-surface .admin-hub-grid--grouped .admin-hub-card>strong{grid-column:2;justify-self:start;font-size:.73rem}
body.admin-surface .admin-hub-grid--grouped .admin-hub-card--featured{border-color:rgba(244,63,94,.26);background:linear-gradient(135deg,rgba(225,29,72,.065),color-mix(in srgb,var(--surface-2) 54%,transparent))}
body.admin-surface[data-theme="light"] .admin-overview-group{background:rgba(255,255,255,.88);border-color:rgba(148,163,184,.22);box-shadow:0 10px 25px rgba(100,116,139,.09)}
body.admin-surface[data-theme="light"] .admin-hub-grid--grouped .admin-hub-card{background:#f8fafc}
@media (max-width:1450px){body.admin-surface .admin-hub-grid--grouped{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  body.admin-surface .admin-overview-group{padding:11px;border-radius:17px}
  body.admin-surface .admin-overview-group__head{align-items:flex-start;flex-direction:column;gap:4px;padding-bottom:10px}
  body.admin-surface .admin-overview-group__head>small{white-space:normal}
  body.admin-surface .admin-hub-grid--grouped{grid-template-columns:1fr}
}
