/* ==========================================================
   Rentmate — AV-verhuur
   ========================================================== */
:root {
  --brand: #ff5b1f;
  --brand-d: #e54a10;
  --brand-l: #fff0e8;
  --ink: #141417;
  --ink-2: #26262b;
  --ink-3: #3a3a41;
  --paper: #f5f3ef;
  --card: #ffffff;
  --line: #e7e3dc;
  --line-2: #d8d3ca;
  --muted: #76726b;
  --ok: #17a36b;
  --ok-l: #e3f6ee;
  --bad: #e0393e;
  --bad-l: #fde8e8;
  --warn: #f2a93b;
  --violet: #6b5cff;
  --r: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(20,20,23,.05), 0 8px 24px -12px rgba(20,20,23,.12);
  --shadow-lg: 0 24px 60px -20px rgba(20,20,23,.35);
  --font-h: 'Manrope', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.r { text-align: right; }
.hp { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--card); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font: 700 14px/1.2 var(--font-h); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-brand { --bg: var(--brand); --fg: #fff; box-shadow: 0 6px 18px -8px rgba(255,91,31,.7); }
.btn-brand:hover { --bg: var(--brand-d); }
.btn-dark { --bg: var(--ink); --fg: #fff; }
.btn-dark:hover { --bg: var(--ink-3); }
.btn-outline { --bg: transparent; border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-l { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-l:hover { border-color: #fff; }
.btn-ghost { --bg: transparent; }
.btn-ghost:hover { --bg: rgba(0,0,0,.05); }
.btn-lg { padding: 15px 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; --bg: var(--ink); --fg: #fff; }
.btn-icon:hover { --bg: var(--brand); transform: rotate(90deg); }
.danger { color: var(--bad) !important; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.icon-btn.b { border: 1.5px solid var(--line-2); width: 36px; height: 36px; color: var(--ink); text-decoration: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--font-h); text-decoration: none; color: var(--ink); }
.link-arrow:hover { color: var(--brand); }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .15s; }
.grow { flex: 1; }
.push-r { margin-left: auto; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 21px var(--font-h); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); position: relative; flex: none; }
.logo-mark::after { content: ''; position: absolute; inset: 7px 7px 7px 7px; border: 2.5px solid #fff; border-radius: 3px; border-right-color: transparent; }
.logo-light { color: #fff; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(245,243,239,.85); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font: 600 14px var(--font-h); color: var(--ink-3); }
.mainnav a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.mainnav a.on { color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cartbtn { position: relative; }
.cartcount { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; display: inline-grid; place-items: center; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.cartcount.is-empty { background: var(--ink-3); }
.cartcount.bump { transform: scale(1.35); }
.navtoggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }

/* ---------- Flash ---------- */
.flashes { margin-top: 16px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--r); margin-bottom: 14px; font-weight: 500; background: var(--ok-l); color: #0c6b45; border: 1px solid #bfe8d6; }
.flash-err { background: var(--bad-l); color: #a1161b; border-color: #f7c9c9; }
.flash a { font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); pointer-events: none; }
.hero::before { content: ''; position: absolute; width: 640px; height: 640px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(255,91,31,.55), transparent 65%); filter: blur(20px); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font: 600 13px var(--font-h); color: rgba(255,255,255,.85); margin-bottom: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255,91,31,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,91,31,0); } }
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -.04em; line-height: .98; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 18px; color: rgba(255,255,255,.72); max-width: 520px; margin-bottom: 32px; }
.lead-d { font-size: 17px; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats strong { display: block; font: 800 30px var(--font-h); letter-spacing: -.03em; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.55); }
.hero-visual { position: relative; height: 440px; }
.hv-card { position: absolute; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; }
.hv-1 { left: 0; top: 40px; width: 340px; animation: float 6s ease-in-out infinite; }
.hv-2 { right: 0; top: 0; background: var(--brand); color: #fff; padding: 20px 24px; animation: float 6s ease-in-out -2s infinite; }
.hv-2 small { opacity: .85; display: block; font-weight: 600; }
.hv-2 b { font: 800 22px var(--font-h); }
.hv-3 { right: 30px; bottom: 20px; width: 220px; background: var(--ink-2); color: #fff; border: 1px solid rgba(255,255,255,.1); animation: float 6s ease-in-out -4s infinite; }
.hv-3 small { color: rgba(255,255,255,.65); }
.hv-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-bottom: 10px; }
.hv-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, var(--brand), #ff9a6b); }
.hv-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.hv-row:last-child { border: 0; }
.hv-row div { flex: 1; }
.hv-row b { display: block; font: 700 15px var(--font-h); }
.hv-row small { color: var(--muted); }
.hv-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; }
.hv-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-l); color: var(--ok); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding-top: 72px; }
.section:last-of-type { padding-bottom: 88px; }
.section-tight { margin-top: -36px; position: relative; z-index: 2; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.kicker { display: inline-block; font: 700 12px var(--font-h); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 10px; }
.kicker-l { color: #ff9a6b; }

/* ---------- Period bar ---------- */
.periodbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border-radius: var(--r-lg); padding: 14px 14px 14px 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.pagehead + .wrap > .periodbar { margin: -34px 0 28px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.periodbar.compact { box-shadow: none; background: var(--paper); margin-top: 22px; padding: 12px 12px 12px 16px; }
.pb-label { display: flex; align-items: center; gap: 12px; margin-right: 8px; }
.pb-label .ico { color: var(--brand); }
.pb-label span { display: flex; flex-direction: column; line-height: 1.25; }
.pb-label strong { font: 800 16px var(--font-h); }
.pb-label small { color: var(--muted); font-size: 13px; }
.pb-field { display: flex; flex-direction: column; background: var(--paper); border-radius: 10px; padding: 6px 12px; border: 1.5px solid transparent; }
.pb-field:focus-within { border-color: var(--brand); background: #fff; }
.pb-field span { font: 700 11px var(--font-h); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pb-field input { border: 0; background: transparent; font: 600 15px var(--font); padding: 2px 0; outline: none; color: var(--ink); min-width: 130px; }
.pb-arrow { color: var(--muted); }
.pb-factor { flex: 1; font-size: 14px; color: var(--muted); min-width: 120px; }
.pb-factor strong { color: var(--brand); }
.pb-note, .handover-note { display: flex; align-items: center; gap: 8px; width: 100%; order: 6; padding: 10px 14px; border-radius: 10px; background: #fff3dd; color: #7a4a00; font-size: 14px; font-weight: 500; }
.pb-note[hidden], .handover-note[hidden] { display: none; }
.handover-note { margin-bottom: 10px; }
.closed-hint { margin: 0; }
.g-cell.closed, .g-day.closed { background: repeating-linear-gradient(135deg, #fff3dd 0 4px, #fdf8ee 4px 8px); }
.g-day.closed small { color: #b86e00; }
.g-closedrow .g-name span { color: #8a5500; }
.g-closedrow .g-cell { cursor: pointer; }
.g-closedrow .g-cell.closed { background: repeating-linear-gradient(135deg, #f2a93b 0 4px, #f7c878 4px 8px); }
.lg.closed { background: repeating-linear-gradient(135deg, #f2a93b 0 3px, #f7c878 3px 6px); }
.handover { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.handover span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--paper); font-size: 13px; }
.handover span.shifted { background: #fff3dd; color: #7a4a00; }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; min-height: 170px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--ink); color: #fff; }
.cat-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); margin-bottom: auto; transition: background .2s, color .2s; }
.cat-tile:hover .cat-ic { background: var(--brand); color: #fff; }
.cat-name { font: 800 19px var(--font-h); margin-top: 18px; }
.cat-count { font-size: 13px; color: var(--muted); }
.cat-tile:hover .cat-count { color: rgba(255,255,255,.6); }
.cat-go { position: absolute; top: 22px; right: 22px; opacity: 0; transform: translateX(-6px); transition: .2s; color: var(--brand); }
.cat-tile:hover .cat-go { opacity: 1; transform: none; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 4/3; background: var(--paper); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #fff; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); background:
  radial-gradient(circle at 30% 20%, rgba(255,91,31,.18), transparent 55%),
  radial-gradient(circle at 80% 90%, rgba(107,92,255,.12), transparent 50%),
  repeating-linear-gradient(135deg, transparent 0 14px, rgba(20,20,23,.025) 14px 15px), #f1eee8; }
.ph .ico { width: 34%; height: auto; max-width: 96px; stroke-width: 1.3; transition: transform .4s; }
.card:hover .ph .ico { transform: scale(1.08) rotate(-4deg); }
.avail { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 99px; font: 700 12px var(--font-h); backdrop-filter: blur(6px); }
.avail.yes { background: rgba(227,246,238,.92); color: #0c6b45; }
.avail.no { background: rgba(253,232,232,.92); color: #a1161b; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font: 700 11px var(--font-h); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card h3 a { text-decoration: none; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font: 800 20px var(--font-h); letter-spacing: -.02em; }
.price small { font: 500 13px var(--font); color: var(--muted); margin-left: 2px; }

/* ---------- Band / steps ---------- */
.band { background: var(--ink); color: #fff; padding: 80px 0; margin-top: 88px; position: relative; overflow: hidden; }
.band::after { content: ''; position: absolute; left: -200px; bottom: -300px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,91,31,.3), transparent 65%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; position: relative; z-index: 1; }
.step { background: var(--ink); padding: 28px; }
.step-n { display: inline-block; font: 800 14px var(--font-h); color: var(--brand); margin-bottom: 36px; padding: 6px 10px; border: 1.5px solid rgba(255,91,31,.4); border-radius: 8px; }
.step p { color: rgba(255,255,255,.6); font-size: 14px; margin: 0; }

/* ---------- Staffel ---------- */
.staffel-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.weekend-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--brand-l); color: #8a2c07; margin-top: 18px; }
.weekend-note .ico { color: var(--brand); margin-top: 2px; }
.staffel-table { background: #fff; border-radius: var(--r-lg); padding: 24px 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.st-row { display: grid; grid-template-columns: 110px 1fr 58px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.st-row:last-child { border: 0; }
.st-d { font: 700 14px var(--font-h); }
.st-bar { height: 10px; border-radius: 5px; background: var(--paper); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--brand), #ff9a6b); }
.st-f { font: 800 16px var(--font-h); text-align: right; }
.st-extra .st-d, .st-extra .st-f { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-block { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: 28px; background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.cta-block::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 40px 40px; }
.cta-block > * { position: relative; }
.cta-block h2 { margin-bottom: 6px; }
.cta-block p { margin: 0; opacity: .85; }

/* ---------- Page head ---------- */
.pagehead { background: var(--ink); color: #fff; padding: 44px 0 72px; position: relative; overflow: hidden; }
.pagehead::after { content: ''; position: absolute; right: -100px; top: -180px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,91,31,.4), transparent 65%); }
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead h1 { margin: 0; font-size: clamp(32px, 4.5vw, 52px); }
.pagehead-sm { padding: 22px 0; }
.pagehead-sm::after { display: none; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.pagehead-sm .crumbs { margin: 0; }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-bottom: 88px; }
.filters { position: sticky; top: 90px; align-self: start; min-width: 0; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; color: var(--muted); }
.search:focus-within { border-color: var(--ink); }
.search input { border: 0; outline: 0; background: transparent; font: 500 15px var(--font); padding: 12px 0; width: 100%; color: var(--ink); }
.search-inline { max-width: 320px; flex: 1; }
.catnav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.catnav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font: 600 14px var(--font-h); color: var(--ink-3); }
.catnav a span { margin-left: auto; font-size: 12px; color: var(--muted); }
.catnav a:hover { background: #fff; }
.catnav a.on { background: var(--ink); color: #fff; }
.catnav a.on .ico { color: var(--brand); }
.catnav a.on span { color: rgba(255,255,255,.5); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar-r { display: flex; align-items: center; gap: 16px; }
select, input, textarea { font: inherit; color: inherit; }
select { padding: 9px 34px 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23141417' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font-weight: 500; cursor: pointer; }
.chk { display: inline-flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 14px; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); margin: 1px 0 0; flex: none; }
.empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty .ico { color: var(--line-2); margin: 0 auto 12px; }
.empty h3 { color: var(--ink); }
.empty.sm { padding: 32px 16px; }
.empty.sm p { margin: 0; }
.big-empty { padding: 100px 24px 120px; }
.huge { display: block; font: 800 120px/1 var(--font-h); color: var(--brand); letter-spacing: -.05em; margin-bottom: 12px; }

/* ---------- Item detail ---------- */
.item { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 32px; padding-bottom: 24px; }
.item-gallery { position: sticky; top: 90px; align-self: start; min-width: 0; }
.item-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; background: #fff; border: 1px solid var(--line); }
.item-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: opacity .2s; }
.item-media .ph { width: 100%; height: 100%; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; color: var(--ink); opacity: 0; transition: opacity .2s; }
.item-media:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-nav.prev { left: 12px; }
.gal-nav.next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(20,20,23,.7); color: #fff; font: 700 12px var(--font-h); }
.gal-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { flex: none; width: 76px; height: 76px; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 4px; cursor: pointer; overflow: hidden; }
.gal-thumbs button.on { border-color: var(--brand); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-edit { padding: 16px; background: var(--paper); border-radius: var(--r); margin: 6px 0 16px; }
.ge-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.ge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ge-item { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 2px solid transparent; position: relative; }
.ge-item.is-cover { border-color: var(--brand); }
.ge-item img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 6px; }
.ge-item figcaption { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-top: 1px solid var(--line); }
.ge-badge { position: absolute; left: 6px; top: 6px; background: var(--brand); color: #fff; font: 700 11px var(--font-h); padding: 3px 8px; border-radius: 99px; }
.ge-txt { border: 0; background: none; font: 600 12px var(--font-h); color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.ge-txt:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.ge-drop { display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px dashed var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; color: var(--muted); position: relative; }
.ge-drop:hover { border-color: var(--brand); color: var(--brand); }
.ge-drop span { display: flex; flex-direction: column; }
.ge-drop strong { color: var(--ink); font-family: var(--font-h); }
.ge-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.item-media .ph .ico { max-width: 180px; }
.item-info h1 { font-size: clamp(30px, 3.6vw, 46px); margin: 6px 0 12px; }
.item-price { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0 16px; }
.big { font: 800 36px var(--font-h); letter-spacing: -.03em; }
.item-calc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--brand-l); font-size: 14px; color: #8a2c07; }
.item-calc strong { font: 800 18px var(--font-h); color: var(--ink); white-space: nowrap; }
.avail-line { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 18px; }
.avail-line.yes { color: #0c6b45; }
.avail-line.no { color: #a1161b; }
.avail-line.neutral { color: var(--muted); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ring 2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(23,163,107,.4); } 70% { box-shadow: 0 0 0 8px rgba(23,163,107,0); } 100% { box-shadow: 0 0 0 0 rgba(23,163,107,0); } }
.avail-line.no .pulse { animation: none; }
.addform { display: flex; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.qty button { width: 42px; align-self: stretch; border: 0; background: transparent; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.qty button:hover { background: var(--paper); }
.qty input { width: 52px; border: 0; text-align: center; font: 700 16px var(--font-h); outline: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 40px; font-size: 15px; padding: 7px 0; }
.item-details { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 40px; }
.item-details h2 { font-size: 22px; }
.prose { color: var(--ink-3); }
.specs { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--muted); padding-right: 24px; }
.specs dd { font-weight: 600; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; margin-top: -40px; position: relative; z-index: 2; padding-bottom: 88px; }
.status-page { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; margin-top: -40px; position: relative; z-index: 2; padding-bottom: 88px; }
.co-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.co-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.panel { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 24px; box-shadow: var(--shadow); }
.panel.p0 { padding: 0; overflow: hidden; }
.panel h2 { font-size: 20px; margin: 0; }
.panel h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.panel-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-h .link-arrow, .panel-h .badge, .panel-h > .muted { margin-left: auto; }
.step-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 14px var(--font-h); }
.dates { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.dates .field { flex: 1; min-width: 140px; }
.factor-chip { padding: 0 14px; border-radius: 10px; background: var(--brand-l); color: #8a2c07; font-size: 14px; flex: 1; min-width: 200px; display: flex; align-items: center; min-height: 46px; margin-bottom: 14px; line-height: 1.35; }
.dates .factor-chip { padding-top: 6px; padding-bottom: 6px; }
.factor-chip strong { color: var(--brand); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field input[type=date] { min-width: 0; -webkit-appearance: none; appearance: none; min-height: 46px; }
.field > span { font: 700 13px var(--font-h); color: var(--ink-3); }
.field input, .field textarea, .field select, input.in-sm, .form-grid input:not([type=checkbox]):not([type=radio]) { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: 500 15px var(--font); outline: 0; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus, input.in-sm:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,91,31,.12); }
.field input:disabled { background: var(--paper); color: var(--muted); }
.field textarea { resize: vertical; }
.ferr { color: var(--bad); font-size: 13px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { cursor: pointer; position: relative; }
.seg input, .field .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; pointer-events: none; }
.seg label span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); font: 600 14px var(--font-h); transition: .15s; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255,91,31,.25); }
.seg-sm { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-sm a { padding: 6px 12px; border-radius: 7px; text-decoration: none; font: 600 13px var(--font-h); color: var(--muted); }
.seg-sm a.on { background: var(--ink); color: #fff; }
.terms { margin-top: 10px; font-size: 13px; color: var(--muted); }
.terms summary { cursor: pointer; font-weight: 600; }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 64px 1fr auto 100px 36px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; padding-top: 0; }
.line-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: block; }
.line-img img, .line-img .ph { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: flex; flex-direction: column; min-width: 0; }
.line-name { font: 700 15px var(--font-h); text-decoration: none; }
.line-avail { font-size: 12px; font-weight: 600; }
.line-avail .ok { color: var(--ok); }
.line-avail .bad { color: var(--bad); }
.line-total { font: 800 16px var(--font-h); text-align: right; }
.summary { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.summary h3 { font-size: 18px; margin-bottom: 16px; }
.summary .muted { color: rgba(255,255,255,.55); }
.summary a { color: #fff; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 20px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.15); }
.sum-total strong { font: 800 28px var(--font-h); letter-spacing: -.03em; }
.summary .btn-brand { box-shadow: none; }
.summary p.small { margin: 12px 0 0; }
.summary .btn-outline { --fg: #fff; border-color: rgba(255,255,255,.25); }
.side-note { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side-note .ico { color: var(--brand); }

/* ---------- Status ---------- */
.tracker { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; margin: 0 0 18px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.tracker li { display: flex; align-items: center; gap: 10px; padding: 16px 18px; font: 700 14px var(--font-h); color: var(--muted); border-right: 1px solid var(--line); }
.tracker li:last-child { border: 0; }
.tracker li > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); flex: none; }
.tracker li.done { color: var(--ink); }
.tracker li.done > span { background: var(--ok); color: #fff; }
.tracker li.active > span { background: var(--brand); color: #fff; animation: pulse 2s infinite; }
.note-box { padding: 14px 16px; border-radius: var(--r); background: var(--brand-l); color: #6e2405; margin-bottom: 18px; font-size: 14px; }
.period-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 700 11px var(--font-h); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfbf9; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.panel:not(.p0) .table th, .panel:not(.p0) .table td { padding-left: 0; padding-right: 12px; background: transparent; }
.panel:not(.p0) .table td.r, .panel:not(.p0) .table th.r { padding-right: 0; padding-left: 12px; }
.table tfoot td { border: 0; padding-top: 6px; padding-bottom: 6px; }
.table tfoot tr:first-child td { padding-top: 16px; }
.table .grand td { font: 800 18px var(--font-h); border-top: 2px solid var(--ink); padding-top: 12px; }
.table-hover tbody tr { cursor: pointer; transition: background .1s; }
.table-hover tbody tr:hover { background: #fcfaf7; }
.table a { text-decoration: none; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font: 700 12px var(--font-h); white-space: nowrap; }
.st-aanvraag { background: #fff3dd; color: #8a5500; }
.st-akkoord { background: var(--ok-l); color: #0c6b45; }
.st-afgewezen { background: var(--bad-l); color: #a1161b; }
.st-geannuleerd { background: #eeece8; color: var(--muted); }
.st-afgerond { background: #e9e7ff; color: #3e30c9; }
.st-out { background: var(--brand-l); color: var(--brand-d); }
.st-feat { background: var(--brand-l); color: var(--brand); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 64px 0 24px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.footer a:not(.logo) { display: block; text-decoration: none; color: rgba(255,255,255,.8); padding: 3px 0; font-size: 14px; }
.footer a:hover { color: var(--brand); }
.muted-l { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 12px; display: block; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom a { display: inline-flex !important; align-items: center; gap: 6px; color: rgba(255,255,255,.45) !important; }

/* ==========================================================
   Admin
   ========================================================== */
.adm { background: #f3f1ed; }
.side { position: fixed; inset: 0 auto 0 0; width: 240px; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 22px 14px; z-index: 60; }
.side .logo { padding: 0 10px 22px; font-size: 19px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a, .side-foot a, .side-foot button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: rgba(255,255,255,.65); font: 600 14px var(--font-h); border: 0; background: none; width: 100%; cursor: pointer; text-align: left; }
.side nav a:hover, .side-foot a:hover, .side-foot button:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: rgba(255,91,31,.14); color: #fff; }
.side nav a.on .ico { color: var(--brand); }
.navbadge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.side-foot form { margin: 0; }
.adm-main { margin-left: 240px; padding: 0 32px 64px; min-height: 100vh; }
.adm-top { display: flex; align-items: center; gap: 16px; height: 84px; }
.adm-top h1 { font-size: 28px; margin: 0; }
.adm-top-r { margin-left: auto; }
.side-scrim { display: none; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
a.kpi:hover { transform: translateY(-2px); }
.kpi span { display: flex; align-items: center; gap: 8px; font: 600 13px var(--font-h); color: var(--muted); }
.kpi strong { font: 800 32px var(--font-h); letter-spacing: -.03em; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.kpi-brand span, .kpi-brand small { color: rgba(255,255,255,.8); }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rlist { display: flex; flex-direction: column; }
.ritem { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.ritem:first-child { border: 0; }
.ritem:hover .rmain strong { color: var(--brand); }
.rdate { width: 50px; height: 54px; border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; flex: none; }
.rdate b { font: 800 20px/1 var(--font-h); color: var(--ink); }
.rdate.out { background: var(--brand-l); color: var(--brand-d); }
.rmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rmain strong { font: 700 15px var(--font-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmain small { color: var(--muted); }
.tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 10px; text-decoration: none; font: 600 14px var(--font-h); color: var(--muted); }
.tabs a:hover { background: #fff; color: var(--ink); }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs a span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: rgba(0,0,0,.08); font-size: 11px; margin-left: 4px; padding: 0 5px; }
.tabs a.on span { background: var(--brand); }
.tabs-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.tabs-search input { border: 0; outline: 0; padding: 9px 0; background: transparent; width: 220px; }
.req-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.req-title { display: flex; align-items: center; gap: 12px; font: 800 22px var(--font-h); }
.req-actions { display: flex; gap: 8px; }
.req-cols { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.req-main { min-width: 0; }
.req-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.req-side .panel { padding: 20px; }
.lines-table input.in-sm { width: 70px; padding: 7px 9px; text-align: right; }
.lines-table input.in-md { width: 96px; }
.row-bad td { background: #fff6f6; }
.avail-pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font: 700 12px var(--font-h); }
.avail-pill.yes { background: var(--ok-l); color: #0c6b45; }
.avail-pill.no { background: var(--bad-l); color: #a1161b; }
.addrow { display: flex; gap: 12px; align-items: flex-end; margin-top: 12px; flex-wrap: wrap; }
.addrow .field { margin-bottom: 0; }
.w-sm { width: 90px; flex: none !important; min-width: 0 !important; }
.w-md { width: 140px; }
.del-x { font-size: 12px; color: var(--muted); margin-left: 8px; }
.cust-edit { margin: 18px 0; padding: 14px 16px; border-radius: var(--r); background: var(--paper); }
.cust-edit summary { cursor: pointer; font: 700 14px var(--font-h); }
.cust-edit .form-grid { margin-top: 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.decide { border-top: 4px solid var(--brand); }
.decide-akkoord { border-top-color: var(--ok); }
.decide-afgewezen, .decide-geannuleerd { border-top-color: var(--muted); }
.decide-afgerond { border-top-color: var(--violet); }
.decide-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.req-side p { font-size: 14px; }
.req-side a { color: var(--ink); }
.thumb { width: 64px; }
.chk-col { width: 44px; padding-right: 0 !important; cursor: default; }
.chk-col input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
tr.is-selected td { background: var(--brand-l); }
.bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--r); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); position: sticky; top: 12px; z-index: 5; }
.bulkbar[hidden] { display: none; }
.bulkbar strong { font: 700 14px var(--font-h); margin-right: 8px; }
.bulkbar .btn-outline { --fg: #fff; border-color: rgba(255,255,255,.3); }
.bulkbar .btn-outline:hover { border-color: #fff; }
.bulkbar .btn-ghost { --fg: rgba(255,255,255,.75); }
.bulkbar .btn-ghost:hover { --bg: rgba(255,255,255,.08); }
.bulkbar .danger { color: #ff8a8d !important; }
.thumb img, .thumb .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.thumb .ph .ico { width: 24px; }
.row-muted td { opacity: .5; }
.prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.prefix b { display: grid; place-items: center; padding: 0 12px; background: var(--paper); color: var(--muted); font-weight: 600; font-size: 14px; }
.prefix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.prefix:focus-within { border-color: var(--brand); }
.img-edit { display: flex; gap: 20px; align-items: center; padding: 16px; background: var(--paper); border-radius: var(--r); margin: 6px 0 16px; }
.img-prev { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; flex: none; background: #fff; }
.img-prev img, .img-prev .ph { width: 100%; height: 100%; object-fit: cover; }
.img-prev .ph .ico { width: 44px; }
.toggles { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font: 600 14px var(--font-h); margin-bottom: 14px; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255,91,31,.25); }
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; text-decoration: none; }
.mini span { color: var(--muted); white-space: nowrap; }
.mini b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini.res { background: var(--brand-l); }
.mini.blk { background: #eeece8; }
.mini form { margin: 0; }
.icon-pick { display: flex; align-items: center; gap: 8px; color: var(--brand); }
.icon-pick select { padding: 6px 30px 6px 10px; font-size: 13px; }
.settings { display: flex; flex-direction: column; gap: 18px; max-width: 880px; }
.settings h2 { margin-bottom: 16px; }
.staffel-edit { display: flex; flex-direction: column; gap: 6px; max-width: 360px; margin-bottom: 20px; }
.se-head, .se-row { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 8px; align-items: center; }
.se-head span { font: 700 12px var(--font-h); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.se-row input { padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--line); width: 100%; }
.staffel-edit .btn { align-self: flex-start; margin-top: 6px; }
.sticky-actions { position: sticky; bottom: 16px; }
.pad { padding: 14px 16px; margin: 0; }
.pad-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 20px 16px 8px; }
.pad-h h2 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.pad-h + .table { border-top: 1px solid var(--line); }
.weekday-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.weekday-pick label span { display: inline-grid; place-items: center; width: 44px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); font: 700 13px var(--font-h); cursor: pointer; }
.weekday-pick input { position: absolute; opacity: 0; }
.weekday-pick input:checked + span { background: var(--warn); border-color: var(--warn); color: #fff; }
.hint-line { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }

/* ---------- Agenda / Gantt ---------- */
.agenda-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.agenda-nav { display: flex; align-items: center; gap: 10px; }
.agenda-nav strong { font: 800 18px var(--font-h); min-width: 170px; text-align: center; }
.agenda-filter select { padding: 7px 32px 7px 12px; font-size: 14px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-left: auto; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.res { background: var(--brand); }
.lg.blk { background: repeating-linear-gradient(135deg, var(--ink-3) 0 3px, var(--ink) 3px 6px); }
.lg.pend { border: 1.5px dashed var(--brand); background: var(--brand-l); }
.lg.full { background: #fbe1e1; }
.gantt { --name: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; box-shadow: var(--shadow); }
.g-row { display: grid; grid-template-columns: var(--name) repeat(var(--days), minmax(34px, 1fr)); min-width: calc(var(--name) + var(--days) * 34px); position: relative; border-bottom: 1px solid var(--line); row-gap: 0; padding: 3px 0; }
.g-head { position: sticky; top: 0; z-index: 3; background: #fcfbf9; padding: 0; }
.g-head .g-name { margin: 0; font: 700 11px var(--font-h); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; }
.g-name { grid-column: 1; position: sticky; left: 0; z-index: 2; background: #fff; padding: 0 14px; margin: -3px 0; display: flex; align-items: center; gap: 8px; text-decoration: none; border-right: 1px solid var(--line); min-width: 0; }
.g-name span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.g-name small { flex: none; }
.g-head .g-name { background: #fcfbf9; }
.g-name span { font: 600 13px var(--font-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-name small { font-size: 11px; color: var(--muted); }
a.g-name:hover span { color: var(--brand); }
.g-day { grid-row: 1; text-align: center; padding: 8px 0; display: flex; flex-direction: column; align-items: center; border-left: 1px solid transparent; }
.g-day small { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.g-day b { font: 800 14px var(--font-h); }
.g-day.we { background: #f6f4f0; }
.g-day.today b { background: var(--brand); color: #fff; border-radius: 7px; padding: 1px 6px; }
.g-cat { padding: 10px 14px; font: 800 12px var(--font-h); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); background: #faf9f6; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; position: sticky; left: 0; min-width: calc(var(--name) + var(--days) * 34px); }
.g-cat .ico { color: var(--brand); }
.g-cell { border: 0; border-left: 1px solid #f0ede8; background: transparent; cursor: cell; padding: 0; margin: -3px 0; }
.g-cell.we { background: #faf8f5; }
.g-cell.today { background: rgba(255,91,31,.06); }
.g-cell.full { background: #fbe1e1; }
.g-cell:hover { background: rgba(255,91,31,.14); }
.g-bar { position: relative; z-index: 1; margin: 3px 2px; border-radius: 7px; padding: 0 8px; font: 700 11px/24px var(--font-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; transition: transform .1s, box-shadow .1s; }
.g-bar:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); z-index: 2; }
.g-bar.res { background: var(--brand); color: #fff; }
.g-bar.blk { background: repeating-linear-gradient(135deg, var(--ink-3) 0 5px, var(--ink) 5px 10px); color: #fff; }
.g-bar.pend { background: var(--brand-l); color: var(--brand-d); border: 1.5px dashed var(--brand); line-height: 21px; }
.g-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.g-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }

/* ---------- Modal ---------- */
.modal { border: 0; border-radius: var(--r-lg); padding: 24px; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(20,20,23,.5); backdrop-filter: blur(3px); }
.modal-h { display: flex; align-items: center; justify-content: space-between; }
.modal-h h3 { margin: 0; display: flex; align-items: center; gap: 8px; }

/* ---------- Login ---------- */
.loginpage { min-height: 100vh; display: grid; place-items: center; background: var(--ink); position: relative; padding: 16px; overflow: hidden; }
.loginpage::before { content: ''; position: absolute; width: min(700px, 100vw); height: 700px; background: radial-gradient(circle, rgba(255,91,31,.4), transparent 65%); top: -250px; right: 0; }
.loginbox { position: relative; background: #fff; border-radius: 24px; padding: 40px; width: min(420px, 100%); box-shadow: var(--shadow-lg); }
.loginbox .logo { margin-bottom: 28px; }
.loginbox h1 { font-size: 30px; }
.login-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); margin-bottom: 18px; }
.login-ic.bad { background: var(--bad-l); color: var(--bad); }
.login-alt { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.login-alt summary { cursor: pointer; font: 600 14px var(--font-h); color: var(--muted); margin-bottom: 12px; }
.loginbox .flash { margin-top: 4px; }
.sub-h { font-size: 15px; margin: 18px 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hide-md { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .req-cols, .checkout, .status-page { grid-template-columns: 1fr; }
  .req-side, .co-side { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .catnav { margin: 14px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .catnav::-webkit-scrollbar { display: none; }
  .filters { position: static; }
  .catnav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .catnav a { white-space: nowrap; background: #fff; }
  .catnav a span { display: none; }
  .item, .item-details, .staffel-wrap, .dash-cols { grid-template-columns: 1fr; gap: 28px; }
  .item-gallery { position: static; }
  .gal-nav { opacity: 1; width: 36px; height: 36px; }
  .gal-thumbs button { width: 60px; height: 60px; }
  .side { transform: translateX(-100%); transition: transform .25s; }
  .side-open .side { transform: none; }
  .side-open .side-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
  .adm-main { margin-left: 0; padding: 0 16px 48px; }
  .adm .navtoggle { display: block; margin-left: -8px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in > :first-child { grid-column: 1 / -1; }
  .cta-block { flex-direction: column; align-items: flex-start; padding: 32px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .mainnav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav-open .mainnav { display: flex; }
  .mainnav a.hide-md { display: block; }
  .pub .navtoggle { display: block; }
  .hide-sm { display: none; }
  .hero-in { padding-top: 56px; padding-bottom: 72px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 24px; }
  .periodbar { padding: 16px; gap: 10px; }
  .pb-label { width: 100%; }
  .pb-field { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .pb-field input { min-width: 0; width: 100%; }
  .pb-arrow { display: none; }
  .periodbar .btn-brand { flex: 1; order: 7; }
  .periodbar .btn-ghost { order: 8; }
  .grid, .grid-3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card h3 { font-size: 15px; }
  .card p { display: none; }
  .price { font-size: 17px; }
  .btn-icon { width: 36px; height: 36px; }
  .avail { left: 8px; top: 8px; font-size: 11px; padding: 4px 8px; }
  .toolbar { gap: 10px; }
  .toolbar-r { width: 100%; justify-content: space-between; }
  .pb-factor { width: 100%; flex: none; order: 5; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .dates .field { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .dates .factor-chip { flex-basis: 100%; min-width: 0; }
  .line { grid-template-columns: 52px 1fr auto; gap: 10px 12px; }
  .line-img { width: 52px; height: 52px; }
  .line .qty { grid-column: 2; justify-self: start; }
  .line-total { grid-column: 3; grid-row: 1; }
  .line-del { grid-column: 3; grid-row: 2; justify-self: end; }
  .tracker { grid-template-columns: 1fr; }
  .tracker li { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi strong { font-size: 24px; }
  .tabs-search { margin-left: 0; width: 100%; }
  .tabs-search input { width: 100%; }
  .table-hover th:nth-child(4), .table-hover td:nth-child(4) { display: none; }
  .legend { margin-left: 0; }
  .addform { flex-wrap: wrap; }
  .gantt { --name: 140px; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .panel { padding: 18px; }
  .adm-top h1 { font-size: 22px; }
  .img-edit { flex-direction: column; align-items: flex-start; }
}

@media print {
  .topbar, .footer, .co-side .btn, .flash { display: none !important; }
  .pagehead { background: none; color: var(--ink); padding: 0 0 20px; }
  .pagehead::after { display: none; }
  .crumbs { color: var(--muted); }
  .status-page { margin: 0; grid-template-columns: 1fr; }
  .panel, .summary { box-shadow: none; border: 1px solid #ddd; background: #fff; color: var(--ink); }
  .summary .muted { color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
