*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0a0a0f;
  --surface: #111118;
  --card:    #16161f;
  --border:  #222232;
  --accent:  #7c6af7;
  --accent2: #3ecfb2;
  --text:    #e8e8f0;
  --muted:   #6b6b80;
  --mono:    'Space Mono', monospace;
  --sans:    'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--mono); font-size: 0.85rem; color: var(--accent2); letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-term-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent2);
  background: rgba(62,207,178,0.08);
  border: 1px solid rgba(62,207,178,0.2);
  border-radius: 4px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.nav-term-btn:hover { background: rgba(62,207,178,0.15); border-color: var(--accent2); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.35rem;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent2);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }
.nav-hide-mobile { display: block; }
.nav-mobile-only { display: none; }
.nav-term-btn-mobile {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent2);
  background: rgba(62,207,178,0.08);
  border: 1px solid rgba(62,207,178,0.2);
  border-radius: 4px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
  width: 100%;
  margin-top: 0.5rem;
}
.nav-term-btn-mobile:hover { background: rgba(62,207,178,0.15); border-color: var(--accent2); }

/* SECTIONS */
section { padding: 6rem 2rem; max-width: 960px; margin: 0 auto; }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: '> '; color: var(--accent); }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h1 em { font-style: normal; color: var(--accent); }
.hero-available {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--accent2);
  background: rgba(62,207,178,0.08); border: 1px solid rgba(62,207,178,0.25);
  border-radius: 20px; padding: 0.35rem 0.9rem; margin-bottom: 2rem;
  letter-spacing: 0.03em; position: relative; z-index: 1;
}
.avail-dot { font-size: 0.6rem; animation: blink 2s step-end infinite; }
.hero-manifesto { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.25rem; }
.manifesto-em { color: var(--accent2); font-weight: 600; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9381ff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { margin-top: 1.25rem; font-size: 0.85rem; padding: 0.5rem 1.1rem; }

/* SECTION HEADINGS */
h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
h2 span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 400;
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-divider { width: 40px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); margin-bottom: 2rem; }

/* ÜBER MICH */
.about-bio { display: flex; gap: 2.5rem; align-items: center; margin-bottom: 3rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.about-text p strong { color: var(--text); font-weight: 600; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag { font-family: var(--mono); font-size: 0.75rem; padding: 0.3rem 0.75rem; border-radius: 4px; background: var(--card); border: 1px solid var(--border); color: var(--accent2); }
.about-avatar {
  width: 180px; height: 180px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--accent);
  overflow: hidden; position: relative;
}
.about-avatar::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  z-index: -1;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.honest-box {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  border: 1px solid rgba(124,106,247,0.25); border-left: 3px solid var(--accent);
  border-radius: 8px; background: rgba(124,106,247,0.05);
}
.honest-label {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.honest-box p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 0.75rem; }
.honest-box p:last-child { margin-bottom: 0; }
.honest-box p strong { color: var(--text); }

.about-stats-row {
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  gap: 0;
}
.stat-item { flex: 1; text-align: center; padding: 0 1.5rem; }
.stat-divider { width: 1px; height: 3rem; background: var(--border); flex-shrink: 0; }
.stat-number { font-family: var(--mono); font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* GASTRO NERD */
#gastro { border-top: 1px solid var(--border); }
.gastro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.gastro-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; border-left: 3px solid var(--accent2); }
.gastro-card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.gastro-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.gastro-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.gastro-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.gastro-list li { font-size: 0.9rem; color: var(--muted); line-height: 1.6; display: flex; align-items: flex-start; gap: 0.6rem; }
.gastro-list li::before { content: '→'; color: var(--accent2); font-family: var(--mono); flex-shrink: 0; }

/* SO ARBEITE ICH */
#ansatz { border-top: 1px solid var(--border); }
.ansatz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.ansatz-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; border-top: 3px solid var(--accent); }
.ansatz-num { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.ansatz-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.ansatz-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* PROJEKTE */
#projekte { border-top: 1px solid var(--border); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: 0; transition: opacity 0.2s;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.project-card:hover::before { opacity: 1; }
.project-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.project-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.25rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-pill { font-family: var(--mono); font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 3px; background: rgba(124,106,247,0.12); color: var(--accent); border: 1px solid rgba(124,106,247,0.25); }
.project-status { position: absolute; top: 1rem; right: 1rem; font-family: var(--mono); font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: 20px; letter-spacing: 0.05em; }
.status-live { background: rgba(62,207,178,0.12); color: var(--accent2); border: 1px solid rgba(62,207,178,0.3); }
.status-wip { background: rgba(107,107,128,0.15); color: var(--muted); border: 1px solid var(--border); }
.projects-grid { grid-template-columns: repeat(3, 1fr); }
.proj-reel { overflow: hidden; display: flex; flex-direction: column; padding-top: 4px; margin-top: -4px; }
.project-card { transition: border-color 0.2s; flex: 1; }
.project-card.proj-hidden { display: none; }
@keyframes reelOut { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-90px); opacity: 0; } }
@keyframes reelIn  { 0% { transform: translateY(90px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes reelOutBack { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(90px); opacity: 0; } }
@keyframes reelInBack  { 0% { transform: translateY(-90px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.proj-reel.spinning-out      .project-card { animation: reelOut     0.28s ease-in forwards; }
.proj-reel.spinning-out-back .project-card { animation: reelOutBack 0.28s ease-in forwards; }
.proj-reel.spinning-in       .project-card { animation: reelIn      0.38s cubic-bezier(0.34,1.4,0.64,1) forwards; }
.proj-reel.spinning-in-back  .project-card { animation: reelInBack  0.38s cubic-bezier(0.34,1.4,0.64,1) forwards; }
@keyframes projFadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-12px); } }
@keyframes projFadeIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.proj-reel.fade-out .project-card { animation: projFadeOut 0.2s ease-in forwards; }
.proj-reel.fade-in  .project-card { animation: projFadeIn  0.25s ease-out forwards; }
.proj-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2rem; }
.proj-nav-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(10,10,15,0.75); color: #fff; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1; padding: 0; font-family: var(--mono);
}
.proj-nav-btn span { display: block; transform: translateY(-1px); }
.proj-nav-btn:hover:not(:disabled) { background: var(--accent); }
.proj-nav-btn:disabled { opacity: 0.25; cursor: default; }
.proj-dots { display: flex; gap: 0.5rem; }
.proj-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; transition: all 0.2s; }
.proj-dot.active { background: var(--accent); transform: scale(1.4); }

/* KONFIGURATOR */
#konfigurator { border-top: 1px solid var(--border); }
.config-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; margin-top: 2rem; }
.config-options { align-self: start; }
.config-group { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; }
.config-group-title { font-family: var(--mono); font-size: 0.75rem; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.config-option { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: color 0.15s; }
.config-option:last-child { border-bottom: none; }
.config-option:hover .config-label { color: var(--accent); }
.config-option input[type="checkbox"],
.config-option input[type="radio"] {
  appearance: none; width: 18px; height: 18px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg); cursor: pointer; margin-right: 0.75rem; flex-shrink: 0; position: relative; transition: all 0.15s;
}
.config-option input[type="radio"] { border-radius: 50%; }
.config-option input:checked { background: var(--accent); border-color: var(--accent); }
.config-option input:checked::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: white; font-size: 11px; font-weight: 700; }
.config-option input[type="radio"]:checked::after { content: ''; width: 7px; height: 7px; background: white; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.config-left { display: flex; align-items: center; }
.config-label { font-size: 0.92rem; }
.config-price { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.config-result-wrapper { padding-bottom: 1rem; }
.config-result { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--accent); border-radius: 12px; padding: 1.75rem; }
.result-title { font-family: var(--mono); font-size: 0.75rem; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.result-items { margin-bottom: 1.5rem; min-height: 60px; }
.result-item { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.result-item:last-child { border-bottom: none; }
.result-item span:last-child { color: var(--text); font-family: var(--mono); }
.result-total { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 0.5rem; }
.result-total-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }
.result-total-price { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1; }
.result-range { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; font-family: var(--mono); }
.result-cta { display: block; width: 100%; margin-top: 1.5rem; text-align: center; }
.result-empty { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* KONTAKT */
#kontakt { border-top: 1px solid var(--border); }
.kontakt-inner { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; text-align: center; position: relative; overflow: hidden; }
.kontakt-inner::after { content: ''; position: absolute; bottom: -60px; right: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(124,106,247,0.15), transparent 70%); pointer-events: none; }
.kontakt-inner h2 { margin-bottom: 0.75rem; }
.kontakt-inner p { color: var(--muted); max-width: 440px; margin: 0 auto 2rem; }
.kontakt-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
footer { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--border); font-family: var(--mono); }
.footer-links { margin-top: 0.75rem; display: flex; gap: 1.5rem; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent2); }

/* HERO TERMINAL PREVIEW */
.terminal-preview {
  margin-top: 2.5rem; background: #0d0d14; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; max-width: 520px; font-family: var(--mono); font-size: 0.8rem;
  position: relative; z-index: 1; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.term-chrome { display: flex; align-items: center; gap: 0.35rem; padding: 0.55rem 1rem; background: #18181f; border-bottom: 1px solid var(--border); }
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green { background: #28c840; }
.term-chrome-title { flex: 1; text-align: center; color: var(--muted); font-size: 0.7rem; }
.term-body { padding: 1.25rem 1.5rem; min-height: 130px; white-space: pre-wrap; line-height: 1.9; }
.t-prompt { color: var(--accent2); }
.t-output { color: var(--muted); }
.t-highlight { color: var(--accent); }
.t-cursor { display: inline-block; width: 7px; height: 0.85em; background: var(--accent2); vertical-align: text-bottom; animation: blink 1s step-end infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* INTERACTIVE TERMINAL OVERLAY */
.iterm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,15,0.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.iterm-overlay.open { opacity: 1; pointer-events: all; }
.iterm-window {
  background: #0d0d14; border: 1px solid rgba(124,106,247,0.3); border-radius: 12px;
  width: 100%; max-width: 700px; max-height: 75vh; display: flex; flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(124,106,247,0.1); overflow: hidden;
}
.iterm-chrome { display: flex; align-items: center; gap: 0.35rem; padding: 0.7rem 1rem; background: #18181f; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.iterm-chrome-title { flex: 1; text-align: center; color: var(--muted); font-size: 0.72rem; font-family: var(--mono); }
.iterm-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.8rem; font-family: var(--mono); padding: 0 0.2rem; transition: color 0.15s; line-height: 1; }
.iterm-close:hover { color: var(--text); }
.iterm-output { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.8; color: var(--text); }
.iterm-output .iline { display: block; }
.iterm-output .iline.iprompt { color: var(--accent2); }
.iterm-output .iline.iout { color: var(--muted); }
.iterm-output .iline.isuccess { color: var(--accent2); }
.iterm-output .iline.ierror { color: #ff6b6b; }
.iterm-output .iline.iempty { height: 0.6rem; display: block; }
.iterm-row { display: flex; align-items: center; padding: 0.6rem 1.25rem; border-top: 1px solid var(--border); gap: 0.5rem; flex-shrink: 0; }
.iterm-ps1 { font-family: var(--mono); font-size: 0.82rem; color: var(--accent2); white-space: nowrap; }
.iterm-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 0.82rem; caret-color: var(--accent2); }

/* DETAIL PAGES — body.detail-page overrides */
.detail-page section { padding: 5rem 2rem; max-width: 900px; }
.detail-page #hero { min-height: 60vh; }
.detail-page h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 1.25rem; }
.detail-page .hero-eyebrow { margin-bottom: 1rem; }
.detail-page .hero-sub { margin-bottom: 2rem; }

.back-link {
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  text-decoration: none; letter-spacing: 0.05em; margin-bottom: 2rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s; position: relative; z-index: 1;
}
.back-link:hover { color: var(--accent2); }

.tech-row { display: flex; flex-wrap: wrap; gap: 0.5rem; position: relative; z-index: 1; }

/* SCREENSHOTS — 3-UP CAROUSEL */
#screenshots { border-top: 1px solid var(--border); }
.screenshot-grid { position: relative; margin-top: 1.5rem; }
.screenshot-viewport { overflow: hidden; }
.screenshot-track {
  display: flex; align-items: center;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
}
.screenshot-slot {
  flex: 0 0 33.333%; display: flex; align-items: center; justify-content: center;
  padding: 0.75rem; flex-direction: column; gap: 0.75rem;
  color: var(--muted); font-size: 0.85rem;
  transform: scale(0.82); opacity: 0.45;
  transition: transform 0.38s ease, opacity 0.38s ease;
}
.screenshot-slot.active { transform: scale(1); opacity: 1; }
.screenshot-slot img {
  max-width: 100%; max-height: 380px; object-fit: contain;
  border-radius: 10px; cursor: zoom-in; display: block; transition: opacity 0.2s;
}
.screenshot-slot img:hover { opacity: 0.85; }
.screenshot-icon { font-size: 2rem; opacity: 0.4; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(10,10,15,0.75); color: #fff; font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 5;
}
.slider-btn:hover { background: var(--accent); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.8rem 0 0; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active { background: var(--accent); transform: scale(1.35); }

/* LIGHTBOX */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
  padding: 1.5rem; cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 100%; max-height: 90vh; border-radius: 12px;
  object-fit: contain; box-shadow: 0 0 60px rgba(0,0,0,0.8);
  cursor: default;
}
.lightbox-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  background: none; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1; opacity: 0.7;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(10,10,15,0.75); color: #fff; font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 5;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* CONTENT */
#problem, #loesung, #gelernt { border-top: 1px solid var(--border); }
.content-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; margin-top: 1.5rem; }
.content-card p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.content-card p:last-child { margin-bottom: 0; }
.content-card p strong { color: var(--text); font-weight: 600; }

.feature-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.feature-list li::before { content: '→'; color: var(--accent2); font-family: var(--mono); flex-shrink: 0; margin-top: 0.05rem; }
.feature-list li strong { color: var(--text); }

.before-after { display: grid; grid-template-columns: 1fr auto 1fr; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ba-col { padding: 2rem; }
.ba-divider { width: 1px; background: var(--border); margin: 1.5rem 0; }
.ba-header { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1.25rem; }
.ba-before .ba-header { color: #ff6b6b; }
.ba-after .ba-header { color: var(--accent2); }
.ba-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.ba-list li { font-size: 0.9rem; line-height: 1.5; display: flex; gap: 0.6rem; align-items: flex-start; }
.ba-list li::before { flex-shrink: 0; font-family: var(--mono); margin-top: 0.05rem; }
.ba-before .ba-list li { color: var(--muted); }
.ba-before .ba-list li::before { content: '—'; color: #ff6b6b; }
.ba-after .ba-list li { color: var(--text); }
.ba-after .ba-list li::before { content: '✓'; color: var(--accent2); }
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.learn-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; border-left: 3px solid var(--accent); }
.learn-card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--text); }
.learn-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* CTA */
#cta { border-top: 1px solid var(--border); }
.cta-inner { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-inner::after { content: ''; position: absolute; bottom: -60px; right: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(124,106,247,0.15), transparent 70%); pointer-events: none; }
.cta-inner h2 { margin-bottom: 0.75rem; }
.cta-inner p { color: var(--muted); max-width: 440px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  nav { padding: 1rem; flex-wrap: wrap; }
  .nav-hamburger { display: flex; }
  .nav-hide-mobile { display: none; }
  .nav-mobile-only { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    list-style: none;
    animation: slideDown 0.3s ease;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.5rem 0; }
  .nav-hide-xs { display: none; }
  .about-bio { flex-direction: column; align-items: center; text-align: center; }
  .about-tags { justify-content: center; }
  .about-stats-row { flex-direction: column; gap: 2rem; }
  .stat-divider { width: 3rem; height: 1px; }
  .limit-row { grid-template-columns: 2rem 1fr; grid-template-rows: auto auto; }
  .limit-desc { grid-column: 2; color: var(--muted); }
  .kontakt-inner { padding: 2rem 1.25rem; }
  section { padding: 4rem 1.25rem; }
  .config-layout { grid-template-columns: 1fr; }
  .config-result { position: static; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-carousel { overflow: hidden; }
  .projects-grid.mobile-slide-mode {
    display: flex;
    flex-direction: row;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    grid-template-columns: unset;
    gap: 0;
    margin-top: 0;
  }
  .projects-grid.mobile-slide-mode .proj-reel {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .screenshot-slot { flex: 0 0 100%; transform: scale(1); }
  .ansatz-grid { grid-template-columns: 1fr; }
}
