:root {
  --page: #f6f7f9;
  --ink: #141a22;
  --muted: #5a6470;
  --line: #d8dde3;
  --accent: #15507a;
  --scrim: linear-gradient(to top, rgb(5 9 18 / 72%), rgb(5 9 18 / 0%) 60%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d1219;
    --ink: #e9edf2;
    --muted: #9aa5b1;
    --line: #2a323c;
    --accent: #8cc1e0;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Sprachumschalter */
.lang {
  display: inline-flex;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang a {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.7;
}

.lang a:hover {
  opacity: 1;
}

.lang a[aria-current="page"] {
  opacity: 1;
  outline: 1px solid currentColor;
  outline-offset: -1px;
}

/* Startseite */
.landing {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
  padding: clamp(16px, 4vw, 48px);
  background: var(--scrim), url("img/cockpit.jpg") center / cover no-repeat #0b1422;
  color: #fff;
}

@media (max-aspect-ratio: 1 / 1) {
  .landing {
    background-position: center, 58% center;
  }
}

.landing header {
  display: flex;
  justify-content: flex-end;
}

.hero {
  align-self: end;
}

.title {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.hero h1 {
  margin: 0.25rem 0 clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.button:hover {
  background: #fff;
  color: #0b1422;
}

.legal {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.legal a {
  text-decoration: none;
  opacity: 0.85;
}

.legal a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Impressum und Datenschutz */
.doc main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 16px 3rem;
}

.doc a {
  color: var(--accent);
}

.doc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.doc-nav > a {
  text-decoration: none;
}

.doc h1,
.doc h2 {
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.doc h1 {
  margin: 2rem 0 0.25rem;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  letter-spacing: -0.025em;
}

.doc h2 {
  margin-top: 1.9rem;
  font-size: 1.15rem;
}

.doc p {
  margin-top: 0.5rem;
}
