/* Marcel Decker — personal site
   Palette: #000323 (primary), #a6ddff (accent), #FFFFFF. Type: Montserrat. */

/* ---------- self-hosted fonts (no external requests) ---------- */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #000323;
  --navy-soft: #0a0e33;
  --accent: #a6ddff;
  --white: #ffffff;

  --ink: #000323;
  --ink-70: rgba(0, 3, 35, 0.72);
  --ink-55: rgba(0, 3, 35, 0.55);
  --line: rgba(0, 3, 35, 0.10);
  --soft: #f4f8fc;

  --container: 68rem;
  --radius: 16px;
  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 46rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--navy);
  padding: 0.75rem 1rem; font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 3, 35, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(166, 221, 255, 0.16);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4rem;
}
.brand {
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--white); text-decoration: none;
  margin-right: auto;
}
.site-nav { display: none; gap: 1.75rem; }
.site-nav a {
  color: rgba(255, 255, 255, 0.72); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--accent); }
@media (min-width: 52rem) { .site-nav { display: flex; } }

/* Für Seiten ohne Anker-Navigation (z. B. Impressum, Datenschutz): der Link
   "Zur Startseite" soll auch unterhalb von 52rem sichtbar bleiben. Zusätzlich
   zu "site-nav" auf das <nav>-Element setzen: class="site-nav site-nav--always" */
.site-nav--always { display: flex; }

.lang-switch { display: flex; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.35); }
.lang-switch button {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5); padding: 0.25rem 0.15rem;
  transition: color 0.2s ease;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button[aria-pressed="true"] { color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(52rem 30rem at 12% -10%, rgba(166, 221, 255, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: clamp(4.5rem, 12vw, 8.5rem) 1.5rem clamp(4rem, 10vw, 7rem);
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
/* Two columns only once a portrait actually exists (see main.js). */
@media (min-width: 58rem) {
  body.has-portrait .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* ---------- optional images ---------- */

.hero-figure { display: none; margin: 0; }
body.has-portrait .hero-figure { display: block; }
.hero-figure img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(166, 221, 255, 0.18);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.75);
}

.media { display: none; margin: 3rem 0 0; }
body.has-kenergy .media { display: block; }
.media img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 26px 55px -34px rgba(0, 3, 35, 0.5);
}
.media figcaption { font-size: 0.8125rem; color: var(--ink-55); margin-top: 0.85rem; }

/* ---------- affiliation logos ---------- */

.logos { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--white); border-top: 1px solid var(--line); }
.logos .eyebrow { margin-bottom: 1.75rem; color: rgba(0, 3, 35, 0.45); }
.logo-items { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3.5rem; }
.logo-items a { display: inline-flex; align-items: center; }
.logo-items img {
  height: 2.1rem; width: auto;
  opacity: 0.8; transition: opacity 0.2s ease;
}
.logo-items a:hover img { opacity: 1; }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.25rem;
}
.section .eyebrow { color: rgba(0, 3, 35, 0.45); }

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 500; line-height: 1.5;
  max-width: 34em; color: rgba(255, 255, 255, 0.94);
  margin-bottom: 1.5rem;
}
.hero-roles {
  max-width: 40em; color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem; line-height: 1.8;
}
.hero-roles strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { border-color: rgba(0, 3, 35, 0.2); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- sections ---------- */

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-soft { background: var(--soft); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: ""; display: block; width: 2.5rem; height: 3px;
  background: var(--accent); margin-top: 1.25rem;
}
.section-lead { font-size: 1.0625rem; color: var(--ink-70); max-width: 44em; }
.muted { color: var(--ink-55); font-size: 0.9375rem; }

/* ---------- cards ---------- */

.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 3, 35, 0.18);
  box-shadow: 0 18px 40px -28px rgba(0, 3, 35, 0.45);
}
.card h3 { font-size: 1.0625rem; margin-bottom: 0.85rem; }
.card p { color: var(--ink-70); font-size: 0.9375rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* ---------- stats ---------- */

.stats {
  list-style: none; margin: 2.75rem 0 2rem; padding: 0;
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats li { border-top: 2px solid var(--navy); padding-top: 1rem; }
.stat-num {
  display: block; font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
}
.stat-label {
  display: block; margin-top: 0.35rem;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-55);
}

/* ---------- quote ---------- */

.quote {
  margin: 2.5rem 0; padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--accent);
}
.quote p { font-size: 1.125rem; font-weight: 500; font-style: italic; margin-bottom: 0.5rem; }
.quote cite {
  font-style: normal; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-55);
}

/* ---------- timeline ---------- */

.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 2.5rem 2rem;
  border-left: 1px solid rgba(0, 3, 35, 0.14);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 0.55rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--navy); box-shadow: 0 0 0 4px var(--soft);
}
.timeline .year {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-55); margin-bottom: 0.4rem;
}
.timeline h3 { font-size: 1.0625rem; margin-bottom: 0.6rem; }
.timeline p { color: var(--ink-70); font-size: 0.9375rem; margin: 0; }

/* ---------- contact ---------- */

.contact { background: var(--navy); color: var(--white); }
.contact .section-title { color: var(--white); }
.contact-lead { color: rgba(255, 255, 255, 0.72); max-width: 40em; }

.link-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.link-list li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.link-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.link-list a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem;
  padding: 1.35rem 0.25rem; text-decoration: none;
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.link-list a:hover { padding-left: 0.85rem; color: var(--accent); }
.link-label { font-size: 1.125rem; font-weight: 600; }
.link-meta { font-size: 0.875rem; color: rgba(255, 255, 255, 0.52); margin-left: auto; }
.link-list a:hover .link-meta { color: rgba(166, 221, 255, 0.75); }
@media (prefers-reduced-motion: reduce) { .link-list a:hover { padding-left: 0.25rem; } }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-soft); color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem; padding: 2rem 0;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- legal pages (Impressum, Datenschutz) ---------- */

.legal h1.section-title + h2,
.legal > h2:first-child { margin-top: 0; }

.legal h2 {
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  font-size: 0.9375rem;
  color: var(--ink-70);
  line-height: 1.7;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal li { margin-bottom: 0.5rem; }
.legal li:last-child { margin-bottom: 0; }

.legal address {
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 3, 35, 0.35);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal a:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

.stand {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-55);
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
