/* Layout correction for the requested mobile widths and 768px tablet view. */
@media (max-width: 480px), (width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    align-items: center;
    gap: 4px 8px;
  }
  .header-inner .brand { grid-area: 1 / 1; }
  .header-inner > [data-aq-header-actions] {
    grid-area: 1 / 2;
    align-self: center;
    min-width: 0;
    margin-inline-start: 0;
  }
  .header-inner .menu { grid-area: 1 / 3; }
  .header-inner nav {
    grid-area: 2 / 1 / auto / -1;
    position: static;
    box-shadow: none;
    background: none;
    padding: 4px 0;
  }

  .hero-stage {
    --motif-height: max(120px, 29vw);
    --sticker-u: calc(33vw / 569);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--motif-height) auto auto;
    row-gap: 14px;
    padding: 12px 16px 18px;
    overflow: visible;
  }
  .hero-stage::before {
    background: linear-gradient(100deg, #260000a0, #38000058 66%, #38000045);
    pointer-events: none;
  }

  /* Size the type and the original sticker geometry with the viewport, not a
     transform on the text. The portrait stays behind the two copy blocks. */
  .hero h1 {
    display: grid;
    grid-template-columns: 36% 1fr;
    align-items: center;
    gap: 4px;
    padding: 0;
    text-align: left;
  }
  .hero .pitch {
    font-size: clamp(18px, 5.85vw, 45px);
    line-height: .97;
    transform: rotate(-7deg);
  }
  .hero .portrait {
    top: 12px;
    right: 1%;
    width: 34%;
    height: var(--motif-height);
    max-height: 224px;
    object-fit: contain;
    object-position: center bottom;
    mask-image: linear-gradient(#000 74%, transparent);
    z-index: -3;
  }
  .hero .neon {
    top: 12px;
    right: 0;
    width: 10%;
    height: calc(var(--motif-height) * .8);
    max-height: 180px;
    opacity: .8;
    z-index: -2;
  }
  .hero .sticker {
    position: relative;
    inset: auto;
    width: calc(569 * var(--sticker-u));
    height: calc(403 * var(--sticker-u));
    margin: 0;
    background: none;
    color: var(--ink);
    text-shadow: none;
  }
  .hero .sticker::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/hero-preissticker.png') center/contain no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 46.35%, 0 61.15%);
  }
  .hero .sticker > span {
    position: absolute;
    inset: 0;
    width: auto;
    padding: 0;
    transform: none;
  }
  .hero .sticker strong {
    position: absolute;
    left: 50%;
    top: 34%;
    transform: translate(-50%, -50%) rotate(-6.6deg);
    white-space: nowrap;
    font-size: calc(134 * var(--sticker-u));
    line-height: 1;
  }
  .hero .sticker-caption {
    position: absolute;
    left: 18%;
    top: 55%;
    display: grid;
    justify-items: start;
    gap: 0;
    white-space: nowrap;
    transform: rotate(-6.6deg);
    transform-origin: top left;
    font-size: calc(44 * var(--sticker-u));
    line-height: 1;
  }
  .hero .sticker-caption > span:first-child {
    font-size: calc(54 * var(--sticker-u));
    padding: calc(12 * var(--sticker-u));
    z-index: 1;
  }
  .hero .sticker-caption > span:last-child {
    margin-inline-start: calc(90 * var(--sticker-u));
    margin-top: calc(-10 * var(--sticker-u));
    padding: calc(10 * var(--sticker-u));
    font-size: 1.5em;
  }

  .hero-jump {
    width: min(100%, 320px);
    min-height: 48px;
    margin: 0;
    padding-block: 8px;
    text-align: center;
  }
  .badges { margin: 0; }
}

@media (max-width: 480px) {
  .header-inner { width: calc(100% - 24px); grid-template-columns: minmax(0, 1fr) 44px; }
  .header-inner > [data-aq-header-actions] { display: none; }
  .header-inner .brand { gap: 6px; }
  .header-inner .brand img { width: 26px; height: 44px; }
  .header-inner .brand b { font-size: clamp(15px, 4vw, 19px); }
  .header-inner .brand small { font-size: 12px; }
  .header-inner .menu { grid-column: 2; }
  .hero .pitch { font-size: clamp(16px, 5.4vw, 26px); }
}

@media (max-width: 350px) {
  .hero .badges { grid-template-columns: minmax(0, 1fr); }
}
