/* Modest Digital – Look: bedrucktes Papier, flache Farbblöcke, Rasterdruck, technische Mikro-Typografie */
:root {
  --paper: #cdc9c0;
  --paper-2: #dedad2;
  --ink: #0e0e0e;
  --ink-soft: #3b3a37;
  --olive: #7f8a55;
  --orange: #e0662a;
  --cobalt: #2b3a8c;
  --crimson: #d8212c;
  --khaki: #8a7a56;
  --plum: #7d5a8c;
  --sans: "Helvetica Neue", Helvetica, "Arial Nova", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(18px, 4vw, 56px);
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }

#backdrop { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.no-webgl #backdrop { display: none; }
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .34; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Mikro-Typografie ---------- */
.micro, .strip, nav a, .cart-link, .label, .spec, .btn, .chip, .foot-grid, .field label, .flabel {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
}
.barcode {
  display: inline-block; width: 92px; height: 20px; flex: none;
  background:
    repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px, currentColor 5px 6px, transparent 6px 9px, currentColor 9px 12px, transparent 12px 14px, currentColor 14px 15px, transparent 15px 19px);
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(6px); border-bottom: 1.5px solid var(--ink); }
.strip { display: flex; gap: clamp(12px, 3vw, 36px); align-items: center; padding: 6px var(--pad); border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); font-size: 10px; }
.strip .barcode { margin-left: auto; height: 12px; }
.langs { margin-left: auto; display: inline-flex; gap: 2px; }
.langs button { background: none; border: 1px solid transparent; border-radius: 999px; padding: 3px 8px; min-width: 30px; min-height: 24px; cursor: pointer; font: inherit; letter-spacing: inherit; }
.langs button:hover { border-color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper-2); }
.bar { display: flex; align-items: center; gap: 24px; padding: 12px var(--pad); }
.wordmark { display: inline-block; padding: 5px 0; font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.05em; text-decoration: none; line-height: 1; white-space: nowrap; }
.wordmark sup { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 0; margin-left: 4px; vertical-align: top; }
.bar nav { display: flex; gap: clamp(12px, 2.4vw, 30px); margin-left: auto; }
.bar nav a, .cart-link { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.bar nav a:hover, .bar nav a[aria-current="page"] { border-color: var(--ink); }
.cart-link { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.cart-link:hover, .cart-link[aria-current="page"] { background: var(--ink); color: var(--paper); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 700; padding: 0 5px; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; min-height: 100vh; outline: none; }
.wrap { padding-inline: var(--pad); max-width: 1440px; margin-inline: auto; }
section { padding-block: clamp(44px, 6vw, 84px); }
.display { font-weight: 800; letter-spacing: -.055em; line-height: .9; text-transform: lowercase; text-wrap: balance; }
h1.display { font-size: clamp(46px, 9.2vw, 148px); }
.hero h1.display { font-size: clamp(44px, 7.6vw, 122px); }
h2.display { font-size: clamp(36px, 6vw, 88px); }
h3.display { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.045em; line-height: .95; }
.lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; max-width: 34em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); border-top: 1.5px solid var(--ink); padding-top: 14px; }
.section-head .label { display: flex; gap: 18px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper-2); text-decoration: none; font-weight: 600;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--orange); color: var(--ink); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper-2); }
.btn.small { padding: 9px 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; background: transparent; color: var(--ink); }
.btn.in-cart { background: var(--olive); border-color: var(--olive); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 96px); display: grid; align-content: space-between; gap: 40px; padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 48px); }
.hero .eyebrow { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 26px); margin-bottom: 18px; }
.hero h1 { max-width: 7.6em; }
.hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.03em; color: var(--crimson); font-size: .9em; white-space: nowrap; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 30em) 1fr; gap: 32px; align-items: end; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.spec { display: grid; grid-template-columns: auto auto; gap: 2px 18px; justify-content: end; font-size: 10.5px; }
.spec dt { opacity: .78; } .spec dd { margin: 0; }
.spec.left { justify-content: start; }

.marquee { background: var(--ink); color: var(--paper-2); overflow: hidden; padding: 14px 0; border-block: 1.5px solid var(--ink); position: relative; z-index: 2; }
.marquee div { display: inline-flex; gap: 36px; white-space: nowrap; animation: slide 36s linear infinite; font-weight: 800; letter-spacing: -.04em; font-size: clamp(22px, 3vw, 38px); text-transform: lowercase; }
.marquee i { font-family: var(--serif); font-weight: 400; color: var(--orange); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Produktkarten ---------- */
.card.is-line .vname { font-size: clamp(24px, 2.5vw, 34px); max-width: 92%; }
.product h1.long { font-size: clamp(38px, 5vw, 76px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.card { display: flex; flex-direction: column; text-decoration: none; }
.panel {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--r); overflow: hidden;
  background: var(--panel, var(--paper-2)); color: var(--panel-ink, var(--ink));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel canvas.grab { cursor: grab; touch-action: pan-y; } .panel canvas.grabbing { cursor: grabbing; }
.panel canvas.no-gl { display: none; }
.panel canvas:focus-visible { outline-offset: -5px; outline-color: currentColor; }
/* Ersatzmotiv, wenn 3D nicht verfügbar ist (kein WebGL oder Bibliothek nicht geladen) */
.no-webgl .panel::before, .panel.no-gl::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1.5px currentColor, 0 0 0 26px transparent, 0 0 0 27.5px currentColor;
}
.panel .corner { position: absolute; display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.panel .tl { top: 14px; left: 16px; } .panel .tr { top: 14px; right: 16px; }
.panel .bl { bottom: 14px; left: 16px; } .panel .br { bottom: 14px; right: 16px; }
.panel .barcode { width: 64px; height: 16px; }
.panel .vname { position: absolute; left: 14px; bottom: 44px; font-weight: 800; font-size: clamp(30px, 4vw, 54px); letter-spacing: -.055em; line-height: .85; text-transform: lowercase; pointer-events: none; max-width: 70%; paint-order: stroke fill; -webkit-text-stroke: 7px var(--panel, var(--paper-2)); }
.stamp { border: 1.5px solid currentColor; border-radius: 999px; padding: 3px 9px; }
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 4px 0; align-items: start; }
.card-body .card-title { font-size: 24px; font-weight: 800; letter-spacing: -.04em; text-transform: lowercase; line-height: 1; }
.card-body .tag { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.3; color: var(--ink-soft); min-height: 2.6em; }
.price { font-family: var(--mono); font-size: 13px; white-space: nowrap; text-align: right; }
.price small { display: block; font-size: 10px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.card-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper-2); }

/* ---------- Blöcke ---------- */
.block { border-radius: var(--r); padding: clamp(24px, 4vw, 56px); position: relative; }
.block.olive { background: var(--olive); } .block.cobalt { background: var(--cobalt); color: var(--paper-2); }
.block.black { background: var(--ink); color: var(--paper-2); } .block.light { background: var(--paper-2); }
.block.orange { background: var(--orange); }
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0; border-top: 1.5px solid currentColor; }
.cap { padding: 22px 22px 26px 0; border-bottom: 1.5px solid currentColor; }
.cap .no { font-family: var(--mono); font-size: 11px; }
.cap h3 { font-size: 26px; font-weight: 800; letter-spacing: -.045em; line-height: 1; margin: 34px 0 12px; text-transform: lowercase; }
.cap p { font-size: 15.5px; max-width: 26em; }

.playground { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: stretch; }
.playground .panel { aspect-ratio: auto; min-height: 440px; }
.controls { display: grid; gap: 20px; align-content: center; }
.field { display: grid; gap: 8px; }
.field label { display: flex; justify-content: space-between; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--ink); margin-top: -11px; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--ink); }
.swatches { display: flex; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); cursor: pointer; background: var(--c); padding: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(14px, 2vw, 28px); counter-reset: s; }
.step { counter-increment: s; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.step::before { content: "0" counter(s); font-family: var(--mono); font-size: 11px; }
.step h3 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.05em; text-transform: lowercase; line-height: 1; margin: 26px 0 10px; }
.step p { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; }

.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.input, .inline-form input, textarea, select {
  background: transparent; border: 1.5px solid currentColor; border-radius: 999px; padding: 13px 18px; min-width: 0; width: 100%;
}
textarea { border-radius: 18px; min-height: 150px; resize: vertical; }
.block.cobalt .btn, .block.black .btn { background: var(--paper-2); color: var(--ink); border-color: var(--paper-2); }
.block.cobalt .btn:hover, .block.black .btn:hover { background: var(--orange); border-color: var(--orange); }
::placeholder { color: currentColor; opacity: .75; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done { padding: 6px 0; }
.block.done { padding: clamp(24px, 4vw, 56px); }
.note a { display: inline-block; padding: 6px 0; text-underline-offset: 2px; }
.note { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; opacity: .8; margin-top: 12px; }

/* ---------- Produktseite ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(24px, 4vw, 48px); }
.product .panel { aspect-ratio: 1 / 1.05; position: sticky; top: 120px; }
.product h1 { font-size: clamp(48px, 7.4vw, 116px); }
.product .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; margin: 18px 0 24px; }
.buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-block: 1.5px solid var(--ink); padding: 18px 0; margin: 28px 0; }
.buy .price { font-size: 22px; text-align: left; margin-right: auto; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0 12px 30px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); position: relative; }
.list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 11px; height: 11px; border-radius: 50%; background: var(--spot, var(--orange)); border: 1.5px solid var(--ink); }
.table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.table th, .table td { text-align: left; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); font-weight: 400; vertical-align: top; }
.table th { text-transform: uppercase; letter-spacing: .06em; opacity: .8; width: 38%; }
.sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; margin: 36px 0 6px; }
.back { display: inline-block; margin-bottom: 12px; padding: 6px 0; }

/* ---------- About ---------- */
.about-hero { min-height: 62vh; display: grid; align-content: end; padding: clamp(40px, 7vw, 100px) 0 clamp(28px, 4vw, 56px); }
.about-hero h1 { max-width: 8em; font-size: clamp(44px, 7.6vw, 122px); }
.cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 80px); }
.prose p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; margin-bottom: 1em; max-width: 32em; }
.prose p:first-child::first-letter { font-family: var(--serif); font-size: 3.4em; float: left; line-height: .8; padding: 6px 10px 0 0; color: var(--crimson); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.value { border-radius: var(--r); padding: 22px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; }
.value:nth-child(1) { background: var(--orange); } .value:nth-child(2) { background: var(--olive); }
.value:nth-child(3) { background: var(--cobalt); color: var(--paper-2); } .value:nth-child(4) { background: var(--ink); color: var(--paper-2); }
.value h3 { font-size: 30px; font-weight: 800; letter-spacing: -.05em; line-height: .95; text-transform: lowercase; }
.value p { font-size: 15.5px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.fact b { display: block; font-size: clamp(54px, 7vw, 104px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.seal { width: 150px; height: 150px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Warenkorb & Formulare ---------- */
.page-head { padding: clamp(36px, 6vw, 80px) 0 clamp(20px, 3vw, 36px); }
.cart { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.line > div { min-width: 0; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1.5px solid var(--ink); }
.line:first-child { border-top: 1.5px solid var(--ink); }
.line .thumb { width: 76px; height: 76px; border-radius: 14px; background: var(--panel); display: grid; place-items: center; }
.line .thumb i { width: 30px; height: 30px; border-radius: 50%; background: var(--spot); border: 1.5px solid var(--panel-ink); }
.line .line-title { font-size: 22px; font-weight: 800; letter-spacing: -.04em; text-transform: lowercase; }
.line .right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.linkbtn { background: none; border: 0; padding: 6px 0; min-height: 26px; cursor: pointer; text-decoration: underline; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.summary { position: sticky; top: 120px; display: grid; gap: 14px; }
.sumrow { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; }
.sumrow.total { font-size: 20px; border-top: 1.5px solid currentColor; padding-top: 14px; font-weight: 700; }
.form { display: grid; gap: 16px; max-width: 620px; }
.empty { padding: 48px 0; }
.legal h2 { font-size: 30px; font-weight: 800; letter-spacing: -.045em; text-transform: lowercase; margin: 44px 0 12px; }
.legal p { max-width: 44em; margin-bottom: 12px; }
.todo { background: var(--orange); padding: 1px 6px; font-family: var(--mono); font-size: .85em; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--ink); color: var(--paper-2); padding: clamp(36px, 6vw, 80px) var(--pad) 28px; margin-top: clamp(40px, 6vw, 90px); }
.foot-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid color-mix(in srgb, var(--paper-2) 35%, transparent); padding-bottom: 28px; }
.foot-mark { font-weight: 800; font-size: clamp(54px, 13vw, 210px); letter-spacing: -.065em; line-height: .8; }
.foot-claim { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.25; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) 2fr; gap: 28px; padding-top: 28px; }
.foot-grid h2 { font-size: inherit; font-weight: 400; opacity: .7; margin-bottom: 10px; }
.foot-grid a { display: block; text-decoration: none; padding: 4px 0; }
.foot-grid a:hover { color: var(--orange); }
.foot-meta { text-align: right; display: grid; gap: 12px; justify-items: end; align-content: start; text-transform: none; letter-spacing: .02em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); opacity: 0; visibility: hidden; background: var(--ink); color: var(--paper-2); padding: 13px 20px; border-radius: 999px; z-index: 60; font-family: var(--mono); font-size: 12px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.noscript { padding: 40px; position: relative; z-index: 2; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-foot, .playground, .cta, .product, .cols, .cart { grid-template-columns: 1fr; }
  .product .panel, .summary { position: relative; top: 0; }
  .spec { justify-content: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-meta { text-align: left; justify-items: start; grid-column: 1 / -1; }
}
/* Schmales Hochformat: das 3D-Objekt sitzt oben, der Text beginnt darunter (gleiche Schwelle wie in three-kit.js) */
@media (max-width: 900px) and (max-aspect-ratio: 6/5) {
  .hero { min-height: auto; padding-top: min(48vw, 34vh); }
  .hero h1 { max-width: none; }
}
@media (max-width: 640px) {
  .hide-s { display: none; }
  .bar { flex-wrap: wrap; gap: 10px 16px; }
  .bar nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .cart-link { margin-left: auto; }
}
/* Niedrige Fenster (Handy quer): kleinere Titel, damit der Einstieg auf einen Blick passt */
@media (max-height: 520px) and (min-aspect-ratio: 6/5) {
  .hero h1.display, .about-hero h1 { font-size: clamp(32px, 11vh, 64px); }
  .hero { min-height: auto; }
  .about-hero { min-height: auto; }
}
@media (max-width: 480px) {
  .line { grid-template-columns: 56px minmax(0, 1fr); }
  .line .thumb { width: 56px; height: 56px; }
  .line .right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .line .right .price { text-align: left; }
  .display { hyphens: auto; overflow-wrap: anywhere; }
  h2.display { font-size: clamp(28px, 9vw, 36px); }
  .block { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee div, .seal { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel, .btn { transition: none; }
}

@media print {
  #backdrop, .grain, .marquee, .toast, .langs, .skip, canvas { display: none !important; }
  body { background: #fff; } .site-header { position: static; } .reveal { opacity: 1; transform: none; }
  .panel { aspect-ratio: auto; min-height: 120px; }
}
@media (forced-colors: active) {
  .btn, .chip, .cart-link, .panel, .block, .value { border: 1px solid CanvasText; }
  .barcode { forced-color-adjust: none; }
}
