/* ==========================================================================
   Roxanne König — Portfolio & CV (One-Pager)
   Modern · zweisprachig · Dark/Light Mode
   ========================================================================== */

/* ---------- Variablen ---------- */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --bg: #f6f8fc;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --border: rgba(71, 85, 105, 0.14);
  --border-strong: rgba(71, 85, 105, 0.3);

  --text: #1e293b;
  --text-soft: #475569;
  --text-mute: #64748b;
  --text-faint: #94a3b8;

  --brand-50: #f2f6fa;  --brand-100: #e2eaf3;  --brand-200: #c4d4e6;
  --brand-300: #9db7d3; --brand-400: #7397bc;  --brand-500: #557da6;
  --brand-600: #46688d; --brand-700: #3a5472;  --brand-800: #31475f;
  --brand-900: #2a3d50; --brand-950: #1c2834;

  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --wa: #25d366;

  --gradient: linear-gradient(120deg, #557da6 0%, #46688d 45%, #0d9488 100%);
  --gradient-soft: linear-gradient(120deg, rgba(85, 125, 166, 0.14), rgba(13, 148, 136, 0.14));

  --radius-sm: 0.6rem;
  --radius: 0.95rem;
  --radius-lg: 1.3rem;
  --radius-xl: 1.8rem;

  --shadow-sm: 0 1px 2px rgba(13, 40, 90, 0.05), 0 6px 18px rgba(13, 40, 90, 0.05);
  --shadow-md: 0 8px 24px rgba(13, 40, 90, 0.08), 0 16px 44px rgba(13, 40, 90, 0.07);
  --shadow-lg: 0 20px 55px rgba(13, 40, 90, 0.14);
  --shadow-accent: 0 10px 28px rgba(13, 148, 136, 0.35);

  --header-bg: rgba(246, 248, 252, 0.76);
  --terminal-bg: #0d1526;
  --terminal-text: #dbe6f6;
  --terminal-border: rgba(148, 178, 240, 0.18);

  --ring: rgba(20, 184, 166, 0.45);
  --header-h: 4rem;
}

html.dark {
  --bg: #060a14;
  --bg-alt: rgba(15, 23, 42, 0.45);
  --surface: rgba(15, 23, 42, 0.55);
  --surface-strong: rgba(15, 23, 42, 0.92);
  --surface-solid: #0f172a;
  --border: rgba(100, 116, 139, 0.22);
  --border-strong: rgba(148, 163, 184, 0.38);

  --text: #e2e8f0;
  --text-soft: #cbd5e1;
  --text-mute: #94a3b8;
  --text-faint: #64748b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 10px 30px rgba(13, 148, 136, 0.3);

  --header-bg: rgba(6, 10, 20, 0.78);
  --terminal-bg: #0b1220;
  --terminal-border: rgba(100, 130, 190, 0.22);
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

html.dark { color-scheme: dark; }
:root { color-scheme: light; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(70, 104, 141, 0.28); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 0.4rem;
}

.hidden { display: none !important; }

.container { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

/* Scrollbar (modern, dezent) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-400); }

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -18px rgba(13, 40, 90, 0.25);
}
html.dark .site-header.scrolled { box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.7); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
}

/* Scroll-Fortschrittsbalken */
.scroll-progress {
  position: absolute; left: 0; bottom: -2px; height: 2px; width: 0%;
  background: var(--gradient);
  border-radius: 0 999px 999px 0;
  transition: width 0.1s linear;
}

/* Brand / Logo */
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text);
}
.brand-text .accent { color: var(--brand-500); }
html.dark .brand-text .accent { color: var(--brand-300); }

/* Desktop-Navigation */
.main-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; color: var(--text-mute);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.nav-link:hover { background: rgba(70, 104, 141, 0.09); color: var(--brand-600); }
html.dark .nav-link:hover { background: rgba(157, 183, 211, 0.12); color: var(--brand-300); }
.nav-link.active { background: rgba(13, 148, 136, 0.12); color: var(--teal-600); }
html.dark .nav-link.active { background: rgba(45, 212, 191, 0.14); color: #5eead4; }

/* Header-Steuerung */
.header-controls { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.lang-switch {
  display: flex; align-items: center; gap: 0.15rem;
  padding: 0.18rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}
html.dark .lang-switch { background: rgba(15, 23, 42, 0.6); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700;
  color: var(--text-mute);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--brand-600); color: #fff; box-shadow: 0 2px 6px rgba(70, 104, 141, 0.4); }
html.dark .lang-switch button.active { background: var(--brand-300); color: #0f172a; }

.icon-btn {
  display: grid; place-items: center;
  width: 2.35rem; height: 2.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-mute);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
html.dark .icon-btn { background: rgba(15, 23, 42, 0.6); }
.icon-btn:hover { color: var(--teal-600); border-color: var(--teal-500); transform: translateY(-1px); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
#iconSun { display: none; }
html.dark #iconSun { display: block; }
html.dark #iconMoon { display: none; }

/* Hamburger */
.menu-btn { display: none; }
#iconMenuClose { display: none; }
.menu-btn[aria-expanded="true"] #iconMenuOpen { display: none; }
.menu-btn[aria-expanded="true"] #iconMenuClose { display: block; }

/* Mobile Menü */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 0 1.1rem; }
.mobile-menu .nav-link { border-radius: var(--radius-sm); padding: 0.7rem 1rem; font-size: 0.95rem; }

@media (max-width: 767.98px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   SEKTIONEN
   ========================================================================== */
.section { padding-block: clamp(4.5rem, 9vw, 7rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 46rem; }
.section-title {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
}
.section-lead { margin-top: 0.9rem; color: var(--text-mute); max-width: 40rem; }

/* Chip / Eyebrow */
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  border: 1px solid rgba(70, 104, 141, 0.28);
  border-radius: 999px;
  background: rgba(70, 104, 141, 0.08);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--brand-600);
}
html.dark .chip { border-color: rgba(157, 183, 211, 0.3); background: rgba(157, 183, 211, 0.1); color: var(--brand-300); }
.chip svg { width: 0.85rem; height: 0.85rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(70, 104, 141, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}
html.dark .hero-dots { background-image: radial-gradient(circle, rgba(148, 163, 184, 0.13) 1px, transparent 1px); }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.hero-blob-1 { top: -8rem; left: -8rem; width: 24rem; height: 24rem; background: rgba(85, 125, 166, 0.22); }
.hero-blob-2 { right: -10rem; top: 30%; width: 26rem; height: 26rem; background: rgba(13, 148, 136, 0.16); }
html.dark .hero-blob-1 { background: rgba(85, 125, 166, 0.16); }
html.dark .hero-blob-2 { background: rgba(13, 148, 136, 0.1); }

.hero-grid {
  position: relative;
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }

.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
}
.hero-role {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-bio { margin-top: 1.2rem; max-width: 34rem; color: var(--text-mute); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 22px -10px rgba(70, 104, 141, 0.55); }
.btn-primary:hover { background: var(--brand-700); box-shadow: 0 12px 28px -10px rgba(70, 104, 141, 0.6); }
html.dark .btn-primary { color: #fff; }

.btn-accent { background: var(--gradient); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { box-shadow: 0 14px 32px -10px rgba(13, 148, 136, 0.5); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px -10px rgba(37, 211, 102, 0.55); }
.btn-wa:hover { background: #1eb857; }

.btn-ghost {
  background: var(--surface); color: var(--text-soft);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: var(--brand-600); border-color: var(--brand-500); }
html.dark .btn-ghost:hover { color: var(--brand-300); }

/* ==========================================================================
   HERO-KARTE: Terminal
   ========================================================================== */
.hero-card { position: relative; }

.hero-card-glow {
  position: absolute; inset: -6%;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  opacity: 0.22; filter: blur(34px);
  pointer-events: none;
}

/* ---------- Hero-ID (Avatar rechteckig mit runden Ecken, wie Buttons) ---------- */
.hero-id { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 1.6rem); }
.hero-avatar {
  position: relative; flex-shrink: 0;
  width: clamp(6rem, 16vw, 9rem);
  aspect-ratio: 4/5;
  padding: 1px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  box-shadow: var(--shadow-lg);
}
.hero-avatar::after {
  content: ''; position: absolute; inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  pointer-events: none;
}
.hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  border-radius: calc(var(--radius-lg) - 1px);
}
.hero-id-text { min-width: 0; }

/* ---------- Terminal ---------- */
.terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--terminal-text);
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(148, 178, 240, 0.12);
}
.terminal-bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span {
  margin-left: 0.4rem;
  color: rgba(219, 230, 246, 0.5);
  font-size: 0.72rem; letter-spacing: 0.05em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.terminal-body { padding: 1.15rem 1.25rem 1.35rem; overflow-x: auto; }
.terminal-body .line {
  display: flex; align-items: baseline; gap: 0.6rem;
  white-space: nowrap;
}
.terminal-body .line + .line { margin-top: 0.45rem; }

.terminal-body .prompt { color: var(--teal-500); flex-shrink: 0; user-select: none; }
.terminal-body .cmd { color: #e9eef9; }
.terminal-body .ok { color: var(--emerald-400); flex-shrink: 0; user-select: none; }
.terminal-body .dim { color: rgba(219, 230, 246, 0.78); }
.terminal-body .jkey { color: var(--brand-300); }
.terminal-body .jval { color: var(--emerald-400); }
.terminal-body .cursor { display: inline-block; width: 0.55em; height: 1.05em; background: var(--teal-500); animation: blink 1.1s steps(2, start) infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* Zeilen-Einblendung */
.terminal-body .line { opacity: 0; animation: tFade 0.45s ease forwards; }
.terminal-body .line:nth-child(1) { animation-delay: 0.15s; }
.terminal-body .line:nth-child(2) { animation-delay: 0.5s; }
.terminal-body .line:nth-child(3) { animation-delay: 0.85s; }
.terminal-body .line:nth-child(4) { animation-delay: 1.1s; }
.terminal-body .line:nth-child(5) { animation-delay: 1.3s; }
.terminal-body .line:nth-child(6) { animation-delay: 1.5s; }
.terminal-body .line:nth-child(7) { animation-delay: 1.7s; }
.terminal-body .line:nth-child(8) { animation-delay: 1.9s; }
.terminal-body .line:nth-child(9) { animation-delay: 2.1s; }
.terminal-body .line:nth-child(10) { animation-delay: 2.3s; }
.terminal-body .line:nth-child(11) { animation-delay: 2.5s; }
.terminal-body .line:nth-child(12) { animation-delay: 2.7s; }
@keyframes tFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-top: 3rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  padding: 1.2rem 1rem; text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card .label { margin-top: 0.2rem; font-size: 0.72rem; font-weight: 600; color: var(--text-faint); }

/* ==========================================================================
   MARQUEE (Tech-Strip)
   ========================================================================== */
.marquee { overflow: hidden; padding-block: 0.4rem; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; gap: 2rem; padding-right: 2rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .chip { flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   KARTEN
   ========================================================================== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(13, 148, 136, 0.35); }

.card-pad { padding: 1.6rem; }

.icon-box {
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; flex-shrink: 0;
  border-radius: 0.85rem;
  background: rgba(70, 104, 141, 0.09);
  color: var(--brand-600);
}
html.dark .icon-box { background: rgba(157, 183, 211, 0.12); color: var(--brand-300); }
.icon-box svg { width: 1.3rem; height: 1.3rem; }

.period-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(70, 104, 141, 0.25);
  border-radius: 999px;
  background: rgba(70, 104, 141, 0.08);
  font-size: 0.74rem; font-weight: 600;
  color: var(--brand-600);
  white-space: nowrap;
}
html.dark .period-chip { border-color: rgba(157, 183, 211, 0.3); background: rgba(157, 183, 211, 0.1); color: var(--brand-300); }
.period-chip svg { width: 0.85rem; height: 0.85rem; }

.skill-tag {
  display: inline-flex; align-items: center;
  padding: 0.32rem 0.8rem;
  border: 1px solid rgba(13, 148, 136, 0.24);
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.07);
  font-size: 0.78rem; font-weight: 600;
  color: var(--teal-600);
}
html.dark .skill-tag { color: #5eead4; border-color: rgba(45, 212, 191, 0.24); background: rgba(45, 212, 191, 0.08); }

.check-item { display: flex; gap: 0.65rem; align-items: flex-start; }
.check-item svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; margin-top: 0.22rem; color: var(--emerald-500); }

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline { position: relative; margin-top: 3rem; }
.timeline::before {
  content: '';
  position: absolute; top: 0.5rem; bottom: 0.5rem; left: 0.72rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-500), var(--teal-500) 70%, transparent);
  opacity: 0.55;
  border-radius: 999px;
}
.timeline-item { position: relative; padding-left: 2.6rem; }
.timeline-item + .timeline-item { margin-top: 1.6rem; }
.timeline-item::before {
  content: '';
  position: absolute; left: 0.28rem; top: 1.15rem;
  width: 0.95rem; height: 0.95rem;
  border-radius: 50%;
  background: var(--brand-600);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--brand-500);
}
.timeline-item .card { padding: 1.5rem; }

/* ==========================================================================
   GRIDS
   ========================================================================== */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }

/* ==========================================================================
   FORMULAR
   ========================================================================== */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  color: var(--text);
  font-family: var(--font-sans); font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--ring); }
html.dark .form-input { background: #0f172a; }

.error-msg { display: none; margin-top: 0.35rem; font-size: 0.75rem; font-weight: 500; color: #ef4444; }
.error-msg.show { display: block; }
.field.has-error .form-input { border-color: #f87171; }
.field.has-error .form-input:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25); }
.field.has-error .error-msg { display: block; }

/* Honeypot-Feld (unsichtbar, nur für Bots) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}

/* Consent-Checkbox */
.consent-row {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin-top: 1.1rem;
  font-size: 0.82rem; color: var(--text-soft);
  line-height: 1.45;
}
.consent-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem;
  border: 1px solid var(--border-strong); border-radius: 0.3rem;
  background: var(--surface-solid);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
html.dark .consent-row input[type="checkbox"] { background: #0f172a; }
.consent-row input[type="checkbox"]:checked {
  background: var(--teal-600); border-color: var(--teal-600);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 0.8rem; background-position: center; background-repeat: no-repeat;
}
html.dark .consent-row input[type="checkbox"]:checked { background-color: #5eead4; border-color: #5eead4; }
.consent-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.consent-row a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
html.dark .consent-row a { color: #5eead4; }

/* Slide-to-Send Button */
.slide-submit {
  position: relative;
  display: flex; align-items: center;
  width: 100%; max-width: 22rem;
  height: 3.2rem; margin-top: 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  user-select: none; -webkit-user-select: none;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.slide-submit:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.slide-submit.dragging { border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--ring); }
.slide-submit.complete {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.08);
}
html.dark .slide-submit.complete { background: rgba(52, 211, 153, 0.12); }

.slide-thumb {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  color: #fff;
  transition: transform 0.08s linear;
  pointer-events: auto;
  cursor: grab;
}
.slide-thumb:active { cursor: grabbing; }
.slide-thumb svg { width: 1.1rem; height: 1.1rem; }
.slide-submit.complete .slide-thumb {
  background: var(--emerald-500);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.slide-submit.complete .slide-thumb svg { display: none; }
.slide-submit.complete .slide-thumb::after {
  content: '';
  width: 1.1rem; height: 0.55rem;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translateY(-2px);
}

.slide-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 600; color: var(--text-mute);
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.slide-submit.complete .slide-label { opacity: 0; }
.slide-submit .slide-label .icon { display: inline-flex; margin-right: 0.5rem; }
.slide-submit .slide-label .icon svg { width: 1rem; height: 1rem; }

.slide-success {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 700; color: var(--emerald-600);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
html.dark .slide-success { color: #34d399; }
.slide-submit.complete .slide-success { opacity: 1; }
.slide-success svg { width: 1.2rem; height: 1.2rem; }

/* ==========================================================================
   MODAL (Impressum & Datenschutz)
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  visibility: hidden; opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  width: min(44rem, 100%);
  max-height: min(85vh, 52rem);
  display: flex; flex-direction: column;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s ease;
}
.modal.open .modal-panel { transform: none; }
html.dark .modal-panel { background: #0d1526; }

.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 1.2rem; font-weight: 700; }
.modal-close {
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent; color: var(--text-mute);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { color: #ef4444; border-color: #f87171; transform: rotate(90deg); }
.modal-close svg { width: 1rem; height: 1rem; }

.modal-body { padding: 1.5rem; overflow-y: auto; font-size: 0.9rem; }
.modal-body h3 { margin-top: 1.4rem; font-size: 0.98rem; font-weight: 700; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin-top: 0.55rem; color: var(--text-soft); }
.modal-body p:first-of-type { margin-top: 0.35rem; }
.modal-body a { color: var(--teal-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html.dark .modal-body a { color: #5eead4; }
.modal-intro { margin-top: 0.4rem !important; font-weight: 600; color: var(--text-mute); }

body.modal-open { overflow: hidden; }

/* ==========================================================================
   WHATSAPP-FLOAT
   ========================================================================== */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 120;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 1.8rem; height: 1.8rem; }
.wa-float::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 999px;
  border: 2px solid var(--wa);
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 180;
  transform: translate(-50%, 14px);
  display: flex; align-items: center; gap: 0.7rem;
  max-width: min(92vw, 30rem);
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem; font-weight: 500; color: var(--text);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: var(--emerald-500); }

/* ==========================================================================
   ABOUT-FACTS, SKILLS, PROJEKTE
   ========================================================================== */
.fact-card { text-align: center; }
.fact-card .icon-box { margin-inline: auto; margin-bottom: 0.9rem; }
.fact-card .fact-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); }
.fact-card .fact-value { margin-top: 0.15rem; font-size: 0.9rem; font-weight: 600; color: var(--text); }

.skill-cat-head { display: flex; align-items: center; gap: 0.8rem; }
.skill-cat-head h3 { font-size: 1rem; font-weight: 700; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }

.project-card { display: flex; flex-direction: column; height: 100%; }
.project-icon {
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem;
  border-radius: 0.85rem;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(13, 148, 136, 0.5);
}
.project-icon svg { width: 1.3rem; height: 1.3rem; }
.project-bullets { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.9rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }

/* Sprach-Level-Balken */
.level-row .level-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.78rem; font-weight: 600; }
.level-row .level-head .lvl { color: var(--text-faint); }
.level-track { margin-top: 0.4rem; height: 0.45rem; border-radius: 999px; background: rgba(100, 116, 139, 0.2); overflow: hidden; }
.level-bar { height: 100%; border-radius: 999px; background: var(--gradient); }

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }

.contact-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-row + .contact-row { margin-top: 1.15rem; }
.contact-row > span:last-child { min-width: 0; }
.contact-row .row-label {
  display: block;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint);
}
.contact-row .row-value {
  display: block;
  margin-top: 0.1rem; font-size: 0.92rem; font-weight: 600; color: var(--text); transition: color 0.2s ease;
}
a.contact-row:hover .row-value { color: var(--brand-600); }
html.dark a.contact-row:hover .row-value { color: var(--brand-300); }

.contact-note {
  margin-top: 1.4rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius);
  background: rgba(13, 148, 136, 0.07);
  font-size: 0.85rem; line-height: 1.6;
  color: var(--teal-600);
}
html.dark .contact-note { color: #5eead4; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-top {
  display: grid; gap: 2rem;
  padding-block: 2.8rem 2.2rem;
}
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.2fr 1fr; } }
.footer-tagline { margin-top: 0.8rem; max-width: 24rem; font-size: 0.88rem; color: var(--text-mute); }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1.5rem; align-content: start; }
.footer-nav .nav-link { padding: 0.3rem 0.5rem; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 0.7rem; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-faint);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.legal-btn {
  background: none; border: 0; cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  color: var(--text-mute);
  border-radius: 0.4rem;
  transition: color 0.2s ease;
}
.legal-btn:hover { color: var(--brand-600); }
html.dark .legal-btn:hover { color: var(--brand-300); }
.footer-legal { display: flex; gap: 0.6rem; align-items: center; }
.footer-legal .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

/* ==========================================================================
   RESPONSIVE-FIXES (mobil)
   ========================================================================== */
@media (max-width: 639.98px) {
  .hero-title { font-size: clamp(2rem, 7.5vw, 2.6rem); }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.1rem); }
}

@media (max-width: 479.98px) {
  .hero-id { gap: 1rem; }
  .hero-avatar { width: clamp(4.5rem, 24vw, 5.5rem); }
  .hero-role { font-size: 0.98rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .terminal-bar { padding: 0.65rem 0.9rem; }
  .terminal-body { padding: 0.9rem 1rem 1.1rem; font-size: 0.74rem; }
  .card-pad { padding: 1.25rem; }
  .timeline-item .card { padding: 1.2rem; }
  .grid-4 { gap: 0.8rem; }
  .stat-card .num { font-size: 1.4rem; }
  .modal-head { padding: 1rem 1.2rem; }
  .modal-body { padding: 1.2rem; }
}

@media (max-width: 419.98px) {
  .container { width: min(72rem, 100% - 1.75rem); }
  .header-inner { gap: 0.55rem; }
  .brand-text { font-size: 0.85rem; }
  .header-controls { gap: 0.35rem; }
  .lang-switch button { padding: 0.24rem 0.5rem; font-size: 0.68rem; }
  .icon-btn { width: 2.1rem; height: 2.1rem; }
}

@media (max-width: 359.98px) {
  .hero-id { gap: 0.8rem; }
  .hero-avatar { width: clamp(4rem, 26vw, 4.75rem); }
  .hero-title { font-size: clamp(1.55rem, 8vw, 1.85rem); }
  .hero-role { font-size: 0.92rem; }
  .hero-bio { font-size: 0.92rem; }
  .stats-grid { gap: 0.6rem; }
  .consent-row { font-size: 0.78rem; }
  .lang-switch button { padding: 0.22rem 0.45rem; }
  .icon-btn { width: 2rem; height: 2rem; }
}

/* ==========================================================================
   REVEAL-ANIMATIONEN
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .wa-float::before { animation: none; }
  .terminal-body .line { opacity: 1; animation: none; }
}
