/* Heuer Editorial Grid – original frontend design */
.heuer-editorial-hero,
.heuer-editorial-hero * {
  box-sizing: border-box;
}

.heuer-editorial-hero {
  width: 100%;
  padding: var(--heuer-outer-padding, 12px);
  overflow: hidden;
  background: var(--heuer-section-bg, #ffffff);
}

.heuer-editorial-grid {
  width: 100%;
  max-width: var(--heuer-max-width, 1600px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: var(--heuer-row-top, 410px) var(--heuer-row-bottom, 410px);
  grid-template-areas:
    "stripe stripe stripe action action"
    "line line wallets ht tr";
  gap: var(--heuer-gap, 8px);
}

.heuer-card-stripe { grid-area: stripe; }
.heuer-card-action { grid-area: action; }
.heuer-card-line { grid-area: line; }
.heuer-card-wallets { grid-area: wallets; }
.heuer-card-ht { grid-area: ht; }
.heuer-card-tr { grid-area: tr; }

.heuer-editorial-card {
  --heuer-brightness: 1.15;
  --heuer-contrast: 1.04;
  --heuer-saturation: 1.03;
  --heuer-image-scale: 1.002;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--heuer-text-color, #ffffff) !important;
  background: linear-gradient(135deg, var(--heuer-fallback-from, #777777) 0%, var(--heuer-fallback-to, #333333) 100%);
  text-decoration: none !important;
  opacity: 0;
  transform: translateY(24px);
  animation: heuerEditorialReveal .8s cubic-bezier(.22, .8, .22, 1) forwards;
}

.heuer-editorial-card:focus-visible {
  outline: 3px solid var(--heuer-text-color, #ffffff);
  outline-offset: -6px;
}

.heuer-editorial-card:nth-child(1) { animation-delay: .05s; }
.heuer-editorial-card:nth-child(2) { animation-delay: .12s; }
.heuer-editorial-card:nth-child(3) { animation-delay: .19s; }
.heuer-editorial-card:nth-child(4) { animation-delay: .26s; }
.heuer-editorial-card:nth-child(5) { animation-delay: .33s; }
.heuer-editorial-card:nth-child(6) { animation-delay: .40s; }

.heuer-no-animation .heuer-editorial-card {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes heuerEditorialReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.heuer-editorial-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-size: cover;
  background-position: var(--heuer-position-desktop, center center);
  background-repeat: no-repeat;
  transform: scale(var(--heuer-image-scale));
  filter: brightness(var(--heuer-brightness)) contrast(var(--heuer-contrast)) saturate(var(--heuer-saturation));
  transition: transform 1s cubic-bezier(.22, .8, .22, 1), filter .6s ease;
}

.heuer-editorial-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.07) 48%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.03) 40%, rgba(0,0,0,.15) 68%, rgba(0,0,0,.52) 100%);
  transition: opacity .45s ease, background .45s ease;
}

.heuer-card-wallets .heuer-editorial-overlay,
.heuer-card-ht .heuer-editorial-overlay,
.heuer-card-tr .heuer-editorial-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.03) 65%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.02) 42%, rgba(0,0,0,.13) 68%, rgba(0,0,0,.48) 100%);
}

.heuer-editorial-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  height: 50%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.08) 25%, rgba(0,0,0,.28) 65%, rgba(0,0,0,.54) 100%);
}

.heuer-card-wallets::after,
.heuer-card-ht::after,
.heuer-card-tr::after {
  height: 46%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.05) 28%, rgba(0,0,0,.22) 68%, rgba(0,0,0,.48) 100%);
}

.heuer-editorial-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: clamp(54px, 5vw, 80px) clamp(22px, 2.2vw, 38px) clamp(24px, 2.5vw, 40px);
  color: var(--heuer-text-color, #ffffff);
  text-shadow: 0 2px 4px rgba(0,0,0,.36), 0 7px 24px rgba(0,0,0,.40);
}

.heuer-editorial-kicker {
  display: block;
  margin: 0 0 13px;
  font-family: var(--heuer-font, Inter, Arial, sans-serif);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--heuer-text-color, #ffffff) !important;
  opacity: .98;
  text-shadow: 0 1px 4px rgba(0,0,0,.60);
}

.heuer-editorial-content h2 {
  max-width: 620px;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--heuer-font, Inter, Arial, sans-serif) !important;
  font-size: clamp(34px, 3vw, 64px);
  font-weight: 350 !important;
  line-height: .98 !important;
  letter-spacing: -.052em !important;
  color: var(--heuer-text-color, #ffffff) !important;
  text-wrap: balance;
  text-shadow: 0 2px 5px rgba(0,0,0,.48), 0 8px 30px rgba(0,0,0,.46);
}

.heuer-editorial-content h2 strong {
  font-weight: 700 !important;
  color: var(--heuer-text-color, #ffffff) !important;
}

.heuer-card-wallets .heuer-editorial-content h2,
.heuer-card-ht .heuer-editorial-content h2,
.heuer-card-tr .heuer-editorial-content h2 {
  font-size: clamp(27px, 1.9vw, 40px);
  line-height: 1.02 !important;
}

.heuer-editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 23px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  font-family: var(--heuer-font, Inter, Arial, sans-serif);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--heuer-text-color, #ffffff) !important;
  background: rgba(0,0,0,.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 3px rgba(0,0,0,.48);
  transition: gap .3s ease, background-color .3s ease, border-color .3s ease, transform .3s ease;
}

.heuer-editorial-arrow {
  display: inline-flex;
  font-size: 15px;
  line-height: 1;
  transition: transform .3s ease;
}

.heuer-editorial-number {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-family: var(--heuer-font, Inter, Arial, sans-serif);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .13em;
  color: var(--heuer-text-color, #ffffff) !important;
  background: rgba(0,0,0,.22);
  box-shadow: 0 7px 20px rgba(0,0,0,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}

@media (hover: hover) {
  .heuer-editorial-card:hover .heuer-editorial-bg {
    transform: scale(calc(var(--heuer-image-scale) + .045));
    filter: brightness(calc(var(--heuer-brightness) + .04)) contrast(calc(var(--heuer-contrast) + .02)) saturate(var(--heuer-saturation));
  }
  .heuer-editorial-card:hover .heuer-editorial-overlay { opacity: .90; }
  .heuer-editorial-card:hover .heuer-editorial-link {
    gap: 16px;
    transform: translateY(-2px);
    background: rgba(0,0,0,.40);
    border-color: rgba(255,255,255,.96);
  }
  .heuer-editorial-card:hover .heuer-editorial-arrow { transform: translate(3px, -3px); }
}

@media (max-width: 1100px) {
  .heuer-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 450px 370px 320px 320px;
    grid-template-areas:
      "stripe stripe"
      "line action"
      "wallets ht"
      "tr tr";
  }
  .heuer-editorial-content h2 { font-size: clamp(36px, 5.5vw, 58px); }
  .heuer-card-wallets .heuer-editorial-content h2,
  .heuer-card-ht .heuer-editorial-content h2,
  .heuer-card-tr .heuer-editorial-content h2 { font-size: clamp(30px, 4vw, 42px); }
  .heuer-editorial-bg { background-position: var(--heuer-position-tablet, var(--heuer-position-desktop, center center)); }
}

@media (max-width: 767px) {
  .heuer-editorial-hero { padding: var(--heuer-mobile-padding, 6px); }
  .heuer-editorial-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: "stripe" "action" "line" "wallets" "ht" "tr";
    gap: var(--heuer-mobile-gap, 6px);
  }
  .heuer-editorial-card { min-height: var(--heuer-mobile-height, 350px); }
  .heuer-editorial-bg { background-position: var(--heuer-position-mobile, var(--heuer-position-desktop, center center)); }
  .heuer-editorial-overlay {
    background:
      linear-gradient(90deg, rgba(0,0,0,.13) 0%, rgba(0,0,0,.03) 100%),
      linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.02) 42%, rgba(0,0,0,.18) 72%, rgba(0,0,0,.56) 100%);
  }
  .heuer-card-wallets .heuer-editorial-overlay,
  .heuer-card-ht .heuer-editorial-overlay,
  .heuer-card-tr .heuer-editorial-overlay {
    background:
      linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.01) 100%),
      linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.02) 45%, rgba(0,0,0,.16) 72%, rgba(0,0,0,.52) 100%);
  }
  .heuer-editorial-card::after { height: 52%; }
  .heuer-editorial-content { padding: 62px 20px 25px; }
  .heuer-editorial-content h2 { font-size: clamp(39px, 12vw, 56px); line-height: .98 !important; }
  .heuer-card-wallets .heuer-editorial-content h2,
  .heuer-card-ht .heuer-editorial-content h2,
  .heuer-card-tr .heuer-editorial-content h2 { font-size: clamp(34px, 10vw, 42px); }
  .heuer-editorial-link {
    margin-top: 20px;
    padding: 11px 15px;
    font-size: 12px;
    background: rgba(0,0,0,.30);
    border-color: rgba(255,255,255,.78);
  }
  .heuer-editorial-number { top: 14px; right: 14px; }
}

@media (max-width: 420px) {
  .heuer-editorial-content { padding: 58px 18px 22px; }
  .heuer-editorial-kicker { font-size: 9px; letter-spacing: .17em; }
  .heuer-editorial-content h2 { font-size: clamp(36px, 12vw, 50px); }
  .heuer-card-wallets .heuer-editorial-content h2,
  .heuer-card-ht .heuer-editorial-content h2,
  .heuer-card-tr .heuer-editorial-content h2 { font-size: clamp(31px, 9vw, 39px); }
  .heuer-editorial-bg { background-position: var(--heuer-position-small, var(--heuer-position-mobile, center center)); }
}

@media (prefers-reduced-motion: reduce) {
  .heuer-editorial-card { opacity: 1; transform: none; animation: none; }
  .heuer-editorial-bg,
  .heuer-editorial-link,
  .heuer-editorial-arrow,
  .heuer-editorial-overlay { transition: none; }
}
