/* D585 — Seite /sortiment. Externe Datei statt Inline-<style> (Architektur-
   Vorgabe des Tickets: keine zweite Inline-Kopie der Karten-Optik).
   index.html bleibt in diesem Ticket UNVERAENDERT (eigene Inline-<style>) —
   diese Datei ist deshalb bewusst eine externe Kopie/Anpassung derselben
   Design-Tokens/Klassen, kein Import aus index.html. Migration von index.html
   auf diese gemeinsame Datei ist Aufgabe von D584 (Startseiten-Umbau), NICHT
   Teil dieses Tickets — s. Abschlussbericht D585 fuer die Begruendung. */

:root {
  --sea: #0a7ea4;
  --sea-deep: #086079;
  --sea-light: #e6f4f9;
  --bayern-blue: #2b74c9;
  --gold: #d4a537;
  --gold-light: #eac96a;
  --aqua: #17b6c4;
  --ink: #14303a;
  --muted: #4a5f6b;
  --line: #dbe8ee;
  --white: #ffffff;
  --text: #14303a;
  --text-dark: #14303a;
  --radius: 14px;
  --max: 1120px;
  --wa-green: #25d366;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.bayern-strip {
  height: 8px;
  background-image: repeating-linear-gradient(-45deg, var(--bayern-blue) 0 14px, #fff 14px 28px);
  opacity: .85;
}

/* Sticky Header (identisch zu index.html) */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(10,126,164,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; max-width: var(--max); margin: 0 auto; gap: 12px;
}
.nav .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav .brand img { height: 60px; width: auto; border-radius: 4px; }
@media (max-width: 479px) {
  .nav .brand img { height: 38px; }
}
.nav .brand b { color: var(--sea-deep); font-size: 1.05rem; white-space: nowrap; letter-spacing: .3px; }
.nav .brand span { display: block; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.wa-link-header-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.wa-link-tag { font-size: .64rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #128c53; }
.lang { display: flex; gap: 4px; }
.lang button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: .78rem; font-weight: 700; padding: 5px 9px; border-radius: 8px; cursor: pointer;
}
.lang button.active { background: var(--sea); border-color: var(--sea); color: #fff; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa-green); color: #fff; font-weight: 800;
  padding: 11px 18px; border-radius: 999px; font-size: .95rem;
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-wa:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.45); }
.btn-wa svg { width: 20px; height: 20px; fill: #fff; }
.nav .btn-wa { padding: 8px 14px; font-size: .85rem; }

.btn-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sea-deep); color: #fff; font-weight: 800;
  padding: 11px 18px; border-radius: 999px; font-size: .95rem;
  box-shadow: 0 4px 14px rgba(10,71,92,.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-call:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,71,92,.45); }
.btn-call svg { width: 20px; height: 20px; stroke: #fff; }
.nav .btn-call { padding: 8px 14px; font-size: .85rem; }
@media (max-width: 479px) {
  .nav .btn-call { display: none; }
}

.wa-link { font-size: .95rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.wa-link a { color: #128c53; font-weight: 700; }
.wa-link a:hover { color: var(--wa-green); }
.wa-link svg { width: 17px; height: 17px; color: var(--wa-green); }

/* D626: schlanker Textlink fuer WA-Links MITTEN in einem Satz (Lead-Text) —
   kein Button-Look, damit der Satz wie ein Satz liest. */
.inline-wa-link { color: #128c53; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(18,140,83,.35); text-underline-offset: 2px; }
.inline-wa-link:hover { color: var(--wa-green); text-decoration-color: currentColor; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--sea); color: var(--sea-deep); font-weight: 700;
  padding: 12px 24px; border-radius: 999px; font-size: .98rem;
}
.btn-ghost:hover { background: var(--sea); color: #fff; }
/* D626: "Neukunde werden" ist jetzt ein kleiner Textlink statt eines
   Button-Pills. */
.btn-neukunde-link {
  display: inline-flex; align-items: center; color: var(--muted); font-weight: 600; font-size: .85rem;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px;
}
.btn-neukunde-link:hover { color: var(--sea-deep); text-decoration-color: var(--sea); }

/* Sections */
section { padding: 48px 0; }
.page-head { padding-bottom: 8px; }
.page-head h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem); color: var(--sea-deep); text-align: center;
  margin-bottom: 10px;
}
.page-head h1::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 12px auto 0; border-radius: 2px;
}
section .lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
/* D617-Korrektur: kurzer Einstiegs-Hinweis fuer Kunden, die ueber den Hero-
   Button "Bestellen per WhatsApp" direkt hier landen. */
.sortiment-hinweis {
  text-align: center; color: var(--sea-deep); font-weight: 700; font-size: .92rem;
  margin: 0 0 20px;
}


/* Produktgruppe-Chip-Filter (D427, uebernommen) — dient hier als optionale
   Sprung-/Filternavigation ZUSAETZLICH zu den Gruppen-Ueberschriften (DoD 2). */
.gruppe-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 0 0 30px;
}
.gruppe-chip {
  display: inline-flex; align-items: center;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .86rem; font-weight: 600;
  cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease;
  min-height: 36px;
}
.gruppe-chip:hover { border-color: var(--sea); background: var(--sea-light); }
.gruppe-chip:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.gruppe-chip.active { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
@media (max-width: 640px) {
  .gruppe-chips { gap: 8px; margin-bottom: 24px; }
  .gruppe-chip { padding: 11px 15px; font-size: .82rem; min-height: 44px; }
}
@media (max-width: 479px) {
  .gruppe-chips { gap: 8px; }
  .gruppe-chip { padding: 10px 13px; font-size: .8rem; min-height: 44px; }
}

/* D585 NEU: Gruppen-Block mit eigener Ueberschrift (DoD 2 — Gruppierung nach
   produktgruppe, je Gruppe eine sichtbare Ueberschrift). */
/* 1.1 (Plan 21.10.): EIN flaches Grid (#sortiment-liste), Gruppen als display:contents —
   die Gruppen-Überschrift ist nur ein kleines Label über die volle Breite, kein Kapitel mit Linie. */
#sortiment-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.gruppe-block { display: contents; }
.gruppe-block.is-empty { display: none; }
.gruppe-tag {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.88); color: var(--sea-deep); font-size: .68rem; font-weight: 800; letter-spacing: .3px;
}
#sortiment-liste.fav-ausgeblendet .badge.favorit { display: none; }

/* D348-Muster (uebernommen): Sichtbarkeits-Mechanik je Frisch/TK-Kategorie —
   Trigger: .kat-chip, s. sortiment.js applyProdFilter(). */
.prod[data-kategorie] { display: none; }
.prod[data-kategorie].tab-visible { display: flex; }

/* Produkt-Grid + Karte (identisch zu index.html) */
.prod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.prod:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(10,126,164,.15); border-color: var(--aqua); }
.prod .thumb {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--sea-light);
  border-bottom: 1px solid var(--line); position: relative;
}
.prod .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.prod:hover .thumb img { transform: scale(1.06); }
.prod .body { padding: 16px 18px 18px; text-align: left; flex: 1; display: flex; flex-direction: column; }
.prod h3 { color: var(--sea-deep); font-size: 1.05rem; margin-bottom: 8px; }
.prod .meta { list-style: none; margin: 0 0 10px; padding: 0; }
.prod .meta li { font-size: .82rem; color: var(--muted); margin-bottom: 3px; display: flex; gap: 6px; }
.prod .meta li b { color: var(--ink); font-weight: 600; min-width: 62px; display: inline-block; }
/* 1.2: Quy cách ist die erste Zeile und die wichtigste — kräftiger als der Rest. */
.prod .meta li:first-child { color: var(--ink); font-weight: 700; font-size: .86rem; }
.prod .tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
/* „Chi tiết“ nur auf dem Handy (< 480px, s. unten) — auf dem PC sind Beschreibung/Meta immer sichtbar. */
.prod-more { display: none; }
.badge { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .3px; }
.badge.fresh { background: #e3f6ec; color: #1a8a4f; }
.badge.tk { background: #e6f0fb; color: #2b6fc4; }
.badge.limit { background: #fdf0e0; color: #b47318; }
.badge.premium { background: #f6ecd9; color: #a5761a; }
.badge.bio { background: #eaf6e0; color: #4a7d1e; }
.badge.neu { background: var(--sea-light); color: var(--sea-deep); }
/* D585: "Món quen / Favorit"-Badge — eigener, in-palette Goldton (analog dem
   bestehenden .limit/.premium-Ton), kein neues Farbvokabular. */
.badge.favorit { background: var(--gold-light); color: #6b4e12; }
.prod.featured .brand-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

.herkunft-badge {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(2px);
  border-radius: 999px; padding: 4px 10px 4px 6px;
  font-size: .72rem; font-weight: 700; color: var(--sea-deep);
  box-shadow: 0 2px 8px rgba(10,48,58,.18);
}
.herkunft-badge .flag { font-size: .95rem; line-height: 1; }

/* D408: Fallback bei Fetch-Fehler (uebernommen) */
.prod-fehler {
  display: none; text-align: center; background: #fdeceb; color: #b3392e;
  border: 1px solid #f6c7c1; border-radius: var(--radius); padding: 32px 24px;
}
.prod-fehler.is-visible { display: block; }
.prod-fehler p { color: #8a2c23; font-size: 1rem; max-width: 480px; margin: 0 auto 20px; }
.prod-fehler .btn-wa { margin: 0 auto; }
@media (max-width: 640px) {
  .prod-fehler { padding: 26px 18px; }
}



/* D585 NEU: Abschluss-Block (Neukunde-CTA + WhatsApp).
   D626: der frühere Preis-Hinweis-Satz lebt jetzt als "Wochenangebot
   anfordern"-Button (.btn-ghost, s. Markup); ".sortiment-ende p" entfaellt
   bewusst, damit die neue WA-Textzeile (.wa-link, ein <p>) ihre eigene
   schlanke Optik behaelt statt der alten fetten Preis-Satz-Optik. */
.sortiment-ende {
  background: linear-gradient(180deg, var(--sea-light), #f4fbfd);
  border-radius: var(--radius); padding: 34px 26px; text-align: center;
  max-width: 720px; margin: 40px auto 0;
}
.sortiment-ende-text { color: var(--ink); font-size: .95rem; max-width: 520px; margin: 0 auto 18px; }
.sortiment-ende .btn-ghost { margin-bottom: 20px; white-space: nowrap; }
.sortiment-ende-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* Kontakt / Footer (identisch zu index.html) */
footer { background: linear-gradient(180deg, #0b4a5e, #08313f); color: #dfeef3; padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 34px; margin-bottom: 34px; }
footer h3 { color: var(--gold-light); font-size: 1.05rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
footer p, footer li { color: #b9d4dd; font-size: .93rem; margin-bottom: 6px; list-style: none; }
footer .ci { display: flex; align-items: center; gap: 8px; }
footer .ci svg { width: 16px; height: 16px; stroke: var(--gold-light); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
footer a:hover { color: var(--gold-light); }
.foot-cta { text-align: center; margin-bottom: 30px; }
.foot-wa-note { justify-content: center; margin-top: 14px; }
.impressum { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .82rem; color: #8fb2bd; text-align: center; }
.impressum b { color: #b9d4dd; }
.legal-links { margin-bottom: 12px; font-size: .92rem; }
.legal-links a { color: var(--gold-light); font-weight: 700; }
.legal-links a:hover { color: #fff; }
.legal-links .sep { color: #6a8894; margin: 0 8px; }
.mt-sm { margin-top: 10px !important; }

/* Sprach-Umschaltung (identisch zu index.html) */
[data-vi] { display: none; }
html[lang="vi"] [data-de] { display: none; }
html[lang="vi"] [data-vi] { display: initial; }
html[lang="vi"] p[data-vi] { display: block; }
html[lang="vi"] .eyebrow [data-vi], html[lang="vi"] .btn-wa [data-vi], html[lang="vi"] .btn-ghost [data-vi],
html[lang="vi"] .badge [data-vi], html[lang="vi"] h1 [data-vi], html[lang="vi"] .callbar a [data-vi],
html[lang="vi"] .btn-neukunde-link [data-vi] { display: inline; }
html[lang="vi"] .gruppe-chip [data-vi], html[lang="vi"] .gruppe-tag [data-vi],
html[lang="vi"] .herkunft-badge [data-vi], html[lang="vi"] .prod-preis [data-vi],
html[lang="vi"] .sortiment-ende [data-vi] { display: inline; }

/* Mobile Call-Bar (identisch zu index.html) */
.callbar { display: none; }
@media (max-width: 860px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -3px 16px rgba(10,48,58,.14);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 10px; font-weight: 800; font-size: 1rem; letter-spacing: .2px;
  }
  .callbar a svg { width: 21px; height: 21px; }
  .callbar .cb-call { background: var(--sea-deep); color: #fff; }
  .callbar .cb-call svg { stroke: #fff; fill: none; }
  .callbar .cb-wa { color: #128c53; }
  .callbar .cb-wa svg { fill: #128c53; }
  body { padding-bottom: 62px; }
}

@media (max-width: 640px) {
  .nav .brand b { font-size: .92rem; }
  .nav .brand span { display: none; }
  section { padding: 40px 0; }
}

/* ---- UI-Review Thanh 29.09.2026 ----------------------------------------
   (1) Stepper −/+ statt leerem Tippfeld (alle Breiten), (2) Gruppen-Chips
   kleben unter dem Header, (3) Handy < 480px: kompakte Zeile statt grosser
   Karte (~100px statt ~370px) — Beschreibung/Meta per „Chi tiết“ aufklappbar. */

.filter-leiste {
  position: sticky; top: var(--hdr-h, 64px); z-index: 30;
  background: var(--white, #fff); padding: 10px 0; margin: 0 -4px 26px;
  box-shadow: 0 6px 10px -8px rgba(10,48,58,.25);
  display: flex; flex-wrap: nowrap; gap: 10px 18px; justify-content: center; align-items: flex-start;
}
.filter-leiste .gruppe-chips { justify-content: flex-start; }
.kat-chips { display: flex; gap: 10px; padding-right: 18px; border-right: 1px solid var(--line); }
.filter-leiste .gruppe-chips { margin-bottom: 0; flex-shrink: 0; }
.kat-chips { flex-shrink: 0; }
.kat-chip.active { background: var(--sea); border-color: var(--sea); }

/* „Preis anfragen“ je Karte — einziger Knopf auf der Karte. */
.prod-preis {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding: 10px 14px;
  color: #0f7a47; background: #e7f8ee; border: 1px solid #bfe9d0; border-radius: 999px;
  font-weight: 800; font-size: .9rem; text-decoration: none; min-height: 44px;
}
.prod-preis svg { width: 18px; height: 18px; fill: #0f7a47; }
.prod-preis:hover { background: #d4f2e1; border-color: #9fdcb8; }
.prod .body .prod-preis { margin-top: 14px; }
.prod .tags + .prod-preis { margin-top: auto; }
.prod .tags { margin-top: 8px; margin-bottom: 14px; }
.prod-preis:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 8px; }

/* Handy + Tablet: Chips eine scrollbare Zeile (klebend, sonst 2 Zeilen = ~110px verdeckt). */
@media (max-width: 1023px) {
  .filter-leiste {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-left: -20px; margin-right: -20px; padding: 8px 20px; scroll-snap-type: x proximity; gap: 10px;
  }
  .filter-leiste::-webkit-scrollbar { display: none; }
  .gruppe-chips { flex-wrap: nowrap; }
  .kat-chips { padding-right: 10px; }
  .gruppe-chip { flex-shrink: 0; scroll-snap-align: start; }
}

@media (max-width: 479px) {

  #sortiment-liste { grid-template-columns: 1fr; gap: 10px; }
  .prod:hover { transform: none; }
  .prod[data-kategorie].tab-visible {
    display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; row-gap: 4px;
    padding: 10px 12px; align-items: start;
  }
  .prod .thumb { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: 64px; border: 0; border-radius: 10px; }
  .prod .herkunft-badge, .prod.featured .brand-tag, .prod .gruppe-tag { display: none; }
  .prod .body { display: contents; }
  .prod h3 { grid-column: 2; font-size: .95rem; line-height: 1.3; margin: 0; }
  .prod .tags { grid-column: 2; margin: 0; align-items: center; }
  /* Kompakt nur Favorit + Frisch/TK, restliche Badges beim Aufklappen. */
  .prod:not(.is-open) .tags .badge:not(.favorit):not(.fresh):not(.tk):not(.neu) { display: none; }
  .prod .lead-txt, .prod .meta { display: none; grid-column: 1 / -1; margin: 6px 0 0; }
  .prod.is-open .lead-txt, .prod.is-open .meta { display: block; }
  .prod-more {
    display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; padding: 0 4px;
    border: 0; background: none; font: inherit; font-size: .78rem; font-weight: 700; color: var(--sea-deep);
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  }
  .prod-more::after { content: " ▾"; text-decoration: none; }
  .prod.is-open .prod-more::after { content: " ▴"; }
  .prod .body .prod-preis, .prod .tags + .prod-preis { grid-column: 2; justify-self: start; padding: 6px 12px; min-height: 36px; margin: 2px 0 0; font-size: .82rem; }
  .prod .tags { margin-bottom: 0; }
}
