/* Übersicht (alle/) und Produktseiten (p/<bild>/), erzeugt von tools/produktseiten.mjs (Rob, 5.11.2026).
   Werte wie die Hauptseite (DESIGN.md): Papier #fff, Tinte #111, Signal #ff4a1c, Bagel Fat One / Instrument Sans,
   Kurven --ease / --pop. Übersicht (Rob): „eine weiße Seite … ein Raster, wo wirklich ganz viele Produkte auf der Seite
   sind … 5 bis 7 Spalten und vielleicht 5 Reihen“. */
:root {
  --paper: #ffffff; --ink: #111111; --signal: #ff4a1c; --grau: #8a8a8a;
  --display: 'Bagel Fat One', system-ui, sans-serif; --text: 'Instrument Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --pop: cubic-bezier(.34, 1.56, .64, 1);
  --rand: clamp(16px, 3vw, 40px); --kopf-h: 92px;
  --spalten: 4;
  /* Schatten und Raster der Übersicht – Tweaks (uebersicht.js); Robs Wahl 5.11. 17:39: Schatten Stärke 0 (an, aber nicht zu
     sehen), Abstand 17 px (vorher 12 px, Stärke 1) */
  --sch-y: 17px; --sch-w: 10px; --sch-k: 0;
  color-scheme: light;
}
@media (min-width: 560px) { :root { --spalten: 5; } }
@media (min-width: 1100px) { :root { --spalten: 6; } }
@media (min-width: 1600px) { :root { --spalten: 7; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.seite { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text); }
.seite a { color: inherit; }
.seite img { display: block; max-width: 100%; }

/* Kopf: Logo oben links untereinander wie auf der Hauptseite, rechts zwei leise Links */
.kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px var(--rand) 0; min-height: var(--kopf-h); }
.logo { display: block; font: 400 30px/.86 var(--display); text-decoration: none; color: var(--ink); }
.logo span { display: block; }
.logo:hover, .logo:focus-visible { color: var(--signal); }
.kopf-links { display: flex; gap: 20px; padding-top: 4px; font-size: 14px; }
.kopf-links a { text-decoration: none; transition: color .08s; }
.kopf-links a:hover, .kopf-links a:focus-visible { color: var(--signal); }

/* Raster: viele kleine Bilder, ohne Rahmen; Name und Preis erst beim Darüberfahren */
.raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--spalten), minmax(0, 1fr)); }
.raster li { min-width: 0; }
.raster a { position: relative; display: block; aspect-ratio: 1; text-decoration: none; outline-offset: -4px; }
/* Übersicht (Rob, 5.11. abends): Produktgröße und Abstand fest (Tweaks), Spalten und Reihen ergeben sich aus dem Fenster;
   das Raster steht mittig, das Produkt füllt seine Kachel (kein Polster), Name/Preis erscheinen darunter im Abstand */
.uebersicht .raster { --kachel: var(--kachel-d, 95px); --abstand: var(--abstand-d, 26px);   /* Robs Wahl 5.11. 17:39 (vorher 110/60) */
  grid-template-columns: repeat(auto-fill, var(--kachel)); gap: var(--abstand); justify-content: center;
  padding: 0 var(--rand) 8px; }
@media (max-width: 559px) { .uebersicht .raster { --kachel: var(--kachel-m, 70px); --abstand: var(--abstand-m, 18px); } }
.uebersicht .raster a { width: var(--kachel); height: var(--kachel); }
.uebersicht .raster img { padding: 0; }
.uebersicht .etikett { top: calc(100% + 4px); bottom: auto; left: 50%; right: auto; z-index: 2; width: max-content;
  max-width: calc(var(--kachel) + var(--abstand)); translate: -50% 0; }
.raster img { width: 100%; height: 100%; padding: 9% 11% 15%; object-fit: contain;
  filter: drop-shadow(0 var(--sch-y) var(--sch-w) rgb(17 17 17 / calc(.16 * var(--sch-k))));
  transition: transform .35s var(--pop), filter .35s var(--ease); }
.raster a:hover img, .raster a:focus-visible img { transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 calc(var(--sch-y) * 1.5) calc(var(--sch-w) * 1.4) rgb(17 17 17 / calc(.2 * var(--sch-k)))); }
[data-schatten="off"] .uebersicht .raster img { filter: none; }   /* Tweaks „Schatten“ aus */
.etikett { position: absolute; left: 6px; right: 6px; bottom: 4px; overflow: hidden; text-align: center; white-space: nowrap;
  text-overflow: ellipsis; font-size: 12px; line-height: 1.3; color: var(--grau); opacity: 0; transition: opacity .18s; }
.etikett b { font-weight: 500; color: var(--ink); }
.raster a:hover .etikett, .raster a:focus-visible .etikett { opacity: 1; }
@media (hover: none) { .raster-klein .etikett { opacity: 1; } }   /* Touch: bei den ähnlichen Produkten Name immer zeigen */

/* Übersicht: ohne Unterzeile, oben rechts ein ✕ wie das Schließen-Kreuz des Menüs (Burger offen: 2 Striche 30 × 4 px,
   Radius 4, ±45°, Feld 48 px, 26 px vom Rand) – führt zurück ins Menü (Rob, 5.11.) */
/* Rob, 5.11. 17:39 (Screenshot „hier mehr Abstand“): zwischen Überschrift und Raster mehr Luft – vorher 18 px */
.uebersicht-titel { margin: 6px var(--rand) clamp(36px, 4.5vw, 72px); font: 400 clamp(30px, 4vw, 52px)/1 var(--display); }
.uebersicht-titel span { color: var(--signal); }
.zu { position: fixed; top: 26px; right: 26px; z-index: 30; display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; }
.zu span { display: block; width: 30px; height: 4px; border-radius: 4px; background: var(--ink); transition: background-color .08s; }
.zu span:first-child { transform: translateY(5px) rotate(45deg); }
.zu span:last-child { transform: translateY(-5px) rotate(-45deg); }
.zu:hover span, .zu:focus-visible span { background: var(--signal); }

/* Produktseite: Bild links groß, Text rechts; Handy untereinander */
.produkt { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 4vw, 64px);
  max-width: 1280px; margin: 0 auto; padding: 8px var(--rand) 24px; }
.produkt-bild { margin: 0; }
/* ohne Schatten (Rob, 5.11. abends: „der wird manchmal angeschnitten und dann sieht man so eine harte Kante unten“) –
   auch bei „Auch schön“ */
.produkt-bild img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.produktseite .raster img, .produktseite .raster a:hover img, .produktseite .raster a:focus-visible img { filter: none; }
.produkt-info { max-width: 34em; }
.anzeige { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.produkt h1 { margin: 0; font: 400 clamp(30px, 3.6vw, 52px)/1.02 var(--display); text-wrap: balance; }
.preis { margin: 10px 0 16px; font: 400 clamp(24px, 2.4vw, 34px)/1 var(--display); }
.produkt-text { margin: 0 0 22px; font-size: 17px; color: #333; text-wrap: pretty; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.zum-shop, .in-3d { display: inline-flex; align-items: baseline; gap: .45em; padding: .62em 1.15em .66em; border-radius: 1.4em;
  font: 400 19px/1.15 var(--display); text-decoration: none; transition: background .12s, color .12s, border-color .12s; }
.zum-shop { background: var(--ink); color: var(--paper) !important; }
.zum-shop::after { content: '↗'; }
.zum-shop:hover, .zum-shop:focus-visible { background: var(--signal); }
.in-3d { border: 1.5px solid var(--ink); }
.in-3d:hover, .in-3d:focus-visible { border-color: var(--signal); color: var(--signal); }
.worte { margin: 0; font-size: 14px; color: var(--grau); }
.worte a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.worte a:hover, .worte a:focus-visible { color: var(--signal); }
.aehnlich { max-width: 1280px; margin: 0 auto; padding: 24px var(--rand) 0; }
.aehnlich h2 { margin: 0 0 4px; font: 400 clamp(22px, 2.2vw, 30px)/1 var(--display); }
.raster-klein { --spalten: 3; }
@media (min-width: 560px) { .raster-klein { --spalten: 6; } }
@media (max-width: 759px) {
  .produkt { grid-template-columns: 1fr; padding-top: 0; }
  .produkt-bild { max-width: 520px; margin: 0 auto; }
}

/* Fuß */
.fuss { margin-top: 40px; padding: 22px var(--rand) 34px; text-align: center; font-size: 13px; color: var(--grau); }
.fuss p { margin: 0 0 4px; }
.fuss a { text-decoration: none; }
.fuss a:hover, .fuss a:focus-visible { color: var(--signal); }
@media (prefers-reduced-motion: reduce) { .raster img { transition: none; } }
