:root {
  --background: #f4f2ec;
  --surface: #ebe8df;
  --text: #182028;
  --muted: #5d656b;
  --line: #cbc8be;
  --accent: #315d72;
  --accent-dark: #234555;
  --white: #ffffff;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

/* Tastatur-Navigation */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--text);
  color: var(--white);
  transform: translateY(-150%);
}

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

/* Kopfzeile */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: 28px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

/* Startbereich */

.hero {
  padding-block: clamp(90px, 14vw, 165px);
}

.eyebrow,
.section-number {
  margin: 0 0 18px;
  color: var(--accent);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 30px;
  font-size: clamp(2.65rem, 7vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.4;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

/* Schaltflächen */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--text);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button-primary {
  background: var(--text);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface);
}

/* Hinweis: Website im Aufbau */

.build-note {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.build-note-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.build-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.build-note strong {
  color: var(--text);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Allgemeine Abschnitte */

.section {
  padding-block: clamp(80px, 11vw, 130px);
  border-bottom: 1px solid var(--line);
}

.split,
.contact {
  display: grid;
  grid-template-columns:
    minmax(190px, 0.75fr)
    minmax(0, 1.35fr);
  gap: clamp(50px, 10vw, 130px);
}

.prose {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.06rem;
}

.prose p:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

/* Projektbereich */

.project-section {
  background: #1b242b;
  color: #f5f3ed;
}

.project-section .section-number {
  color: #83afc1;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid #3d464c;
}

.project-state {
  margin-bottom: 5px;
  color: #b4bdc1;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-state::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #83afc1;
}

.project-intro {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: clamp(40px, 9vw, 110px);
  padding-block: 55px 70px;
}

.project-intro p {
  color: #b4bdc1;
}

.project-lead {
  color: #f5f3ed !important;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

/* Fortschritt des Sprachmodells */

.progress-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #3d464c;
}

.progress-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 30px;
  padding-block: 24px;
  border-bottom: 1px solid #3d464c;
}

.progress-list h3 {
  color: #f5f3ed;
}

.progress-list p {
  max-width: 680px;
  margin-bottom: 0;
  color: #aab4b8;
  font-size: 0.93rem;
}

.progress-label {
  margin-top: 2px;
  color: #8f999e;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-label.complete {
  color: #a7c7b3;
}

.progress-label.active {
  color: #91c2d5;
}

/* Ausblick des Projekts */

.project-outlook {
  max-width: 720px;
  margin: 75px 0 0 auto;
}

.project-outlook h3 {
  margin-bottom: 18px;
  color: #f5f3ed;
  font-size: 1.35rem;
}

.project-outlook p {
  color: #b4bdc1;
}

.release-note {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid #83afc1;
}

/* Kontakt */

.contact {
  align-items: start;
}

.contact p {
  margin-bottom: 8px;
  color: var(--muted);
}

.text-link {
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* Fusszeile */

.site-footer {
  padding-block: 22px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Impressum und Datenschutz */

.legal-page main {
  min-height: calc(100vh - 153px);
}

.legal-content {
  max-width: 760px;
  padding-block: clamp(70px, 10vw, 120px);
}

.legal-content h1 {
  margin-bottom: 48px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.legal-content h2 {
  margin: 45px 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.legal-content p {
  color: var(--muted);
}

.legal-content a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

/* Mobilansicht */

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 66px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a {
    font-size: 0.82rem;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    padding-block: 82px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .split,
  .contact,
  .project-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .progress-list li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-outlook {
    margin-top: 60px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 14px;
  }

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

/* Animationen bei entsprechender Systemeinstellung abschalten */

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

  * {
    transition: none !important;
  }
}