/* ===========================================================================
 * alentejo.love — eigene Ergänzungen zum gelieferten Design-System.
 *
 * REGEL: tokens.css und components.css sind unverändert aus ../design/css/
 * übernommen und werden NIE hier überschrieben. Diese Datei enthält nur, was
 * components.css nicht abdeckt:
 *   1. selbst gehostete Schriften (DSGVO — kein Google-Fonts-Link)
 *   2.–9. Bausteine der sechs Seitenvorlagen, die in components.css fehlen
 *   10. Formularfehler, Tabellen, Hilfsklassen, Fehlerseiten
 *   11. Verhalten unter 900 px (components.css hat nur einen Bruchpunkt)
 *
 * Portiert aus dem Yii-Stand (frontend/web/css/site.css); die Yii-/Bootstrap-
 * Kompatibilitätsschicht ist entfallen. Es werden ausschließlich
 * Token-Variablen benutzt: var(--c-*), var(--t-*), var(--s-*). Keine neuen
 * Farbwerte, keine Verläufe, keine Schlagschatten, keine Rundungen außer
 * var(--r-button) und Rundmarken.
 * =========================================================================== */

/* ---------------------------------------------------------------------------
 * 1. Schriften — selbst gehostet (DSGVO, siehe docs/10-design.md)
 *    Public Sans liegt als variable Schrift vor (ein Datei fuer 300/400/500),
 *    Spectral als drei statische Schnitte 200/300/400.
 * ------------------------------------------------------------------------- */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/public-sans-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/spectral-latin-200.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/spectral-latin-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------
 * 2. Seitengeruest
 * ------------------------------------------------------------------------- */
html { background: var(--c-cream); }
body { min-height: 100vh; }

/* Referenzbreite 1080 px, ab 1200 px zentriert, darunter fliessend (Spez. 4) */
.page { width: 100%; }
@media (min-width: 1200px) {
  .page { max-width: var(--w-content); }
}

.stack > * + * { margin-top: var(--s-16); }
.text-max { max-width: var(--w-text-max); }
.prose { font: var(--t-body); color: var(--c-text); max-width: var(--w-text-max); }
.prose p + p { margin-top: var(--s-16); }
.prose h2 { font: var(--t-h2); color: var(--c-olive-dark); margin: var(--s-32) 0 var(--s-12); }
.prose h3 { font: var(--t-h3); color: var(--c-olive-dark); margin: var(--s-24) 0 var(--s-12); }
.prose ul, .prose ol { margin: var(--s-12) 0; padding-left: var(--s-20); }
.prose li { margin-bottom: var(--s-4); }
.prose a { border-bottom: 1px solid var(--c-gold); }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border-bottom: 1px solid var(--c-line); padding: var(--s-8) var(--s-12); text-align: left; }

.band__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-24); margin-bottom: var(--s-24); }
.band__title { font: var(--t-h3); color: var(--c-olive-dark); }
.band--olive .band__title, .band--dark .band__title { color: var(--c-cream); }
.band__title--h1 { font: var(--t-h1); }
.band__title--h2 { font: var(--t-h2); }

.h1 { font: var(--t-h1); color: var(--c-olive-dark); }
.h2 { font: var(--t-h2); color: var(--c-olive-dark); }
.h3 { font: var(--t-h3); color: var(--c-olive-dark); }
.center { text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-20); flex-wrap: wrap; }
.nowrap { white-space: nowrap; }

/* Mindestgroesse antippbarer Flaechen (Spez. 9) */
.btn, .qty button, .site-nav a, .filter-row, .choice { min-height: 44px; }
.site-nav a { display: inline-flex; align-items: center; }
.btn { text-align: center; }

/* Flash-Meldungen */
.flashes { padding: var(--s-16) var(--s-page-x) 0; }
.flash { padding: var(--s-14) var(--s-16); font: var(--t-body-sm); border-left: 3px solid var(--c-olive); background: var(--c-cream); color: var(--c-text); }
.flash + .flash { margin-top: var(--s-8); }
.flash--danger, .flash--error { border-left-color: var(--c-wine); color: var(--c-wine); }
.flash--warning { border-left-color: var(--c-gold); }

/* ---------------------------------------------------------------------------
 * 3. Kopfzeile, Menue, Fusszeile
 * ------------------------------------------------------------------------- */
.site-head { position: relative; }
/* Logo: Bildzeichen und Wortmarke als ein Bild (hell, für dunklen Grund) */
.logo { display: block; flex: none; }
.logo__img { display: block; width: auto; height: 52px; }
.site-head__burger {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.site-head__burger span { display: block; width: 20px; height: 1px; background: var(--c-cream); }
.site-head__burger span + span { margin-top: 5px; }
.site-nav__main { display: flex; align-items: center; gap: var(--s-26); flex-wrap: wrap; }
.site-nav__cart { position: relative; }
/* .site-nav a (components.css) ist spezifischer als .btn--gold und färbt die
   Schrift sonst hellgrün auf Gold (Kontrast 1,6). */
.site-nav a.btn--gold { color: var(--c-olive-dark); }
.site-nav a.btn--gold:hover { color: var(--c-gold); }
.cart-counter { margin-left: 6px; }

.site-foot { flex-wrap: wrap; align-items: flex-start; }
.site-foot__col { display: flex; flex-direction: column; gap: var(--s-12); }
.site-foot__links a { color: var(--c-on-olive-nav); }
.site-foot__links a:hover { color: var(--c-cream); }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: var(--s-12) var(--s-16); font: 300 12px/1.4 var(--f-sans); }
.site-foot__meta { font: 300 12px/1.6 var(--f-sans); color: var(--c-on-olive-nav); text-align: right; }

/* Sprachumschalter — genau EINE Instanz, dezent in der Fusszeile (Spez. 5.1) */
.langs { display: flex; align-items: center; gap: var(--s-12); font: 300 12px/1 var(--f-sans); }
.langs a { color: var(--c-on-olive-nav); letter-spacing: .1em; text-transform: uppercase; }
.langs a:hover { color: var(--c-cream); }
.langs a.is-active { color: var(--c-gold); border-bottom: 1px solid var(--c-gold); padding-bottom: 3px; }

/* Mobiles Schubladenmenue (public/js/site.js) */
.mobile-menu-overlay {
  /* Kein neuer Farbwert: die Token-Farbe mit Deckkraft statt eines eigenen Transparenztons. */
  position: fixed; inset: 0; background: var(--c-olive-dark);
  opacity: 0; visibility: hidden; transition: opacity var(--transition); z-index: 90;
}
.mobile-menu-overlay.active { opacity: .55; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 84vw;
  background: var(--c-olive-dark); z-index: 91;
  transform: translateX(-100%); transition: transform var(--transition);
  display: flex; flex-direction: column; padding: var(--s-22);
  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-24); }
.mobile-menu-close { background: none; border: 0; color: var(--c-cream); font: 300 22px/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: 44px; padding: var(--s-12) 0;
  font: 300 15px/1 var(--f-sans); color: var(--c-on-olive-nav);
  border-bottom: 1px solid var(--c-hairline-on-dark);
}
.mobile-menu-link:hover, .mobile-menu-link.is-active { color: var(--c-gold); }
.mobile-menu-footer { margin-top: auto; padding-top: var(--s-24); }

/* Brotkrumen */
.crumbs { padding: var(--s-14) var(--s-page-x); background: var(--c-cream); font: 300 12px/1.4 var(--f-sans); color: var(--c-text-faint); }
.crumbs a { color: var(--c-text-faint); }
.crumbs a:hover { color: var(--c-olive-dark); }
.crumbs__sep { padding: 0 8px; }

/* ---------------------------------------------------------------------------
 * 4. Buehne und Bildplatzhalter
 * ------------------------------------------------------------------------- */
.stage__actions { display: flex; flex-wrap: wrap; gap: var(--s-14); }

/* Platzhalterflaechen — bewusst KEIN generiertes Bild, nur Flaeche und Text.
   Ueberall dort, wo noch kein echtes Foto vorliegt. */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-cream); color: var(--c-text-faint);
  font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  text-align: center; padding: var(--s-16);
}
/* Auf cremefarbenem Grund wird die Platzhalterfläche weiß, sonst verschwindet
   sie in der Bandfarbe. */
.band--cream .ph, .card-grid--on-cream .ph, .filters .ph { background: var(--c-white); }
.ph--olive { background: var(--c-olive); color: var(--c-on-olive-faint); }
.ph--dark { background: var(--c-olive-dark); color: var(--c-on-olive-faint); }
.ph--initial { font: 300 46px/1 var(--f-serif); letter-spacing: 0; text-transform: none; color: var(--c-text-faint); }
.stage__media .ph { width: 100%; height: 100%; min-height: 520px; }
.todo-note {
  display: block; margin-top: var(--s-8);
  font: var(--t-body-sm); letter-spacing: 0; text-transform: none;
}

/* ---------------------------------------------------------------------------
 * 5. Produktkarte
 * ------------------------------------------------------------------------- */
.product-card { position: relative; }
.product-card__link { display: block; color: inherit; }
.product-card__link:hover .product-card__name { color: var(--c-olive); }
.product-card__media .ph { position: absolute; inset: 0; }
.product-card__price { font: var(--t-price); color: var(--c-wine); }
.product-card__base { font: 300 11px/1.4 var(--f-sans); color: var(--c-text-faint); }
.product-card__note { font: 300 11px/1.4 var(--f-sans); color: var(--c-text-faint); }
.product-card__soldout { font: var(--t-body-sm); color: var(--c-text-faint); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Kategoriestreifen ueber die Design-Farbe der Kategorie (Spalte design_color) */
.strip--olive { background: var(--c-olive); color: var(--c-cream); }
.strip--wine { background: var(--c-wine); color: var(--c-cream); }
.strip--gold { background: var(--c-gold); color: var(--c-olive-dark); }

/* ---------------------------------------------------------------------------
 * 6. Kategorieseite: Kopfband, Filter, Ergebnisse
 * ------------------------------------------------------------------------- */
.cat-head__count { font: 300 13px/1.4 var(--f-sans); color: var(--c-cream); text-align: right; white-space: nowrap; }
.cat-head--gold .cat-head__count { color: var(--c-olive-dark); }
.cat-head--olive .cat-head__lead { color: var(--c-on-olive); }
.cat-head__crumbs { font: 300 12px/1 var(--f-sans); color: var(--c-cream); opacity: .8; margin-bottom: var(--s-12); }
.cat-head__crumbs a { color: inherit; }
.cat-head--gold .cat-head__crumbs { color: var(--c-olive-dark); }
.cat-head__body { display: flex; flex-direction: column; gap: var(--s-16); }

.filters summary { list-style: none; cursor: pointer; }
.filters summary::-webkit-details-marker { display: none; }
.filters__title { font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-faint); }
.filters__legend { font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-faint); }
.filters label.filter-row { margin: 0; }
.filters input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.filters input[type="checkbox"]:focus-visible + .checkbox { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.filters .field { padding: 10px; }
.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__mobile-toggle { display: none; }
.filters__body { display: flex; flex-direction: column; gap: var(--s-20); }

.results { padding: var(--s-32) var(--s-page-x); }
.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: 300 13px/1 var(--f-sans); color: var(--c-text-faint); }
.results__tags { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-bottom: var(--s-16); }
.results__sort { display: flex; align-items: center; gap: var(--s-8); }
.results__sort select { width: auto; }
.results__empty { font: var(--t-body); color: var(--c-text-muted); padding: var(--s-24) 0; }
.load-more { display: flex; justify-content: center; margin-top: var(--s-32); }

/* Seitenblaettern (resources/views/vendor/pagination) */
.pagination { display: flex; gap: var(--s-8); list-style: none; margin: var(--s-24) 0 0; padding: 0; justify-content: center; }
.pagination li a, .pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 var(--s-12);
  border: 1px solid var(--c-cork); font: var(--t-ui); color: var(--c-olive-dark);
  transition: border-color var(--transition), background var(--transition);
}
.pagination li a:hover { border-color: var(--c-gold); }
.pagination li.active span { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-cream); }
.pagination li.disabled span { color: var(--c-text-faint); border-color: var(--c-line); }

/* ---------------------------------------------------------------------------
 * 7. Produktseite
 * ------------------------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; }
.product-media { background: var(--c-olive); padding: var(--s-40) var(--s-44); display: flex; flex-direction: column; gap: var(--s-24); align-items: center; justify-content: center; }
.product-media__main { width: 100%; max-width: 360px; aspect-ratio: var(--ratio-product); }
.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); border: 2px solid transparent; padding: 0; background: none; cursor: pointer; transition: border-color var(--transition); }
.product-media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-media__thumb:hover { border-color: var(--c-gold); }
.product-media__thumb.is-active { border-color: var(--c-gold); }

.product-info { padding: var(--s-40) var(--s-44); display: flex; flex-direction: column; gap: var(--s-18); background: var(--c-white); }
.cat-flag { align-self: flex-start; padding: 8px 14px; font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
.product-info__producer { font: var(--t-label); letter-spacing: .18em; text-transform: uppercase; color: var(--c-text-faint); }
.product-info__producer a { color: inherit; border-bottom: 1px solid var(--c-gold); }
.product-info__title { font: var(--t-h1); color: var(--c-olive-dark); }
.product-info__subtitle { font: var(--t-body); color: var(--c-text-muted); }
.product-info__meta { font: var(--t-body-sm); color: var(--c-text-muted); }
.product-info__price { display: flex; align-items: baseline; gap: var(--s-12); flex-wrap: wrap; }
.product-info__price .total { color: var(--c-wine); }
.product-info__base { font: var(--t-body-sm); color: var(--c-text-muted); }
.product-info__buy { display: flex; gap: var(--s-14); align-items: stretch; flex-wrap: wrap; }
.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-8); border-top: 1px solid var(--c-line); }

/* Auswahlkacheln fuer Varianten (Spez. 5.5) */
.sizes { display: flex; flex-wrap: wrap; gap: var(--s-12); }
.size-tile {
  display: flex; flex-direction: column; gap: 4px; min-width: 116px; min-height: 44px;
  padding: var(--s-12) var(--s-16); cursor: pointer;
  background: var(--c-white); border: 1px solid var(--c-cork);
  transition: border-color var(--transition), background var(--transition);
}
.size-tile:hover { border-color: var(--c-gold); }
.size-tile.is-selected { background: var(--c-cream); border-color: var(--c-gold); }
.size-tile.is-disabled { background: var(--c-white); border-color: var(--c-line); color: var(--c-text-faint); cursor: not-allowed; }
.size-tile.is-disabled .size-tile__label { color: var(--c-text-faint); text-decoration: line-through; }
.size-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.size-tile input:focus-visible ~ .size-tile__label { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.size-tile__label { font: var(--t-ui); color: var(--c-olive-dark); }
.size-tile__price { font: var(--t-price); color: var(--c-wine); }
.size-tile__base { font: 300 11px/1.3 var(--f-sans); color: var(--c-text-faint); }

/* Merkmalsmarken */
.marks { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.mark { display: inline-flex; align-items: center; padding: 7px 12px; font: 400 12px/1 var(--f-sans); color: var(--c-olive-dark); border: 1px solid var(--c-cork); background: var(--c-white); }

/* Erzeugerkurzprofil auf der Produktseite */
.mini-producer { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-20); align-items: start; }
.mini-producer__portrait { aspect-ratio: var(--ratio-portrait); }
.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; }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-40); }

/* ---------------------------------------------------------------------------
 * 8. Warenkorb und Kasse
 * ------------------------------------------------------------------------- */
.checkout-main { padding: var(--s-32) var(--s-page-x); }
.steps-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-24); flex-wrap: wrap; }
.steps-band__title { font: var(--t-h1); color: var(--c-cream); }
.steps-band__eyebrow { font: var(--t-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-gold); margin-bottom: var(--s-8); }

.line-item__title { font: 400 18px/1.2 var(--f-serif); color: var(--c-olive-dark); }
.line-item__meta { font: var(--t-body-sm); color: var(--c-text-muted); }
.line-item__body { display: flex; flex-direction: column; gap: 6px; }
.line-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-12); }
.line-item__sum { font: var(--t-price); color: var(--c-wine); }
.line-item__actions { display: flex; gap: var(--s-12); align-items: center; }
.link-remove { background: none; border: 0; padding: 0; cursor: pointer; font: 300 12px/1 var(--f-sans); color: var(--c-wine); border-bottom: 1px solid var(--c-wine); }
.link-remove:hover { color: var(--c-olive-dark); border-bottom-color: var(--c-olive-dark); }
.line-item__thumb .ph { width: 100%; aspect-ratio: var(--ratio-product); }

.cart-foot { display: flex; align-items: flex-start; 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; }
.coupon .field { width: 180px; }

/* Fortschritt bis zur Versandkostenfrei-Schwelle */
.free-progress { display: flex; flex-direction: column; gap: var(--s-8); }
.free-progress__track { height: 3px; background: var(--c-cork); }
.free-progress__fill { height: 3px; background: var(--c-olive); }
.free-progress__text, .shipping-free-hint { font: var(--t-body-sm); color: var(--c-text-muted); }
.band--olive .shipping-free-hint, .band--dark .shipping-free-hint { color: var(--c-on-olive); }

/* Zusammenfassung */
.summary__divider { height: 1px; background: var(--c-line); }
.summary__total .total { font: var(--t-price-lg); color: var(--c-wine); }
.summary__promises { display: flex; flex-direction: column; gap: var(--s-8); }
.paymarks { display: flex; flex-wrap: wrap; gap: 6px; }
.paymark { padding: 5px 8px; font: 400 10px/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted); border: 1px solid var(--c-cork); background: var(--c-white); }

/* Formulare (Spez. 5.5) */
.field-block { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s-field-gap); }
.field-block > label { font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-faint); display: block; }
.field-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-field-gap); }
.field-row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-field-gap); }
textarea.field { min-height: 110px; font: var(--t-body); line-height: 1.6; }
select.field { appearance: none; background-image: none; }
.required-mark { color: var(--c-wine); }

/* Pflichthaken */
.check-line { display: flex; align-items: flex-start; gap: var(--s-12); padding: var(--s-12) 0; font: var(--t-body-sm); color: var(--c-text); }
.check-line input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-olive); flex: none; }
.check-line a { border-bottom: 1px solid var(--c-gold); }

/* Pruefblock im letzten Kassenschritt */
.review-block { padding: var(--s-20) 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__key { font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-faint); }
.review-block__value { font: var(--t-body); color: var(--c-text); }
.review-block__value--tight { line-height: 1.55; }

/* Zahlart-Auswahlkacheln */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); }
.choice input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.choice input[type="radio"]:focus-visible ~ .choice__dot { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.choice__body { display: flex; flex-direction: column; gap: 4px; }
.choice__label { font: var(--t-ui); color: var(--c-olive-dark); }
.choice__desc { font: 300 12px/1.4 var(--f-sans); color: var(--c-text-muted); }

/* ---------------------------------------------------------------------------
 * 9. Erzeugerprofil
 * ------------------------------------------------------------------------- */
.hero-wide .ph { width: 100%; height: 100%; }
.producer-intro { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-olive); }
.producer-intro__text { padding: var(--s-52) var(--s-44); display: flex; flex-direction: column; gap: var(--s-22); justify-content: center; }
.producer-intro__name { font: var(--t-display); color: var(--c-cream); }
.producer-intro__lead { font: var(--t-body); color: var(--c-on-olive); max-width: 440px; }
.producer-intro__media { position: relative; min-height: 460px; }
.producer-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.producer-intro__media .ph { width: 100%; height: 100%; }
.visit-list { display: flex; flex-direction: column; gap: var(--s-16); }
.visit-row { display: grid; grid-template-columns: 160px 1fr; gap: var(--s-16); align-items: start; }
.visit-row dt { font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-faint); }
.visit-row dd { margin: 0; font: var(--t-body); color: var(--c-text); }
.mosaic .ph { width: 100%; height: 100%; }
.map-credit { margin-top: 8px; font: 300 11px/1.4 var(--f-sans); color: var(--c-text-muted); }
.map-credit a { color: inherit; }
/* Lücken im Stimmungsraster schließen, v. a. im zweispaltigen Tablet-Layout. */
.mosaic { grid-auto-flow: dense; }
.quad .ph { width: 100%; height: 100%; }
.producer-card { display: flex; flex-direction: column; background: var(--c-cream); }
.band--cream .producer-card { background: var(--c-white); }
.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__name { font: var(--t-product); color: var(--c-olive-dark); }
.producer-card__place { font: var(--t-label); letter-spacing: .18em; text-transform: uppercase; color: var(--c-text-faint); }
.producer-card__lead { font: var(--t-body-sm); color: var(--c-text-muted); }
.producer-card__foot { margin-top: auto; padding-top: var(--s-12); }

/* ---------------------------------------------------------------------------
 * 10. Formularfehler, Tabellen, Hilfsklassen
 * ------------------------------------------------------------------------- */
.field.is-invalid, .is-invalid .field { border-color: var(--c-wine); }
.field-hint { font: var(--t-body-sm); color: var(--c-text-faint); }
.field-error { font: var(--t-body-sm); color: var(--c-wine); }
.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-body-sm); color: var(--c-text); vertical-align: top; }
.table th { font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-faint); }
.table .num { text-align: right; white-space: nowrap; }
.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-12) var(--s-16); background: var(--c-gold); color: var(--c-olive-dark); font: var(--t-button); }
.skip-link:focus { left: var(--s-16); top: var(--s-16); }
button[disabled], .btn[aria-disabled="true"] { background: var(--c-cork); color: var(--c-text-faint); cursor: not-allowed; }

/* Fehlerseiten */
.error-page { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: var(--s-22); }
.error-page__code { font: var(--t-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-gold); }
.error-page__title { font: var(--t-display); color: var(--c-cream); }
.error-page__text { font: var(--t-body); color: var(--c-on-olive); max-width: var(--w-text-max); }

/* ---------------------------------------------------------------------------
 * 11. Responsive. components.css bringt den Bruchpunkt 900 px mit (Spalten
 *     werden einspaltig). Hier kommen die Stufen darunter dazu.
 * ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts__item:nth-child(odd) { border-left: 0; }
}

@media (max-width: 900px) {
  .product-layout, .producer-intro, .split-2, .mini-producer, .choices,
  .field-row--2, .field-row--3, .card-grid--4 { grid-template-columns: 1fr; }
  .product-media, .product-info { padding: var(--s-32) 20px; }
  .producer-intro__text { padding: var(--s-32) 20px; }
  .producer-intro__media, .stage__media { min-height: 320px; }
  .stage__media .ph { min-height: 320px; }
  .results { padding: var(--s-24) 20px; }
  .checkout-main { padding: var(--s-24) 20px; }
  .crumbs { padding-left: 20px; padding-right: 20px; }
  .flashes { padding-left: 20px; padding-right: 20px; }
  .review-block { grid-template-columns: 1fr; gap: var(--s-8); }
  .visit-row { grid-template-columns: 1fr; gap: 4px; }
  .site-foot__meta { text-align: left; }

  /* Filterspalte wird einklappbar (details/summary) */
  .filters { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .filters__mobile-toggle { display: block; }
  .filters__body { display: none; flex-direction: column; gap: var(--s-20); margin-top: var(--s-16); }
  .filters[open] .filters__body, details.filters-wrap[open] .filters__body { display: flex; }
}

@media (max-width: 760px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .site-head__burger { display: inline-flex; }
  .site-nav__main { display: none; }
  .site-head { gap: var(--s-12); }
  .logo__img { height: 44px; }
  .steps__label { display: none; }
  .line-item { grid-template-columns: 72px 1fr; gap: var(--s-14); }
  .line-item__side { grid-column: 2; align-items: flex-start; }
  .band { padding-top: var(--s-32); padding-bottom: var(--s-32); }
  .stage__text { padding: var(--s-32) 20px; }
  .product-info__title, .steps-band__title, .cat-head__title { font: var(--t-h2); }
  .stage__title, .producer-intro__name { font: var(--t-h1); }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .mosaic .span-2 { grid-column: span 1; }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts__item + .facts__item { border-left: 0; border-top: 1px solid var(--c-hairline-on-dark); }
  .cat-head { flex-direction: column; align-items: flex-start; }
  .cat-head__count { text-align: left; }
  .product-info__buy .btn { min-width: 100%; }
  .sizes { flex-direction: column; }
  .size-tile { width: 100%; }
}

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

/* ---------------------------------------------------------------------------
 * 12. Ergänzungen der Laravel-Vorlagen (vorher Inline-Styles im Yii-Stand)
 * ------------------------------------------------------------------------- */
.btn--outline.btn--on-dark { color: var(--c-cream); border-color: var(--c-cream); }
.btn--outline.btn--on-dark:hover { background: var(--c-cream); color: var(--c-olive-dark); }
.link-button { background: none; border: 0; border-bottom: 1px solid var(--c-gold); padding: 0 0 2px; cursor: pointer; font: 300 12px/1.4 var(--f-sans); color: var(--c-olive); align-self: flex-start; }
.link-button:hover { color: var(--c-olive-dark); }
.link-button.is-active { color: var(--c-wine); }
.ph--map { width: 100%; aspect-ratio: 3 / 2; }
.band__head--spaced { margin-top: var(--s-40); }
.band__subtitle { margin: var(--s-24) 0 var(--s-12); }
.field--qty { width: 96px; }
.search-form { margin-bottom: var(--s-20); }
.search-form .field { width: 260px; max-width: 100%; }
.table-scroll { overflow-x: auto; }
.provisional-note { margin-top: var(--s-16); }
.zone-legend { margin-top: var(--s-20); }
.free-banner { padding: var(--s-16) var(--s-20); background: var(--c-white); border-left: 3px solid var(--c-gold); font: var(--t-body); color: var(--c-olive-dark); }
.prose-on-dark { color: inherit; max-width: var(--w-text-max); }
.prose-on-dark h2 { font: var(--t-h3); margin-bottom: var(--s-12); }
.prose-on-dark p + p { margin-top: var(--s-12); }
.prose-on-dark a { color: inherit; border-bottom: 1px solid var(--c-gold); }
.form-narrow { max-width: var(--w-text-max); margin-top: var(--s-24); }
.honeypot { position: absolute; left: -9999px; top: -9999px; }
.wishlist-item { display: flex; flex-direction: column; gap: var(--s-8); }
.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); }
.fieldset-plain { border: 0; padding: 0; margin: 0; }
.qty-form .field-block { margin: 0; }
.free-progress--spaced { padding-top: var(--s-24); }
.rule-gold--spaced { margin: var(--s-16) 0; }
.spaced-top { margin-top: var(--s-24); }
.legal-note { margin-top: var(--s-16); }
.legal-note a { border-bottom: 1px solid var(--c-gold); }
.summary__row--note, .summary__row--tax { font: var(--t-body-sm); color: var(--c-text-muted); }
.paymarks { margin-top: var(--s-8); }
.bank-box { padding: var(--s-20); background: var(--c-cream); border-left: 3px solid var(--c-olive); display: flex; flex-direction: column; gap: var(--s-16); }
.product-card__foot { gap: var(--s-12); }
.site-foot__col:first-child { flex: 1 1 480px; }
.site-foot__col:last-child { align-items: flex-end; }
@media (max-width: 900px) {
  .site-foot__col:last-child { align-items: flex-start; }
}
/* Auswahl ohne JavaScript sichtbar machen (Zahlart, Größenkacheln) */
.choice:has(input:checked) { background: var(--c-cream); border-color: var(--c-gold); }
.choice:has(input:checked) .choice__dot { border-color: var(--c-olive); }
.choice:has(input:checked) .choice__dot::after { background: var(--c-olive); }
.size-tile:has(input:checked) { background: var(--c-cream); border-color: var(--c-gold); }
/* Haken und Optionen innerhalb eines Feldblocks sind Fließtext, keine Beschriftung */
.field-block > label.check-line { font: var(--t-body-sm); letter-spacing: normal; text-transform: none; color: var(--c-text); display: flex; }
.fieldset-plain legend { margin-bottom: var(--s-8); }
