/* ------------------------------------------------------------------
   Lannertmarkt + Ille — home page only (lane: common/home)
   Shared shell (header/footer/hi-container) lives in theme.css.
   ------------------------------------------------------------------ */

:root {
  --hi-red: #c31722;
  --hi-ink: #2b2b2b;
  --hi-surface: #f6f7f9;
  --hi-radius: 9px;
}

.hi-home { background: var(--hi-surface); }

/* fallback only — theme.css owns the real container */
.hi-home .hi-container {
  width: 100%;
  max-width: 1420px;
  margin-inline: auto;
  padding-inline: 36px;
}

@media (max-width: 767px) {
  .hi-home .hi-container { padding-inline: 16px; }
}

.hi-section { padding: 28px 0; }
.hi-section--tight { padding-top: 20px; padding-bottom: 20px; }

.hi-h2 {
  font-family: Montserrat, Barlow, sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #1d1d1c;
  margin: 0 0 20px;
}

@media (max-width: 767px) { .hi-h2 { font-size: 22px; margin-bottom: 14px; } }

/* ---------------- buttons ---------------- */
.hi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: var(--hi-radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 16px;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.hi-btn svg { width: 18px; height: 18px; flex: none; }
.hi-btn--primary { background: var(--hi-red); color: #fff; }
.hi-btn--primary:hover { background: #a3121b; }

/* ---------------- hero ---------------- */
/* one banner, full container width */
.hi-hero { display: block; }

.hi-hero__slider {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: var(--hi-surface);
}

.hi-hero__track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.hi-hero__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 21 / 9;
  display: block;
  overflow: hidden;
}

.hi-hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hi-hero__text {
  position: absolute;
  left: 42px;
  bottom: 74px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
  max-width: 46%;
}

.hi-hero__eyebrow { font-size: 15px; font-weight: 500; }

.hi-hero__title {
  font-family: Montserrat, 'Archivo Black', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
}

.hi-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.hi-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  padding: 0;
}

.hi-dots button.is-active { background: #fff; }

@media (max-width: 1023px) {
  /* текст между стрелками, чтобы кругляш не наезжал на заголовок */
  .hi-hero__text { left: 48px; bottom: 56px; max-width: calc(100% - 96px); gap: 8px; }
  .hi-dots { bottom: 20px; }
  .hi-hero__title { font-size: 24px; }
  .hi-hero__slide { aspect-ratio: 4 / 3; }
}

/* ---------------- arrows (hero + product sliders) ---------------- */
.hi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: #1d1d1c;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(22, 24, 29, .12);
  z-index: 3;
  padding: 0;
}

.hi-arrow svg { width: 20px; height: 20px; }
.hi-arrow:hover { background: var(--hi-red); border-color: var(--hi-red); color: #fff; }
.hi-arrow--prev { left: 8px; }
.hi-arrow--next { right: 8px; }

.hi-hero__slider .hi-arrow { background: rgba(255, 255, 255, .9); transition: background .15s ease, border-color .15s ease, color .15s ease; }

/* Banner-Pfeile hovern wie die Pfeile der Produktreihen: rot statt blass */
.hi-hero__slider .hi-arrow:hover,
.hi-hero__slider .hi-arrow:focus-visible {
  background: var(--hi-red);
  border-color: var(--hi-red);
  color: #fff;
  opacity: 1;
}

/* ---------------- product slider ---------------- */
.hi-slider {
  position: relative;
  background: var(--hi-surface);
  border-radius: 5px;
  padding: 18px 56px;
  overflow: hidden;
}

/* clips the row so no half card peeks into the arrow padding */
.hi-slider__viewport { overflow: hidden; }

.hi-slider__track {
  display: flex;
  gap: 16px;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.hi-slider__track::-webkit-scrollbar { display: none; }

/* 4 cards visible on desktop, 2 on tablet, 1.15 on mobile */
.hi-pcard {
  flex: 0 0 calc((100% - 3 * 16px) / 4);
  max-width: calc((100% - 3 * 16px) / 4);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 3px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(22, 24, 29, .07);
}

@media (max-width: 1199px) {
  .hi-pcard { flex-basis: calc((100% - 2 * 16px) / 3); max-width: calc((100% - 2 * 16px) / 3); }
}

@media (max-width: 900px) {
  .hi-pcard { flex-basis: calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
}

@media (max-width: 640px) {
  .hi-slider { padding: 14px 14px; }
  .hi-pcard { flex-basis: 100%; max-width: 100%; padding: 10px; }
  .hi-arrow { width: 34px; height: 34px; }
  .hi-arrow--prev { left: 2px; }
  .hi-arrow--next { right: 2px; }
}

.hi-pcard__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.hi-pcard__media img { width: 100%; height: 100%; object-fit: contain; display: block; }

.hi-pcard__flag {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--hi-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
}

.hi-pcard__rating { display: flex; justify-content: center; gap: 2px; margin: 10px 0 6px; }
.hi-star { width: 14px; height: 14px; fill: #d5dbe2; }
.hi-star.is-on { fill: #f5a623; }

.hi-pcard__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 6px;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hi-pcard__name a { color: inherit; text-decoration: none; }
.hi-pcard__name a:hover { color: var(--hi-red); }

.hi-pcard__desc {
  font-size: 12px;
  line-height: 1.45;
  color: #4d4d4d;
  text-align: center;
  margin: 0 0 10px;
  min-height: 3.4em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hi-pcard__price {
  margin-top: auto;
  text-align: center;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.hi-price { font-size: 16px; font-weight: 700; white-space: nowrap; }
.hi-price.is-special { color: var(--hi-red); }
.hi-price-old { font-size: 12px; color: #8a8a8a; text-decoration: line-through; white-space: nowrap; }

.hi-pcard__actions { display: flex; gap: 8px; margin-top: 12px; }

.hi-btn--cart {
  flex: 1 1 auto;
  background: var(--hi-red);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

.hi-btn--cart:hover { background: #a3121b; }

.hi-btn--wish {
  flex: 0 0 42px;
  width: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid #ddd;
  color: #4d4d4d;
}

.hi-btn--wish svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hi-btn--wish.is-active { border-color: var(--hi-red); color: var(--hi-red); }
.hi-btn--wish.is-active svg { fill: var(--hi-red); stroke: var(--hi-red); }

/* icon + label always stay on one line, also on a phone */
.hi-btn--cart span { display: inline; }

/* ---------------- dark usp + mosaic ---------------- */
.hi-dark {
  background: #1f1f1f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='4' height='8' fill='%23242424'/%3E%3C/svg%3E") repeat;
  color: #fff;
  padding: 56px 0 40px;
  margin-top: 24px;
}

.hi-usps {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.hi-usps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hi-usp__icon svg { width: 34px; height: 34px; }
.hi-usp__text { font-size: 14px; line-height: 1.5; max-width: 260px; }

@media (max-width: 900px) {
  .hi-usps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 30px; }
  .hi-dark { padding: 34px 0 26px; }
}

.hi-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hi-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 16 / 9;
  background: var(--hi-red);
}

/* double width, same height as its neighbours — no empty hole in the row */
.hi-tile--wide { grid-column: span 2; aspect-ratio: 32 / 9; }
.hi-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hi-tile:hover img { transform: scale(1.04); }

.hi-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hi-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.hi-chip em { font-style: normal; }

@media (max-width: 900px) {
  .hi-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hi-tile--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}

/* ---------------- Einkaufswelten ---------------- */
.hi-section--worlds { background: #f6f7f9; padding: 28px 0 20px; }
.hi-section--worlds .hi-h2 { font-size: 38px; font-weight: 400; letter-spacing: -.2px; margin-bottom: 38px; }

.hi-worlds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 40px;
}

.hi-worlds .hi-tile { aspect-ratio: 16 / 9; background: var(--hi-surface); border-radius: 4px; }

.hi-worlds .hi-chip {
  left: 20px;
  bottom: 20px;
  gap: 6px;
  background: #fff;
  color: #1d1d1c;
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 17px;
  box-shadow: 0 1px 6px rgba(22, 24, 29, .18);
}

@media (max-width: 900px) {
  .hi-worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hi-section--worlds { padding: 26px 0 20px; }
  .hi-section--worlds .hi-h2 { font-size: 22px; margin-bottom: 14px; }
  .hi-worlds .hi-chip { left: 12px; bottom: 12px; }
}

/* ---------------- FAQ ---------------- */
.hi-faq-section { background: var(--hi-surface); margin-top: 8px; }
.hi-faq { display: flex; flex-direction: column; gap: 10px; max-width: 980px; }

.hi-faq__item { background: #fff; border-radius: var(--hi-radius); border: 1px solid #e6e6e6; }
.hi-faq__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
}

.hi-faq__item > summary::-webkit-details-marker { display: none; }

.hi-faq__item > summary i {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
}

.hi-faq__item > summary i::before,
.hi-faq__item > summary i::after {
  content: "";
  position: absolute;
  background: var(--hi-red);
  border-radius: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hi-faq__item > summary i::before { width: 16px; height: 2px; }
.hi-faq__item > summary i::after { width: 2px; height: 16px; transition: opacity .15s ease; }
.hi-faq__item[open] > summary i::after { opacity: 0; }

.hi-faq__body { padding: 0 18px 16px; font-size: 14px; line-height: 1.6; color: #4d4d4d; }
.hi-faq__body p { margin: 0; }

/* ---------------- newsletter ---------------- */
.hi-newsletter { background: var(--hi-ink); color: #fff; padding: 26px 0; position: relative; }

.hi-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hi-newsletter__text { font-size: 14px; line-height: 1.5; max-width: 520px; margin: 0; }

.hi-newsletter__form {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--hi-radius);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  height: 44px;
}

.hi-newsletter__icon { display: grid; place-items: center; width: 42px; color: #4d4d4d; flex: none; }
.hi-newsletter__icon svg { width: 20px; height: 20px; }

.hi-newsletter__form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  font-size: 14px;
  color: #1d1d1c;
  background: #fff;
  padding: 0 8px 0 0;
}

.hi-newsletter__form input:focus { outline: 0; box-shadow: none; }

.hi-newsletter__form button {
  flex: none;
  width: 46px;
  border: 0;
  background: var(--hi-red);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hi-newsletter__form button svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .hi-newsletter__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .hi-newsletter__form { max-width: none; }
}

.hi-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: #3cc261;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--hi-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  z-index: 60;
}


/* ---------- Rutine 9: Mobilansicht (390 px) ----------
   Produktkarussells zeigen genau zwei Karten, die Pfeile stehen seitlich neben
   den Karten (Innenabstand haelt sie frei); der Warenkorb-Button ist nur noch das
   Wagensymbol. Die Einkaufswelten werden zum Karussell mit zwei sichtbaren
   Kacheln und Schritt um eine Kachel. */
@media (max-width: 640px) {
  .hi-slider { padding: 14px 38px; }
  .hi-slider__track { gap: 10px; }

  .hi-pcard {
    flex-basis: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
    padding: 10px;
  }

  .hi-pcard__desc { display: none; }
  .hi-pcard__name { font-size: 13px; margin-bottom: 4px; }
  .hi-pcard__rating { margin: 8px 0 4px; }
  .hi-pcard__price { gap: 5px; }
  .hi-price { font-size: 15px; }
  .hi-price-old { font-size: 11px; }

  .hi-pcard__actions { gap: 6px; margin-top: 10px; }
  .hi-btn--cart span { display: none; }
  .hi-btn--cart { gap: 0; padding: 11px 6px; height: 40px; }
  .hi-btn--wish { flex: 0 0 40px; width: 40px; height: 40px; }

  /* Pfeile seitlich neben den Karten, vertikal mittig */
  .hi-slider .hi-arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
  }

  .hi-slider .hi-arrow svg { width: 17px; height: 17px; }
  .hi-slider .hi-arrow--prev { left: 3px; }
  .hi-slider .hi-arrow--next { right: 3px; }
}

/* Einkaufswelten: kein Karussell - alle Kacheln sind immer sichtbar */
.hi-worlds-wrap { position: relative; }
.hi-worlds-wrap > .hi-arrow { display: none !important; }

@media (max-width: 640px) {
  .hi-worlds-wrap { padding: 0; }

  .hi-worlds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .hi-worlds > .hi-tile {
    flex: none;
    max-width: none;
    scroll-snap-align: none;
  }
}
