/* Demo-Shop zum Praxisbeispiel (v3/shop/), © 2026 Hendrik Göpel.
   Klassische Produktseite wie im Mode-Handel: weiß, schwarze Schrift, Galerie links, Kaufbereich rechts.
   Schriften aus ../css/fonts.css (offline eingebettet). */
:root {
  --ink: #111113;
  --muted: #5d5d66;
  --line: #e2e2e6;
  --soft: #f3f3f4;
  --akzent: #e76905; /* HSM-Orange, sparsam */
  --sale: #c4123a;
  --gut: #1e7a3c;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --display: "Anybody", "Arial Narrow", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-bottom: 2.4rem; background: #fff; color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.5; } /* Platz für das Laufband unten */
a { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; }

/* Servicezeile: Laufband fest am unteren Fensterrand. Zwei gleiche Sätze, jeder mindestens fensterbreit,
   das Band wandert um genau einen Satz und springt dann unsichtbar zurück. */
/* Dunkelgrau mit heller Schrift, damit das Band auffällt; der Demo-Hinweis in hellerem Orange (Kontrast über 4,5 : 1) */
.service { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; overflow: hidden; background: #34343a; color: #f3f3f4; font-size: 0.78rem; font-weight: 700; line-height: 1; }
.service-band { display: flex; width: max-content; animation: laufband 32s linear infinite; }
.service:hover .service-band { animation-play-state: paused; }
.service-satz { display: flex; justify-content: space-around; flex: none; min-width: 100vw; margin: 0; padding: 0.75rem 0; list-style: none; }
.service-satz li { display: flex; align-items: center; gap: 3rem; padding-left: 3rem; white-space: nowrap; }
.service-satz li::before { content: ""; width: 0.32rem; height: 0.32rem; border-radius: 50%; background: currentColor; opacity: 0.35; }
.service-demo { color: #ffa057; }
@keyframes laufband { to { translate: -50% 0; } }

/* Kopf */
.kopf { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; max-width: 1240px; margin: 0 auto; padding: 1rem 1.5rem 0.4rem; }
.zurueck { display: inline-flex; align-items: center; gap: 0.35rem; justify-self: start; padding: 0.45rem 0.9rem 0.45rem 0.6rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.zurueck svg { width: 1.1rem; height: 1.1rem; stroke-width: 2.2; }
.zurueck:hover { background: #2b2b30; }
.marke { font-family: var(--display); font-size: 1.9rem; font-weight: 900; letter-spacing: 0.02em; text-decoration: none; }
.marke span { color: var(--akzent); }
.marke small { font-family: var(--font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.kopf-rechts { display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem; }
.suche { display: flex; align-items: center; gap: 0.5rem; width: min(16rem, 100%); margin-right: 0.6rem; padding: 0.5rem 0.8rem; border: 1px solid var(--ink); border-radius: 4px; }
.suche svg { width: 1.2rem; height: 1.2rem; flex: none; }
.suche input { width: 100%; border: 0; outline: 0; font: inherit; background: none; }
.symbol { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.symbol:hover { background: var(--soft); }
.symbol svg { width: 1.5rem; height: 1.5rem; }
.zahl { position: absolute; top: 0.1rem; right: 0.05rem; min-width: 1.15rem; height: 1.15rem; padding: 0 0.25rem; border-radius: 999px; background: var(--akzent); color: #fff; font-size: 0.7rem; line-height: 1.15rem; text-align: center; }
.zahl.hupft { animation: hupft 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes hupft { 0% { scale: 0.4; } 100% { scale: 1; } }
.menue { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.8rem; max-width: 1240px; margin: 0 auto; padding: 0.4rem 1.5rem 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.menue a { padding: 0.2rem 0; text-decoration: none; }
.menue a:hover, .menue a.ist-aktiv { box-shadow: inset 0 -2px 0 var(--ink); }
.menue .sale { color: var(--sale); }

/* Seite */
.seite { max-width: 1240px; margin: 0 auto; padding: 0.6rem 1.5rem 3rem; }
.pfad { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1.2rem; font-size: 0.85rem; color: var(--muted); }
.pfad a { text-decoration: none; }
.pfad b { color: var(--ink); }
.produkt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }

/* Galerie: Vorschaubilder links, großes Bild rechts */
.galerie { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 1rem; position: sticky; top: 1rem; }
/* Vorschaubilder senkrecht mittig zum großen Bild (oben Platz für das Etikett-Band) */
.vorschau { display: grid; align-content: center; gap: 0.7rem; margin: 0; padding: 2.2rem 0 0; list-style: none; }
/* Ohne Rahmen und ohne Hintergrundfläche: das aktuelle Vorschaubild ist voll deckend und schwarz unterstrichen */
.vorschau button { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; opacity: 0.55; transition: opacity 0.2s; }
.vorschau button:hover, .vorschau button[aria-current="true"] { opacity: 1; }
.vorschau button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); scale: 0 1; transition: scale 0.25s; }
.vorschau button[aria-current="true"]::after { scale: 1 1; }
/* Alle Bilder ganz zeigen (Person von Kopf bis Schuh), ohne Rahmen und ohne Fläche: sie stehen auf dem Weiß der Seite.
   Format 2:3 wie die meisten Fotos; das große Bild passt zusätzlich in die Fensterhöhe. */
.vorschau img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
.hauptbild { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: none; }
.hauptbild img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; max-height: calc(100svh - 18rem); min-height: 26rem; object-fit: contain; object-position: 50% 50%; transition: opacity 0.14s ease; }
.hauptbild img.wechselt { opacity: 0; }
/* Etikett als Band über dem Bild (nicht darauf), damit kein Kopf verdeckt wird */
.etikett { position: relative; z-index: 1; display: block; padding: 0.45rem; background: rgb(17 17 19 / 0.62); color: #fff; font-size: 0.9rem; text-align: center; }
.blaettern { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-top: -1.3rem; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.9); box-shadow: 0 4px 14px -6px rgb(0 0 0 / 0.4); cursor: pointer; }
.blaettern svg { width: 1.3rem; height: 1.3rem; stroke-width: 2; }
.blaettern-zurueck { left: 0.8rem; }
.blaettern-weiter { right: 0.8rem; }
.blaettern[hidden] { display: none; }
/* Mit Maus erscheinen die Pfeile erst über dem Bild, auf Touch-Geräten bleiben sie sichtbar */
@media (hover: hover) and (pointer: fine) {
  .blaettern { opacity: 0; scale: 0.85; transition: opacity 0.25s ease, scale 0.25s ease; }
  .hauptbild:hover .blaettern, .blaettern:focus-visible { opacity: 1; scale: 1; }
}

/* Kaufbereich */
.hersteller { margin: 0.2rem 0 0.1rem; font-size: 1.35rem; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
.kauf h1 { margin: 0 0 0.7rem; font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.preis { margin: 0 0 1.4rem; font-size: 1.4rem; }
.preis span { font-size: 0.9rem; color: var(--muted); }
.varianten p, .farben p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.varianten[hidden] { display: none; }
.varianten-wahl { display: flex; gap: 0.45rem; margin-bottom: 1.1rem; }
.varianten-wahl button { min-width: 6.5rem; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.varianten-wahl button:hover { border-color: var(--ink); }
.varianten-wahl button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.farben ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.farben li { display: grid; justify-items: center; gap: 0.25rem; }
.farben button { position: relative; width: 4.4rem; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.farben button[aria-pressed="true"] { border: 2px solid var(--ink); }
.farben img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.farben li > span { font-size: 0.75rem; color: var(--muted); }
/* Farbe in dieser Variante nicht lieferbar: blass und durchgestrichen wie die ausverkaufte Größe */
.farben button.aus { cursor: not-allowed; }
.farben button.aus img { opacity: 0.35; filter: grayscale(1); }
.farben button.aus::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 0.5px), #c9c9cf calc(50% - 0.5px), #c9c9cf calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
.hinweis, .beliebt { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1.2rem; padding: 0.9rem 1rem; border-radius: 4px; background: var(--soft); font-size: 0.95rem; }
.hinweis svg, .beliebt svg { width: 1.4rem; height: 1.4rem; flex: none; }
.groessen-kopf { display: flex; justify-content: space-between; align-items: baseline; }
.groessen-kopf p { margin: 0 0 0.4rem; font-size: 0.85rem; }
.tabelle { font-size: 0.85rem; }
.groessen-wahl { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.groessen-wahl button { min-width: 3.4rem; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.groessen-wahl button:hover { border-color: var(--ink); }
.groessen-wahl button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.groessen-wahl button.aus { color: #a2a2aa; background: linear-gradient(to top right, transparent calc(50% - 0.5px), #c9c9cf calc(50% - 0.5px), #c9c9cf calc(50% + 0.5px), transparent calc(50% + 0.5px)); cursor: not-allowed; }
.groessen-wahl.wackelt { animation: wackelt 0.4s; }
@keyframes wackelt { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
.aktion { display: flex; gap: 0.6rem; }
.korb { flex: 1; min-height: 3rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.02rem; cursor: pointer; transition: background-color 0.2s; }
.korb:hover { background: #2b2b30; }
.merken { display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: #fff; cursor: pointer; }
.merken svg { width: 1.4rem; height: 1.4rem; }
.merken[aria-pressed="true"] svg { fill: var(--sale); stroke: var(--sale); }
.meldung { min-height: 1.5rem; margin: 0.5rem 0 0.8rem; font-size: 0.9rem; color: var(--sale); }
.meldung.gut { color: var(--gut); }
.lieferung { margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: 6px; }
.verkauf { margin: 0; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.lieferung-zeile { display: flex; gap: 0.9rem; padding: 0.9rem 1.2rem; }
.lieferung-zeile + .lieferung-zeile { border-top: 1px solid var(--line); }
.lieferung-zeile svg { width: 1.5rem; height: 1.5rem; flex: none; }
.lieferung-zeile b, .lieferung-zeile span { display: block; font-size: 0.92rem; }
.lieferung-zeile span { color: var(--muted); }
.klappe { border-top: 1px solid var(--line); }
.klappe:last-of-type { border-bottom: 1px solid var(--line); }
.klappe summary { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-size: 1.1rem; cursor: pointer; list-style: none; }
.klappe summary::-webkit-details-marker { display: none; }
.klappe summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; rotate: 45deg; translate: 0 -0.15rem; transition: rotate 0.25s; }
.klappe[open] summary::after { rotate: 225deg; translate: 0 0.15rem; }
.klappe p { margin: 0 0 1.1rem; color: var(--muted); }

/* Dazu passt: breites Banner über die ganze Inhaltsbreite, großes Becherbild links, Text und Knopf rechts.
   Die Kartenfläche hat den Ton des Bildhintergrunds, so geht das Foto ohne Kante in die Karte über. */
.dazu { margin-top: 3.5rem; }
.dazu h2 { margin: 0 0 1rem; font-size: 1.4rem; }
.dazu-karte { display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-right: clamp(1.5rem, 4vw, 4rem); border-radius: 10px; overflow: hidden; background: #f9e5d5; }
.dazu-bild { position: relative; display: block; }
.dazu-bild img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.dazu-text { display: grid; justify-items: start; gap: 0.35rem; min-width: 0; padding: 1.5rem 0; }
.dazu-text b, .dazu-text span { display: block; }
.dazu-text .dazu-marke { color: #8a5a2b; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.dazu-text b { font-family: var(--display); font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); font-weight: 900; line-height: 1.1; }
.dazu-text span { color: #5a4a3f; font-size: 1.05rem; }
.dazu-text .dazu-preis { margin: 0.4rem 0 0.9rem; color: var(--ink); font-size: 1.4rem; }
.dazu-karte button { min-height: 3rem; padding: 0.7rem 1.8rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background-color 0.15s; }
.dazu-karte button:hover { background: #2b2b30; }
.demo-hinweis { max-width: 46rem; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; text-align: center; }

/* Klick-Effekt: kleine Schriftzüge fliegen vom Klickpunkt weg (Bewegung in shop.js) */
.klicks { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.klick-wort { position: absolute; left: 0; top: 0; font-family: var(--display); font-size: 0.95rem; font-weight: 900; line-height: 1; white-space: nowrap; will-change: transform, opacity; }

/* KI-Kennzeichnung wie auf der übrigen Seite: EU-Icon „AI GENERATED“ auf Milchglas */
.ki-hinweis { position: absolute; right: 0.7rem; bottom: 0.7rem; z-index: 1; width: 5.6em; height: 1.1em; padding: 0.12em 0.2em; box-sizing: content-box; border-radius: 999px; overflow: hidden; color: transparent; white-space: nowrap; text-indent: 110%; font-size: 0.85rem; pointer-events: none;
  background: url("../bilder/ki-generiert.svg") center / 92% auto no-repeat, rgb(255 255 255 / 0.42);
  -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5), 0 2px 10px -4px rgb(0 0 0 / 0.35); }

@media (max-width: 900px) {
  .kopf { grid-template-columns: auto 1fr; }
  .marke { justify-self: end; }
  .kopf-rechts { grid-column: 1 / -1; }
  .suche { flex: 1; width: auto; }
  .produkt { grid-template-columns: minmax(0, 1fr); }
  .galerie { position: static; grid-template-columns: minmax(0, 1fr); }
  .vorschau { grid-row: 2; grid-auto-flow: column; grid-auto-columns: 4.4rem; overflow-x: auto; padding-top: 0; }
  .hauptbild img { max-height: none; }
  /* Banner: Bild oben, Text darunter */
  .dazu-karte { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .dazu-bild { justify-self: center; width: min(100%, 26rem); }
  .dazu-text { padding: 0 1.5rem 1.6rem; }
}
@media (max-width: 520px) {
  .zurueck span { display: none; }
  .service-satz li { gap: 2rem; padding-left: 2rem; }
  .dazu-karte button { width: 100%; }
  .dazu-text { justify-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* Laufband steht still: nur ein Satz, bei Bedarf umbrochen */
  .service-band { width: auto; }
  .service-satz { flex-wrap: wrap; justify-content: center; gap: 0.4rem 0; min-width: 0; width: 100%; padding: 0.5rem 1rem; }
  .service-satz[aria-hidden="true"] { display: none; }
}
