/* ===== Marcel Henkel — Personal Site ===== */

:root {
  --bg: #0b0d12;
  --bg-elevated: #12151d;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8eaf0;
  --text-muted: #9aa1b2;
  --accent: #ffc233;
  --accent-soft: rgba(255, 194, 51, 0.14);
  --max-width: 1080px;
  --radius: 16px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Generativer Hintergrund */
#generative-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Fallback ohne JS / reduced motion: ruhiger Verlauf */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #generative-bg { display: none; }
  body {
    background:
      radial-gradient(ellipse 80% 50% at 70% -10%, rgba(255, 194, 51, 0.08), transparent),
      var(--bg);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* Layout */
main { position: relative; z-index: 1; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 1.5rem 1rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.section-num {
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 600;
  margin-right: 0.5rem;
  font-variant-numeric: tabular-nums;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(6rem, 16vh, 11rem) 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.4rem;
  background: linear-gradient(120deg, #ffffff 30%, var(--accent) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

.hero-sub strong { color: var(--text); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #14120a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 194, 51, 0.35);
}

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

.btn-ghost:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

/* Über mich */
.section-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.section-grid p + p { margin-top: 1rem; }

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.portrait {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 2px solid rgba(255, 194, 51, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.fact-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.timeline-year {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-right: 0.5rem;
}

/* Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 194, 51, 0.4);
  background: var(--accent-soft);
}

.card h3 { margin-bottom: 0.7rem; font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

.card-link h3 a { color: var(--text); text-decoration: none; }
.card-link h3 a:hover { color: var(--accent); }
.card-meta { margin-top: 1rem; font-size: 0.85rem; color: var(--accent); }

/* Themen */
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.topic {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.4rem;
}

.topic h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.topic p { color: var(--text-muted); font-size: 0.98rem; }

/* FAQ */
.faq-list { display: grid; gap: 0.9rem; max-width: 760px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style-position: outside;
}

.faq-item summary:hover { color: var(--accent); }

.faq-item[open] { border-color: rgba(255, 194, 51, 0.4); }

.faq-item p {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

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

/* Kontakt & Footer */
.section-contact { padding-bottom: 5rem; }
.section-contact p { max-width: 560px; margin-bottom: 1.4rem; color: var(--text-muted); }

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Blog / Artikel */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.article h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.article-meta {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.article h2 { font-size: 1.5rem; margin: 2.4rem 0 0.9rem; }
.article p + p { margin-top: 1rem; }
.article p, .article li { color: var(--text-muted); font-size: 1.05rem; }
.article strong { color: var(--text); }
.article ul, .article ol { padding-left: 1.4rem; margin: 1rem 0; }
.article a { color: var(--accent); }

.post-list { list-style: none; display: grid; gap: 1.4rem; }

/* Responsive */
@media (max-width: 820px) {
  .section-grid, .topics { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; font-size: 0.9rem; }
  .nav-links li:nth-child(n+4) { display: none; }
}
