:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #eef0f3;
  --text: #1a2233;
  --muted: #546070;
  --line: #d4d8de;
  --accent: #1a3557;
  --accent-hover: #122843;
  --accent-2: #2b5188;
  --accent-light: #e8eef5;
  --shadow-sm: 0 2px 8px rgba(20, 30, 50, 0.07);
  --shadow: 0 4px 20px rgba(20, 30, 50, 0.10);
  --radius: 8px;
  --radius-lg: 12px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; }
ul, ol { margin: 0.5rem 0; padding-left: 1.4rem; }
li { margin-bottom: 0.3rem; }
p { margin-top: 0; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Layout ─────────────────────────────── */
.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 800px);
  margin: 0 auto;
}

/* ─── Navigation ──────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-alt);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* ─── Typography ──────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 0;
  color: var(--text);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.7;
}

/* ─── Sections ────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #1a3557 0%, #1e4270 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 40px;
  right: 60px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  max-width: 22ch;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
}

.hero p:not(.eyebrow):not(.lead) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  max-width: 60ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3rem;
}

.section {
  padding: 4rem 0;
}

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

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

.section-title {
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--muted);
  max-width: 60ch;
}

/* ─── Buttons ─────────────────────────────── */
.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.button:hover { text-decoration: none; }
.button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.button.primary {
  background: #fff;
  color: var(--accent);
  border-color: rgba(255,255,255,0.3);
}
.button.primary:hover {
  background: rgba(255,255,255,0.90);
}

.button.secondary {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.button.secondary:hover {
  background: rgba(255,255,255,0.18);
}

/* On light backgrounds */
.cta-row.light .button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cta-row.light .button.primary:hover { background: var(--accent-hover); }

.cta-row.light .button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.cta-row.light .button.secondary:hover { background: var(--surface-alt); }

.button-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.95rem;
}
.button-inline:hover { text-decoration: underline; }

/* ─── Cards ────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* ─── Info card (hero sidebar) ─────────────── */
.info-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.info-card h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.info-card ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.info-card ul li {
  color: rgba(255,255,255,0.82);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.info-card ul li:last-child { border-bottom: none; }

.info-card ul li::before {
  content: '›';
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ─── Highlight box ─────────────────────────── */
.highlight-box {
  background: var(--accent-light);
  border: 1px solid #c2d0e4;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

/* ─── Check list ────────────────────────────── */
.check-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.3rem 0;
}

.check-list li::before {
  content: '✓';
  color: var(--accent-2);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* ─── Two-column layout ─────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.two-col-wide {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

/* ─── Feature list ──────────────────────────── */
.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

/* ─── Process / Timeline ──────────────────── */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: process-step;
}

.process-list > li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem 1.5rem;
  margin-bottom: 0;
  position: relative;
  padding-bottom: 2.5rem;
  counter-increment: process-step;
}

.process-list > li:last-child {
  padding-bottom: 0;
}

.process-list > li::before {
  content: counter(process-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-list > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.4rem;
  top: 3rem;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.process-list > li > div {
  padding-top: 0.5rem;
}

.process-list > li strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.process-list > li p {
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: 0.97rem;
}

/* ─── Callout / CTA bar ──────────────────── */
.callout {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.callout h2 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.callout p {
  color: rgba(255,255,255,0.82);
  max-width: 50ch;
}

.callout .cta-row {
  margin-top: 0;
  flex-shrink: 0;
}

/* ─── Contact ───────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ─── Legal / Impressum ──────────────────── */
.legal-text h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-text h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-text p { margin-bottom: 1rem; }

/* ─── Profile cards ──────────────────────── */
.profiles-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.profile-card h3 {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.profile-photo-wrap {
  margin: -1.75rem -1.75rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  line-height: 0;
}

.profile-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ─── Team photo ─────────────────────────── */
.team-photo-wrap {
  padding: 2rem 0 0;
}

.team-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--shadow);
}

.team-photo img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ─── Footer ──────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.6rem;
}

.footer-inner p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.60);
  margin: 0;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.70);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.40);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.84rem;
}

.footer-bottom a:hover { color: #fff; }

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 860px) {
  .hero-grid,
  .two-col,
  .two-col-wide,
  .grid-cards,
  .grid-cards-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 3.5rem 0 3rem;
  }

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

  .section {
    padding: 3rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.6rem 0.5rem;
    border-radius: 4px;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding: 0.5rem 0;
    min-height: auto;
  }
}

@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
