/* ===== Grundlagen & Variablen ===== */
:root {
  --navy: #1F3A5F;
  --navy-dark: #142942;
  --blue: #3E6FA6;
  --blue-light: #F0F5FA;
  --text: #1c2530;
  --text-muted: #5a6472;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(31, 58, 95, 0.08);
  --radius: 10px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.section-head { margin-bottom: 8px; }

.bg-tint { background: var(--blue-light); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 58, 95, 0.25);
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--white) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(62, 111, 166, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
}

.hero-fact { }
.hero-fact strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 800;
}
.hero-fact span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-photo-wrap {
  position: relative;
  justify-self: center;
}

.hero-photo {
  width: 320px;
  height: 320px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(31, 58, 95, 0.25);
  border: 6px solid var(--white);
}

.hero-photo-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-photo-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

/* ===== Facts / Über mich ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.fact-card .fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.fact-card .fact-value {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== Kompetenzen ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(31, 58, 95, 0.14);
}

.skill-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
}
.skill-icon svg { width: 24px; height: 24px; }

.skill-card h3 {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 700;
}

.soft-skills {
  background: var(--navy);
  border-radius: 16px;
  padding: 40px;
  color: var(--white);
}

.soft-skills h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.soft-skills ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.soft-skills li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
}

.soft-skills li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #7fb3e6;
  margin-top: 2px;
}

/* ===== Zertifizierungen ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.cert-item .cert-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-item .cert-icon svg { width: 18px; height: 18px; }

.cert-item span { font-weight: 600; color: var(--navy); font-size: 0.98rem; }

/* ===== Timeline / Projekte ===== */
.timeline { position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 42px;
  margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
}

.timeline-item.current::before {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(62, 111, 166, 0.18);
}

.timeline-period {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.timeline-item h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-item ul {
  list-style: none;
  margin-bottom: 14px;
}

.timeline-item ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.timeline-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--blue-light);
  border: 1px solid rgba(62, 111, 166, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

.timeline-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 40px;
  padding-left: 0;
}
.timeline-divider::before,
.timeline-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.timeline-divider span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== Kontakt ===== */
.contact-section { background: var(--navy); color: var(--white); }
.contact-section .section-title { color: var(--white); }
.contact-section .section-intro { color: rgba(255,255,255,0.75); }
.contact-section .section-label { color: #7fb3e6; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); text-decoration: none; }

.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(127, 179, 230, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fb3e6;
}
.contact-card .contact-icon svg { width: 22px; height: 22px; }

.contact-card .contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.contact-card .contact-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 32px 0;
  font-size: 0.88rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--white); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Legal pages ===== */
.legal-page {
  padding: 64px 0 96px;
  max-width: 780px;
}
.legal-page h1 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 32px;
}
.legal-page h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 32px 0 12px;
}
.legal-page p, .legal-page li { color: var(--text-muted); margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page a { color: var(--blue); }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrap { order: -1; }
  .hero-photo { width: 220px; height: 220px; margin: 0 auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-text { margin-left: auto; margin-right: auto; }

  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .soft-skills ul { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: repeat(3, auto); gap: 18px; }
}
