/* =========================================================================
   Leonard Jasari — Karriere-Website
   Designsystem: Dunkelblau / Weiss / helles Grau / dezentes Akzentblau
   Typografie: Fraunces (Display) + Inter (Fliesstext/Utility)
   ========================================================================= */

/* ---- Design Tokens ---------------------------------------------------- */
:root {
  /* Farben */
  --navy-900: #0f1f3d;
  --navy-800: #16284a;
  --navy-700: #1f3a63;
  --accent:   #2f5fa0;   /* dezentes Akzentblau */
  --accent-soft: #e8eef7;
  --ink:      #1d2433;   /* Fliesstext */
  --muted:    #5a6478;   /* Sekundaertext */
  --line:     #dfe4ed;   /* feine Linien */
  --grey-50:  #f6f8fb;   /* helles Grau (Sektionen) */
  --grey-100: #eef1f6;
  --white:    #ffffff;

  /* Typografie */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(15, 31, 61, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(15, 31, 61, 0.30);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* Platz fuer fixierte Navigation */
  -webkit-text-size-adjust: 100%;
}

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

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

a { color: var(--accent); text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* Akzentlinie unter Titeln */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.eyebrow--light { color: #8fb0de; }

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy-800);
  font-weight: 600;
}
.nav__monogram {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav__name { font-size: 0.98rem; letter-spacing: 0.01em; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__menu a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav__menu a:hover { color: var(--navy-800); }

.nav__cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--white) !important;
  border: 1px solid var(--navy-800);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav__cta:hover { background: var(--navy-700); transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(47, 95, 160, 0.10), transparent 60%),
    linear-gradient(180deg, var(--grey-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__eyebrow {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.7rem, 6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin-bottom: 0.7rem;
}

.hero__role {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--navy-700);
  margin: 0 0 1.1rem;
}

.hero__claim {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.6rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.2rem, 4vw, 2.6rem);
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.1;
}
.hero__facts span {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
  max-width: 24ch;
}

/* Foto */
.hero__photo-wrap {
  position: relative;
  justify-self: center;
  width: min(330px, 80vw);
}
.hero__photo {
  margin: 0;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--grey-100);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  aspect-ratio: 1 / 1;
}
.hero__photo::after {
  /* dezenter Rahmenakzent */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(15, 31, 61, 0.06);
  pointer-events: none;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__photo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.97rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn--primary {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--navy-800);
  background: var(--white);
  transform: translateY(-2px);
}

/* =========================================================================
   SECTIONS (generisch)
   ========================================================================= */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--grey-50); border-block: 1px solid var(--line); }
.section__narrow { max-width: 760px; }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin-bottom: 1.4rem;
}
.section__lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
  margin: -0.4rem 0 2.4rem;
}

/* Fliesstext "Ueber mich" */
.prose p {
  margin: 0 0 1.2rem;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}
.prose p:last-child { margin-bottom: 0; }

/* =========================================================================
   SCHWERPUNKTE — Cards
   ========================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  margin-top: 0.6rem;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cdd6e6;
}
.card__index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.card__title {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.6rem;
  letter-spacing: -0.005em;
}
.card__text {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================================
   ERFAHRUNG — Timeline
   ========================================================================= */
.timeline {
  position: relative;
  margin-top: 0.8rem;
  padding-left: 0;
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.8rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.timeline__item:first-child { border-top: none; padding-top: 0.4rem; }

.timeline__meta { position: relative; }
.timeline__date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  padding-top: 0.15rem;
}

.timeline__body { position: relative; }
.timeline__body::before {
  /* dezenter Punkt links neben dem Eintrag */
  content: "";
  position: absolute;
  left: -1.02rem;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline__role {
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.2rem;
}
.timeline__org {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
.timeline__points { display: grid; gap: 0.5rem; }
.timeline__points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.97rem;
  color: var(--ink);
  line-height: 1.55;
}
.timeline__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7c2d6;
}

/* =========================================================================
   KOMPETENZEN
   ========================================================================= */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.6rem;
}
.skills__group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.skills__heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.taglist { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.taglist li {
  font-size: 0.88rem;
  color: var(--navy-800);
  background: var(--grey-50);
  border: 1px solid var(--line);
  padding: 0.42rem 0.8rem;
  border-radius: 8px;
  line-height: 1.3;
}
.tag--wip {
  background: var(--accent-soft);
  border-color: #d4e0f1;
  color: var(--accent);
}
.tag--wip em {
  font-style: normal;
  font-size: 0.74rem;
  opacity: 0.85;
  margin-left: 0.25rem;
}

/* =========================================================================
   WEITERBILDUNG
   ========================================================================= */
.courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 0.4rem;
}
.course {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.course__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.course__title {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.25;
}
.course__status {
  flex: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #d4e0f1;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.course__provider {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.course__text {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.55;
}
.courses__note {
  margin-top: 1.6rem;
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
}

/* =========================================================================
   WERTE (dunkler Block)
   ========================================================================= */
.section--values {
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(47, 95, 160, 0.22), transparent 55%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #d7deeb;
  border: none;
}
.section__title--light { color: var(--white); }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 0.6rem;
}
.value {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.3rem 1.2rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.value:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(143, 176, 222, 0.4);
}
.value h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.value p {
  margin: 0;
  font-size: 0.89rem;
  color: #aab8d0;
  line-height: 1.5;
}

/* =========================================================================
   KONTAKT
   ========================================================================= */
.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.contact__card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--grey-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
}
.contact__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact__value {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--navy-800);
  word-break: break-word;
}
.contact__link { transition: color 0.2s var(--ease); }
.contact__link:hover { color: var(--accent); text-decoration: underline; }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--navy-900);
  color: #aeb9cf;
  padding-block: 2.6rem 1.6rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer__left { display: flex; align-items: center; gap: 0.9rem; }
.footer__monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.footer__name { margin: 0; color: var(--white); font-weight: 600; font-size: 1.02rem; }
.footer__role { margin: 0.1rem 0 0; font-size: 0.85rem; color: #97a3bd; }

.footer__nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer__nav a {
  color: #aeb9cf;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}
.footer__nav a:hover { color: var(--white); }

.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: #8693af;
}
.footer__base p { margin: 0; }

/* =========================================================================
   SCROLL-REVEAL (dezent, respektiert reduced-motion)
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Fokus-Sichtbarkeit (Barrierefreiheit) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__photo-wrap { order: -1; justify-self: start; }
  .skills,
  .courses { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  /* Mobile-Navigation */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.6rem clamp(20px, 5vw, 48px) 1.2rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease);
  }
  .nav__menu.is-open {
    max-height: 460px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: none; padding-top: 0.7rem; }
  .nav__menu a { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .nav__cta { text-align: center; }

  .cards,
  .skills,
  .courses { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }

  .hero__facts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero__facts span { max-width: none; }

  /* Timeline einspaltig */
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-left: 1.1rem;
  }
  .timeline__body::before { left: -1.1rem; top: 0.5rem; }
  .timeline__item:first-child { padding-top: 0.6rem; }

  .btn { width: 100%; }
  .hero__actions .btn,
  .contact__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
