/* Huck Media – Angebot der Woche (2026-11-05)
   Eigenes Stylesheet, um Konflikte mit style.css zu vermeiden.
   Kartenfläche: Markengrün #98C218. Text auf Grün bewusst #121412 (lesbar/WCAG), unabhängig von Site-Revert. */
.angebot-woche[hidden] {
  display: none !important;
}
.angebot-woche {
  margin: 28px auto 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.angebot-woche .adw-kicker {
  letter-spacing: .28em;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-dark, #7aa314);
  margin: 0 0 10px;
}
.angebot-woche .adw-lead {
  max-width: 52rem;
  margin: 0 0 18px;
  color: var(--ink, #626262);
  font-size: 15px;
  line-height: 1.45;
}
.angebot-woche .adw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.angebot-woche .adw-card {
  display: flex;
  flex-direction: column;
  background: var(--green, #98C218);
  color: var(--on-green, #121412);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), inset 0 1px 8px rgba(0, 0, 0, 0.12);
  min-height: 100%;
  text-decoration: none;
}
.angebot-woche .adw-card:focus-visible {
  outline: 3px solid #121412;
  outline-offset: 3px;
}
.angebot-woche .adw-visual {
  display: block;
  width: 100%;
  height: auto; /* width/height-HTML-Attribute nicht als feste Höhe */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #e8e8e6;
}
.angebot-woche .adw-card > .hm-webp,
.angebot-woche .adw-card > picture {
  display: block;
  width: 100%;
  max-height: none;
  line-height: 0;
}
.angebot-woche .adw-card > .hm-webp img,
.angebot-woche .adw-card > picture img {
  height: auto;
  aspect-ratio: 4 / 3;
}
.angebot-woche .adw-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex: 1 1 auto;
}
.angebot-woche .adw-badge {
  display: inline-block;
  align-self: flex-start;
  background: #121412;
  color: var(--green, #98C218);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 4px;
}
.angebot-woche .adw-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #121412;
}
.angebot-woche .adw-card p,
.angebot-woche .adw-card li {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #121412;
}
.angebot-woche .adw-card ul {
  margin: 0;
  padding-left: 1.1em;
}
.angebot-woche .adw-price {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: #121412;
}
.angebot-woche .adw-meta {
  font-size: 12px;
  color: #121412;
  opacity: 0.92;
}
.angebot-woche .adw-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: #fff;
  color: var(--green-dark, #7aa314);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 6px;
  border: 0;
  text-decoration: none;
}
.angebot-woche .adw-cta:hover {
  filter: brightness(0.97);
}
.angebot-woche .adw-footnote {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink, #626262);
  line-height: 1.4;
}
html[data-theme="dark"] .angebot-woche .adw-kicker {
  color: var(--green, #98C218);
}
html[data-theme="dark"] .angebot-woche .adw-lead,
html[data-theme="dark"] .angebot-woche .adw-footnote {
  color: #c8c8c4;
}
html[data-theme="dark"] .angebot-woche .adw-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 10px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  .angebot-woche .adw-grid {
    grid-template-columns: 1fr;
  }
  .angebot-woche .adw-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
  }
  .angebot-woche .adw-card > .hm-webp,
  .angebot-woche .adw-card > picture {
    width: 160px;
    max-width: 160px;
    max-height: 200px;
    height: auto;
    align-self: start;
  }
  .angebot-woche .adw-visual {
    width: 160px;
    max-width: 160px;
    height: auto;
    max-height: 200px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}
@media (max-width: 520px) {
  .angebot-woche .adw-card {
    grid-template-columns: 1fr;
  }
  .angebot-woche .adw-card > .hm-webp,
  .angebot-woche .adw-card > picture {
    width: 100%;
    max-width: none;
    max-height: none;
  }
  .angebot-woche .adw-visual {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    min-height: 0;
  }
}

/* Druck: kein erzwungenes Umbruch-Leerblatt; versteckte Box bleibt weg */
@media print {
  .angebot-woche[hidden] { display: none !important; }
  .angebot-woche {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .angebot-woche .adw-card {
    box-shadow: none;
    border: 1px solid #bbb;
  }
  .angebot-woche .adw-cta { border: 1px solid #888; }
}
