/**
 * Black Week 2026 — Angebote-Seite (ID 101577, /black-friday-angebote/)
 * Temporär: Rückbau am 1.12.2026 (Datei + functions.php-Einträge entfernen).
 * Benötigt: hp-base.css + hp-components.css (Dependencies in functions.php)
 */

/* ============================================
   Sektion + Container
   ============================================ */
.hp-page .hp-black-week {
  --_pad-inline: calc(var(--hp-space) * 3);

  padding-block: calc(var(--hp-space) * 6) calc(var(--hp-space) * 10);
  text-align: center;
}

.hp-page .hp-black-week__inner {
  max-width: var(--hp-container-narrow);
  margin-inline: auto;
  padding-inline: var(--_pad-inline);
}

/* ============================================
   Bild, Titel, Lead
   ============================================ */
.hp-page .hp-black-week__image {
  display: block;
  width: 100%;
  border-radius: var(--hp-radius-card);
}

.hp-page .hp-black-week__title {
  margin-top: calc(var(--hp-space) * 5);
  text-wrap: balance;
}

.hp-page .hp-black-week__lead {
  margin: calc(var(--hp-space) * 2) 0 0;
  font-size: var(--hp-font-subtitle);
}

.hp-page .hp-black-week__subtitle {
  margin: calc(var(--hp-space) * 6) 0 calc(var(--hp-space) * 3);
  text-wrap: balance;
}

/* ============================================
   Marken-Kacheln
   ============================================ */
.hp-page .hp-black-week__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--hp-space) * 2);
  margin: 0 0 calc(var(--hp-space) * 4);
  padding: 0;
  list-style: none;
}

.hp-page .hp-black-week__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: calc(var(--hp-space) * 3) calc(var(--hp-space) * 2);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-card);
}

.hp-page .hp-black-week__tile-image {
  width: 70%;
  max-width: 160px;
  margin-bottom: calc(var(--hp-space) * 2);
  filter: drop-shadow(0 6px 10px rgba(37, 37, 37, 0.25));
}

.hp-page .hp-black-week__tile-brand {
  order: 1;
  margin-top: var(--hp-space);
  font-weight: var(--hp-weight-medium);
  color: var(--hp-dark);
  white-space: nowrap;
}

.hp-page .hp-black-week__tile-percent {
  font-size: var(--hp-font-h1);
  font-weight: var(--hp-weight-semibold);
  color: var(--hp-red);
  line-height: 1.1;
  white-space: nowrap;
}

/* ============================================
   Partnerlink-Hinweis + Beratungs-Kasten
   ============================================ */
.hp-page .hp-black-week__note {
  margin: calc(var(--hp-space) * 1.5) 0 0;
  font-size: var(--hp-font-meta);
  color: var(--hp-meta);
}

.hp-page .hp-black-week__advice {
  margin-top: calc(var(--hp-space) * 5);
  padding: calc(var(--hp-space) * 3);
  background: var(--hp-light-grey);
  border-radius: var(--hp-radius-card);
}

.hp-page .hp-black-week__advice p {
  margin: 0;
}

/* Rot auf Hellgrau = 4.4:1 → Underline als Ausgleich (design-foundations §4) */
.hp-page .hp-black-week__advice a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp-page .hp-black-week__advice a:focus-visible {
  outline: 2px solid var(--hp-red);
  outline-offset: 2px;
}

/* ============================================
   Responsive: Tablet (≤921.9px)
   Schmaleres Kachel-Padding, damit „Sound-Sculpture"
   bis 545px Viewport einzeilig bleibt
   ============================================ */
@media (width <= 921.9px) {
  .hp-page .hp-black-week__tile {
    padding-inline: var(--hp-space);
  }
}

/* ============================================
   Responsive: Mobile (≤544.9px)
   Kacheln werden zu Zeilen: Bild | Marke | Prozent
   ============================================ */
@media (width <= 544.9px) {
  .hp-page .hp-black-week {
    --_pad-inline: calc(var(--hp-space) * 2);

    text-align: left;
  }

  .hp-page .hp-black-week__tiles {
    grid-template-columns: 1fr;
    gap: calc(var(--hp-space) * 1.5);
  }

  .hp-page .hp-black-week__tile {
    flex-direction: row;
    gap: calc(var(--hp-space) * 2);
    padding: calc(var(--hp-space) * 1.5) calc(var(--hp-space) * 2);
  }

  .hp-page .hp-black-week__tile-image {
    flex: none;
    width: 64px;
    margin-bottom: 0;
  }

  .hp-page .hp-black-week__tile-brand {
    order: 0;
    flex: 1;
    min-width: 0;
    margin-top: 0;
    white-space: normal;
  }

  .hp-page .hp-black-week__tile-percent {
    font-size: var(--hp-font-h3);
  }
}
