:root{
  --primary:#002D47;
  --primary-hover:#00385A;
  --accent:#00385A;
  --success:#16a34a;
  --danger:#dc2626;
  --warn:#d97706;

  --bg:#f6f8fb;
  --bg2:#ffffff;
  --surface:#ffffff;
  --surface-alt:#f1f5f9;
  --text:#0f172a;
  --muted:#475569;
  --muted-2:#64748b;
  --border: rgba(15,23,42,0.12);
  --border-strong: rgba(15,23,42,0.18);
  --shadow: 0 16px 36px -28px rgba(15,23,42,0.28);
  --shadow-soft: 0 10px 24px rgba(15,23,42,0.07);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px 700px at 12% 0%, rgba(0,45,71,0.05), transparent 58%),
    radial-gradient(900px 600px at 100% 12%, rgba(14,165,233,0.05), transparent 60%),
    linear-gradient(to bottom, var(--bg2), var(--bg));
}

.hidden{display:none!important}

.container{
  width:100%;
  max-width:1160px;
  margin:0 auto;
  padding:0 24px;
}

/* ---------- Topbar / Navigation (Seite-17 Stil) ---------- */
.topbar{
  position: sticky;
  top:0;
  z-index:1000;
  background: rgba(255,255,255,.92);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(8px);
}
.topbarInner{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:96px;
  position: relative;
}
.brand{
  display:flex; align-items:center; gap:10px;
  color:inherit; text-decoration:none;
  min-width:0;
}
.brandMark{display:flex;align-items:center;justify-content:flex-start;background:transparent;border:0;padding:0;width:auto;height:auto;border-radius:4px;box-shadow:none;}
.brandMark img,.brandLogo{width:auto;height:52px;max-width:min(360px,58vw);border-radius:4px;object-fit:contain;display:block}
.brandMarkSmall{width:46px;height:46px;border-radius:10px;background:rgba(0,45,71,0.06);border:1px solid rgba(0,45,71,0.14);display:grid;place-items:center;padding:4px;}
.brandLogoSmall{width:32px;height:32px;border-radius:4px;object-fit:contain;display:block;}
.brandText{display:none !important;}
.brandText strong{
  font-size:16px; letter-spacing:-.02em;
  white-space:nowrap;
}
.brandText span{
  font-size:12px; color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.navToggle{
  width:44px;
  height:44px;
  display:none;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  border-radius:10px;
  padding:0;
  margin-left:auto;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.hamburgerLines{
  width:22px;
  height:2px;
  position:relative;
  display:block;
  background: rgba(15,23,42,0.78);
  border-radius:999px;
}
.hamburgerLines::before,
.hamburgerLines::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  border-radius:999px;
  background: rgba(15,23,42,0.78);
}
.hamburgerLines::before{ top:-6px; }
.hamburgerLines::after{ top:6px; }

.nav{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:8px;
}
.navLink{
  text-decoration:none;
  color:var(--muted);
  font-weight:650;
  font-size:13px;
  padding:8px 10px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid transparent;
}
.navLink:hover{ background:rgba(15,23,42,0.04); color:var(--text); }
.navLink[aria-current="page"]{
  background: rgba(0,45,71,.06);
  border-color: rgba(0,45,71,.12);
  color: var(--primary);
}
.navLink.navExt{ font-size:12px; font-weight:600; }
.navIco{display:none!important}
.navIco{
  width:18px; height:18px;
  border-radius:6px;
  display:inline-grid;
  place-items:center;
  font-size:11px;
  background:rgba(0,45,71,.06);
  color:var(--primary);
  flex:0 0 auto;
}

.topActions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.actionLabel{ display:inline; }
.actionIco{
  display:none;
  width:18px; height:18px;
  align-items:center; justify-content:center;
  font-size:13px;
}

/* ---------- Buttons ---------- */
.btn{
  border:1px solid var(--border);
  background: linear-gradient(180deg,#fff,#f8fafc);
  color:var(--text);
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  line-height:1.05;
}
.btn:hover{ border-color:var(--border-strong); }
.btnPrimary{
  background: linear-gradient(180deg, #002D47, #002D47);
  border-color: rgba(0,45,71,.22);
  color:#fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset;
}
.btnPrimary:hover{ background: linear-gradient(180deg,#00385A,#002D47); }
.btnGhost{ background: rgba(255,255,255,.76); }
.btnDanger{
  border-color: rgba(220,38,38,.28);
  color:#991b1b;
  background: linear-gradient(180deg, rgba(254,242,242,0.9), rgba(255,255,255,0.95));
}
.btnWarn{
  border-color: rgba(217,119,6,.30);
  color:#92400e;
  background: linear-gradient(180deg, rgba(255,247,237,0.9), rgba(255,255,255,0.95));
}
.btnSuccess{
  border-color: rgba(22,163,74,.28);
  color:#166534;
  background: linear-gradient(180deg, rgba(240,253,244,0.9), rgba(255,255,255,0.95));
}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btnIconOnly{
  min-width:42px;
  min-height:42px;
}
.btnInlineSm{
  padding:8px 12px;
  font-size:12px;
}

/* ---------- Layout ---------- */
.page{padding:18px 0 36px; flex:1 0 auto;}

.hero{
  margin-top:10px;
  display:grid; grid-template-columns:1.12fr .88fr; gap:16px;
}
@media (max-width:980px){ .hero{grid-template-columns:1fr} }

.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
}
.cardPad{padding:16px}
.cardHeader{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-bottom:8px;
}
.cardTitle{margin:0; font-size:18px; letter-spacing:-.02em}
.cardSub{margin:0; color:var(--muted); font-size:14px; line-height:1.45}

.heroIntro{
  /* keep the intro block as light/neutral as the other cards */
  background: rgba(255,255,255,.92);
}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(0,45,71,.06);
  color:var(--primary);
  border:1px solid rgba(0,45,71,.12);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px; font-weight:700;
}
.heroTitle{margin:10px 0 8px; font-size:28px; line-height:1.1; letter-spacing:-.03em}
.heroLead{margin:0; color:var(--muted); font-size:14px; line-height:1.55}
.heroStats{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px}
.heroStat{
  border:1px solid rgba(0,45,71,.10);
  background:rgba(255,255,255,.92);
  border-radius:999px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.heroStat .chipIcon{
  width:30px;
  height:24px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,45,71,.10);
  color:var(--primary);
  font-weight:900;
  flex:0 0 30px;
}
.heroStat .chipText{display:flex; flex-direction:column; line-height:1.15}
.heroStat strong{display:block; font-size:14px}
.heroStat span{font-size:11.5px; color:var(--muted); margin-top:2px}
@media (max-width:560px){ .heroStats{grid-template-columns:1fr} }

.panelGrid{display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-top:16px}
@media (max-width:980px){ .panelGrid{grid-template-columns:1fr} }

.sectionHead{margin-bottom:10px}
.sectionHead h2{margin:0;font-size:18px;letter-spacing:-.02em}
.sectionHead p{margin:4px 0 0;color:var(--muted);font-size:14px}

.alert{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  background:#fff;
  color:var(--text);
  white-space:pre-wrap;
}
.alert.info{background:rgba(255,255,255,.8)}
.alert.ok{border-color:rgba(22,163,74,.28); background:rgba(22,163,74,.05); color:#166534}
.alert.err{border-color:rgba(220,38,38,.28); background:rgba(220,38,38,.04); color:#991b1b}
.alert.warn{border-color:rgba(217,119,6,.28); background:rgba(217,119,6,.05); color:#92400e}

.slotList{display:grid; gap:12px}
.slotCard{
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  padding:14px;
  box-shadow:var(--shadow-soft);
}
.slotCardClickable{
  cursor:pointer;
}
.slotCardClickable:hover{
  border-color:rgba(0,45,71,.22);
}
.slotCardClickable:focus-visible{
  outline:3px solid rgba(0,45,71,.14);
  outline-offset:2px;
}
.slotCardClickable .slotHint{
  color:var(--primary);
  font-weight:600;
}
.slotCard.detailsExpanded{
  border-color:rgba(0,45,71,.22);
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
}
.slotHead{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.slotHead h3{margin:0;font-size:16px;letter-spacing:-.01em}
.slotMeta{margin-top:6px; color:var(--muted); font-size:13px; line-height:1.45}
.slotActions{margin-top:10px; display:flex; gap:8px; flex-wrap:wrap}

.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:999px;
  border:1px solid var(--border); font-size:12px; font-weight:700;
  white-space:nowrap;
}
.badge.open{color:#166534;border-color:rgba(22,163,74,.25);background:rgba(22,163,74,.06)}
.badge.booked{color:#92400e;border-color:rgba(217,119,6,.25);background:rgba(217,119,6,.06)}
.badge.off{color:#991b1b;border-color:rgba(220,38,38,.25);background:rgba(220,38,38,.05)}
.badge.admin{color:var(--primary);border-color:rgba(0,45,71,.2);background:rgba(0,45,71,.04)}

.inlineForm{
  margin-top:10px;
  border:1px dashed rgba(0,45,71,.2);
  background:rgba(241,245,249,.72);
  border-radius:14px;
  padding:12px;
}

label{display:block; font-size:12px; color:var(--muted); margin-bottom:4px; font-weight:600}
input, textarea, select{
  width:100%;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  font-family:inherit; font-size:14px;
}
input:focus, textarea:focus, select:focus{outline:3px solid rgba(0,45,71,.14); border-color:rgba(0,45,71,.3)}
textarea{min-height:82px; resize:vertical}

.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.grid3{display:grid;grid-template-columns:1.2fr .7fr 1fr;gap:10px}
@media (max-width:720px){ .grid2,.grid3{grid-template-columns:1fr} }

.muted{color:var(--muted); font-size:13px}
.small{font-size:12px; color:var(--muted)}
.divider{height:1px;background:var(--border);margin:14px 0}

.tableWrap{overflow:auto; border:1px solid rgba(15,23,42,0.08); border-radius:14px; background:rgba(248,250,252,.7)}
.table{width:100%; border-collapse:collapse; font-size:13px; min-width:760px}
.table th,.table td{padding:10px 8px; border-bottom:1px solid rgba(15,23,42,0.08); text-align:left; vertical-align:top}
.table th{font-size:12px;color:var(--muted); font-weight:700}
.table td .rowActions{display:flex; flex-wrap:wrap; gap:6px}
.table td .rowActions .btn{padding:7px 11px; border-radius:999px; font-size:12px; line-height:1.1}

.statsGrid{display:grid; grid-template-columns: repeat(4,1fr); gap:10px}
@media (max-width:900px){ .statsGrid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:500px){ .statsGrid{grid-template-columns:1fr} }
.statCard{border:1px solid var(--border); border-radius:14px; background:#fff; padding:12px}
.statCard h3{margin:0; font-size:12px; color:var(--muted); font-weight:700}
.statCard .value{margin-top:4px; font-size:24px; font-weight:800; letter-spacing:-.03em}

.toolbar{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:center; margin:8px 0 10px}
.filterRow{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.filterRow .pill{
  font-size:12px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:linear-gradient(180deg,#fff,#f8fafc);
  cursor:pointer;
  box-shadow:0 2px 6px rgba(15,23,42,.04);
}
.filterRow .pill:hover{border-color:var(--border-strong)}
.filterRow .pill.active{
  border-color:rgba(0,45,71,.22);
  background:linear-gradient(180deg,rgba(0,45,71,.08),rgba(0,45,71,.03));
  color:var(--primary);
  font-weight:700;
}

.footerHint{margin-top:10px; font-size:12px; color:var(--muted)}
.empty{
  border:1px dashed var(--border);
  border-radius:14px;
  padding:16px;
  color:var(--muted);
  background:rgba(255,255,255,.65);
  font-size:14px;
}

.loginPanel{max-width:560px; margin:14px auto 0}
.loginPanel .cardPad{padding:18px}
.adminLayout{display:grid; gap:16px; margin-top:14px}

.linkInline{color:var(--primary); text-decoration:none; font-weight:700}
.linkInline:hover{text-decoration:underline}

/* ---------- Footer (wie Seite 17, ohne Datenschutz) ---------- */
.footer{
  margin-top:auto;
  padding:26px 0 24px;
  border-top:1px solid var(--border);
  background:rgba(255,255,255,0.75);
}
.footerInner{ display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; text-align:left; }
.footerBrand{display:flex;align-items:center;gap:0;}
.footerSub{ color: var(--muted-2); font-size: 12.5px; margin-top: 2px; text-align:left; }
.link{
  color: var(--muted);
  text-decoration:none;
  font-weight: 500;
  font-size: 14px;
}
.link:hover{ color: var(--primary); text-decoration: underline; }
.footerRight{
  margin-left:auto;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.55;
  text-align:right;
  display:flex;
  justify-content:flex-end;
}
.footerRight > span{
  display:inline-flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  text-align:right;
}
.footer .link{ font-size:12px; }
.footerLegal{
  margin-top:8px;
  justify-content:flex-end;
  color:var(--muted-2);
  font-size:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  text-align:right;
}
.footerLegal .sep{ opacity:0.55; }

@media (max-width: 640px){
  .footerInner{ justify-content:center; text-align:center; }
  .footerBrand{display:flex;align-items:center;gap:0;}
  .footerSub{ text-align:center; }
  .footerRight{ width:100%; text-align:center; justify-content:center; margin-left:0; }
  .footerRight > span{ justify-content:center; text-align:center; }
  .footerLegal{ justify-content:center; text-align:center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 980px){
  .brandText span{display:none;}
  .navToggle{display:flex;}
  .nav{
    position:absolute;
    left:24px;
    right:24px;
    top:60px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:12px;
    border-radius:18px;
    border:1px solid var(--border);
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow);
  }
  .nav.navOpen{display:flex;}
  .navLink{
    width:100%;
    justify-content:flex-start;
    padding:11px 12px;
    border:1px solid rgba(15,23,42,0.08);
    background:#fff;
    font-size:14px;
  }
  .navLink.navExt{ font-size:14px; }
  .navIco{
    width:24px; height:24px;
    border-radius:8px;
    font-size:13px;
    background: rgba(0,45,71,0.08);
  }
  .topActions{
    margin-left:0;
    margin-right:4px;
    gap:6px;
  }
  .topActions .btn{
    padding:10px 12px;
    min-width:42px;
  }
  .topActions .btn .actionLabel{display:none;}
  .topActions .btn .actionIco{display:inline-flex;}
  .container{padding:0 16px;}
  .page{padding-top:14px;}
}

@media (max-width: 760px){
  .tableWrap{
    overflow:visible;
    border:none;
    background:transparent;
  }
  .table{
    min-width:0;
    width:100%;
  }
  .table thead{ display:none; }
  .table tbody{ display:grid; gap:10px; }
  .table tr{
    display:block;
    border:1px solid rgba(15,23,42,0.10);
    background:#fff;
    border-radius:14px;
    padding:8px 10px;
    box-shadow: var(--shadow-soft);
  }
  .table td{
    display:flex;
    justify-content:space-between;
    gap:10px;
    border-bottom:none;
    padding:6px 2px;
    align-items:flex-start;
  }
  .table td::before{
    content: attr(data-label);
    color:var(--muted);
    font-weight:700;
    font-size:12px;
    min-width:88px;
    flex:0 0 88px;
  }
  .table td > *{ text-align:right; }
  .table td .rowActions{
    justify-content:flex-end;
  }
  .table td .rowActions .btn{
    padding:7px 10px;
  }
  .table td[data-label="Termin"] > *,
  .table td[data-label="Aktionen"] > *{
    text-align:right;
  }
  .toolbar{align-items:flex-start}
}


@media (max-width: 560px){
  .topbarInner{
    min-height:auto;
    padding-top:14px;
    padding-bottom:14px;
  }
  .brand{
    min-width:0;
    flex:1 1 auto;
    max-width:calc(100% - 104px);
  }
  .brandText strong{
    font-size:14px;
    white-space:normal;
    line-height:1.15;
  }
  .cardHeader{
    flex-direction:column;
    align-items:flex-start;
  }
  .loginPanel{
    max-width:100%;
    margin-top:12px;
  }
  .loginPanel .cardPad{
    padding:14px;
  }
  .footer{
    padding:20px 0 20px;
  }
  .footerBrand{display:flex;align-items:center;gap:0;}
  .footerSub{
    line-height:1.45;
  }
}



@media (max-width: 560px){
  .topbarInner{
    gap:8px;
  }
  .topActions{
    margin-right:0;
    gap:4px;
  }
  .topActions .btn{
    padding:9px 10px;
    min-height:40px;
  }
  .brandMark{display:flex;align-items:center;justify-content:flex-start;background:transparent;border:0;padding:0;width:auto;height:auto;border-radius:4px;box-shadow:none;}
  .brandMark img,.brandLogo{ width:auto; height:40px; max-width:min(250px,58vw); border-radius:4px; object-fit:contain; }
  .brandText strong{ font-size:13px; }
  .brandText{display:none !important;}
  .brand{ max-width:calc(100% - 96px); }
  .brandMark img,.brandLogo{ height:38px; max-width:min(220px,56vw); }
  .loginPanel .grid2{ grid-template-columns:1fr; }
  .loginPanel input{ min-width:0; }
}

/* ---------- Slot Details (v3) ---------- */
.slotDetailsPanel{
  margin-top:10px;
  border:1px solid rgba(0,45,71,.14);
  background:rgba(248,250,252,.92);
  border-radius:14px;
  padding:10px 12px;
}
.slotDetailsHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  color:var(--primary);
  font-size:13px;
}
.slotRich{
  color:var(--text);
  font-size:14px;
  line-height:1.55;
}
.slotRich p{ margin:0 0 8px; }
.slotRich p:last-child{ margin-bottom:0; }
.slotRich h1,.slotRich h2,.slotRich h3,.slotRich h4{
  margin:0 0 8px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.slotRich h2{ font-size:17px; }
.slotRich h3{ font-size:15px; }
.slotRich ul,.slotRich ol{ margin:0 0 8px 18px; padding:0; }
.slotRich li{ margin:2px 0; }
.slotRich a{ color:var(--primary); font-weight:600; text-decoration:none; }
.slotRich a:hover{ text-decoration:underline; }
.slotRich img{
  display:block;
  max-width:100%;
  height:auto;
  margin:8px 0;
  border-radius:10px;
  border:1px solid rgba(15,23,42,0.08);
}
.detailsLine{
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:6px;
}
.detailsDot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(148,163,184,.7);
  display:inline-block;
  flex:0 0 auto;
}
.detailsDot.ok{ background:rgba(22,163,74,.9); }

/* ---------- Modal / Editor (v3) ---------- */
body.modalOpen{ overflow:hidden; }
.modal{
  position:fixed;
  inset:0;
  z-index:2000;
}
.modal.hidden{ display:none !important; }
.modalBackdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.35);
}
.modalCard{
  position:relative;
  z-index:1;
  width:min(980px, calc(100% - 24px));
  margin:20px auto;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px;
  max-height:calc(100vh - 40px);
  overflow:auto;
}
.modalHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.modalHeader h2{
  margin:0;
  font-size:18px;
  letter-spacing:-.02em;
}
.modalHeader p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}
.rteToolbar{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(248,250,252,.8);
}
.rteToolbar .btn{
  padding:7px 10px;
  font-size:12px;
}
.rteGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.rtePane{
  min-width:0;
}
.rteLabel{
  margin-bottom:5px;
}
.rteEditor,
.rtePreview{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  min-height:260px;
  padding:10px 12px;
  font-size:14px;
  line-height:1.55;
}
.rteEditor{
  outline:none;
}
.rteEditor:focus{
  border-color:rgba(0,45,71,.3);
  box-shadow:0 0 0 3px rgba(0,45,71,.12);
}
.rtePreview{
  background:rgba(248,250,252,.45);
  overflow:auto;
}
.rtePreview p:last-child{ margin-bottom:0; }

.rteToolGroup{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 6px;
  border:1px dashed rgba(15,23,42,.12);
  border-radius:10px;
  background:#fff;
}
.rteToolGroup label{
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}
.rteToolGroupWide{ width:100%; justify-content:flex-start; }
.rteSelect{
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  padding:5px 8px;
  font-size:12px;
  min-width:88px;
}
.rteColor{
  width:34px;
  height:28px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  padding:2px;
}
.rteRangeWrap{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  width:100%;
}
.rteRangeWrap input[type="range"]{
  flex:1 1 140px;
  min-width:120px;
}
.rteRangeValue{
  min-width:38px;
  font-size:12px;
  color:var(--muted);
  text-align:right;
}
.rteSelectedImg{
  outline:2px solid rgba(37,99,235,.8);
  outline-offset:2px;
}

@media (max-width:860px){
  .rteGrid{ grid-template-columns:1fr; }
  .rteEditor,.rtePreview{ min-height:180px; }
}
@media (max-width:560px){
  .modalCard{
    width:calc(100% - 12px);
    margin:6px auto;
    max-height:calc(100vh - 12px);
    border-radius:14px;
    padding:10px;
  }
  .modalHeader{
    flex-direction:column;
  }
  .rteToolbar{
    gap:5px;
    padding:6px;
  }
  .rteToolbar .btn{
    font-size:11px;
    padding:7px 8px;
  }
  .rteToolGroup{
    width:100%;
    justify-content:flex-start;
  }
  .rteRangeWrap input[type="range"]{
    min-width:100px;
  }
}

/* Keine Bewegung / Animation */
*, *::before, *::after{
  transition:none !important;
  animation:none !important;
  scroll-behavior:auto !important;
}


.visuallyHiddenInput{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}


.successTools{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.successTools .btn{padding:8px 10px;font-size:12px}
.adminLabelSub{display:block;font-size:11px;color:var(--muted);margin-top:2px}


/* v3.6.2 mobile booking reliability */
.inlineForm{touch-action:manipulation}
.slotActions .btn{touch-action:manipulation}
@media (max-width:560px){
  .inlineForm .slotActions{display:grid;grid-template-columns:1fr;}
  .inlineForm .slotActions .btn{width:100%; min-height:44px;}
}



/* v3.8 admin/team + turnstile */
.turnstileWrap{display:flex;flex-direction:column;gap:6px}
.turnstileWrap.hidden{display:none!important}
.adminSearchRow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.adminSearchRow input{min-width:220px;flex:1 1 220px}
.rolePill{display:inline-flex;align-items:center;padding:2px 8px;border:1px solid rgba(15,23,42,.12);border-radius:999px;font-size:11px;font-weight:700}
.rolePill.admin{color:#7c2d12;background:rgba(251,146,60,.08);border-color:rgba(251,146,60,.25)}
.rolePill.manager{color:#1d4ed8;background:rgba(59,130,246,.08);border-color:rgba(59,130,246,.25)}
.rolePill.staff{color:#334155;background:rgba(148,163,184,.10);border-color:rgba(148,163,184,.25)}
.teamRoleCell{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.teamRoleCell select{min-width:110px}
.table .mutedLine{display:block;color:var(--muted);font-size:12px;margin-top:4px}

/* === Liquid Glass Override (cards + chips) | primary buttons stay #000537 === */
:root{
  --lg-border: rgba(255,255,255,0.34);
  --lg-border-strong: rgba(255,255,255,0.50);
  --lg-bg: linear-gradient(135deg, rgba(255,255,255,0.34), rgba(255,255,255,0.14));
  --lg-bg-soft: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.10));
  --lg-shadow: 0 14px 34px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.70), inset 0 -1px 0 rgba(255,255,255,0.10);
  --lg-shadow-soft: 0 8px 20px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.68);
}
body{
  background:
    radial-gradient(1100px 760px at 8% -4%, rgba(0,45,71,0.08), transparent 62%),
    radial-gradient(1000px 760px at 100% 8%, rgba(99,102,241,0.07), transparent 62%),
    radial-gradient(900px 650px at 65% 0%, rgba(14,165,233,0.07), transparent 60%),
    linear-gradient(to bottom, #f7fbff, #eef3f8) !important;
}

.topbar{
  background: rgba(255,255,255,0.58) !important;
  border-bottom: 1px solid rgba(255,255,255,0.44) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.brandMark,
.brandMarkSmall,
.navLink:not(.navPrimary),
.navToggle{
  background: var(--lg-bg-soft) !important;
  border: 1px solid var(--lg-border) !important;
  box-shadow: var(--lg-shadow-soft) !important;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.navLink:hover{
  border-color: var(--lg-border-strong) !important;
}
.navLink[aria-current="page"]{
  background: linear-gradient(135deg, rgba(255,255,255,0.52), rgba(255,255,255,0.18)) !important;
  border: 1px solid rgba(0,45,71,0.18) !important;
  color: var(--primary) !important;
  box-shadow: 0 8px 20px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.82) !important;
}

/* keep AFANDI primary buttons */
.btnPrimary{
  background: linear-gradient(180deg, #002D47, #002D47) !important;
  border-color: rgba(0,45,71,.22) !important;
  color:#fff !important;
  box-shadow: 0 10px 20px rgba(0,45,71,0.22), inset 0 1px 0 rgba(255,255,255,0.18) !important;
}
.btnPrimary:hover{
  background: linear-gradient(180deg, #00385A, #002D47) !important;
}

/* secondary / ghost buttons = glass */
.btn:not(.btnPrimary){
  background: var(--lg-bg-soft) !important;
  border: 1px solid var(--lg-border) !important;
  box-shadow: 0 6px 16px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.76) !important;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.btn:not(.btnPrimary):hover{
  border-color: var(--lg-border-strong) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.52), rgba(255,255,255,0.20)) !important;
}

.card,
.heroIntro,
.heroStat,
.slotCard,
.inlineForm,
.tableWrap,
.statCard,
.alert.info,
.empty,
.modalCard,
.slotDetailsPanel,
.rteToolbar,
.rtePreview,
.rteEditor{
  background: var(--lg-bg) !important;
  border: 1px solid var(--lg-border) !important;
  box-shadow: var(--lg-shadow) !important;
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
}

.heroIntro{
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,0.42), rgba(255,255,255,0.14) 60%),
    linear-gradient(135deg, rgba(0,45,71,.06), rgba(14,165,233,.06)) !important;
}
.kicker,
.filterRow .pill{
  background: var(--lg-bg-soft) !important;
  border: 1px solid var(--lg-border) !important;
  box-shadow: 0 6px 14px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.78) !important;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.kicker{ color: var(--primary) !important; }
.filterRow .pill.active{
  border-color: rgba(0,45,71,.20) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.58), rgba(0,45,71,0.06)) !important;
  color: var(--primary) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,0.09), inset 0 1px 0 rgba(255,255,255,0.82) !important;
}

.badge{
  border-color: rgba(255,255,255,0.42) !important;
  box-shadow: 0 4px 10px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.72);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}
.badge.open{ background: linear-gradient(135deg, rgba(240,253,244,0.65), rgba(255,255,255,0.20)) !important; }
.badge.booked{ background: linear-gradient(135deg, rgba(255,247,237,0.65), rgba(255,255,255,0.20)) !important; }
.badge.off{ background: linear-gradient(135deg, rgba(254,242,242,0.65), rgba(255,255,255,0.20)) !important; }
.badge.admin{ background: linear-gradient(135deg, rgba(239,246,255,0.65), rgba(255,255,255,0.20)) !important; }

.slotCardClickable:hover,
.slotCard.detailsExpanded{
  border-color: rgba(255,255,255,0.52) !important;
  box-shadow: 0 18px 36px rgba(15,23,42,0.12), inset 0 1px 0 rgba(255,255,255,0.84), inset 0 -1px 0 rgba(255,255,255,0.12) !important;
}
.slotCardClickable .slotHint,
.linkInline,
.slotRich a{ color: var(--primary) !important; }

input, textarea, select{
  background: linear-gradient(135deg, rgba(255,255,255,0.68), rgba(255,255,255,0.34)) !important;
  border-color: rgba(255,255,255,0.50) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 4px 12px rgba(15,23,42,0.04);
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(0,45,71,.24) !important;
  outline: 3px solid rgba(0,45,71,.14) !important;
}

.rteToolGroup,
.rteSelect,
.rteColor{
  background: linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.28)) !important;
  border-color: rgba(255,255,255,0.44) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 3px 8px rgba(15,23,42,0.04);
}

/* ---- Unified background (kein Verlauf) + stabileres Scrollen (Mobile) ---- */
html, body { background: #F5F5F7 !important; }
body { background-image: none !important; }
.topbar { -webkit-transform: translateZ(0); transform: translateZ(0); will-change: transform; }
hr{border:none !important; background:transparent !important; height:0 !important;}


.brand--logoonly{gap:0 !important;}
.brand--logoonly .brandMark{margin-right:0 !important;}
.footerBrand .footerSub{display:none !important;}

.brandMark{display:flex;align-items:center;justify-content:flex-start;background:transparent;border:0;padding:0;width:auto;height:auto;border-radius:4px;box-shadow:none;}
.brandMark img,.brandLogo{width:auto;height:52px;max-width:min(360px,58vw);border-radius:4px;object-fit:contain;display:block;}


/* Footer brand text requested */
.footerBrand{gap:12px !important;}
.footerBrand .footerSub{display:block !important;}
@media (max-width:760px){.footerBrand{gap:10px !important;}}


/* AFANDI icon-only logo update */
.brandLogo,
.brandLogoSmall,
.brandMark img,
.brandMarkSmall img{
  border-radius:8px !important;
  object-fit:contain !important;
}
.brandMark,
.brandMarkSmall{
  border-radius:8px !important;
}
