/* Vereins-Shop – ein Stylesheet für alle Vereine.
   Farben, Schrift, Rundungen und Kopfzeile kommen als CSS-Variablen aus dem Design-CMS des jeweiligen Shops.

   Raster: Alles richtet sich an derselben Inhaltsbreite (--wrap) und demselben Seitenrand (--gutter) aus –
   Kopfzeile, Überschriften, Regale, Karten und Fußzeile haben dadurch exakt dieselbe linke und rechte Kante.
   Abstände folgen einer festen Stufenfolge (--s1 … --s8).

   Flächen: Es gibt genau zwei Töne – die Seite (--bg) und eine ruhige Fläche (--card) für Karten und Kacheln.
   Abschnitte trennt Weißraum, keine wechselnden Hintergründe; Bilder liegen ohne eigenen Kasten auf der Kachel. */
:root {
  /* Diese Werte überschreibt jeder Shop über das Design-CMS (siehe theme.php). */
  --primary: #0071e3;
  --on-primary: #fff;
  --accent: #1d1d1f;
  --on-accent: #fff;
  --ink: #1d1d1f;
  --on-ink: #fff;
  --bg: #fff;
  --card: #f5f5f7;
  --radius: 18px;
  --radius-s: 12px;
  --btn-radius: 999px;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --case: none;
  /* Abgeleitet – passt sich hellen wie dunklen Designs an. */
  --primary-dark: color-mix(in srgb, var(--primary) 84%, var(--ink));
  --soft: color-mix(in srgb, var(--ink) 58%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 13%, var(--bg));
  --edge: color-mix(in srgb, var(--ink) 34%, var(--bg));
  --tint: var(--card);
  --grey: #b4b3b3;
  --ok: #008000;
  --danger: #da0037;
  /* Raster und Abstände */
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --edge-pad: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --section: clamp(72px, 10vw, 144px);
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 72px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.47 var(--font); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 880px; }
.center { text-align: center; }
.muted { color: var(--soft); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Kopfzeile ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav__inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: stretch; justify-content: space-between; gap: var(--s4); min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: var(--s3); color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; max-width: 150px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; min-width: 0; }
.brand__text small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__text strong { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.nav__links { display: flex; align-items: stretch; flex: none; }
.nav__btn { display: flex; align-items: center; padding: 0 var(--s4); color: var(--ink); font-size: 14px; transition: filter .15s, color .15s; }
.nav__btn:hover { text-decoration: none; color: var(--primary); }
.nav__bag { position: relative; gap: 6px; padding-right: 0; }
.nav__count { background: var(--primary); color: var(--on-primary); border-radius: 99px; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.nav__lang { display: flex; align-items: center; gap: 2px; padding: 0 var(--s3); font-size: 13px; }
.nav__lang a { color: var(--soft); padding: 5px 7px; border-radius: 6px; line-height: 1; }
.nav__lang a:hover { text-decoration: none; color: var(--ink); }
.nav__lang a[aria-current] { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--ink) 8%, transparent); }
/* Kopfzeile „Farbige Blöcke“ */
.nav-blocks .nav__btn { padding: 0 20px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.nav-blocks .nav__btn:hover { filter: brightness(1.12); }
.nav-blocks .nav__btn--tag, .nav-blocks .nav__btn--tag:hover { background: var(--tag); color: var(--on-tag); }
.nav-blocks .nav__btn--a, .nav-blocks .nav__btn--a:hover { background: var(--primary); color: var(--on-primary); }
.nav-blocks .nav__btn--b, .nav-blocks .nav__btn--b:hover { background: var(--accent); color: var(--on-accent); }
.nav-blocks .nav__btn--c, .nav-blocks .nav__btn--c:hover { background: var(--grey); color: #fff; }
.nav-blocks .nav__btn--d, .nav-blocks .nav__btn--d:hover { background: var(--ink); color: var(--on-ink); }
.nav-blocks .nav__bag { padding: 0 20px; }

.ribbon { font-size: 14px; padding: var(--s5) var(--gutter) 0; display: flex; justify-content: center; }
.ribbon__inner { background: var(--card); border-radius: 22px; padding: 10px 22px; display: flex; gap: 2px var(--s4); justify-content: center; flex-wrap: wrap; text-align: center; }
.ribbon__inner > span { white-space: nowrap; }
.ribbon__count { font-weight: 700; font-variant-numeric: tabular-nums; }
.ribbon--closed .ribbon__inner { background: #fff7e0; color: #5c4300; border-radius: var(--radius-s); }

/* ---------- Überschriften ---------- */
/* Umbrüche: Der farbige Titel bleibt als Einheit zusammen (er rutscht höchstens als Ganzes in die nächste Zeile);
   der Rest läuft normal weiter. „pretty“ vermeidet einzelne Wörter in der letzten Zeile. */
.headline { text-transform: var(--case); font-size: clamp(24px, 2.5vw, 32px); line-height: 1.14; font-weight: 700; letter-spacing: -.02em; text-wrap: pretty; }
.headline > span:first-child { color: var(--accent); display: inline-block; }
p, li, dd, small, figcaption { text-wrap: pretty; }
.headline__soft { color: var(--soft); }
.headline--center { text-align: center; font-size: clamp(30px, 3.6vw, 44px); }

.hero__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s5) var(--s8); align-items: end; padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.hero__title { text-transform: var(--case); font-size: clamp(34px, 4.8vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.hero__title > span:first-child { color: var(--accent); display: inline-block; }
.hero__side { color: var(--soft); display: grid; gap: var(--s4); padding-bottom: 10px; font-size: 16px; }
.hero__deadline { color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(0, 128, 0, .16); flex: none; }
.hero--image { background-size: cover; background-position: center; position: relative; color: #fff; }
.hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .7)); }
.hero--image .hero__inner { position: relative; padding-top: clamp(96px, 14vw, 180px); padding-bottom: var(--s8); }
.hero--image .hero__title > span, .hero--image .hero__side, .hero--image .hero__deadline { color: #fff; }
.hero--image .hero__title .headline__soft { color: rgba(255, 255, 255, .78); }

/* ---------- Schaltflächen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: var(--btn-radius); padding: 13px 26px; font-weight: 600; font-size: 17px; line-height: 1.2; text-align: center; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn--ghost:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.btn--small { padding: 8px 16px; font-size: 14px; }
.btn--wide { width: 100%; padding-block: 16px; }
.btn[disabled] { background: var(--grey); color: #fff; cursor: not-allowed; }
.btn + .btn { margin-left: var(--s2); }
.link { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-size: 15px; }
.link:hover { text-decoration: underline; }
.link--danger { color: var(--danger); }

/* ---------- Schnellwahl nach Kategorie ---------- */
.quick { display: flex; gap: var(--s7); padding-top: var(--s3); padding-bottom: var(--s3); overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick__item { display: grid; justify-items: center; gap: var(--s3); color: var(--ink); font-size: 14px; font-weight: 600; flex: none; width: 104px; text-align: center; }
.quick__item:hover { text-decoration: none; color: var(--primary); }
.quick__img { width: 96px; height: 96px; border-radius: 50%; background: var(--card); display: grid; place-items: center; overflow: hidden; transition: transform .25s ease; }
.quick__item:hover .quick__img { transform: scale(1.06); }
.quick__img img { width: 66%; height: 66%; object-fit: contain; }

/* ---------- Karten ----------
   Jede Karte hat drei Zeilen: Text, Bild, Preis. Über „subgrid“ teilen sich alle Karten einer Reihe
   dieselben Zeilenhöhen – Bilder und Preise stehen dadurch auf einer Linie, egal wie lang der Name ist. */
.tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; }
.tag--special { color: var(--accent); }
.tag--essential { color: var(--primary); }
.tag--none { color: var(--soft); }
.card { background: var(--card); border-radius: var(--radius); padding: var(--s6); color: var(--ink); display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--s5); transition: transform .3s ease, box-shadow .3s ease; min-width: 0; }
.card:hover { text-decoration: none; transform: scale(1.012); box-shadow: 0 12px 34px rgba(0, 0, 0, .09); }
.card__text { display: flex; flex-direction: column; gap: 6px; }
.card__name { font-size: 22px; font-weight: 700; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; }
.card__sub { color: var(--soft); font-size: 15px; line-height: 1.4; }
.card__img { display: block; align-self: end; }
.card__img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 34px; }
.card__price { font-size: 15px; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.card__price .price-old { margin-left: 0; font-size: 13px; }
.card--big { padding: 40px; }
.card--big .card__name { font-size: 28px; }

.shelf { padding-top: var(--section); }
.shelf__head { margin-bottom: var(--s7); }
.shelf__viewport { position: relative; }
.shelf__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(calc((var(--wrap) - 2 * var(--s5)) / 3), 80vw);   /* drei Karten füllen genau die Inhaltsbreite */ grid-template-rows: auto 1fr auto; column-gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px var(--edge-pad) 32px; scroll-padding-inline: var(--edge-pad); }
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track .card { scroll-snap-align: start; }
.paddle { position: absolute; top: calc(50% - 12px); translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 4px 18px rgba(0, 0, 0, .14); transition: opacity .2s, transform .15s; }
.paddle:hover { transform: scale(1.06); }
.paddle[disabled] { opacity: 0; pointer-events: none; }
.paddle--prev { left: calc(var(--edge-pad) - 26px); }
.paddle--next { right: calc(var(--edge-pad) - 26px); }

.catalog { padding-top: var(--section); }
.catalog > .headline + .grid { margin-top: var(--s7); }
.filters { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin: var(--s7) 0 var(--s6); }
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.chip { border: 0; color: var(--ink); background: var(--card); border-radius: 999px; height: 40px; padding: 0 18px; cursor: pointer; font-size: 15px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--edge); }
.chip.is-active { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.filters__tools { display: flex; gap: var(--s2); flex-wrap: wrap; }
.search input, .select select { height: 40px; border: 1px solid transparent; color: var(--ink); background: var(--card); border-radius: 999px; padding: 0 16px; font-size: 15px; min-width: 0; }
.search input { width: 190px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: auto; column-gap: var(--s5); row-gap: 0; }
.grid .card { margin-bottom: var(--s5); }
.empty { text-align: center; padding: var(--s8) 0; color: var(--soft); }
.empty h2 { color: var(--ink); }

/* ---------- Artikelseite ---------- */
.crumbs { padding-top: var(--s6); font-size: 14px; }
.buy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 88px); padding-top: var(--s5); align-items: start; }
.buy__gallery { position: sticky; top: calc(var(--nav-h) + 72px); }
.buy__stage { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 5vw, 64px); }
.buy__stage img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.buy__thumbs { display: flex; gap: var(--s3); margin-top: var(--s4); flex-wrap: wrap; }
.thumb { border: 2px solid transparent; background: var(--card); border-radius: var(--radius-s); padding: 6px; cursor: pointer; }
.thumb.is-active { border-color: var(--primary); }
.thumb img { width: 64px; height: 64px; object-fit: contain; }
.buy__config { display: grid; gap: var(--s3); }
.buy__title { text-transform: var(--case); font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; line-height: 1.07; letter-spacing: -.025em; margin-top: var(--s1); }
.buy__sub { font-size: 21px; line-height: 1.3; color: var(--soft); text-wrap: balance; }
.buy__price { font-size: 17px; margin-top: var(--s2); }
.opt { margin-top: 56px; }
.opt legend { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: var(--s4); line-height: 1.2; }
.opt__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.opt__tiles--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt__tiles--stack { grid-template-columns: 1fr; }
.tile { position: relative; cursor: pointer; display: block; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile__box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; min-height: 76px; padding: var(--s3) var(--s4); background: var(--bg); border-radius: var(--radius-s); box-shadow: inset 0 0 0 1px var(--edge); text-align: center; transition: box-shadow .12s; }
.tile--left .tile__box { align-items: flex-start; text-align: left; padding: 18px var(--s5); min-height: 84px; }
.tile:hover .tile__box { box-shadow: inset 0 0 0 1px var(--ink); }
.tile input:checked + .tile__box { box-shadow: inset 0 0 0 2px var(--primary); }
.tile input:focus-visible + .tile__box { outline: 3px solid var(--primary); outline-offset: 3px; }
.tile__label { font-weight: 600; font-size: 17px; }
.tile__delta { font-size: 13px; line-height: 1.35; color: var(--soft); text-wrap: balance; }
.info { background: var(--card); border-radius: var(--radius-s); padding: var(--s4) var(--s5); font-size: 15px; margin-top: var(--s3); }
.info summary { cursor: pointer; color: var(--primary); }
.info p { margin-top: var(--s2); color: var(--soft); }
.field { display: grid; gap: var(--s2); font-size: 15px; align-content: start; }
.field > span { font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--soft); }
.field input, .field textarea, .field select { width: 100%; padding: 15px var(--s4); border: 1px solid var(--edge); border-radius: var(--radius-s); background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.3; }
.field input { height: 56px; padding-block: 0; }
.field textarea { resize: vertical; }
.field small { color: var(--soft); line-height: 1.35; }
.field--error input { border-color: var(--danger); }
.error { color: var(--danger); font-size: 14px; }
.buy__box { margin-top: 56px; padding-top: var(--s6); border-top: 1px solid var(--line); display: grid; gap: var(--s5); }
.buy__row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); }
.qty { display: grid; gap: 6px; font-size: 14px; color: var(--soft); }
.qty select, .line__qty select { height: 44px; padding: 0 var(--s3); border: 1px solid var(--edge); border-radius: var(--radius-s); background: var(--bg); color: var(--ink); font-size: 17px; }
.qty select { width: 92px; }
.buy__total { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 44px; font-variant-numeric: tabular-nums; }
.buy__hint { color: var(--danger); font-size: 15px; text-align: center; }
.facts { display: grid; gap: var(--s3); font-size: 14px; line-height: 1.45; color: var(--soft); border-top: 1px solid var(--line); padding-top: var(--s5); }
.facts li { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: var(--s3); }
.facts b { color: var(--ink); font-weight: 600; }
.about { padding-top: var(--section); }
.about p { margin-top: var(--s5); font-size: 21px; line-height: 1.45; max-width: 46em; }

/* ---------- Warenkorb ---------- */
.bag, .order, .checkout, .prose { padding-top: clamp(48px, 6vw, 88px); }
.bag > p, .order > p { margin-top: var(--s4); }
.bag > p + p { margin-top: var(--s5); }
.bag__lines { margin-top: 72px; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 160px minmax(0, 1fr) 92px 132px; column-gap: var(--s6); padding: var(--s7) 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__img img { background: var(--card); border-radius: var(--radius-s); width: 160px; height: 160px; object-fit: contain; }
.line__main { display: grid; gap: 4px; }
.line__main h2 { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 4px; }
.line__main h2 a { color: var(--ink); }
.line__main p { font-size: 15px; }
.line__qty select { width: 92px; }
.line__sum { text-align: right; display: grid; gap: var(--s2); justify-items: end; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 44px; }
.line__sum form { line-height: 1.4; font-weight: 400; letter-spacing: 0; }
.bag__total { display: grid; gap: var(--s5); justify-items: end; padding: var(--s8) 0 0; }
.bag__total dl { display: grid; grid-template-columns: auto auto; gap: var(--s2) var(--s8); text-align: right; }
.bag__total dt { text-align: left; color: var(--soft); }
.big { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink) !important; padding-top: var(--s3); }

/* ---------- Kasse ---------- */
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s7) clamp(32px, 6vw, 88px); margin-top: var(--s7); align-items: start; }
.checkout__main { display: grid; gap: 56px; }
/* Abschnitte ohne Kasten: eine feine Linie und Weißraum trennen sie */
.panel { display: grid; gap: var(--s5); align-content: start; padding-top: 40px; border-top: 1px solid var(--line); }
.panel--box, .checkout__side, .pay { background: var(--card); border: 0; border-radius: var(--radius); padding: clamp(24px, 3.2vw, 40px); }
.panel legend { float: left; width: 100%; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.panel legend + * { clear: both; }
.panel h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); align-items: start; }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); flex: none; }
.checkout__side { position: sticky; top: calc(var(--nav-h) + 72px); }
.mini { display: grid; gap: var(--s4); }
.mini li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; font-size: 15px; line-height: 1.35; }
.mini img { width: 64px; height: 64px; object-fit: contain; }
.mini small { display: block; color: var(--soft); }
.mini b { white-space: nowrap; font-weight: 600; }
.sumline { display: flex; justify-content: space-between; font-size: 24px; font-weight: 700; letter-spacing: -.02em; border-top: 1px solid var(--line); padding-top: var(--s5); }

/* ---------- Bestellung ---------- */
.order { display: grid; gap: var(--s7); }
.order > p { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: var(--s4) 0; font-size: 13px; line-height: 1.3; text-align: center; color: var(--soft); }
.steps li { position: relative; padding: 30px 6px 0; }
.steps li span { position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--grey); z-index: 1; }
.steps li::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--grey); }
.steps li:first-child::before { display: none; }
.steps li.is-done { color: var(--ink); font-weight: 700; }
.steps li.is-done span, .steps li.is-done::before { background: var(--ok); }
.pay { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s6); align-items: start; }
.pay > div { display: grid; gap: var(--s4); justify-items: start; }
.pay__amount { font-size: 40px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.pay__qr { text-align: center; font-size: 13px; color: var(--soft); display: grid; gap: var(--s2); }
.pay__qr img { width: 180px; height: 180px; background: #fff; border-radius: 8px; }
.bank { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2) var(--s5); font-size: 16px; align-items: baseline; }
.bank dt { color: var(--soft); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 3px 8px; border-radius: 6px; }
code[data-copy] { cursor: copy; }
.badge { display: inline-block; padding: 5px 14px; border-radius: 99px; font-size: 14px; font-weight: 700; }
.badge--ok { background: #e2f3e2; color: #0a5c0a; }
.items { width: 100%; border-collapse: collapse; }
.items td { padding: var(--s4) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.items td:first-child { white-space: nowrap; width: 1%; padding-right: var(--s4); color: var(--soft); }
.items td + td + td { padding-left: var(--s4); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.items__total td { border: 0; padding-bottom: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.prose p { margin-top: var(--s5); max-width: 46em; }

/* ---------- Meldungen ---------- */
.flashes { padding-top: var(--s5); display: grid; gap: var(--s2); justify-items: start; }
.flash { padding: var(--s3) 18px; border-radius: var(--radius-s); background: #e2f3e2; color: #0a5c0a; display: inline-block; }
.flash--error { background: #fde3e8; color: #8f0024; }
.toast { position: fixed; top: calc(var(--nav-h) + 12px); right: var(--gutter); z-index: 60; width: min(400px, calc(100vw - 2 * var(--gutter))); background: var(--bg); border-radius: var(--radius); box-shadow: 0 14px 44px rgba(0, 0, 0, .2), 0 0 0 1px var(--line); padding: var(--s5); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s4); animation: drop .25s ease; }
.toast img { background: var(--card); border-radius: 10px; width: 72px; height: 72px; object-fit: contain; }
.toast__text { display: grid; font-size: 15px; line-height: 1.35; align-content: center; }
.toast__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.toast__actions .btn { margin: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Fußzeile ---------- */
.footer { margin-top: var(--section); padding: var(--s8) 0 var(--s7); font-size: 14px; line-height: 1.5; color: var(--soft); border-top: 1px solid var(--line); }
.footer h2 { font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s4); }
.footer__cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s6) var(--s8); }
.footer__cols p + p { margin-top: var(--s3); }
.footer__steps { counter-reset: s; display: grid; gap: var(--s3); }
.footer__steps li { counter-increment: s; padding-left: 36px; position: relative; }
.footer__steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.footer__steps strong { color: var(--ink); font-weight: 600; }
.footer__legal { border-top: 1px solid var(--line); margin-top: var(--s7); padding-top: var(--s5); font-size: 13px; }

/* ---------- Ohne „subgrid“ (sehr alte Browser): feste Texthöhe statt gemeinsamer Zeilen ---------- */
@supports not (grid-template-rows: subgrid) {
  .card { display: flex; flex-direction: column; gap: var(--s5); }
  .card__text { min-height: 6.2em; }
  .card__img { margin-top: auto; }
  .shelf__track { display: flex; gap: var(--s5); }
  .shelf__track .card { flex: 0 0 min(384px, 80vw); }
}

/* ---------- Mittlere und kleine Bildschirme ---------- */
@media (max-width: 960px) {
  .hero__inner, .buy, .checkout__grid, .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .hero__side { padding-bottom: 0; }
  .buy { row-gap: var(--s6); }
  .buy__gallery, .checkout__side { position: static; }
  .checkout__side { order: -1; }
  .nav__btn--a, .nav__btn--b, .nav__btn--c, .nav__btn--tag { display: none; }
  .paddle { display: none; }
  .line { grid-template-columns: 120px minmax(0, 1fr) 92px; column-gap: var(--s5); }
  .line__img img { width: 120px; height: 120px; }
  .line__sum { grid-column: 2 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: var(--s4); }
}
@media (max-width: 640px) {
  :root { --nav-h: 52px; }
  body { font-size: 16px; }
  .brand__text small { display: none; }
  .ribbon__inner > span { white-space: normal; }
  .headline > span:first-child, .hero__title > span:first-child { display: inline; }
  .hero__title { overflow-wrap: break-word; hyphens: auto; }
  .quick { gap: var(--s4); margin-inline: 0; width: 100%; padding-inline: var(--gutter); }
  .quick__item { width: 84px; font-size: 13px; }
  .quick__img { width: 72px; height: 72px; }
  .card--big { padding: var(--s5); }
  .card--big .card__name { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); }
  .grid .card { padding: var(--s4); row-gap: var(--s3); margin-bottom: var(--s3); }
  .grid .card__name { font-size: 17px; }
  .grid .card__sub, .grid .card__foot .btn { display: none; }
  .grid .card__foot { min-height: 0; }
  .filters__tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .opt { margin-top: var(--s6); }
  .buy__box { padding: var(--s5); margin-top: var(--s6); }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .line { grid-template-columns: 88px minmax(0, 1fr); column-gap: var(--s4); padding: var(--s6) 0; }
  .line__img img { width: 88px; height: 88px; }
  .line__main h2 { font-size: 19px; }
  .line__qty { grid-column: 2; margin-top: var(--s3); }
  .line__sum { grid-column: 1 / -1; font-size: 19px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .pay { grid-template-columns: minmax(0, 1fr); row-gap: var(--s5); }
  .pay__qr { justify-self: center; }
  .steps { font-size: 11px; }
  .bank { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bank dd { margin-bottom: var(--s3); }
  .btn + .btn { margin-left: 0; margin-top: var(--s2); }
  .toast__actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .toast, .paddle, .quick__img { transition: none; animation: none; }
}

/* ---------- Sonderpreis mit Countdown ---------- */
.price-sale { color: var(--danger); font-weight: 700; }
.price-old { color: var(--soft); text-decoration: line-through; margin-left: 4px; }
.deal { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 10%, var(--bg)); color: var(--danger); font-size: 13px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.buy__price .price-sale { font-size: 24px; letter-spacing: -.02em; }
.dealbox { display: grid; gap: 4px; margin-top: var(--s3); padding: var(--s4) var(--s5); border-radius: var(--radius-s); background: color-mix(in srgb, var(--danger) 8%, var(--bg)); font-size: 15px; line-height: 1.4; }
.dealbox strong { color: var(--danger); font-size: 17px; text-wrap: balance; }
.dealbox__count { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Dunkle Designs */
.is-dark .price-sale, .is-dark .deal, .is-dark .dealbox strong { color: #ff6b81; }

@media print {
  .nav, .ribbon, .footer, .btn, .link, .toast, form { display: none !important; }
  body { background: #fff; }
  .panel { border: 1px solid #ccc; break-inside: avoid; }
}
.checkout__main > .panel:first-child, .order > .panel:first-of-type:not(.pay) { border-top: 0; padding-top: 0; }
