:root {
  --bg: #0e1014;
  --bg-soft: #161a21;
  --bg-card: #1c2129;
  --fg: #e8e5df;
  --fg-muted: #a39e93;
  --fg-dim: #6b6961;
  --accent: #c8924c;
  --accent-strong: #e0a55c;
  --accent-soft: rgba(200, 146, 76, 0.12);
  --border: rgba(232, 229, 223, 0.08);
  --border-strong: rgba(232, 229, 223, 0.18);
}

[data-theme="steel"] {
  --bg: #0a1220;
  --bg-soft: #111c2e;
  --bg-card: #16243a;
  --fg: #e8edf5;
  --fg-muted: #9aa8bd;
  --fg-dim: #5e6a7e;
  --accent: #8aa4c4;
  --accent-strong: #b3c5dd;
  --accent-soft: rgba(138, 164, 196, 0.14);
  --border: rgba(232, 237, 245, 0.08);
  --border-strong: rgba(232, 237, 245, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 16, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="steel"] header { background: rgba(10, 18, 32, 0.85); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Mobile header */
@media (max-width: 760px) {
  .nav { padding: 0.7rem 0; gap: 0.75rem; min-width: 0; }
  .brand {
    font-size: 0.98rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
  }
  .nav-links { gap: 0; flex-shrink: 0; }
  .nav-links li:not(:last-child) { display: none; }
  .theme-toggle {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
  .theme-toggle .dot { width: 0.5rem; height: 0.5rem; }
}

/* Hero */
.hero {
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--fg-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat-num {
  font-family: 'Source Serif 4', serif;
  font-size: 3rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { color: var(--fg-muted); font-size: 0.95rem; }

/* Sections */
section { padding: 6rem 0; }
.section-head {
  max-width: 36rem;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}
.section-head p { color: var(--fg-muted); font-size: 1.05rem; }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--fg-muted); font-size: 0.95rem; }

/* Method (6 Gedanken) */
.method {
  background: var(--bg-soft);
}
.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) { .method-list { grid-template-columns: 1fr; } }
.method-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 6px 6px 0;
}
.method-num {
  font-family: 'Source Serif 4', serif;
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}
.method-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.method-item p { color: var(--fg-muted); font-size: 0.92rem; line-height: 1.55; }

/* ViaGuardium block */
.viaguardium {
  position: relative;
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 760px) { .viaguardium { grid-template-columns: 1fr; padding: 2rem; } }
.viaguardium .tag {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.viaguardium h3 { font-size: 1.7rem; margin-bottom: 1rem; }
.viaguardium p { color: var(--fg-muted); margin-bottom: 1.5rem; }
.viaguardium .badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.badge {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-muted);
}

/* Reference list */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.ref-item {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--fg-muted);
  transition: border-color 0.2s, color 0.2s;
}
.ref-item:hover { border-color: var(--accent); color: var(--fg); }

/* Vita */
.vita-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 860px) { .vita-grid { grid-template-columns: 1fr; } }
.vita-portrait {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vita-text p { margin-bottom: 1.25rem; color: var(--fg-muted); }
.vita-text p:first-of-type { color: var(--fg); font-size: 1.1rem; }
.vita-text .signature {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 1rem;
}

/* Lectures + Publications */
details {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
details summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
}
details summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}
details[open] summary::after { content: '−'; }
details .body {
  padding: 1.5rem;
  background: var(--bg-soft);
  font-size: 0.92rem;
}
.entry-list { list-style: none; }
.entry-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
}
.entry-list li:last-child { border-bottom: none; }
.entry-list .title { color: var(--fg); display: block; margin-bottom: 0.2rem; }
.entry-list .meta { font-size: 0.85rem; color: var(--fg-dim); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dl { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem 1.5rem; }
.contact-info dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 0.15rem;
}
.contact-info dd { color: var(--fg); }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

form { display: grid; gap: 1rem; }
form label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 0.4rem;
}
form input, form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}
form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
form textarea { min-height: 120px; resize: vertical; }

/* Footer */
footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
footer h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.5rem; }
footer a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.92rem;
}
footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--fg-dim);
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 0.5rem; } }

/* Subtle reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
