/* ==========================================================================
   Angersbach Elektrotechnik — Design System: "Werkbank & Werkplan"
   Self-hosted InterLocal (GDPR-strict, zero external requests)
   ========================================================================== */

@font-face {
  font-family: "InterLocal";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterLocal";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterLocal";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surface Tokens ("Meister-Marine & Klarweiß") */
  --paper: #f8fafd;
  --stone: #eef3f9;
  --panel: #e4eefb;
  --surface: #ffffff;

  /* Ink & Accent Tokens (WCAG AA/AAA verified) */
  --ink: #112233;
  --muted: #47586b;
  --blue: #004fc4;
  --blue-hover: #003b95;
  --icon-accent: #0074d6;
  --line: #d5dfec;
  --line-strong: #8fa3ba;

  /* Typography Scale (Proportional across 1080p, 1440p, and 125%/150% scaled displays) */
  --font-sans: "InterLocal", Arial, sans-serif;
  --text-display: clamp(1.9rem, 3.1vw, 2.85rem);
  --text-h2: clamp(1.45rem, 2.2vw, 2.05rem);
  --text-h3: clamp(1.1rem, 1.15vw, 1.25rem);
  --text-lead: clamp(1rem, 0.35vw + 0.92rem, 1.125rem);
  --text-body: 1rem;
  --text-sm: 0.9rem;
  --text-label: 0.75rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Motion Tokens (160ms–220ms) */
  --dur-fast: 160ms; /* transition duration */
  --dur-base: 200ms; /* transition duration */
  --dur-slow: 220ms; /* transition duration */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: balance;
}

p + p {
  margin-top: 14px;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--blue);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 100;
}

.skip:focus {
  left: 16px;
}

/* Fluid Container across all display resolutions */
.wrap {
  width: min(1100px, calc(100% - clamp(32px, 6vw, 80px)));
  margin-inline: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-block: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.brand-link:hover { /* transition on .brand-link */
  opacity: 0.85;
}

.brand {
  width: clamp(168px, 16vw, 220px);
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.nav-link:hover, /* transition on .nav-link */
.nav-link[aria-current="location"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  background-color: var(--blue);
  color: var(--surface);
  border: 1px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 11px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.button:hover { /* transition on .button */
  background-color: var(--blue-hover);
  border-color: var(--blue-hover);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { /* transition on .button */
    transform: translateY(-1px);
  }
}

.button:active {
  transform: translateY(0);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button.small {
  min-height: 42px;
  padding: 9px 16px;
}

.button.secondary {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.button.secondary:hover { /* transition on .button */
  background-color: var(--panel);
  border-color: var(--blue);
  color: var(--blue);
}

.text-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.text-link:hover { /* transition on .text-link */
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.text-link:active {
  opacity: 0.8;
}

/* ==========================================================================
   Hero Section (#start)
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding-block: clamp(28px, 4.5vh, 52px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
}

h1 {
  font-size: var(--text-display);
  line-height: 1.1;
}

h1 span {
  color: var(--blue);
}

.intro {
  font-size: var(--text-lead);
  color: var(--muted);
  max-width: 50ch;
  margin-top: 16px;
  line-height: 1.68;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-image {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.hero-image img {
  width: 110%;
  max-width: none;
  margin-inline: -5%;
  aspect-ratio: 841 / 676;
  object-fit: contain;
  background-color: transparent;
  mix-blend-mode: multiply;
  border-radius: 0;
}

.hero-image figcaption {
  font-size: 11.5px;
  margin-top: 6px;
  padding-inline: 2px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   6 Service Shortcuts Bar (nav.service-shortcuts) & Service Icons
   ========================================================================== */
.shortcuts-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
}

.shortcuts-bar + .section-stone {
  border-top: 0;
}

.service-icon {
  width: 42px;
  height: 42px;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}

.service-icon .accent {
  stroke: var(--icon-accent);
}

.service-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.service-shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  border-right: 1px solid var(--line);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.service-shortcuts a:first-child {
  border-left: 1px solid var(--line);
}

.service-shortcuts a:hover { /* transition on .service-shortcuts a */
  background-color: var(--panel);
  color: var(--blue);
}

@media (hover: hover) and (pointer: fine) {
  .service-shortcuts a:hover .service-icon { /* transition on .service-icon */
    transform: translateY(-2px);
  }
}

.service-shortcuts a:active {
  background-color: var(--stone);
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section {
  padding-block: clamp(44px, 5.5vw, 68px);
}

.section-stone {
  background-color: var(--stone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p,
.section-subcopy {
  color: var(--muted);
  font-size: var(--text-body);
  max-width: 46ch;
}

/* ==========================================================================
   6 Core Services Grid (#leistungen)
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  background-color: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  scroll-margin-top: 96px;
  transition: background-color var(--dur-base) var(--ease-out);
}

.service-card.highlight-surface {
  background-color: var(--surface);
}

.service-card:hover { /* transition on .service-card */
  background-color: var(--panel);
}

.service-card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card .service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
}

h3 {
  font-size: var(--text-h3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}

.service-topic-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.service-topic-btn:hover { /* transition on .service-topic-btn */
  color: var(--blue-hover);
}

@media (hover: hover) and (pointer: fine) {
  .service-topic-btn:hover { /* transition on .service-topic-btn */
    transform: translateX(2px);
  }
}

/* ==========================================================================
   Personal Introduction (#ueber-mich)
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 4.5vw, 52px);
  align-items: center;
}

.portrait {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  max-width: 360px;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.portrait figcaption {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  padding-inline: 4px;
  color: var(--ink);
}

.about-copy {
  max-width: 60ch;
}

.about-lead {
  font-size: var(--text-lead);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
}

.about-copy p:not(.eyebrow):not(.about-lead) {
  color: var(--muted);
}

.about-copy .text-link {
  margin-top: 16px;
}

/* ==========================================================================
   Process (#ablauf)
   ========================================================================== */
#ablauf {
  border-top: 1px solid var(--line);
}

.process-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

#ablauf h2 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

#ablauf .section-subcopy {
  font-size: var(--text-lead);
  line-height: 1.68;
  max-width: 42ch;
}

.steps-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.step-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.step-phase {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--blue);
}

.step-row h3 {
  font-size: clamp(1.25rem, 1.45vw, 1.5rem);
  margin-bottom: 8px;
}

.step-row p {
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.08rem);
  color: var(--muted);
  line-height: 1.68;
}

/* ==========================================================================
   Contact & Interactive Projekt-Vorbereiter (#kontakt)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 4.5vw, 48px);
  align-items: start;
}

.contact-intro > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 44ch;
}

.contact-details {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  background-color: var(--surface);
}

.contact-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}

.contact-details p + p {
  font-size: var(--text-sm);
  margin-top: 10px;
}

.contact-channels {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-channels p {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0;
}

.channel-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.contact-details a {
  overflow-wrap: anywhere;
  word-break: normal;
  display: inline;
}

.contact-email {
  color: var(--blue);
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease-out);
}

.contact-email:hover { /* transition on .contact-email */
  color: var(--blue-hover);
  text-decoration: underline;
}

.contact-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Projekt-Vorbereiter Card */
.project-preparer {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px);
}

.preparer-head {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.preparer-head h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.preparer-head p {
  font-size: 13px;
  color: var(--muted);
}

.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chip,
.context-chip {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  background-color: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.topic-chip:hover, /* transition on .topic-chip */
.context-chip:hover { /* transition on .context-chip */
  background-color: var(--panel);
  border-color: var(--blue);
}

.topic-chip:active,
.context-chip:active {
  transform: translateY(1px);
}

.topic-chip[aria-pressed="true"],
.context-chip[aria-pressed="true"] {
  background-color: var(--blue);
  border-color: var(--blue);
  color: var(--surface);
  font-weight: 600;
}

.topic-chip[aria-pressed="true"]:hover, /* transition on .topic-chip */
.context-chip[aria-pressed="true"]:hover { /* transition on .context-chip */
  background-color: var(--blue-hover);
  border-color: var(--blue-hover);
}

.preparer-input {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  font-size: var(--text-body);
  background-color: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.preparer-input:hover { /* transition on .preparer-input */
  border-color: var(--ink);
}

.preparer-input:focus {
  background-color: var(--surface);
  border-color: var(--blue);
}

.preparer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.copy-feedback {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  min-height: 20px;
  margin-top: 8px;
}

.preparer-privacy {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.preparer-privacy a {
  color: var(--blue);
  text-decoration: underline;
}

.preparer-privacy a:hover { /* transition on a */
  color: var(--blue-hover);
}

/* ==========================================================================
   Footer & Legal Pages (impressum.html, datenschutz.html, 404.html)
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  background-color: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 24px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-links a:hover { /* transition on .footer-links a */
  color: var(--blue);
  text-decoration: underline;
}

/* Legal & Error Pages */
.legal-page {
  max-width: 820px;
  padding-block: clamp(36px, 5vw, 64px);
}

.legal-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
}

.legal-card > p {
  max-width: 68ch;
}

.legal-back-row {
  margin-bottom: 12px;
}

.legal-page a.legal-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.legal-page a.legal-back-link:hover { /* transition on .legal-back-link */
  color: var(--blue);
  text-decoration: underline;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}

.legal-page h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-top: 28px;
  margin-bottom: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-card > h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-page a:not(.button) {
  color: var(--blue);
  text-decoration: underline;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) var(--ease-out);
}

.legal-page a:not(.button):hover { /* transition on .legal-page a */
  color: var(--blue-hover);
}

.legal-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Responsive Breakpoints (1080px, 880px, 640px, 360px)
   ========================================================================== */
@media (max-width: 1080px) {
  .service-shortcuts a {
    font-size: 12px;
    padding: 12px 6px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-image {
    max-width: 560px;
  }
  .hero-image img {
    width: 100%;
    margin-inline: 0;
  }
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-card.highlight-surface {
    background-color: var(--paper);
  }
  .service-card:nth-child(1),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    background-color: var(--surface);
  }
  .about,
  .process-layout,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .portrait {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 64px;
    gap: 12px;
  }
  .brand {
    width: 158px;
  }
  .header-nav .nav-link {
    display: none;
  }
  .header-nav .button.small {
    padding: 8px 13px;
    font-size: 12.5px;
  }
  .service-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .service-shortcuts a {
    font-size: 11px;
    min-height: 84px;
    padding: 12px 6px;
    border-bottom: 1px solid var(--line);
  }
  .service-shortcuts a:nth-child(4) {
    border-left: 1px solid var(--line);
  }
  .service-shortcuts .service-icon {
    width: 36px;
    height: 36px;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .service-card:nth-child(even) {
    background-color: var(--paper);
  }
  .service-card:nth-child(odd) {
    background-color: var(--surface);
  }
  .step-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .brand {
    width: 130px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .header-nav .button.small {
    padding: 7px 10px;
    font-size: 11.5px;
  }
  .service-shortcuts a {
    font-size: 10px;
    padding: 10px 4px;
  }
}

/* ==========================================================================
   Reduced Motion Compliance (Non-negotiable)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
