/* =========================================================================
   Dreamcatcher-Shop – Styles (Design-Tokens & Komponenten aus dem Prototyp)
   ========================================================================= */

:root {
    --bg:          #f4ede0;
    --panel:       #fbf6ec;
    --panel-2:     #f3ecdb;
    --border:      #e3d9c6;
    --border-2:    #ece3d1;
    --primary:     #6e2434;
    --primary-hov: #7d2b3c;
    --gold:        #c9a227;
    --ink:         #2b2622;
    --ink-2:       #5b5147;
    --muted:       #8a7d6e;
    --input-bg:    #fffdf8;
    --ok:          #4f9a5e;
    --fail:        #b3402f;
    --ph: repeating-linear-gradient(135deg,#f0e8d8 0 9px,#e9dfca 9px 18px);

    --serif:   'Cormorant Garamond', Georgia, serif;
    --display: 'Marcellus', Georgia, serif;
    --sans:    'Mulish', system-ui, -apple-system, sans-serif;
    --maxw: 1240px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #d8cdb8; border-radius: 6px; border: 3px solid var(--bg); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--panel); border-bottom: 1px solid var(--border); }
.header-inner { height: 88px; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 14px; flex: none; }
.logo-text { line-height: 1; }
.logo-name { font-family: var(--serif); font-weight: 600; font-size: 27px; color: var(--ink); }
.logo-sub { display: block; font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-top: 3px; padding-left: .42em; }

.search { flex: 0 1 360px; max-width: 360px; margin: 0 auto; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 15px; pointer-events: none; }
.search input { width: 100%; height: 42px; border: 1px solid #e0d6c2; background: var(--input-bg); border-radius: 24px; padding: 0 18px 0 42px; font-family: var(--sans); font-size: 14px; color: var(--ink); outline: none; }
.search input:focus { border-color: var(--gold); }

.cart-btn { position: relative; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; background: var(--primary); border-radius: 24px; color: #fdf5e6; font-size: 14px; font-weight: 700; flex: none; box-shadow: 0 6px 16px -8px rgba(110,36,52,.7); }
.cart-btn:hover { background: var(--primary-hov); }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px; background: var(--gold); color: #2b2010; border-radius: 11px; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--panel); }

/* ---------- Trust-Bar ---------- */
.trustbar { background: var(--primary); }
.trustbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; padding: 6px 28px; }
.trustbar-inner span { font-size: 12.5px; color: #f0dcc0; font-weight: 500; }

/* ---------- Shell (Sidebar + Main) ---------- */
.shell { display: flex; gap: 34px; align-items: flex-start; padding: 30px 28px 56px; }
.shell-full { display: block; }
.site-main { flex: 1; min-width: 0; }

/* ---------- Sidebar ---------- */
.sidebar { width: 250px; flex: none; position: sticky; top: 130px; }
.cat-nav { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cat-nav-head { padding: 15px 18px; border-bottom: 1px solid var(--border-2); font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.cat-group { padding: 2px 6px; }
.cat-main { display: block; padding: 11px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.cat-main:hover, .cat-main.is-active { background: #f6eede; color: var(--primary); }
.cat-subs { display: none; padding: 0 0 6px 8px; }
.cat-group.is-open .cat-subs { display: block; }
.cat-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 8px 14px; margin-left: 6px; border-left: 2px solid transparent; font-size: 13px; color: var(--ink-2); }
.cat-sub:hover { background: #f3ecdb; }
.cat-sub.is-active { border-left-color: var(--gold); color: var(--primary); font-weight: 700; }
.cat-count { font-size: 11px; color: #bcae93; }
.sidebar-card { margin-top: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; background: var(--primary); color: #fdf5e6; border: none; border-radius: 24px; font-family: var(--sans); font-size: 14px; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--primary-hov); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid #d8b56a; }
.btn-ghost:hover { background: #f6eede; }
.btn-lg { height: 50px; font-size: 15px; font-weight: 800; padding: 0 28px; }
.btn-block { width: 100%; }
.btn-paypal { background: #0070ba; color: #fff; }
.btn-paypal:hover { background: #005ea6; }

/* ---------- Section-Header ---------- */
.section-head { margin: 34px 0 18px; display: flex; align-items: baseline; justify-content: space-between; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0; }
.section-head .more { font-size: 13px; font-weight: 700; color: var(--primary); }
.section-head .hint { font-size: 13px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.hero-text { padding: 44px 42px; }
.hero-eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.08; margin: 14px 0 0; }
.hero p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); margin: 18px 0 0; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-img { background: var(--ph); min-height: 320px; }

/* ---------- Produkt-Grid + Karten ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s; display: block; }
.card:hover { box-shadow: 0 14px 30px -16px rgba(60,40,20,.3); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1/1; background: var(--ph); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 13px 14px 15px; }
.card-title { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; }
.card-price { font-size: 16px; font-weight: 800; color: var(--primary); margin-top: 7px; }

.badge { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 12px; }
.badge-gold { background: var(--gold); color: #2b2010; }
.badge-dark { background: var(--primary); color: #fdf5e6; }

/* Zusatz-Badges (Update R2) */
.badge-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.card-badges { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.list-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 4px; }

/* Mengenrabatt / Staffelpreise (Update R2) */
.tier-box { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line, #e6ddcf); border-radius: 10px; background: var(--ph, #faf6ef); }
.tier-title { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.tier-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tier-table td { padding: 3px 0; }
.tier-table .tier-price { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tier-note { margin-top: 6px; font-size: 11.5px; color: var(--muted, #8a7f6c); }
.cart-line-tier, .cart-line-unit { display: block; font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.cart-line-tier { color: #2e7d5b; }
.cart-line-unit { color: var(--muted, #8a7f6c); font-weight: 500; }

/* Abholartikel (Update R3) */
.detail-pickup { display: flex; align-items: center; gap: 6px; margin: 8px 0; padding: 8px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #8a5a00; background: #fbf1dd; }
.detail-pickup .ico { width: 18px; height: 18px; flex: none; }
.cart-pickup-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: #8a5a00; }
.cart-pickup-tag .ico { width: 14px; height: 14px; flex: none; }
.sum-pickup { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #8a5a00; }
.sum-pickup .ico { width: 15px; height: 15px; flex: none; }
.opt.is-static { cursor: default; }

/* ---------- Promise-Kacheln ---------- */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.promise-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.promise-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--primary); margin: 0; }
.promise-card p { font-size: 13px; color: #6b6055; margin: 6px 0 0; line-height: 1.5; }

/* ---------- Listenansicht ---------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: #9a8c79; margin-bottom: 6px; }
.crumb-sep { color: #c8bba6; }
.crumb-link { color: #9a8c79; text-decoration: none; }
.crumb-link:hover { color: var(--primary); text-decoration: underline; }
.crumb-current { color: #6f6252; }
.list-title { font-family: var(--serif); font-weight: 600; font-size: 34px; margin: 0; }
.list-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.list-item { display: flex; gap: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; align-items: center; transition: box-shadow .15s, border-color .15s; }
.list-item:hover { box-shadow: 0 10px 26px -16px rgba(60,40,20,.3); border-color: #d8b56a; }
.list-thumb { position: relative; width: 118px; height: 118px; flex: none; border-radius: 9px; background: var(--ph); overflow: hidden; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-info { flex: 1; min-width: 0; }
.list-info h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; line-height: 1.15; }
.list-desc { font-size: 13.5px; color: #6b6055; margin-top: 6px; line-height: 1.5; max-width: 64ch; }
.list-art { font-size: 11.5px; color: #a8997a; margin-top: 8px; }
.list-side { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.list-price { font-size: 21px; font-weight: 800; color: var(--primary); }

/* ---------- Detailansicht ---------- */
.detail-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin-bottom: 18px; }
.detail-top .crumb { margin-bottom: 0; }
.back-link { display: inline-flex; gap: 7px; font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.detail-gallery .detail-main-img { position: relative; aspect-ratio: 1/1; border-radius: 14px; background: var(--ph); border: 1px solid var(--border); overflow: hidden; }
.detail-gallery .detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
/* Klickbares Bild (Button-Reset) + Zoom-Hinweis */
.detail-gallery button.detail-main-img { display: block; width: 100%; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: zoom-in; }
.detail-main-img .zoom-ic { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 4px 12px -4px rgba(60,40,20,.4); transition: background .15s, transform .15s; }
.detail-main-img .zoom-ic svg { display: block; }
.detail-gallery button.detail-main-img:hover .zoom-ic { background: #fff; transform: scale(1.06); }
.detail-zoom-hint { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Produktbilder „vollständig zeigen" (global umschaltbar) ----------
   Standard (aus): Bilder füllen das Rechteck per object-fit:cover → Ausschnitt.
   An (body.img-fit-contain, Backend-Einstellung „product_image_fit=contain"):
   ganzes Bild sichtbar (object-fit:contain), dahinter eine unscharf vergrößerte
   Kopie desselben Bildes (.pimg-bg) als Füllung. Rechteck-Format bleibt gleich;
   quadratische Bilder sehen praktisch unverändert aus. Gilt für Kachel, Liste,
   Warenkorb-Thumb und das eingebettete Detailbild – NICHT für die Klick-Lightbox. */
.pimg-bg { display: none; }
body.img-fit-contain .card-img,
body.img-fit-contain .cart-thumb { position: relative; overflow: hidden; }
body.img-fit-contain .pimg-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
    filter: blur(18px) saturate(1.12);
    transform: scale(1.18);
}
body.img-fit-contain .card-img img.pimg-fg,
body.img-fit-contain .list-thumb img.pimg-fg,
body.img-fit-contain .cart-thumb img.pimg-fg,
body.img-fit-contain .detail-gallery .detail-main-img img.pimg-fg {
    position: relative;
    z-index: 1;
    object-fit: contain;
}
/* Badges & Zoom-Hinweis-Icon bleiben über dem Bild. */
body.img-fit-contain .card-img .badge,
body.img-fit-contain .card-img .card-badges,
body.img-fit-contain .list-thumb .badge,
body.img-fit-contain .detail-main-img .badge,
body.img-fit-contain .detail-main-img .zoom-ic { z-index: 2; }

/* Bild-Lightbox (max. 80% des Bildschirms) */
.lightbox { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(35,24,12,.74); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 80vw; max-height: 80vh; width: auto; height: auto; border-radius: 10px; background: var(--panel); box-shadow: 0 24px 70px -20px rgba(0,0,0,.6); cursor: default; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px -4px rgba(0,0,0,.4); }
.lightbox-close:hover { background: #fff; }
body.no-scroll { overflow: hidden; }
.detail-sub { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.detail h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.12; margin: 8px 0 0; }
.detail-desc { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 16px 0 0; }
.detail-price { font-size: 30px; font-weight: 800; color: var(--primary); margin-top: 20px; }
.detail-price small { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 10px; }

/* ---- Streich-Preise (Sale) ------------------------------------------------ */
.badge-sale { left: auto; right: 10px; background: #c0392b; color: #fff; }

.price-sale { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-old { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: #c0392b; }
.price-new { color: #c0392b; }
.price-save { align-self: center; font-size: .72em; font-weight: 800; letter-spacing: .04em; color: #fff; background: #c0392b; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.price-valid { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* Detailseite: großer Preis + kleiner durchgestrichener Alt-Preis davor */
.detail-price.has-sale { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.detail-price.has-sale .price-value { color: #c0392b; }
.detail-price .price-value-old { font-size: .6em; font-weight: 700; color: var(--muted); text-decoration: line-through; text-decoration-color: #c0392b; }
.detail-price.has-sale .price-save { font-size: .42em; }
.detail-price.has-sale small { flex-basis: 100%; margin-left: 0; }
.detail-sale-valid { margin-top: 8px; font-size: 13px; font-weight: 700; color: #c0392b; }

.cart-line-sale { display: block; font-size: 11.5px; font-weight: 600; margin-top: 2px; color: #c0392b; }
.cart-line-sale s { color: var(--muted, #8a7f6c); font-weight: 500; margin-left: 4px; }
.detail-stock { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #3a7d4a; }
.detail-stock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.detail-stock.out { color: var(--fail); }
.detail-stock.out .dot { background: var(--fail); }
.detail-art { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.variant-group { margin-top: 22px; }
.variant-label { font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.variant-opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid #e0d6c2; background: var(--input-bg); border-radius: 24px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.variant-opt input { display: none; }
.variant-opt.selected, .variant-opt:has(input:checked) { border-color: var(--primary); background: #f6eede; }
.variant-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.variant-opt .vstock { font-size: 11px; color: var(--muted); font-weight: 500; }
.buybar { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.qty { display: flex; align-items: center; border: 1px solid #d8cdb8; border-radius: 24px; overflow: hidden; background: var(--input-bg); }
.qty button { width: 42px; height: 48px; border: none; background: transparent; font-size: 20px; color: var(--primary); cursor: pointer; }
.qty input { width: 44px; text-align: center; border: none; background: transparent; font-size: 16px; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- SEO-Band ---------- */
.seo-band { background: var(--panel-2); border-top: 1px solid var(--border); }
.seo-band .container { padding: 48px 28px 52px; }
.seo-band h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 0; max-width: 60ch; }
.seo-band p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); margin: 16px 0 0; max-width: 72ch; }
/* Startseite mit SEO-Bildern: Text links, 3 Bilder rechts */
.seo-band.has-images .container { display: grid; grid-template-columns: 1fr 300px; gap: 46px; align-items: start; }
/* Startseite ohne Bilder: Textblock mittig (wirkt nicht „verloren") */
.seo-band.is-centered .seo-text { max-width: 75ch; margin-left: auto; margin-right: auto; }
.seo-images { display: flex; flex-direction: column; gap: 16px; }
.seo-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
@media (max-width: 900px) {
    .seo-band.has-images .container { grid-template-columns: 1fr; gap: 26px; }
    .seo-images { flex-direction: row; }
    .seo-images img { flex: 1; min-width: 0; }
}
@media (max-width: 520px) {
    .seo-images { flex-direction: column; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); border-top: 3px solid var(--primary); color: #3a322c; }
.footer-inner { padding: 44px 28px 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 40px; }
.footer-brand { max-width: 34ch; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: #6b6055; margin: 14px 0 0; }
.footer-head { font-family: var(--display); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 13px; }
.footer-inner a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 5px 0; }
.footer-inner a:hover { color: var(--primary); }
.footer-phone { font-size: 18px; font-weight: 800; }
.footer-muted { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .container { padding: 16px 28px; font-size: 12px; color: var(--muted); }

/* ---------- Hinweis-Box / leer ---------- */
.notice { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 48px 40px; text-align: center; }
.notice h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0 0 8px; }
.notice p { color: var(--muted); margin: 0 0 18px; }

/* ---------- Setup-Karte (Phase 0) ---------- */
.setup-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 40px; max-width: 640px; }
.setup-card h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; margin: 0 0 6px; }
.checklist { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.checklist li { padding: 12px 16px; border-radius: 10px; background: var(--input-bg); border: 1px solid var(--border); font-weight: 600; }
.checklist li.ok { border-left: 4px solid var(--ok); }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- Warenkorb ---------- */
.cart-wrap { max-width: 940px; margin: 0 auto; }
.steps { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.step { flex: 1; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--panel); }
.step.is-active { border-color: var(--primary); background: #f6eede; }
.step-no { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--border); color: var(--muted); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.step.is-active .step-no { background: var(--primary); color: #fdf5e6; }
.step-txt b { display: block; font-size: 15px; }
.step-txt small { display: block; font-size: 12px; color: var(--muted); }
.step-arrow { font-size: 18px; color: #c9bda5; }

.cart-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; align-items: center; }
.cart-thumb { width: 88px; height: 88px; flex: none; border-radius: 8px; background: var(--ph); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.cart-line-var { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cart-remove button { margin-top: 6px; font-size: 12px; color: #a08a72; background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-line .qty { height: 38px; }
.cart-line .qty button { width: 34px; height: 36px; font-size: 17px; }
.cart-line .qty input { width: 38px; height: 36px; font-size: 14px; }
.cart-line-price { font-size: 17px; font-weight: 800; color: var(--primary); }
.cart-back { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--primary); }

.cart-summary { position: sticky; top: 130px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.cart-summary h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 14px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 9px; }
.sum-free { font-size: 12px; color: var(--ok); font-weight: 700; margin-bottom: 9px; }
.sum-divider { height: 1px; background: var(--border); margin: 12px 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.sum-total span:first-child { font-size: 15px; }
.sum-total span:last-child { font-size: 24px; color: var(--primary); }
.sum-hint { font-size: 11px; color: var(--muted); margin: 4px 0 16px; }
.sum-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; text-align: center; line-height: 1.5; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 820px) {
    .cart-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

/* ---------- Checkout ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cart-wrap-wide { max-width: 1100px; }
.form-banner { background: #fbe9e6; border: 1px solid #e7b9b0; color: #8a2c20; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.form-card h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 4px; }
.form-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.field { margin-bottom: 14px; }
.field > label, .field-label-block { display: block; font-size: 12px; font-weight: 700; color: #6b6055; margin-bottom: 6px; }
.field input, .field select, .form-card textarea { width: 100%; height: 44px; border: 1px solid #d8cdb8; border-radius: 9px; padding: 0 12px; background: var(--input-bg); font-family: var(--sans); font-size: 14px; color: var(--ink); }
.form-card textarea { height: auto; padding: 10px 12px; }
.field input:focus, .field select:focus, .form-card textarea:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-plz { grid-template-columns: 130px 1fr 1fr; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.4; }
.check input { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.check-sm { font-size: 12.5px; font-weight: 500; margin-bottom: 10px; }
#shipFields { display: none; margin-top: 14px; }
.form-card:has(#useShipping:checked) #shipFields { display: block; }
.opt-list { display: flex; flex-direction: column; gap: 9px; }
.opt { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1.5px solid #e0d6c2; background: var(--input-bg); border-radius: 10px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--primary); background: #f6eede; }
.opt input { width: 16px; height: 16px; flex: none; }
.opt-label { font-size: 13.5px; font-weight: 600; }
.opt-price { margin-left: auto; font-weight: 800; color: var(--primary); font-size: 14px; }
.field-err { color: var(--fail); font-size: 12px; margin-top: 4px; }
.summary-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mini-head { font-family: var(--display); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin: 0 0 6px; }
.addr { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 5px 0; border-bottom: 1px dashed var(--border-2); }
.place-form { margin-top: 16px; }
.notice-success { max-width: 640px; margin: 0 auto; }
.notice-success .btn { margin-top: 18px; }
.success-check { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.steps-3 .step small { white-space: nowrap; }
.step.is-done .step-no { background: var(--ok); color: #fff; }

/* ---------- Info-/Rechtsseiten ---------- */
.legal { max-width: 840px; margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 38px 46px 42px; box-shadow: 0 18px 46px -28px rgba(60,40,20,.3); }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; margin: 0; color: var(--ink); }
.legal h1::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 14px 0 4px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 30px 0 8px; color: var(--primary); padding-left: 14px; border-left: 3px solid var(--gold); }
.legal .form-card { background: transparent; border: none; box-shadow: none; padding: 0; margin: 0; }
.legal h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; color: var(--ink); }
.legal p, .legal li { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.legal ul { margin: 8px 0 10px; padding-left: 20px; }
.legal address { font-style: normal; line-height: 1.8; color: var(--ink-2); }
.legal a { color: var(--primary); text-decoration: underline; }
.legal a.btn { color: #fdf5e6; text-decoration: none; }
.legal a.btn-ghost { color: var(--primary); }
.legal .muted { color: var(--muted); font-size: 13px; }
.legal-note { background: #fff7e6; border: 1px solid #e9d39a; color: #7a5b12; padding: 12px 16px; border-radius: 10px; margin-bottom: 24px; font-size: 13.5px; line-height: 1.6; }
/* Frei angelegte Seiten: per BB-Code eingebundene Bilder, Text umfließt. */
.legal::after { content: ""; display: block; clear: both; }
.page-img { max-width: 45%; height: auto; border-radius: 12px; box-shadow: 0 12px 30px -18px rgba(60,40,20,.5); }
.page-img--left { float: left; margin: 6px 22px 12px 0; }
.page-img--right { float: right; margin: 6px 0 12px 22px; }
@media (max-width: 640px) {
  .page-img, .page-img--left, .page-img--right { float: none; display: block; max-width: 100%; margin: 6px 0 14px; }
}
/* Seiten-Navigation in der Sidebar (unter der Händlerbund-Box). */
.sidebar-card.page-nav a { display: block; padding: 7px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; border-top: 1px solid var(--border); }
.sidebar-card.page-nav a:first-of-type { border-top: none; }
.sidebar-card.page-nav a:hover { color: var(--primary); }
.form-ok { background: #e7f3e9; border: 1px solid #b6d8bd; color: #2f6b3a; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 6px; font-size: 16px; }
.faq-item p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .grid, .promise { grid-template-columns: repeat(2, 1fr); }
    .hero, .detail { grid-template-columns: 1fr; }
    .shell { flex-direction: column; }
    .site-main { order: -1; } /* Inhalt vor der Kategorie-Navigation zeigen */
    .sidebar { width: 100%; position: static; }
}
@media (max-width: 720px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
    .search { order: 3; max-width: none; flex-basis: 100%; margin: 0; }
    .grid, .promise { grid-template-columns: 1fr 1fr; }
    .list-item { flex-wrap: wrap; }
    .list-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ===================== Design-Angleichung an Prototyp (Phase 7) ===================== */

/* Service-Dropdown im Header */
.service-dd { position: relative; flex: none; }
.service-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: transparent; border: 1px solid var(--border); border-radius: 22px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.service-btn:hover { border-color: var(--gold); }
.service-btn svg { transition: transform .15s; }
.service-dd.is-open .service-btn svg { transform: rotate(180deg); }
.service-menu { position: absolute; right: 0; top: 48px; width: 240px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 18px 40px -12px rgba(60,40,20,.22); padding: 8px; z-index: 60; }
.service-menu[hidden] { display: none; }
.service-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 7px; font-size: 13.5px; color: #3a322c; }
.service-menu a:hover { background: var(--panel-2); }
.service-menu .sdot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* Trustbar mit gold-Punkten vor jedem Eintrag */
.trustbar-inner span { display: inline-flex; align-items: center; gap: 8px; }
.trustbar-inner span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* Sidebar-Accordion: Kopfzeile (Name + Aufklapp-Dreieck) */
.cat-head { display: flex; align-items: center; }
.cat-head .cat-main { flex: 1; }
.cat-toggle { flex: none; width: 34px; height: 38px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 8px; color: #a8997a; cursor: pointer; }
.cat-toggle:hover { background: #f3ecdb; color: var(--primary); }
.cat-toggle .chev { transition: transform .18s; }
.cat-group.is-open .cat-toggle .chev { transform: rotate(180deg); }

/* Footer-Redesign nach Vorlage */
.footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.footer-soon { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; cursor: default; }
.footer-inner .footer-revoke { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; height: 40px; padding: 0 18px; background: var(--gold); color: #2b2010; border-radius: 21px; font-size: 13px; font-weight: 800; }
.footer-inner .footer-revoke:hover { background: #d8b13a; color: #2b2010; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Produktvarianten als Liste (Name links, ggf. Aufpreis rechts) */
.variant-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.variant-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--input-bg); cursor: pointer; }
.variant-row:hover { border-color: #d8b56a; }
.variant-row input { accent-color: var(--primary); flex: none; margin: 0; }
.variant-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.variant-extra { font-size: 13.5px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.variant-row.is-out { opacity: .55; cursor: not-allowed; }
.variant-row.is-out .vstock { font-size: 12px; font-weight: 700; color: var(--fail); }
.variant-row:has(input:checked) { border-color: var(--primary); background: #f6eede; }

/* Widerruf-Zusammenfassung */
.summary-box { background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; padding: 8px 20px 16px; margin: 16px 0; }
.rev-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-2); font-size: 14px; }
.rev-row span { color: var(--muted); }
.rev-block { padding: 12px 0 2px; font-size: 14px; }
.rev-block > span { color: var(--muted); display: block; margin-bottom: 4px; }
.rev-block p { margin: 0; line-height: 1.6; }
.revoke-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }

@media (max-width: 720px) {
    .cart-label { display: none; }          /* Warenkorb mobil: nur Icon + Badge */
    .cart-btn { padding: 0 14px; gap: 0; }
    .service-dd { display: none; }           /* Service-Links mobil über den Footer erreichbar */
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Sidebar: „Mitglied im" (Händlerbund) ---------- */
.sidebar-member img { width: 160px; max-width: 80%; height: auto; margin: 10px auto 2px; }

/* ---------- Cookie-Consent-Banner ---------- */
.cookie-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(43,38,34,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cookie-overlay[hidden] { display: none; }
.cookie-card { width: 100%; max-width: 540px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 28px 30px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); animation: cookiePop .25s ease; }
@keyframes cookiePop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cookie-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.cookie-icon { font-size: 30px; line-height: 1; flex: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.cookie-title { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.2; margin: 0; color: var(--ink); }
.cookie-text { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; }
.cookie-opts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.cookie-opt { display: flex; align-items: flex-start; gap: 13px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--input-bg); cursor: pointer; }
.cookie-opt-txt { display: flex; flex-direction: column; gap: 2px; }
.cookie-opt-txt strong { font-size: 14px; color: var(--ink); }
.cookie-opt-txt small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 150px; height: 46px; }
.cookie-actions .cookie-save { flex-basis: 100%; }
.btn-plain { background: #e9dfca; color: var(--ink); }
.btn-plain:hover { background: #e0d4ba; }
.cookie-foot { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 16px 0 0; }
.cookie-foot a { color: var(--primary); text-decoration: underline; }

/* Toggle-Switch (Cookie-Optionen) */
.switch { position: relative; display: inline-block; width: 44px; height: 25px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #d8cdb8; border-radius: 14px; transition: background .2s; }
.switch .track::before { content: ""; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::before { transform: translateX(19px); }
.switch input:disabled + .track { background: var(--gold); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 560px) {
    .cookie-overlay { align-items: flex-end; padding: 0; }
    .cookie-card { max-width: none; max-height: 88vh; border-radius: 16px 16px 0 0; padding: 22px 20px; }
    .cookie-title { font-size: 20px; }
}

/* ---------- Über uns / Zeitstrahl (B7) ---------- */
.about-intro { max-width: 760px; margin: 0 auto; padding: 18px 0 8px; text-align: center; }
.about-eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.about-h1 { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.1; margin: 14px 0 0; color: var(--ink); }
.about-lead { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); margin: 20px auto 0; max-width: 60ch; }

.timeline { position: relative; max-width: 1080px; margin: 0 auto; padding: 40px 0 8px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--gold), #d8cdb8); z-index: 0; }
.tl-item { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 132px 1fr; align-items: center; }
.tl-side { padding: 18px 0; display: flex; }
.tl-side--left { justify-content: flex-end; }
.tl-side--right { justify-content: flex-start; }
.tl-badge { display: flex; justify-content: center; }
.tl-badge span { background: var(--bg); border: 1.5px solid var(--gold); border-radius: 22px; padding: 7px 18px; font-family: var(--serif); font-weight: 700; font-size: 23px; color: var(--primary); white-space: nowrap; }
.tl-badge span.is-hl { background: var(--primary); border-color: var(--primary); color: var(--panel); }
.tl-card { max-width: 420px; background: var(--panel); border: 1px solid var(--border); border-radius: 13px; padding: 22px 24px; box-shadow: 0 14px 30px -22px rgba(60,40,20,.5); }
.tl-side--left .tl-card { text-align: right; }
.tl-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tl-title { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.2; margin: 7px 0 0; color: var(--ink); }
.tl-body { font-size: 14px; line-height: 1.75; color: var(--ink-2); margin: 10px 0 0; }
.tl-card--hl { background: var(--primary); border-color: var(--primary); box-shadow: 0 18px 36px -20px rgba(110,36,52,.7); }
.tl-card--hl .tl-eyebrow { color: #e9c98a; }
.tl-card--hl .tl-title { color: #fdf5e6; }
.tl-card--hl .tl-body { color: #f0dcc0; }

.about-cta { max-width: 760px; margin: 0 auto; padding: 26px 0 8px; text-align: center; }
.about-cta h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; margin: 0; color: var(--ink); }
.about-cta p { font-size: 15px; line-height: 1.8; color: var(--ink-2); margin: 14px auto 0; max-width: 54ch; }
.about-cta .btn { margin-top: 22px; }

@media (max-width: 760px) {
    .about-h1 { font-size: 33px; }
    .timeline::before { left: 19px; }
    .tl-item { grid-template-columns: 40px 1fr; column-gap: 14px; }
    .tl-badge { grid-column: 1; grid-row: 1; align-self: start; }
    .tl-badge span { font-size: 15px; padding: 4px 10px; }
    .tl-side { grid-column: 2; grid-row: 1; justify-content: flex-start !important; padding: 2px 0 22px; }
    .tl-side--left .tl-card { text-align: left; }
    .tl-card { max-width: none; }
    .tl-empty { display: none; }
}
