/* ===========================================================================
 * shop.alentejo.love — alle Bausteine der Seite. Setzt tokens.css voraus.
 *
 * Weiß-türkises Design nach casa.alentejo.love (docs/14-design.md):
 * weiße Grundfläche, Petrol für Schrift, Knöpfe und Fußzeile, Türkis hell für
 * Karten und Bänder, das Fliesenband als einziges Schmuckelement. Es werden
 * nur Token-Variablen benutzt; die Logofarben (Olive, Weinrot, Gold)
 * erscheinen ausschließlich an den Kategorie-Marken (.cat-tag).
 *
 *   1. Grundlagen           6. Kategorieseite      11. Hilfsklassen
 *   2. Kopf, Menü, Fuß      7. Produktseite        12. Responsive, Druck
 *   3. Knöpfe und Links     8. Warenkorb, Kasse
 *   4. Bühne, Platzhalter   9. Erzeugerprofil
 *   5. Karten              10. Formulare, Tabellen
 * =========================================================================== */

/* ---------------------------------------------------------------------------
 * 1. Grundlagen
 * ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { background: var(--c-white); }
body {
  margin: 0; min-height: 100vh;
  background: var(--c-white); color: var(--c-ink);
  font: var(--t-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; color: var(--c-petrol); }
img { display: block; max-width: 100%; }
strong, b { font-weight: 600; }

a { color: var(--c-petrol); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-turq); }

:focus-visible { outline: 2px solid var(--c-turq); outline-offset: 2px; }

.page { display: flex; flex-direction: column; min-height: 100vh; }
.page > main { flex: 1; }

/* Bänder: volle Breite, Inhalt höchstens 72 rem */
.band { padding: var(--s-band-y) var(--page-x); }
.band--lg { padding-top: var(--s-band-y-lg); padding-bottom: var(--s-band-y-lg); }
.band--soft { background: var(--c-turq-soft); }
/* Zwei weiße Bänder hintereinander: der Abstand soll sich nicht verdoppeln */
.band:not(.band--soft) + .band:not(.band--soft),
.page-head + .band:not(.band--soft),
.layout-category + .band:not(.band--soft),
.layout-checkout + .band:not(.band--soft),
.product-layout + .band:not(.band--soft) { padding-top: 0; }

.band__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-24); margin-bottom: var(--s-32); }
.band__head--spaced { margin-top: var(--s-40); }
.band__title { font: var(--t-h2); }
.band__subtitle { margin: var(--s-24) 0 var(--s-12); }

.h1 { font: var(--t-h1); color: var(--c-petrol); }
.h2 { font: var(--t-h2); color: var(--c-petrol); }
.h3 { font: var(--t-h3); color: var(--c-petrol); }

.label { font: var(--t-label); color: var(--c-ink-70); }
.eyebrow { font: var(--t-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-petrol); }
.muted { color: var(--c-ink-70); }
.faint { color: var(--c-ink-70); }
.price { font: var(--t-price); color: var(--c-petrol); }
.total { font: var(--t-price-lg); color: var(--c-petrol); }

.stack > * + * { margin-top: var(--s-16); }
.text-max { max-width: var(--w-text-max); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.spaced-top { margin-top: var(--s-24); }

/* Fließtext: höchstens 42 rem breit, Hervorhebung halbfett statt farbig */
.prose { font: var(--t-lead); color: var(--c-ink); max-width: var(--w-text-max); }
.prose p + p { margin-top: var(--s-16); }
.prose h2 { font: var(--t-h2-sm); margin: var(--s-40) 0 var(--s-12); }
.prose h3 { font: var(--t-h3); margin: var(--s-24) 0 var(--s-12); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: var(--s-12) 0 var(--s-16); padding-left: var(--s-24); }
.prose li { margin-bottom: var(--s-4); }
.prose a, .legal-note a, .check-line a { text-decoration: underline; text-underline-offset: 2px; }
.prose table { border-collapse: collapse; width: 100%; font: var(--t-body); }
.prose td, .prose th { border-bottom: 1px solid var(--c-line); padding: var(--s-8) var(--s-12); text-align: left; }

/* Fliesenband — das einzige Schmuckelement. Höchstens zwei je Seite, nie als
   Hintergrund für Text. Farben und Maße stehen in public/img/tiles.svg. */
.tiles {
  height: 68px;
  background: var(--c-tile-grout) url('../img/tiles.svg') repeat-x center top / auto 68px;
  box-shadow: var(--shadow-tiles);
}
.tiles--foot { margin-top: var(--s-64); }

/* Meldungen: Erfolg in Petrol halbfett auf Türkis hell, Fehler rot auf hellrot */
.flashes { padding: var(--s-16) var(--page-x) 0; }
.flash { padding: var(--s-12) var(--s-16); border-radius: var(--r-control); background: var(--c-turq-soft); color: var(--c-petrol); font: var(--t-ui); font-weight: 600; line-height: 1.5; }
.flash + .flash { margin-top: var(--s-8); }
.flash--warning { color: var(--c-ink); font-weight: 400; border-left: 3px solid var(--c-terra); }
.flash--danger, .flash--error { background: var(--c-error-soft); color: var(--c-error); }

/* Seitenkopf: Brotkrumen, Titel, Einführung, rechts eine Zahl oder die Schritte */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-24) var(--s-40); flex-wrap: wrap;
  padding: var(--s-40) var(--page-x) var(--s-32);
}
.page-head__body { display: flex; flex-direction: column; gap: var(--s-12); min-width: 0; }
.page-head__crumbs, .crumbs { font: var(--t-body-sm); color: var(--c-ink-70); }
.page-head__crumbs a, .crumbs a { color: inherit; }
.page-head__crumbs a:hover, .crumbs a:hover { color: var(--c-petrol); }
.page-head__title { font: var(--t-h1); }
.page-head__lead { font: var(--t-lead); color: var(--c-ink); max-width: var(--w-text-max); }
.page-head__lead a { text-decoration: underline; text-underline-offset: 2px; }
.page-head__count { font: var(--t-body-sm); color: var(--c-ink-70); white-space: nowrap; padding-bottom: 6px; }
.crumbs { padding: var(--s-24) var(--page-x) 0; }
.crumbs__sep { padding: 0 8px; }

/* ---------------------------------------------------------------------------
 * 2. Kopfzeile, Menü, Fußzeile
 * ------------------------------------------------------------------------- */
.site-head {
  position: relative;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-8) var(--s-24); padding: var(--s-12) var(--page-x);
  background: var(--c-white); border-bottom: 1px solid var(--c-turq-soft);
}
/* Logo: Bildzeichen und Wortmarke in den Logofarben, auf Weiß */
.logo { display: block; flex: none; }
.logo__img { display: block; width: auto; height: 52px; }

.site-nav { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-20); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font: var(--t-ui); color: var(--c-ink); }
.site-nav a:hover { color: var(--c-turq); }
.site-nav a.is-active { font-weight: 600; color: var(--c-petrol); }
.site-head__service { margin-left: auto; font: var(--t-body-sm); color: var(--c-ink-70); }
.site-head--checkout .lang-menu { margin-left: 0; }
.site-head__cart { flex: none; }
.cart-counter { margin-left: 6px; }

.site-head__burger {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin-left: -10px;
  background: none; border: 0; cursor: pointer;
}
.site-head__burger span { display: block; width: 22px; height: 2px; background: var(--c-petrol); }
.site-head__burger span + span { margin-top: 5px; }

/* Sprachumschalter: Aufklappfeld mit dem Namen der Sprache, keine Flaggen */
.lang-menu { position: relative; flex: none; margin-left: auto; }
.lang-menu > summary {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-12);
  list-style: none; cursor: pointer; border: 1px solid var(--c-turq-soft); border-radius: var(--r-control);
  font: var(--t-body-sm); color: var(--c-ink); transition: border-color var(--transition);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { border-color: var(--c-turq); }
.lang-menu__list {
  position: absolute; right: 0; z-index: 20; width: 160px; margin: 4px 0 0; padding: 4px 0; list-style: none;
  background: var(--c-white); border: 1px solid var(--c-turq-soft); border-radius: var(--r-control);
  box-shadow: var(--shadow-menu);
}
.lang-menu__list a { display: block; padding: 8px var(--s-12); font: var(--t-body-sm); color: var(--c-ink); }
.lang-menu__list a:hover { background: var(--c-turq-soft); color: var(--c-ink); }
.lang-menu__list a[aria-current] { font-weight: 600; }

/* Sprachen als Zeile (mobiles Menü) */
.langs { display: flex; align-items: center; gap: var(--s-16); font: var(--t-ui); }
.langs a { color: var(--c-ink); }
.langs a.is-active { font-weight: 600; color: var(--c-petrol); }

/* Mobiles Schubladenmenü (public/js/site.js) */
.mobile-menu-overlay {
  position: fixed; inset: 0; background: var(--c-ink);
  opacity: 0; visibility: hidden; transition: opacity var(--transition); z-index: 90;
}
.mobile-menu-overlay.active { opacity: .45; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw;
  background: var(--c-white); z-index: 91;
  transform: translateX(-100%); transition: transform var(--transition);
  display: flex; flex-direction: column; padding: var(--s-16) var(--s-20) var(--s-24);
  overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-16); }
.mobile-menu-close { background: none; border: 0; color: var(--c-petrol); font: 400 28px/1 var(--f-sans); cursor: pointer; width: 44px; height: 44px; }
.mobile-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-menu-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: var(--s-12) 0;
  font: 400 16px/1.2 var(--f-sans); color: var(--c-ink);
  border-bottom: 1px solid var(--c-turq-soft);
}
.mobile-menu-link:hover { color: var(--c-turq); }
.mobile-menu-link.is-active { font-weight: 600; color: var(--c-petrol); }
.mobile-menu-footer { margin-top: auto; padding-top: var(--s-24); }

/* Fußzeile: Petrol, weiße Schrift, drei Spalten */
.site-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-32);
  padding: var(--s-40) var(--page-x);
  background: var(--c-petrol); color: var(--c-white); font: var(--t-body-sm); line-height: 1.6;
}
.site-foot__claim { font: 400 20px/1.2 var(--f-serif); color: var(--c-white); }
.site-foot__text { margin-top: var(--s-8); color: var(--c-on-petrol); }
.site-foot__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: var(--c-white); }
.site-foot a:hover { color: var(--c-white); text-decoration: underline; }
.site-foot__meta { margin-top: var(--s-16); color: var(--c-on-petrol); }

/* ---------------------------------------------------------------------------
 * 3. Knöpfe und Links
 *    Hauptknopf (Petrol) für die eine Hauptaktion je Abschnitt, Zweitknopf
 *    (weiß mit Petrol-Rahmen) für die Alternative daneben.
 * ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 10px var(--s-24);
  border: 1px solid transparent; border-radius: var(--r-control); cursor: pointer;
  font: var(--t-button);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--sm { padding: 8px var(--s-16); font-size: 14px; }
.btn--lg { padding: 14px var(--s-32); font-size: 16px; }
.btn--primary { background: var(--c-petrol); color: var(--c-white); }
.btn--primary:hover { background: var(--c-petrol-dark); color: var(--c-white); }
.btn--secondary { background: var(--c-white); color: var(--c-petrol); border-color: var(--c-petrol); }
.btn--secondary:hover { background: var(--c-turq-soft); color: var(--c-petrol); }
.band--soft .btn--secondary:hover, .filters .btn--secondary:hover, .summary .btn--secondary:hover { background: var(--c-white); }
.btn[disabled], button[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Textlink: Petrol, unterstrichen; beim Überfahren Türkis */
.link, .link-button, .link-remove {
  font: var(--t-ui); font-weight: 600; color: var(--c-petrol);
  text-decoration: underline; text-underline-offset: 4px;
}
.link:hover, .link-button:hover, .link-remove:hover { color: var(--c-turq); }
.link-button, .link-remove { background: none; border: 0; padding: 0; cursor: pointer; align-self: flex-start; }
.link-button, .link-remove { font-weight: 400; font-size: 14px; }
.link-button.is-active { font-weight: 600; }
.link-remove { color: var(--c-ink-70); }

/* Kategorie-Marke: der eine Ort für die Logofarben (Spalte categories.color) */
.cat-tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 5px 10px; border-radius: var(--r-control);
  font: var(--t-caps); letter-spacing: var(--ls-caps); text-transform: uppercase;
  background: var(--c-olive); color: var(--c-white);
}
.cat-tag--wine { background: var(--c-wine); }
.cat-tag--gold { background: var(--c-gold); color: var(--c-olive-dark); }

/* Marken: aktive Filter, Unterkategorien */
.tag {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px var(--s-12);
  border-radius: var(--r-control); background: var(--c-turq-soft);
  font: var(--t-body-sm); font-weight: 600; color: var(--c-petrol);
}
.tag:hover { color: var(--c-petrol-dark); }
.tag__remove { opacity: .7; }

/* ---------------------------------------------------------------------------
 * 4. Bühne der Startseite, Bildplatzhalter
 * ------------------------------------------------------------------------- */
.stage {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-40); align-items: center;
  padding: var(--s-40) var(--page-x) var(--s-64);
}
.stage__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-20); }
.stage__title { font: var(--t-display); }
.stage__lead { font: var(--t-lead); max-width: 36rem; }
.stage__actions { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-12); }
.stage__media img, .stage__media .ph { width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--shadow-image); }
.stage__media .ph { aspect-ratio: 3 / 2; }

/* Platzhalterflächen — bewusst KEIN generiertes Bild, nur Fläche und Text */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-turq-soft); color: var(--c-ink-70);
  font: var(--t-caps); letter-spacing: var(--ls-caps); text-transform: uppercase;
  text-align: center; padding: var(--s-16);
}
/* Auf Türkis hell wird die Platzhalterfläche weiß, sonst verschwindet sie */
.band--soft .ph, .filters .ph, .summary .ph, .product-card .ph, .producer-card .ph { background: var(--c-white); }
.band--soft .product-card .ph, .band--soft .producer-card .ph { background: var(--c-turq-soft); }
.ph--initial { font: 400 46px/1 var(--f-serif); letter-spacing: 0; text-transform: none; color: var(--c-petrol); }
.ph--map { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--r-card); }
.todo-note { display: block; margin-top: var(--s-8); font: var(--t-body-sm); letter-spacing: 0; text-transform: none; }

/* ---------------------------------------------------------------------------
 * 5. Karten: Fläche in Türkis hell, 8 px Radius, kein Rahmen, kein Schatten
 * ------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-grid-gap); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.product-card, .producer-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-turq-soft); border-radius: var(--r-card); overflow: hidden; color: var(--c-ink);
}
.band--soft .product-card, .band--soft .producer-card { background: var(--c-white); }
a.product-card:hover { color: var(--c-ink); }
a.product-card:hover .product-card__name { color: var(--c-turq); }

.product-card__tag { position: absolute; top: var(--s-12); left: var(--s-12); z-index: 1; }
.product-card__link { display: block; color: inherit; }
.product-card__link:hover .product-card__name { color: var(--c-turq); }
.product-card__media { position: relative; aspect-ratio: var(--ratio-product); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__media .ph { position: absolute; inset: 0; }
.product-card__body { padding: var(--s-card-pad); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__producer, .producer-card__place {
  font: var(--t-caps); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-ink-70);
}
.product-card__name, .producer-card__name { font: var(--t-h3); color: var(--c-petrol); transition: color var(--transition); }
.product-card__meta, .producer-card__lead { font: var(--t-body-sm); color: var(--c-ink-70); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); margin-top: auto; padding-top: var(--s-12); }
.product-card__price { font: var(--t-price); font-size: 18px; color: var(--c-petrol); }
.product-card__base, .product-card__note { font: 400 12px/1.4 var(--f-sans); color: var(--c-ink-70); }
.product-card__soldout { font: var(--t-body-sm); color: var(--c-ink-70); }

.producer-card__media { aspect-ratio: 3 / 2; }
.producer-card__media img { width: 100%; height: 100%; object-fit: cover; }
.producer-card__media .ph { width: 100%; height: 100%; }
.producer-card__body { padding: var(--s-card-pad); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.producer-card__foot { margin-top: auto; padding-top: var(--s-12); }

.wishlist-item { display: flex; flex-direction: column; gap: var(--s-8); }
.wishlist-item .product-card { flex: 1; }

/* Faktenband: Bezeichnung klein, Wert in Serif */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-24) var(--s-32);
  padding: var(--s-32) var(--page-x); background: var(--c-turq-soft);
}
.facts__item { display: flex; flex-direction: column; gap: 4px; }
.facts__key { font: var(--t-label); color: var(--c-ink-70); }
.facts__value { font: var(--t-h3); color: var(--c-petrol); }
.facts + .band { padding-top: var(--s-band-y); }

/* ---------------------------------------------------------------------------
 * 6. Kategorieseite: Filterkarte, Ergebnisse
 * ------------------------------------------------------------------------- */
.layout-category {
  display: grid; grid-template-columns: var(--w-filters) 1fr; gap: var(--s-40); align-items: start;
  padding: 0 var(--page-x) var(--s-band-y);
}
.filters { background: var(--c-turq-soft); border-radius: var(--r-card); padding: var(--s-24); }
.filters summary { list-style: none; cursor: pointer; }
.filters summary::-webkit-details-marker { display: none; }
.filters__mobile-toggle { display: none; }
.filters__title { font: var(--t-ui); font-weight: 600; color: var(--c-petrol); }
.filters__body { display: flex; flex-direction: column; gap: var(--s-20); }
.filters__group { display: flex; flex-direction: column; gap: 4px; }
.filters__legend { font: var(--t-ui); font-weight: 600; color: var(--c-petrol); margin-bottom: 4px; }
.filters__divider { height: 1px; background: var(--c-line-strong); }
.filters__price { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.filters__actions { display: flex; flex-direction: column; gap: var(--s-8); }
.filters .field { padding: 8px 10px; }
.filters label.filter-row { margin: 0 -8px; }
.filters input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.filters input[type="checkbox"]:focus-visible + .checkbox { outline: 2px solid var(--c-turq); outline-offset: 2px; }

.filter-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px; border-radius: var(--r-control); cursor: pointer; }
.filter-row:hover { background: var(--c-white); }
.filter-row.is-selected { background: var(--c-white); }
.filter-row.is-selected .filter-row__label { font-weight: 600; }
.filter-row__label { flex: 1; font: var(--t-ui); color: var(--c-ink); }
.filter-row__count { font: var(--t-body-sm); color: var(--c-ink-70); }

.checkbox {
  width: 18px; height: 18px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--c-white); border: 1px solid var(--c-ink-25); border-radius: 3px;
  font: 600 12px/1 var(--f-sans); color: var(--c-white);
}
.checkbox.is-checked { background: var(--c-petrol); border-color: var(--c-petrol); }

.range { position: relative; height: 4px; border-radius: 2px; background: var(--c-white); margin: 10px 6px; }
.range__fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--c-petrol); }
.range__handle { position: absolute; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-petrol); }

.results { min-width: 0; }
.results__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); flex-wrap: wrap; margin-bottom: var(--s-20); }
.results__count { font: var(--t-body-sm); color: var(--c-ink-70); }
.results__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); margin-bottom: var(--s-16); }
.results__sort { display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; }
.results__sort select { width: auto; }
.results__empty { font: var(--t-lead); color: var(--c-ink-70); padding: var(--s-8) 0 var(--s-16); }
.results .card-grid, .results__count + .card-grid { margin-top: var(--s-16); }
.load-more { display: flex; justify-content: center; margin-top: var(--s-32); }

/* ---------------------------------------------------------------------------
 * 7. Produktseite
 * ------------------------------------------------------------------------- */
.product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-48); align-items: start;
  padding: var(--s-24) var(--page-x) var(--s-band-y);
}
.product-media { display: flex; flex-direction: column; gap: var(--s-16); align-items: center; }
.product-media__main { width: 100%; max-width: 460px; aspect-ratio: var(--ratio-product); border-radius: var(--r-card); overflow: hidden; background: var(--c-turq-soft); }
.product-media__main img { width: 100%; height: 100%; object-fit: cover; }
.product-media__main .ph { width: 100%; height: 100%; }
.product-media__thumbs { display: flex; gap: var(--s-12); flex-wrap: wrap; justify-content: center; }
.product-media__thumb {
  width: 68px; aspect-ratio: var(--ratio-product); padding: 0; background: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--r-control); overflow: hidden;
  transition: border-color var(--transition);
}
.product-media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-media__thumb:hover { border-color: var(--c-turq); }
.product-media__thumb.is-active { border-color: var(--c-petrol); }

.product-info { display: flex; flex-direction: column; gap: var(--s-16); min-width: 0; }
.product-info__producer { font: var(--t-caps); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-ink-70); }
.product-info__producer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.product-info__producer a:hover { color: var(--c-petrol); }
.product-info__title { font: var(--t-h1); }
.product-info__subtitle { font: var(--t-lead); color: var(--c-ink); }
.product-info__meta { font: var(--t-body-sm); color: var(--c-ink-70); }
.product-info .prose { font: var(--t-body); }
.product-info__price { display: flex; align-items: baseline; gap: var(--s-12); flex-wrap: wrap; margin-top: var(--s-8); }
.product-info__base { font: var(--t-body-sm); color: var(--c-ink-70); }
.product-info__buy { display: flex; gap: var(--s-16); align-items: flex-end; flex-wrap: wrap; }
.product-info__buy .field-block { margin: 0; }
.product-info__buy .btn { flex: 1; min-width: 200px; }
.product-info__notes { display: flex; flex-direction: column; gap: var(--s-8); padding-top: var(--s-16); border-top: 1px solid var(--c-line); }

.promise { display: flex; align-items: flex-start; gap: 10px; font: var(--t-body-sm); color: var(--c-ink-70); }
.promise::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-turq); margin-top: 8px; flex: none; }
.free-progress__text, .shipping-free-hint { font: var(--t-body-sm); color: var(--c-ink-70); }

/* Auswahlkacheln für Varianten */
.sizes { display: flex; flex-wrap: wrap; gap: var(--s-12); }
.size-tile {
  display: flex; flex-direction: column; gap: 4px; min-width: 120px; min-height: 44px;
  padding: var(--s-12) var(--s-16); cursor: pointer;
  background: var(--c-white); border: 1px solid var(--c-ink-25); border-radius: var(--r-control);
  transition: border-color var(--transition), background var(--transition);
}
.size-tile:hover { border-color: var(--c-turq); }
.size-tile.is-selected, .size-tile:has(input:checked) { background: var(--c-turq-soft); border-color: var(--c-petrol); }
.size-tile.is-disabled { background: var(--c-white); border-color: var(--c-turq-soft); cursor: not-allowed; }
.size-tile.is-disabled .size-tile__label { color: var(--c-ink-70); text-decoration: line-through; }
.size-tile.is-disabled .size-tile__price { color: var(--c-ink-70); }
.size-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.size-tile:has(input:focus-visible) { outline: 2px solid var(--c-turq); outline-offset: 2px; }
.size-tile__label { font: var(--t-ui); font-weight: 600; color: var(--c-ink); }
.size-tile__price { font: var(--t-price); color: var(--c-petrol); }
.size-tile__base { font: 400 12px/1.3 var(--f-sans); color: var(--c-ink-70); }

/* Merkmalsmarken */
.marks { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.mark { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-control); background: var(--c-turq-soft); font: var(--t-body-sm); color: var(--c-ink); }
.band--soft .mark { background: var(--c-white); }

/* Erzeugerkurzprofil auf der Produktseite */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-48); }
.mini-producer { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-20); align-items: start; }
.mini-producer__portrait { aspect-ratio: var(--ratio-portrait); border-radius: var(--r-card); overflow: hidden; }
.mini-producer__portrait img { width: 100%; height: 100%; object-fit: cover; }
.mini-producer__portrait .ph { width: 100%; height: 100%; }
.mini-producer__body { display: flex; flex-direction: column; gap: var(--s-12); align-items: flex-start; }

/* ---------------------------------------------------------------------------
 * 8. Warenkorb und Kasse
 * ------------------------------------------------------------------------- */
.layout-checkout {
  display: grid; grid-template-columns: 1fr var(--w-summary); gap: var(--s-48); align-items: start;
  padding: 0 var(--page-x) var(--s-band-y);
}
.checkout-main { min-width: 0; }

/* Schrittanzeige rechts im Seitenkopf */
.steps { display: flex; align-items: center; gap: var(--s-12); padding-bottom: 6px; }
.steps__item { display: inline-flex; align-items: center; gap: 8px; font: var(--t-body-sm); color: var(--c-ink-70); }
.steps__item.is-done { color: var(--c-ink); }
.steps__item.is-current { color: var(--c-petrol); font-weight: 600; }
.steps__num {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--c-ink-30);
  display: flex; align-items: center; justify-content: center; font: 600 13px/1 var(--f-sans); color: var(--c-ink-70);
}
.steps__item.is-done .steps__num { border-color: var(--c-petrol); color: var(--c-petrol); }
.steps__item.is-current .steps__num { background: var(--c-petrol); border-color: var(--c-petrol); color: var(--c-white); }
.steps__link { width: 24px; height: 1px; background: var(--c-ink-30); }

.line-item { display: grid; grid-template-columns: 88px 1fr auto; gap: var(--s-20); padding: var(--s-20) 0; border-bottom: 1px solid var(--c-line); align-items: start; }
.line-item:first-child { padding-top: 0; }
.line-item__thumb { border-radius: var(--r-card); overflow: hidden; background: var(--c-turq-soft); }
.line-item__thumb .product-card__media { display: block; aspect-ratio: var(--ratio-product); }
.line-item__thumb .ph { position: absolute; inset: 0; }
.line-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.line-item__title { font: var(--t-h3); color: var(--c-petrol); }
a.line-item__title:hover { color: var(--c-turq); }
.line-item__meta { font: var(--t-body-sm); color: var(--c-ink-70); }
.line-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-12); }
.line-item__sum { font: var(--t-price); font-size: 18px; color: var(--c-petrol); white-space: nowrap; }
.line-item__actions { display: flex; gap: var(--s-16); align-items: center; flex-wrap: wrap; margin-top: 4px; }
.qty-form .field-block { margin: 0; }

.cart-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-24); flex-wrap: wrap; padding-top: var(--s-24); }
.coupon { display: flex; gap: var(--s-8); align-items: flex-end; flex-wrap: wrap; }
.coupon .field-block { margin: 0; }
.coupon .field { width: 220px; }

/* Fortschritt bis zur Versandkostenfrei-Schwelle */
.free-progress { display: flex; flex-direction: column; gap: var(--s-8); }
.free-progress--spaced { padding-top: var(--s-24); }
.free-progress__track { height: 4px; border-radius: 2px; background: var(--c-turq-soft); overflow: hidden; }
.free-progress__fill { height: 4px; background: var(--c-petrol); }
.free-banner { padding: var(--s-16) var(--s-20); border-radius: var(--r-card); background: var(--c-turq-soft); font: var(--t-body); font-weight: 600; color: var(--c-petrol); }

/* Zusammenfassung: Karte in Türkis hell, bleibt beim Scrollen stehen */
.summary {
  position: sticky; top: var(--s-16);
  background: var(--c-turq-soft); border-radius: var(--r-card); padding: var(--s-24);
  display: flex; flex-direction: column; gap: var(--s-12);
}
.summary__title { font: var(--t-h2-sm); }
.summary__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-16); font: var(--t-ui); line-height: 1.5; color: var(--c-ink); }
.summary__row--note, .summary__row--tax { font: var(--t-body-sm); color: var(--c-ink-70); }
.summary__divider { height: 1px; background: var(--c-line-strong); }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-16); font: 600 18px/1.3 var(--f-sans); color: var(--c-ink); }
.summary__total .total { font: var(--t-price-lg); font-size: 22px; }
.summary .btn { margin: var(--s-8) 0; }
.summary__promises { display: flex; flex-direction: column; gap: var(--s-8); }
.paymarks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-8); }
.paymark { padding: 4px 8px; border-radius: var(--r-control); background: var(--c-white); font: 400 12px/1.3 var(--f-sans); color: var(--c-ink-70); }

.checkout-section { padding-bottom: var(--s-24); margin-bottom: var(--s-24); border-bottom: 1px solid var(--c-line); }
.checkout-section .h3 { margin-bottom: var(--s-16); }

/* Prüfblock im letzten Kassenschritt: Bezeichnung links, Wert, „Ändern" */
.review-block { padding: var(--s-16) 0; border-bottom: 1px solid var(--c-line); display: grid; grid-template-columns: 180px 1fr auto; gap: var(--s-20); align-items: start; }
.review-block:first-child { padding-top: 0; }
.review-block__key { font: var(--t-label); color: var(--c-ink-70); padding-top: 2px; }
.review-block__value { font: var(--t-body); color: var(--c-ink); }
.review-block__value--tight { line-height: 1.55; }

/* Zahlart-Auswahlkacheln */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); }
.choice {
  display: flex; align-items: center; gap: var(--s-12); min-height: 44px; padding: var(--s-12) var(--s-16);
  background: var(--c-white); border: 1px solid var(--c-ink-25); border-radius: var(--r-control); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.choice:hover { border-color: var(--c-turq); }
.choice.is-selected, .choice:has(input:checked) { background: var(--c-turq-soft); border-color: var(--c-petrol); }
.choice input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.choice:has(input:focus-visible) { outline: 2px solid var(--c-turq); outline-offset: 2px; }
.choice__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--c-ink-30); background: var(--c-white); flex: none; display: flex; align-items: center; justify-content: center; }
.choice__dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.choice.is-selected .choice__dot, .choice:has(input:checked) .choice__dot { border-color: var(--c-petrol); }
.choice.is-selected .choice__dot::after, .choice:has(input:checked) .choice__dot::after { background: var(--c-petrol); }
.choice__body { display: flex; flex-direction: column; gap: 2px; }
.choice__label { font: var(--t-ui); font-weight: 600; color: var(--c-ink); }
.choice__desc { font: var(--t-body-sm); color: var(--c-ink-70); }

.bank-box { padding: var(--s-20) var(--s-24); border-radius: var(--r-card); background: var(--c-turq-soft); display: flex; flex-direction: column; gap: var(--s-16); }

/* ---------------------------------------------------------------------------
 * 9. Erzeugerprofil
 * ------------------------------------------------------------------------- */
.hero-wide { padding: var(--s-24) var(--page-x) 0; }
.hero-wide img, .hero-wide .ph { width: 100%; height: 420px; object-fit: cover; border-radius: var(--r-card); }

.producer-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-48); align-items: center;
  padding: var(--s-48) var(--page-x);
}
.producer-intro__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-16); }
.producer-intro__name { font: var(--t-h1); }
.producer-intro__lead { font: var(--t-lead); max-width: 36rem; }
.producer-intro__media { aspect-ratio: var(--ratio-portrait); max-height: 34rem; justify-self: center; width: 100%; border-radius: var(--r-card); overflow: hidden; }
.producer-intro__media img, .producer-intro__media .ph { width: 100%; height: 100%; object-fit: cover; }

/* Datenliste: Bezeichnung links, Wert rechts, Zeilen durch feine Linien getrennt */
.visit-list { display: flex; flex-direction: column; margin: 0; }
.visit-row { display: grid; grid-template-columns: 160px 1fr; gap: var(--s-16); align-items: start; padding: var(--s-12) 0; border-bottom: 1px solid var(--c-line); }
.band--soft .visit-row, .bank-box .visit-row { border-bottom-color: var(--c-line-strong); }
.visit-row:last-child { border-bottom: 0; }
.visit-row dt { font: var(--t-label); color: var(--c-ink-70); padding-top: 2px; }
.visit-row dd { margin: 0; font: var(--t-body); color: var(--c-ink); }
.zone-legend { margin-top: var(--s-8); max-width: var(--w-text-max); }

.split-2 img { border-radius: var(--r-card); }
.map-credit { margin-top: 8px; font: 400 12px/1.4 var(--f-sans); color: var(--c-ink-70); }
.map-credit a { color: inherit; text-decoration: underline; }

.quad { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-12); }
.quad > * { position: relative; min-height: 220px; border-radius: var(--r-card); overflow: hidden; }
.quad img, .quad .ph { width: 100%; height: 100%; object-fit: cover; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: var(--s-16); }
.mosaic > * { border-radius: var(--r-card); overflow: hidden; }
.mosaic img, .mosaic .ph { width: 100%; height: 100%; object-fit: cover; }
.mosaic .span-2 { grid-column: span 2; }
.mosaic .tall { grid-row: span 2; }

.quote { display: flex; flex-direction: column; align-items: center; gap: var(--s-16); text-align: center; }
.quote__text { font: var(--t-quote); color: var(--c-petrol); max-width: 46rem; }
.quote__author { font: var(--t-body-sm); color: var(--c-ink-70); }

/* ---------------------------------------------------------------------------
 * 10. Formulare und Tabellen
 *     Beschriftung über dem Feld, Feld weiß mit feinem Rahmen, Fokus Türkis.
 *     Auswahl, Datum und Zahl nutzen die Bedienelemente des Browsers.
 * ------------------------------------------------------------------------- */
.field {
  width: 100%; background: var(--c-white); color: var(--c-ink);
  border: 1px solid var(--c-ink-25); border-radius: var(--r-control);
  padding: 10px 12px; min-height: 44px; font: 400 16px/1.4 var(--f-sans);
  transition: border-color var(--transition);
}
.field::placeholder { color: var(--c-ink-70); }
.field:focus { border-color: var(--c-turq); }
.field[disabled] { opacity: .5; }
textarea.field { min-height: 110px; line-height: 1.6; }
.field--qty { width: 96px; }
.field.is-invalid, .is-invalid .field { border-color: var(--c-error); }

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-block { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-field-gap); }
.field-block > label, .field-block > .label { display: block; font: var(--t-label); color: var(--c-ink-70); }
.field-row { display: grid; gap: var(--s-field-gap); }
.field-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-field-gap); }
.field-row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--s-field-gap); }
.field-hint { font: var(--t-body-sm); color: var(--c-ink-70); }
.field-error { font: var(--t-body-sm); color: var(--c-error); }
.required-mark { color: var(--c-error); }
.fieldset-plain { border: 0; padding: 0; margin: 0; }
.fieldset-plain legend { margin-bottom: var(--s-8); padding: 0; }
.form-narrow { max-width: var(--w-text-max); margin-top: var(--s-24); }
.honeypot { position: absolute; left: -9999px; top: -9999px; }

/* Pflichthaken */
.check-line { display: flex; align-items: flex-start; gap: var(--s-12); padding: var(--s-8) 0; font: var(--t-body); color: var(--c-ink); }
.check-line input[type="checkbox"] { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--c-petrol); flex: none; }
.field-block > label.check-line { display: flex; font: var(--t-body); color: var(--c-ink); }
.legal-note { margin-top: var(--s-16); font: var(--t-body-sm); }

.search-form { margin-bottom: var(--s-20); }
.search-form .field { width: 280px; max-width: 100%; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: var(--s-12); border-bottom: 1px solid var(--c-line); text-align: left; font: var(--t-ui); line-height: 1.5; color: var(--c-ink); vertical-align: top; }
.table th { font: var(--t-body-sm); font-weight: 600; color: var(--c-ink-70); }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.provisional-note { margin-top: var(--s-16); font: var(--t-body-sm); }

/* ---------------------------------------------------------------------------
 * 11. Hilfsklassen, Fehlerseiten
 * ------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: var(--s-8) var(--s-12); background: var(--c-white); color: var(--c-petrol); font: var(--t-button); }
.skip-link:focus { left: var(--s-8); top: var(--s-8); }

.error-page { min-height: 50vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s-16); }
.error-page__title { font: var(--t-h1); }
.error-page__text { font: var(--t-lead); max-width: var(--w-text-max); }

/* ---------------------------------------------------------------------------
 * 12. Responsive: eine Spalte auf dem Handy, zwei ab 640 px, drei bis vier
 *     Karten ab 1024 px. Druck.
 * ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .layout-category, .layout-checkout, .product-layout, .producer-intro, .split-2 { gap: var(--s-32); }
  .results .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .stage, .layout-category, .layout-checkout, .product-layout, .producer-intro,
  .split-2, .choices, .field-row--2, .field-row--3 { grid-template-columns: 1fr; }
  .stage { padding-top: var(--s-32); padding-bottom: var(--s-48); }
  .stage__media { order: -1; }
  .summary { position: static; }
  .review-block { grid-template-columns: 1fr auto; gap: var(--s-4) var(--s-16); }
  .review-block__key { grid-column: 1 / -1; }
  .visit-row { grid-template-columns: 1fr; gap: 2px; }
  .site-foot { grid-template-columns: 1fr; gap: var(--s-24); }
  .hero-wide img, .hero-wide .ph { height: 300px; }

  /* Filterkarte wird einklappbar (details/summary) */
  .filters__mobile-toggle { display: block; }
  .filters__body { display: none; margin-top: var(--s-16); }
  .filters[open] .filters__body { display: flex; }
}

@media (max-width: 760px) {
  .site-head__burger { display: inline-flex; }
  .site-nav, .site-head:not(.site-head--checkout) > .lang-menu { display: none; }
  .site-head { gap: var(--s-8); }
  .site-head__cart, .site-head__service { margin-left: auto; }
  .logo__img { height: 44px; }
  .steps__label { display: none; }
  .band { padding-top: var(--s-32); padding-bottom: var(--s-32); }
  .band__title, .h2 { font: var(--t-h2-sm); }
  .band__head { margin-bottom: var(--s-24); }
  .page-head { padding-top: var(--s-24); padding-bottom: var(--s-24); }
  .line-item { grid-template-columns: 72px 1fr; gap: var(--s-12) var(--s-16); }
  .line-item__side { grid-column: 2; align-items: flex-start; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .quote__text { font: var(--t-h2-sm); line-height: 1.4; }
  .tiles--foot { margin-top: var(--s-40); }
}

@media (max-width: 639px) {
  .card-grid, .card-grid--2, .card-grid--4, .results .card-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .product-info__buy .btn { min-width: 100%; }
  .sizes { flex-direction: column; }
  .size-tile { width: 100%; }
  .mini-producer { grid-template-columns: 96px 1fr; }
  .cart-foot { flex-direction: column; align-items: stretch; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .mosaic .span-2 { grid-column: span 1; }
}

@media print {
  .site-head, .site-foot, .tiles, .mobile-menu, .mobile-menu-overlay, .skip-link { display: none; }
}
