/* ============================================================
   Jahrgangs-Raritäten – Edles Dunkeldesign v2 (hoher Kontrast)
   Cormorant Garamond + Raleway
   ============================================================ */

:root {
  --bg:          #0e0c09;
  --bg-2:        #161310;
  --bg-card:     #1c1916;
  --bg-card-h:   #242018;
  --border:      #332d24;
  --border-h:    #564830;
  --gold:        #d4a843;
  --gold-light:  #eac86a;
  --gold-dim:    #8c6e2a;
  --wine:        #8b2535;
  --wine-light:  #b03048;
  --text:        #f5f0e8;
  --text-muted:  #c8bfaa;
  --text-faint:  #8a7e6a;
  --radius:      4px;
  --radius-lg:   8px;
  --max-w:       1280px;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Raleway', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,12,9,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 70px;
}
.logo { text-decoration: none; }
.logo-main {
  display: block; font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.04em; line-height: 1.2;
}
.logo-sub {
  display: block; font-size: 0.7rem;
  color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase;
}
.main-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s;
}
.main-nav a:hover { color: var(--gold); }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 480px;
  display: flex; align-items: center;
  padding: 6rem 2rem 5rem; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(139,37,53,0.18) 0%, transparent 70%),
    linear-gradient(160deg, #0e0c09 0%, #16100a 50%, #0e0c09 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(212,168,67,0.04) 40px, rgba(212,168,67,0.04) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(212,168,67,0.04) 40px, rgba(212,168,67,0.04) 41px);
  pointer-events: none;
}
.hero-content { position: relative; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(3rem,6vw,5.5rem);
  font-weight: 300; line-height: 1.1; color: var(--text); margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-text { color: var(--text-muted); font-size: 1.05rem; max-width: 480px; margin-bottom: 2.5rem; }

.jahrgang-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.9rem; border: 1px solid var(--border-h);
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em;
  border-radius: 2px; transition: all 0.2s;
}
.pill:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,168,67,0.08); }
.pill-count { font-size: 0.68rem; color: var(--text-faint); }

/* ---- CONTAINER ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 4rem 2rem; }
.section { margin-bottom: 5rem; }
.section-title {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 300;
  color: var(--text); margin-bottom: 0.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border); letter-spacing: 0.02em;
}

/* ---- KATEGORIE GRID ---- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 2rem;
}
.cat-card { display: block; text-decoration: none; background: var(--bg-card); transition: background 0.2s; }
.cat-card:hover { background: var(--bg-card-h); }
.cat-card-inner { padding: 1.8rem; height: 100%; }
.cat-card h3 {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  color: var(--gold); margin-bottom: 1rem;
}
.cat-subs { list-style: none; margin-bottom: 1.2rem; }
.cat-subs li {
  font-size: 0.88rem; font-weight: 400;
  color: var(--text-muted); padding: 0.25rem 0; border-bottom: 1px solid var(--border);
}
.cat-subs li span { color: var(--text-faint); font-size: 0.82rem; }
.cat-total { font-size: 0.78rem; font-weight: 500; color: var(--gold-dim); letter-spacing: 0.05em; text-transform: uppercase; }

/* ---- PRODUKT GRID ---- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 2rem;
}
.product-card { display: flex; flex-direction: column; text-decoration: none; background: var(--bg-card); transition: background 0.25s; }
.product-card:hover { background: var(--bg-card-h); }
.product-img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-2); }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.jahrgang-badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: var(--wine); color: #fff;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem; border-radius: 2px;
}
.product-info { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-cat { font-size: 0.72rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.product-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--text); line-height: 1.4; flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.2rem 0; }
.meta-tag { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); background: rgba(255,255,255,0.06); padding: 0.15rem 0.5rem; border-radius: 2px; }
.product-price { font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold); font-weight: 600; margin-top: 0.4rem; }
.product-grundpreis { font-size: 0.78rem; font-weight: 400; color: var(--text-muted); }

/* ---- FOOTER ---- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 2rem; text-align: center; background: var(--bg-2); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-inner p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-inner a { color: var(--gold-dim); text-decoration: none; }
.footer-inner a:hover { color: var(--gold); }
.footer-legal { margin: 0.8rem 0; }
.footer-disclaimer { color: var(--text-faint) !important; font-size: 0.75rem !important; }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--border-h);
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: all 0.2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active { border-color: var(--gold); color: var(--gold); background: rgba(212,168,67,0.1); }

/* ---- FILTER BAR ---- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
  padding: 1rem 1.5rem; background: var(--bg-card);
  border: 1px solid var(--border); margin-bottom: 2rem; border-radius: var(--radius);
}
.filter-bar label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.filter-bar select {
  background: var(--bg); border: 1px solid var(--border-h);
  color: var(--text); padding: 0.4rem 0.9rem;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 400;
  border-radius: var(--radius); cursor: pointer;
}
.filter-bar select:focus { outline: none; border-color: var(--gold); }

/* ---- PRODUKTSEITE ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; margin-top: 2rem; }
.product-detail-img {
  background: var(--bg-card); border: 1px solid var(--border);
  aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.product-detail-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-detail-info h1 {
  font-family: var(--font-serif); font-size: clamp(1.7rem,3vw,2.5rem);
  font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 1rem;
}
.detail-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin: 1.5rem 0;
}
.detail-meta-item { background: var(--bg-card); padding: 0.9rem 1.1rem; }
.detail-meta-item dt {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.3rem;
}
.detail-meta-item dd {
  font-family: var(--font-serif); font-size: 1.15rem;
  font-weight: 400; color: var(--text);
}
.detail-price { font-family: var(--font-serif); font-size: 2.6rem; color: var(--gold); font-weight: 400; margin: 1.5rem 0 0.3rem; }
.detail-grundpreis { font-size: 0.88rem; font-weight: 400; color: var(--text-muted); margin-bottom: 1.5rem; }
.btn-kaufen {
  display: inline-block; padding: 1rem 2.5rem;
  background: var(--wine); color: #fff; text-decoration: none;
  font-family: var(--font-sans); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--wine-light); transition: all 0.2s;
}
.btn-kaufen:hover { background: var(--wine-light); }
.detail-delivery { margin-top: 1rem; font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.detail-description { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.detail-description h2 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400; color: var(--gold-dim); margin-bottom: 1rem; }
.detail-description p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.85; }

/* ---- BREADCRUMB ---- */
.breadcrumb { font-size: 0.82rem; font-weight: 400; color: var(--text-muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4rem; color: var(--text-faint); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .container { padding: 2rem 1rem; }
  .detail-meta-grid { grid-template-columns: 1fr; }
}

/* ---- HERO SUCHWIDGET ---- */
.hero-search { margin-top: 2.5rem; }

.hero-search-box {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-h);
  padding: 1.5rem 2rem;
  min-width: 460px;
  max-width: 560px;
}

.hero-search-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}

.hero-search-row {
  display: flex;
  gap: 0;
}

.hero-search-row input[type="number"] {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-h);
  border-right: none;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  padding: 0.6rem 1.2rem;
  letter-spacing: 0.1em;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
  min-width: 0;
}
.hero-search-row input[type="number"]::-webkit-inner-spin-button,
.hero-search-row input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.hero-search-row input[type="number"]:focus { border-color: var(--gold); }
.hero-search-row input[type="number"]::placeholder { color: var(--text-faint); }

.hero-search-row button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wine);
  border: 1px solid var(--wine-light);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 1.6rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.hero-search-row button:hover { background: var(--wine-light); }

.hero-search-hint {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.7rem;
}
.hero-search-hint strong { color: var(--text-muted); font-weight: 500; }

@media (max-width: 600px) {
  .hero-search-box { min-width: 0; width: 100%; padding: 1.2rem; }
  .hero-search-row input[type="number"] { font-size: 1.8rem; }
}

/* ---- RELATED / CROSS-SELL SEKTIONEN auf Produktseite ---- */
.related-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-section.related-pers {
  background: linear-gradient(180deg, rgba(139,37,53,0.08) 0%, transparent 40%);
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--border-h);
}

.related-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.related-header h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text);
}
.related-header h2 em {
  font-style: italic;
  color: var(--gold);
}

.related-all {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
}
.related-all:hover { color: var(--gold); }

.related-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
  max-width: 680px;
  line-height: 1.7;
}

.related-subsection { margin-bottom: 2.5rem; }

.related-sub-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
