/* =================================================================
   TAUDTMANN — Homepage Erweiterungen
   Ergänzung zu styles.css für Index-Seite (Slider, ViertelStück, etc.)
   ================================================================= */

/* ----------------------------------------------------------------
   "Unsere Geschenkboxen" – Rechtsbündiger Slider
   ---------------------------------------------------------------- */
.boxes-section {
  padding: clamp(60px, 7vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
.boxes-section .boxes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 32px;
}
.boxes-section .boxes-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}
.boxes-section .boxes-head .subtitle {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-mute);
  max-width: 440px;
}
.boxes-section .boxes-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.boxes-section .boxes-nav .arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink);
  transition: all 0.2s;
}
.boxes-section .boxes-nav .arrow-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.boxes-section .boxes-nav .arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Slider Track – am rechten Bildschirmrand auslaufend */
.boxes-slider {
  position: relative;
  margin-right: calc(50% - 50vw);
}
.boxes-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-right: 5vw;
}
.boxes-track::-webkit-scrollbar { display: none; }

.box-slide {
  flex: 0 0 calc((100% - 48px) / 3.5);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}
.box-slide:hover { transform: translateY(-4px); }

/* Realistische Box-Visualisierung im VIERTELSTÜCK-Stil */
.box-product {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #fafafa 0%, #e8e8e8 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 50px -25px rgba(0,0,0,0.25);
}
.box-product.dark {
  background: linear-gradient(135deg, #ebebeb 0%, #d0d0d0 100%);
}
.box-product .edge {
  /* farbiger Streifen am linken Rand wie bei VIERTELSTÜCK */
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 8px;
}
.box-product .edge.pink { background: linear-gradient(180deg, var(--pink), var(--pink-strong)); }
.box-product .edge.blue { background: linear-gradient(180deg, var(--blue), var(--blue-strong)); }
.box-product .edge.yellow { background: linear-gradient(180deg, var(--yellow), var(--yellow-strong)); }

.box-product .brand-mark {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
}
.box-product .box-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
  margin-bottom: 4px;
}
.box-product .box-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-align: center;
  text-transform: uppercase;
}
.box-product .box-sub.pink { color: var(--pink-strong); }
.box-product .box-sub.blue { color: var(--blue-strong); }
.box-product .box-sub.yellow { color: #a8b800; }

.box-product .box-tag {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}

.box-slide .box-foot-2 {
  padding: 18px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.box-slide .box-foot-2 h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.box-slide .box-foot-2 .sub {
  font-size: 13px;
  color: var(--ink-mute);
}
.box-slide .box-foot-2 .price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.boxes-section .all-link {
  margin-top: 8px;
  text-align: right;
}
.boxes-section .all-link a {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.boxes-section .all-link a:hover { color: var(--pink-strong); border-color: var(--pink-strong); }

/* ----------------------------------------------------------------
   ViertelStück Teaser-Sektion (dunkler Hintergrund)
   ---------------------------------------------------------------- */
.vs-section {
  background: linear-gradient(160deg, #161616 0%, #050505 100%);
  color: #fff;
  padding: clamp(80px, 10vw, 120px) 0;
  margin: clamp(60px, 8vw, 100px) 0 0;
  position: relative;
  overflow: hidden;
}
.vs-section::before {
  /* dezenter Lichteinfall oben links wie im Mockup */
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at top left, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}
.vs-section .vs-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Linke Spalte: Brand + Konzept */
.vs-intro .vs-brand-mark {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.vs-intro .vs-name {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 22px;
  color: #fff;
}
.vs-intro .vs-name .dot { color: var(--pink-strong); }
.vs-intro .vs-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  margin-bottom: 22px;
}
.vs-intro .vs-tag {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}
.vs-intro .vs-concept {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
  margin: 22px 0 36px;
  letter-spacing: -0.01em;
}
.vs-intro .vs-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.vs-intro .vs-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.vs-intro .vs-feat .ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 13px;
}
.vs-intro .vs-feat .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

/* Rechte Spalte: 3 Boxen */
.vs-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vs-box {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
.vs-box .vs-box-visual {
  background: linear-gradient(135deg, #fefefe 0%, #ededed 100%);
  border-radius: 4px;
  aspect-ratio: 0.85/1;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 60px -25px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  transition: transform 0.3s;
}
.vs-box:hover .vs-box-visual { transform: translateY(-6px); }
.vs-box .vs-box-edge {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
}
.vs-box.pink .vs-box-edge { background: linear-gradient(180deg, var(--pink), var(--pink-strong)); }
.vs-box.blue .vs-box-edge { background: linear-gradient(180deg, var(--blue), var(--blue-strong)); }
.vs-box.yellow .vs-box-edge { background: linear-gradient(180deg, var(--yellow), var(--yellow-strong)); }

.vs-box .vs-box-brand {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink);
  margin-bottom: 8px;
}
.vs-box .vs-box-name {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
}
.vs-box .vs-box-name .dot { display: inline-block; }
.vs-box.pink .vs-box-name .dot { color: var(--pink-strong); }
.vs-box.blue .vs-box-name .dot { color: var(--blue-strong); }
.vs-box.yellow .vs-box-name .dot { color: #a8b800; }

.vs-box .vs-box-city {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.vs-box.pink .vs-box-city { color: var(--pink-strong); }
.vs-box.blue .vs-box-city { color: var(--blue-strong); }
.vs-box.yellow .vs-box-city { color: #a8b800; }

.vs-box .vs-box-line {
  width: 36px;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
  margin-top: 10px;
}
.vs-box .vs-box-tag {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}

/* Karteninfo + Add-to-Cart-Button */
.vs-box-info {
  padding: 16px 4px 0;
  text-align: center;
}
.vs-box-info h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  color: #fff;
}
.vs-box-info .meta {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.vs-box-info .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.vs-box-info .price {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.vs-box-info .add-btn {
  background: #fff;
  color: var(--ink);
  border: 0;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.vs-box-info .add-btn:hover {
  background: var(--pink-strong);
  color: #fff;
}
.vs-box.blue .vs-box-info .add-btn:hover { background: var(--blue-strong); }
.vs-box.yellow .vs-box-info .add-btn:hover { background: var(--yellow-strong); color: var(--ink); }

.vs-cta {
  text-align: center;
  margin-top: 50px;
}
.vs-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}
.vs-cta a:hover { border-color: #fff; }

/* ----------------------------------------------------------------
   Verbesserte Box-Visualisierung (Editorial + Brand sections)
   ---------------------------------------------------------------- */
.editorial-visual .stack .mini-box,
.brand-section .open-box {
  /* leichter ausgearbeitet für realistischere Wirkung */
}
.editorial-visual .stack .mini-box {
  background: linear-gradient(135deg, #fafafa 0%, #e0e0e0 100%);
  box-shadow: 0 18px 32px -12px rgba(0,0,0,0.25);
  position: relative;
}
.editorial-visual .stack .mini-box.dark {
  background: linear-gradient(135deg, #2a2a2a 0%, #0a0a0a 100%);
}
.editorial-visual .stack .mini-box::before {
  content: 'TAUDTMANN';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--ink);
}
.editorial-visual .stack .mini-box.dark::before { color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .vs-section .vs-grid { grid-template-columns: 1fr; gap: 40px; }
  .vs-intro .vs-features { grid-template-columns: 1fr 1fr; }
  .box-slide { flex: 0 0 calc((100% - 24px) / 2.2); }
}
@media (max-width: 768px) {
  .vs-products { grid-template-columns: 1fr; gap: 24px; }
  .vs-intro .vs-features { grid-template-columns: 1fr; }
  .boxes-section .boxes-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .box-slide { flex: 0 0 calc(100% - 60px); }
}

/* =================================================================
   TOP KATEGORIEN
   ================================================================= */
.top-cat-section {
  padding: clamp(60px, 7vw, 90px) 0 30px;
}
.top-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.top-cat-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}
.top-cat-card:hover { transform: translateY(-4px); }
.top-cat-card:hover .top-cat-visual { background: linear-gradient(170deg, #f0f0f0 0%, #e0e0e0 100%); }

.top-cat-visual {
  aspect-ratio: 1/1;
  background: linear-gradient(170deg, var(--bg-soft) 0%, #ebebeb 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.top-cat-visual::before {
  /* TAUDTMANN-Brand-Mark oben links */
  content: 'TAUDTMANN';
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  opacity: 0.4;
}
.top-cat-visual .badge {
  /* Kategorienzahl rechts oben */
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.top-cat-visual .acryl {
  /* Akzent-Streifen am unteren Rand */
  position: absolute;
  bottom: 14%;
  left: -5%;
  width: 60%;
  height: 5px;
  border-radius: 3px;
}
.top-cat-visual .acryl.pink { background: linear-gradient(90deg, var(--pink), var(--pink-strong)); }
.top-cat-visual .acryl.blue { background: linear-gradient(90deg, var(--blue), var(--blue-strong)); }
.top-cat-visual .acryl.yellow { background: linear-gradient(90deg, var(--yellow), var(--yellow-strong)); }

/* Produkt-Glas/Flaschen-Visualisierung */
.top-cat-visual .item {
  width: 42%;
  aspect-ratio: 0.7;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 24px 36px -16px rgba(0, 0, 0, 0.3);
}
.top-cat-visual .item::before {
  /* Deckel/Kappe */
  content: '';
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 8%;
  background: #2a2a2a;
  border-radius: 4px 4px 0 0;
}
.top-cat-visual .item .lbl {
  /* Etikett */
  position: absolute;
  top: 30%;
  left: 12%;
  right: 12%;
  background: #fff;
  padding: 10px 6px;
  border-radius: 3px;
  text-align: center;
}
.top-cat-visual .item .lbl .brand {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: 3px;
}
.top-cat-visual .item .lbl .name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.top-cat-visual .item.jam { background: linear-gradient(180deg, #f2d4a8 0%, #d8a368 100%); }
.top-cat-visual .item.jam .lbl .name { color: var(--pink-strong); }
.top-cat-visual .item.choco { background: linear-gradient(180deg, #6b3a1f 0%, #2a1810 100%); }
.top-cat-visual .item.choco .lbl .name { color: #b07a3a; }
.top-cat-visual .item.oil { background: linear-gradient(180deg, #4a5d2a 0%, #1f2810 100%); }
.top-cat-visual .item.oil .lbl .name { color: var(--blue-strong); }
.top-cat-visual .item.wine { background: linear-gradient(180deg, #6e1c2a 0%, #2a0a10 100%); }
.top-cat-visual .item.wine .lbl .name { color: var(--pink-strong); }

.top-cat-info {
  padding: 16px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.top-cat-info h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
  line-height: 1.25;
}
.top-cat-info .count {
  font-size: 12px;
  color: var(--ink-mute);
}
.top-cat-info .arr {
  font-size: 20px;
  color: var(--ink-mute);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.top-cat-card:hover .top-cat-info .arr {
  color: var(--ink);
  transform: translateX(3px);
}

/* =================================================================
   NEUESTE PRODUKTE
   ================================================================= */
.newest-section {
  padding: clamp(40px, 5vw, 60px) 0 clamp(50px, 6vw, 80px);
}
.newest-section .boxes-head .see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.newest-section .boxes-head .see-all-link:hover {
  color: var(--pink-strong);
  border-color: var(--pink-strong);
}

/* Responsive */
@media (max-width: 1024px) {
  .top-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .top-cat-grid { grid-template-columns: 1fr; }
}
