:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #edf1ec;
  --text: #20231f;
  --muted: #62685f;
  --line: #d8ddd3;
  --accent: #4338ca;
  --accent-strong: #312e81;
  --accent-button: #4338ca;
  --accent-soft: #e0e7ff;
  --warm: #8b1e3f;
  --green: #166534;
  --shadow: 0 20px 60px rgba(22, 34, 28, 0.12);
  --radius: 8px;
  --content: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16171a;
  --surface: #202126;
  --surface-soft: #202922;
  --text: #f1f3ed;
  --muted: #b9bbb4;
  --line: #3d4048;
  --accent: #a5b4fc;
  --accent-strong: #c7d2fe;
  --accent-button: #4f46e5;
  --accent-soft: #29284f;
  --warm: #fb7185;
  --green: #6ee7a0;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--accent-button);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 30%);
  background: color-mix(in srgb, var(--bg), transparent 8%);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.text-button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.text-button {
  padding: 0 14px;
  font-weight: 700;
}

.section {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: clamp(32px, 6vw, 84px);
  min-height: calc(100vh - 77px);
  padding-top: clamp(54px, 8vw, 96px);
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.panel-label {
  margin: 0 0 14px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  background: var(--accent-button);
  color: #ffffff;
}

.secondary-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.profile-panel,
.service-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 24px;
}

.portrait-image {
  display: block;
  width: min(200px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-soft);
}

.profile-panel h2 {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.profile-panel p:not(.panel-label),
.copy,
.service-card p,
.content-card p:not(.panel-label),
.contact-details {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.split > * {
  min-width: 0;
}

#profil h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  hyphens: none;
  overflow-wrap: normal;
}

.copy {
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.content-card {
  padding: 24px;
  box-shadow: none;
}

.content-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

.content-card a {
  margin-top: auto;
  font-weight: 750;
}

.card-number {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.muted-section {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--content)) / 2));
  background: var(--surface-soft);
  border-top: 0;
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-details {
  max-width: 760px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.legal-page h1 {
  margin-bottom: 42px;
}

.legal-page h2 {
  margin-top: 34px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

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

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-panel {
    max-width: 420px;
  }

  .service-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(var(--content), calc(100% - 28px));
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
