/* Responsive refinements, kept after the shared editorial styles. */
@media (max-width: 900px) {
  .site-header .header-inner,
  .homepage .header-inner,
  body:not(.homepage) .site-header .header-inner {
    min-height: 88px;
    padding-block: 16px;
    align-items: center;
  }

  .site-header .brand,
  .homepage .site-header .brand { padding: 0; }

  .site-header .site-menu-toggle,
  .homepage .site-menu-toggle,
  body:not(.homepage) .site-menu-toggle {
    position: static;
    flex-shrink: 0;
    gap: 12px;
  }

  .site-header #main-navigation,
  .homepage .site-header #main-navigation {
    top: calc(100% - 4px);
    max-height: calc(100dvh - 104px);
    overscroll-behavior: contain;
    padding: 16px;
  }

  .site-header #main-navigation .menu-primary { gap: 4px; }
  .site-header #main-navigation .menu-primary > a {
    min-height: 52px;
    font-size: 20px;
  }

  .overview-grid { grid-template-columns: 1fr; gap: 0; }
  .overview-card { padding-block: 24px; }
  .overview-card h3 { margin-bottom: 12px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-details {
    border-left: 0;
    border-top: 1px solid #ccc;
    padding: 28px 0 0;
  }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 40px); }
  main h1, main h2, main h3, main h4 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .homepage .editorial-hero {
    height: clamp(370px, 60svh, 460px);
    min-height: 0;
    margin: 4px 12px 24px;
  }
  .editorial-title { top: 14%; left: 8%; max-width: 84%; }
  .editorial-title > .eyebrow {
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: .05em;
    max-width: 240px;
    margin-bottom: 20px;
  }
  .editorial-title h1 {
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.2;
    letter-spacing: -.045em;
    hyphens: none;
  }
  .editorial-art img { width: 115%; right: -28%; }

  body:not(.homepage) .page-hero {
    min-height: 0;
    padding: 32px 24px 56px;
    margin-block: 4px 24px;
  }
  body:not(.homepage) .page-hero:has(.page-hero-art) {
    padding-bottom: 100px;
  }
  .page-hero .breadcrumbs {
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 24px;
  }
  .page-hero .breadcrumbs a { padding-block: 8px; margin-block: -8px; }
  .page-hero h1 {
    display: block;
    width: fit-content;
    max-width: 100%;
    font-size: clamp(38px, 10.5vw, 54px);
    line-height: 1.2;
    margin-bottom: 24px;
  }
  .page-hero .hero-intro p { font-size: 18px; line-height: 1.65; }
  .page-hero-art { inset: 38% 0 0 28%; opacity: .45; }
  .page-kontakt .page-hero-art { width: 115px; height: 85px; bottom: 12px; }

  .section, .editorial-section { padding-block: 48px; }
  .homepage .section h2, .section-head h2, #portfolio .section-head h2 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.15;
  }
  .section-head { margin-bottom: 28px; }
  .section-head .text-link { margin-top: 16px; }
  .overview-grid { margin-block: 24px; }
  .homepage .overview-card h3 { font-size: 28px; }
  .text-link, .small-link { min-height: 44px; align-items: center; }
  .project { margin-bottom: 40px; }
  .project-info h3, .project:first-child h3 { line-height: 1.15; }
  .contact-layout { padding-block: 44px; }
  .contact-layout > *, .footer-columns > * { min-width: 0; }
  .email-link { max-width: 100%; overflow-wrap: anywhere; }
  .contact-details address { font-size: 16px; line-height: 1.6; }
  .contact-details .small-link { font-size: 14px; }
  .page-cta .button { width: 100%; justify-content: center; }
  .client-logos img[src*="/color/"] { max-width: 100%; }
  .site-footer.editorial-footer { padding-top: 48px; }
  .footer-band { padding-inline: 20px; }
  .footer-baseline { flex-wrap: wrap; gap: 4px 20px; }

  #cc--main #cm {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 360px) {
  .site-header .wordmark, .homepage .site-header .wordmark { font-size: 20px; }
  .site-header .brand img, .homepage .site-header .brand img { width: 30px; }
  .site-header .site-menu-toggle, .homepage .site-menu-toggle { padding-inline: 12px; gap: 10px; }
}
