/* =========================================================
   Manuel Andreas Kuhn — manuelandreaskuhn.de
   ========================================================= */

:root {
  color-scheme: light dark;

  --brand-900: #12275e;
  --brand-700: #1e3a8a;
  --brand-500: #2563eb;
  --brand-300: #6daded;
  --accent: #0ea5a4;

  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --border: #e3e7f0;
  --text: #1c2434;
  --text-muted: #5a6478;
  --link: #1d4ed8;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, .18);

  --radius: 14px;
  --radius-sm: 9px;

  --measure: 68ch;
  --wrap: 1080px;
  --nav-h: 60px;

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-elevated: #131c2e;
    --border: #24304a;
    --text: #e6ebf5;
    --text-muted: #a2adc2;
    --link: #8ab4ff;
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, .97rem + .18vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 1100;
  background: var(--bg-elevated);
  padding: .6rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1000px 420px at 15% -10%, rgba(255, 255, 255, .20), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(14, 165, 164, .35), transparent 60%),
    linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 45%, var(--brand-500) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.25rem clamp(3rem, 7vw, 5rem);
}

.hero__eyebrow {
  margin: 0 0 .85rem;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.hero__name {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.hero__role {
  margin: .6rem 0 1.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: rgba(255, 255, 255, .92);
}

.hero__claim {
  color: rgba(255, 255, 255, .82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
}

.hero__dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .22);
}

.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

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

.btn--primary {
  background: #fff;
  color: var(--brand-900);
}

.btn--primary:hover {
  background: rgba(255, 255, 255, .9);
}

.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  min-height: var(--nav-h);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__brand {
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--text);
}

.nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav__list a {
  display: block;
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  transition: color .2s ease, background-color .2s ease;
}

.nav__list a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--brand-500) 10%, transparent);
}

.nav__list a[aria-current="true"] {
  color: var(--brand-500);
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.nav__burger,
.nav__burger::before,
.nav__burger::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav__burger {
  position: relative;
}

.nav__burger::before,
.nav__burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__burger::before {
  top: -6px;
}

.nav__burger::after {
  top: 6px;
}

.nav__toggle[aria-expanded="true"] .nav__burger {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__burger::before {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__burger::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: .5rem 0 .75rem;
    border-top: 1px solid var(--border);
  }

  .nav__inner {
    flex-wrap: wrap;
    padding-block: .6rem;
  }

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

  .nav__list a {
    padding: .7rem .5rem;
    border-radius: var(--radius-sm);
  }
}

/* ---------- Layout ---------- */

main {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 1.25rem;
}

.section {
  margin: clamp(3rem, 7vw, 5rem) 0;
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  letter-spacing: -.015em;
  margin-bottom: 1.75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

.section__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-bottom: -.75rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-300));
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}

.prose {
  text-emphasis: none;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card--topic {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card--topic h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.card--topic p {
  color: var(--text-muted);
  font-size: .96rem;
}

.card--topic:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border));
  box-shadow: var(--shadow-md);
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 0 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-500), color-mix(in srgb, var(--brand-300) 40%, transparent));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 1.9rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--brand-500);
}

/* Aktuelle Station hervorheben. */
.timeline__item--current::before {
  background: var(--brand-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent);
}

.timeline__item--current {
  border-color: color-mix(in srgb, var(--brand-500) 35%, var(--border));
}

.timeline__period {
  margin: 0 0 .35rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.timeline__role {
  font-size: 1.18rem;
}

.timeline__org {
  margin: .2rem 0 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline__item ul {
  margin: 0 0 0 1.1rem;
  padding: 0;
}

.timeline__item>ul li {
  margin-bottom: .3rem;
}

.timeline__item ul ul {
  margin-top: .3rem;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ---------- Tags ---------- */

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.25rem 0 0 !important;
  padding: 0;
}

.tag {
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--brand-500) 85%, var(--text));
  background: color-mix(in srgb, var(--brand-500) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 22%, transparent);
}

/* ---------- Kontakt ---------- */

.card--contact h3 {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.card--contact p {
  font-size: 1.02rem;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--text-muted);
}

.footer__inner nav {
  display: flex;
  gap: 1.25rem;
}

.footer__inner a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer__inner a:hover {
  color: var(--link);
  text-decoration: underline;
}

/* ---------- Rechtstexte / einfache Seiten ---------- */

.page-header {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff;
}

.page-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 2.75rem 1.25rem 2.25rem;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-header a {
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  text-decoration: none;
}

.page-header a:hover {
  color: #fff;
  text-decoration: underline;
}

.legal {
  max-width: var(--measure);
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 .6rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 .4rem;
}

.legal .note {
  border-left: 3px solid var(--accent);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: .93rem;
  color: var(--text-muted);
}

/* ---------- Motion / Print ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {

  .nav,
  .hero__actions,
  .skip-link,
  .hero::after {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero {
    background: none !important;
    color: #000;
  }

  .hero__eyebrow,
  .hero__role,
  .hero__claim {
    color: #333 !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .section {
    margin: 1.5rem 0;
  }

  .tag {
    border: 1px solid #999;
    color: #333;
    background: none;
  }
}