:root {
  --bg: #050b18;
  --bg2: #0a1628;
  --surface: rgba(10,22,40,.8);
  --border: rgba(255,255,255,.06);
  --border-accent: rgba(99,102,241,.2);
  --indigo: #6366f1;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --amber: #f59e0b;
  --pink: #ec4899;
  --violet: #8b5cf6;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted2: #64748b;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1100px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none; opacity: 0.85;
}
.container {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  position: relative; z-index: 1;
}

/* GRADIENT TEXT */
.gradient-text {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(5,11,24,.88);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; letter-spacing: -.3px;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  box-shadow: 0 0 14px rgba(99,102,241,.65);
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn-nav {
  padding: 8px 20px !important; border-radius: 10px !important;
  background: linear-gradient(135deg, var(--indigo), rgba(6,182,212,.85)) !important;
  color: #fff !important; font-weight: 700 !important;
  transition: opacity .2s, transform .2s !important;
}
.btn-nav:hover { opacity: .9; transform: translateY(-1px) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .25s;
}
.nav-links.open {
  display: flex; flex-direction: column;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: rgba(5,11,24,.98); border-bottom: 1px solid var(--border);
  padding: 16px; gap: 4px; backdrop-filter: blur(24px);
}

/* ── HERO ── */
.hero-section {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 75% 50%, rgba(99,102,241,.13) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 5% 85%, rgba(6,182,212,.09) 0%, transparent 60%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 60px; align-items: center;
  padding: 60px 24px 80px; max-width: var(--max); margin: 0 auto; width: 100%;
}
.hero-content { max-width: 620px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(16,185,129,.3);
  background: rgba(16,185,129,.08);
  font-size: 13px; font-weight: 600; color: #34d399;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

.hero-name {
  font-size: clamp(48px, 7vw, 82px); font-weight: 900;
  line-height: 1.0; letter-spacing: -2px; margin-bottom: 20px;
}
/* Feste Hoehe: der getippte Satz darf die Seite nicht verschieben. */
.hero-role {
  font-size: 21px; font-weight: 600; color: var(--muted);
  margin-bottom: 20px; min-height: 34px;
}
.role-prefix { color: var(--muted2); }
#typewriter {
  color: var(--cyan);
  border-right: 2px solid var(--cyan);
  animation: blink .75s step-end infinite;
}
@keyframes blink {
  0%,100% { border-color: var(--cyan); }
  50% { border-color: transparent; }
}

.hero-desc {
  font-size: 16px; color: var(--muted); line-height: 1.7;
  margin-bottom: 24px; max-width: 540px;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill {
  font-size: 13px; padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--muted);
  background: rgba(255,255,255,.03);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 14px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--text); transition: all .2s; cursor: pointer;
}
.btn:hover { background: rgba(255,255,255,.07); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--indigo), rgba(6,182,212,.9));
  border-color: transparent;
  box-shadow: 0 4px 22px rgba(99,102,241,.35);
}
.btn.primary:hover { opacity: .9; box-shadow: 0 6px 28px rgba(99,102,241,.5); }
.btn.secondary { border-color: var(--border-accent); }
.btn.icon-btn { padding: 12px; width: 44px; height: 44px; justify-content: center; }

.hero-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted2);
}

/* PHOTO */
.hero-photo {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; width: 380px; height: 380px;
}
.photo-ring {
  width: 380px; height: 380px; border-radius: 50%; padding: 4px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  animation: ring-glow 4s ease-in-out infinite;
}
@keyframes ring-glow {
  0%,100% { box-shadow: 0 0 50px rgba(99,102,241,.35), 0 0 90px rgba(6,182,212,.12); }
  50% { box-shadow: 0 0 70px rgba(6,182,212,.45), 0 0 110px rgba(99,102,241,.2); }
}
.photo-ring-inner {
  width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; background: var(--bg2);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.photo-ring-inner picture { display: block; width: 100%; height: 100%; }
.photo-ring-inner img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  border-radius: 50%;
}
.photo-badge-1, .photo-badge-2 {
  position: absolute; padding: 9px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
  backdrop-filter: blur(16px); white-space: nowrap;
  z-index: 10;
}
.photo-badge-1 {
  top: 44px; right: -18px;
  background: rgba(10,22,40,.95);
  border: 1px solid rgba(99,102,241,.5);
  box-shadow: 0 0 18px rgba(99,102,241,.45), 0 4px 16px rgba(0,0,0,.4);
  animation: badge-float-1 3.5s ease-in-out infinite;
}
.photo-badge-2 {
  bottom: 44px; left: -18px;
  background: rgba(10,22,40,.95);
  border: 1px solid rgba(6,182,212,.5);
  box-shadow: 0 0 18px rgba(6,182,212,.45), 0 4px 16px rgba(0,0,0,.4);
  animation: badge-float-2 3.5s ease-in-out infinite;
}
@keyframes badge-float-1 {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}
@keyframes badge-float-2 {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(6px) scale(1.03); }
}

.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
}
.scroll-dot {
  width: 4px; height: 32px; border-radius: 4px;
  background: linear-gradient(to bottom, var(--indigo), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%,100% { opacity: .3; transform: scaleY(.7); }
  50% { opacity: .9; transform: scaleY(1); }
}

/* ── SECTIONS ── */
.section { padding: 80px 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 900;
  letter-spacing: -.8px; margin-bottom: 14px; line-height: 1.1;
}
.section-desc { font-size: 16px; color: var(--muted); max-width: 480px; margin: 0 auto; }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.skill-category {
  background: rgba(10,22,40,.7); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(10px); transition: all .3s;
  position: relative; overflow: hidden;
}
.skill-category::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cat-color, var(--indigo)), transparent);
}
.skill-category:hover {
  border-color: rgba(99,102,241,.2); transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.skill-cat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--cat-color, var(--indigo));
}
.skill-category h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.skill-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stag {
  font-size: 12px; padding: 4px 10px; border-radius: 6px; font-weight: 600;
}
.stag.indigo { background: rgba(99,102,241,.14); color: #a5b4fc; border: 1px solid rgba(99,102,241,.2); }
.stag.cyan   { background: rgba(6,182,212,.12);  color: #67e8f9; border: 1px solid rgba(6,182,212,.2); }
.stag.emerald{ background: rgba(16,185,129,.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,.2); }
.stag.amber  { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.2); }
.stag.pink   { background: rgba(236,72,153,.12); color: #f9a8d4; border: 1px solid rgba(236,72,153,.2); }
.stag.violet { background: rgba(139,92,246,.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,.2); }

/* ── GLOWING BORDER ── */
.glow-border {
  pointer-events: none;
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  opacity: var(--glow-active, 0);
  transition: opacity 0.4s ease;
  z-index: 0;
  background: conic-gradient(
    from calc(var(--start, 0) * 1deg),
    #6366f100  0deg,
    #6366f1   15deg,
    #06b6d4   45deg,
    #8b5cf6   80deg,
    #ec4899  110deg,
    #6366f100 140deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.project-card {
  background: rgba(10,22,40,.8); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
  will-change: transform;
  transform: perspective(600px) rotateX(0deg) rotateY(0deg) translateY(0px);
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--indigo));
}
.project-card:hover {
  border-color: rgba(99,102,241,.2);
  box-shadow: 0 24px 50px rgba(0,0,0,.4);
}
.project-card-top { display: flex; align-items: center; justify-content: space-between; }
.project-icon {
  font-size: 13px; font-weight: 700; letter-spacing: .5px; line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.project-year {
  font-size: 12px; color: var(--muted2); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 100px; font-weight: 600;
}
.project-title { font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -.3px; }
.project-subtitle {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--card-accent, var(--indigo)); opacity: .9;
}
.project-desc { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag {
  font-size: 11px; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--muted);
  background: rgba(255,255,255,.03); font-weight: 600;
}
.project-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.github-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: var(--text); transition: all .2s;
}
.github-btn:hover {
  background: rgba(255,255,255,.1); transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
}
.demo-btn {
  display: inline-flex; align-items: center; padding: 10px 18px;
  border-radius: 10px; font-weight: 700; font-size: 13px;
  border: 1px solid var(--border-accent); color: #a5b4fc; transition: all .2s;
}
.demo-btn:hover { background: rgba(99,102,241,.1); transform: translateY(-1px); }

/* ── TIMELINE ── */
.timeline {
  position: relative; padding-left: 32px;
  max-width: 760px; margin: 0 auto 40px;
}
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--indigo), var(--cyan), transparent);
  opacity: .35;
}
.timeline-item { position: relative; padding: 0 0 36px 28px; }
.timeline-dot {
  position: absolute; left: -32px; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--dot-color, var(--indigo)); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--dot-color, var(--indigo)), 0 0 16px rgba(99,102,241,.4);
}
.timeline-content {
  background: rgba(10,22,40,.6); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; backdrop-filter: blur(8px);
}
.timeline-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.timeline-date { font-size: 13px; color: var(--muted2); font-weight: 600; }
.timeline-type {
  font-size: 11px; padding: 3px 10px; border-radius: 100px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.timeline-type.work { background: rgba(99,102,241,.14); color: #a5b4fc; border: 1px solid rgba(99,102,241,.2); }
.timeline-type.edu  { background: rgba(6,182,212,.12);  color: #67e8f9; border: 1px solid rgba(6,182,212,.2); }
.timeline-content h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.timeline-org { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.timeline-bullets {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.timeline-bullets li {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  padding-left: 18px; position: relative;
}
.timeline-bullets li::before {
  content: '▹'; position: absolute; left: 0;
  color: var(--indigo); font-size: 13px; line-height: 1.6;
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.about-extras {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 16px;
  max-width: 760px; margin: 0 auto;
}
.extra-card {
  background: rgba(10,22,40,.6); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; backdrop-filter: blur(8px);
}
.extra-card strong { font-size: 15px; display: block; margin-bottom: 14px; }
.extra-langs { display: flex; flex-direction: column; gap: 10px; }
.lang-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }

/* ── CONTACT ── */
.contact-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: start;
}
.contact-info-card, .contact-form-card {
  background: rgba(10,22,40,.85); border: 1px solid var(--border-accent);
  border-radius: 22px; padding: 36px 32px;
  backdrop-filter: blur(20px); position: relative; overflow: hidden;
}
.contact-info-card { text-align: left; }
.contact-info-card::before, .contact-form-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at top, rgba(99,102,241,.07) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(6,182,212,.05) 0%, transparent 60%);
}
.contact-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  position: relative; z-index: 1;
}
.contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 13px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--text); transition: all .2s;
}
.contact-btn:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.contact-btn.primary {
  background: linear-gradient(135deg, var(--indigo), rgba(6,182,212,.9));
  border-color: transparent;
  box-shadow: 0 4px 22px rgba(99,102,241,.35);
}
.contact-btn.primary:hover { opacity: .9; box-shadow: 0 6px 30px rgba(99,102,241,.5); }

/* Contact form */
.form-title {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  margin: 0 0 4px; position: relative; z-index: 1;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.form-group input, .form-group textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  color: var(--text); font-size: 13.5px; font-family: inherit;
  outline: none; transition: border-color .2s, box-shadow .2s;
  resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted2); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--indigo), rgba(6,182,212,.9));
  border: none; color: #fff; font-size: 14px; font-weight: 700;
  font-family: inherit; transition: opacity .2s, box-shadow .2s;
  box-shadow: 0 4px 22px rgba(99,102,241,.35);
}
.form-submit:hover { opacity: .88; box-shadow: 0 6px 30px rgba(99,102,241,.5); }
.form-submit:active { transform: scale(.98); }
.form-success {
  display: none; font-size: 13px; color: #34d399;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25);
  border-radius: 8px; padding: 10px 14px; text-align: center;
}

/* ── FOOTER ── */
footer {
  padding: 32px 0; border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.footer-copy { font-size: 13px; color: var(--muted2); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 13px; color: var(--muted2); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
.fade-up, .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible, .reveal.visible { opacity: 1; transform: translateY(0); }
.hero-content .fade-up:nth-child(1) { transition-delay: .05s; }
.hero-content .fade-up:nth-child(2) { transition-delay: .15s; }
.hero-content .fade-up:nth-child(3) { transition-delay: .25s; }
.hero-content .fade-up:nth-child(4) { transition-delay: .35s; }
.hero-content .fade-up:nth-child(5) { transition-delay: .45s; }
.hero-content .fade-up:nth-child(6) { transition-delay: .55s; }
.hero-content .fade-up:nth-child(7) { transition-delay: .65s; }
.hero-photo.fade-up { transition-delay: .3s; }

/* ── SPRACHDEMO ── */
.voice-demo {
  margin-top: 28px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 40px 44px;
  position: relative; overflow: hidden;
  backdrop-filter: blur(12px);
}
.voice-demo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 50%, rgba(6,182,212,.08), transparent 70%),
    radial-gradient(400px 260px at 10% 0%, rgba(99,102,241,.07), transparent 70%);
}
.voice-demo-title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 10px 0 10px; letter-spacing: -.4px; }
.voice-demo-desc { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.voice-demo-facts { list-style: none; margin: 0 0 16px; display: grid; gap: 7px; }
.voice-demo-facts li {
  font-size: 12.5px; color: var(--muted2); padding-left: 20px; position: relative;
}
.voice-demo-facts li::before {
  content: ''; position: absolute; left: 4px; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(6,182,212,.25); box-shadow: 0 0 0 1.5px rgba(6,182,212,.55);
}
.voice-demo-status { font-size: 13px; color: var(--muted); margin-top: 14px; min-height: 20px; }
.voice-demo-status.fehler { color: #f8a5a5; }
.voice-demo-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 340px;
}
#pulseCanvas {
  width: min(340px, 72vw); height: min(340px, 72vw);
  cursor: pointer;
}
.voice-demo-timer {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 22px; font-weight: 700; letter-spacing: 1px;
  color: rgba(165,243,252,.9);
  text-shadow: 0 0 18px rgba(6,182,212,.6);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
}
/* Schmale Textspalte neben dem Foto: zwei Zeilen reservieren */
@media (max-width: 1080px) and (min-width: 901px) {
  .hero-role { min-height: 62px; }
}
@media (max-width: 900px) {
  .voice-demo { grid-template-columns: 1fr; padding: 32px 24px; }
  .voice-demo-stage { min-height: 300px; order: -1; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-pills, .hero-actions, .hero-location { justify-content: center; }
  .hero-photo { order: -1; }
  .photo-badge-1 { right: -10px; top: 44px; }
  .photo-badge-2 { left: -10px; bottom: 44px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .about-extras { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-info-card, .contact-form-card { padding: 28px 20px; }
  .hero-name { letter-spacing: -1px; }
  .footer-inner { flex-direction: column; text-align: center; }
  /* Schmale Schirme: zwei Zeilen fuer den getippten Satz reservieren */
  .hero-role { font-size: 18px; min-height: 58px; }
  .hero-photo, .photo-ring { width: min(300px, 78vw); height: min(300px, 78vw); }
}

/* ── RUECKSICHT ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .reveal { opacity: 1; transform: none; transition: none; }
  .badge-dot, .photo-badge-1, .photo-badge-2, .photo-ring, .scroll-dot, #typewriter { animation: none; }
  * { transition-duration: .01ms !important; }
}
