/* =========================================
   WIR.SCHLADMING – BUSINESS OF DAY
========================================= */

.business-of-day {
  position: relative;
  width: 100%;
  padding: clamp(70px, 7vw, 120px) 0;
  background: var(--cream-soft);
  color: var(--dark);
}

.business-of-day .business-of-day-container {
  width: 100%;
  max-width: none;
  padding-right: clamp(20px, 4vw, 72px);
  padding-left: clamp(20px, 4vw, 72px);
}

/* =========================================
   EDITORIAL INTRO
========================================= */

.business-of-day .business-of-day-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  min-height: 340px;
  padding: clamp(10px, 2vw, 30px) clamp(15px, 3vw, 50px) 10px 0;
}

.business-of-day .business-of-day-subheadline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--purple-deep);
}

.business-of-day .business-of-day-subheadline::after {
  content: "";
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 5px;
  border-radius: 100px;
  background: var(--purple);
}

.business-of-day .business-of-day-headline {
  max-width: 15ch;
  margin: 0 0 24px;
  color: var(--dark-deep);
  overflow-wrap: break-word;
}

.business-of-day .business-of-day-text {
  max-width: 460px;
  color: var(--petrol);
}

.business-of-day .business-of-day-text > :last-child {
  margin-bottom: 0;
}

.business-of-day .business-of-day-text p,
.business-of-day .business-of-day-text li {
  color: inherit;
}

.business-of-day .business-of-day-text a {
  color: var(--purple-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================
   EDITORIAL NOTE
========================================= */

.business-of-day .business-of-day-editorial-note {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 32px;
  color: var(--petrol);
}

.business-of-day .business-of-day-note-dot {
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
}

/* =========================================
   FEATURE WRAPPER
========================================= */

.business-of-day .business-of-day-feature {
  width: 100%;
  height: 100%;
  min-width: 0;
}

/* =========================================
   BETRIEBSKARTE
========================================= */

.business-of-day .business-of-day-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 340px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: #fff;
  color: var(--dark);

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/*
 * WICHTIG:
 * Display und Grid ausschließlich hier definieren.
 * Niemals im :hover- oder :visited-Selektor!
 */

.business-of-day .business-of-day-card-link {
  display: grid;
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);
  width: 100%;
  height: 100%;
  min-width: 0;
  color: var(--dark);
  text-decoration: none;
}

/* Nur Farben / Dekoration für Hover und Visited */

.business-of-day .business-of-day-card-link:visited,
.business-of-day .business-of-day-card-link:hover {
  color: var(--dark);
  text-decoration: none;
}

.business-of-day .business-of-day-card-link:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: -4px;
}

/* =========================================
   BILD
========================================= */

.business-of-day .business-of-day-card-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  background: var(--petrol);
}

.business-of-day .business-of-day-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.business-of-day .business-of-day-image-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(135deg, var(--petrol), var(--dark-deep));
}

/* =========================================
   LOGO IM BILD
========================================= */

.business-of-day .business-of-day-logo {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 78px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 25px rgba(3, 27, 26, 0.16);
}

.business-of-day .business-of-day-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================
   CARD CONTENT
========================================= */

.business-of-day .business-of-day-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(25px, 2.5vw, 38px);
}

/* =========================================
   TAGS
========================================= */

.business-of-day .business-of-day-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.business-of-day .business-of-day-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--lime);
  color: var(--dark-deep);
}

.business-of-day .business-of-day-new {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border-radius: 3px;
  background: #d58e78;
  color: var(--dark-deep);
}

/* =========================================
   CATEGORY / TITLE / TEXT
========================================= */

.business-of-day .business-of-day-category {
  margin: 0 0 12px;
  color: var(--purple-deep);
}

.business-of-day .business-of-day-card-title {
  margin: 0 0 17px;
  color: var(--dark-deep);
  overflow-wrap: break-word;
}

.business-of-day .business-of-day-card-text {
  margin: 0 0 28px;
  color: var(--petrol);
}

/* =========================================
   CARD FOOTER
========================================= */

.business-of-day .business-of-day-card-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.business-of-day .business-of-day-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--petrol);
}

.business-of-day .business-of-day-location svg {
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.business-of-day .business-of-day-cta {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--dark-deep);
}

.business-of-day .business-of-day-cta svg {
  display: block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  transition: transform 0.3s ease;
}

/* =========================================
   HOVER – NUR ECHTE MAUSGERÄTE
========================================= */

/*
 * Touch-Geräte erhalten keine Hover-Animationen.
 * Dadurch wird ein versehentliches Verschieben
 * beim Antippen vermieden.
 */

@media (hover: hover) and (pointer: fine) {
  .business-of-day .business-of-day-card:hover {
    border-color: var(--purple);
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(6, 44, 43, 0.08);
  }

  .business-of-day .business-of-day-card:hover .business-of-day-image {
    transform: scale(1.045);
  }

  .business-of-day .business-of-day-card:hover .business-of-day-cta svg {
    transform: translateX(5px);
  }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1199.98px) {
  .business-of-day .business-of-day-card-link {
    grid-template-columns: 44% 56%;
  }

  .business-of-day .business-of-day-card-content {
    padding: 25px;
  }
}

/* =========================================
   TABLET PORTRAIT
========================================= */

@media (max-width: 991.98px) {
  .business-of-day .business-of-day-intro {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .business-of-day .business-of-day-headline {
    max-width: none;
  }

  .business-of-day .business-of-day-editorial-note {
    margin-top: 10px;
    padding-top: 18px;
  }

  .business-of-day .business-of-day-feature {
    height: auto;
  }

  .business-of-day .business-of-day-card {
    height: auto;
  }

  .business-of-day .business-of-day-card-link {
    height: auto;
  }

  .business-of-day .business-of-day-card-media {
    min-height: 300px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {
  .business-of-day {
    padding: 65px 0;
  }

  .business-of-day .business-of-day-container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .business-of-day .business-of-day-subheadline {
    margin-bottom: 16px;
  }

  .business-of-day .business-of-day-headline {
    margin-bottom: 20px;
  }

  /*
   * WICHTIG:
   * Grid bleibt Grid – lediglich eine Spalte.
   * Kein Umschalten auf display:flex!
   */

  .business-of-day .business-of-day-card-link {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }

  .business-of-day .business-of-day-feature {
    height: auto;
    min-height: 0;
  }

  .business-of-day .business-of-day-card {
    height: auto;
    min-height: 0;
  }

  .business-of-day .business-of-day-card-media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .business-of-day .business-of-day-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .business-of-day .business-of-day-logo {
    right: 14px;
    bottom: 14px;
    width: 76px;
    height: 66px;
    padding: 10px;
  }

  .business-of-day .business-of-day-card-content {
    width: 100%;
    min-width: 0;
    padding: 25px 22px;
  }

  .business-of-day .business-of-day-tags {
    margin-bottom: 18px;
  }

  .business-of-day .business-of-day-card-text {
    margin-bottom: 24px;
  }

  .business-of-day .business-of-day-card-bottom {
    gap: 16px;
    padding-top: 18px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 399.98px) {
  .business-of-day .business-of-day-card-content {
    padding: 23px 20px;
  }

  .business-of-day .business-of-day-logo {
    width: 68px;
    height: 60px;
  }
}

/* =========================================
   TOUCH – ZUSÄTZLICHE ABSICHERUNG
========================================= */

@media (hover: none), (pointer: coarse) {
  .business-of-day .business-of-day-card {
    transform: none;
    transition:
      border-color 0.3s ease,
      box-shadow 0.3s ease;
  }

  .business-of-day .business-of-day-card:hover {
    transform: none;
  }

  .business-of-day .business-of-day-image {
    transform: none;
  }

  .business-of-day .business-of-day-card:hover .business-of-day-image {
    transform: none;
  }

  .business-of-day .business-of-day-card:hover .business-of-day-cta svg {
    transform: none;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  .business-of-day .business-of-day-card,
  .business-of-day .business-of-day-image,
  .business-of-day .business-of-day-cta svg {
    transition: none;
  }

  .business-of-day .business-of-day-card:hover {
    transform: none;
  }
}
