:root {
  --bg: #ffffff;
  --surface: #f3f7f9;
  --surface-strong: #e7eef2;
  --surface-dark: #0f2333;
  --text: #1f252d;
  --muted: #55616f;
  --accent: #124764;
  --accent-strong: #0d344b;
  --accent-soft: #d9e7ef;
  --border: #d7e0e6;
  --placeholder-bg: #f7f1df;
  --placeholder-border: #c6b17b;
  --shadow: 0 20px 40px rgba(15, 35, 51, 0.08);
  --radius: 20px;
  --radius-small: 12px;
  --max-width: 1180px;
  --max-width-narrow: 820px;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(243, 247, 249, 0.65) 0, rgba(243, 247, 249, 0) 260px),
    var(--bg);
  line-height: 1.65;
}

main section[id] {
  scroll-margin-top: 110px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

h3 {
  font-size: 1.35rem;
}

.info-card h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.95rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.info-card h3,
.service-card h3,
.focus-card h3,
.highlight-card h3,
.process-card h3,
.timeline-entry h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.2rem;
}

.container {
  width: min(calc(100% - 2.4rem), var(--max-width));
  margin: 0 auto;
}

.narrow-container {
  width: min(calc(100% - 2.4rem), var(--max-width-narrow));
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 224, 230, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
  min-width: 0;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  background:
    linear-gradient(135deg, rgba(18, 71, 100, 0.16), rgba(18, 71, 100, 0.03)),
    var(--surface);
  border: 1px solid rgba(18, 71, 100, 0.18);
  flex-shrink: 0;
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  position: relative;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta::after,
.button::after,
.button-secondary::after,
.text-link::after {
  display: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(18, 71, 100, 0.18);
}

.button:hover {
  color: #fff;
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(18, 71, 100, 0.22);
}

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

.button:disabled:hover,
.button[aria-disabled="true"]:hover {
  background: var(--accent);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.button-small {
  padding: 0.8rem 1.15rem;
  font-size: 0.9rem;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--surface);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.text-link::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.hero {
  padding: 5rem 0 2.75rem;
}

.hero-grid,
.page-hero-grid,
.about-hero,
.contact-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-items: center;
}

.hero-home {
  position: relative;
  overflow: hidden;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(18, 71, 100, 0.06), transparent 44%),
    repeating-linear-gradient(90deg, transparent 0, transparent 84px, rgba(18, 71, 100, 0.035) 84px, rgba(18, 71, 100, 0.035) 85px);
  pointer-events: none;
}

.hero-copy,
.page-hero-card,
.cta-panel,
.info-card,
.service-card,
.highlight-card,
.focus-card,
.process-card,
.legal-box,
.contact-form-wrapper {
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(2.4rem, 4vw, 3rem);
  container-type: inline-size;
  width: min(100%, 920px);
  background:
    linear-gradient(135deg, rgba(18, 71, 100, 0.06), rgba(18, 71, 100, 0.01)),
    #fff;
}
.hero-copy h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 8.6cqi, 3.4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.page-hero-card {
  padding: clamp(1.7rem, 3vw, 2rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
}

.hero-profile-line {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-weight: 700;
  max-width: 58ch;
}

.hero-actions,
.section-actions,
.cta-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.content-block {
  margin-top: clamp(2rem, 3.8vw, 2.5rem);
}

.footer-heading,
.footer-title,
.trust-value,
.timeline-period {
  font-weight: 700;
}

.trust-grid,
.card-grid,
.focus-grid,
.footer-grid,
.form-grid,
.service-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.trust-value,
.focus-number {
  display: block;
}

.trust-value {
  text-wrap: balance;
}

.timeline-entry p,
.footer-company {
  color: var(--muted);
}

.section {
  padding: clamp(3.75rem, 6vw, 4.5rem) 0;
}

.section-surface {
  background: var(--surface);
}

.section-heading {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

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

.section-note {
  margin-top: -0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid > div {
  height: 100%;
  padding: 1.35rem 1.2rem;
  border: 1px solid rgba(18, 71, 100, 0.12);
  border-radius: var(--radius-small);
  background: rgba(243, 247, 249, 0.8);
}

.about-trust-grid {
  align-self: start;
}

.about-trust-shell {
  margin-top: clamp(2rem, 3.8vw, 2.5rem);
}

.about-timeline-shell {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

.about-timeline-shell .timeline-entry {
  background: rgba(243, 247, 249, 0.84);
  box-shadow: none;
}

.education-shell {
  margin-top: clamp(1.35rem, 2.6vw, 1.9rem);
}

.education-heading {
  margin-bottom: 1rem;
  text-align: center;
}

.education-heading .eyebrow {
  margin-bottom: 0;
}

.education-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .education-grid {
    grid-template-columns: 1fr;
  }
}

.education-item {
  min-width: 0;
  padding: 1.25rem 1.2rem 1.3rem;
  border: 1px solid rgba(18, 71, 100, 0.12);
  border-radius: var(--radius-small);
  background: rgba(243, 247, 249, 0.78);
}

.education-item h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.25;
}

.education-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.trust-value {
  margin-bottom: 0.5rem;
  color: var(--accent-strong);
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.service-card,
.focus-card,
.highlight-card,
.process-card,
.legal-box,
.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-icon {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
}

.focus-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.focus-card {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(18, 71, 100, 0.05), rgba(18, 71, 100, 0)),
    #fff;
}

.focus-number {
  margin-bottom: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}

.stacked-cards,
.process-steps {
  display: grid;
  gap: 1rem;
}

.workflow-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2rem;
}

.workflow-steps .process-card {
  flex: 1;
  min-width: 0;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}

.highlight-card {
  border-left: 4px solid var(--accent);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-entry {
  min-width: 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.timeline-period {
  margin-bottom: 0.55rem;
  display: inline-block;
  color: var(--accent);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Horizontaler Zeitstrahl ──────────────────── */
.timeline-h {
  position: relative;
  --timeline-axis-y: 2.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.15rem;
  padding-top: 0;
  margin-top: 1.6rem;
}

.timeline-h::before {
  content: '';
  position: absolute;
  top: var(--timeline-axis-y);
  left: 0.4rem;
  right: 0.4rem;
  height: 1px;
  background: rgba(18, 71, 100, 0.18);
}

.timeline-h .timeline-entry {
  min-width: 0;
  min-height: 0;
  display: block;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  position: relative;
}

.timeline-h .timeline-period {
  position: absolute;
  top: 0;
  left: 0;
  right: 0.35rem;
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: none;
}

.timeline-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--accent);
  margin: 0;
  position: absolute;
  top: calc(var(--timeline-axis-y) - 5px);
  left: 0.12rem;
  z-index: 1;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  width: 1px;
  height: 0.75rem;
  transform: translateX(-50%);
  background: rgba(18, 71, 100, 0.24);
}

.timeline-card {
  min-height: 0;
  display: block;
  margin-top: 3.55rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid rgba(18, 71, 100, 0.14);
  border-radius: var(--radius-small);
  background: rgba(248, 250, 252, 0.95);
  align-self: start;
}

.timeline-card > * {
  margin-left: 0;
  margin-right: 0;
}

.timeline-h .timeline-card h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.1rem, 1.45vw, 1.28rem);
  line-height: 1.18;
  overflow-wrap: normal;
  hyphens: auto;
  text-wrap: pretty;
}

.timeline-h .timeline-card p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .timeline-h {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-left: 2rem;
    gap: 1.15rem;
  }

  .timeline-h::before {
    top: 2.25rem;
    bottom: 0.9rem;
    left: 0.3rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .timeline-h .timeline-entry {
    min-height: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'period period'
      'dot card';
    column-gap: 0.95rem;
    row-gap: 0.55rem;
    align-items: start;
  }

  .timeline-h .timeline-period {
    grid-area: period;
    position: static;
    min-height: 0;
    margin-bottom: 0;
    padding-right: 0;
  }

  .timeline-dot {
    grid-area: dot;
    position: relative;
    top: auto;
    left: auto;
    margin: 0.45rem 0 0;
  }

  .timeline-dot::after {
    display: none;
  }

  .timeline-card {
    grid-area: card;
    margin-top: 0;
  }
}
/* ──────────────────────────────────────────────── */

.cta-panel {
  padding: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 1.5rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(18, 71, 100, 0.08), rgba(18, 71, 100, 0.01)),
    #fff;
}

.page-hero {
  padding: 4.2rem 0 2rem;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
}

.about-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: stretch;
}

.portrait-photo {
  justify-self: center;
  align-self: start;
  width: min(100%, 360px);
  margin: 0;
  padding: 8px;
  background: linear-gradient(180deg, #f8f9fb, #f1f3f6);
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.portrait-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  background: var(--surface);
}

.rich-text-block {
  max-width: 70ch;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.contact-info-grid {
  grid-template-columns: 1fr;
  align-self: start;
}

.form-intro {
  margin-bottom: 1.5rem;
}

.contact-form-wrapper h3 {
  margin-bottom: 0.75rem;
}

.form-disabled {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid > * {
  min-width: 0;
}

.field-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.field-group-full {
  grid-column: 1 / -1;
}

.field-group label {
  font-weight: 700;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: #fff;
  color: var(--text);
}

.field-group textarea {
  resize: vertical;
  min-height: 160px;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #7a8795;
}

.field-group.is-invalid input,
.field-group.is-invalid textarea {
  border-color: #b24b4b;
  background: #fff8f8;
}

.contact-form.is-inactive input,
.contact-form.is-inactive textarea,
.contact-form.is-inactive button {
  background: var(--surface);
}

.checkbox-group {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.required-mark {
  color: var(--accent);
}

.field-error {
  margin: -0.1rem 0 0;
  color: #9d2f2f;
  font-size: 0.92rem;
}

.checkbox-error {
  grid-column: 2;
  margin-top: -0.2rem;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-status-success {
  background: #eef7f1;
  border-color: #b9dbc3;
  color: #1d5a2f;
}

.form-status-error {
  background: #fff3f3;
  border-color: #e4b8b8;
  color: #7d2323;
}

.form-status-note {
  background: var(--surface);
  border-color: rgba(18, 71, 100, 0.12);
  color: var(--muted);
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-page .section {
  padding-top: 2rem;
}

.legal-hero {
  padding-bottom: 0;
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-box p:last-child,
.highlight-card p:last-child,
.info-card p:last-child,
.service-card p:last-child,
.focus-card p:last-child,
.process-card p:last-child,
.cta-panel p:last-child,
.timeline-entry p:last-child {
  margin-bottom: 0;
}

.legal-note {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-small);
  background: var(--surface);
  border-left: 4px solid var(--accent);
}

.placeholder-inline {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  color: #6e5720;
  font-weight: 700;
}

.site-footer {
  padding: 3rem 0 1.5rem;
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  grid-template-columns: 1.4fr 0.85fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.65rem;
}

.footer-heading {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.footer-links a,
.footer-meta-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-links a:hover,
.footer-meta-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact span:first-child {
  display: inline-block;
  min-width: 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom,
.footer-meta-links,
.inline-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
}

:focus-visible {
  outline: 3px solid rgba(18, 71, 100, 0.32);
  outline-offset: 3px;
}

body.js-enabled .nav-toggle {
  display: none;
}

@media (max-width: 1280px) {
  .card-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.84fr);
  }
}

@media (max-width: 1120px) {
  .trust-grid,
  .focus-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-grid,
  .about-hero,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .card-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    max-width: 100%;
    hyphens: auto;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }
}

@media (max-width: 980px) {
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .service-grid,
  .card-grid-two,
  .card-grid-three,
  .card-grid-four,
  .trust-grid,
  .focus-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .workflow-steps {
    flex-direction: column;
  }

  .workflow-arrow {
    display: none;
  }

  body.js-enabled .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 1rem 0;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
  }

  body.js-enabled .site-nav {
    display: none;
  }

  body.js-enabled .site-nav.is-open {
    display: flex;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
  }

  .site-nav a::after {
    bottom: 0.55rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
    width: fit-content;
  }

  .hero-copy {
    padding: 2.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 620px) {
  .container,
  .narrow-container {
    width: min(calc(100% - 1.4rem), var(--max-width));
  }

  .hero {
    padding-top: 3.4rem;
  }

  .page-hero {
    padding-top: 3rem;
  }

  .portrait-photo {
    width: min(100%, 312px);
    padding: 8px;
  }

  .hero-copy,
  .page-hero-card,
  .cta-panel,
  .info-card,
  .service-card,
  .highlight-card,
  .focus-card,
  .process-card,
  .legal-box,
  .contact-form-wrapper {
    padding: 1.35rem;
    border-radius: 16px;
  }

  .hero-actions,
  .cta-panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-secondary,
  .button-small {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
