/**
 * Glut & Kohle – Startseite
 *
 * Eigene Komposition, unabhängig vom Slider/Kachel-Layout des Basisthemes:
 * Bogenfenster-Hero, Laufband, Sortiment als Register, Regale mit
 * Seitenspalte, Ratgeber in Spalten, geteilter Angebotsbereich.
 * Wird nur auf der Startseite geladen.
 */

/* ---------- Gemeinsames ---------- */
.gk-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.gk-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.gk-link:hover {
  color: var(--color-accent);
  gap: 14px;
}

.gk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gk-btn--ember {
  background: var(--color-accent);
  color: #FFFFFF;
}
.gk-btn--ember:hover {
  background: var(--color-accent-hover);
  color: #FFFFFF;
}
.gk-btn--light {
  background: #FFFFFF;
  color: #1C1917;
}
.gk-btn--light:hover {
  background: #1C1917;
  color: #FFFFFF;
}
.gk-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
}
.gk-btn--ghost:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* ---------- 1. Hero ---------- */
.gk-hero {
  position: relative;
  display: grid;
  background:
    radial-gradient(ellipse 60% 70% at 78% 60%, rgba(194, 65, 12, 0.28), transparent 70%),
    #141210;
  color: #F5EFE6;
  overflow: hidden;
}

.gk-hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.gk-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease;
}

.gk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: min(84vh, 740px);
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.gk-hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-glow);
}
.gk-hero-kicker::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

.gk-hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.gk-hero-title .glut-em {
  color: var(--color-glow);
}

.gk-hero-text {
  max-width: 520px;
  margin: 26px 0 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(245, 239, 230, 0.75);
}

.gk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 38px;
}

.gk-hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F5EFE6;
  font-weight: 600;
  text-decoration: none;
}
.gk-hero-phone:hover {
  color: var(--color-glow);
}

/* Bild im Bogenfenster – wie die Sichtscheibe eines Kaminofens */
.gk-hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.gk-hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(226, 104, 60, 0.55);
  border-radius: 999px 999px 0 0;
}
.gk-arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 70%, #9A3412 0%, #3B1A0B 55%, #1C1917 100%);
}
.gk-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.gk-hero-slide.is-active .gk-arch img {
  transform: scale(1);
}
.gk-arch-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-glow);
}

/* ---------- 2. Laufband ---------- */
.gk-ticker {
  overflow: hidden;
  background: var(--color-accent);
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.gk-ticker-track {
  display: flex;
  width: max-content;
  animation: gkTicker 40s linear infinite;
}
.gk-ticker:hover .gk-ticker-track {
  animation-play-state: paused;
}
.gk-ticker-list {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gk-ticker-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  white-space: nowrap;
  font-size: 0.95rem;
}
.gk-ticker-list li::after {
  content: "✦";
  margin: 0 34px;
  font-size: 0.75rem;
  opacity: 0.7;
}
.gk-ticker-list strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
}
.gk-ticker-list span {
  opacity: 0.85;
}
@keyframes gkTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 3. Register ---------- */
.gk-index {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--color-bg);
}
.gk-index-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.gk-index-head {
  position: sticky;
  top: calc(var(--header-height, 80px) + 32px);
}
.gk-index-head h2 {
  margin: 0 0 28px;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.gk-index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-text);
}
.gk-index-row {
  display: grid;
  grid-template-columns: 56px 72px minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 20px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease;
}
.gk-index-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-accent);
}
.gk-index-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 54px;
  overflow: hidden;
  background: var(--color-section-alt);
  color: var(--color-accent);
}
.gk-index-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
  transition: filter 0.25s ease;
}
.gk-index-name {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
}
.gk-index-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.gk-index-arrow {
  display: flex;
  color: var(--color-accent);
  transform: translateX(-6px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gk-index-row:hover,
.gk-index-row:focus-visible {
  background: #1C1917;
  color: #FFFFFF;
  padding-left: 22px;
}
.gk-index-row:hover .gk-index-count,
.gk-index-row:focus-visible .gk-index-count {
  color: rgba(255, 255, 255, 0.65);
}
.gk-index-row:hover .gk-index-num,
.gk-index-row:hover .gk-index-arrow {
  color: var(--color-glow);
}
.gk-index-row:hover .gk-index-arrow,
.gk-index-row:focus-visible .gk-index-arrow {
  opacity: 1;
  transform: none;
}
.gk-index-row:hover .gk-index-thumb img {
  filter: none;
}

/* ---------- 4. Regale ---------- */
.gk-shelf {
  padding: clamp(56px, 7vw, 100px) 0;
  background: var(--color-section-alt);
}
.gk-shelf:nth-child(even) {
  background: var(--color-bg);
}
.gk-shelf-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.gk-shelf-aside {
  position: sticky;
  top: calc(var(--header-height, 80px) + 32px);
  padding-top: 18px;
  border-top: 3px solid var(--color-accent);
}
.gk-shelf-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-accent);
}
.gk-shelf-aside h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.gk-shelf-aside p {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.gk-shelf-products.glut-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

/* ---------- 5. Ratgeber ---------- */
.gk-guide {
  padding: clamp(64px, 8vw, 120px) 0;
  background: #1C1917;
  color: #F5EFE6;
}
.gk-guide-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.gk-guide-head .gk-eyebrow {
  color: var(--color-glow);
}
.gk-guide-head h2 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  color: #FFFFFF;
}
.gk-guide-head h2 .glut-em {
  color: var(--color-glow);
}
.gk-guide-head p {
  margin: 0;
  color: rgba(245, 239, 230, 0.7);
  line-height: 1.65;
}
.gk-guide-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.gk-guide-facts > div {
  padding: 28px 28px 8px 0;
  border-top: 1px solid rgba(245, 239, 230, 0.2);
}
.gk-guide-facts > div + div {
  padding-left: 28px;
  border-left: 1px solid rgba(245, 239, 230, 0.12);
}
.gk-guide-facts dt {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--color-glow);
}
.gk-guide-facts dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(245, 239, 230, 0.75);
}

/* ---------- 6. Angebot ---------- */
.gk-offer {
  background: linear-gradient(90deg, #141210 0 58%, var(--color-accent) 58% 100%);
  color: #FFFFFF;
}
.gk-offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  min-height: 300px;
}
.gk-offer-copy {
  padding: 56px 48px 56px 0;
}
.gk-offer-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  color: #FFFFFF;
}
.gk-offer-copy h2 .glut-em {
  color: var(--color-glow);
}
.gk-offer-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}
.gk-offer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 56px 0 56px 48px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .gk-shelf-products.glut-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gk-guide-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gk-guide-facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .gk-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
  }
  .gk-hero-visual {
    order: -1;
    justify-self: center;
    max-width: 340px;
  }
  .gk-hero-visual::before {
    inset: 12px -12px -12px 12px;
  }
  .gk-arch {
    aspect-ratio: 1 / 1;
  }
  .gk-index-grid,
  .gk-shelf-grid {
    grid-template-columns: 1fr;
  }
  .gk-index-head,
  .gk-shelf-aside {
    position: static;
  }
  .gk-offer {
    background: #141210;
  }
  .gk-offer-grid {
    grid-template-columns: 1fr;
  }
  .gk-offer-copy {
    padding: 56px 0 24px;
  }
  .gk-offer-actions {
    margin: 0 -16px;
    padding: 32px 16px 48px;
    background: var(--color-accent);
  }
}

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  .gk-hero-grid {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .gk-hero-visual {
    max-width: 240px;
  }
  .gk-hero-text {
    font-size: 1rem;
  }
  .gk-hero-actions .gk-btn {
    width: 100%;
  }
  .gk-index-row {
    grid-template-columns: 36px 56px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 14px 4px;
  }
  .gk-index-thumb {
    width: 56px;
    height: 44px;
  }
  .gk-index-count {
    display: none;
  }
  .gk-index-arrow {
    opacity: 1;
    transform: none;
  }
  .gk-index-row:hover,
  .gk-index-row:focus-visible {
    padding-left: 4px;
  }
  /* Regal als waagerechte Reihe zum Wischen */
  /* !important: main.css erzwingt mobil ein 2-Spalten-Raster */
  .gk-shelf-products.glut-product-grid {
    display: flex !important;
    gap: 14px !important;
    margin: 0 -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    -webkit-overflow-scrolling: touch;
  }
  .gk-shelf-products.glut-product-grid > * {
    flex: 0 0 80% !important;
    scroll-snap-align: start;
  }
  .gk-guide-facts {
    grid-template-columns: 1fr;
  }
  .gk-guide-facts > div,
  .gk-guide-facts > div + div {
    padding: 22px 0 6px;
    border-left: 0;
  }
  .gk-offer-actions .gk-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gk-ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .gk-ticker-list[aria-hidden="true"] {
    display: none;
  }
  .gk-ticker-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .gk-hero-slide,
  .gk-hero-slide.is-active,
  .gk-arch img {
    transition: none;
  }
}
