/* ============================================================
   FRONT-PAGE – Hero + Trust Widgets + Produkte
   ============================================================ */

.home .site-content {
  padding-top: 0;
}
/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--space-20) var(--space-6) 0;
  text-align: center;
  overflow: hidden;
}

/* Gradient Hintergrund – schwarz zu metallischem Silber/Stahl */
.hero--gradient {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(180, 180, 195, 0.22) 0%, rgba(120, 120, 140, 0.10) 35%, transparent 65%),
    radial-gradient(ellipse at 80% 60%, rgba(184, 168, 130, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 40%, rgba(160, 160, 180, 0.06) 0%, transparent 40%),
    linear-gradient(170deg, #1a1a20 0%, #0e0e0f 45%, #0a0a0b 100%);
}

/* Dezenter metallischer Schimmer oben */
.hero--gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-silver);
  opacity: 0.4;
}

/* Foto Hintergrund */
.hero--has-image {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.hero--has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 15, 1) 0%,
    rgba(14, 14, 15, 0.5) 10%,
    rgba(14, 14, 15, 0.1) 20%,
    rgba(14, 14, 15, 0) 40%,
    rgba(14, 14, 15, 0) 60%,
    rgba(14, 14, 15, 0.1) 80%,
    rgba(14, 14, 15, 0.5) 90%,
    rgba(14, 14, 15, 1) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 600px;
  padding-bottom: var(--space-16);
}

/* Logo */
.hero__logo {
  width: auto;
  height: 80px;
  margin-bottom: var(--space-2);
}

.hero__logo-placeholder {
  color: var(--color-silver-dark);
  margin-bottom: var(--space-2);
  opacity: 0.6;
}

/* Titel */
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: none;
  color: var(--color-silver-light);
  line-height: 1.1;
  margin: 0;
}

.hero__subtitle {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: none;
  color: var(--color-text-muted);
  margin: 0;
}

/* CTA Button */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  background: var(--gradient-silver);
  color: var(--color-bg);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.hero__cta:hover {
  color: var(--color-bg);
  box-shadow: var(--shadow-glow-silver);
  transform: translateY(-2px);
}

/* ---- Trust Widgets – horizontaler Scroll ---- */
.hero__trust-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-8) var(--space-6);
  display: flex;
  justify-content: center;
}

.hero__trust {
  display: flex;
  flex-direction: row;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
  max-width: var(--container-xl);
  width: 100%;
}

.hero__trust::-webkit-scrollbar {
  display: none;
}

.trust-item {
  flex: 1 1 0;
  min-width: 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6);
  background: rgba(22, 22, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.trust-item:hover {
  background: rgba(30, 30, 35, 0.85);
  border-color: rgba(200, 200, 208, 0.12);
}

.trust-item__icon {
  color: var(--color-silver);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-item__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.trust-item__text strong {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-silver-light);
  letter-spacing: var(--tracking-wide);
}

.trust-item__text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

/* ---- Produkte ---- */
.home-products {
  padding: var(--space-8) 0 var(--space-8);
}

.home-products__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-10);
}

.home-products__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-silver-light);
  letter-spacing: var(--tracking-tight);
}

.home-products__all {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.home-products__all:hover {
  color: var(--color-silver);
}

/* ---- Produkt-Karussell ---- */
.home-products__carousel-wrapper {
  margin-left: 0;
  margin-right: 0;
}

.home-products .woocommerce {
  overflow: visible;
}

/* Das eigentliche ul.products zum Scroll-Container umbauen */
.home-products .products.columns-3,
.home-products ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  gap: var(--space-6) !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
  grid-template-columns: unset !important;
}

.home-products .products.columns-3::-webkit-scrollbar,
.home-products ul.products::-webkit-scrollbar {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .home-products .products.columns-3,
  .home-products ul.products {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-light) transparent;
    padding-bottom: var(--space-4);
  }

  .home-products .products.columns-3::-webkit-scrollbar,
  .home-products ul.products::-webkit-scrollbar {
    display: block;
    height: 3px;
  }

  .home-products .products.columns-3::-webkit-scrollbar-track,
  .home-products ul.products::-webkit-scrollbar-track {
    background: transparent;
  }

  .home-products .products.columns-3::-webkit-scrollbar-thumb,
  .home-products ul.products::-webkit-scrollbar-thumb {
    background: var(--color-border-light);
    border-radius: var(--radius-full);
  }

  .home-products .products.columns-3::-webkit-scrollbar-thumb:hover,
  .home-products ul.products::-webkit-scrollbar-thumb:hover {
    background: var(--color-silver-dark);
  }
}

/* Jede Produktkarte: etwas schmäler als 1/3 → rechts bleibt Anschnitt sichtbar */
.home-products ul.products li.product {
  flex: 0 0 calc((100% - (var(--space-6) * 2)) / 3 - 32px) !important;
  width: calc((100% - (var(--space-6) * 2)) / 3 - 32px) !important;
  scroll-snap-align: start;
  margin: 0 !important;
}

/* Produkt-Karte ohne Bild */
.product-no-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .hero__title {
    font-size: var(--text-3xl);
    letter-spacing: 0.2em;
  }

  .trust-item {
    min-width: 160px;
    padding: var(--space-5) var(--space-6);
  }

  /* Tablet: 2 Karten sichtbar + Anschnitt der 3. */
  .home-products ul.products li.product {
    flex: 0 0 calc((100% - var(--space-6)) / 2 - 24px) !important;
    width: calc((100% - var(--space-6)) / 2 - 24px) !important;
  }
}

@media (max-width: 639px) {
  .hero {
    min-height: 50vh;
    padding-top: var(--space-16);
  }

  .hero__title {
    font-size: var(--text-2xl);
    letter-spacing: 0.15em;
  }

  .home-products__header {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* ── Trust-Boxen: alle 3 sichtbar, kein Scroll ── */
  .hero__trust-wrapper {
    padding: var(--space-4) 0;
  }

  .hero__trust {
    overflow-x: visible;
    scroll-snap-type: none;
    gap: var(--space-2);
  }

  .trust-item {
    min-width: 0;
    flex: 1 1 0;
    padding: var(--space-4) var(--space-3);
    gap: var(--space-3);
  }

  .trust-item__icon svg {
    width: 26px;
    height: 26px;
  }

  .trust-item__text strong {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    line-height: 1.3;
  }

  .trust-item__text span {
    font-size: 0.65rem;
    white-space: normal;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  /* ── Front-Page Produkte: Karussell bleibt, 2 sichtbar + Peek ── */
  .home-products .products.columns-3,
  .home-products ul.products {
    gap: 10px !important;
  }

  .home-products ul.products li.product {
    flex: 0 0 calc(50% - 15px) !important;
    width: calc(50% - 15px) !important;
  }
}

/* ============================================================
   STARTSEITE – KATEGORIE-KACHELN
   ============================================================ */

.home-categories {
  padding: var(--space-12) 0 var(--space-16);
}

.home-categories__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-silver-light);
  letter-spacing: var(--tracking-tight);
  text-transform: none;
  text-align: center;
  margin: 0 0 var(--space-10);
}

.home-categories__grid {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Kachel-Link ── */
.cat-tile {
  flex: 1;
  max-width: 300px;
  display: block;
  text-decoration: none;
  outline: none;
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.cat-tile:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

.cat-tile:focus-visible .cat-tile__outer {
  outline: 2px solid var(--color-silver-dark);
  outline-offset: 4px;
}

/* ── Äußeres Hex (Rahmen-Ebene) ── */
.cat-tile__outer {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 5;
  clip-path: polygon(50% 0%, 100% 20%, 100% 80%, 50% 100%, 0% 80%, 0% 20%);
  background: var(--color-silver);
  transition: background var(--transition-normal);
}

.cat-tile:hover .cat-tile__outer {
  background: var(--color-silver-light);
}

/* ── Inneres Hex (Bild-Ebene, 2px Abstand = sichtbarer Rahmen) ── */
.cat-tile__inner {
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 20%, 100% 80%, 50% 100%, 0% 80%, 0% 20%);
  overflow: hidden;
}

.cat-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cat-pos, center center);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.cat-tile:hover .cat-tile__img {
  transform: scale(1.06);
}

/* ── Kategorie-Label ── */
.cat-tile__label {
  position: absolute;
  bottom: 18%;
  left: 0;
  right: 0;
  background: rgba(14, 14, 15, 0.58);
  padding: var(--space-2);
  text-align: center;
  pointer-events: none;
}

.cat-tile__label span {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-silver-light);
  display: block;
  line-height: 1;
}

/* ── Tablet: ab 900px wird es eng → Slider mit ~2.5 sichtbaren Tiles ── */
@media (max-width: 900px) {
  .home-categories {
    padding: var(--space-10) 0 var(--space-12);
  }

  .home-categories__grid {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--space-5);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: none;
    padding: 0 var(--space-4) var(--space-2) var(--space-5);
    gap: var(--space-3);
  }

  .home-categories__grid::-webkit-scrollbar {
    display: none;
  }

  .cat-tile {
    flex: 0 0 38%;
    max-width: none;
    scroll-snap-align: start;
  }
}

/* ── Mobile: kleinere Tiles im Slider ── */
@media (max-width: 639px) {
  .home-categories {
    padding: var(--space-8) 0 var(--space-10);
  }

  .cat-tile {
    flex: 0 0 68%;
  }
}
