/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg0: #0b0b0e;
  --bg1: #101015;
  --ink: rgba(248, 248, 250, 0.92);
  --muted: rgba(248, 248, 250, 0.68);
  --line: rgba(61, 61, 71, 0.55);
  --red: #a60d18;
  --gold: #d9b24a;
  --r: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --nav-h: 58px;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(166,13,24,0.14), transparent 62%),
    radial-gradient(900px 600px at 85% 20%, rgba(61,61,71,0.16), transparent 64%),
    radial-gradient(900px 700px at 70% 90%, rgba(217,178,74,0.14), transparent 66%),
    repeating-linear-gradient(90deg, rgba(61,61,71,0.06) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg,  rgba(61,61,71,0.045) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(800px 500px at 70% 30%, rgba(166,13,24,0.06), transparent 70%),
    radial-gradient(900px 600px at 20% 80%, rgba(217,178,74,0.08), transparent 72%);
  mix-blend-mode: screen; opacity: 0.55;
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 16px);
  opacity: 0.22;
}
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }

/* ── Layout ──────────────────────────────────────────── */
.frame {
  width: calc(100% - 100px);
  margin: 0 auto;
  position: relative; z-index: 1;
}

.panel {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 80px 0 60px;
}
.panel--start  { padding-top: calc(var(--nav-h) + 60px); }
.panel--contact { padding-bottom: 80px; }

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  background: rgba(11,11,14,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(180,11,23,0.35);
  box-shadow: 0 2px 32px rgba(0,0,0,0.45);
}
.navbar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.navbar__brand {
  text-decoration: none;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.navbar__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}
.navbar__mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 13px; letter-spacing: 0.6px;
  border: 1px solid rgba(217,178,74,0.42);
  background: rgba(217,178,74,0.12);
}
.navbar__name { font-weight: 750; letter-spacing: 0.2px; }
.navbar__nav  { display: flex; align-items: center; gap: 4px; }
.navbar__link {
  text-decoration: none; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; color: rgba(242,242,244,0.72);
  transition: background 140ms, color 140ms;
}
.navbar__link:hover { background: rgba(255,255,255,0.05); color: rgba(242,242,244,0.95); }
.navbar__cv {
  text-decoration: none; margin-left: 8px;
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 750;
  border: 1px solid rgba(217,178,74,0.42);
  background: rgba(217,178,74,0.10);
  transition: border-color 140ms, background 140ms;
}
.navbar__cv:hover { border-color: rgba(217,178,74,0.75); background: rgba(217,178,74,0.16); }

/* ── Section heading ─────────────────────────────────── */
.sec-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(180,11,23,0.30);
}
.sec-head__num {
  font-size: 35px; font-weight: 900; letter-spacing: 1.6px;
  color: rgba(217,178,74,0.72);
}
.h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 850;
  letter-spacing: -0.3px;
}

/* ── Typography helpers ──────────────────────────────── */
.text { margin: 0; color: rgba(248,248,250,0.80); max-width: 72ch; }
.text--accent {
  color: rgba(217,178,74,0.92);
  border-left: 2px solid rgba(217,178,74,0.50);
  padding-left: 12px;
}
.dim { color: rgba(242,242,244,0.50); font-size: 13px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 14px; font-weight: 750;
  border: 1px solid rgba(61,61,71,0.55); background: rgba(255,255,255,0.04);
  transition: transform 140ms, box-shadow 180ms, border-color 180ms, background 180ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--red {
  border-color: rgba(166,13,24,0.60); background: rgba(166,13,24,0.16);
}
.btn--red:hover {
  border-color: rgba(166,13,24,0.86); background: rgba(166,13,24,0.28);
  box-shadow: 0 0 0 6px rgba(166,13,24,0.08);
}
.btn--ghost {
  border-color: rgba(217,178,74,0.42); background: rgba(217,178,74,0.10);
}
.btn--ghost:hover {
  border-color: rgba(217,178,74,0.78); background: rgba(217,178,74,0.16);
  box-shadow: 0 0 0 6px rgba(217,178,74,0.08);
}

/* ── Chips ───────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(61,61,71,0.55); background: rgba(255,255,255,0.03);
  color: rgba(242,242,244,0.76); font-weight: 700; font-size: 13px;
}
.chip--red  { border-color: rgba(180,11,23,0.45); background: rgba(180,11,23,0.10); }
.chip--gold { border-color: rgba(217,178,74,0.45); background: rgba(217,178,74,0.10); }

/* ── Mark (AB logo) ──────────────────────────────────── */
.mark {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 15px; letter-spacing: 0.8px;
  border: 1px solid rgba(217,178,74,0.38);
  background: rgba(217,178,74,0.10);
  box-shadow: 0 0 0 6px rgba(217,178,74,0.06);
}

/* ───────────────────────────────────────────────────────
   HERO
─────────────────────────────────────────────────────── */
.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
.hero {
  display: flex;
  flex-direction: row;
  gap: 52px;
  align-items: flex-start;
}
.hero__left {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
.hero__right  { flex: 1; display: grid; gap: 14px; align-content: start; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.hero__row {
  display: contents;
}

/* photo placeholder */
.hero__photo {
  width: clamp(220px, 28vw, 340px);
  max-width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(61,61,71,0.55);
  background: rgba(255,255,255,0.025);
  overflow: hidden;
  display: grid;
  place-items: stretch;
  position: relative;
}
.hero__photo::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(61,61,71,0.12) 0 1px,
    transparent 1px 12px
  );
}

.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  position: relative;
  z-index: 1;
  filter: saturate(0.95) contrast(1.05);
}

.eyebrow { margin: 0; color: rgba(242,242,244,0.60); letter-spacing: 0.2px; }

.title {
  margin: 0;
  font-size: clamp(46px, 6vw, 80px);
  line-height: 0.96;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 850;
  letter-spacing: -0.8px;
}

.subtitle { margin: 0; font-size: clamp(16px, 1.8vw, 20px); color: rgba(242,242,244,0.65); }

/* Stat boxes */
.statbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat {
  border-radius: var(--r);
  border: 1px solid rgba(61,61,71,0.50);
  background: rgba(255,255,255,0.03);
  padding: 18px 16px;
}
.stat__n {
  font-size: 26px; font-weight: 900; letter-spacing: -0.5px;
  color: rgba(242,242,244,0.95);
}
.stat--wide .stat__n { font-size: 20px; }
.stat__l { font-size: 12px; color: var(--muted); letter-spacing: 0.3px; margin-top: 4px; }

/* Chip box */
.chipbox {
  border-radius: var(--r);
  border: 1px solid rgba(217,178,74,0.26);
  background: rgba(217,178,74,0.05);
  padding: 16px;
  display: grid; gap: 10px;
  height: 100%;
}
.chipbox__title { font-size: 11px; font-weight: 900; letter-spacing: 1.2px; color: rgba(217,178,74,0.75); text-transform: uppercase; }
.chipbox__row   { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───────────────────────────────────────────────────────
   ÜBER MICH
─────────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about__left  { display: grid; gap: 16px; }

/* Accent box */
.accent-box {
  border-radius: var(--r);
  border: 1px solid rgba(217,178,74,0.32);
  background: rgba(217,178,74,0.06);
  padding: 14px 16px;
  display: grid; gap: 6px;
}
.accent-box__label { font-size: 11px; font-weight: 900; letter-spacing: 1.2px; color: rgba(217,178,74,0.75); text-transform: uppercase; }
.accent-box__text  { color: rgba(217,178,74,0.86); }

/* Info card */
.infocard {
  margin: 0; padding: 0;
  border-radius: var(--r);
  border: 1px solid rgba(61,61,71,0.50);
  background: rgba(255,255,255,0.025);
  overflow: hidden;
}
.infocard__row {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(61,61,71,0.28);
}
.infocard__row:first-child { border-top: none; }
.infocard dt { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase; color: rgba(242,242,244,0.45); padding-top: 2px; }
.infocard dd { margin: 0; color: rgba(242,242,244,0.82); line-height: 1.5; }

/* Languages */
.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(242,242,244,0.78); }
.lang__flag { font-size: 16px; }

/* ───────────────────────────────────────────────────────
   SKILLS
─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(61,61,71,0.55);
  background: rgba(255,255,255,0.03);
  color: rgba(248,248,250,0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.pill--core {
  border-color: rgba(217,178,74,0.45);
  background: rgba(217,178,74,0.10);
  color: rgba(217,178,74,0.90);
}

/* ─── SKILLS — two-panel tab layout ────────────────── */
.skills-note { margin-bottom: 12px; }
.skills-note__label {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(217,178,74,0.45);
  background: rgba(217,178,74,0.10);
  font-weight: 900; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(217,178,74,0.90);
  vertical-align: middle;
  margin-right: 5px;
}

.skill-ui {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}

.skill-tabs {
  display: grid;
  gap: 6px;
}

.skill-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(61,61,71,0.45);
  background: rgba(255,255,255,0.025);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms, background 160ms;
}

.skill-tab:hover {
  border-color: rgba(61,61,71,0.70);
  background: rgba(255,255,255,0.045);
}

.skill-tab.active {
  border-color: rgba(217,178,74,0.55);
  background: rgba(217,178,74,0.07);
}

.skill-tab--core {
  border-color: rgba(166,13,24,0.38);
  background: rgba(166,13,24,0.06);
}

.skill-tab--core:hover {
  border-color: rgba(166,13,24,0.60);
  background: rgba(166,13,24,0.10);
}

.skill-tab--core.active {
  border-color: rgba(217,178,74,0.55);
  background: rgba(217,178,74,0.07);
}

.skill-tab__icon {
  font-size: 15px;
  font-family: monospace;
  color: rgba(248,248,250,0.40);
  line-height: 1;
  text-align: center;
}

.skill-tab--core .skill-tab__icon { color: rgba(217,178,74,0.65); }
.skill-tab.active .skill-tab__icon { color: rgba(217,178,74,0.85); }

.skill-tab__name {
  font-size: 13px;
  font-weight: 750;
  color: rgba(248,248,250,0.80);
}

.skill-panel {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border-radius: var(--r);
  border: 1px solid rgba(61,61,71,0.45);
  background: rgba(255,255,255,0.025);
  padding: 28px;
  min-height: 280px;
}

.skill-panel__pane { display: none; }
.skill-panel__pane.active { display: block; }

.spane__list {
  display: grid;
  gap: 13px;
}

.spane__list li {
  font-size: 15px;
  color: rgba(248,248,250,0.82);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}

.spane__list li::before {
  content: "—";
  position: absolute; left: 0;
  color: rgba(217,178,74,0.70);
}

/* ───────────────────────────────────────────────────────
   PROJEKT
─────────────────────────────────────────────────────── */
.projcard {
  border-radius: 22px;
  border: 1px solid rgba(61,61,71,0.50);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.projcard__header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(61,61,71,0.35);
  background: rgba(180,11,23,0.05);
}
.projcard__header-left { display: grid; gap: 6px; }
.projcard__badge {
  display: inline-flex;
  font-size: 11px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(180,11,23,0.70);
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(180,11,23,0.30);
  background: rgba(180,11,23,0.08);
  width: fit-content;
}
.projcard__title { margin: 0; font-size: 22px; font-weight: 850; }
.projcard__sub   { margin: 0; font-size: 14px; color: var(--muted); }
.projcard__chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: center; }

.projcard__body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.projblock {
  padding: 22px 24px;
  border-right: 1px solid rgba(61,61,71,0.28);
  display: grid; gap: 10px; align-content: start;
}
.projblock:last-child { border-right: none; }
.projblock--challenge { background: rgba(180,11,23,0.04); }
.projblock--learned   { background: rgba(212,175,55,0.04); }
.projblock__k {
  font-size: 11px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--muted);
}
.projblock--challenge .projblock__k { color: rgba(180,11,23,0.60); }
.projblock--learned   .projblock__k { color: rgba(212,175,55,0.60); }
.projblock__v { font-size: 14px; color: rgba(242,242,244,0.78); line-height: 1.55; }
.proj__list { display: grid; gap: 8px; }
.proj__list li {
  font-size: 14px; color: rgba(242,242,244,0.78);
  padding-left: 14px; position: relative;
}
.proj__list li::before {
  content: "▸";
  position: absolute; left: 0;
  color: rgba(180,11,23,0.55); font-size: 11px; top: 2px;
}

/* ───────────────────────────────────────────────────────
   KONTAKT
─────────────────────────────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-split__left { display: grid; gap: 16px; }
.contact-split__right { display: grid; gap: 12px; }

.clink {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid rgba(61,61,71,0.50);
  background: rgba(255,255,255,0.025);
  transition: border-color 140ms, background 140ms, transform 140ms;
}
.clink:not(.clink--static):hover {
  border-color: rgba(180,11,23,0.45);
  background: rgba(180,11,23,0.06);
  transform: translateX(4px);
}
.clink__icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 900;
  border: 1px solid rgba(180,11,23,0.35);
  background: rgba(180,11,23,0.10);
  color: rgba(242,242,244,0.80);
}
.clink__label { font-size: 11px; font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.clink__val   { font-size: 15px; color: rgba(242,242,244,0.88); margin-top: 2px; }

/* ───────────────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────────────── */
.footer {
  position: sticky; bottom: 0; z-index: 90;
  border-top: 1px solid rgba(180,11,23,0.35);
  padding: 14px 0;
  background: rgba(11,11,14,0.92);
  backdrop-filter: blur(14px);
}
.footer__inner {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: rgba(242,242,244,0.50); font-size: 13px;
}

/* ───────────────────────────────────────────────────────
   SCROLL-TO-TOP
─────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 64px; right: 24px; z-index: 200;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  text-decoration: none; font-size: 18px; font-weight: 900;
  border: 1px solid rgba(180,11,23,0.45);
  background: rgba(11,11,14,0.85);
  color: rgba(242,242,244,0.85);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms, transform 200ms, border-color 140ms, background 140ms;
}
.scroll-top--visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: rgba(212,175,55,0.55); background: rgba(212,175,55,0.10); }

/* ───────────────────────────────────────────────────────
   REDUCED MOTION
─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ───────────────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    gap: 28px;
  }
  .hero__left {
    justify-content: center;
  }
  .hero__photo {
    width: clamp(160px, 40vw, 260px);
    aspect-ratio: 3 / 4;
  }
  .hero__container {
    grid-template-columns: 1fr;
  }
  .statbox   { grid-template-columns: repeat(2, 1fr); }
  .about     { grid-template-columns: 1fr; }
  .projcard__body { grid-template-columns: 1fr; }
  .projblock { border-right: none; border-top: 1px solid rgba(61,61,71,0.28); }
  .projblock:first-child { border-top: none; }
  .contact-split { grid-template-columns: 1fr; }
  .skill-ui { grid-template-columns: 1fr; }
  .skill-panel { position: static; }
}

@media (max-width: 680px) {
  .frame { width: calc(100% - 32px); }
  .navbar__link { display: none; }
  .hero__photo {
    width: clamp(120px, 36vw, 200px);
    aspect-ratio: 3 / 4;
  }
  .statbox { grid-template-columns: 1fr 1fr; }
}
