/*
 * drucker-zubehoer.kaufen – Shop-Stylesheet (ohne Framework).
 * Farben aus dem Logo: Tinte #171715, Gruen #76B72A. Buttons und Links in dunklerem Gruen (Kontrast >= 4.5:1).
 * Linien statt Schatten, eckig statt rund: soll nach Buero-Fachhandel aussehen, nicht nach Baukasten.
 */
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #171715;
  --ink-2: #4b4b45;
  --ink-3: #6f6e66;
  --paper: #ffffff;
  --paper-2: #f5f4ef;
  --paper-3: #ebe9e1;
  --line: #dcdad1;
  --line-strong: #b9b6aa;
  --green: #76b72a;
  --green-ink: #2f6410;
  --green-ink-hover: #244e0b;
  --green-tint: #eef6e4;
  --amber-ink: #8a4b00;
  --amber-tint: #fdf3e1;
  --red-ink: #a3221b;
  --red-tint: #fbeceb;
  --paypal: #ffc439;
  --radius: 3px;
  --wrap: 1160px;
  /* IBM Plex Sans (SIL OFL, selbst gehostet - keine Verbindung zu Google Fonts) */
  --font: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.icon--small { width: 1em; height: 1em; vertical-align: -.15em; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
picture > source { display: none; } /* sonst zaehlen die source-Elemente in Grid-Zeilen (.line) als eigene Spalten */
a { color: var(--green-ink); text-underline-offset: 2px; }
a:hover { color: var(--green-ink-hover); }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-3); }
.muted { font-size: .92rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
main { padding-bottom: 3rem; min-height: 50vh; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--green-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ---------- Kopf ---------- */
.topline { background: var(--ink); color: #e9e8e2; font-size: .85rem; }
.topline__row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 34px; }
.topline__note { margin: 0; padding: .35rem 0; }
.topline a { color: #fff; text-decoration: none; }
.topline a:hover { text-decoration: underline; }
.topline__links { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; white-space: nowrap; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead__row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand img { width: 220px; height: auto; }
.search { display: flex; max-width: 560px; width: 100%; position: relative; }
.search__icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { flex: 1; min-width: 0; font: inherit; padding: .6rem .8rem .6rem 2.5rem; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff; }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.search button { font: inherit; font-weight: 600; padding: 0 1.1rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.search button:hover { background: #000; }
.masthead__nav { display: flex; gap: 1.25rem; align-items: center; white-space: nowrap; }
.masthead__nav a { color: var(--ink); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; }
.masthead__nav a:hover { text-decoration: underline; }
.cartlink { display: inline-flex; align-items: center; gap: .45rem; }
.cartlink__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem; background: var(--green); color: var(--ink); font-weight: 700; font-size: .85rem; border-radius: 1rem; }
.masthead--checkout .masthead__row { grid-template-columns: auto 1fr; }
.masthead__revoke { display: none !important; }
@media (max-width: 960px) {
  .masthead__revoke { display: inline-block !important; font-size: .74rem; font-weight: 600 !important; line-height: 1.15; white-space: normal; max-width: 4.6rem; text-align: center; text-decoration: underline !important; }
}
.masthead__help { margin: 0; text-align: right; color: var(--ink-2); font-size: .92rem; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: .8rem 0 0; font-size: .85rem; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin: 0 .35rem 0 .1rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-3); }

.flashes { padding-top: 1rem; }
.flash { padding: .75rem 1rem; border-left: 4px solid var(--ink-3); background: var(--paper-2); margin: 0 0 .75rem; }
.flash--ok { border-color: var(--green); background: var(--green-tint); }
.flash--warn { border-color: #d58a1c; background: var(--amber-tint); color: #3d2800; }
.flash--info { border-color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 600; line-height: 1.2; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; text-decoration: none; text-align: center; transition: background-color .12s, border-color .12s; }
.btn--primary { background: var(--green-ink); color: #fff; }
.btn--primary:hover { background: var(--green-ink-hover); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--paper-2); color: var(--ink); }
.btn--quiet { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { background: var(--paper-3); color: var(--ink); }
.btn--paypal { background: var(--paypal); color: #111; }
.btn--paypal:hover { background: #f2b52a; color: #111; }
.pp b { color: #002c77; font-style: italic; font-weight: 700; letter-spacing: -.01em; }
.btn--big { padding: .9rem 1.4rem; font-size: 1.05rem; }
.btn--small { padding: .45rem .8rem; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .65; cursor: progress; }

/* ---------- Zustand / Lager ---------- */
.cond { display: inline-block; font-size: .85rem; font-weight: 600; padding: .15rem .5rem; border: 1px solid; border-radius: var(--radius); }
.cond--repacked { color: var(--ink); border-color: var(--line-strong); background: var(--paper-2); font-weight: 500; }
.cond--repacked b { font-weight: 700; letter-spacing: .02em; }
.cond--oem { color: var(--green-ink); border-color: #b9d99a; background: var(--green-tint); }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; vertical-align: .05em; margin-right: .3rem; }
.dot--ok { background: var(--green); }
.dot--out { background: #c7c5bc; }

/* ---------- Produktseite ---------- */
.product { padding-top: 1.25rem; }
.product__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem; align-items: start; }
.product__image { display: block; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.product__image img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product__imgnote { font-size: .85rem; color: var(--ink-3); margin: .5rem 0 0; }
.product__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: baseline; color: var(--ink-2); font-size: .92rem; margin-bottom: .4rem; }
.product__meta a { font-weight: 700; color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; padding: .1rem .45rem; border: 1px solid var(--ink); }
.product__meta a:hover { background: var(--ink); color: #fff; }
.product__title { margin-bottom: .6rem; }
.product__fits { font-size: .95rem; color: var(--ink-2); margin: .9rem 0 0; }
.product__fits span { font-weight: 600; color: var(--ink); margin-right: .25rem; }
.repacked-short { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; margin: 1rem 0 0; padding: .85rem 1rem; background: var(--paper-2); border-left: 3px solid var(--green); }
.repacked-short__icon { grid-row: span 2; width: 1.9rem; height: 1.9rem; color: var(--green-ink); margin-top: .1rem; }
.repacked-short p { margin: 0 0 .3rem; }
.repacked-short__more { font-size: .92rem; font-weight: 600; text-decoration: none; }
.repacked-short__more:hover { text-decoration: underline; }

.buy { margin-top: 1.25rem; padding: 1.25rem 1.35rem 1.1rem; border: 1px solid var(--line); border-top: 3px solid var(--ink); background: #fff; }
.buy__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .3rem; }
.buy__price { font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.buy__ship { display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .25rem .6rem; background: var(--green-tint); color: var(--green-ink); font-weight: 600; font-size: .9rem; border-radius: 2rem; }
.buy__tax { color: var(--ink-3); font-size: .88rem; margin-bottom: .9rem; }
.buy__stock { margin-bottom: 1rem; }
.buy__stock { margin-bottom: .4rem; }
.buy__when { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.45; margin-bottom: 1rem; }
.buy__when .icon { color: var(--green-ink); margin-top: .1rem; }
.buy__when strong { color: var(--ink); }
.buy__stock--out { padding: .75rem 1rem; background: var(--paper-2); }
.notify { margin: 0 0 .5rem; }
.notify__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.notify__row { display: flex; gap: .5rem; }
.notify__row input { flex: 1; min-width: 0; font: inherit; padding: .6rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.notify .check { margin-top: .6rem; }
.buy__form { display: grid; gap: .75rem; }
.buy__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.buy__express { margin-top: .6rem; }
.buy__express .btn { width: 100%; }
.buy__hint { font-size: .8rem; color: var(--ink-3); margin: .35rem 0 0; text-align: center; }
.buy__added { margin: .75rem 0 0; padding: .6rem .9rem; background: var(--green-tint); border-left: 3px solid var(--green); }
.buy__facts { list-style: none; margin: 1.1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; font-size: .88rem; color: var(--ink-2); line-height: 1.4; }
.buy__facts li { display: flex; gap: .55rem; align-items: flex-start; }
.buy__facts .icon { color: var(--green-ink); margin-top: .05rem; }
.buy__facts strong { color: var(--ink); display: block; }
.buy__partner { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); text-decoration: none; }
.buy__partner img { width: 40px; height: 40px; }
.buy__partner:hover u { color: var(--green-ink); }

.qty { display: inline-flex; align-items: center; gap: 0; }
.qty label { margin-right: .75rem; font-size: .92rem; color: var(--ink-2); }
.qty__note { margin-left: .75rem; font-size: .82rem; color: var(--ink-3); }
.buy__region { margin: .5rem 0 0; font-size: .85rem; color: var(--ink-3); }
.buy__added { animation: added-in .25s ease-out; }
@keyframes added-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cartlink__count.is-bumped { animation: bump .5s ease-out; }
@keyframes bump { 40% { transform: scale(1.35); } }
.qty__btn { width: 2.4rem; height: 2.6rem; font-size: 1.2rem; line-height: 1; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; color: var(--ink); }
.qty__btn:first-of-type { border-radius: var(--radius) 0 0 var(--radius); }
.qty__btn:last-of-type { border-radius: 0 var(--radius) var(--radius) 0; }
.qty__btn:hover { background: var(--paper-2); }
.qty input { width: 3.2rem; height: 2.6rem; text-align: center; font: inherit; font-weight: 600; border: 1px solid var(--line-strong); border-left: 0; border-right: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.alternatives { margin-top: 2.5rem; padding: 1.25rem; background: var(--paper-2); }
.alternatives--inline { margin-top: 1rem; padding: 1rem; border-left: 3px solid var(--green); }
.alternatives--inline h2 { font-size: 1.05rem; }
.alternatives--inline .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.alternatives--inline .card__img { aspect-ratio: 4 / 3; }
.buy--out .buy__price { color: var(--ink-3); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.cards--grid { grid-template-columns: repeat(4, 1fr); }
.card a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: .75rem .75rem .9rem; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .12s; }
.card a:hover { border-color: var(--ink); }
.card a:hover .card__title { text-decoration: underline; }
.card__img { display: block; background: var(--paper-2); aspect-ratio: 1; margin-bottom: .45rem; }
.card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card__brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.card__title { font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: .35rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.card__price { font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.card__stock { font-size: .8rem; color: var(--ink-2); }

.related { margin-top: 2.5rem; }
.related h2 { font-size: 1.15rem; }
.explain { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.explain__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin: 1rem 0 1.5rem; }
.explain__col { padding: 1.1rem 1.25rem; }
.explain__col + .explain__col { border-left: 1px solid var(--line); }
.explain__col h3 { display: flex; align-items: center; gap: .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: .6rem; }
.explain__col h3 .icon { width: 1.6rem; height: 1.6rem; }
.explain__col--yes h3 { color: var(--green-ink); }
.explain__col--no h3 { color: var(--amber-ink); }
.explain__col p { margin-bottom: .5rem; }
.explain__more { margin-top: 1rem; }
.explain__intro { color: var(--ink-2); max-width: 70ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .85rem 2rem .85rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font-size: 1.3rem; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--ink-2); max-width: 70ch; }

.product__details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.product__details h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .45rem; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.printers { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.printers li { font-size: .88rem; padding: .2rem .55rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.gpsr { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .92rem; }
.gpsr__pdf { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.gpsr__pdf::before { content: "PDF"; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .1rem .35rem; border: 1px solid currentColor; border-radius: 3px; }
.warranty-note { grid-column: 1 / -1; color: var(--ink-2); }

.stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-strong); }
.stickybuy__price { font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
.stickybuy__sub { font-size: .8rem; color: var(--ink-3); }

/* ---------- Listen ---------- */
.listing { padding-top: 1.25rem; }
.listing__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: 1rem; }
.listing__head h1 { margin: 0; }
.listing__count { margin: 0; color: var(--ink-2); }
.listing__filter { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.listing__filter label { font-size: .92rem; color: var(--ink-2); white-space: nowrap; }
.listing__filter input { font: inherit; padding: .45rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius); width: min(320px, 100%); }
.listing__empty { padding: 1rem 0; }
.listing__about { margin-top: 2.5rem; color: var(--ink-2); max-width: 75ch; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.25rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.row__img img { width: 96px; height: 96px; object-fit: contain; }
.row__title { font-size: 1.02rem; margin: 0 0 .25rem; }
.row__title a { color: var(--ink); text-decoration: none; }
.row__title a:hover { text-decoration: underline; color: var(--green-ink); }
.row__meta, .row__fits { margin: 0; font-size: .88rem; color: var(--ink-2); }
.row__meta .cond { font-size: .78rem; padding: .05rem .4rem; }
.row__fits { margin-top: .25rem; color: var(--ink-3); }
.row__buy { text-align: right; min-width: 9.5rem; }
.row__price { font-size: 1.3rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.row__stock { font-size: .85rem; color: var(--ink-2); margin: .1rem 0 .5rem; }
.row__stock--out { color: var(--ink-3); }
.row--out .row__img, .row--out .row__price { opacity: .55; }
.soldout { margin-top: 1.5rem; }
.soldout summary { cursor: pointer; color: var(--ink-2); padding: .5rem 0; }

.brands { margin-top: 2.5rem; }
.brands ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.brands a { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-bottom: 3px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; transition: border-color .12s; }
.brands a:hover { border-color: var(--ink); border-bottom-color: var(--green); }
.brands small { font-weight: 400; }

/* ---------- Startseite ---------- */
.intro { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem; align-items: center; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.intro h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); max-width: 15ch; letter-spacing: -0.025em; line-height: 1.08; }
.intro__kicker { display: inline-block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--green-ink); margin-bottom: .8rem; padding-bottom: .2rem; border-bottom: 2px solid var(--green); }
.intro__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 54ch; }
.intro__figure { margin: 0; }
.intro__figure img { border: 1px solid var(--line); }
.intro__figure figcaption { font-size: .85rem; color: var(--ink-3); margin-top: .4rem; }
.showcase { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.showcase a { display: block; background: #fff; border: 1px solid var(--line); padding: .5rem; text-decoration: none; color: var(--ink-2); }
.showcase a:hover { border-color: var(--ink); }
.showcase img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.showcase span { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 600; text-align: center; letter-spacing: .02em; }
.search--big { flex-direction: column; max-width: 600px; margin-top: 1.5rem; }
.search--big label { font-weight: 600; margin-bottom: .4rem; }
.search__field { display: flex; position: relative; }
.search--big input { font-size: 1.05rem; padding: .85rem 1rem .85rem 2.6rem; }
.search__tip { font-size: .85rem; color: var(--ink-3); margin: .4rem 0 0; }
.search--page { margin: 1rem 0 1.5rem; }
.facts-row { list-style: none; margin: 0; padding: 1.25rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.facts-row li { display: flex; gap: .7rem; align-items: flex-start; }
.facts-row .icon { width: 1.7rem; height: 1.7rem; color: var(--green-ink); }
.facts-row strong { display: block; color: var(--ink); }
.howto { margin-top: 3rem; }
.latest { margin-top: 3rem; }
.howto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; color: var(--ink-2); }
.catalog { margin-top: 2.5rem; }
.catalog__list { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 2rem; }
.catalog__list li { padding: .3rem 0; break-inside: avoid; }

/* ---------- Warenkorb ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.cart__items { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cart__item { display: grid; grid-template-columns: 88px 1fr auto; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.cart__img img { width: 88px; height: 88px; object-fit: contain; }
.cart__title { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart__title:hover { text-decoration: underline; }
.cart__meta { font-size: .88rem; color: var(--ink-2); margin: .3rem 0 .6rem; }
.cart__meta .cond { font-size: .78rem; padding: .05rem .4rem; }
.cart__warn { font-size: .88rem; color: var(--amber-ink); margin: -.3rem 0 .5rem; }
.cart__controls { display: flex; align-items: center; gap: 1.25rem; }
.cart__total { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart__side { position: sticky; top: 1rem; padding: 1.25rem; background: var(--paper-2); display: grid; gap: .75rem; }
.cart__note, .cart__back { font-size: .88rem; color: var(--ink-2); margin: 0; }
.totals { margin: 0; }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__grand { border-top: 1px solid var(--line-strong); margin-top: .35rem; padding-top: .6rem !important; font-weight: 700; font-size: 1.15rem; }
.totals__grand dt { color: var(--ink); }
.totals__tax { font-size: .85rem; }
.empty { padding: 1.5rem 0; }

/* ---------- Kasse ---------- */
.checkout { padding-top: 1.5rem; }
.checkout__login { color: var(--ink-2); }
.checkout__form { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2.5rem; align-items: start; }
.step { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.step legend, .step__title, .checkout__summary h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; padding: 0; display: flex; align-items: center; gap: .6rem; }
.step__no { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .9rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field [aria-invalid="true"] { border-color: var(--red-ink); background: var(--red-tint); }
.field__hint { display: block; font-size: .85rem; color: var(--ink-3); margin-top: .25rem; }
.field__error { color: var(--red-ink); font-size: .9rem; margin: .3rem 0 0; font-weight: 600; }
.field__static { margin-bottom: 1rem; }
.opt { font-weight: 400; color: var(--ink-3); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-plz { display: grid; grid-template-columns: 8rem 1fr; gap: 0 1rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; margin: .5rem 0 1rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--green-ink); }
.check label { cursor: pointer; }
.check--small label { font-size: .92rem; }
.check--small .muted { display: block; font-size: .8rem; margin-top: .25rem; }
.shipping { padding: 1rem 1rem .25rem; background: var(--paper-2); margin-bottom: 1rem; }
.shipping__title { font-weight: 700; }
.delivery { border: 0; margin: 1.25rem 0 1rem; padding: 0; min-width: 0; }
.delivery legend { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.choice { display: grid; gap: .5rem; }
.choice__opt { display: grid; grid-template-columns: auto 1fr; gap: .7rem; padding: .8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; background: #fff; }
.choice__opt:has(input:checked) { border-color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green-ink); background: var(--green-tint); }
.choice__opt input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--green-ink); }
.choice__name { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.choice__name .icon { color: var(--green-ink); }
.choice__desc { display: block; font-size: .88rem; color: var(--ink-2); margin-top: .1rem; }
.pay { display: grid; gap: .6rem; }
.pay__option { display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; background: #fff; }
.pay__option:has(input:checked) { border-color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green-ink); background: var(--green-tint); }
.pay__option input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--green-ink); }
.pay__name { display: block; font-weight: 700; }
.pay__desc { display: block; font-size: .9rem; color: var(--ink-2); margin-top: .15rem; }
.checkout__side { position: sticky; top: 1rem; }
.checkout__summary { padding: 1.25rem; background: var(--paper-2); }
.lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 56px; height: 56px; object-fit: contain; background: #fff; }
.line__title { display: block; font-size: .92rem; font-weight: 600; }
.line__meta { display: block; font-size: .82rem; color: var(--ink-3); }
.line__total { font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout__delivery { font-size: .9rem; color: var(--ink-2); margin: .75rem 0; }
.checkout__label { margin: 0 0 2rem; max-width: 420px; }
.checkout__label img { max-width: 100% !important; margin: 0 !important; }
.checkout__legal { font-size: .85rem; color: var(--ink-2); }
.checkout__after { font-size: .85rem; color: var(--ink-3); text-align: center; margin: .5rem 0 0; }
.checkout__back { font-size: .9rem; text-align: center; margin: .75rem 0 0; }
.addr { font-style: normal; padding: 1rem; border: 1px solid var(--line); background: #fff; margin-bottom: .75rem; }

/* ---------- Danke / Inhalte ---------- */
.thanks h1 { margin-top: 1.5rem; }
.payinfo { padding: 1.25rem; border: 2px solid var(--ink); margin: 1.5rem 0; }
.payinfo h2 { font-size: 1.15rem; }
.next ol { padding-left: 1.2rem; }
.hint { margin: .5rem 0 0; padding: .5rem .75rem; font-size: .88rem; background: var(--amber-tint); border-left: 3px solid #d58a1c; }
.choice__opt:has(input:disabled) { opacity: .5; }
.ordered { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--paper-2); }
.ordered h2 { font-size: 1.1rem; }
.ordered__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.ordered__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.ordered__list li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ordered__total { font-weight: 700; border-bottom: 0 !important; }
.ordered__to { margin: 0; line-height: 1.5; }
.copy { margin-left: .5rem; font-size: .85rem; }
.prose { padding-top: 1.5rem; }
.prose h2 { margin-top: 2rem; }
.prose .lead { font-size: 1.12rem; color: var(--ink-2); }
.prose__hero { margin: 1rem 0 1.5rem; border: 1px solid var(--line); }
.note { padding: 1rem 1.25rem; background: var(--paper-2); border-left: 3px solid var(--green); margin: 2rem 0; }
.inline-icon { float: left; width: 48px; margin: .2rem .8rem .3rem 0; }
.legal { padding-top: 1.5rem; overflow-wrap: anywhere; }
.legal span, .legal font { font-size: inherit !important; font-family: inherit !important; }
.legal strong span[style*="16px"], .legal span[style*="16px"] strong { font-size: 1.35rem !important; }
.memberships { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.memberships img { display: inline-block; margin: 0 1rem .75rem 0; }
img[data-consent-src]:not([src]) { display: none; }
img[src] + .consent-fallback { display: none; }
.consent-fallback { display: inline-block; margin: 0 1rem .75rem 0; }
.footer__shopauskunft iframe { border: 0; width: 160px; height: 110px; }
.posts { list-style: none; margin: 0; padding: 0; }
.post { display: grid; grid-template-columns: 265px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.post h2 { font-size: 1.15rem; }
.post h2 a { color: var(--ink); text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.card-form { max-width: 460px; }
.guest { padding: 1.25rem; background: var(--paper-2); align-self: start; }
.actions, .adminlinks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Fuss ---------- */
.footer { margin-top: 2rem; background: var(--paper-2); border-top: 1px solid var(--line); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 2.25rem; padding-bottom: 1.5rem; }
.footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer a, .footer .linklike { color: var(--ink); }
.footer__address { color: var(--ink-2); }
.footer__seals { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; padding-top: 1rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); }
.footer__seals img { height: 60px; width: auto; }
.footer__seals img[height="40"] { height: 40px; }
.footer__legal { padding-top: 1rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; }
.footer__legal p { margin: 0 0 .35rem; }
.footer__aside { font-size: .8rem; }
.footer__aside a { color: var(--ink-3); }

/* ---------- Einwilligung ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 50; pointer-events: none; }
.consent__box { pointer-events: auto; max-width: 1180px; margin: 0 auto; background: #fff; border-top: 2px solid var(--ink); padding: .75rem 1.25rem; box-shadow: 0 -4px 18px rgba(0,0,0,.10); font-size: .86rem; line-height: 1.45; display: flex; gap: 1rem 1.5rem; align-items: center; }
.consent__box p { margin: 0; flex: 1; }
.consent__actions { display: flex; gap: .5rem; flex: none; }
.consent__actions .btn { min-width: 10rem; padding: .55rem .9rem; }
body:has(.consent:not([hidden])) { padding-bottom: 5rem; }

/* ---------- Lupe ---------- */
.zoom { border: 0; padding: 0; max-width: min(92vw, 900px); max-height: 92vh; background: #fff; }
.zoom::backdrop { background: rgba(23,23,21,.75); }
.zoom img { max-height: 86vh; width: auto; margin: 0 auto; }
.zoom__close { position: absolute; top: .5rem; right: .5rem; }

/* ---------- Schmal ---------- */
@media (max-width: 960px) {
  .masthead__row { grid-template-columns: auto auto; }
  .masthead .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .masthead__nav { justify-self: end; }
  .product__top, .intro__grid, .cart, .checkout__form, .howto__grid, .split { grid-template-columns: 1fr; }
  .product__media { max-width: 460px; }
  .product__details { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .cards--grid { grid-template-columns: repeat(3, 1fr); }
  .cart__side, .checkout__side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .topline__links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand img { width: 170px; }
  .topline__note { font-size: .78rem; }
  .product { padding-top: .75rem; }
  .masthead__row { padding-top: 8px; padding-bottom: 8px; gap: .55rem .75rem; }
  .masthead__nav { gap: .8rem; }
  .search input { padding-top: .45rem; padding-bottom: .45rem; }
  .crumbs ol { padding-top: .5rem; }
  /* Handy (idealo-Besucher): kleines Bild neben Titel und Zustand, darunter sofort Preis, Liefertag und
     Kaufen - alles im ersten Bildschirm. Die Repacked-Erklaerung folgt direkt unter der Kaufbox. */
  .product__top { display: grid; grid-template-columns: 96px 1fr; gap: .35rem .85rem; align-items: start; }
  .product__summary { display: contents; }
  .product__summary > * { grid-column: 1 / -1; }
  .product__media { grid-column: 1; grid-row: 1 / span 3; max-width: 96px; margin: 0; }
  .product__summary > .product__meta, .product__summary > .product__title, .product__summary > .cond { grid-column: 2; }
  .product__summary > .cond { justify-self: start; margin-top: .15rem; font-size: .8rem; }
  .product__meta { font-size: .78rem; margin-bottom: 0; }
  .product__title { font-size: 1.12rem; line-height: 1.25; margin: 0; }
  .product__imgnote { display: none; }
  .product__summary .buy { order: 4; margin-top: .6rem; padding-top: .8rem; }
  .product__summary .repacked-short { order: 5; }
  .product__summary .alternatives { order: 5; }
  .product__summary .product__fits { order: 6; }
  .topline:not(.topline--important) { display: none; }
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2) { display: block; }
  .crumbs li + li::before { content: none; }
  .crumbs li:nth-last-child(2) a::before { content: "‹ "; }
  .buy__price { font-size: 2rem; }
  .buy__actions { grid-template-columns: 1fr; }
  /* Menge und "Jetzt kaufen" in einer Zeile, damit der Knopf im ersten Bildschirm bleibt */
  .buy__form:has(.qty) { grid-template-columns: auto 1fr; align-items: stretch; }
  .buy__form:has(.qty) .buy__actions { display: contents; }
  .buy__form:has(.qty) .buy__actions .btn--secondary { grid-column: 1 / -1; }
  .buy__form .qty label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .buy__form .qty__note { display: none; }
  .buy__form .qty input, .buy__form .qty__btn { height: 100%; min-height: 2.6rem; }
  .buy__form .qty__btn { width: 2.1rem; }
  .buy__form .qty input { width: 2.4rem; }
  .explain__grid { grid-template-columns: 1fr; }
  .explain__col + .explain__col { border-left: 0; border-top: 1px solid var(--line); }
  .gpsr { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: .1rem; }
  .row { grid-template-columns: 64px 1fr; gap: .9rem; }
  .row__img img { width: 64px; height: 64px; }
  .row__buy { grid-column: 2; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
  .row__stock { margin: 0; }
  .row__buy form { flex-basis: 100%; }
  .cart__item { grid-template-columns: 64px 1fr; }
  .cart__img img { width: 64px; height: 64px; }
  .cart__total { grid-column: 2; }
  .grid2 { grid-template-columns: 1fr; }
  .grid-plz { grid-template-columns: 6.5rem 1fr; }
  .post { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .facts-row { grid-template-columns: 1fr; gap: .6rem; }
  .consent__box { display: block; padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom)); font-size: .78rem; line-height: 1.4; }
  .consent__box p { margin-bottom: .45rem; }
  .consent__actions .btn { flex: 1; min-width: 0; padding: .4rem .4rem; font-size: .85rem; }
  .cards--grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .buy { padding: 1rem; margin-left: -4px; margin-right: -4px; }
  .buy__facts { grid-template-columns: 1fr; }
  .masthead__nav span:not(.cartlink__count) { display: none; }
  .masthead__nav .icon { width: 1.5rem; height: 1.5rem; }
  main { padding-bottom: 5rem; }
}
@media (min-width: 961px) {
  .stickybuy { display: none !important; }
  .product__media { position: sticky; top: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .topline, .masthead__nav, .search, .footer, .consent, .stickybuy { display: none !important; } }

/* ---------- Hersteller-Navigation ---------- */
.brandnav { border-top: 1px solid var(--line); background: var(--paper-2); font-size: .9rem; }
.brandnav__row { display: flex; align-items: center; gap: 1rem; min-height: 40px; overflow-x: auto; scrollbar-width: none; }
.brandnav__row::-webkit-scrollbar { display: none; }
.brandnav__label { color: var(--ink-3); white-space: nowrap; }
.brandnav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.brandnav li a { display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.brandnav li a:hover { background: #fff; box-shadow: inset 0 -2px 0 var(--green); }
.brandnav__extra { margin-left: auto; white-space: nowrap; color: var(--ink-2); }

/* ---------- Suchvorschlaege ---------- */
.suggest { position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: .25rem 0; list-style: none; background: #fff; border: 1px solid var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.1); max-height: 70vh; overflow-y: auto; }
.suggest li a { display: grid; grid-template-columns: 44px 1fr auto; gap: .7rem; align-items: center; padding: .45rem .75rem; color: var(--ink); text-decoration: none; }
.suggest li a:hover, .suggest li[aria-selected="true"] a { background: var(--paper-2); }
.suggest img { width: 44px; height: 44px; object-fit: contain; }
.suggest__title { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.suggest__meta { display: block; font-size: .78rem; color: var(--ink-3); font-weight: 400; }
.suggest__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.suggest__all a { display: block; padding: .55rem .75rem; font-size: .88rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .brandnav { font-size: .85rem; }
  .brandnav__label { display: none; }
  .page-product .brandnav { display: none; } /* idealo-Besucher: Preis zuerst */
  .brandnav li a { padding: .45rem .55rem; }
}
@media (max-width: 380px) {
  .brand img { width: 136px; }
  .masthead__row { gap: .5rem; grid-template-columns: minmax(0, 1fr) auto; }
  .wrap { padding-left: 12px; padding-right: 12px; }
  .masthead__nav { gap: .55rem; }
  .masthead__revoke { font-size: .68rem; max-width: 4rem; }
  .masthead__nav .icon { width: 1.35rem; height: 1.35rem; }
  .search button { padding: 0 .75rem; }
}

/* Apple Pay / Google Pay (assets/js/wallet.js) */
.wallet-pay { margin-top: .25rem; }
.wallet-pay [data-wallet-button] { min-height: 48px; display: grid; }
.wallet-pay [data-wallet-button] > * { width: 100%; }
.applepay-btn { -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black; width: 100%; height: 48px; border: 0; border-radius: var(--radius); cursor: pointer; }
.is-paying .wallet-pay { opacity: .6; }
