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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  transition: background .5s ease, color .5s ease;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; }

a { color: inherit; }

/* ---------- Design-Tokens / Theme ---------- */
:root {
  --accent: #ff5436;
  --violet: #7c5cff;
  --green:  #1fd97a;
  --yellow: #ffd23f;
}

[data-theme="dark"] {
  --bg:      #0c0b0a;
  --surface: #161412;
  --fg:      #f5f1ea;
  --muted:   rgba(245, 241, 234, .74);
  --line:    rgba(245, 241, 234, .13);
  --nav:     rgba(12, 11, 10, .72);
}

[data-theme="light"] {
  --bg:      #f3efe6;
  --surface: #ffffff;
  --fg:      #17140f;
  --muted:   rgba(23, 20, 15, .55);
  --line:    rgba(23, 20, 15, .12);
  --nav:     rgba(243, 239, 230, .72);
}

/* ---------- Layout-Helfer ---------- */
.section {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(70px, 12vh, 130px) clamp(18px, 4vw, 56px);
  scroll-margin-top: 90px;
}
.section--tight { padding-top: clamp(40px, 7vh, 80px); padding-bottom: clamp(40px, 7vh, 80px); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(28px, 5vh, 48px);
}
.section-head__num { font-weight: 800; font-size: 15px; }
/* Akzentfarben der Abschnitts-Nummern (statt Inline-Styles) */
#aboutNum, #contactNum { color: var(--accent); }
#stackNum { color: var(--violet); }
#workNum  { color: var(--green); }
#projectsNum { color: var(--yellow); }
.section-head__title {
  font-weight: 800;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- Dekorative Blobs ---------- */
.blob {
  position: fixed;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.blob--1 {
  top: 12vh; right: -120px; width: 320px; height: 320px;
  background: var(--accent); opacity: .14;
  animation: blob 14s ease-in-out infinite, floaty 9s ease-in-out infinite;
}
.blob--2 {
  bottom: 8vh; left: -100px; width: 260px; height: 260px;
  background: var(--violet); opacity: .12;
  animation: blob 18s ease-in-out infinite reverse, floaty 11s ease-in-out infinite;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: var(--nav);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}
.nav__logo {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  transform: rotate(-6deg);
}
.nav__right { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  font-size: 14px;
  font-weight: 500;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s;
}
.nav__link:hover { color: var(--fg); }
.nav__link.is-active { color: var(--fg); }
.nav__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .25s;
}
.nav__link.is-active .nav__dot { opacity: 1; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: .04em;
}
.lang-sep { color: var(--muted); }
.lang-de.is-on, .lang-en.is-on { color: var(--accent); }
.lang-de:not(.is-on), .lang-en:not(.is-on) { color: var(--muted); }

.btn-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--fg);
  font-size: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(120px, 16vh, 200px) clamp(18px, 4vw, 56px) clamp(40px, 7vh, 90px);
}
.hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 70px);
  margin-top: clamp(10px, 3vh, 30px);
}
.hero__col { flex: 1 1 460px; min-width: 280px; }
.hero__name {
  font-weight: 800;
  font-size: clamp(58px, 12vw, 168px);
  line-height: .86;
  letter-spacing: -.04em;
  margin: 0;
}
.hero__name span { display: block; }
.hero__name .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
.hero__role {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.6vw, 30px);
  letter-spacing: -.02em;
  margin: clamp(20px, 3vh, 30px) 0 0;
}
.hero__tagline {
  max-width: 520px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0 0;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4vh, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform .2s, border-color .2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { transform: translateY(-3px); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--fg); }

.hero__photo { flex: 0 1 340px; min-width: 240px; position: relative; }
.hero__photo-bg {
  position: absolute;
  inset: -18px -14px -14px -18px;
  background: var(--violet);
  opacity: .9;
  animation: blob 16s ease-in-out infinite;
  z-index: 0;
}
.hero__badge {
  position: absolute;
  top: -26px; right: -18px;
  z-index: 2;
  background: var(--yellow);
  color: #17140f;
  font-weight: 800;
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  transform: rotate(8deg);
  animation: floaty 6s ease-in-out infinite;
}
.hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5);
}

/* ---------- About ---------- */
.about__lead-row { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 80px); }
.about__lead {
  flex: 1 1 460px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0;
}
.about__side { flex: 1 1 300px; max-width: 420px; }
.about__body {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 26px;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s;
}
.fact__dot {
  position: absolute;
  top: 19px; right: 18px;
  width: 7px; height: 7px;
  border-radius: 50%;
}
.fact__big {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 33px;
  line-height: 1;
  letter-spacing: -.02em;
}
.fact__rule { height: 1px; background: var(--line); margin: 14px 0 12px; }
.fact__label { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- Hobbies ---------- */
.hobbies { margin-top: clamp(44px, 7vh, 80px); }
.hobbies__title {
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.hobbies__intro {
  max-width: 720px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 26px;
}
.hobbies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 16px;
}
.hobby {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 2.4vw, 28px);
  background: var(--surface);
  transition: transform .22s, border-color .22s;
}
.hobby:hover { transform: translateY(-5px); }
.hobby__num {
  position: absolute;
  top: -18px; right: 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 98px;
  line-height: 1;
  opacity: .1;
  pointer-events: none;
}
.hobby__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  font-size: 26px;
  margin-bottom: 20px;
}
.hobby__title {
  position: relative;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.hobby__note {
  position: relative;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.stack-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
}
.stack-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.stack-card__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  font-size: 19px;
}
.stack-card__title { font-weight: 700; font-size: 20px; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s, color .2s;
  cursor: default;
}

/* ---------- Work / Education ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(36px, 5vw, 64px);
}
.timeline__head { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.timeline__head-dot { width: 9px; height: 9px; border-radius: 50%; }
.timeline__head-dot--accent { background: var(--accent); }
.timeline__head-dot--violet { background: var(--violet); }
.timeline__head-title {
  font-weight: 800;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0;
}
.entry {
  padding: clamp(20px, 3vh, 28px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left .25s;
}
.entry:hover { padding-left: 10px; }
.entry__period {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.entry__role-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.entry__role {
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -.02em;
  margin: 0;
}
.entry__org { font-weight: 600; color: var(--muted); margin: 5px 0 13px; font-size: 15px; }
.entry__desc { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.timeline__foot { border-top: 1px solid var(--line); }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}
.proj-col { display: flex; flex-direction: column; gap: 14px; }
.proj-col__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 14px;
  border-bottom: 2px solid;
}
.proj-col__dot { width: 9px; height: 9px; border-radius: 50%; }
.proj-col__title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
}
.proj-col__count {
  margin-left: auto;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 13px;
}
.proj-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--surface);
  transition: transform .25s, border-color .25s;
}
.proj-card:hover { transform: translateY(-5px); }
.proj-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.proj-card__mark {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.03em;
}
.proj-card__arrow { font-size: 20px; color: var(--muted); }
.proj-card__name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
  margin: 18px 0 0;
}
.proj-card__desc { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 8px 0 16px; }
.proj-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.proj-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact__lead {
  font-weight: 800;
  font-size: clamp(38px, 8vw, 100px);
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0 0 clamp(30px, 5vh, 50px);
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 34px);
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  letter-spacing: -.02em;
}
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(34px, 5vh, 54px); }
.social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform .2s, border-color .2s;
}
.social:hover { transform: translateY(-3px); border-color: var(--fg); }
.social__icon { color: var(--accent); }
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(60px, 10vh, 110px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Scroll-Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1),
              transform .7s cubic-bezier(.2, .7, .2, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Custom Cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor,
  .has-custom-cursor a,
  .has-custom-cursor button { cursor: none !important; }
}
.cursor-dot,
.cursor-ring,
.cursor-spark { position: fixed; top: 0; left: 0; pointer-events: none; }
.cursor-dot {
  z-index: 99999;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent);
  animation: cursor-pulse 1.1s ease-in-out infinite;
}
.cursor-ring {
  z-index: 99999;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  transition: width .22s ease, height .22s ease, margin .22s ease;
}
.cursor-ring__inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  color: var(--accent);
  animation: cursor-spin 3.6s linear infinite;
  transition: background .22s ease;
}
.cursor-ring.is-hot { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor-ring.is-hot .cursor-ring__inner { background: rgba(255, 84, 54, .10); }
.cursor-spark {
  z-index: 99998;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
}

/* ---------- Keyframes ---------- */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-22px); }
}
@keyframes blob {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33%      { border-radius: 67% 33% 38% 62% / 63% 56% 44% 37%; }
  66%      { border-radius: 38% 62% 56% 44% / 49% 38% 62% 51%; }
}
@keyframes cursor-pulse {
  0%, 100% { box-shadow: 0 0 5px currentColor, 0 0 9px currentColor; }
  50%      { box-shadow: 0 0 11px currentColor, 0 0 20px currentColor; }
}
@keyframes cursor-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .hero__name { line-height: .92; }
}
