:root {
  --red: #d8382f;
  --red-dark: #b42a23;
  --orange: #f0a22a;
  --purple: #8c2f9a;
  --ink: #1d1a1a;
  --muted: #6b6462;
  --line: #e6dfdb;
  --bg: #faf7f5;
  --card: #fff;
  --radius: 14px;
  --plate-font: "FE-Schrift", "Euro Plate", "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }
a { color: var(--red-dark); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
p { margin: 0 0 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }

/* Kopf */
.top { background: #fff; position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; gap: 16px; height: 76px; }
.brand img { height: 68px; width: auto; display: block; }
.top-note { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.cart-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); }
.cart-link:hover { border-color: var(--ink); }
.cart-link b { background: var(--red); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: .8rem; padding: 0 6px; }
.brand-bar { height: 4px; background: linear-gradient(90deg, var(--red) 0 45%, var(--orange) 70%, var(--purple)); }
.banner { background: #fff4d6; border-bottom: 1px solid #ecd9a0; padding: 8px 16px; text-align: center; font-size: .9rem; }

/* Karten & Raster */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.shop-grid, .two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.buy, .summary { position: sticky; top: 100px; }
.step { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.hint { color: var(--muted); margin-bottom: 16px; }

/* ---------- Kennzeichen ---------- */
.plate-stage { container-type: inline-size; width: 100%; max-width: 620px; margin: 0 auto; display: flex; justify-content: center; padding: 10px 0; }
.plate {
  --mm: 520;
  --u: calc(100cqw / 520);            /* 1 mm des Schilds */
  width: calc(var(--mm) * var(--u)); height: calc(110 * var(--u));
  background: linear-gradient(#fff, #f3f3f1);
  border: calc(3.5 * var(--u)) solid #141414; border-radius: calc(9 * var(--u));
  display: flex; overflow: hidden;
  box-shadow: 0 calc(3 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .22);
  transition: width .25s ease;
}
.plate-eu { width: calc(44 * var(--u)); background: #003399; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(9 * var(--u)) 0 calc(6 * var(--u)); flex: none; }
.plate-eu svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.plate-eu span { font: 600 calc(30 * var(--u))/1 var(--plate-font); }
.plate-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: calc(5 * var(--u)); padding: 0 calc(8 * var(--u)); }
.seals { display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--u)); flex: none; }
.seals i { display: block; border-radius: 50%; background: #c9c9c9; width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.seals i + i { width: calc(40 * var(--u)); height: calc(40 * var(--u)); background: #a9a9a9; }
.pf {
  flex: 2 1 0; min-width: 0; width: 100%; height: 100%;
  border: 0; outline: 0; background: transparent; padding: 0; margin: 0; border-radius: calc(4 * var(--u));
  font: 600 calc(var(--fs, 84) * var(--u))/1 var(--plate-font); font-stretch: 78%; overflow: hidden; white-space: nowrap; letter-spacing: calc(1 * var(--u));
  color: #141414; text-align: center; text-transform: uppercase; caret-color: var(--red);
}
input.pf:hover { background: rgba(0, 0, 0, .04); }
input.pf:focus { background: rgba(216, 56, 47, .08); box-shadow: inset 0 calc(-3 * var(--u)) 0 var(--red); }
.pf::placeholder { color: #cfcfcf; -webkit-text-fill-color: #cfcfcf; opacity: 1; }
span.pf { display: flex; align-items: center; justify-content: center; }
span.pf.ph { flex: 0 0 auto; width: auto; min-width: 0; padding: 0 calc(1 * var(--u)); }
.pf[hidden], .season[hidden] { display: none; }
.season { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: center; width: calc(34 * var(--u)); border-left: calc(1.5 * var(--u)) solid #141414; padding: 0 calc(4 * var(--u)); }
.season b { font: 600 calc(36 * var(--u))/1 var(--plate-font); font-stretch: 78%; padding: calc(3 * var(--u)) 0; }
.season b + b { border-top: calc(2 * var(--u)) solid #141414; }
.plate.carbon .season b { color: #2a2a2a; }
.season-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.season-pick label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
.season-pick select { font: inherit; color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.season-pick select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Carbon-Optik: Zeichen mit Gewebemuster */
.plate.carbon .pf {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.20) 0 calc(1.6 * var(--u)), transparent calc(1.6 * var(--u)) calc(3.2 * var(--u))),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.12) 0 calc(1.6 * var(--u)), transparent calc(1.6 * var(--u)) calc(3.2 * var(--u))),
    linear-gradient(#2c2c2e, #0c0c0d);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.plate.carbon input.pf:focus { box-shadow: inset 0 calc(-3 * var(--u)) 0 var(--red); }

.plate-meta { text-align: center; color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.error { color: #b3261e; font-weight: 600; margin: 10px 0 0; }
p.error { text-align: center; }
.summary p.error { text-align: left; }

/* Auswahlfelder */
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
fieldset:last-child { margin-bottom: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.options.two { grid-template-columns: repeat(2, 1fr); }
.options.stack { grid-template-columns: 1fr; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt > span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; height: 100%; background: #fff; }
.opt small { color: var(--muted); }
.opt em { font-style: normal; font-weight: 700; margin-left: auto; white-space: nowrap; }
.opt.row > span { flex-direction: row; align-items: center; gap: 12px; }
.opt.row > span > span { display: flex; flex-direction: column; }
.opt:hover > span { border-color: #b9aeaa; }
.opt input:checked + span { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #fff8f7; }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Kaufbox */
.price { font-size: 2.4rem; font-weight: 800; line-height: 1; margin: 18px 0 6px; }
.price-note { color: var(--muted); font-size: .88rem; }
.qty-label { display: block; font-weight: 600; margin: 16px 0 6px; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: #f4eeeb; }
.qty input { width: 54px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-total { display: flex; justify-content: space-between; margin: 16px 0 12px; }
.btn { display: block; width: 100%; text-align: center; background: var(--red); color: #fff; border: 0; border-radius: 12px; padding: 14px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--red-dark); }
.btn:disabled { background: #d9cfcb; color: #fff; cursor: not-allowed; }
.link { display: block; text-align: center; margin-top: 12px; font-size: .92rem; }
.facts { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.facts li { display: flex; justify-content: space-between; padding: 3px 0; }
.facts span { color: var(--ink); font-weight: 600; }

/* Warenkorb */
.cart-item { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.cart-item .plate-stage { padding: 0; }
.cart-item h3 { margin: 0 0 2px; font-size: 1.05rem; }
.cart-item small { color: var(--muted); display: block; }
.cart-item .right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-item .qty button { width: 36px; height: 36px; }
.cart-item .qty input { width: 42px; }
.remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 0; }
.empty { text-align: center; padding: 48px 22px; }
.empty .btn { display: inline-block; width: auto; }

/* Übersicht */
dl { margin: 0 0 12px; }
dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
dd { margin: 0; font-weight: 600; white-space: nowrap; }
dl .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; font-weight: 800; }
dl .total dd { font-weight: 800; }
dl .vat { color: var(--muted); font-size: .85rem; }
dl .vat dd { font-weight: 400; }
.mini { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.mini small { display: block; color: var(--muted); }
#checkout-items { margin-bottom: 10px; }

/* Formular */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fields label { grid-column: span 2; font-weight: 600; font-size: .92rem; display: flex; flex-direction: column; gap: 4px; }
.fields .full { grid-column: 1 / -1; }
.fields .wide { grid-column: span 3; }
.fields .narrow { grid-column: span 1; }
.fields small { font-weight: 400; color: var(--muted); }
.fields input, .fields textarea { font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; min-width: 0; }
.fields input:focus, .fields textarea:focus { outline: 0; border-color: var(--red); }
.fields .bad input { border-color: #b3261e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 14px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }

/* Bestellstatus */
.order-status { max-width: 640px; margin: 24px auto; text-align: center; padding: 36px 24px; }
.order-status .badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; margin-bottom: 14px; background: #e6f4ea; color: #17602c; }
.order-status .badge.wait { background: #fff4d6; color: #7a5a00; }
.order-status .badge.bad { background: #fde7e5; color: #b3261e; }
.order-status .btn { display: inline-block; width: auto; margin-top: 10px; }
.order-status .mini { text-align: left; }

/* Fuß */
.foot { border-top: 1px solid var(--line); background: #fff; font-size: .9rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 20; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast a { color: #fff; font-weight: 700; white-space: nowrap; }

.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; }
.legal .todo { background: #fff4d6; border: 1px solid #ecd9a0; border-radius: 10px; padding: 12px 14px; }

@media (max-width: 860px) {
  .shop-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .buy, .summary { position: static; }
  .cart-item { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-item .plate-stage { grid-column: 1 / -1; max-width: 260px; margin: 0; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .top-note, .cart-link span { display: none; }
  .brand img { height: 50px; }
  .top-inner { justify-content: space-between; height: 66px; }
  .card { padding: 16px; }
  .options { grid-template-columns: 1fr; }
  .options.two { grid-template-columns: 1fr 1fr; }
  .fields label, .fields .wide { grid-column: 1 / -1; }
  .fields .narrow { grid-column: span 2; }
  h1 { font-size: 1.4rem; }
}

/* Infobereich unter dem Konfigurator */
.info { margin-top: 40px; }
.section-title { font-size: 1.4rem; margin-bottom: 16px; }
.how { list-style: none; counter-reset: how; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how li { counter-increment: how; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.how li::before { content: counter(how); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--red), var(--orange)); margin-bottom: 6px; }
.how span { color: var(--muted); }
.price-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin-bottom: 10px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:nth-child(n+3) { font-weight: 700; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: #3c3634; }

/* Fortschritt auf der Bestellseite */
.progress { list-style: none; padding: 0; margin: 20px 0; display: flex; gap: 0; counter-reset: p; }
.progress li { flex: 1; position: relative; padding-top: 34px; font-size: .85rem; color: var(--muted); counter-increment: p; }
.progress li::before { content: counter(p); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #e6dfdb; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; z-index: 1; }
.progress li + li::after { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 3px; background: #e6dfdb; }
.progress li.done { color: var(--ink); font-weight: 600; }
.progress li.done::before { content: "✓"; background: #2e7d32; }
.progress li.done::after { background: #2e7d32; }

@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* Rechtsseite */
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; position: sticky; top: 80px; background: var(--bg); padding: 8px 0; z-index: 5; }
.legal-toc a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-size: .9rem; }
.legal-toc a:hover { border-color: var(--ink); }
.legal section { scroll-margin-top: 140px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 32px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal h4 { font-size: .98rem; margin: 18px 0 6px; }
.legal p, .legal li { color: #3c3634; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }

/* ---------- Startseite ---------- */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 8px; }
.hero p { color: var(--muted); max-width: 640px; margin: 0; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0 10px; }
.product { display: flex; flex-direction: column; margin: 0; }
.product-plate { display: block; text-decoration: none; color: inherit; background: #eef1f4; border-radius: 12px; padding: 22px 16px; margin-bottom: 14px; }
.product-plate .plate-stage { padding: 0; }
.product h3 { font-size: 1.1rem; margin: 0 0 6px; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product-price { font-size: 1.4rem; font-weight: 800; margin: 4px 0 0; }
.product .price-note { margin: 0 0 16px; }
.product .btn { margin-top: auto; text-align: center; text-decoration: none; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); margin: 18px 0 14px; }
.crumbs a { color: var(--muted); }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } .product-plate { padding: 18px 12px; } }
.group-title { font-size: 1.3rem; margin: 26px 0 0; }
.products { margin-top: 12px; }
.product-plate { display: flex; align-items: center; justify-content: center; min-height: 110px; }
.product-plate .plate-stage { width: 100%; }

/* ---------- Motorradkennzeichen (zweizeilig, 180 × 200 mm) ----------
   oben Ortskürzel, in der Mitte neben dem „D“ die Plaketten (klein, groß) und rechts die Saison, unten Buchstaben und Ziffern */
.plate.moto { --u: calc(100cqw / 330); height: calc(200 * var(--u)); flex-direction: column; position: relative; }
.plate-stage:has(.plate.moto) { max-width: 420px; }
.plate.moto .plate-eu { position: absolute; left: 0; top: 0; height: calc(124 * var(--u)); width: calc(34 * var(--u)); padding: calc(8 * var(--u)) 0 calc(6 * var(--u)); }
.plate.moto .plate-eu svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.plate.moto .plate-eu span { font-size: calc(24 * var(--u)); }
.moto-top, .moto-mid, .moto-bottom { display: flex; align-items: center; gap: calc(4 * var(--u)); min-height: 0; padding: 0 calc(6 * var(--u)); }
.moto-top { flex: 0 0 calc(82 * var(--u)); padding-left: calc(40 * var(--u)); }
.moto-mid { flex: 0 0 calc(40 * var(--u)); padding-left: calc(40 * var(--u)); }
.moto-bottom { flex: 1 1 0; }
.plate.moto .seals { flex-direction: row; align-items: center; gap: calc(5 * var(--u)); }
.plate.moto .seals i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.plate.moto .seals i + i { width: calc(34 * var(--u)); height: calc(34 * var(--u)); }
.plate.moto .season { position: absolute; right: calc(6 * var(--u)); top: calc(102 * var(--u)); transform: translateY(-50%); border-left: 0; width: calc(28 * var(--u)); padding: 0; }
.plate.moto .season b { font-size: calc(26 * var(--u)); padding: calc(2 * var(--u)) 0; }
.plate.moto.saison .moto-top, .plate.moto.saison .moto-bottom { padding-right: calc(36 * var(--u)); }
