:root {
  --void: #05070a;
  --ink: #0a1016;
  --panel: #111a23;
  --line: rgba(154, 186, 208, 0.16);
  --text: #edf3f8;
  --muted: #93a4b5;
  --teal: #6ee7d8;
  --gold: #f0c674;
  --sky: #7eb8ff;
  --paper: #efe8dc;
  --paper-ink: #14181f;
  --paper-muted: #5b6570;
  --radius: 22px;
  --nav-h: 76px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(110, 231, 216, 0.09), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(240, 198, 116, 0.06), transparent 50%),
    var(--void);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color-scheme: dark;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: #14120c;
  border-radius: 999px;
}

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

.wrap {
  width: min(1160px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 12;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 10, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(5, 7, 10, 0.86);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1160px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links,
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  position: relative;
}

.nav-links a.is-active,
.nav-links a:hover,
.nav-mobile a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #17150f;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-dark {
  background: var(--paper-ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-mobile {
  display: none;
}

.nav-mobile a {
  color: var(--muted);
  padding: 0.45rem 0;
  font-size: 1.05rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 3.5rem 0 4.5rem;
}

#flight-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 8.4rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.lede {
  max-width: 42rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.18rem;
  color: #c5d2de;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.5rem;
}

.meta-card,
.panel,
.skill,
.work-card,
.step,
.contact-card,
.legal-card {
  background: rgba(17, 26, 35, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meta-card {
  padding: 1.15rem 1.2rem;
}

.meta-card small,
.eyebrow,
.clock,
.legal-card dt {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.meta-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.section {
  padding: 6.5rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.6rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.about {
  background: var(--paper);
  color: var(--paper-ink);
}

.about .eyebrow,
.about .clock {
  color: #8a6a2d;
}

.about .section-head p,
.about p {
  color: var(--paper-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
}

.theme-panel p {
  color: var(--muted);
}

.theme-panel .eyebrow {
  margin-bottom: 0.55rem;
}

#schwerpunkte .about-grid {
  grid-template-columns: 1fr 1fr;
}

.panel {
  padding: 1.6rem;
}

.about .panel {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(20, 24, 31, 0.08);
}

.about h3,
.work-card h3,
.skill h3,
.step h3,
.connect-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

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

.fact {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(20, 24, 31, 0.1);
}

.fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact b {
  display: block;
  font-family: var(--font-display);
}

.skills-grid,
.work-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill,
.work-card {
  padding: 1.4rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.skill:hover,
.work-card:hover,
.step:hover,
.course:hover {
  border-color: rgba(110, 231, 216, 0.38);
  transform: translateY(-2px);
}

.skill p,
.work-card p,
.step p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  color: var(--teal);
}

.timeline {
  display: grid;
  gap: 0.7rem;
  position: relative;
}

.step {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.28rem;
  align-items: baseline;
  margin: 0;
  padding: 0.7rem 1rem;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.step::before {
  display: none;
}

.when {
  position: static;
  width: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--gold);
}

.step h3 {
  margin: 0;
  min-width: 0;
  width: 100%;
  font-size: 1.14rem;
  line-height: 1.3;
}

.step-body,
.step-body p {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.step ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.work-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.course-groups {
  display: grid;
  gap: 1.8rem;
}

.course-group h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.course-list {
  display: grid;
  gap: 0.65rem;
}

.course {
  display: grid;
  grid-template-columns: 6.8rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.2rem;
  align-items: baseline;
  padding: 0.7rem 1rem;
  background: rgba(17, 26, 35, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.course-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.course > div {
  min-width: 0;
  width: 100%;
}

.course a,
.course strong {
  color: var(--text);
  font-weight: 600;
}

.course a:hover {
  color: var(--teal);
}

.course p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.work-card.featured {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(110, 231, 216, 0.08), transparent 42%),
    rgba(17, 26, 35, 0.82);
  min-height: 100%;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.contact {
  padding-bottom: 4rem;
}

.connect-card {
  max-width: 640px;
  padding: 1.7rem;
  background: rgba(17, 26, 35, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.connect-card p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.45);
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  outline: none;
}

input:focus,
textarea:focus,
.btn:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(110, 231, 216, 0.28);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.3rem;
}

.contact-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list a {
  color: var(--teal);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.legal {
  padding: 4.5rem 0 6rem;
}

.legal-card {
  padding: 1.6rem;
}

.legal-card h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.legal-card h2 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.35rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card a,
.contact-list a:hover,
.footer a:hover {
  color: var(--teal);
}

.legal-card dl {
  display: grid;
  gap: 0.8rem;
}

.legal-card dd {
  margin: 0.15rem 0 0;
}

.legal-card dd small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-mobile {
    display: grid;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(5, 7, 10, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem 1.3rem;
    gap: 0.9rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 11;
  }

  .nav-mobile.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .section-head,
  .about-grid,
  .skills-grid,
  .work-grid,
  .contact-grid,
  .hero-meta,
  .course {
    grid-template-columns: 1fr;
  }

  .timeline::before,
  .step::before {
    display: none;
  }

  .step {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .work-card.featured {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 2.2rem;
  }

  .lede {
    font-size: 1.05rem;
  }

  .section {
    padding: 4.2rem 0;
  }

  [data-clock] {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .skill:hover,
  .work-card:hover,
  .step:hover,
  .btn:hover {
    transform: none;
  }
}
