/* ==========================================================================
   David Biebert — Persönliche Website
   Design-System: seriös-modern, Dunkelblau/Weiß mit Messing-Akzent
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17222e;
  --muted: #5c6b7a;
  --navy: #10304e;
  --navy-deep: #0a2033;

  /* Aktive Akzentpalette: Mattes Metallic (warmes Graphit-Zinn) */
  --accent: #6f6759;
  --accent-soft: #a59c8c;
  --accent-rgb: 111, 103, 89;
  --accent-soft-rgb: 165, 156, 140;

  /* Alternative Akzentpalette: Gold (Original bis Juli 2026).
     Zum Zurückwechseln die vier Werte oben durch diese ersetzen:
     --accent: #a9822f;
     --accent-soft: #c9a35f;
     --accent-rgb: 169, 130, 47;
     --accent-soft-rgb: 201, 163, 95;
  */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --line: #e3e9ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 48, 78, 0.08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy);
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand .monogram {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 520;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--accent-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sprachumschalter */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-soft);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 640;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.nav-burger {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  place-items: center;
}

.nav-burger svg {
  width: 20px;
  height: 20px;
  stroke: var(--navy);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 88% -10%, rgba(16, 48, 78, 0.07), transparent 65%),
    radial-gradient(520px 360px at -8% 110%, rgba(var(--accent-rgb), 0.07), transparent 60%),
    var(--bg);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-block: clamp(64px, 11vw, 128px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 680;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 640;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 48, 78, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(16, 48, 78, 0.3);
}

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

.btn-outline:hover {
  background: rgba(16, 48, 78, 0.06);
}

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fact-chips li {
  font-size: 13.5px;
  font-weight: 570;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 2px 8px rgba(16, 48, 78, 0.05);
}

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

.hero-portrait img {
  width: clamp(230px, 30vw, 330px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #fff, 0 0 0 8px var(--line), 0 24px 50px rgba(16, 48, 78, 0.18);
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -22px -22px auto auto;
  width: 92px;
  height: 92px;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  opacity: 0.55;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: -26px;
  width: 56px;
  height: 56px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 70%);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Sektionen allgemein
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(64px, 9vw, 108px);
}

.section.soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  letter-spacing: -0.015em;
  color: var(--navy);
  font-weight: 740;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.about-text p {
  margin: 0 0 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text .interests {
  color: var(--muted);
  font-size: 15px;
}

.glance-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 20px;
  box-shadow: var(--shadow);
}

.glance-card h3 {
  margin: 0 0 16px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 680;
}

.glance-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glance-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.glance-card li:first-child {
  border-top: 0;
}

.glance-card li svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  stroke: var(--navy);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glance-card li strong {
  font-weight: 640;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Werdegang / Timeline
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--line), var(--line));
}

.timeline > li {
  position: relative;
  padding: 0 0 34px 42px;
}

.timeline > li:last-child {
  padding-bottom: 0;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--navy);
}

.timeline > li.current::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.15);
}

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tl-date {
  font-size: 13.5px;
  font-weight: 620;
  color: var(--muted);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.tl-badge {
  font-size: 11.5px;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--navy);
  background: rgba(16, 48, 78, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
}

.timeline h3 {
  margin: 0 0 2px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.tl-org {
  font-size: 15px;
  font-weight: 560;
  color: var(--ink);
  margin: 0 0 8px;
}

.tl-org span {
  color: var(--muted);
  font-weight: 440;
}

.timeline p.tl-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15.2px;
  max-width: 46em;
}

.tl-awards {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-awards li {
  font-size: 13px;
  font-weight: 560;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.10);
  border-radius: 999px;
  padding: 4px 12px;
}

/* --------------------------------------------------------------------------
   Kompetenzen
   -------------------------------------------------------------------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.skill-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.skill-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 48, 78, 0.07);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.skill-card .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--navy);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
}

.skill-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-card li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15px;
  color: var(--ink);
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-soft);
  transform: rotate(45deg);
}

.skill-card li span.lvl {
  color: var(--muted);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact {
  background:
    radial-gradient(640px 320px at 12% 0%, rgba(var(--accent-soft-rgb), 0.12), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
}

.contact .section-head {
  margin-inline: auto;
}

.contact h2 {
  color: #fff;
}

.contact .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.contact .cta-row {
  justify-content: center;
  margin-bottom: 0;
}

.contact .btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.contact .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
}

.footer-updated {
  opacity: 0.6;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Rechtsseite (Datenschutz)
   -------------------------------------------------------------------------- */

.back-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 560;
  padding: 8px 0;
}

.back-nav a:hover {
  text-decoration: underline;
}

.legal-main {
  padding-block: clamp(48px, 7vw, 80px);
}

.legal-main .wrap {
  max-width: 760px;
}

.legal-main h1 {
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-main h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 34px 0 8px;
}

.legal-main p,
.legal-main li {
  color: var(--ink);
  font-size: 15.5px;
}

.legal-note {
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: clamp(48px, 9vw, 80px);
  }

  .hero-portrait {
    order: -1;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .cta-row,
  .fact-chips {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16, 48, 78, 0.12);
    padding: 8px 0;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px clamp(20px, 5vw, 40px);
    border-bottom: 0;
    font-size: 16px;
  }

  .nav-burger {
    display: grid;
  }
}
