/* Shop – Frontend */
/* Schriften wie auf den Landingpages, lokal eingebunden (keine Verbindung zu Google) */
@font-face { font-family: "Bebas Neue"; src: url("fonts/bebas-neue-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-300-latin.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-400i-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --accent: #b3261e;
  --radius: 10px;
  --maxw: 1180px;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gold: #d4a84b;
}
[data-theme="dark"] {
  --bg: #0e0c0b; --surface: #181412; --surface-2: #211c19; --line: #2f2824;
  --text: #ece6df; --muted: #a39990; --faint: #948a81; --cover-bg: #1f1a17;
  --ok: #4fa56b; --warn: #c9973a; --err: #ea6a5f; --star: #e6b34a;
  --accent-text: color-mix(in srgb, var(--accent) 55%, #fff);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f7f4f0; --surface: #ffffff; --surface-2: #f0ebe5; --line: #e2dbd2;
  --text: #1d1a17; --muted: #6a625a; --faint: #756c64; --cover-bg: #ece6de;
  --ok: #2f7a4a; --warn: #8a6419; --err: #b3261e; --star: #b07e12;
  --accent-text: var(--accent);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: .03em; }
h3 { font-family: var(--sans); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: .4em 0 .45em; }
h2 { font-size: 1.75rem; }
[hidden] { display: none !important; }
[data-hide] { display: none; }
.nojs-only { display: none; }
h1, h2, h3, .card__title, .cart__title, .review__name, .product__sub, .variant__name { overflow-wrap: anywhere; hyphens: auto; }
input, select, textarea { scroll-margin-top: 90px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-block; font-family: var(--display); font-size: 1.9rem; line-height: 1; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.cart-link { position: relative; display: inline-flex; color: var(--text) !important; }
.cart-count { position: absolute; top: -8px; right: -10px; 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 5px; }

main.wrap { padding-bottom: 120px; min-height: 60vh; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--faint); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); color: #fff; border-color: transparent; }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--order { min-height: 54px; font-size: 17px; margin-top: 8px; }
.btn--withdraw { background: transparent; border: 2px solid var(--accent); color: var(--text); min-height: 40px; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--accent); }

/* Notices */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--faint); background: var(--surface); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.notice p { margin: .3em 0; }
.notice--ok { border-left-color: var(--ok); }
.notice--error { border-left-color: var(--err); }
.notice--info { border-left-color: var(--warn); }
.notice--warn { border-left-color: var(--warn); }

/* Katalog */
.hero { padding: 32px 0 8px; max-width: 760px; }
.hero__intro { color: var(--muted); font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--muted); font-size: 14px; }
.chip.is-active, .chip:hover { border-color: var(--accent); color: var(--text); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card__cover { position: relative; aspect-ratio: 2 / 3; background: var(--cover-bg); border-radius: 6px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(0,0,0,.35); transition: transform .25s ease, box-shadow .25s ease; }
.card__link:hover .card__cover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,.45); }
.card__cover img, .cover { width: 100%; height: 100%; object-fit: contain; }
.cover--empty { display: grid; place-items: center; font: 400 3.4rem var(--display); color: var(--faint); width: 100%; height: 100%; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--bg); color: var(--text); font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.card__body { padding-top: 14px; }
.card__series { color: var(--accent-text); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 4px; }
.card__title { font-size: 1.6rem; margin: 0; }
.card__sub { color: var(--muted); margin: 2px 0 0; font-size: 14px; }
.card__price { font-weight: 700; margin: 8px 0 0; font-size: 1.05rem; }
.card__tax { color: var(--muted); font-size: 12px; margin: 0; }

/* Bewertungen */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; color: var(--muted); font-size: 14px; }
.stars { display: inline-flex; color: var(--star); }
.rating__num { color: var(--text); font-weight: 700; }
.rating__note { flex-basis: 100%; margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.rating--compact { font-size: 12px; margin: 6px 0 0; }
.rating--compact .stars svg { width: 14px; height: 14px; }
.rating__note--small { font-size: 11px; }

/* Produktseite */
.crumbs { color: var(--faint); font-size: 14px; margin-top: 20px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 620px); gap: 56px; margin-top: 16px; align-items: start; }
.gallery__main { background: var(--cover-bg); border-radius: 8px; aspect-ratio: 2 / 3; display: grid; place-items: center; overflow: hidden; max-height: 78vh; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.cover--large { font-size: 6rem; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumb { width: 64px; flex: none; aspect-ratio: 2/3; padding: 0; border: 2px solid transparent; border-radius: 4px; background: var(--cover-bg); cursor: pointer; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--accent); }
.buybox { position: sticky; top: 88px; }
.eyebrow { color: var(--accent-text); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin: 0; }
.product__title { margin: .2em 0 .1em; }
.product__sub { color: var(--muted); font-size: 1.15rem; margin: 0 0 8px; font-style: italic; }
.product__lead { font-size: 1.05rem; }
.variants { border: 0; padding: 0; margin: 20px 0 8px; display: grid; gap: 10px; }
.variants legend { font-weight: 600; margin-bottom: 8px; }
.variant { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: var(--surface); transition: border-color .15s; }
.variant:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.variant input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.variant__name { font-weight: 600; }
.variant__price { font-weight: 700; }
.variant__stock { grid-column: 2 / 4; font-size: 12px; color: var(--warn); }
.variant.is-disabled { opacity: .5; cursor: not-allowed; }
.variant-note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.personal { margin: 14px 0; }
.personal label { font-weight: 600; display: block; margin-bottom: 6px; }
.hint { color: var(--faint); font-size: 13px; margin: 6px 0 0; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 18px 0 2px; }
.price { font: 400 2.5rem/1 var(--display); letter-spacing: .03em; }
.price-note { color: var(--muted); font-size: 14px; }
.delivery { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.buyrow { display: flex; gap: 10px; margin-bottom: 10px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.qty button { width: 40px; border: 0; background: transparent; color: var(--text); font-size: 20px; cursor: pointer; }
.qty input { width: 44px; border: 0; background: transparent; text-align: center; color: var(--text); font: 600 16px var(--sans); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.paymethods { color: var(--faint); font-size: 13px; text-align: center; margin: 10px 0 0; }
.product-info { display: grid; gap: 24px; margin-top: 56px; max-width: 820px; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin-top: 1.6em; }
.prose blockquote { margin: 1em 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.details dl, .gpsr { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.details dt, .gpsr dt { color: var(--muted); }
.details dd, .gpsr dd { margin: 0; }
.fold { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; background: var(--surface); }
.fold summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.fold[open] { padding-bottom: 16px; }
.eu-notice { display: block; max-width: 560px; }
.eu-notice img { width: 100%; height: auto; border-radius: 4px; background: #fff; }

/* Warenkorb */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cart__item { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart__img { display: block; aspect-ratio: 2/3; background: var(--cover-bg); border-radius: 4px; overflow: hidden; }
.cart__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart__title { font-weight: 700; text-decoration: none; }
.cart__variant, .cart__unit { color: var(--muted); font-size: 14px; }
.cart__personal { font-size: 13px; color: var(--muted); }
.cart__qty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cart__qty input { width: 64px; text-align: center; }
.cart__remove { font-size: 13px; }
.cart__line { font-weight: 700; min-width: 80px; text-align: right; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.summary h2 { margin-top: 0; }
.summary__rows { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 18px; }
.summary__rows dd { margin: 0; text-align: right; }
.summary__total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.summary__tax { color: var(--faint); font-size: 13px; }
.summary__facts { list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
.summary__facts li::before { content: "✓ "; color: var(--ok); }
.empty { text-align: center; padding: 64px 0; color: var(--muted); }

/* Formulare */
input[type=text], input[type=email], input[type=number], input[type=password], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: 16px var(--sans);
}
textarea { min-height: 90px; resize: vertical; }
input:not([type=radio]):not([type=checkbox]):focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
[aria-invalid="true"] { border-color: var(--err); }
.field { margin: 0 0 14px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--faint); }
.field-error { display: block; color: var(--err); font-size: 13px; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2--street { grid-template-columns: 1fr 110px; }
.row2--zip { grid-template-columns: 130px 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.segmented { display: flex; gap: 8px; border: 0; padding: 0; margin: 4px 0 16px; }
.segmented label { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; background: var(--surface); }
.segmented label:has(input:checked) { border-color: var(--accent); }
.segmented input { accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kasse */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.checkout h2 { font-size: 1.5rem; margin: 28px 0 12px; }
.checkout__form h2:first-child { margin-top: 0; }
.checkout__summary { position: sticky; top: 88px; }
.checkout__summary h2 { margin-top: 0; }
.checkout-facts { color: var(--muted); font-size: 14px; margin-top: -8px; }
.review { list-style: none; padding: 0; margin: 0 0 8px; }
.review li { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.review__price { font-weight: 700; }
.eu-box { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.eu-box__title { font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.legal-small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.legal-small a { color: var(--muted); }

.thanks, .narrow { max-width: 680px; margin: 0 auto; padding-top: 24px; }
.stack { display: grid; gap: 4px; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer__in { display: grid; gap: 18px; justify-items: center; text-align: center; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.legal-nav a { color: var(--muted); }
.site-footer__meta { font-size: 12px; color: var(--faint); margin: 0; }

/* Consent */
.consent__title:focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.consent { position: fixed; inset: auto 12px 12px 12px; z-index: 50; display: flex; justify-content: center; }
.consent__in { max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: 0 18px 60px rgba(0,0,0,.5); font-size: 14px; color: var(--muted); }
.consent__title { font-weight: 700; color: var(--text); margin: 0 0 6px; }
.consent__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.consent__btns .btn { flex: 1; min-width: 160px; }

@media (max-width: 900px) {
  .product, .cart-layout, .checkout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .buybox, .checkout__summary { position: static; }
  /* Mobil: Überschrift über dem Bild, Bild ca. 60 % */
  .product { display: flex; flex-direction: column; gap: 0; }
  .product > .buybox { display: contents; }
  .product > .gallery { order: 1; width: 60%; max-width: 300px; margin: 20px auto 8px; }
  .product > .buybox > * { order: 2; }
  .product > .buybox > .eyebrow, .product > .buybox > .product__title, .product > .buybox > .product__sub { order: 0; }
  .gallery__thumbs { justify-content: center; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .cart__item { grid-template-columns: 60px 1fr auto; }
  .cart__line { grid-column: 2 / 4; text-align: left; }
  .row2 { grid-template-columns: 1fr; }
  .row2--street { grid-template-columns: 1fr 90px; }
  .row2--zip { grid-template-columns: 100px 1fr; }
  .site-nav { gap: 14px; font-size: 15px; }
  .brand { font-size: 1.55rem; }
}
@media (max-width: 374px) { .site-nav { gap: 10px; font-size: 14px; } .brand { font-size: 1.35rem; } .wrap { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.small-link { margin: 4px 0 12px; font-size: 14px; }
.catalog-note { color: var(--muted); font-size: 13px; margin: -8px 0 20px; }
@media (max-width: 560px) { .consent__in { max-height: 60vh; overflow: auto; } }

/* Fehlende Bände im Warenkorb */
.upsell { grid-column: 1; margin-top: 24px; padding: 20px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); background: var(--surface); }
.upsell__title { font-size: 1.5rem; margin: 0 0 4px; }
.upsell__sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.upsell__list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.upsell__item { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; }
.upsell__img { display: block; aspect-ratio: 2/3; background: var(--cover-bg); border-radius: 3px; overflow: hidden; }
.upsell__img img { width: 100%; height: 100%; object-fit: cover; }
.upsell__name { font-size: 15px; line-height: 1.35; }
.upsell__name a { text-decoration: none; font-weight: 600; }
.cart-layout > .summary { grid-column: 2; grid-row: 1 / span 10; }
.dedicate { grid-column: 1; margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; }
.dedicate__title { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: .02em; font-weight: 400; }
.dedicate__sub { margin: 0; color: var(--muted); }
.dedicate__row { display: grid; gap: 6px; font-weight: 600; }
.dedicate__row input { width: 100%; font-weight: 400; }
.dedicate .btn { justify-self: start; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 900px) {
  .cart-layout > .summary { grid-column: auto; grid-row: auto; }
  .upsell, .dedicate { grid-column: auto; }
}
@media (max-width: 560px) {
  .upsell__item { grid-template-columns: 40px 1fr; }
  .upsell__item form { grid-column: 2; }
}

