:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #efeae2;
  --ink: #1f1c19;
  --ink-2: #5d5750;
  --line: #e2dbd0;
  --accent: #d9541e;       /* Laser-Orange */
  --accent-ink: #ffffff;
  --accent-soft: #fbe7dd;
  --ok: #2f7d4f;
  --warn: #a35a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,28,25,.06), 0 8px 24px rgba(31,28,25,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171513; --surface: #211e1b; --surface-2: #2a2622; --ink: #f1ece5; --ink-2: #b3aba0;
    --line: #3a352f; --accent: #f06a33; --accent-soft: #3a2419; --ok: #5cc28a; --warn: #f0a04b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171513; --surface: #211e1b; --surface-2: #2a2622; --ink: #f1ece5; --ink-2: #b3aba0;
  --line: #3a352f; --accent: #f06a33; --accent-soft: #3a2419; --ok: #5cc28a; --warn: #f0a04b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.hidden { display: none !important; }

/* Buttons & Felder */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: var(--surface); padding: 10px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { color: #c23b22; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; cursor: pointer; }
label.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
label.field > span { font-weight: 500; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=url], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; min-height: 80px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { font-family: var(--font-head); font-size: 22px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--accent); }
.search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.search input { border-radius: 999px; padding-left: 38px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* Hero */
.hero { padding: 48px 0 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 17px; color: var(--ink-2); max-width: 520px; margin: 14px 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--ink-2); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--accent); }
.hero-art { position: relative; aspect-ratio: 5/4; border-radius: 22px; overflow: hidden; background: var(--surface-2); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .beam { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); box-shadow: 0 0 16px 4px var(--accent);
  opacity: .8; animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 15%; } 50% { top: 85%; } }
@media (prefers-reduced-motion: reduce) { .hero-art .beam { animation: none; top: 50%; } }

/* Filter */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 18px 0 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.laser.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters .count { margin-left: auto; font-size: 13px; color: var(--ink-2); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; padding: 10px 0 60px; }
.card { color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; text-align: left; padding: 0; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .img { aspect-ratio: 1; background: #f3f0eb; position: relative; }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card-actions { padding: 0 14px 14px; }
.card-btn { width: 100%; }
.card-btn:disabled { opacity: .55; }
.card .img img { width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; letter-spacing: .02em; }
.badge.out { background: var(--ink-2); left: auto; right: 10px; }
.card .body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card .title { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { font-weight: 700; font-size: 17px; margin-top: auto; }
.card .stock { font-size: 12px; color: var(--ink-2); }
.empty { text-align: center; padding: 60px 0; color: var(--ink-2); }

/* Modal & Drawer */
.overlay { position: fixed; inset: 0; background: rgba(15,12,10,.45); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 20px; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; position: relative; box-shadow: var(--shadow); }
.modal .close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-media { background: #fff; padding: 20px; border-right: 1px solid var(--line); position: sticky; top: 0; align-self: start; }
.preview { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f3f0eb; }
.preview > img { width: 100%; height: 100%; object-fit: contain; }
.engrave { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  max-width: 70%; display: grid; gap: 6px; justify-items: center; }
.engrave .txt { font-size: 28px; color: rgba(40, 30, 22, .82); mix-blend-mode: multiply; line-height: 1.1; word-break: break-word;
  text-shadow: 0 1px 0 rgba(255,255,255,.35); background: rgba(255,255,255,.35); padding: 2px 10px; border-radius: 6px; }
.engrave img { max-width: 120px; max-height: 90px; filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; opacity: .85; }
.preview-note { font-size: 12px; color: #6b645b; text-align: center; margin-top: 8px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; }
.pd-info { padding: 28px; display: grid; gap: 16px; align-content: start; }
.pd-info h2 { font-size: 24px; line-height: 1.2; padding-right: 40px; }
.pd-price { font-size: 26px; font-weight: 700; }
.pd-price small { font-size: 13px; font-weight: 400; color: var(--ink-2); display: block; }
.laser-box { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.laser-box h3 { font-family: var(--font); font-size: 15px; display: flex; gap: 8px; align-items: center; }
.laser-box h3 svg { color: var(--accent); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.seg button.on { background: var(--ink); color: var(--bg); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; }
.drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; background: var(--surface); font-size: 14px; }
.drop.drag { border-color: var(--accent); }
.drop img { max-height: 70px; margin: 0 auto 6px; }
.counter { font-size: 12px; text-align: right; color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: 0 0 auto !important; }
.qty button { border: 0; background: transparent; width: 36px; height: 38px; cursor: pointer; font-size: 18px; }
.qty input { width: 44px; border: 0; text-align: center; padding: 0; background: transparent; }
.desc { font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.err { color: #c23b22; font-size: 13px; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 50; display: flex;
  flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.12); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 12px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.line .t { font-size: 14px; line-height: 1.3; }
.line .p { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.line .p b { color: var(--accent); font-weight: 600; }
.sum { display: flex; justify-content: space-between; font-size: 14px; }
.sum.total { font-size: 18px; font-weight: 700; }
#paypal-buttons { min-height: 45px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer button { background: none; border: 0; color: var(--ink-2); cursor: pointer; text-decoration: underline; padding: 0; }
.legal { padding: 32px; white-space: pre-line; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px;
  border-radius: 999px; z-index: 60; font-size: 14px; box-shadow: var(--shadow); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-art { display: none; }
  .pd { grid-template-columns: 1fr; }
  .pd-media { position: static; border-right: 0; border-bottom: 1px solid var(--line); }
  .pd-info { padding: 20px; }
  .search { max-width: none; }
  .brand { font-size: 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  header.top .wrap { gap: 10px; }
  .search input { font-size: 14px; }
}

/* DEV-Kennzeichnung */
.env-banner { background: repeating-linear-gradient(45deg, #d9541e 0 14px, #c2481a 14px 28px); color: #fff; text-align: center;
  font-size: 13px; font-weight: 600; padding: 6px 16px; letter-spacing: .02em; }
.env-banner.live { background: var(--surface-2); color: var(--ink-2); font-weight: 500; }

/* Navigation & „So einfach geht's“ */
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav-links a:hover { background: var(--surface-2); }
.how { padding: 28px 0 8px; }
.how h2 { font-size: 26px; margin-bottom: 16px; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.how li span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.how li b { display: block; font-size: 16px; }
.how li p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.about-teaser { display: flex; margin-top: 14px; text-decoration: none; background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; }
.about-teaser b { display: block; font-size: 16px; }
.about-teaser span { color: var(--ink-2); font-size: 14px; }
.about-teaser:hover b { color: var(--accent); }
@media (max-width: 820px) { .how ol { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hide-xs { display: none; } }

/* Produktseite */
.pp { padding: 20px 0 8px; }
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pp-media img#ppImg { border-radius: 18px; background: #f3f0eb; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.pp-info { display: grid; gap: 14px; align-content: start; }
.pp-info h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; }
.pp-info .pd-price small a { color: inherit; }
.pp-delivery { margin: 0; font-size: 14px; }
.pp-buy { justify-self: start; padding: 13px 26px; font-size: 16px; }
.badge.static { position: static; justify-self: start; }
.pp-more { font-size: 22px; margin: 44px 0 0; }
.notfound { padding: 40px 0 10px; font-size: 17px; color: var(--ink-2); }
@media (max-width: 820px) { .pp-grid { grid-template-columns: 1fr; gap: 20px; } .pp-buy { justify-self: stretch; } }

/* Individuelle Anfragen */
.custom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin: 8px 0 60px; }
.custom h2 { font-size: 26px; margin-bottom: 8px; }
.custom p { margin: 0 0 10px; color: var(--ink-2); }
.custom ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.custom ul li::marker { color: var(--accent); }
.custom .actions { display: grid; gap: 10px; justify-items: start; }
@media (max-width: 820px) { .custom { grid-template-columns: 1fr; padding: 20px; } }

.about-teaser { align-items: center; gap: 14px; }
.about-teaser img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }

/* Bereichsleiste */
.catnav { border-top: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 2px; justify-content: space-between; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { white-space: nowrap; text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 999px; color: var(--ink-2); }
.catnav a:hover { color: var(--ink); background: var(--surface-2); }
.catnav a.on { color: var(--ink); background: var(--surface-2); }
.catnav a:first-child { color: var(--accent); }
@media (max-width: 1200px) { .catnav .wrap { justify-content: flex-start; } }
a.chip { text-decoration: none; color: inherit; }

/* Startseite: Bereiche & Beliebt */
.areas, .featured { padding: 20px 0 8px; }
.areas h2, .featured h2 { font-size: 26px; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f3f0eb; }
.tile div { padding: 12px 14px 14px; display: grid; gap: 2px; }
.tile b { font-size: 16px; }
.tile span { font-size: 13.5px; color: var(--ink-2); }
.tile small { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.tile.big { grid-column: span 2; grid-row: span 2; background: var(--accent-soft); border-color: var(--accent); }
.tile.big img { aspect-ratio: auto; flex: 1; min-height: 200px; }
.tile.big b { font-family: var(--font-head); font-size: 26px; }
.tile.big .eyebrow { color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head a { color: var(--accent); text-decoration: none; font-weight: 500; white-space: nowrap; }
.featured .grid { padding-bottom: 10px; }
.listing-head { padding: 24px 0 4px; max-width: 760px; }
.listing-head h1 { font-size: clamp(28px, 4vw, 42px); }
.listing-head p { color: var(--ink-2); font-size: 16.5px; margin: 10px 0 0; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile.big { grid-row: auto; } }
@media (max-width: 560px) { .tile.big { grid-column: span 2; grid-row: auto; } .tile.big img { min-height: 160px; } .tile div { padding: 10px 12px 12px; } }

.withdraw-link { font-weight: 600; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; text-decoration: none; white-space: nowrap; }
.withdraw-link:hover { background: var(--ink); color: var(--bg); }

.tiers { list-style: none; margin: 12px 0; padding: 0; max-width: 340px; font-size: 14.5px; }
.tiers li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border-bottom: 1px solid var(--line); }
#laserMode { display: flex; flex-wrap: wrap; border-radius: 18px; }
#laserMode button { flex: 1 1 auto; white-space: nowrap; }
.pd-media, .pd-info { min-width: 0; }
