/* Small accessibility fixes for the existing static site; no framework. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
h2, h3, [id] { scroll-margin-top: 100px; }
.scope-note { margin-bottom: 24px; padding: 20px; border-left: 3px solid var(--red); background: var(--paper); }
.scope-note p + p { margin-top: 12px; }
.project-facts { margin: 12px 0 0; }
.project-facts dt { font-weight: 700; margin-top: 14px; }
.project-facts dd { margin: 4px 0 0; }
.about-figure figcaption { padding: 12px 0; font-size: .9rem; color: var(--ink-2); }
#projektkontakt p + p { margin-top: 16px; }
.field input, .field select, .field textarea { font-size: 1rem; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid #231F20;
  outline-offset: 4px;
}
.footer a:focus-visible { outline-color: #fff; }
.ba, .ba-range { touch-action: pan-y; }
.ba:focus-within { outline: 3px solid #231F20; outline-offset: 4px; }
h1, h2, h3 { overflow-wrap: anywhere; }
.hero .wrap > *, .contact-grid > *, .showcase-grid > * { min-width: 0; }
.usp-item, .usp-item > div { min-width: 0; overflow-wrap: anywhere; }
.footer .wrap > * { min-width: 0; }
.footer .logo-word { max-width: 100%; height: auto; width: 323px; }
.footer .logo-word svg { width: 100%; height: auto; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (min-width: 720px) and (max-width: 1099px) {
  .footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) and (max-width: 1099px) {
  .brand .logo-word { display: none; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  .brand .logo-word { height: 18px; }
}
.site-header .nav-actions .btn-call { display: none; }
@media (max-width: 859px) {
  .site-header .nav-actions .btn-call { display: inline-flex; min-height: 44px; padding: .75em 1em; }
}
/* Figure with caption: keep image ratio, show caption below (E1) */
.about-figure:has(figcaption) { aspect-ratio: auto; overflow: visible; box-shadow: none; }
.about-figure:has(figcaption) img { aspect-ratio: 4 / 5; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
/* Start page service links (E4) */
.service-links { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; margin: 24px 0; }
.service-links a { color: #8f1422; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Focus ring visible on the red CTA band */
.cta-band a:focus-visible, .cta-band button:focus-visible { outline-color: #fff; }
