:root {
  --bg: #07111f;
  --bg-soft: #0d1a2d;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f9ff;
  --muted: #b8c3d8;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #6aa7ff;
  --accent-2: #8be8c9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(106, 167, 255, 0.26), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(139, 232, 201, 0.16), transparent 28rem),
    linear-gradient(180deg, #07111f 0%, #0a1424 44%, #07111f 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.22);
}

.brand { font-weight: 800; letter-spacing: -0.03em; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: 180ms ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.nav-toggle { display: none; }

.section-pad {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
}

.eyebrow, .section-title span, .contact-card span {
  display: inline-flex;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 14px;
  font-size: clamp(3.6rem, 9vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}
h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}
h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.lead { font-size: clamp(1.25rem, 2vw, 1.8rem); color: #dce7ff; font-weight: 700; }
.intro { max-width: 680px; color: var(--muted); font-size: 1.05rem; }

.pill-row, .mini-tags, .hero-actions, .contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-row { margin: 28px 0 26px; }
.pill-row span, .mini-tags span, .chip-cloud span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 9px 13px;
  color: #eef5ff;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 180ms ease;
}
.btn.primary { background: #f6f9ff; color: #07111f; }
.btn.secondary, .btn.small { border-color: var(--line); background: rgba(255,255,255,.07); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.btn.small { padding: 9px 13px; font-size: .9rem; }

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  padding: 16px;
  box-shadow: var(--shadow);
}
.photo-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: #dce7ff;
}
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.facts div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  padding: 14px;
}
.facts span { display: block; color: var(--muted); font-size: .78rem; }
.facts strong { display: block; margin-top: 4px; font-size: .92rem; line-height: 1.25; }

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}
.section-title { position: sticky; top: 110px; }
.section-title p { color: var(--muted); max-width: 480px; }
.content-card, .contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 16px 60px rgba(0,0,0,.18);
}
.content-card p { color: var(--muted); }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.clean-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.clean-list li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.clean-list span { color: var(--muted); }

.timeline { position: relative; display: grid; gap: 18px; max-width: 860px; margin-left: auto; }
.timeline article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.075);
  padding: 24px 24px 24px 30px;
}
.timeline article::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px rgba(106,167,255,.12);
}
time { color: var(--accent-2); font-weight: 800; }
.timeline p { color: var(--muted); margin-bottom: 0; }

.documents-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: stretch;
}
.doc-list { display: grid; gap: 10px; }
.doc-item {
  width: 100%;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.065);
  padding: 16px;
  cursor: pointer;
  transition: 180ms ease;
  font: inherit;
}
.doc-item span { display: inline-flex; font-size: .72rem; font-weight: 800; color: var(--accent-2); letter-spacing: .08em; }
.doc-item strong { display: block; margin: 3px 0; }
.doc-item small { color: var(--muted); }
.doc-item:hover, .doc-item.active { background: var(--card-strong); transform: translateY(-1px); border-color: rgba(139,232,201,.45); }

.pdf-panel {
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
}
.pdf-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.pdf-panel-head h3 { margin: 0; }
iframe { display: block; width: 100%; height: 596px; border: 0; background: #fff; }

.contact-card { text-align: center; max-width: 860px; margin: 0 auto; }
.contact-card p { color: var(--muted); }
.contact-links { justify-content: center; margin-top: 22px; }
.contact-links a, .contact-links span { border: 1px solid var(--line); border-radius: 999px; padding: 12px 15px; background: rgba(255,255,255,.07); }
footer { color: var(--muted); text-align: center; padding: 30px 16px 56px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.07); color: var(--text); font-size: 1.2rem; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 24px; background: rgba(7, 17, 31, .96); }
  .nav.open { display: flex; }
  .hero, .split-section, .documents-layout { grid-template-columns: 1fr; }
  .section-title { position: static; }
  .skills-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .section-pad { padding: 68px 0; }
}

@media (max-width: 580px) {
  .site-header { width: min(100% - 20px, var(--max)); }
  .section-pad { width: min(100% - 20px, var(--max)); }
  h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .pdf-panel { min-height: 520px; }
  iframe { height: 456px; }
  .pdf-panel-head { align-items: flex-start; flex-direction: column; }
}

/* Layout-Fix: Überschriften in einspaltigen Sektionen dürfen nicht sticky über die Karten laufen */
.skills-section .section-title,
.timeline-section .section-title,
.documents-section .section-title {
  position: static;
  top: auto;
  margin-bottom: 38px;
}

.skills-section .section-title h2,
.timeline-section .section-title h2,
.documents-section .section-title h2 {
  max-width: 820px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.skills-section .section-title p,
.timeline-section .section-title p,
.documents-section .section-title p {
  max-width: 680px;
}

.skills-grid {
  clear: both;
  align-items: stretch;
}

.skills-grid .content-card {
  min-width: 0;
}

.chip-cloud span,
.pill-row span,
.mini-tags span {
  white-space: normal;
}

@media (min-width: 921px) {
  .skills-section,
  .timeline-section,
  .documents-section {
    padding-top: 110px;
  }

  .timeline-section .timeline {
    margin-left: 0;
  }
}

@media (max-width: 1100px) and (min-width: 921px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid article:last-child {
    grid-column: 1 / -1;
  }
}

.automation-box {
  margin: 28px auto 0;
  max-width: 760px;
  border: 1px solid rgba(139, 232, 201, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(139, 232, 201, 0.12), rgba(106, 167, 255, 0.10));
  padding: 22px;
  text-align: left;
}
.automation-box strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.automation-box p {
  margin-bottom: 0;
}
.automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.copy-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--accent-2) !important;
  font-weight: 700;
  font-size: 0.92rem;
}
button.btn {
  font: inherit;
  cursor: pointer;
}


/* Einheitliche Buttons im Automatisierungsbereich */
.automation-actions .btn.primary,
.automation-actions .btn.secondary,
.automation-actions .linkedin-btn {
  background: #f6f9ff;
  color: #07111f;
  border-color: rgba(246, 249, 255, 0.72);
}

.automation-actions .btn.secondary:hover,
.automation-actions .linkedin-btn:hover {
  background: #ffffff;
}
