/* =========================================================
   BAUER 1908 — Online-Shop
   Design nach „Bauer Brand Guideline" (2026-06), Variante
   HUNTER DARK (Wolfis Wahl 2026-06-12): ganze Seite in Hunter,
   weiße Produktkarten als Kontrast (wie die Bags im Regal),
   Story-Strip in Navy, Footer in Espresso, Akzente Sand/Amber.
   Typo    Regalic (Display) · Futura PT (Text) · Rosser (Ziffern)
   Fonts selbst gehostet (DSGVO) in /fonts — FuturaCyrillic-TTFs
   wurden mit Umlaut-Glyphen gepatcht (ä ö ü Ä Ö Ü), das ß kommt
   per Unicode-Range-Fallback aus einem 2-KB-Jost-Subset.
   Kontext-Trick: --ink/--ink-60/--ink-40/--line sind auf :root
   Creme (dunkler Kontext) und werden auf hellen Flächen
   (.card, .detail-label, …) lokal auf Espresso umdefiniert.
   ========================================================= */

@font-face { font-family: 'Futura PT'; src: url('../fonts/futurapt-light.woff2') format('woff2');  font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Futura PT'; src: url('../fonts/futurapt-book.woff2') format('woff2');   font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Futura PT'; src: url('../fonts/futurapt-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Futura PT'; src: url('../fonts/futurapt-demi.woff2') format('woff2');   font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Futura PT'; src: url('../fonts/futurapt-bold.woff2') format('woff2');   font-weight: 700; font-style: normal; font-display: swap; }
/* ß/ẞ-Fallback (Futura-Klon Jost, variabel 100–900, nur U+DF/U+1E9E) */
@font-face { font-family: 'Eszett Fallback'; src: url('../fonts/eszett-fallback.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+DF, U+1E9E; }
@font-face { font-family: 'Regalic'; src: url('../fonts/regalic.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rosser';  src: url('../fonts/rosser.woff2') format('woff2');  font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Primary Color System */
  --paper:    #f9eade;             /* Coffee Creamer (helle Flächen/Text auf dunkel) */
  --tint:     #f4e3c9;             /* Steamed Milk   */
  --hunter:   #0c4044;             /* Hunter — Seitenhintergrund */
  --espresso: #23150f;             /* Espresso       */
  /* Secondary Color System */
  --sand:     #ccb883;
  --navy:     #002938;
  --amber:    #e6a523;
  --forest:   #1d351b;
  /* Kontext-Tokens: auf :root = dunkler Kontext (Creme-Text) */
  --card:    #FFFFFF;
  --ink:     var(--paper);
  --ink-60:  rgba(249, 234, 222, 0.66);
  --ink-40:  rgba(249, 234, 222, 0.45);
  --line:    rgba(249, 234, 222, 0.18);
  --cream:   var(--paper);
  --font-text:    'Futura PT', 'Eszett Fallback', Futura, 'Century Gothic', sans-serif;
  --font-display: 'Regalic', Georgia, serif;
  --font-num:     'Rosser', Georgia, serif;
}

/* Helle Flächen: Kontext-Tokens lokal auf Espresso zurückdrehen */
.card, .detail-label, .ship-note, .qty, .opt, .todo-banner {
  --ink: var(--espresso);
  --ink-60: rgba(35, 21, 15, 0.64);
  --ink-40: rgba(35, 21, 15, 0.42);
  --line: rgba(12, 64, 68, 0.14);
  color: var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--hunter);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Footer bei kurzen Seiten ans Viewport-Ende */
  min-height: 100vh; display: flex; flex-direction: column;
}
/* Flex-Items mit margin:0 auto wuerden sonst auf Inhaltsbreite schrumpfen
   (Grid kollabiert auf 1 Spalte) — volle Breite erzwingen, max-width zentriert */
body > * { width: 100%; }
.footer { margin-top: auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.serif { font-family: var(--font-display); font-weight: 400; }
::selection { background: var(--sand); color: var(--espresso); }

/* ─────────── NAV ─────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 60px; padding: 0 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  /* Kein backdrop-filter: zwei gestapelte Blur-Leisten (Nav+Pills) triggern
     in Chrome einen Compositing-Bug — Seite rendert beim Scrollen leer */
  background: rgba(12, 64, 68, 0.97);
  border-bottom: 1px solid rgba(249, 234, 222, 0.14);
  font-size: 14px;
}
.nav-l, .nav-r { display: flex; gap: 22px; align-items: center; }
.nav-r { justify-content: flex-end; }
.nav a { color: var(--ink-60); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--cream); }
.brand { font-size: 22px; letter-spacing: .16em; color: var(--cream) !important; }
.brand span { color: var(--sand); }

.cart-link { position: relative; display: flex; align-items: center; gap: 6px; }
.cart-badge {
  display: none; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--amber); color: var(--espresso);
  border-radius: 9px; font-size: 11px; font-weight: 600;
}

.lang-select {
  appearance: none; -webkit-appearance: none;
  padding: 5px 22px 5px 10px; border-radius: 999px;
  border: 1px solid rgba(249, 234, 222, 0.25); background: transparent;
  font-family: inherit; font-size: 12px; color: var(--ink-60); cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23ccb883'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.lang-select:hover { border-color: var(--sand); color: var(--cream); }
.lang-select option { background: var(--hunter); color: var(--cream); }

/* ─────────── HERO (kompakt) ─────────── */
.hero {
  padding: 64px 28px 38px; text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--hunter) 90%);
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 400; letter-spacing: .015em; color: var(--cream); line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { margin-top: 14px; color: var(--ink-60); font-size: 16.5px; }
.hero .usp {
  margin-top: 18px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-60); letter-spacing: .02em;
}
.hero .usp span::before { content: '✓ '; color: var(--amber); }

/* ─────────── KATEGORIE-PILLS ─────────── */
.pills {
  position: sticky; top: 60px; z-index: 90;
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(12, 64, 68, 0.97);
  border-bottom: 1px solid rgba(249, 234, 222, 0.14);
}
.pill {
  padding: 7px 17px; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; color: var(--ink-60); letter-spacing: .02em;
  border: 1px solid rgba(249, 234, 222, 0.28); background: transparent;
  font-family: inherit; transition: all .2s;
}
.pill:hover { border-color: var(--sand); color: var(--cream); }
.pill.active { background: var(--sand); color: var(--espresso); border-color: var(--sand); }

/* ─────────── PRODUKT-GRID ─────────── */
.grid-wrap { max-width: 1240px; margin: 0 auto; padding: 36px 24px 80px; }
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.section-title { font-size: 26px; margin: 8px 0 22px; font-weight: 400; font-family: var(--font-display); color: var(--cream); }

/* Karte im Label-Look (weiße Bags vor dunklem Regal) */
.card {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 18px;
  border: 1px solid rgba(249, 234, 222, 0.1);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38); }
.card.is-soon { opacity: .62; }

.card-label { padding: 26px 20px 20px; text-align: center; }

/* Karten mit Produktfoto */
.card-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-photo img { transform: scale(1.04); }
.card-label-photo { padding: 16px 20px 14px; }
.detail-label.has-photo { padding: 18px 18px 32px; }
.detail-photo { width: 100%; border-radius: 14px; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 22px; }
.card-brand { font-size: 22px; letter-spacing: .14em; color: var(--espresso); }
.card-brand span { display: block; font-size: 13px; letter-spacing: .42em; margin-top: 2px; color: var(--ink-60); font-family: var(--font-num); }
.card-badge {
  width: 58px; height: 58px; margin: 16px auto 0;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}
.card-badge em { font-style: normal; font-size: 7.5px; letter-spacing: .14em; opacity: .9; }
.card-badge strong { font-size: 22px; line-height: 1.05; font-weight: 400; font-family: var(--font-num); }
.card-origin {
  margin: 14px auto 0; padding: 9px 14px 3px; max-width: 210px;
  background: var(--tint); border-radius: 10px 10px 0 0;
  font-size: 20px; letter-spacing: .08em; font-weight: 400; color: var(--espresso);
}
.card-notes {
  margin: 0 auto; padding: 2px 14px 10px; max-width: 210px;
  background: var(--tint); border-radius: 0 0 10px 10px;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60);
}
.card-meta {
  margin-top: auto; padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 7px;
}
.card-name { font-size: 14.5px; font-weight: 500; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 18px; }
.card-price { font-size: 15px; font-weight: 600; color: var(--hunter); }

.tag {
  font-size: 10px; letter-spacing: .05em; padding: 2.5px 8px;
  border-radius: 999px; text-transform: uppercase; font-weight: 600;
}
.tag-bio    { background: #E2EAD4; color: var(--forest); }
.tag-rare   { background: #F0E5C9; color: #7A5E14; }
.tag-soon   { background: #E8E4DE; color: #5E574E; }
.tag-frost  { background: #DCEAF2; color: var(--navy); }
.tag-pickup { background: #F2E0D6; color: #7A4630; }

/* ─────────── STORY-STRIP (Navy + Wellen-Übergang) ─────────── */
.story {
  position: relative;
  background: var(--navy); color: var(--cream);
  padding: 110px 28px 72px;
}
.story::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 52px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 52' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V10 C1060,52 380,52 0,10 Z' fill='%230c4044'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.story-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.story h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 400; letter-spacing: .02em; }
.story p { margin: 14px auto 0; max-width: 640px; color: rgba(249, 234, 222, 0.7); font-size: 15px; }
.story .medals {
  margin-top: 40px; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.medal { padding: 22px 16px; border: 1px solid rgba(204, 184, 131, 0.35); border-radius: 14px; }
.medal .score { font-size: 38px; color: var(--sand); font-family: var(--font-num); line-height: 1.1; }
.medal .what { margin-top: 4px; font-size: 13.5px; }
.medal .comp { margin-top: 2px; font-size: 11px; color: rgba(249, 234, 222, 0.55); }
.story .more { display: inline-block; margin-top: 36px; font-size: 13.5px; color: var(--sand); letter-spacing: .04em; }
.story .more:hover { color: var(--amber); }

/* ─────────── PRODUKT-DETAIL ─────────── */
.detail {
  max-width: 1040px; margin: 0 auto; padding: 48px 24px 90px;
  display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 56px;
}
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; gap: 28px; } }

.detail-label {
  background: var(--card); border: 1px solid rgba(249, 234, 222, 0.1); border-radius: 24px;
  padding: 48px 32px; text-align: center; align-self: start;
}
.detail-label .card-brand { font-size: 32px; }
.detail-label .card-brand span { font-size: 17px; }
.detail-label .card-badge { width: 84px; height: 84px; margin-top: 26px; }
.detail-label .card-badge em { font-size: 10px; }
.detail-label .card-badge strong { font-size: 32px; }
.detail-label .card-origin { font-size: 30px; max-width: 300px; margin-top: 22px; }
.detail-label .card-notes { font-size: 12.5px; max-width: 300px; }
.spec { margin: 26px auto 0; max-width: 300px; font-size: 12.5px; text-align: left; }
.spec div { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.spec span:first-child { color: var(--ink-60); }

.detail-info h1 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 400; line-height: 1.15; color: var(--cream); }
.detail-info .desc { margin-top: 14px; color: var(--ink-60); font-size: 15.5px; max-width: 480px; }
.detail-info .card-tags { margin-top: 14px; }

.opt-group { margin-top: 26px; }
.opt-group h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 9px; font-weight: 600; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  padding: 9px 18px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid transparent; background: var(--card);
  font-size: 13.5px; font-family: inherit; transition: all .15s;
}
.opt:hover { border-color: var(--sand); }
.opt.active { border-color: var(--sand); background: var(--sand); color: var(--espresso); font-weight: 600; }

.buy-row { margin-top: 32px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.price-big { font-size: 32px; font-weight: 400; font-family: var(--font-num); color: var(--cream); }
.price-base { font-size: 12px; color: var(--ink-40); margin-top: 2px; }
.qty { display: flex; align-items: center; border-radius: 12px; overflow: hidden; background: var(--card); }
.qty button { width: 38px; height: 44px; border: 0; background: transparent; font-size: 18px; cursor: pointer; font-family: inherit; color: var(--hunter); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.btn-add {
  padding: 13px 34px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--amber); color: var(--espresso);
  font-size: 15px; font-weight: 600; font-family: inherit; letter-spacing: .02em;
  transition: opacity .2s, transform .15s;
}
.btn-add:hover { opacity: .88; }
.btn-add:active { transform: scale(.97); }
.btn-add[disabled] { opacity: .4; cursor: not-allowed; }

.ship-note {
  margin-top: 26px; padding: 14px 18px; border-radius: 14px;
  background: var(--tint); font-size: 13px; color: var(--ink-60); max-width: 480px;
}
.ship-note strong { color: var(--ink); }

.back-link { display: inline-block; margin: 26px 24px 0; font-size: 13.5px; color: var(--ink-60); }
.back-link:hover { color: var(--cream); }

/* ─────────── WARENKORB ─────────── */
.cart-wrap { max-width: 860px; margin: 0 auto; padding: 48px 24px 90px; }
.cart-wrap h1 { font-size: 34px; font-weight: 400; margin-bottom: 28px; font-family: var(--font-display); color: var(--cream); }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 18px;
  align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .cart-item { grid-template-columns: 48px 1fr auto; } .cart-item .qty { grid-column: 2; } }
.cart-dot {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-num); font-size: 18px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}
.cart-item .name { font-weight: 500; font-size: 14.5px; }
.cart-item .sub { font-size: 12px; color: var(--ink-60); margin-top: 2px; }
.cart-item .line-price { font-weight: 600; color: var(--sand); }
.cart-item .remove { background: none; border: 0; cursor: pointer; color: var(--ink-40); font-size: 17px; font-family: inherit; }
.cart-item .remove:hover { color: var(--cream); }
.cart-item .qty button { height: 36px; width: 32px; }

.totals { margin-top: 26px; margin-left: auto; max-width: 380px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; padding: 7px 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 600; color: var(--sand); }
.totals .hint { font-size: 12px; color: var(--ink-40); justify-content: flex-end; }
.btn-checkout {
  display: block; margin: 30px 0 0 auto; padding: 15px 40px;
  border: 0; border-radius: 14px; cursor: pointer;
  background: var(--amber); color: var(--espresso); font-size: 15.5px; font-weight: 600; font-family: inherit;
  transition: opacity .2s;
}
.btn-checkout:hover { opacity: .88; }
.cart-empty { padding: 60px 0; text-align: center; color: var(--ink-60); }
.cart-warn {
  margin: 14px 0 4px; padding: 11px 16px; border-radius: 12px;
  background: rgba(230, 165, 35, 0.14); border-left: 3px solid var(--amber);
  color: var(--cream); font-size: 13px; line-height: 1.5;
}
.btn-checkout:disabled { opacity: .45; cursor: not-allowed; }
.cart-empty a { color: var(--amber); }

/* ─────────── RECHTSSEITEN ─────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.legal h1 { font-size: 32px; font-weight: 400; margin-bottom: 24px; font-family: var(--font-display); color: var(--cream); }
.legal h2 { font-size: 19px; font-weight: 600; margin: 30px 0 10px; color: var(--sand); }
.legal p, .legal li { font-size: 14.5px; color: var(--ink-60); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.todo-banner {
  margin-bottom: 28px; padding: 12px 18px; border-radius: 12px;
  background: var(--tint); color: #7A5E14; font-size: 13px;
}
.legal-note {
  margin-bottom: 30px; padding: 13px 18px; border-radius: 12px;
  border-left: 3px solid var(--sand);
  background: rgba(204, 184, 131, 0.10); color: var(--ink-60); font-size: 13px;
}
.legal h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: var(--cream); }
.legal .muster {
  margin-top: 14px; padding: 16px 20px; border-radius: 12px;
  border: 1px dashed rgba(204, 184, 131, 0.35); font-size: 13.5px; color: var(--ink-60);
}
.legal address { font-style: normal; color: var(--ink-60); }
.legal .updated { margin-top: 36px; font-size: 12px; color: var(--ink-40); }

/* ─────────── FOOTER (Espresso) ─────────── */
.footer {
  background: var(--espresso); color: rgba(249, 234, 222, 0.55);
  border-top: 1px solid rgba(204, 184, 131, 0.18);
  padding: 48px 28px; font-size: 12.5px;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer a { color: rgba(249, 234, 222, 0.75); }
.footer a:hover { color: var(--cream); }
.footer .cols { display: flex; gap: 40px; flex-wrap: wrap; }
.footer .col { display: flex; flex-direction: column; gap: 7px; }
.footer .col strong { color: var(--sand); font-weight: 500; margin-bottom: 3px; letter-spacing: .03em; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--paper); color: var(--espresso);
  padding: 12px 24px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
