/* =========================================================
   Hans Uhlmannsiek – Persönliche Website
   Design-System (bold / kreativ, dunkle Basis)
   ========================================================= */

/* ---------- Selbst gehostete Schriften (DSGVO-konform) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #0d0d12;
  --bg-elev: #12121a;
  --surface: #16161f;
  --surface-2: #1e1e2a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #f3f3f8;
  --muted: #a8a8bd;
  --dim: #7a7a93;

  --violet: #7c5cff;
  --coral: #ff5470;
  --mint: #34e6b0;

  --grad: linear-gradient(120deg, #7c5cff 0%, #b054ff 45%, #ff5470 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(255, 84, 112, 0.16));

  --glow-violet: rgba(124, 92, 255, 0.45);
  --glow-coral: rgba(255, 84, 112, 0.40);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1180px;
  --section-pad: clamp(4.5rem, 10vw, 8rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

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

ul { list-style: none; padding: 0; }

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

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 3rem);
}

.section {
  padding-block: var(--section-pad);
  scroll-margin-top: 84px;
}
.section--alt { background: var(--bg-elev); }

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.9rem;
}
.section__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.section__intro {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 0.85rem;
  --btn-px: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn__icon { width: 1.15em; height: 1.15em; }
.btn--sm { --btn-py: 0.5rem; --btn-px: 1.05rem; font-size: 0.9rem; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--glow-violet);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px var(--glow-coral);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--violet);
  background: rgba(124, 92, 255, 0.1);
  transform: translateY(-3px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ---------- Tag-Listen ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.tag-list li {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--text);
}
.tag-list--soft li {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(13, 13, 18, 0.88);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px -6px var(--glow-violet);
}
.brand__name { font-size: 1.02rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__menu a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__menu a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__menu a.is-active:not(.btn) { color: var(--text); background: rgba(124, 92, 255, 0.14); }
.nav__menu a.btn { margin-left: 0.5rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav__toggle-bar {
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 18s var(--ease) infinite alternate;
}
.blob--1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -12%; left: -8%; background: radial-gradient(circle, var(--violet), transparent 70%); }
.blob--2 { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; bottom: -18%; right: -6%; background: radial-gradient(circle, var(--coral), transparent 70%); animation-delay: -6s; }
.blob--3 { width: 28vw; height: 28vw; max-width: 360px; max-height: 360px; top: 42%; left: 45%; background: radial-gradient(circle, var(--mint), transparent 70%); opacity: 0.32; animation-delay: -11s; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.5;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, 6%) scale(1.12); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2.2rem, 5vw, 3.5rem);
}
.hero__media { order: -1; display: flex; justify-content: center; }
.hero__media .portrait { width: min(220px, 60vw); }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1.6rem;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(52, 230, 176, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 230, 176, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 230, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 230, 176, 0); }
}

.hero__title {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  letter-spacing: -0.03em;
}
.hero__lead {
  margin-top: 1.6rem;
  max-width: 40rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.hero__facts svg { width: 1.2rem; height: 1.2rem; color: var(--violet); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.7rem;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  position: relative;
}
.hero__scroll-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: var(--violet);
  transform: translateX(-50%);
  animation: scrollWheel 1.8s var(--ease) infinite;
}
@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, -4px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- ÜBER MICH ---------- */
.about {
  max-width: 44rem;
  margin-inline: auto;
}
.portrait {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(124, 92, 255, 0.35), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, rgba(255, 84, 112, 0.35), transparent 55%),
    var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.portrait__mono {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 7rem);
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait__ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--violet), var(--coral), var(--mint), var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.about__stats li { display: grid; gap: 0.15rem; }
.about__stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__stats span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 560px) {
  .about__stats { grid-template-columns: 1fr; gap: 0.8rem; }
  .about__stats li { grid-template-columns: auto 1fr; align-items: baseline; gap: 0.7rem; }
}

.about__text { margin-top: 1.5rem; display: grid; gap: 1.1rem; color: var(--muted); }
.about__text strong { color: var(--text); font-weight: 600; }
.about__quote {
  padding-left: 1.2rem;
  border-left: 3px solid var(--violet);
  font-style: italic;
  color: var(--text);
}

/* ---------- SCHWERPUNKTE (Cards) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card--featured {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.15), 0 30px 60px -30px var(--glow-violet);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  margin-bottom: 1.3rem;
}
.card__icon svg { width: 26px; height: 26px; color: var(--violet); }
.card--featured .card__icon svg { color: var(--coral); }
.card__title { font-size: 1.4rem; margin-bottom: 0.7rem; }
.card p { color: var(--muted); }

/* ---------- WERDEGANG (Timeline) ---------- */
.timeline {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  gap: 1.4rem;
}
.timeline__item {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
/* Verbindungslinie zwischen den Markern */
.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: -1.4rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--violet), var(--coral));
  opacity: 0.5;
}
.timeline__marker {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 1;
  color: var(--violet);
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline__marker svg { width: 26px; height: 26px; }
.timeline__item:hover .timeline__marker {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.12);
}
.timeline__item--current .timeline__marker {
  color: var(--coral);
  box-shadow: 0 0 0 5px rgba(52, 230, 176, 0.14), 0 12px 30px -10px var(--glow-violet);
}
.timeline__item--muted .timeline__marker {
  color: var(--dim);
  border: 2px solid var(--line-strong);
  background: var(--surface);
}

.timeline__card {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline__card::before { /* kleiner Verbinder Marker -> Karte */
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 26px;
  width: 1.25rem;
  height: 2px;
  background: var(--line-strong);
}
.timeline__item:hover .timeline__card {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.timeline__period {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--coral);
  padding: 0.24rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.timeline__now {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mint);
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(52, 230, 176, 0.12);
}
.timeline__now::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(52, 230, 176, 0.7);
  animation: pulse 2.2s infinite;
}
.timeline__role {
  font-size: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.timeline__tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.timeline__org { color: var(--violet); font-weight: 600; margin: 0.2rem 0 0.8rem; }
.timeline__points { display: grid; gap: 0.4rem; }
.timeline__points li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
}
.timeline__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
@media (max-width: 560px) {
  .timeline__marker { width: 46px; height: 46px; }
  .timeline__marker svg { width: 22px; height: 22px; }
  .timeline__item:not(:last-child)::before { left: 22px; }
  .timeline__card::before { display: none; }
  .timeline__card { padding: 1.1rem 1.15rem; }
}

/* ---------- PROJEKTE ---------- */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.project:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.project__top { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.9rem; }
.project__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: none;
}
.project__title { font-size: 1.3rem; }
.project p { color: var(--muted); }

/* ---------- SKILLS ---------- */
.skills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.skills__block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.1rem);
}
.skills__heading {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.skills__heading--mt { margin-top: 1.8rem; }

.badges { display: grid; gap: 0.7rem; }
.badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
}
.badge span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--grad);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.bars { display: grid; gap: 1.1rem; }
.bar__head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
.bar__track {
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  width: var(--level);
  border-radius: inherit;
  background: var(--grad);
}
.is-visible .bar__fill { animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { width: 0; } to { width: var(--level); } }

/* ---------- KONTAKT ---------- */
.section--contact {
  position: relative;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(124, 92, 255, 0.14), transparent 60%),
    var(--bg-elev);
  text-align: center;
}
.contact__inner { max-width: 44rem; margin-inline: auto; }
.contact__avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 1.7rem;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px -14px var(--glow-violet);
}
.contact__avatar img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-elev);
}
.contact .section__eyebrow { color: var(--coral); }
.contact__lead {
  margin: 1.2rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}
.contact__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.contact__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact__meta svg { width: 1.2rem; height: 1.2rem; color: var(--violet); }
.contact__meta a:hover { color: var(--text); text-decoration: underline; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.6rem;
  background: var(--bg);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.site-footer__brand strong { display: block; font-family: var(--font-display); }
.site-footer__brand span { font-size: 0.85rem; color: var(--muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.site-footer__nav a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__copy { color: var(--dim); font-size: 0.85rem; width: 100%; }
.site-footer__copy a { color: var(--muted); text-decoration: underline; }
.site-footer__copy a:hover { color: var(--text); }

/* ---------- Rechtliche Textseiten (Prose) ---------- */
.prose { max-width: 46rem; }
.legal-top { margin-bottom: 2.2rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.4rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.4rem 0 0.8rem;
}
.prose p, .prose ul { color: var(--muted); margin-bottom: 1rem; }
.prose ul { padding-left: 1.3rem; list-style: disc; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--violet); text-decoration: underline; }
.prose strong { color: var(--text); }
.prose address { font-style: normal; color: var(--text); line-height: 1.8; }
.note {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.note strong { color: var(--text); }

/* ---------- Reveal-Animation (no-JS-sicher) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 920px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .hero__text { grid-column: 1; }
  .hero__media { grid-column: 2; order: 0; justify-content: flex-end; }
  .hero__media .portrait { width: min(400px, 100%); }
}

/* Mobile-Navigation */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1.2rem clamp(1.2rem, 5vw, 3rem) 1.8rem;
    background: rgba(13, 13, 18, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a { padding: 0.85rem 0.9rem; font-size: 1.05rem; }
  .nav__menu a.btn { margin: 0.6rem 0 0; justify-content: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .bar__fill { width: var(--level); }
  .blob { animation: none; }
}
