/* CartoClear – Shop-Stylesheet. Farben aus dem Markenauftritt: Tinte, Gold, Pergament. */
:root {
  --ink: #0b0b0d;
  --ink-2: #16161a;
  --ink-3: #24232a;
  --gold: #c9a14a;
  --gold-2: #a8832f;
  --cream: #e8dcb5;
  --paper: #f6f2ea;
  --paper-2: #ece5d6;
  --text: #1c1a17;
  --muted: #6b655b;
  --line: #ddd4c2;
  --ok: #2f6b3a;
  --err: #9b2c2c;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "DejaVu Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: .005em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: .4em 0 .4em; }
h2 { font-size: 1.4rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.plain { list-style: none; padding: 0; margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.notice-bar { background: var(--gold); color: var(--ink); text-align: center; font-size: .875rem; padding: 6px 16px; }
.site-header { background: var(--ink); color: var(--cream); border-bottom: 1px solid #2a2618; }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.brand:hover { color: var(--cream); }
.search { flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; padding: 9px 14px; border-radius: 999px; border: 1px solid #3a3526; background: var(--ink-2); color: var(--cream); font: inherit; font-size: .95rem; }
.search input::placeholder { color: #9d937a; }
.header-actions { display: flex; gap: 14px; align-items: center; font-size: .95rem; }
.header-actions a { color: var(--cream); text-decoration: none; white-space: nowrap; }
.header-actions a:hover { color: var(--gold); }
.badge { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .8rem; text-align: center; }
.catnav { background: var(--ink-2); border-top: 1px solid #1f1d16; }
.catnav-row { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-top: 9px; padding-bottom: 9px; }
.catnav-row::-webkit-scrollbar { display: none; }
.catnav a { color: #cfc5a6; text-decoration: none; font-size: .92rem; white-space: nowrap; }
.catnav a:hover, .catnav a[aria-current] { color: var(--gold); }

/* Buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.btn-block { display: block; width: 100%; }
.linkbtn { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--muted); padding: 4px 8px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% 0%, #1c1a13 0%, var(--ink) 60%); color: var(--cream); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.eyebrow { color: var(--gold); letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; margin: 0; }
.hero h1 { color: #f4ecd2; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.lead { font-size: 1.12rem; color: inherit; opacity: .92; max-width: 60ch; }
.hero-art img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); border: 1px solid #3a3322; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 8px; }
.benefits h2 { font-size: 1.15rem; margin: 0 0 4px; color: var(--ink); }
.benefits h2::before { content: "✦ "; color: var(--gold); }
.benefits p { margin: 0; color: var(--muted); }
.section-h { margin: 40px 0 16px; font-size: 1.6rem; }

/* Kategorien */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-card { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); text-decoration: none; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .4s, opacity .3s; }
.cat-card:hover img { transform: scale(1.04); opacity: .9; }
.cat-name { position: absolute; inset: auto 0 0 0; padding: 12px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #f4ecd2; font-family: var(--serif); font-size: 1.15rem; display: flex; flex-direction: column; }
.cat-name small { font-family: var(--sans); font-size: .8rem; color: var(--gold); }

/* Produktkarten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-img { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 1/1; box-shadow: var(--shadow); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card-link:hover .card-img img { transform: scale(1.03); }
.kind { position: absolute; left: 8px; top: 8px; background: rgba(11,11,13,.82); color: var(--cream); font-size: .72rem; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }
.kind-poster { background: var(--gold); color: var(--ink); }
.card-title { font-family: var(--sans); font-weight: 500; font-size: .95rem; line-height: 1.35; margin: 10px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin: 0; font-weight: 700; }
.card-price s { font-weight: 400; color: var(--muted); }
.noimg { aspect-ratio: 1/1; background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, var(--paper) 10px, var(--paper) 20px); }

/* Liste */
.list-head { padding: 12px 0 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.sort select, select, input[type=text], input[type=email], input[type=number] { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.sort select { padding: 6px 10px; margin-left: 6px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 32px 0; }
.empty { padding: 40px 0; color: var(--muted); }

/* Produktseite */
.crumbs { margin: 16px 0 8px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.gallery-main img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--gold); }
.buybox { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.buybox h1 { font-size: 1.45rem; margin-top: 4px; }
.kind-inline { margin: 0; color: var(--gold-2); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.price { font-size: 1.7rem; font-weight: 700; margin: 8px 0 0; }
.buyform { display: grid; gap: 12px; margin: 18px 0 12px; }
.buyform label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.usp { padding-left: 18px; color: var(--muted); }
.files summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.files ul { padding-left: 18px; max-height: 220px; overflow: auto; word-break: break-word; }
.desc { max-width: 820px; margin-top: 40px; }
.prose p { margin: 0 0 .9em; }
.prose h3 { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; color: var(--gold-2); margin: 1.6em 0 .5em; }
.prose ul { padding-left: 20px; }
.prose a, .prose p, .prose li { overflow-wrap: anywhere; }
.prose li { margin: .2em 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags a { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); text-decoration: none; color: var(--muted); }

/* Warenkorb & Kasse */
.cart-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cart-table th, .cart-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table tfoot td { font-weight: 700; border-bottom: 0; }
.num { text-align: right !important; white-space: nowrap; }
.ct-img { width: 72px; }
.ct-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.qty-form input { width: 70px; }
.cart-actions { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.checkout-form { display: grid; gap: 12px; }
.checkout-form label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.checkout-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.check input { margin-top: 4px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--gold-2); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.summary h2 { margin-top: 0; font-size: 1.15rem; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--paper-2); font-size: .92rem; }
.sum-line > span:last-child { white-space: nowrap; }
.sum-line.total { font-weight: 700; border: 0; }

.flash { padding: 12px 16px; border-radius: 8px; margin: 14px 0; background: #fff; border-left: 4px solid var(--gold); }
.flash-success { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--err); }
.flash ul { margin: 0; padding-left: 18px; }
.dl-list { list-style: none; padding: 0; }
.dl-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.page h2 { margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc5a6; margin-top: 64px; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-footer a { color: #e7dcbc; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .muted { color: #9d937a; }
.foot-h { font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin: 6px 0 10px; }
.site-footer li { margin: 4px 0; font-size: .92rem; }
.foot-bottom { border-top: 1px solid #242119; margin-top: 28px; padding-top: 16px; }

@media (max-width: 900px) {
  .hero-grid, .pdp, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 520px; }
  .buybox { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .header-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .brand { font-size: 1.3rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-table th:first-child, .ct-img { display: none; }
  .hero-grid { padding-top: 28px; padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

main { overflow-x: clip; }
.buybox h1, .card-title { overflow-wrap: anywhere; }

.env-bar { text-align: center; font: 700 .8rem var(--sans); letter-spacing: .08em; padding: 5px 16px; color: #fff; }
.env-alpha { background: #7a2e8c; }
.env-test { background: #1f6f8b; }
