/* Original MFTI EN/DE pages only. Small spacing and responsive refinements.
   No fixed section heights, text clipping or changes to the home composition. */

/* Home EN/DE: navy treatment only for the "Who we work with" section. */
#main > section[aria-labelledby="who-title"] {
  --ink: #FFFFFF;
  --text: #E0E7F1;
  --muted: #E0E7F1;
  --accent-text: #FFFFFF;
  --line: rgba(255, 255, 255, .2);
  --line-strong: rgba(255, 255, 255, .3);
  background: #011E48;
  color: var(--text);
}
#main > section[aria-labelledby="who-title"] .duo > div { min-width: 0; }
@media (max-width: 767px) {
  #main > section[aria-labelledby="who-title"] .duo > div + div {
    border-top: 1px solid var(--line);
  }
}

/* Lower the complete home hero copy in normal flow, not individual elements. */
#main > .hero .hero-copy { margin-block-start: 3rem; }
@media (min-width: 1024px) {
  /* Centered grid alignment shares this margin: 6rem gives a 3rem shift. */
  #main > .hero .hero-copy { margin-block-start: 6rem; }
}

/* Bring the complete visual 24px closer to the CTA on phones only.
   Keep the copy margins, visual dimensions and all globe/box layers intact. */
@media (max-width: 767px) {
  #main > .hero > .hero-grid { row-gap: calc(2.5rem - 24px); }
}

/* Text-only EN / DE, with separate 44px targets and no circular treatment. */
.site-header .lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: .8125rem;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--text);
}
.site-header .lang-switch > :is(.lang, .lang-current) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: none;
}
.site-header .lang-switch .lang-current { font-weight: 700; }
.site-header .lang-switch .lang { font-weight: 500; }
.site-header .lang-switch .lang:hover,
.site-header .lang-switch .lang:focus-visible {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: .25em;
}

/* Keep navigation targets comfortable without changing the 72px header. */
.site-header .site-nav ul a { min-height: 44px; }

.inner-page #main > section,
.inner-page #main h2[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.inner-page #main :is(h1, h2) {
  font-size: var(--section-heading-size);
  line-height: 1.12;
}
.inner-page .page-head { padding-block: 2.25rem 1.25rem; }
.inner-page .page-head h1 { max-width: 36ch; }
.inner-page .page-head .eyebrow { margin-bottom: .5rem; }
.inner-page .page-head .lead {
  max-width: 80ch;
  margin-top: .75rem;
  font-size: 1.125rem;
  line-height: 1.5;
}
.inner-page .section,
.inner-page .section-tight { padding-block: 2.5rem; }
.inner-page .page-head + .section-tight { padding-top: .75rem; }
.inner-page .section-head { max-width: 56rem; margin-bottom: 1.5rem; }
.inner-page .section-head p { max-width: 76ch; margin-top: .75rem; }
.inner-page .section-foot { margin-top: 1.5rem; }
.inner-page .btn { min-height: 44px; line-height: 1.2; white-space: normal; text-align: center; }
.inner-page .band { padding-bottom: 2.5rem; }
.inner-page .band-inner { gap: 1.5rem; padding: 1.75rem; }
.inner-page .band-actions { gap: 1rem 1.25rem; }
.inner-page .footer-bottom ul { flex-wrap: wrap; }
.inner-page :is(.split, .duo, .pillars, .contact-grid) > * { min-width: 0; }

/* About: the full truck sits on a quiet square canvas, not a cropped source. */
.about-page .about-photo-truck { background: var(--surface-2); }
.about-page .about-photo-truck img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Brands: reuse the same optically normalized assets as the home page. */
.brands-page .filters { gap: .5rem; margin-bottom: 1rem; }
.brands-page .chip { min-height: 44px; }
.brands-page .logo-grid { gap: .75rem; }
.brands-page .logo-grid .logo-tile {
  aspect-ratio: 2.4 / 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brands-page .logo-grid .logo-tile:hover { box-shadow: none; }
.brands-page .logo-grid .logo-tile img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Six complete steps; numbers no longer consume a tall text column. */
.process-page .steps-detailed { gap: .75rem; }
.process-page .step-card {
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .5rem .75rem;
  align-content: start;
  padding: 1rem;
}
.process-page .step-card .step-num {
  grid-row: auto;
  font-size: 1.5rem;
  line-height: 1.15;
}
.process-page .step-card h3 { align-self: center; font-size: 1.125rem; }
.process-page .step-card p { grid-column: 1 / -1; font-size: 1rem; line-height: 1.5; }
.process-page .split img { aspect-ratio: 4 / 3; }

/* FAQ remains native details/summary; open answers grow in normal flow. */
.faq-page .faq-groups { display: grid; gap: 2.5rem; }
.faq-page .faq-group { max-width: none; min-width: 0; }
.faq-page .faq-group + .faq-group { margin-top: 0; }
.faq-page .faq-group h2 { margin-bottom: 1rem; }
.faq-page .faq-item summary { gap: .75rem; padding-block: 1rem; line-height: 1.45; }
.faq-page .faq-body { padding-bottom: 1rem; font-size: 1rem; line-height: 1.6; }
.faq-page .faq-body a { text-decoration: underline; text-underline-offset: 3px; }

/* Contact: retain the action, fields, validation, honeypot and return URL. */
.contact-page .contact-grid { gap: 2rem; }
.contact-page .contact-list { gap: 1.25rem; margin-top: 1.5rem; }
.contact-page .contact-list li > div { min-width: 0; }
.contact-page .contact-list a { overflow-wrap: anywhere; }
.contact-page .form { gap: 1rem; padding: 1.25rem; }
.contact-page .form > * { min-width: 0; }
.contact-page .field { gap: .25rem; }
.contact-page .field label { line-height: 1.4; }
.contact-page .field input,
.contact-page .field textarea { min-height: 44px; padding: .5rem .75rem; line-height: 1.5; }
.contact-page .field textarea { min-height: 5.5rem; }
.contact-page .form-note,
.contact-page .hint { line-height: 1.45; }

/* Imprint: readable measure and clear hierarchy; all legal text may scroll. */
.imprint-page .prose,
.imprint-page .page-head .container { max-width: 78ch; }
.imprint-page .prose h2 { margin-top: 2rem; }
.imprint-page .prose > h2:first-child { margin-top: 0; }
.imprint-page .prose p,
.imprint-page .prose ul { margin-top: .75rem; }

@media (min-width: 1024px) {
  .inner-page .page-head { padding-block: 1.25rem .75rem; }
  .inner-page .page-head h1 { max-width: none; }
  .inner-page .page-head .lead { margin-top: .5rem; }
  .inner-page .section,
  .inner-page .section-tight { padding-block: clamp(1.25rem, 3vh, 2rem); }
  .inner-page .page-head + .section-tight { padding-top: .25rem; }
  .inner-page .section-head { margin-bottom: 1.25rem; }
  .inner-page .section-head p { margin-top: .5rem; }
  .inner-page .pillar { gap: 1rem; padding: 1.25rem; }
  .inner-page .pillar p { line-height: 1.5; }
  .inner-page .split { gap: 2rem; }
  .inner-page .split ul { gap: .5rem; margin-top: 1rem; }
  .inner-page .band { padding-bottom: 2rem; }
  .inner-page .band-inner { padding: 2rem; }
  .inner-page .band-actions { max-width: 100%; }
  .inner-page .duo { gap: 2.5rem; }
  .inner-page .duo > div { padding-top: 1.25rem; }
  .inner-page .duo > div + div { padding-left: 2.5rem; margin-left: -2.5rem; }
  .inner-page .site-footer { padding-block: 2.5rem 1.5rem; }
  .inner-page .footer-grid { gap: 2rem; }
  .inner-page .footer-bottom { margin-top: 2rem; }

  /* Keep the store photo, but avoid a second oversized hero on laptops. */
  .brands-page .wide-media img { height: clamp(12rem, 32vh, 17rem); aspect-ratio: auto; }
  .brands-page .logo-grid { gap: .75rem; }

  .process-page .steps-detailed { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .faq-page .faq-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .faq-page .faq-group h2 { min-height: 2.24em; }
  .faq-page .faq-item summary { padding-block: .875rem; font-size: 1rem; }

  .contact-page .contact-grid { grid-template-columns: 5fr 7fr; gap: 2rem; }
  .contact-page .contact-list { gap: 1rem; margin-top: 1.25rem; }
  .contact-page .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem 1rem; padding: 1rem; }
  .contact-page .form > * { grid-column: 1 / -1; }
  .contact-page .form > .field:has(input) { grid-column: auto; }
}

/* Phones keep a normal vertical document, with no horizontal step carousel. */
@media (max-width: 767px) {
  .inner-page .band-inner { padding: 1.5rem; }
  .inner-page .band-actions { align-items: flex-start; flex-direction: column; }
  .inner-page .pillars { gap: .75rem; }
  .inner-page .pillar { gap: .875rem; padding: 1.25rem; }
  .inner-page .facts { gap: 1.5rem 1rem; }
  .inner-page .fact { padding-left: .75rem; }
  .inner-page .fact strong { font-size: clamp(1.5rem, 7vw, 2rem); }
  .inner-page .split { gap: 1.5rem; }
  .faq-page .faq-item summary { font-size: 1.0625rem; }
}

/* Homepage benefits: remove desktop-style empty space on phones only. */
@media (max-width: 767px) {
  [aria-labelledby="why-title"] .bento-cell {
    min-height: 0;
    height: auto;
    padding: 1.25rem;
    overflow: visible;
  }
  [aria-labelledby="why-title"] .bento-cell > .icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  [aria-labelledby="why-title"] .bento-cell h3 {
    margin-top: 0;
  }
  [aria-labelledby="why-title"] .bento-feature-text {
    padding: 0;
  }
  [aria-labelledby="why-title"] .bento-feature-text .overlay {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 0;
    padding: 1.25rem;
  }
}
