/* All changes are limited to smartphone widths. No text is replaced or truncated. */
@media screen and (max-width: 760px) {
  body.home-page[data-mobile-compact] .july-hero-shell {
    display: block;
    padding-block: 20px 28px;
  }
  body.home-page[data-mobile-compact] .july-hero-copy {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
  }
  body.home-page[data-mobile-compact] .hero::before {
    background:
      linear-gradient(180deg, rgba(9, 31, 46, .03), rgba(9, 31, 46, .22) 24%, #102f46 82%),
      linear-gradient(90deg, rgba(9, 31, 46, .97), rgba(9, 31, 46, .82) 44%, rgba(9, 31, 46, .12)),
      url('/media/hero-stepan-approved-cutout-dad89fc887-960.webp') calc(100% + 135px) -64px / 450px auto no-repeat;
  }
  body.home-page[data-mobile-compact] .july-hero-portrait {
    display: flex;
    align-items: center;
    align-self: flex-start;
    position: static;
    aspect-ratio: auto;
    width: 63%;
    max-width: none;
    height: auto;
    min-height: 106px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible;
    text-decoration: none;
  }
  body.home-page[data-mobile-compact] .july-hero-portrait .july-portrait-image { display: none; }
  body.home-page[data-mobile-compact] .july-hero-portrait cite {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    color: #d4e8f5;
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
  }
  body.home-page[data-mobile-compact] .july-hero-copy h1 { margin: 0; }
  body.home-page[data-mobile-compact] .july-hero-statement { display: none; }
  body.home-page[data-mobile-compact] .july-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 24px 0 0;
  }
  body.home-page[data-mobile-compact] .july-hero-actions .button {
    grid-row: auto;
    width: 100%;
    margin: 0;
    min-height: 52px;
  }
  body.home-page[data-mobile-compact] .july-hero-actions .button-secondary {
    padding: 14px 16px;
    border: 1px solid #aacbdf;
    border-radius: var(--button-radius, 8px);
    background: rgba(10, 35, 52, .35);
    color: #fff;
    text-decoration: none;
  }
  body.home-page[data-mobile-compact] .mobile-hero-details {
    margin-top: 20px;
    border-top: 1px solid #7294ac;
  }
  body.home-page[data-mobile-compact] .mobile-hero-summary,
  body.home-page[data-mobile-compact] .mobile-challenge-summary,
  body.home-page[data-mobile-compact] .mobile-process-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 14px 0;
    cursor: pointer;
    list-style: none;
  }
  body.home-page[data-mobile-compact] :is(.mobile-hero-summary, .mobile-challenge-summary, .mobile-process-summary)::-webkit-details-marker { display: none; }
  body.home-page[data-mobile-compact] :is(.mobile-hero-summary, .mobile-challenge-summary, .mobile-process-summary)::after {
    content: '';
    display: block;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin: 0 4px 4px 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }
  body.home-page[data-mobile-compact] details[open] > :is(.mobile-hero-summary, .mobile-challenge-summary, .mobile-process-summary)::after {
    margin-top: 6px;
    transform: rotate(225deg);
  }
  body.home-page[data-mobile-compact] .mobile-hero-summary {
    color: #d4e8f5;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
  }
  body.home-page[data-mobile-compact] .mobile-hero-details > p {
    margin: 0;
    padding-bottom: 8px;
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
  }
  body.home-page[data-mobile-compact] .hero :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
  }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-list {
    display: block;
    border-top: 1px solid var(--line);
  }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    position: relative;
    padding: 12px 0 18px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-row::before { display: none; }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-row h3 {
    min-width: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: normal;
  }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-copy { grid-column: 1 / -1; }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-copy p {
    max-width: none;
    font-size: 16px;
    line-height: 1.6;
  }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-row > .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
  }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-row > .text-link::after {
    content: '';
    position: absolute;
    inset: 0;
  }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-row > .text-link > [aria-hidden] { display: none; }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-row:focus-within { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
  body.home-page[data-mobile-compact] .home-challenges { gap: 16px; padding: 24px 20px; }
  body.home-page[data-mobile-compact] .home-challenge-list > li { display: block; padding: 0; }
  body.home-page[data-mobile-compact] .mobile-challenge-summary { padding-block: 16px; }
  body.home-page[data-mobile-compact] .mobile-challenge-summary h3 { margin: 0; font-size: 18px; line-height: 1.45; }
  body.home-page[data-mobile-compact] .home-challenge-copy { padding-bottom: 18px; }
  body.home-page[data-mobile-compact] .home-challenge-copy p { font-size: 16px; line-height: 1.7; }
  body.home-page[data-mobile-compact] .home-challenges summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  body.home-page[data-mobile-compact] .mobile-process-details { border-block: 1px solid var(--line); }
  body.home-page[data-mobile-compact] .mobile-process-summary { gap: 14px; padding-block: 18px; color: var(--accent-strong); }
  body.home-page[data-mobile-compact] .mobile-process-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; gap: 18px 20px; }
  body.home-page[data-mobile-compact] .mobile-process-steps .process-label { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.5; }
  body.home-page[data-mobile-compact] .mobile-process-details .process-grid article { padding-block: 18px; }
  body.home-page[data-mobile-compact] .mobile-process-details .process-grid article:last-child { padding-bottom: 20px; }
  body.home-page[data-mobile-compact] .mobile-process-details .process-grid p { margin-top: 10px; font-size: 16px; line-height: 1.7; }
  body.home-page .faq-editorial summary { min-height: 56px; padding-block: 14px; gap: 16px; }
  body.home-page .faq-editorial details > p { padding-bottom: 20px; }

  /* Shared mobile footer: preserve every contact and navigation item. */
  body .site-footer { padding-block: 32px 20px; }
  body .footer-top { gap: 12px; margin-bottom: 22px; padding-bottom: 20px; }
  body .footer-main { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  body .footer-contact { grid-column: 1 / -1; }
  body .footer-contact address { margin-bottom: 4px; }
  body .footer-contact p { margin-block: 6px; }
  body .footer-column h2 { margin-bottom: 6px; }
  body .footer-column a, body .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
  body .footer-bottom { gap: 12px 20px; margin-top: 24px; padding-top: 18px; }
  body .footer-legal { display: flex; flex-wrap: wrap; gap: 0 18px; }
  body .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media screen and (min-width: 390px) and (max-width: 760px) {
  body .footer-main { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 16px; }
}
@media screen and (max-width: 360px) {
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-copy { grid-row: 2; }
  body.home-page[data-mobile-compact] #zielgruppen .home-audience-row > .text-link { grid-row: 3; justify-self: start; }
  body.home-page[data-mobile-compact] .hero::before { background-position: center, center, calc(100% + 145px) -64px; background-size: auto, auto, 450px auto; }
}
