/* orientteppich.at /neu – 2026-11 */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --tile: #f0ece6;
  --ink: #1c1a18;
  --ink-2: #5d5853;
  --ink-3: #9a948d;
  --line: #e6e1da;
  --fav: #b8322a;
  --accent: #1c1a18;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 40px rgba(28, 26, 24, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
[hidden] { display: none !important; }
body.lock { overflow: hidden; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(250, 248, 245, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.brand-mark { font: 600 22px/1 var(--serif); letter-spacing: .02em; }
.brand-sub { font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.search {
  flex: 1; max-width: 460px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; height: 40px; color: var(--ink-3);
}
.search svg { width: 18px; height: 18px; }
.search input { border: 0; outline: 0; background: none; flex: 1; font: inherit; color: var(--ink); min-width: 0; }
.search:focus-within { border-color: var(--ink-3); }
.actions { display: flex; gap: 6px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; display: grid; place-items: center;
}
.icon-btn:hover { background: var(--tile); }
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; color: #fff;
}
.fav-badge { background: var(--fav); }
.cart-badge { background: var(--ink); }
.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.35); } }

/* ---------- Filter ---------- */
.filters { padding: 8px clamp(16px, 4vw, 48px) 4px; display: grid; gap: 10px; }
.frow { display: flex; align-items: center; gap: 16px; min-width: 0; }
.flabel { width: 56px; flex: none; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.chips, .swatches { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; min-width: 0; }
.chips::-webkit-scrollbar, .swatches::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip small { color: var(--ink-3); margin-left: 6px; font-size: 12px; }
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on small { color: rgba(255,255,255,.6); }
.chip:disabled { opacity: .35; cursor: default; }
.swatch {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
  background: var(--c); position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: transform .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.on::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ink);
}
.swatch[data-c="bunt"] { background: conic-gradient(#a33 0 20%, #c9a03c 0 40%, #5f7a4a 0 60%, #2f4e7a 0 80%, #8a4a2b 0); }
.swatch .tip {
  position: absolute; top: 42px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--ink-2); white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none;
}
.swatch:hover .tip, .swatch.on .tip { opacity: 1; }
.swatches { padding-bottom: 18px; margin-bottom: -14px; }
.dims { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.dims input {
  width: 76px; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px;
  font: inherit; background: var(--surface); margin: 0 4px;
}

.resultbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px) 10px; color: var(--ink-2); font-size: 14px;
}
.resultbar select {
  margin-left: auto; border: 0; background: transparent; font: inherit; color: var(--ink); cursor: pointer;
  padding: 6px 4px;
}
.resultbar > * { white-space: nowrap; }
.line .acts button { white-space: nowrap; }
.ar-stage { position: absolute; z-index: 3; right: 12px; bottom: 96px; height: 44px; border: 0; border-radius: 999px; padding: 0 16px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ar-stage svg { width: 19px; height: 19px; }
.link { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }

/* ---------- Grid ---------- */
.grid {
  display: grid; gap: clamp(14px, 2vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  padding: 8px clamp(16px, 4vw, 48px) 40px;
}
.card { position: relative; cursor: pointer; animation: fadein .4s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.card-img {
  aspect-ratio: 3 / 4; background: var(--tile); border-radius: var(--radius);
  overflow: hidden; padding: 18px;
}
.card-img { min-height: 0; }
.card-img img {
  width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.14));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-img img { transform: scale(1.04); }
.card-meta { padding: 10px 2px 0; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; }
.card-title { font: 500 16px/1.3 var(--serif); }
.card-sub { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.card-price { grid-row: 1 / 3; grid-column: 2; align-self: start; font-weight: 600; white-space: nowrap; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.heart {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; display: grid; place-items: center; background: rgba(255,255,255,.9);
  opacity: 0; transition: opacity .2s, transform .2s;
}
.heart svg { width: 19px; height: 19px; }
.card:hover .heart, .heart.on { opacity: 1; }
.heart.on { color: var(--fav); }
.heart.on svg, .btn-fav.on svg { fill: var(--fav); stroke: var(--fav); }
.incart-tag {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 9px;
}
@media (hover: none) { .heart { opacity: 1; } }
.more { height: 1px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--ink-2); }
.foot { padding: 40px clamp(16px, 4vw, 48px) 60px; color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- Detail ---------- */
.detail {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: grid; grid-template-columns: 1fr 400px;
  animation: fadein .25s ease;
}
.stage {
  position: relative; overflow: hidden; user-select: none; -webkit-user-select: none;
  touch-action: none; cursor: grab;
  --wall: #f1efea;
}
.wall {
  position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wall) 90%, #fff) 0%, var(--wall) 100%);
  border-bottom: 5px solid color-mix(in srgb, var(--wall) 82%, #000);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}
.scene {
  position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 0%;
  transition: filter .4s;
}
.floor {
  --k: 2px; --plank: calc(var(--k) * 20);
  position: absolute; left: 50%; top: 50%; width: 3200px; height: 3200px; margin: -1600px 0 0 -1600px;
  transform-origin: 50% 50%;
  will-change: transform;
  background-color: #d6bc95;
}
/* Böden – Maßstab über --k (px pro cm), Diele 20 cm, Fliese 60 cm */
.floor.oak {
  background-color: #d9c19c;
  background-image:
    repeating-linear-gradient(90deg, rgba(90,60,30,.16) 0 1px, transparent 1px var(--plank)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 var(--plank), rgba(0,0,0,.02) var(--plank) calc(var(--plank) * 2), transparent calc(var(--plank) * 2) calc(var(--plank) * 3)),
    repeating-linear-gradient(0deg, transparent 0 calc(var(--k) * 137), rgba(90,60,30,.10) calc(var(--k) * 137) calc(var(--k) * 137 + 1px));
}
.floor.walnut {
  background-color: #6f4d36;
  background-image:
    repeating-linear-gradient(90deg, rgba(20,10,5,.28) 0 1px, transparent 1px var(--plank)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 var(--plank), rgba(0,0,0,.04) var(--plank) calc(var(--plank) * 2), transparent calc(var(--plank) * 2) calc(var(--plank) * 3)),
    repeating-linear-gradient(0deg, transparent 0 calc(var(--k) * 137), rgba(20,10,5,.18) calc(var(--k) * 137) calc(var(--k) * 137 + 1px));
}
.floor.concrete {
  background-color: #b9b4ad;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0 6%, transparent 18%),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.06) 0 8%, transparent 22%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.08) 0 5%, transparent 15%);
  background-size: calc(var(--k) * 180) calc(var(--k) * 140);
}
.floor.tiles {
  --tile: calc(var(--k) * 60);
  background-color: #e9e5de;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,.12) 1px, transparent 1px);
  background-size: var(--tile) var(--tile);
  background-position: center;
}
.floor::after { /* Übergang zur Wand */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 12%);
  pointer-events: none;
}
.carpet {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 2px 3px rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.25);

}
.carpet img { width: 100%; height: 100%; display: block; object-fit: fill; }
.carpet.round, .carpet.round img { border-radius: 50%; }
.sunpatch {
  position: absolute; left: 50%; top: 50%; width: 900px; height: 520px;
  transform-origin: 0 50%;
  background: repeating-linear-gradient(90deg, var(--sun, rgba(255,240,210,.6)) 0 180px, transparent 180px 200px);
  filter: blur(14px); mix-blend-mode: soft-light; opacity: 0; pointer-events: none; z-index: 2;
}
.lamp {
  position: absolute; left: 50%; top: 50%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px;
  background: radial-gradient(circle, rgba(255,200,130,.55), rgba(255,180,110,.15) 35%, transparent 60%);
  mix-blend-mode: soft-light; opacity: 0; pointer-events: none; z-index: 2;
}
.tint { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: multiply; transition: background .4s; }

.stage-ui { z-index: 3; position: absolute; top: 18px; left: 18px; right: 70px; display: flex; gap: 10px; flex-wrap: wrap; }
.seg {
  display: inline-flex; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; padding: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.seg button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #fff; }
.light {
  z-index: 3; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(460px, calc(100% - 36px));
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; padding: 10px 18px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.light-stops { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.light-stops button { border: 0; background: none; padding: 2px 4px; border-radius: 6px; }
.light-stops button.on { color: var(--ink); font-weight: 600; }
#tod { width: 100%; margin: 6px 0 0; accent-color: var(--ink); }
.stage-hint {
  position: absolute; left: 0; right: 0; bottom: 104px; text-align: center; margin: 0;
  font-size: 12px; color: rgba(0,0,0,.45); pointer-events: none; transition: opacity .6s;
}

.info { overflow-y: auto; padding: 72px 36px 120px; border-left: 1px solid var(--line); background: var(--surface); }
.info h1 { font: 500 30px/1.15 var(--serif); margin: 0 0 6px; }
.info .sub { color: var(--ink-2); margin: 0 0 22px; }
.price { font-size: 28px; font-weight: 600; margin: 0 0 4px; }
.price-note { font-size: 13px; color: var(--ink-3); margin: 0 0 24px; }
.cta { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 12px; }
.btn {
  height: 50px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-weight: 600; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn-fav { width: 50px; padding: 0; }
.btn-fav.on { border-color: var(--fav); color: var(--fav); }
.btn.incart { background: #2f6b3f; border-color: #2f6b3f; }
.btn.wide { width: 100%; }
.ar-cta { margin-bottom: 26px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 28px; font-size: 14px; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; }
.palette { display: flex; gap: 6px; }
.palette i { height: 18px; border-radius: 4px; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.similar h2 { font: 500 18px var(--serif); margin: 0 0 12px; }
.similar-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.similar-row button { border: 0; padding: 8px; background: var(--tile); border-radius: 10px; aspect-ratio: 3/4; min-width: 0; overflow: hidden; display: block; }
.similar-row img { width: 100%; height: 100%; object-fit: contain; display: block; }
.similar-row .round img { border-radius: 0; }
.close, .nav {
  position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.close { top: 14px; right: 14px; }
.nav { top: 50%; margin-top: -22px; }
.prev { left: 14px; }
.next { right: 414px; }

/* ---------- AR ---------- */
.ar { position: fixed; inset: 0; z-index: 60; background: #111; overflow: hidden; touch-action: none; }
.ar video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-plane { position: absolute; inset: 0; }
.ar-carpet {
  position: absolute; left: 50%; top: 50%; will-change: transform;
  box-shadow: 0 2px 2px rgba(0,0,0,.35), 0 0 40px rgba(0,0,0,.35);
}
.ar-carpet img { width: 100%; height: 100%; display: block; }
.ar-carpet.round, .ar-carpet.round img { border-radius: 50%; }
.ar-top {
  position: absolute; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top) + 12px) 12px 12px;
  display: flex; align-items: center; gap: 10px; background: linear-gradient(rgba(0,0,0,.45), transparent);
}
.ar-title { flex: 1; color: #fff; text-align: center; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ar-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ar-hint {
  position: absolute; left: 20px; right: 20px; top: 40%; text-align: center; color: #fff; margin: 0;
  font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; transition: opacity .8s;
}
.ar-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px);
  display: flex; gap: 10px; justify-content: center; background: linear-gradient(transparent, rgba(0,0,0,.45));
}
.ar-pill { height: 48px; border-radius: 999px; border: 0; padding: 0 22px; background: rgba(255,255,255,.92); font-weight: 600; }
.ar-pill.primary { background: #fff; flex: 1; max-width: 260px; }
.ar-pill.on { color: var(--fav); }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(28,26,24,.35); animation: fadein .2s; }
.drawer {
  position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column;
  animation: slidein .28s cubic-bezier(.2,.7,.2,1);
}
@keyframes slidein { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 500 22px var(--serif); margin: 0; flex: 1; }
.drawer-head .kind { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.drawer-head .kind.fav { background: #f7e3e1; color: var(--fav); }
.drawer-head .kind.fav svg { fill: var(--fav); }
.drawer-head .kind.cart { background: var(--ink); color: #fff; }
.drawer-head .kind svg { width: 18px; height: 18px; }
.drawer-intro { padding: 12px 24px 0; margin: 0; color: var(--ink-2); font-size: 13px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 16px 24px calc(env(safe-area-inset-bottom) + 20px); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .thumb { width: 72px; height: 90px; background: var(--tile); border-radius: 8px; display: grid; place-items: center; padding: 6px; border: 0; }
.line .thumb { overflow: hidden; }
.line .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.line h3 { font: 500 16px var(--serif); margin: 0; }
.line p { margin: 2px 0 6px; font-size: 13px; color: var(--ink-2); }
.line .acts { display: flex; gap: 14px; font-size: 13px; }
.line .acts button { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.line .acts button.strong { color: var(--ink); font-weight: 600; }
.line .lp { font-weight: 600; white-space: nowrap; align-self: start; }
.sum { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; }
.sum small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.drawer-empty { text-align: center; color: var(--ink-2); padding: 60px 10px; }
.drawer-empty svg { width: 40px; height: 40px; stroke-width: 1.2; color: var(--ink-3); }
.form { display: grid; gap: 12px; padding: 14px 0; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.form input, .form textarea, .form select {
  font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface);
}
.form textarea { min-height: 80px; resize: vertical; }
.radio { display: flex; gap: 8px; }
.radio label { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); font-size: 14px; cursor: pointer; }
.radio label:has(input:checked) { border-color: var(--ink); }
.drawer-body.form { padding: 16px 24px; align-content: start; }
.form .two { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .check { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.form .check input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--ink); flex: none; }
.form .bad, .form .check:has(.bad) { border-color: var(--fav); outline: 2px solid color-mix(in srgb, var(--fav) 30%, transparent); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--ink); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #f7e3e1; color: #7c1f19; font-size: 14px; }
.flabel.wide { width: auto; margin-top: 6px; }
.mini { display: flex; gap: 8px; overflow-x: auto; }
.mini img { height: 72px; width: auto; border-radius: 4px; flex: none; }
.drawer-empty.done svg { color: #2f6b3f; }
.drawer-empty.done h3 { font: 500 20px var(--serif); margin: 10px 0; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: default; }
#paypalBox { min-height: 50px; }
.fine { font-size: 12px; color: var(--ink-3); margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 30px);
  background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 20px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; display: flex; gap: 14px; align-items: center;
}
body.lock .toast { bottom: 118px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: none; color: #fff; text-decoration: underline; padding: 0; font-weight: 600; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; grid-template-rows: 62vh auto; overflow-y: auto; }
  .stage { height: 62vh; }
  .info { padding: 24px 20px 120px; border-left: 0; overflow: visible; }
  .next { right: 14px; }
  .nav { top: 31vh; }
  .light { bottom: 12px; padding: 8px 14px 10px; }
  .stage-hint { display: none; }
  .info .cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; margin: 0; padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .similar-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .top { gap: 10px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 40px; }
  .brand-sub { display: none; }
  .actions { margin-left: auto; }
  .flabel { width: 46px; font-size: 11px; }
  .frow { gap: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-img { padding: 10px; border-radius: 10px; }
  .card-title { font-size: 14px; }
  .card-sub { font-size: 12px; }
  .card-price { grid-row: auto; grid-column: 1; font-size: 14px; }
  .card-meta { grid-template-columns: 1fr; }
  .stage-ui { top: 12px; left: 12px; }
  .seg button { padding: 0 10px; font-size: 12px; height: 30px; }
  .info h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Handy & Tablet: immer nur ein Teppich pro Zeile ---------- */
@media (max-width: 1100px), (pointer: coarse) {
  .grid { grid-template-columns: 1fr; gap: 28px; max-width: 720px; margin: 0 auto; }
  .card-img { aspect-ratio: auto; height: min(72vh, 72svh); padding: 16px; border-radius: var(--radius); }
  .card-meta { grid-template-columns: 1fr auto; padding-top: 12px; }
  .card-title { font-size: 19px; }
  .card-sub { font-size: 14px; grid-column: 1; }
  .card-price { grid-row: 1 / 3; grid-column: 2; font-size: 18px; }
  .heart { width: 46px; height: 46px; top: 14px; right: 14px; opacity: 1; }
  .heart svg { width: 22px; height: 22px; }
}

/* ---------- Handy & Tablet: Teppich ohne Hintergrund (kein Fussboden, keine Wand) ---------- */
.floor, .floor.oak { background: none; }
.floor::after, .wall, .sunpatch, .lamp { display: none; }
@media (pointer: coarse) { .tint { display: none; } }

.dims-hint { color: var(--muted, #8a857d); font-size: 12px; }

/* ---------- Runde Teppiche: weisse Foto-Ecken überall wegmaskieren ---------- */
.card.round .card-img img, .similar-row .round img, .line .thumb.round img, .mini img.round {
  -webkit-mask-image: radial-gradient(circle closest-side, #000 97%, transparent 98.5%);
  mask-image: radial-gradient(circle closest-side, #000 97%, transparent 98.5%);
}
.card.round .card-img img { filter: none; }
.carpet.round img, .ar-carpet.round img { clip-path: ellipse(49% 49%); }

/* ---------- Teppichnummer immer direkt am Bild (für Screenshots) ---------- */
.card-img { position: relative; }
.nr {
  font-size: 12px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12); white-space: nowrap;
}
.card-img .nr { position: absolute; left: 10px; bottom: 10px; z-index: 1; }
.stage-nr { align-self: center; font-size: 13px; padding: 6px 12px; }

/* ---------- Kopfzeile: Logos, Telefon, Mail, Info – bleibt immer sichtbar ---------- */
.top { z-index: 45; }
.brand { align-items: center; gap: 14px; }
.brand a { display: block; line-height: 0; }
.brand img { height: 36px; width: auto; display: block; }
a.icon-btn { color: var(--ink); text-decoration: none; }
.actions { align-items: center; gap: 2px; }
.actions-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.detail { top: var(--top-h, 0px); }
@media (max-width: 640px) {
  .brand { gap: 8px; }
  .brand img { height: 34px; }
  .actions { gap: 0; }
  .actions .icon-btn { width: 40px; height: 40px; }
  .actions-sep { margin: 0 2px; }
  /* Detailansicht offen: Suchzeile ausblenden, damit mehr Platz für den Teppich bleibt */
  body:has(#detail:not([hidden])) .top .search { display: none; }
}

/* ---------- Statt-Preis: durchgestrichen, kleiner und heller, über dem Preis ---------- */
.statt { display: block; font-size: .72em; font-weight: 400; color: var(--ink-3); text-decoration: line-through; line-height: 1.25; }
.card-price, .line .lp { text-align: right; }
.price .statt { font-size: .58em; margin-bottom: 2px; }

/* ---------- Handy: kein seitliches Scrollen ---------- */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
/* Die Bodenfläche war 3200 px gross (für die Dielen). Ohne Boden reicht ein Punkt als Drehachse –
   iOS Safari rechnete die gekippte Riesenfläche sonst zur Seitenbreite. */
.floor { width: 2px; height: 2px; margin: -1px 0 0 -1px; }
.scene { overflow: hidden; }
.detail { overflow-x: hidden; }
.toast { max-width: calc(100vw - 24px); }
/* iOS zoomt beim Antippen in Felder mit Schrift < 16 px hinein und bleibt dann zu breit stehen */
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 640px) {
  .actions .icon-btn { width: clamp(30px, 9.6vw, 40px); height: 40px; }
}
@media (max-width: 350px) { .brand img { height: 28px; } }

/* Farbname direkt unter dem Farbfeld, mit eigenem Platz (ragte in die Zeile "Art") */
.swatch .tip { top: 38px; line-height: 14px; }
.swatches { padding-bottom: 18px; margin-bottom: -6px; }
.frow:has(.swatches) .flabel { margin-bottom: 12px; }

/* ---------- Teilen ---------- */
@media (max-width: 640px) {
  .actions .icon-btn { width: clamp(28px, 8.3vw, 40px); }
}
.share-menu {
  position: fixed; z-index: 60; width: 230px; max-width: calc(100vw - 16px);
  background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,.16); padding: 6px; display: grid;
}
.share-menu[hidden] { display: none; }
.share-menu p { margin: 0; padding: 8px 12px 6px; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.share-menu a, .share-menu button {
  display: block; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 9px;
  font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover { background: var(--tile); }
.share-menu button { border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; }
@media (max-width: 350px) { .actions .icon-btn { width: 26px; } .actions-sep { margin: 0; } }
