/* ── Reset & Basis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── Hilfsklassen ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.section-img {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  width: 100%;
  height: 340px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #3b1e0a;
  text-align: left;
  max-width: 520px;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #da940c;
  margin-bottom: 10px;
}
.body-text p {
  margin-bottom: 14px;
  color: #8c6440;
  max-width: 520px;
  text-align: left;
  font-size: 1.05rem;
}

/* ── KOPFZEILE ── */
header { width: 100%; }
.header-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 130px;
  background-image: url('config/src/pic/header.jpeg');
  background-color: #3b1e0a;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 48px;
}
.header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff8ee;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 0.03em;
}

/* ── NAVIGATION ── */
nav {
  background: #3b1e0a;
  border-bottom: 1px solid #d3d1c7;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 52px;
  gap: 4px;
}
.nav-inner a {
  text-decoration: none;
  color: #ffefe7;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 4px;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-inner a:hover, .nav-inner a.active { background: rgba(255,255,255,0.178); color: #fdbc5b; }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " ▾"; font-size: 11px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fdf8ef;
  border: 1px solid #ddd197;
  border-radius: 6px;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 6px 0;
  z-index: 200;
}
.dropdown-menu a { display: block; padding: 8px 16px; border-radius: 0; font-size: 13px; color: #3b1e0a !important; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d3d1c7;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  margin-left: auto;
  color: #fff;
}

/* ── SEKTIONEN ── */
.a { background-color: #fdf8ef; }
.b { background-color: #fef5e2; }
section { padding: 88px 0; }

/* ── Zweispaltiges Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
/* Bild links = Reihenfolge umkehren */
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── MEILENSTEINE ── */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.milestone-card {
  background: #fffdf7;
  border: 1px solid #d3d1c7;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.milestone-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
}
.milestone-card .year,
.milestone-card p {
  position: relative;
  z-index: 1;
}
.milestone-card .year {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ba7517;
  font-family: Arial, sans-serif;
  margin-bottom: 10px;
}
.milestone-card:has(.milestone-card-overlay) .year { color: #f9d98a; }
.milestone-card:has(.milestone-card-overlay) p { color: #f0ece4; }
.milestone-card p { font-size: 15px; color: #5f5e5a; }

/* ── PRODUKTE ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.product-card {
  border: 1px solid #e3dcc8;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(59,30,10,0.06);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59,30,10,0.13);
}
.product-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #fdf8ef;
}
.product-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-img-overlay {
  position: absolute; inset: 0;
  background: rgba(59,30,10,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
}
.product-img-overlay span {
  color: #fff; font-size: 0.85rem; font-family: Arial, sans-serif;
  border: 1px solid rgba(255,255,255,0.7); padding: 6px 18px; border-radius: 20px;
  letter-spacing: 0.05em;
}
.product-card:hover .product-img-overlay { opacity: 1; }
.product-info { padding: 18px 20px 20px; }
.product-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: #3b1e0a; line-height: 1.3; }
.product-desc-short { font-size: 13px; color: #7a6550; margin-bottom: 12px; line-height: 1.5; }

/* Varianten-Chips auf der Karte */
.product-variants-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.variant-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fef5e2; border: 1px solid #d3b87a; border-radius: 20px;
  padding: 3px 10px; font-size: 12px; color: #3b1e0a;
}
.variant-chip .variant-label { font-weight: 600; }
.variant-chip .variant-price { color: #c8870a; font-weight: 700; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.product-price-tag { font-size: 1.2rem; font-weight: 700; color: #c8870a; }
.product-unit-tag  { font-size: 12px; color: #7a6550; }
/* Kleine Varianten-Labels unter dem Preis */
.product-variants-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.variant-chip-small {
  display: inline-block;
  background: #f5f0e8; border: 1px solid #d3c9b6; border-radius: 12px;
  padding: 2px 9px; font-size: 11px; color: #7a6550; font-weight: 500;
}

/* ── PRODUKT-MODAL ── */
.prod-modal-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(20,10,0,0.65); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  padding: 16px;
}
.prod-modal-backdrop.open { opacity: 1; pointer-events: all; }
.prod-modal-box {
  background: #fff; border-radius: 20px;
  max-width: 900px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}
.prod-modal-backdrop.open .prod-modal-box { transform: none; }
.prod-modal-close {
  position: absolute; top: 16px; right: 20px; z-index: 2;
  background: rgba(255,255,255,0.9); border: 1px solid #e0d8c8;
  border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
  font-size: 15px; color: #3b1e0a; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.prod-modal-close:hover { background: #fef5e2; }
.prod-modal-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; min-height: 400px;
}
/* Galerie */
.prod-modal-gallery {
  background: #fdf8ef; border-radius: 20px 0 0 20px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 12px;
}
.prod-gallery-main {
  position: relative; border-radius: 12px; overflow: hidden;
  background: #fff; flex: 1; min-height: 240px;
}
.prod-gallery-main-img {
  width: 100%; height: 100%; object-fit: contain;
  display: block; min-height: 240px; max-height: 340px;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.92); border: 1px solid #e0d8c8;
  border-radius: 50%; width: 36px; height: 36px;
  cursor: pointer; font-size: 16px; color: #3b1e0a;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; z-index: 1;
}
.gallery-nav:hover { background: #fef5e2; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.prod-gallery-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.gallery-thumb {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: 8px; cursor: pointer; border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s; opacity: 0.7;
}
.gallery-thumb:hover { transform: scale(1.05); opacity: 1; }
.gallery-thumb.active { border-color: #da940c; opacity: 1; }
/* Info-Seite */
.prod-modal-info {
  padding: 32px 36px; display: flex; flex-direction: column; gap: 14px;
}
.prod-modal-badge {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: #da940c; font-family: Arial, sans-serif;
}
.prod-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700; color: #3b1e0a; line-height: 1.2;
  margin: 0;
}
.prod-modal-desc { font-size: 0.95rem; color: #6b5640; line-height: 1.7; }
.prod-modal-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #8a7560; font-family: Arial, sans-serif; margin-bottom: 6px;
}
/* Variantenauswahl im Modal */
.prod-variants-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-select-btn {
  display: flex; flex-direction: column; align-items: center;
  background: #fdf8ef; border: 2px solid #e3dcc8;
  border-radius: 12px; padding: 8px 16px; cursor: pointer;
  transition: all 0.15s; min-width: 80px;
}
.variant-select-btn:hover { border-color: #da940c; background: #fef5e2; }
.variant-select-btn.active { border-color: #da940c; background: #fef5e2; }
.vs-label { font-size: 0.9rem; font-weight: 700; color: #3b1e0a; }
.vs-price { font-size: 0.8rem; color: #c8870a; font-weight: 600; margin-top: 2px; }
/* Preis-Zeile */
.prod-modal-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.prod-modal-price { font-size: 2rem; font-weight: 800; color: #c8870a; font-family: 'Playfair Display', serif; }
.prod-modal-unit  { font-size: 0.9rem; color: #7a6550; }
.prod-modal-deposit { font-size: 12px; color: #9a8570; }
.prod-modal-contact {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #6b5640; background: #fdf8ef;
  border: 1px solid #e3dcc8; border-radius: 10px; padding: 10px 16px;
  margin-top: auto;
}
.prod-modal-contact svg { flex-shrink: 0; color: #da940c; }

/* ── PRÄMIERUNG ── */
.award-col-img { position: relative; }
.carousel {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 12px;
}
.carousel-slides { display: flex; height: 100%; transition: transform 0.4s ease; }
.carousel-slide {
  min-width: 100%;
  height: 100%;
  background: #e8e5da;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.carousel-btn {
  background: #fff;
  border: 1px solid #d3d1c7;
  border-radius: 4px;
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.carousel-btn:hover { background: #f1efe8; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #d3d1c7;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.carousel-dot.active { background: #ba7517; }

/* ── AKTUELLES ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.news-card {
  background: #fff;
  border: 1px solid #d3d1c7;
  border-radius: 10px;
  padding: 24px;
}
.news-date { font-size: 12px; font-family: Arial, sans-serif; color: #888780; margin-bottom: 10px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: #3b1e0a; }
.news-card p { font-size: 15px; color: #5f5e5a; }

/* ── FUSSZEILE ── */
footer { background: #2c2c2a; color: #d3d1c7; padding: 52px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: #faf8f3;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col p, .footer-col a {
  font-size: 14px; color: #888780; text-decoration: none;
  display: block; margin-bottom: 7px; transition: color 0.15s;
}
.footer-col a:hover { color: #d3d1c7; }
.footer-bottom {
  border-top: 1px solid #444441;
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  font-family: Arial, sans-serif;
  color: #5f5e5a;
}
.footer-bottom a { color: #888780; text-decoration: none; margin: 0 8px; }
.footer-bottom a:hover { color: #d3d1c7; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .two-col, .milestones-grid, .products-grid, .news-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .two-col.reverse { direction: ltr; }
  .milestones-grid { grid-template-columns: repeat(2, 1fr); }
  .header-banner { height: 100px; justify-content: center; padding-right: 0; }
  .nav-inner a:not(.nav-logo) { display: none; }
  .nav-toggle { display: block; }
  .nav-inner.open a { display: block; }
  nav.open .nav-inner { flex-wrap: wrap; height: auto; padding: 8px 0; }
  /* Modal mobil */
  .prod-modal-inner { grid-template-columns: 1fr; }
  .prod-modal-gallery { border-radius: 20px 20px 0 0; padding: 20px; }
  .prod-modal-info { padding: 20px 24px 28px; }
  .prod-modal-title { font-size: 1.4rem; }
  .prod-modal-price { font-size: 1.6rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
}
