/* Progressive Navigation: JavaScript blendet den Burger-Button ein. */
@media (max-width: 959px) {
  .header-inner:has(.menu-toggle:not([hidden])) .primary-navigation { display: none; }
  .header-inner:has(.menu-toggle:not([hidden])) .primary-navigation.is-open { display: flex; }
  .primary-navigation.is-open { flex-direction: column; align-items: stretch; padding: 18px 0 8px; gap: 0; }
  .primary-navigation.is-open > a:not(.button) { padding: 11px 0; border-top: 1px solid var(--line); }
  .primary-navigation.is-open .button { margin-top: 15px; }
}

/* Kleine Telefone und lange deutsche Wörter dürfen keinen Überlauf erzeugen. */
@media (max-width: 379px) {
  .container { width: calc(100% - 32px); }
  .brand { gap: 8px; font-size: .8rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand small { font-size: .5rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual > img { height: 350px; }
  .hero-footnote { font-size: .6875rem; }
  .project-filters button { padding-inline: 16px; }
}

/* Mittlere Bildschirme: mehr Weißraum, zwei Projektspalten. */
@media (min-width: 640px) {
  .container { width: min(var(--page-width), calc(100% - 64px)); }
  .section { padding-block: 92px; }
  .hero { padding-block: 64px 38px; gap: 48px; }
  .hero-description { font-size: 1.0625rem; }
  .hero-visual > img { height: 560px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid p { flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 20px; font-size: .75rem; }
  .trust-grid p:first-child { padding-left: 0; }
  .trust-grid p + p { border-top: 0; border-left: 1px solid var(--line); }
  .trust-grid strong { display: block; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
  .project-title { display: block; }
  .project-title > span { display: block; margin-top: 4px; }
  .about-visual img { height: 550px; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .inquiry-form { padding: 36px; }
  .footer-top { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
  .legal-dialog { padding: 48px; }
}

/* Desktop: großzügiges Editorial-Layout statt dichter Kartenraster. */
@media (min-width: 960px) {
  .header-inner { min-height: 96px; flex-wrap: nowrap; padding-block: 16px; }
  .brand { font-size: .91rem; }
  .brand-mark { width: 43px; height: 43px; }
  .primary-navigation { width: auto; flex-wrap: nowrap; gap: 23px; padding: 0; }
  .primary-navigation > a { font-size: .875rem; }
  .primary-navigation .button { margin-left: 7px; }
  .menu-toggle { display: none; }
  .hero { grid-template-columns: 1.12fr 1fr; align-items: center; gap: 50px; padding-block: 58px 38px; }
  .hero h1 { font-size: clamp(3.25rem, 5.18vw, 4.7rem); }
  .hero .eyebrow { margin-bottom: 27px; }
  .hero-content { padding-bottom: 35px; }
  .hero-description { margin-top: 26px; font-size: 1rem; }
  .hero-actions { gap: 22px; margin-top: 30px; }
  .hero-actions .button { padding-inline: 20px; }
  .hero-actions .text-link { font-size: .875rem; }
  .hero-footnote { margin-top: 38px; font-size: .6875rem; }
  .hero-visual > img { height: 590px; }
  .image-stamp { left: -22px; bottom: 76px; }
  .hero-visual figcaption { font-size: .6875rem; }
  .trust-grid p { flex-direction: row; align-items: center; padding: 28px 30px; gap: 18px; font-size: .8125rem; }
  .trust-grid strong { display: inline; }
  .section { padding-block: 110px; }
  .section-heading { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 56px; }
  .section-heading > p { padding-bottom: 5px; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { padding: 36px 36px 0; border-top: 1px solid var(--line); }
  .service:first-child { padding-left: 0; }
  .service:last-child { padding-right: 0; }
  .service + .service { border-left: 1px solid var(--line); }
  .service-icon { margin-bottom: 30px; }
  .service h3 { font-size: 1.7rem; }
  .service p { min-height: 96px; }
  .service ul { min-height: 106px; }
  .projects-heading { margin-bottom: 18px; }
  .project-disclaimer { margin-bottom: 40px; }
  .projects-grid { gap: 50px 36px; }
  .project-title { display: flex; }
  .project-title h3 { font-size: 1.5rem; }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px; }
  .step-number { margin-bottom: 36px; }
  .process-grid h3 { font-size: 1.8rem; }
  .process-grid p { min-height: 120px; }
  .about-section { grid-template-columns: 1fr 1.07fr; gap: 80px; align-items: center; }
  .about-visual img { height: 570px; }
  .about-content .eyebrow { margin-bottom: 22px; }
  .about-content blockquote { margin-block: 30px; }
  .contact-grid { grid-template-columns: .85fr 1.2fr; gap: 88px; }
  .contact-introduction .eyebrow { max-width: 330px; }
  .inquiry-form { padding: 38px; }
  .form-submit { width: auto; }
  .footer-top { padding-block: 10px 45px; }
  .footer-top > p { margin-left: auto; margin-right: 80px; }
}

/* Breite Monitore behalten lesbare Text- und Bildbreiten. */
@media (min-width: 1280px) {
  .container { width: min(var(--page-width), calc(100% - 128px)); }
  .primary-navigation { gap: 30px; }
  .hero { gap: 64px; padding-top: 64px; }
  .hero-description { max-width: 460px; font-size: 1rem; }
  .hero-visual > img { height: 620px; }
  .hero-actions { gap: 28px; }
  .hero-actions .button { padding-inline: 24px; }
  .hero-footnote { margin-top: 44px; }
  .trust-grid p { padding-block: 30px; padding-inline: 45px; }
  .trust-grid p:last-child { padding-right: 0; }
  .service { padding-inline: 42px; }
  .service p { min-height: 84px; }
}

/* Druckansicht ohne verdeckende Navigation oder interaktive Bedienelemente. */
@media print {
  .site-header, .hero-actions, .project-filters, .inquiry-form, .footer-top-link, .footer-bottom button { display: none; }
  .section { padding-block: 30px; }
  .hero { padding-top: 0; }
  .process-section, .site-footer { background: white; color: black; }
  .process-section p, .process-section .eyebrow { color: black !important; }
}
