/* Noord Ned Consult — styles. Static, no framework. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* brand (sampled from the logo, see _inventory.md B1) */
  --navy: #2b2c42;
  --red: #c9000f;
  --red-dark: #a6000c;
  --orange: #fc9918;
  /* neutrals */
  --paper: #faf8f4;
  --white: #ffffff;
  --tint: #f3efe7;
  --muted: #55576e;
  --line: #e6e1d9;
  --on-navy: #e9eaf1;
  --on-navy-muted: #b9bbcc;

  /* type */
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 1rem;
  --fs-h1-hero: clamp(2.25rem, 1.1rem + 4.6vw, 4.25rem);
  --fs-h1: clamp(2.125rem, 1.2rem + 3.2vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.7vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);

  /* spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(3rem, 1.75rem + 4vw, 5rem);
  --dienst-pad: clamp(2.5rem, 0.5rem + 4.4vw, 4.5rem);
  --gutter: 1.25rem;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow-1: 0 1px 2px rgba(43, 44, 66, 0.08);
  --shadow-2: 0 2px 8px rgba(43, 44, 66, 0.1);

  --header-h: 0px; /* measured by main.js; 88px fallback from 900px up */
  --bar-h: 56px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 900px) {
  :root {
    --fs-body: 1.125rem;
    --gutter: 2rem;
    --header-h: 88px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}
p {
  margin: 0 0 var(--s-4);
  max-width: 68ch;
}
p:last-child {
  margin-bottom: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-footer :focus-visible {
  outline-color: var(--orange);
}
.btn--primary:focus-visible,
.mobile-bar__call:focus-visible {
  outline-color: var(--navy);
}
html {
  scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 1rem);
}
[id] {
  scroll-margin-top: calc(var(--header-h) + var(--jumpnav-h, 0px) + 1.5rem);
}
.dienst {
  scroll-margin-top: calc(var(--header-h) + var(--jumpnav-h, 4rem) - var(--dienst-pad) + 1rem);
}
@media (min-width: 900px) {
  html {
    scroll-padding-bottom: 0;
  }
}

.container {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--s-3);
}

.eyebrow {
  display: block;
  margin: 0 0 var(--s-4);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  font-size: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  line-height: 1.55;
}
.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  text-align: center;
  overflow-wrap: anywhere;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--red-dark);
}
.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--sm {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.text-link {
  font-weight: 600;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.text-link:hover {
  color: var(--red-dark);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  min-height: 72px;
  padding-block: var(--s-2);
}
.brand {
  display: block;
  line-height: 0;
}
.brand img {
  width: 160px;
  height: auto;
}
.nav-toggle {
  display: none;
}
.js .nav-toggle {
  display: inline-flex;
}
.nav-toggle {
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  content: "";
  position: relative;
}
.nav-toggle__bars::before {
  position: absolute;
  top: -6px;
}
.nav-toggle__bars::after {
  position: absolute;
  top: 6px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  flex-basis: 100%;
}
.js .site-nav {
  display: none;
}
.js .site-nav.is-open {
  display: block;
}
.nav-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: var(--s-2);
}
.nav-list a {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}
.nav-list a[aria-current="page"] {
  box-shadow: inset 4px 0 0 var(--red);
  padding-left: var(--s-4);
}
.header-cta {
  display: none;
}

/* ---------- Mobile bottom bar ---------- */
body {
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-clip: padding-box;
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bar-h);
  font-weight: 700;
  text-decoration: none;
}
.mobile-bar__call {
  background: var(--red);
  color: var(--white);
}
.mobile-bar__mail {
  background: var(--white);
  color: var(--navy);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
  .mobile-bar {
    display: none;
  }
  .site-header {
    position: sticky;
    top: 0;
  }
  .header-inner {
    min-height: 84px;
    padding-block: 4px;
  }
  .brand img {
    width: 190px;
  }
  .js .nav-toggle,
  .nav-toggle {
    display: none;
  }
  .js .site-nav,
  .site-nav {
    display: block;
    flex-basis: auto;
    margin-left: auto;
  }
  .nav-list {
    flex-direction: row;
    gap: var(--s-6);
    border: 0;
    margin: 0;
  }
  .nav-list a {
    position: relative;
    padding: 0.5rem 0;
    border: 0;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after {
    transform: scaleX(1);
  }
  .nav-list a[aria-current="page"] {
    box-shadow: none;
    padding-left: 0;
  }
  .header-cta {
    display: inline-flex;
  }
}

/* ---------- Motif: three squares ---------- */
.mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.mark .m-red {
  fill: var(--red);
}
.mark .m-orange {
  fill: var(--orange);
}

/* ---------- Hero (home) ---------- */
.hero {
  padding-block: var(--s-6);
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-h1-hero);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-5);
}
.h1-line {
  display: block;
}
.hero .lead {
  margin-bottom: var(--s-5);
  max-width: 34em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  color: var(--muted);
  font-size: var(--fs-small);
}
.hero-meta a {
  color: var(--navy);
  font-weight: 700;
}
.hero-meta .sep {
  color: var(--muted);
}

/* squares: the logo's arrangement at larger scale (two red squares meeting
   corner to corner, orange square behind them). Solid colours only. */
.squares {
  --sq-r: 8px;
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  margin-top: var(--s-2);
}
.squares > div {
  position: absolute;
  border-radius: var(--sq-r);
}
.squares__orange {
  left: 17%;
  top: 17%;
  width: 66%;
  height: 66%;
  background: var(--orange);
}
.squares__red-a {
  left: 0;
  top: 0;
  width: 49.5%;
  height: 49.5%;
  background: var(--red);
}
.squares__red-b {
  right: 0;
  bottom: 0;
  width: 49.5%;
  height: 49.5%;
  background: var(--red);
}
@media (min-width: 900px) {
  .hero {
    padding-block: var(--s-7) var(--s-6);
  }
  .hero-grid {
    grid-template-columns: 52fr 48fr;
    gap: clamp(3rem, 5vw, 4rem);
  }
  .squares {
    --sq-r: 12px;
    width: min(100%, 400px);
    margin-top: 0;
    justify-self: end;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-y);
}
.section--white {
  background: var(--white);
  border-block: 1px solid var(--line);
}
.section--tint {
  background: var(--tint);
}
.section-head {
  margin-bottom: var(--s-7);
}
.section-head h2 {
  max-width: 20ch;
}
.section-head p {
  margin-top: var(--s-4);
}

/* positioning */
.position-grid {
  display: grid;
  gap: var(--s-7);
}
.position-grid .mark {
  margin-bottom: var(--s-5);
}
.benefits {
  display: grid;
  gap: var(--s-5) var(--s-6);
}
.benefits li {
  border-top: 2px solid var(--navy);
  padding-top: var(--s-3);
}
.benefits h3 {
  font-size: 1.25rem;
  margin-bottom: var(--s-2);
}
.benefits p {
  color: var(--muted);
  font-size: var(--fs-body);
  margin: 0;
}
@media (min-width: 700px) {
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .position-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--s-8);
  }
}

/* services on home: editorial list */
.svc-list {
  border-bottom: 1px solid var(--line);
}
.svc {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--s-3) var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
}
.svc__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
}
.svc h3 {
  margin-bottom: var(--s-2);
}
.svc p {
  margin: 0;
  color: var(--muted);
}
.svc__text {
  grid-column: 2;
}
.svc__links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
}
.svc--quiet {
  border-top-style: dashed;
}
.svc--quiet .svc__num {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--muted);
}
.svc--quiet h3 {
  font-size: 1.1875rem;
}
@media (min-width: 900px) {
  .svc {
    grid-template-columns: 56px minmax(0, 1fr) minmax(180px, 230px);
    gap: var(--s-3) var(--s-6);
    align-items: start;
  }
  .svc__links {
    grid-column: 3;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }
}

/* specialist: compact two-column band */
.specialist {
  display: grid;
  gap: var(--s-6);
}
.specialist__item h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  margin-bottom: var(--s-3);
}
.specialist__item p {
  margin-bottom: var(--s-3);
}
.specialist__item .text-link {
  display: inline-block;
}
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--s-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 1px;
}
@media (min-width: 900px) {
  .specialist {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .specialist__item:first-child {
    padding-right: var(--s-7);
    border-right: 1px solid var(--line);
  }
  .specialist__item:last-child {
    padding-left: var(--s-7);
  }
}

/* visit + offices (one section) */
.visit {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
.visit__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--s-5);
}
.visit__title::before {
  content: "";
  display: block;
  width: 56px;
  height: 8px;
  margin-bottom: var(--s-5);
  background: var(--orange);
  border-radius: 1px;
}
.visit__text p {
  margin-bottom: var(--s-5);
}
.visit__offices {
  display: grid;
  gap: var(--s-5);
}
.location {
  border-top: 2px solid var(--navy);
  padding-top: var(--s-3);
}
.location h3 {
  margin-bottom: var(--s-2);
}
.location address {
  font-style: normal;
  margin-bottom: var(--s-3);
}
@media (min-width: 640px) {
  .visit__offices {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
}
@media (min-width: 900px) {
  .visit {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
  .visit__offices {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
}

/* closing CTA */
.cta-band {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.cta-band h2 {
  max-width: 16ch;
}
.cta-band .mark {
  width: 96px;
  height: 96px;
}
.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
}
@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: auto 1fr auto;
    gap: var(--s-8);
  }
  .cta-band__actions {
    flex-direction: row;
    align-items: center;
    gap: var(--s-5);
  }
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding-block: var(--s-6) var(--s-5);
}
.page-head h1 {
  max-width: 18ch;
  margin-bottom: var(--s-4);
}
@media (min-width: 900px) {
  .page-head {
    padding-block: var(--s-7) var(--s-6);
  }
}

/* ---------- Diensten ---------- */
.jumpnav {
  background: var(--paper);
  border-block: 1px solid var(--line);
  z-index: 80;
}
.jumpnav__list {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--s-2);
  overflow-x: auto;
  padding-block: var(--s-3);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.jumpnav__list li {
  flex: none;
}
.jumpnav__list a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.jumpnav__list a:hover {
  border-color: var(--navy);
}
.jumpnav__list a[aria-current="true"] {
  border-color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--red);
}
@media (min-width: 900px) {
  .jumpnav {
    position: sticky;
    top: var(--header-h);
  }
}

.dienst {
  padding-block: var(--dienst-pad);
}
.dienst:nth-of-type(odd) {
  background: var(--white);
}
.dienst__grid {
  display: grid;
  gap: var(--s-4);
}
.dienst__num {
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--muted);
}
.dienst__num::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-top: var(--s-2);
  background: var(--orange);
  border-radius: 1px;
}
.dienst h2 {
  margin-bottom: var(--s-3);
}
.dienst__list-title {
  margin: var(--s-4) 0 var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dienst__more {
  margin-top: var(--s-4);
}
.callout {
  margin-top: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--orange);
  background: var(--tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 62ch;
}
.callout p {
  margin: 0;
}
@media (min-width: 900px) {
  .dienst__grid {
    grid-template-columns: 4fr 7fr;
    gap: var(--s-8);
  }
}

/* mediation */
.dienst--mediation {
  background: var(--tint) !important;
  border-block: 1px solid var(--line);
}
.principles {
  display: grid;
  gap: var(--s-4);
  margin-block: var(--s-4);
}
.principle {
  padding: var(--s-3) 0 0;
  border-top: 2px solid var(--navy);
}
.principle h3 {
  font-size: 1.25rem;
  margin-bottom: var(--s-2);
}
.principle p {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--muted);
}
@media (min-width: 700px) {
  .principles {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
}

/* ---------- Contact ---------- */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.contact-actions .btn {
  max-width: 100%;
}
.section--flush-top {
  padding-top: var(--s-6);
}
.contact-grid {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}
.office-cards {
  display: grid;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.office {
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
}
.office h2 {
  font-size: 1.5rem;
  margin-bottom: var(--s-2);
}
.office address {
  font-style: normal;
  margin-bottom: var(--s-4);
}
.office .name {
  font-weight: 700;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.contact-side h2 {
  font-size: 1.5rem;
  margin-bottom: var(--s-3);
}
.contact-side .block + .block {
  margin-top: var(--s-6);
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 6fr 5fr;
    gap: var(--s-8);
    align-items: start;
  }
}

.form-panel {
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 700px) {
  .form-panel {
    padding: var(--s-6);
  }
}
.form-panel h2 {
  font-size: 1.75rem;
  margin-bottom: var(--s-2);
}
.form-note {
  color: var(--muted);
  font-size: var(--fs-small);
  margin-bottom: var(--s-5);
}
.field {
  margin-bottom: var(--s-5);
}
.field label {
  display: block;
  margin-bottom: var(--s-2);
  font-weight: 700;
}
.field .req {
  color: var(--red);
  margin-left: 0.15em;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #8b8da0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1.0625rem;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}
.field [aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: inset 4px 0 0 var(--red);
}
.field-error {
  margin: var(--s-2) 0 0;
  color: #a6000c;
  font-weight: 600;
  font-size: var(--fs-small);
}
.field-error[hidden] {
  display: none;
}
.field-row {
  display: grid;
  gap: 0 var(--s-5);
}
@media (min-width: 700px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-alt {
  margin-top: var(--s-4);
  color: var(--muted);
  font-size: var(--fs-small);
}
.form-alt a {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-small);
}
.site-footer a {
  color: var(--on-navy);
}
.site-footer a:hover {
  color: var(--white);
}
.footer-grid {
  display: grid;
  gap: var(--s-7);
}
.footer-logo {
  display: inline-block;
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  border-radius: var(--radius);
  line-height: 0;
}
.footer-logo img {
  width: 140px;
  height: auto;
}
.footer-col h2 {
  margin-bottom: var(--s-3);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.footer-col address {
  font-style: normal;
  margin-bottom: var(--s-4);
}
.footer-col li + li {
  margin-top: var(--s-2);
}
.footer-col a {
  display: inline-block;
  padding-block: 0.15rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(233, 234, 241, 0.2);
  color: var(--on-navy-muted);
}
.footer-legal a {
  color: var(--on-navy-muted);
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.1fr 0.8fr 1.4fr 1.1fr;
    gap: var(--s-6);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav-list a::after {
    transition: none;
  }
}

/* ---------- Small additions ---------- */
.position-text {
  margin-top: var(--s-5);
}
.cta-band--plain {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .cta-band--plain {
    grid-template-columns: 1fr auto;
  }
}
.dienst .ticks + p:not(.dienst__more) {
  margin-top: var(--s-5);
}

/* ---------- Resilience under large text / zoom ---------- */
.hero-grid > *,
.position-grid > *,
.dienst__grid > *,
.contact-grid > *,
.visit > *,
.visit__offices > *,
.specialist > *,
.cta-band > *,
.footer-grid > *,
.benefits > *,
.principles > *,
.office-cards > * {
  min-width: 0;
}
h1,
h2,
h3,
p,
li,
address {
  overflow-wrap: break-word;
}
a {
  overflow-wrap: anywhere;
}
/* main.js sets this when the sticky bars would take too much of a short or zoomed viewport */
html.sticky-off .site-header,
html.sticky-off .jumpnav {
  position: static;
}
/* focus scrolling on mobile keeps focused controls clear of the fixed contact bar */
@media (max-width: 899px) {
  a,
  button,
  input,
  select,
  textarea {
    scroll-margin-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 1rem);
  }
}
