:root{
  --bg: #070A12;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --muted2: rgba(255,255,255,.5);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.18);
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --brand1: #7C3AED;
  --brand2: #22D3EE;
  --brand3: #F97316;
  --radius: 18px;
  --radius2: 26px;
  --max: 1140px;
}

[data-theme="light"]{
  --bg: #F7F8FC;
  --card: rgba(0,0,0,.04);
  --card2: rgba(0,0,0,.06);
  --text: rgba(0,0,0,.88);
  --muted: rgba(0,0,0,.62);
  --muted2: rgba(0,0,0,.45);
  --stroke: rgba(0,0,0,.10);
  --stroke2: rgba(0,0,0,.14);
  --shadow: 0 18px 50px rgba(0,0,0,.15);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
.container{ width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.muted{ color: var(--muted); }
.small{ font-size: .92rem; }

/* Background */
.bg{ position: fixed; inset: 0; pointer-events:none; z-index:-1; overflow:hidden; }
.blob{
  position:absolute;
  width: 520px; height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .55;
  transform: translate3d(0,0,0);
}
.b1{ background: radial-gradient(circle at 30% 30%, var(--brand1), transparent 60%); left: -120px; top: -140px; }
.b2{ background: radial-gradient(circle at 70% 30%, var(--brand2), transparent 60%); right: -160px; top: 80px; }
.b3{ background: radial-gradient(circle at 50% 70%, var(--brand3), transparent 60%); left: 18%; bottom: -220px; opacity:.4; }
.grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 30% 10%, rgba(0,0,0,.9), transparent 60%);
  opacity: .25;
}

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-bottom: 1px solid var(--stroke);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{ display:flex; align-items:center; gap: 10px; }
.brand-dot{
  width: 12px; height: 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 0 0 6px rgba(124,58,237,.15);
}
.brand-text{ font-weight: 800; letter-spacing: .2px; }
.brand-sub{ font-size: .9rem; color: var(--muted); margin-left: 8px; }

.nav{ display:flex; gap: 18px; }
.nav a{
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 10px;
  border-radius: 999px;
  transition: .2s ease;
}
.nav a:hover{ color: var(--text); background: var(--card); }

.topbar-actions{ display:flex; align-items:center; gap: 10px; }
.icon-btn{
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  height: 38px; width: 38px;
  display:grid; place-items:center;
  cursor:pointer;
  transition: .2s ease;
}
.icon-btn:hover{ border-color: var(--stroke2); transform: translateY(-1px); }
.icon{ font-size: 1.05rem; }

.cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  font-weight: 800;
  color: white;
  box-shadow: 0 12px 30px rgba(124,58,237,.25);
  border: 1px solid rgba(255,255,255,.12);
  transition: .2s ease;
}
.cta:hover{ transform: translateY(-1px); filter: brightness(1.05); }

/* Burger */
.burger{ display:none; width: 42px; }
.burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: .2s ease;
}
.burger span:nth-child(2){ width: 14px; opacity:.85; }
.burger span:nth-child(3){ width: 10px; opacity:.7; }

/* Mobile menu */
.mobile{ display:none; border-top: 1px solid var(--stroke); }
.mobile-inner{ padding: 14px 0 18px; display:grid; gap: 10px; }
.mobile a{
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
}
.mobile a:hover{ color: var(--text); border-color: var(--stroke2); }
.mobile-cta{ margin-top: 6px; }
.w100{ width: 100%; }

/* Sections */
.section{ padding: 72px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section-head h2{
  margin:0;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  letter-spacing: -.02em;
}
.section-head p{ margin:0; color: var(--muted); max-width: 58ch; }

/* Hero */
.hero{ padding: 70px 0 26px; position: relative; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 22px;
  align-items: start;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
}
.ping{
  width: 10px; height: 10px; border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.55);
  animation: ping 1.6s infinite;
}
@keyframes ping{
  0%{ box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70%{ box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero h1{
  margin: 16px 0 12px;
  font-size: clamp(2.0rem, 4.3vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.muted{ color: var(--muted); }
.grad{
  background: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead{
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-actions{
  display:flex; gap: 12px;
  margin: 18px 0 18px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: var(--stroke2); }
.btn.primary{
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: white;
  box-shadow: 0 18px 40px rgba(34,211,238,.12), 0 18px 40px rgba(124,58,237,.16);
}
.btn.ghost{
  background: transparent;
}
.btn.small{ padding: 10px 12px; border-radius: 12px; font-weight: 800; }
.btn:active{ transform: translateY(0); }

.stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.stat{
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: var(--shadow);
}
.stat-num{
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.stat-label{
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  margin-top: 2px;
}

.chips{ display:flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
}

.card{
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-right{ display:grid; gap: 12px; }
.portrait{ padding: 16px; }
.portrait-top{ display:flex; align-items:center; gap: 12px; }
.avatar{
  width: 46px; height: 46px; border-radius: 16px;
  display:grid; place-items:center;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: white;
  border: 1px solid rgba(255,255,255,.16);
}
.portrait-name{ font-weight: 900; }
.portrait-role{ color: var(--muted); font-weight: 700; font-size: .95rem; }

.portrait-body{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.mini{
  border: 1px solid var(--stroke);
  background: var(--card2);
  border-radius: 16px;
  padding: 12px;
}
.mini-label{ color: var(--muted2); font-weight: 800; font-size: .82rem; }
.mini-value{ margin-top: 4px; font-weight: 900; }

.portrait-footer{ display:flex; gap: 10px; margin-top: 12px; }

.code{ overflow:hidden; }
.code-top{
  display:flex; align-items:center; gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card2) 55%, transparent);
}
.dot{ width: 10px; height: 10px; border-radius: 999px; }
.red{ background:#ef4444; }
.yellow{ background:#f59e0b; }
.green{ background:#22c55e; }
.code-title{ color: var(--muted); font-weight: 800; font-size: .9rem; margin-left: 6px; }
.code-pre{
  margin:0;
  padding: 14px 14px 16px;
  font-size: .92rem;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  overflow:auto;
}

/* Scroll hint */
.scrollhint{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}
.mouse{
  width: 18px; height: 26px;
  border: 2px solid var(--stroke2);
  border-radius: 999px;
  position: relative;
}
.mouse::after{
  content:"";
  width: 4px; height: 4px;
  background: var(--text);
  border-radius: 999px;
  position: absolute;
  left: 50%; top: 6px;
  transform: translateX(-50%);
  animation: wheel 1.4s infinite;
}
@keyframes wheel{
  0%{ transform: translate(-50%, 0); opacity: .9; }
  70%{ transform: translate(-50%, 10px); opacity: .25; }
  100%{ transform: translate(-50%, 0); opacity: .0; }
}

/* Grids */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.skills-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 14px;
}


.service{ padding: 18px; }
.service-icon{ font-size: 1.55rem; }
.service h3{ margin: 10px 0 6px; letter-spacing: -.01em; }
.service p{ margin: 0 0 10px; color: var(--muted); }
.bullets{ margin: 0; padding-left: 18px; color: var(--muted); font-weight: 700; }
.bullets li{ margin: 6px 0; }

.project{ padding: 18px; }
.project-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}
.project h3{ margin: 0; letter-spacing: -.01em; }
.project .sub{ margin: 6px 0 0; color: var(--muted); font-weight: 700; }
.tag{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card2);
  color: var(--muted);
  font-weight: 900;
  font-size: .85rem;
}
.project-meta{ display:flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.project-meta span{
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 800;
  font-size: .82rem;
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.project-desc{ margin: 12px 0 14px; color: var(--muted); font-weight: 650; }
.project-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Timeline */
.timeline{ display:grid; gap: 12px; }
.t-item{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: start;
}
.t-year{
  font-weight: 900;
  color: var(--muted);
  padding-top: 12px;
  text-align: right;
}
.t-card{ padding: 16px; }
.t-card h3{ margin:0 0 6px; letter-spacing:-.01em; }
.t-card p{ margin:0; color: var(--muted); font-weight: 700; }

/* Skills bars */
.bars{ display:grid; gap: 12px; margin-top: 12px; }
.bar-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.bar-top span:last-child{
  min-width: 92px;
  text-align: right;
  white-space: nowrap;
  color: var(--muted2);
  font-weight: 800;
}

.bar-level{
  min-width: 92px;          /* sorgt dafür, dass alle rechts gleich ausgerichtet sind */
  text-align: right;
  white-space: nowrap;
  color: var(--muted2);
  font-weight: 800;
  font-size: .9rem;
}

.bar-track{
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card2) 60%, transparent);
  overflow:hidden;
  margin-top: 6px;
}
.bar-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 10px 30px rgba(124,58,237,.20);
  transition: width 900ms cubic-bezier(.2,.8,.2,1);
}
.pillgrid{ display:flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pill2{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card2);
  color: var(--muted);
  font-weight: 900;
  font-size: .9rem;
}

.check{ margin: 12px 0 0; padding-left: 0; list-style: none; display:grid; gap: 10px; }
.check li{
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-weight: 800;
}
.check li::before{
  content:"✓";
  position:absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 8px;
  display:grid; place-items:center;
  background: color-mix(in srgb, var(--brand2) 30%, var(--card2));
  border: 1px solid var(--stroke);
  color: color-mix(in srgb, var(--text) 85%, var(--brand2));
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 14px;
}
.contact-grid .card{ padding: 18px; }
.contact-actions{ display:grid; gap: 10px; margin-top: 12px; }
.note{
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card2) 60%, transparent);
  color: var(--muted);
  font-weight: 800;
}

label{ display:grid; gap: 8px; margin-top: 12px; color: var(--muted); font-weight: 900; }
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card2) 60%, transparent);
  color: var(--text);
  outline: none;
  font: inherit;
  font-weight: 700;
}
input:focus, textarea:focus{ border-color: color-mix(in srgb, var(--brand2) 50%, var(--stroke2)); box-shadow: 0 0 0 6px rgba(34,211,238,.12); }

.toast{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card2) 70%, transparent);
  color: var(--muted);
  font-weight: 800;
  display:none;
}

/* Footer */
.footer{
  padding: 34px 0 44px;
  border-top: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
}
.footer-inner{ display:flex; align-items:center; justify-content: space-between; gap: 18px; }
.footer-links{ display:flex; gap: 14px; color: var(--muted); font-weight: 800; }
.footer-links a:hover{ color: var(--text); }
.footer-brand{ opacity: .95; }

/* Reveal animations */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: 700ms cubic-bezier(.2,.8,.2,1);
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .burger{ display:grid; gap: 5px; place-items:center; }
  .cta{ display:none; }
  .brand-sub{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .reveal{ transition: none; }
  .ping{ animation: none; }
  .mouse::after{ animation: none; }
}

.skills-grid > .card {
  padding: 18px;
}

.skills-grid > .card h3 {
  margin: 0 0 12px;
}