/* =========================
   GLOBAL / TOKENS
========================= */
:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#9fb0d0;
  --text:#eef3ff;
  --accent:#6ea8ff;
  --line:rgba(255,255,255,.08);
  --danger:#ff6b6b;

  --rent-border: rgba(255,214,64,.55);
  --rent-bg: rgba(255,214,64,.14);
  --rent-text: #ffe08a;
}

*{ box-sizing:border-box; }

html,body{
  height:100%;
  min-height:100%;
  background:var(--bg);
}

body{
  margin:0;
  color:var(--text);
  font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:transparent !important;
  position:relative;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(110,168,255,.10), transparent 55%),
    radial-gradient(900px 700px at 85% 20%, rgba(110,168,255,.06), transparent 60%),
    linear-gradient(180deg, #081025 0%, #0b1220 45%, #070b14 100%);
}

a{ color:var(--accent); }

/* Visually hidden (screen-reader only) */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Form base */
input,select,button{
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:10px;
  padding:10px 12px;
  outline:none;
}
input::placeholder{ color:rgba(255,255,255,.35); }
button{ cursor:pointer; }

select{
  background:var(--card) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
}

/* Mini buttons */
.btnMini{
  appearance:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:999px;
  padding:6px 10px;
  font:inherit;
  cursor:pointer;
}
.btnMini:hover{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}
.btnMini:active{ transform:translateY(1px); }
.btnMini[disabled]{ opacity:.5; cursor:not-allowed; transform:none; }

.btnMini.danger{
  border-color:rgba(255,100,100,.45);
  background:rgba(255,100,100,.10);
}
.btnMini.danger:hover{ background:rgba(255,100,100,.16); }

/* Common wrapper */
.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:22px;
  background:transparent;
}

/* Chips */
.chip{
  border:1px solid var(--line);
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.03);
  font-size:12px;
  color:var(--muted);
}
.chip.rentChip{
  border-color:var(--rent-border);
  background:var(--rent-bg);
  color:var(--rent-text);
}

/* =========================
   CATALOG PAGE – neues Sidebar-Layout
========================= */

/* ── App Shell ──────────────────────────────── */
body.catalog-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 56px;
  background: rgba(17,26,46,.98);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  z-index: 50;
  flex-wrap: nowrap;
}

.sidebarToggle {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: none; /* auf Desktop versteckt */
}
.sidebarToggle:hover { background: rgba(255,255,255,.08); }

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.brandName {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}
.titleHint {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--rent-border);
  background: var(--rent-bg);
  color: var(--rent-text);
}

.header-search {
  flex: 1;
  min-width: 0;
  max-width: 480px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Suche */
.catalog-page .searchWrap { position: relative; width: 100%; }
.catalog-page .searchWrap > #q {
  width: 100%;
  padding-right: 40px;
  border-radius: 10px;
}
.catalog-page .clearBtn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; padding: 0;
  visibility: hidden;
}
.catalog-page .clearBtn:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* Sortierung */
.sortGroup {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  white-space: nowrap;
}
.sortLabel {
  font-size: 11px;
  color: var(--muted);
}
.sortBtns {
  display: flex;
  gap: 4px;
}
.sortFieldBtn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .12s;
}
.sortFieldBtn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.sortFieldBtn.active {
  background: rgba(110,168,255,.15);
  border-color: rgba(110,168,255,.35);
  color: var(--accent);
  font-weight: 700;
}
.sortDirBtn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: all .12s;
}
.sortDirBtn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }

/* Cart Button */
.cartBtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .12s;
}
.cartBtn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.cartBtn.has-items {
  border-color: rgba(110,168,255,.4);
  background: rgba(110,168,255,.12);
}
.cartBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0b1220;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
}
.cartBtn:not(.has-items) .cartBadge {
  background: rgba(255,255,255,.12);
  color: var(--muted);
}

/* Admin Button */
.adminBtn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(110,168,255,.35);
  background: rgba(110,168,255,.10);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: all .12s;
}
.adminBtn:hover { background: rgba(110,168,255,.18); }

/* ── Content Layout (Sidebar + Main) ─────────── */
.content-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: rgba(13,20,36,.98);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 10px 8px;
}

.nav-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: background .12s;
  margin-bottom: 6px;
  user-select: none;
}
.nav-all:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-all.active {
  background: rgba(110,168,255,.12);
  color: var(--accent);
  border: 1px solid rgba(110,168,255,.2);
}

.nav-count {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-group { margin-bottom: 2px; }

.nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background .12s;
  user-select: none;
}
.nav-parent:hover { background: rgba(255,255,255,.05); }
.nav-parent.open { color: var(--accent); }
.nav-parent-label { display: flex; align-items: center; gap: 8px; }
.nav-arrow {
  font-size: 9px;
  color: var(--muted);
  transition: transform .2s;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-parent.open .nav-arrow { transform: rotate(90deg); }

.nav-children {
  overflow: hidden;
  max-height: 0;
  transition: max-height .22s ease;
}
.nav-children.open { max-height: 500px; }

.nav-child {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
  transition: background .12s, color .12s;
  user-select: none;
}
.nav-child:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-child.active {
  background: rgba(110,168,255,.12);
  color: var(--accent);
  font-weight: 600;
}
.nav-child .nav-count { margin-left: auto; }
.nav-child.active .nav-count {
  background: rgba(110,168,255,.2);
  color: var(--accent);
}

/* ── Main Content ────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.results-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.results-count {
  font-size: 12px;
  color: var(--muted);
}

.emptyState {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ── Grid & Cards ────────────────────────────── */
.catalog-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 14px 16px;
}

.catalog-page .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .15s, transform .15s;
}
.catalog-page .card:hover {
  border-color: rgba(255,255,255,.16);
  transform: translateY(-2px);
}

.catalog-page .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.catalog-page .thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  z-index: 1;
  opacity: .7;
}
.catalog-page .thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 2;
}

.catalog-page .body {
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.catalog-page .title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.catalog-page .name { font-weight: 700; }
.catalog-page .maker { color: var(--muted); font-size: 12px; margin-top: 2px; }
.catalog-page .bezeichnung { color: rgba(238,243,255,.9); font-size: 12px; margin-top: 6px; }

.catalog-page .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
}

.catalog-page .desc {
  margin-top: 10px;
  color: rgba(238,243,255,.88);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-page .desc b,
.catalog-page .desc strong { font-weight: 800; }

.catalog-page .card footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.catalog-page .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.catalog-page .actions .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(110,168,255,.35);
  background: rgba(110,168,255,.10);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.catalog-page .actions .link:hover { background: rgba(110,168,255,.18); }
.catalog-page .actions .link::after { content: "→"; opacity: .8; }

/* ── Chips ───────────────────────────────────── */
.chip {
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: 12px;
  color: var(--muted);
}
.chip.rentChip {
  border-color: var(--rent-border);
  background: var(--rent-bg);
  color: var(--rent-text);
}

/* ── Modal ───────────────────────────────────── */
.catalog-page .modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center; justify-content: center;
  padding: 18px;
  z-index: 1000;
}
.catalog-page .modal.open { display: flex; }
.catalog-page .modalBox {
  max-width: 980px; width: 100%;
  background: rgba(17,26,46,.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  max-height: 90vh;
  display: flex; flex-direction: column;
}
.catalog-page .modalHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.catalog-page .modalTitle { font-weight: 800; }
.catalog-page .close {
  cursor: pointer; padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.catalog-page .modalBody {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow-y: auto;
}
@media (max-width: 880px) {
  .catalog-page .modalBody { grid-template-columns: 1fr; }
}
.catalog-page .gallery {
  background: rgba(255,255,255,.02);
  padding: 10px;
}
.catalog-page .galleryMain {
  aspect-ratio: 16/10;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
}
.catalog-page .galleryMain img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.catalog-page .thumbRow {
  display: flex; gap: 8px;
  overflow-x: auto; margin-top: 10px; padding-bottom: 6px;
}
.catalog-page .thumbRow img {
  width: 92px; height: 60px;
  object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); cursor: pointer; opacity: .85;
}
.catalog-page .thumbRow img.active { outline: 2px solid rgba(110,168,255,.65); opacity: 1; }

.catalog-page .detail { padding: 14px; display: flex; flex-direction: column; }
.catalog-page .modalDetailFoot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.catalog-page .modalAddBtn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(110,168,255,.45);
  background: rgba(110,168,255,.16);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.catalog-page .modalAddBtn:hover {
  background: rgba(110,168,255,.26);
  border-color: rgba(110,168,255,.65);
}
.catalog-page .modalAddBtn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.catalog-page .kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  font-size: 13px;
}
.catalog-page .k { color: var(--muted); }
.catalog-page .v { color: var(--text); }
.catalog-page .fullDesc {
  margin-top: 12px;
  color: rgba(238,243,255,.92);
  line-height: 1.4;
}
.catalog-page .fullDesc br { display: block; margin: 0; }
.catalog-page .rentHint {
  margin-top: 10px; padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  font-size: 13px;
}
.catalog-page .rentHint strong { color: var(--text); }
.catalog-page .locationBadge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(100,220,160,.40);
  background: rgba(100,220,160,.12);
  color: rgba(160,240,200,.95);
  font-size: 13px; font-weight: 600;
}
.catalog-page .locationBadge strong { color: #fff; }

/* ── Cart Drawer ─────────────────────────────── */
.catalog-page .cartDrawer {
  position: fixed; top: 0; right: 0;
  height: 100vh; width: min(420px,92vw);
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0,0,0,.35);
  transform: translateX(102%);
  transition: transform .18s ease;
  z-index: 200;
  display: flex; flex-direction: column;
}
.catalog-page .cartDrawer.open { transform: translateX(0); }
.catalog-page .cartHead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; border-bottom: 1px solid var(--line);
}
.catalog-page .cartHead .h { font-size: 16px; font-weight: 700; }
.catalog-page .cartBody { padding: 12px 14px; overflow-y: auto; flex: 1; }
.catalog-page .cartFoot {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center;
  justify-content: flex-end; flex-wrap: wrap;
}
.catalog-page .cartFoot .hint { flex: 1 1 180px; color: var(--muted); font-size: 12px; }
.catalog-page .cartItem {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.catalog-page .cartItem:last-child { border-bottom: 0; }
.catalog-page .cartItem .t { font-weight: 650; }
.catalog-page .qtyCtl { display: flex; gap: 8px; align-items: center; }
.catalog-page .qtyCtl input {
  width: 60px; padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  -moz-appearance: textfield;
  text-align: center;
}
.catalog-page .qtyCtl input::-webkit-outer-spin-button,
.catalog-page .qtyCtl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Lightbox ────────────────────────────────── */
.catalog-page .lightbox,
.lightbox {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.8);
  z-index: 9999;
}
.catalog-page .lightbox.open,
.lightbox.open { display: flex; }
.catalog-page .lightbox .lb-img,
.lightbox .lb-img {
  max-width: min(1200px,95vw);
  max-height: 92vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.catalog-page .lightbox .lb-close,
.catalog-page .lightbox .lb-nav,
.lightbox .lb-close,
.lightbox .lb-nav {
  position: fixed;
  width: 54px; height: 54px;
  border-radius: 999px; border: 0;
  background: rgba(255,255,255,.15);
  color: #fff; cursor: pointer; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  padding: 0; font-weight: 700;
}
.lightbox .lb-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 28px; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); font-size: 34px; }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }
.lightbox .lb-nav:hover, .lightbox .lb-close:hover { background: rgba(255,255,255,.25); }

body.noscroll { overflow: hidden; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .titleHint { display: none; }
  .sortLabel { display: none; }
}
@media (max-width: 750px) {
  .sidebarToggle { display: flex; }
  .sidebar {
    position: fixed;
    left: 0; top: 56px; bottom: 0;
    z-index: 150;
    transform: translateX(-102%);
    transition: transform .2s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.4);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sortGroup { display: none; }
  .catalog-page .grid { grid-template-columns: repeat(2,1fr); gap: 10px; padding: 10px; }
}
@media (max-width: 480px) {
  .catalog-page .grid { grid-template-columns: 1fr; }
  .adminBtn { display: none; }
}



/* =========================
   ADMIN PAGE (editor.php)
   (einmal definiert, keine Duplikate)
========================= */
.admin-page{
  margin:0;
  font-family:system-ui,Segoe UI,Roboto,Arial;
  background:transparent;
  color:var(--text);
}

.admin-page header{
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.admin-page header a{
  color:var(--muted);
  text-decoration:none;
}

.admin-page .wrap{
  max-width:none;
  margin:0;
  padding:14px;

  /* two-column layout only in admin */
  display:grid;
  grid-template-columns: 1.5fr 3fr;
  gap:14px;
  height:calc(100vh - 60px);
}
@media (max-width:980px){
  .admin-page .wrap{
    grid-template-columns:1fr;
    height:auto;
  }
}

.admin-page .panel{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.admin-page .panel .top{
  padding:12px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.admin-page .panel .top .h{ font-weight:800; }

.admin-page .panel .content{
  padding:12px;
  overflow:auto;
}

.admin-page .list{ overflow:auto; padding:10px; }

.admin-page .row{
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  margin:8px 0;
  background:rgba(0,0,0,.12);
}
.admin-page .row a{
  color:var(--text);
  text-decoration:none;
  display:block;
}
.admin-page .row.active{
  outline:2px solid rgba(110,168,255,.35);
  border-color:rgba(110,168,255,.35);
}

.admin-page .muted{ color:var(--muted); font-size:12px; }

.admin-page input[type=text],
.admin-page input[type=search],
.admin-page textarea,
.admin-page select{
  width:100%;
  background:rgba(0,0,0,.25);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
  outline:none;
}
.admin-page textarea{
  min-height:160px;
  resize:vertical;
  line-height:1.35;
}

.admin-page .form{
  overflow:auto;
  padding:12px;
  display:grid;
  gap:10px;
}

.admin-page .grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.admin-page .field label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px 2px;
}

.admin-page .btn{
  appearance:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
  cursor:pointer;
  font-weight:700;
}
.admin-page .btn:hover{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}
.admin-page .btn.primary{
  border-color:rgba(110,168,255,.35);
  background:rgba(110,168,255,.14);
}
.admin-page .btn.primary:hover{
  border-color:rgba(110,168,255,.55);
  background:rgba(110,168,255,.18);
}
.admin-page .btn.danger{
  border-color:rgba(255,107,107,.35);
  background:rgba(255,107,107,.12);
}
.admin-page .btn.danger:hover{ background:rgba(255,107,107,.16); }

.admin-page .msg{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
}
.admin-page .msg.ok{ border-color:rgba(110,168,255,.35); }
.admin-page .msg.err{ border-color:rgba(255,107,107,.35); }

.admin-page .thumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.admin-page .thumb{ width:110px; }

.admin-page .tile{
  width:110px;
  height:110px;
  border-radius:14px;
  border:1px solid var(--line);
  overflow:hidden;
  background:rgba(0,0,0,.2);
  position:relative;
  cursor:grab;
}
.admin-page .tile img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.admin-page .xbtn{
  position:absolute;
  top:6px;
  right:6px;
  width:26px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.55);
  color:#fff;
  font-weight:900;
  line-height:24px;
  text-align:center;
  cursor:pointer;
}
.admin-page .xbtn:hover{
  background:rgba(255,107,107,.55);
  border-color:rgba(255,107,107,.6);
}

.admin-page .cap{
  margin-top:6px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

.admin-page .bar{
  padding:10px 12px;
  border-top:1px solid var(--line);
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}
.admin-page .hint{ font-size:12px; color:var(--muted); }

.admin-page .callout{
  padding:10px 12px;
  border:1px dashed var(--line);
  border-radius:14px;
  background:rgba(110,168,255,.08);
  color:var(--text);
}

.admin-page .pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.25);
  font-size:12px;
  color:var(--text);
}
.admin-page .pill strong{ font-weight:800; }

.admin-page .searchWrap{
  width:100%;
  display:flex;
  gap:10px;
  align-items:center;
}
.admin-page #adminSearch{ flex:1; }

/* =========================
   PACKLISTE (packliste.php)
========================= */
.packliste-page .wrap{ max-width:980px; }

.packliste-page .printBar{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:12px 0 16px;
}
.packliste-page .printBar .left{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.packliste-page .printHint{ color:var(--muted); font-size:13px; }

.packliste-page .paper{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
}

.packliste-page .grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:780px){
  .packliste-page .grid2{ grid-template-columns:1fr; }
}

.packliste-page .fld label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
.packliste-page .fld input,
.packliste-page .fld textarea{
  width:100%;
  background:rgba(0,0,0,.25);
  color:var(--text);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
}
.packliste-page .fld textarea{ min-height:84px; resize:vertical; }

.packliste-page h2{ margin:18px 0 10px; font-size:18px; }
.packliste-page h3{ margin:16px 0 8px; font-size:15px; color:var(--text); }
.packliste-page .muted{ color:var(--muted); }

.packliste-page table.pack{
  width:100%;
  border-collapse:collapse;
  margin-top:8px;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--line);
}
.packliste-page table.pack th,
.packliste-page table.pack td{
  padding:10px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.packliste-page table.pack th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  background:rgba(255,255,255,.03);
  letter-spacing:.02em;
}
.packliste-page table.pack tr:last-child td{ border-bottom:0; }

.packliste-page .chk{ width:22px; text-align:center; }
.packliste-page .qty{ width:70px; }
.packliste-page .price{ width:140px; }
.packliste-page .sum{ width:140px; }
.packliste-page .note{ width:220px; }

.packliste-page .foot{
  margin-top:14px;
  padding-top:12px;
  border-top:1px dashed rgba(255,255,255,.18);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}

.packliste-page .totals{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
  color:var(--text);
}
.packliste-page .totals .pill{
  border:1px solid var(--line);
  background:rgba(110,168,255,.08);
  padding:8px 10px;
  border-radius:999px;
  font-weight:700;
}

.packliste-page .callout{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}

.packliste-page .lines .row{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:10px;
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.packliste-page .lines .row:last-child{ border-bottom:0; }
.packliste-page .lines .k{
  color:var(--muted);
  font-size:12px;
  padding-top:6px;
}
.packliste-page .lines .v{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.packliste-page .blank{
  display:inline-block;
  min-width:54px;
  padding:6px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
}

@media print{
  .packliste-page body{ background:#fff; color:#000; }
  .packliste-page .wrap{ max-width:none; }
  .packliste-page .printBar{ display:none; }
  .packliste-page .paper{ background:#fff; border:none; padding:0; }
  .packliste-page a{ color:#000; text-decoration:none; }
  .packliste-page table.pack{ border:1px solid #bbb; }
  .packliste-page table.pack th{ background:#f3f3f3; color:#333; }
  .packliste-page table.pack th,
  .packliste-page table.pack td{ border-bottom:1px solid #ddd; }
  .packliste-page .callout{ border:1px solid #ddd; background:#fafafa; }
  .packliste-page .blank{ border:1px solid #bbb; background:#fff; }
  .packliste-page .totals .pill{ border:1px solid #bbb; background:#f3f3f3; }
  .packliste-page .muted,
  .packliste-page .foot{ color:#444; }
}

/* Packliste: mehr Luft zwischen Überschrift / Tabelle / Hinweis */
.packliste-page .sectionTitle{
  margin-top: 26px;
  margin-bottom: 10px;
}

.packliste-page .sectionBlock{
  margin-top: 8px;
  margin-bottom: 18px;
}

.packliste-page .sectionNote{
  margin-top: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.packliste-page .table th{
  padding-top: 10px;
  padding-bottom: 10px;
}
.packliste-page .table td{
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Packliste: Sektionen optisch stärker trennen */
.packliste-page .sectionTitle{
  position: relative;
  padding-bottom: 10px;
}

/* feine Linie unter der Überschrift */
.packliste-page .sectionTitle::after{
  content: "";
  display: block;
  margin-top: 10px;
  height: 1px;
  background: var(--line, rgba(255,255,255,.10));
  opacity: .9;
}

/* Block (Tabelle) als eigener „Card“-Bereich */
.packliste-page .sectionBlock{
  margin-top: 10px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}

/* Tabellenkopf deutlicher */
.packliste-page .sectionBlock .table thead th{
  border-bottom: 1px solid var(--line, rgba(255,255,255,.10));
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Tabellenzeilen etwas luftiger + zarte Zeilentrenner */
.packliste-page .sectionBlock .table tbody td{
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* letzte Zeile ohne „hängende“ Linie */
.packliste-page .sectionBlock .table tbody tr:last-child td{
  border-bottom: none;
}

/* Hinweisblock etwas abgesetzt */
.packliste-page .sectionNote{
  margin-top: 14px;
  margin-bottom: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,.10);
}

/* Packliste: Anzahl-Spalte zentrieren */
.packliste-page .table th:nth-child(3),
.packliste-page .table td:nth-child(3){
  text-align: center;
}

.packliste-page .table th:nth-child(4),
.packliste-page .table td:nth-child(4),
.packliste-page .table th:nth-child(5),
.packliste-page .table td:nth-child(5){
  text-align: center;
}



/* =========================
   LOGIN PAGE (check_password.php)
========================= */
body.login-page{
  min-height:100vh;
  height:100vh;
  margin:0;
  overflow:hidden;            /* kein Scrollen */
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:transparent;     /* Hintergrund kommt über body::before */
}

/* Login-Card */
.login-page .password-form{
  width:min(400px, 100%);
  background:rgba(17,26,46,.92);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px 18px 16px;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}

/* Kopfbereich mit Logo + Text */
.login-page .login-intro{
  display:flex;
  flex-direction:column;   /* NEU: untereinander */
  align-items:center;      /* mittig */
  text-align:center;       /* Text mittig */
  gap:14px;
  align-items:center;
  padding:12px 12px 14px;
  margin:0 0 10px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  border-radius:16px;
}

.login-page .login-logo{
  width:110px;
  height:110px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.35));
  opacity:.95;
}

.login-page .login-text{
  min-width:0;
}

.login-page .login-eyebrow{
  font-weight:800;
  letter-spacing:.02em;
  font-size:13px;
  color:rgba(238,243,255,.92);
}

.login-page .login-info{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

/* Headline */
.login-page h2{
  margin:12px 0 10px;
  font-size:18px;
}

/* Fehlermeldung */
.login-page .error{
  margin:8px 0 12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,107,107,.35);
  background:rgba(255,107,107,.10);
  color:var(--text);
  font-weight:700;
}

/* Formular: Input + Button gleich breit */
.login-page form{
  display:grid;
  grid-template-columns: 1fr; /* untereinander */
  gap:10px;
  margin-top:10px;
}


@media (max-width:520px){
  .login-page form{
    grid-template-columns: 1fr;
  }
}

/* überschreibt ggf. globale input/button Regeln minimal */
.login-page input[type="password"],
.login-page button[type="submit"]{
  width:100%;
  height:44px;
  padding:10px 12px;
  border-radius:12px;
  font:inherit;
}

/* Input */
.login-page input[type="password"]{
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
}
.login-page input[type="password"]:focus{
  border-color:rgba(110,168,255,.55);
  box-shadow:0 0 0 3px rgba(110,168,255,.18);
}

/* Button */
.login-page button[type="submit"]{
  border:1px solid rgba(110,168,255,.35);
  background:rgba(110,168,255,.14);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}
.login-page button[type="submit"]:hover{
  border-color:rgba(110,168,255,.55);
  background:rgba(110,168,255,.18);
}
.login-page button[type="submit"]:active{
  transform:translateY(1px);
}
.login-page button[type="submit"]:focus-visible{
  outline:2px solid rgba(110,168,255,.65);
  outline-offset:2px;
}