[hidden] { display: none !important; }
:root {
  --bg: #0f1114; --panel: #181b20; --panel2: #20242b; --line: #2c313a;
  --text: #e9ebee; --muted: #8d95a1; --accent: #e8a23a; --accent-ink: #1a1206;
  --ok: #4cbf7f; --warn: #e8a23a; --bad: #e5604f;
  --r: 12px; --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { padding-bottom: calc(76px + var(--safe-b)); -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 1.35rem; margin: 0 0 .25rem; }
h2 { font-size: 1.05rem; margin: 1.5rem 0 .6rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--muted); } .center { text-align: center; } .pad { padding: 2rem 1rem; }
.small { font-size: .85rem; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1rem; background: rgba(15,17,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-size: 1rem; display: flex; align-items: center; gap: .55rem; letter-spacing: .02em; }
.brand b { color: var(--accent); font-weight: 600; }
.mark { width: 18px; height: 18px; display: inline-block;
  background: conic-gradient(from 90deg at 50% 50%, var(--accent) 0 25%, transparent 0 50%, var(--accent) 0 75%, transparent 0);
  background-size: 9px 9px; border-radius: 3px; }

main { max-width: 860px; margin: 0 auto; padding: 1rem; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: space-around;
  background: var(--panel); border-top: 1px solid var(--line); padding: .4rem .5rem calc(.4rem + var(--safe-b)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: .72rem; padding: .3rem 0; border-radius: 10px; }
.tabbar a span { font-size: 1.25rem; line-height: 1; }
.tabbar a.active { color: var(--text); }
.tabbar a.primary span { background: var(--accent); color: var(--accent-ink); width: 38px; height: 28px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; }

button, .btn { font: inherit; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  padding: .65rem 1rem; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.danger { color: var(--bad); border-color: #4a2a27; background: transparent; }
button.ghost { background: transparent; }
button.small { padding: .35rem .7rem; font-size: .85rem; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; }
.stack > * + * { margin-top: .75rem; }

input, select, textarea { font: inherit; width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 9px; padding: .6rem .7rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .25rem; }
.grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.grid .wide { grid-column: 1 / -1; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.login { max-width: 380px; margin: 3rem auto; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .8rem 0 1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .8rem; }
.stat b { display: block; font-size: 1.25rem; }
.stat span { font-size: .75rem; color: var(--muted); }

.chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; margin: .6rem 0; scrollbar-width: none; }
.chip { white-space: nowrap; padding: .35rem .75rem; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .85rem; cursor: pointer; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.list { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
.item { display: flex; gap: .8rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem; color: var(--text); }
.thumb { width: 58px; height: 58px; border-radius: 9px; background: var(--panel2); flex: none; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: 1.3rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.item .meta { flex: 1; min-width: 0; }
.item .meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta span { font-size: .8rem; color: var(--muted); }
.qty { text-align: right; font-weight: 700; font-size: 1.1rem; min-width: 3.2rem; }
.qty small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); }
.low { color: var(--warn); }
.badge { display: inline-block; font-size: .7rem; padding: .1rem .45rem; border-radius: 99px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.badge.warn { color: var(--warn); border-color: #5a4221; }
.badge.bad { color: var(--bad); border-color: #4a2a27; }
.badge.ok { color: var(--ok); border-color: #24503a; }

.options { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1rem; }
.option { text-align: left; display: block; padding: 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; color: var(--text); }
.option .ico { font-size: 1.6rem; }
.option b { display: block; margin: .4rem 0 .2rem; }
.option span { color: var(--muted); font-size: .85rem; }
.option input { display: none; }

.hero { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--r); background: var(--panel2); }
.bigqty { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.review .card { margin-bottom: .7rem; }
.review .card.off { opacity: .45; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
td, th { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 1rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--safe-b)); z-index: 9; background: var(--text); color: var(--bg);
  padding: .6rem 1rem; border-radius: 10px; font-size: .9rem; max-width: 90vw; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.toast.err { background: var(--bad); color: #fff; }
details summary { cursor: pointer; color: var(--muted); margin: .4rem 0; }

h3 { font-size: .9rem; margin: 0 0 .6rem; color: var(--muted); font-weight: 600; }
.designer { display: grid; gap: 1rem; margin-top: .6rem; }
.dprev { position: sticky; top: 56px; z-index: 3; padding: .8rem; }
#prev { display: grid; place-items: center; min-height: 120px; max-height: 30vh; }
#prev svg { width: 100%; height: auto; max-height: 29vh; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
@media (min-width: 820px) { .designer { grid-template-columns: 1.1fr 1fr; align-items: start; } .dprev { top: 70px; } #prev, #prev svg { max-height: 70vh; } }
.lineedit { border: 1px solid var(--line); border-radius: 10px; padding: .6rem; display: grid; gap: .5rem; background: var(--bg); }
.lineedit .row > label { font-size: .72rem; }
input[type=range] { padding: .3rem 0; accent-color: var(--accent); border: none; background: transparent; }
.gallery { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 1rem; }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem; color: var(--text); display: grid; gap: .25rem; }
.gprev { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--panel2); border-radius: 8px; padding: .5rem; overflow: hidden; }
.gprev svg { width: 100%; height: 100%; }

.r { text-align: right; white-space: nowrap; }
.bar { height: 10px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin-top: .5rem; }
.bar span { display: block; height: 100%; border-radius: 99px; }
table.card th, table.card td { padding: .5rem .6rem; }

/* Webseite: Anfrage-Produkte */
.wp.off .meta { opacity: .5; }
.wp .meta span { display: block; margin-top: .2rem; }
.wpname { width: 100%; background: transparent; border: 1px solid transparent; padding: .3rem .4rem; margin-left: -.4rem; font-weight: 600; }
.wpname:focus { border-color: var(--line); background: var(--bg); }
.wpbtns { display: flex; gap: .25rem; flex: none; }
.wpbtns button { padding: .3rem .5rem; min-width: 0; }
.switch { position: relative; width: 44px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; transition: .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .15s; }
.switch input:checked + span { background: var(--ok); border-color: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .wp { flex-wrap: wrap; }
  .wp .meta { flex: 1 1 calc(100% - 60px); }
  .wpbtns { flex-basis: 100%; justify-content: flex-end; }
}

/* Laser-Ergebnisse */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: .2rem 0 .4rem; }
.seg button { border: 0; border-radius: 0; background: var(--panel); color: var(--muted); padding: .4rem .9rem; font-size: .85rem; }
.seg button.on { background: var(--panel2); color: var(--text); font-weight: 600; }
.lr-group h2 { display: flex; align-items: center; gap: .5rem; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1.05rem; }
.lr-group h2 small, .lr-sub small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.lr-sub { margin: .9rem 0 .45rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.lr-group .lr-sub:first-of-type { margin-top: .2rem; }
.lr-item .meta > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta .lr-rate { display: inline; color: var(--accent); font-size: .8rem; margin-left: .2rem; }
.lr-line { margin-top: .15rem; }
.lr-rate { color: var(--accent); letter-spacing: .05em; white-space: nowrap; }
.lr-rate i { font-style: normal; color: var(--line); }
.lr-drop { border: 1px dashed var(--line); border-radius: 10px; padding: .6rem; }
.lr-file { display: none; }
.lr-shots { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: .5rem; }
.lr-shots.small { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.lr-shots.one { grid-template-columns: minmax(0, 1fr); }
.lr-shot { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--panel2); aspect-ratio: 1; display: block; width: 100%; }
.lr-shot img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.lr-shot.big { aspect-ratio: 4/3; }
.lr-shots.one .lr-shot.big { aspect-ratio: auto; max-height: 420px; }
.lr-shots.one .lr-shot.big img { object-fit: contain; max-height: 420px; }
.lr-shot.busy { display: grid; place-items: center; }
.lr-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.65); border: 0; color: #fff; font-size: .8rem; }
.lr-layer { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; background: var(--bg); }
.lr-lname { font-weight: 600; background: transparent; border-color: transparent; padding: .3rem .4rem; margin-left: -.4rem; }
.lr-lname:focus { background: var(--panel); border-color: var(--line); }
.lr-stars { display: flex; gap: .2rem; align-items: center; }
.lr-stars [data-r] { font-size: 1.6rem; line-height: 1; padding: .2rem .35rem; background: transparent; border: 0; color: var(--line); }
.lr-stars [data-r].on { color: var(--accent); }
.lr-stars [data-r="0"] { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); margin-left: .4rem; }
.lr-note { border: 1px solid #5a4221; background: #241c10; border-radius: 10px; padding: .7rem; font-size: .9rem; }
.lr-lview { margin-bottom: .6rem; }
.lr-params { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin-top: .7rem; }
.lr-params > div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .55rem; }
.lr-params > div.wide { grid-column: 1 / -1; }
.lr-params span { display: block; font-size: .72rem; color: var(--muted); }
.lr-params b { font-size: 1rem; }
table.lr-kv th { width: 34%; }
.lr-actions { display: grid; gap: .5rem; margin-top: 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .lr-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 1rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 4rem); object-fit: contain; border-radius: 8px; }
.lightbox span { position: absolute; bottom: calc(1rem + var(--safe-b)); left: 0; right: 0; text-align: center; color: var(--muted); font-size: .8rem; }
.tabbar a { min-width: 0; }

/* Produktfotos */
.pf-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: .8rem; }
.pf-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pf-card.wide { grid-column: span 2; }
.pf-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; background: var(--panel2); }
.pf-card.wide img { aspect-ratio: 16/9; }
.pf-card.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.pf-cap { padding: .45rem .6rem; display: flex; gap: .4rem; align-items: center; font-size: .82rem; }
.pf-cap b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pf-sel { position: absolute; top: 6px; left: 6px; z-index: 2; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.45); border: 2px solid #fff; color: transparent; font-size: .85rem; }
.pf-card.sel .pf-sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pf-bar { position: sticky; top: 56px; z-index: 4; display: flex; gap: .4rem; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; margin-top: .6rem; }
.pf-bar .grow { flex: 1; font-size: .85rem; }
.pf-modal { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.75); display: grid; place-items: center; padding: 1rem; overflow-y: auto; }
.pf-sheet { width: min(860px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; }
.pf-big { display: block; width: 100%; height: auto; border-radius: 8px; margin-top: .6rem; }
.pf-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.pf-prev { border-radius: 8px; overflow: hidden; background: var(--panel2); margin-top: .6rem; }
.pf-canvas { display: block; width: 100%; height: auto; cursor: zoom-in; }
.pf-thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .6rem; padding-bottom: .2rem; }
.pf-th { position: relative; flex: none; width: 110px; padding: 0; border: 2px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--panel2); }
.pf-th img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pf-th.best { border-color: var(--accent); }
.pf-num { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; border-radius: 6px; padding: 0 .35rem; }
.pf-score { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; border-radius: 6px; padding: 0 .35rem; }
.pf-star { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; text-align: center; padding: .1rem 0; }
.pf-group { margin-bottom: .7rem; }
.pf-group.off { opacity: .5; }
.pf-results { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pf-result { display: grid; gap: .25rem; align-content: start; }
.pf-result .pf-prev { margin-top: 0; margin-bottom: .3rem; }

/* Webseite: Besucher */
.bs-kpi { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: .6rem; }
.bs-chart { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-bottom: 1.2rem; }
.bs-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.bs-col i { display: block; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 0; }
.bs-col span { position: absolute; bottom: -1.2rem; left: 50%; transform: translateX(-50%); font-size: .65rem; color: var(--muted); white-space: nowrap; }
.bs-bars { display: flex; flex-direction: column; gap: .45rem; }
.bs-bar { position: relative; display: flex; justify-content: space-between; gap: .6rem; padding: .35rem .55rem; border-radius: 7px; overflow: hidden; font-size: .88rem; }
.bs-bar i { position: absolute; inset: 0 auto 0 0; background: rgba(232,162,58,.16); border-radius: 7px; z-index: 0; }
.bs-bar span { position: relative; z-index: 1; }
.bs-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-n { font-weight: 600; }
.bs-two { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bs-two { grid-template-columns: 1fr 1fr; } }
.bs-rec .thumb { width: 40px; height: 40px; font-size: 1rem; }
