/*!
 * KNETE – Designkonzept von heygregor (fiktive Nudelmanufaktur)
 * Designsystem „Big Type": Wortbild, Farbpaar aus einer Familie, freigestellte Objekte.
 * Seiten werden mit tools/knete/build.py erzeugt.
 */
@font-face { font-family: "Anton"; src: url("../fonts/konzepte/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/konzepte/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/konzepte/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/konzepte/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Designsystem Big Type – Layoutidee: pro Sektion ein Wortbild, das die Breite füllt
   oder anschneidet; darunter wenig, kleiner Text. Farbe immer als Paar aus einer Familie. */
:root {
  color-scheme: light;

  /* Schrift */
  --font-display: "Anton", "Haettenschweiler", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Neutral */
  --paper: #FFF8F3;

  /* Standard-Farbpaar (Tomate) */
  --surface: #F8B5BF;
  --ink: #CE1228;
  --deep: #4A0610;

  /* Skala */
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .75rem;
  --fs-lead: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  --fs-display-m: clamp(3rem, 1.2rem + 8vw, 7.5rem);
  --lh-display: .92;

  /* Raum */
  --page-x: clamp(20px, 4.5vw, 72px);
  --section-y: clamp(72px, 10vw, 160px);
  --gap: clamp(16px, 2.2vw, 32px);

  /* Form und Bewegung */
  --radius: 999px;
  --line: 2px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Farbpaare: heller Ton = Fläche, satter Ton = Wortbild, tiefer Ton = Fließtext */
.pair-tomate    { --surface: #F8B5BF; --ink: #CE1228; --deep: #4A0610; }
.pair-basilikum { --surface: #B7E3B0; --ink: #0E7A3E; --deep: #06361B; }
.pair-safran    { --surface: #FFD66B; --ink: #C93A06; --deep: #4A1D00; }
.pair-tinte     { --surface: #B4C3FA; --ink: #2338D8; --deep: #0B1456; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--deep);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ol { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 4px; }

/* Sektion: trägt ihr Farbpaar selbst */
.section {
  background: var(--surface);
  color: var(--deep);
  overflow-x: clip;
  position: relative;
}
.section.invert { background: var(--ink); color: var(--paper); }
.section.invert :focus-visible { outline-color: var(--paper); }
.wrap { padding-inline: var(--page-x); max-width: 1440px; margin-inline: auto; }

/* Wortbild */
.poster {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: var(--lh-display);
  letter-spacing: -.005em;
  color: var(--ink);
  user-select: none;
}
.invert .poster { color: var(--surface); }
.poster .line {
  display: flex;
  justify-content: center;
  white-space: nowrap;
  /* Rückfall ohne Skript: Breite geteilt durch Zeichenzahl mal mittlere Zeichenbreite */
  font-size: calc(100vw / (var(--n) * .47));
}
.poster .line > span { display: block; flex: none; will-change: transform; }
/* Hero: mobil zwei Zeilen, ab 900 px eine Zeile, damit Text und Button im ersten Bildschirm bleiben */
.poster .line.only-l { display: none; }
@media (min-width: 900px) {
  .poster .line.only-s { display: none; }
  .poster .line.only-l { display: flex; }
}

.display-m {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--fs-display-m);
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
.invert .display-m { color: var(--surface); }

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lead { font-size: var(--fs-lead); line-height: 1.3; font-weight: 500; max-width: 26ch; text-wrap: balance; }
.copy { max-width: 46ch; text-wrap: pretty; }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn:hover { background: var(--deep); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.invert .btn { background: var(--paper); color: var(--ink); }
.invert .btn:hover { background: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 var(--line) var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* Kopf */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
  padding-block: 20px;
}
.wordmark {
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1; letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
}
.nav-links { display: none; gap: 32px; font-weight: 500; }
.nav-links a { text-decoration: none; padding-block: 8px; border-bottom: var(--line) solid transparent; transition: border-color .2s; }
.nav-links a:hover { border-color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* Hero */
.hero .poster { padding-top: clamp(8px, 2vw, 32px); }
.hero-foot {
  display: grid; gap: var(--gap);
  padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 88px);
}
.hero-foot .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 760px) {
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; }
}

/* Laufband */
.marquee { background: var(--ink); color: var(--surface); overflow: hidden; padding-block: 14px; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1; letter-spacing: .02em;
  padding-inline: .7em; white-space: nowrap;
}
.marquee-track span::after { content: "●"; font-size: .45em; vertical-align: middle; margin-left: 1.4em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Manifest */
.manifest { padding-block: var(--section-y); }
.manifest-grid { display: grid; gap: clamp(32px, 5vw, 80px); }
.manifest-text { display: grid; gap: 20px; align-content: start; }
@media (min-width: 900px) { .manifest-grid { grid-template-columns: 1.15fr 1fr; align-items: end; } }
.facts {
  display: grid; gap: 0; margin-top: clamp(48px, 7vw, 104px);
  border-top: var(--line) solid var(--ink);
}
.fact { display: grid; gap: 6px; padding-block: 20px; border-bottom: var(--line) solid var(--ink); }
.fact dt { font-family: var(--font-display); font-size: clamp(3.5rem, 2rem + 6vw, 6.5rem); line-height: .95; color: var(--ink); text-transform: uppercase; }
.fact dd { max-width: 30ch; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); border-bottom: var(--line) solid var(--ink); }
  .fact { border-bottom: 0; padding: 24px 24px 28px 0; }
  .fact + .fact { border-left: var(--line) solid var(--ink); padding-left: 24px; }
}

/* Sorten */
.sorten-head { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; }
.sorte { padding-block: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 72px); }
.sorte-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; justify-content: start; }
.sorte-meta dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.sorte-meta dd { font-weight: 600; font-size: 1.125rem; }
.sorte-meta small { display: block; font-size: var(--fs-small); font-weight: 400; }


/* Spaß-Ebene: 3D-Nudeln, Sternchen, Packungen. Liegt über dem Wortbild, nie über Fließtext. */
.stage { position: relative; }
.float { position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 2; pointer-events: none; will-change: transform; }
.float img {
  display: block; width: 100%; height: auto;
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 .9vw 1vw color-mix(in srgb, var(--deep) 28%, transparent));
  animation: bob var(--d, 7s) ease-in-out infinite alternate;
}
@keyframes bob {
  from { translate: 0 -8px; rotate: calc(var(--r, 0deg) - 5deg); }
  to   { translate: 0 10px; rotate: calc(var(--r, 0deg) + 5deg); }
}
.spark { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; z-index: 2; fill: var(--deep); pointer-events: none; animation: twinkle 2.6s ease-in-out var(--delay, 0s) infinite alternate; }
.invert .spark { fill: var(--paper); }
@keyframes twinkle { from { scale: .55; rotate: -12deg; } to { scale: 1.1; rotate: 12deg; } }

.pack { margin: 0; position: relative; z-index: 3; }
.pack img {
  display: block; width: 100%; height: auto;
  rotate: var(--tilt, 5deg);
  filter: drop-shadow(0 1.4vw 1.6vw color-mix(in srgb, var(--deep) 32%, transparent));
  transition: rotate .5s var(--ease), scale .5s var(--ease), translate .5s var(--ease);
}
.pack:hover img { rotate: calc(var(--tilt, 5deg) * -1); scale: 1.05; translate: 0 -8px; }

.sorte-grid { display: grid; gap: 28px; }
.sorte-grid .pack { width: min(58%, 250px); justify-self: center; margin-top: -5vw; }
.sorte-body { display: grid; gap: 24px; align-content: start; justify-items: start; }
@media (min-width: 900px) {
  .sorte-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 96px); }
  .sorte-grid .pack { order: 2; width: clamp(250px, 25vw, 380px); margin-top: -6.5vw; }
  .sorte.flip .pack { order: 0; --tilt: -5deg; }
}

.pack-row { display: flex; justify-content: center; align-items: flex-end; margin-top: -7vw; padding-inline: var(--page-x); }
.pack-row .pack { width: min(25%, 250px); margin-inline: -1.5%; }
.pack-row .pack:nth-child(1) { --tilt: -9deg; translate: 0 6%; }
.pack-row .pack:nth-child(2) { --tilt: -3deg; }
.pack-row .pack:nth-child(3) { --tilt: 4deg; }
.pack-row .pack:nth-child(4) { --tilt: 10deg; translate: 0 7%; }

/* Ablauf */
.ablauf { padding-block: var(--section-y); }
.steps { display: grid; gap: clamp(32px, 4vw, 48px); margin-top: clamp(40px, 6vw, 80px); }
.step { display: grid; gap: 10px; align-content: start; border-top: var(--line) solid var(--surface); padding-top: 18px; }
.step .label { color: var(--surface); }
.step p { max-width: 34ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Abschluss */
.cta { padding-top: clamp(48px, 7vw, 96px); }
.cta-foot { display: grid; gap: 24px; padding-block: clamp(24px, 3vw, 40px) var(--section-y); justify-items: start; }
.cta-foot .note { font-size: var(--fs-small); opacity: .8; }
@media (min-width: 760px) { .cta-foot { grid-template-columns: 1fr auto; align-items: end; } .cta-foot .note { grid-column: 1 / -1; } }

/* Fuß */
.footer { background: var(--deep); color: var(--paper); padding-block: clamp(40px, 5vw, 64px) 28px; font-size: var(--fs-small); }
.footer-grid { display: grid; gap: 28px; }
.footer .wordmark { color: var(--surface); font-size: 2.5rem; }
.footer p { max-width: 44ch; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 248, 243, .25); }
.made b { font-weight: 600; letter-spacing: -.01em; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Auftritt beim Laden: Zeilen schieben sich aus der Maske nach oben */
.hero .poster .line { overflow: hidden; }
.hero .poster .line > span { animation: rise .9s var(--ease) both; }
.hero .poster .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(60%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .hero .poster .line > span, .float img, .spark { animation: none; }
  .pack img { transition: none; }
  .btn, .btn .arrow { transition: none; }
}

/* ---------- Produktseite ---------- */
:root { --ok: #0B6B34; --warn: #9A4A00; --out: #6B6B6B; }
.crumbs { display: flex; gap: 8px; font-size: var(--fs-small); padding-bottom: 4px; }
.crumbs a { text-underline-offset: 3px; }
.cart { font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.product { display: grid; gap: 28px; padding-block: clamp(8px, 2vw, 24px) var(--section-y); }
@media (min-width: 900px) { .product { grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; } }

/* Galerie */
.gallery { display: grid; gap: 16px; position: relative; z-index: 3; margin-top: -5vw; }
@media (min-width: 900px) { .gallery { position: sticky; top: 24px; margin-top: -6.5vw; } }
.gallery-main { display: grid; place-items: center; aspect-ratio: 1 / 1; position: relative; }
.gallery-main::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: color-mix(in srgb, var(--surface) 50%, #fff); }
.gallery-main img { position: relative; max-width: 62%; max-height: 92%; width: auto; height: auto; rotate: 5deg;
  filter: drop-shadow(0 1.4vw 1.6vw color-mix(in srgb, var(--deep) 32%, transparent)); transition: rotate .5s var(--ease), scale .5s var(--ease); }
.gallery-main img.is-pasta { max-width: 56%; rotate: -8deg; }
.gallery-main:hover img { rotate: -3deg; scale: 1.04; }
.thumbs { display: flex; gap: 12px; justify-content: center; }
.thumb { width: 72px; height: 72px; padding: 8px; border: 0; border-radius: 14px; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 50%, #fff); box-shadow: inset 0 0 0 var(--line) transparent; transition: box-shadow .2s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 var(--line) var(--ink); }

/* Buybox */
.buybox { display: grid; gap: 18px; align-content: start; }
.buybox h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.125rem, 1.6rem + 1.6vw, 2.875rem); line-height: 1.05; color: var(--ink); }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .9375rem; text-decoration: none; }
.rating .stars { color: var(--ink); letter-spacing: 2px; font-size: 1.05rem; }
.rating u { text-underline-offset: 3px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.price strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.75rem, 2rem + 2.6vw, 4rem); line-height: 1; color: var(--ink); }
.price span { font-size: var(--fs-small); }
.stock { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; font-weight: 600; }
.stock small { grid-column: 2; }
.stock::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); flex: none; }
.stock small { font-weight: 400; font-size: var(--fs-small); }
.stock.low::before { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }
.stock.out::before { background: var(--out); box-shadow: none; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span { display: grid; gap: 2px; padding: 12px 10px; border-radius: 16px; text-align: center; box-shadow: inset 0 0 0 var(--line) var(--ink); line-height: 1.25; transition: background-color .2s, color .2s; }
.option b { font-weight: 600; }
.option small { font-size: .8125rem; }
.option input:checked + span { background: var(--ink); color: #fff; }
.option input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 3px; }
.option em { position: absolute; top: -9px; right: 8px; font-style: normal; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--deep); color: var(--paper); padding: 2px 8px; border-radius: 999px; }

.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 var(--line) var(--ink); height: 56px; }
.qty button { width: 46px; height: 56px; border: 0; background: none; color: var(--ink); font: 600 1.375rem/1 var(--font-body); cursor: pointer; border-radius: 999px; }
.qty output { min-width: 1.6em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-row .btn { min-height: 56px; width: 100%; font-size: 1.0625rem; border: 0; cursor: pointer; }
button.btn { border: 0; cursor: pointer; }
.added { font-size: var(--fs-small); font-weight: 600; min-height: 1.5em; margin-top: -10px; }

.pay { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay li { font-size: .8125rem; font-weight: 600; padding: 5px 12px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 45%, #fff); }
.pay-note { font-size: .8125rem; }

.benefits { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--line) solid var(--ink); }
.benefit { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px 12px 16px 0; border-bottom: var(--line) solid var(--ink); align-content: start; }
.benefit:nth-child(even) { padding-left: 14px; border-left: var(--line) solid var(--ink); }
.benefit svg { width: 30px; height: 30px; grid-row: span 2; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit b { font-weight: 600; line-height: 1.25; }
.benefit span { font-size: var(--fs-small); line-height: 1.35; }

/* Kochen */
.kochen { padding-block: var(--section-y); }

/* Details */
.details { padding-block: var(--section-y); }
.details-grid { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 900px) { .details-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.acc { border-top: var(--line) solid var(--ink); }
.acc details { border-bottom: var(--line) solid var(--ink); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.125rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 400 1.75rem/1 var(--font-display); color: var(--ink); transition: rotate .25s var(--ease); }
.acc details[open] summary::after { rotate: 45deg; }
.acc .acc-body { padding: 0 0 20px; max-width: 52ch; }
.acc table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.acc th, .acc td { text-align: left; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--deep) 22%, transparent); font-weight: 400; }
.acc td { text-align: right; }
.acc tr.sub th { padding-left: 14px; }
.acc caption { text-align: left; font-size: var(--fs-small); padding-bottom: 6px; }

/* Stimmen */
.stimmen { padding-block: var(--section-y); }
.stimmen-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.stimmen-head .big { font-family: var(--font-display); font-size: clamp(4.5rem, 3rem + 7vw, 9rem); line-height: .9; color: var(--surface); }
.quotes { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(32px, 5vw, 64px); }
.quote { display: grid; gap: 12px; align-content: start; border-top: var(--line) solid var(--surface); padding-top: 18px; }
.quote blockquote { margin: 0; font-size: 1.1875rem; line-height: 1.4; font-weight: 500; }
.quote .stars { color: var(--surface); letter-spacing: 2px; }
.quote cite { font-style: normal; font-size: var(--fs-small); }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* Dazu passt */
.mehr-head { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 32px); }
.mehr { display: grid; }
@media (min-width: 760px) { .mehr { grid-template-columns: repeat(3, 1fr); } }
.mehr-item { display: grid; grid-template-columns: 34% 1fr; gap: 16px; align-items: center; padding: 28px var(--page-x); }
.mehr-item .pack { width: 100%; }
.mehr-item .display-m { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); }
.mehr-item .info { display: grid; gap: 10px; justify-items: start; }
.mehr-item .btn { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
@media (min-width: 760px) { .mehr-item { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 40px 24px 44px; }
  .mehr-item .pack { width: min(62%, 220px); } .mehr-item .info { justify-items: center; } }

/* Kaufleiste mobil */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--deep); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--page-x) calc(10px + env(safe-area-inset-bottom, 0px));
  translate: 0 110%; transition: translate .35s var(--ease); }
.buybar.show { translate: 0 0; }
.buybar b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--surface); }
.buybar small { display: block; font-size: .75rem; }
.buybar .btn { background: var(--surface); color: var(--deep); min-height: 46px; padding: 0 22px; }
@media (min-width: 900px) { .buybar { display: none; } }
@media (max-width: 899px) { .footer { padding-bottom: 96px; } }
@media (prefers-reduced-motion: reduce) { .buybar, .gallery-main img { transition: none; } }

/* =====================================================================
   Komplette Website: Kopf, Menü, Korb, Sorten, Manufaktur, Kasse
   ===================================================================== */

/* Seitenwechsel: neue Seite wischt von unten herein (Browser ohne Unterstützung wechseln normal) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s ease both; }
::view-transition-new(root) { animation: vt-in .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: .4; } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--deep); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
button { font-family: inherit; }

/* Kopf: bleibt stehen, immer mit voller Fläche */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); }
.top .nav { padding-block: 14px; }
.top .nav-links a[aria-current="page"] { border-color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .9375rem/1 var(--font-body); cursor: pointer; transition: background-color .25s var(--ease); }
.cart-btn:hover { background: var(--deep); }
.cart-btn b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-btn.bump b { animation: bump .45s var(--ease); }
@keyframes bump { 40% { scale: 1.35; } }
.burger { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.burger svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
@media (min-width: 760px) { .burger { display: none; } }

/* Menü mobil: volle Fläche in Markenfarbe, Links als Wortbilder */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--surface); display: grid; grid-template-rows: auto 1fr auto; padding: 14px var(--page-x) 28px; overflow-y: auto; }
.menu-head { display: flex; justify-content: space-between; align-items: center; }
.menu .wordmark { color: var(--surface); }
.menu .burger { color: var(--surface); }
.menu nav { display: grid; align-content: center; gap: 4px; }
.menu nav a { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(3.25rem, 17vw, 6rem); line-height: 1.02; color: var(--surface); text-decoration: none; }
.menu nav a[aria-current="page"] { color: #fff; }
.menu p { font-size: var(--fs-small); color: var(--paper); }

/* Korb als Seitenleiste */
.scrim { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--deep) 55%, transparent); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(460px, 100%); background: var(--paper); color: var(--deep); display: grid; grid-template-rows: auto auto 1fr auto; translate: 105% 0; transition: translate .45s var(--ease); visibility: hidden; }
.drawer.open { translate: 0 0; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 10px; }
.drawer-head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2.5rem; line-height: 1; color: var(--ink); }
.drawer-head h2 span { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--deep); letter-spacing: 0; text-transform: none; vertical-align: middle; margin-left: 6px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface) 45%, #fff); color: var(--deep); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.ship { padding: 6px 22px 16px; font-size: var(--fs-small); display: grid; gap: 8px; }
.ship b { font-weight: 600; }
.ship-bar { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 55%, #fff); overflow: hidden; }
.ship-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ink); transition: width .5s var(--ease); }
.drawer-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 22px; border-top: var(--line) solid var(--ink); }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--deep) 18%, transparent); align-items: center; }
.line-item .li-img { width: 76px; height: 76px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); }
.line-item .li-img img { max-width: 78%; max-height: 86%; width: auto; height: auto; display: block; rotate: 5deg; }
.line-item h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; color: var(--ink); }
.line-item h3 a { color: inherit; text-decoration: none; }
.line-item small { display: block; font-size: var(--fs-small); }
.li-side { display: grid; justify-items: end; gap: 8px; }
.li-side b { font-weight: 600; font-variant-numeric: tabular-nums; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; height: 38px; font-size: 1.125rem; }
.li-remove { border: 0; background: none; padding: 0; font: 400 .8125rem/1 var(--font-body); color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-empty { display: grid; gap: 16px; justify-items: start; padding: 32px 0; }
.cart-empty p:first-child { font-family: var(--font-display); text-transform: uppercase; font-size: 2.75rem; line-height: 1; color: var(--ink); }
.upsell { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; margin: 16px 0; padding: 12px; border-radius: 18px; background: var(--surface); color: var(--deep); }
.upsell img { width: 56px; height: 56px; object-fit: contain; rotate: -5deg; }
.upsell b { display: block; font-weight: 600; line-height: 1.2; }
.upsell small { font-size: .8125rem; }
.upsell .btn { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.drawer-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: var(--line) solid var(--ink); display: grid; gap: 10px; background: var(--paper); }
.sum { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.sum.total { font-weight: 600; font-size: 1.125rem; }
.sum.total b { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1; color: var(--ink); }
.drawer-foot .btn { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.drawer-foot .fine { font-size: .8125rem; text-align: center; }

/* Hinweis: Designkonzept */
.concept { position: fixed; left: 16px; bottom: 16px; z-index: 25; display: none; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #0d0d0d; color: #fff; font-size: .8125rem; font-weight: 500; text-decoration: none; }
.concept b { color: #c6ff3d; font-weight: 600; }
@media (min-width: 900px) { .concept { display: inline-flex; } }

/* Einblenden beim Scrollen (nur mit Skript, Ruhezustand ohne Skript sichtbar) */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }
.float { transition: translate .9s cubic-bezier(.2, 1.7, .35, 1); }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; translate: none; transition: none; } .float { transition: none; } }

/* Start: Bildband */
.duo { display: grid; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.duo img, .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duo figcaption { position: absolute; left: var(--page-x); bottom: 20px; right: var(--page-x); color: #fff; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.duo figure::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.45)); }
.duo figcaption { z-index: 1; }

/* Sorten-Übersicht */
.shop-head { display: grid; gap: 20px; padding-block: clamp(20px, 3vw, 40px) clamp(32px, 5vw, 64px); }
@media (min-width: 760px) { .shop-head { grid-template-columns: 1fr auto; align-items: end; } }
.tiles { display: grid; }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; display: grid; gap: 18px; padding: clamp(28px, 4vw, 56px) var(--page-x) clamp(32px, 4vw, 56px); overflow: hidden; }
.tile .poster { margin-inline: calc(var(--page-x) * -1); }
.tile .poster .line { font-size: clamp(5rem, 24vw, 8rem); }
@media (min-width: 760px) { .tile .poster .line { font-size: clamp(5rem, 12.2vw, 12rem); } }
.tile .pack { width: min(54%, 270px); justify-self: center; margin-top: -3.4vw; }
.tile-info { display: grid; gap: 14px; }
.tile-info .row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.tile-info .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: .8125rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 var(--line) var(--ink); }
.tile-price { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--ink); }
.tile-price small { font-family: var(--font-body); font-size: .8125rem; color: var(--deep); margin-left: 6px; }
.tile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tile-link { position: absolute; inset: 0; z-index: 1; }
.tile .tile-actions { position: relative; z-index: 4; }

.bundle { display: grid; gap: 24px; padding-block: clamp(48px, 7vw, 96px); align-items: center; }
@media (min-width: 900px) { .bundle { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); } }
.bundle .pack-row { margin-top: 0; padding: 0; }
.bundle-text { display: grid; gap: 18px; justify-items: start; }
.invert .btn:hover { color: var(--ink); }

/* Rezept auf Produktseiten */
.rezept { display: grid; }
@media (min-width: 900px) { .rezept { grid-template-columns: 1fr 1fr; } }
.rezept .photo { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.rezept-text { display: grid; gap: 20px; align-content: center; padding: clamp(40px, 6vw, 96px) var(--page-x); }
.rezept-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: var(--line) solid var(--ink); max-width: 46ch; }
.rezept-text li { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--deep) 22%, transparent); display: flex; justify-content: space-between; gap: 16px; }
.rezept-text li span:last-child { font-weight: 600; white-space: nowrap; }
.gallery-main img.is-photo { max-width: 86%; max-height: 86%; rotate: -3deg; border-radius: 50%; aspect-ratio: 1; object-fit: cover; filter: none; box-shadow: 0 1.4vw 2vw color-mix(in srgb, var(--deep) 30%, transparent); }
.thumb.photo-thumb { padding: 0; overflow: hidden; }
.thumb.photo-thumb img { object-fit: cover; }
.inhalt { display: grid; gap: 0; border-top: var(--line) solid var(--ink); margin: 0; padding: 0; list-style: none; }
.inhalt li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--deep) 22%, transparent); }
.inhalt a { font-weight: 600; text-underline-offset: 3px; }

/* Manufaktur */
.story { display: grid; gap: clamp(28px, 5vw, 72px); padding-block: var(--section-y); align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; } .story.flip .photo { order: 2; } }
.story .photo { margin: 0; overflow: hidden; border-radius: 0; aspect-ratio: 4 / 5; }
.story .photo.wide { aspect-ratio: 3 / 2; }
.story-text { display: grid; gap: 20px; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); font-weight: 400; }
.hours td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.besuch { display: grid; gap: clamp(28px, 5vw, 72px); padding-block: var(--section-y); }
@media (min-width: 900px) { .besuch { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.invert .acc, .invert .acc details { border-color: var(--surface); }
.invert .acc summary::after { color: var(--surface); }
.faq { display: grid; gap: clamp(28px, 5vw, 72px); padding-block: var(--section-y); }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.2fr; align-items: start; } }

/* Kasse */
.kasse-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; }
.kasse-top a:not(.wordmark) { font-weight: 600; text-underline-offset: 3px; }
.demo-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; background: var(--deep); color: var(--paper); font-size: .9375rem; }
.demo-note b { color: var(--surface); font-weight: 600; }
.kasse { display: grid; gap: 32px; padding-block: 24px var(--section-y); }
@media (min-width: 900px) { .kasse { grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; } }
.kasse h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.5rem, 2rem + 7vw, 7rem); line-height: .95; color: var(--ink); }
.kasse-form { display: grid; gap: 36px; }
.kasse-step { display: grid; gap: 14px; }
.kasse-step h2 { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.875rem; line-height: 1; color: var(--ink); padding-bottom: 10px; border-bottom: var(--line) solid var(--ink); }
.kasse-step h2 span { font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--deep); }
.fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 600; }
.field input { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--surface) 45%, #fff); color: var(--deep); font: 400 1rem/1.2 var(--font-body); box-shadow: inset 0 0 0 var(--line) transparent; }
.field input:focus-visible { outline: none; box-shadow: inset 0 0 0 var(--line) var(--ink); }
.field input::placeholder { color: color-mix(in srgb, var(--deep) 45%, transparent); }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px 16px 50px; border-radius: 16px; box-shadow: inset 0 0 0 var(--line) color-mix(in srgb, var(--ink) 45%, transparent); position: relative; }
.choice > span::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; box-shadow: inset 0 0 0 var(--line) var(--ink); }
.choice input:checked + span { box-shadow: inset 0 0 0 var(--line) var(--ink); background: color-mix(in srgb, var(--surface) 45%, #fff); }
.choice input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 var(--line) var(--ink), inset 0 0 0 5px color-mix(in srgb, var(--surface) 45%, #fff); }
.choice input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 3px; }
.choice b { font-weight: 600; }
.choice small { display: block; font-size: .8125rem; font-weight: 400; }
.choice em { font-style: normal; font-weight: 600; white-space: nowrap; }
.order { display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: var(--paper); color: var(--deep); }
@media (min-width: 900px) { .order { position: sticky; top: 24px; } }
.order h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.875rem; line-height: 1; color: var(--ink); }
.order .line-item { grid-template-columns: 60px 1fr auto; padding: 12px 0; }
.order .line-item .li-img { width: 60px; height: 60px; border-radius: 14px; }
.order .line-item h3 { font-size: 1.25rem; }
.order-sums { display: grid; gap: 8px; padding-top: 6px; }
.order .btn { width: 100%; min-height: 58px; font-size: 1.0625rem; }
.order .fine { font-size: .8125rem; }
.ende { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--deep) 70%, transparent); }
.ende-box { width: min(620px, 100%); max-height: 100%; overflow: auto; background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(28px, 5vw, 48px); display: grid; gap: 18px; justify-items: start; }
.ende-box h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 2rem + 6vw, 5.5rem); line-height: .95; color: var(--surface); }
.ende-box .btn { background: var(--paper); color: var(--ink); }
.ende-box .btn-line { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 var(--line) var(--paper); }
.ende-box .btn-line:hover { background: var(--paper); color: var(--ink); }
.ende-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Fuß */
.footer a { color: inherit; text-underline-offset: 3px; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; }
.footer .label { opacity: .7; margin-bottom: 4px; }
.footer-base button { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.made b { font-weight: 600; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; } }

/* Anpassungen für den stehenden Kopf */
@media (min-width: 900px) { .gallery { top: 92px; } .order { top: 92px; } }
.gallery-main img.is-wide { max-width: 98%; rotate: 0deg; }
.crumbs { padding-top: 6px; }

/* Zweitknopf auf Markenfläche */
.invert .btn-line { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 var(--line) var(--paper); }
.invert .btn-line:hover { background: var(--paper); color: var(--ink); }
@media (min-width: 900px) { .footer { padding-bottom: 76px; } }

/* Kopf nimmt die Farbe der Sektion an, die gerade unter ihm liegt */
.top { transition: background-color .35s var(--ease); }
.top .wordmark, .top .nav-links a, .top .burger { transition: color .35s var(--ease); }
.top.inv { background: var(--ink); }
.top.inv .wordmark { color: var(--surface); }
.top.inv .nav-links a, .top.inv .burger { color: var(--paper); }
.top.inv .nav-links a:hover, .top.inv .nav-links a[aria-current="page"] { border-color: var(--paper); }
.top.inv .cart-btn { background: var(--paper); color: var(--ink); }
.top.inv .cart-btn b { background: var(--ink); color: #fff; }
.top.inv :focus-visible { outline-color: var(--paper); }

/* Rasterkinder dürfen schrumpfen, sonst sprengen lange Wörter und Bildleisten die Spalte */
.tile, .mehr-item, .product > *, .sorte-grid > *, .kasse > *, .story > *, .bundle > *, .details-grid > *, .faq > *, .besuch > * { min-width: 0; }
.thumbs { flex-wrap: wrap; }
.inhalt li { flex-wrap: wrap; }
@media (max-width: 480px) { .thumb { width: 60px; height: 60px; padding: 6px; } }
.tile { grid-template-columns: minmax(0, 1fr); }
.tile > * { min-width: 0; }

/* Cookie-Hinweis von heygregor: eigene Farben behalten, nicht die Variablen von KNETE erben */
.hg-consent { --surface: #101310; --font-display: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; }
