/* ===========================
   DESIGN SYSTEM & CSS RESET
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Masculine Steel Blue Palette */
  --bg-primary: #F8FAFC;
  --bg-secondary: #EFF4F8;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent-primary: #2563EB;
  --accent-secondary: #1D4ED8;
  --accent-warm: #F59E0B;
  --accent-rose: #EC4899;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --gradient-primary: linear-gradient(135deg, #1E40AF, #2563EB);
  --gradient-warm: linear-gradient(135deg, #F59E0B, #F97316);
  --gradient-rose: linear-gradient(135deg, #EC4899, #F43F5E);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  --gradient-hero: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 50%, #F8FAFC 100%);
  --border-subtle: rgba(37, 99, 235, 0.1);
  --border-active: rgba(37, 99, 235, 0.3);
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --section-padding: clamp(40px, 6vw, 80px);
  --container-max: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 30px var(--accent-glow);
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   LOADING SCREEN
   =========================== */
.loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-ring {
  width: 50px; height: 50px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
.loader-text {
  font-family: var(--font-primary);
  font-size: 0.75rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--text-muted);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   CURSOR
   =========================== */
.cursor-dot {
  width: 6px; height: 6px; background: var(--accent-primary);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9999; transform: translate(-50%, -50%); transition: transform 0.1s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(37, 99, 235, 0.4);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9998; transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.hover { width: 50px; height: 50px; border-color: var(--accent-secondary); }

/* ===========================
   NAVIGATION
   =========================== */
.nav-toggle { display: none; }

.fullscreen-nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(250, 250, 248, 0.97); backdrop-filter: blur(20px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
}
.fullscreen-nav.active { opacity: 1; visibility: visible; }
.nav-links { list-style: none; text-align: center; }
.nav-links li {
  margin: 14px 0; transform: translateY(30px); opacity: 0;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}
.fullscreen-nav.active .nav-links li { transform: translateY(0); opacity: 1; }
.fullscreen-nav.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-nav.active .nav-links li:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-nav.active .nav-links li:nth-child(3) { transition-delay: 0.2s; }
.fullscreen-nav.active .nav-links li:nth-child(4) { transition-delay: 0.25s; }
.fullscreen-nav.active .nav-links li:nth-child(5) { transition-delay: 0.3s; }
.fullscreen-nav.active .nav-links li:nth-child(6) { transition-delay: 0.35s; }
.fullscreen-nav.active .nav-links li:nth-child(7) { transition-delay: 0.4s; }
.nav-links a {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 700;
  color: var(--text-secondary); text-decoration: none;
  letter-spacing: 2px; transition: color var(--transition-fast), letter-spacing var(--transition-fast);
  position: relative;
}
.nav-links a:hover { color: var(--accent-primary); letter-spacing: 6px; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gradient-primary);
  transition: width var(--transition-medium);
}
.nav-links a:hover::after { width: 100%; }

.back-to-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: white;
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999;
  transition: var(--transition-fast); opacity: 0; visibility: hidden;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-primary); border-color: var(--accent-primary); transform: scale(1.1); }
.back-to-top svg { width: 18px; height: 18px; fill: var(--accent-primary); }
.back-to-top:hover svg { fill: white; }

/* ===========================
   TOP BAR WITH DROPDOWN
   =========================== */
.top-bar {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 18px 40px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  transition: background var(--transition-medium), padding var(--transition-medium), box-shadow var(--transition-medium);
}
.top-bar.scrolled {
  background: rgba(250, 250, 248, 0.9); backdrop-filter: blur(20px);
  padding: 12px 40px; box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-subtle);
}
.brand {
  font-family: var(--font-primary); font-size: 1.3rem; font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary); text-decoration: none;
}
.brand-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-nav-links ul {
  display: flex; gap: 28px; list-style: none; align-items: center;
}
.top-nav-links a {
  font-family: var(--font-secondary); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none;
  transition: color var(--transition-fast); position: relative;
  display: inline-flex; align-items: center; gap: 4px;
}
.top-nav-links a.active { color: var(--accent-primary); }
.top-nav-links a:hover { color: var(--text-primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 6px 0; min-width: 150px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(8px);
  display: flex; flex-direction: column; gap: 0;
  margin-top: 0; padding-top: 8px;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block; padding: 7px 18px; font-size: 0.82rem;
  letter-spacing: 1.5px; white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.dropdown-menu a:hover { background: rgba(37, 99, 235, 0.06); color: var(--accent-primary); }
.dropdown-menu a.active { color: var(--accent-primary); }

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative; height: 100vh; min-height: 650px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.05) saturate(0.9);
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(248,250,252,0.6) 0%, rgba(248,250,252,0.5) 40%, rgba(248,250,252,0.75) 80%, rgba(248,250,252,1) 100%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3; text-align: center;
  max-width: 800px; padding: 0 24px;
}
.hero-logo {
  width: 180px; height: auto;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px);
  animation: fadeInUp 0.8s 0.3s forwards;
}
.hero-logo img {
  width: 100%; height: auto; object-fit: contain;
}
.hero-tag {
  display: inline-block; font-family: var(--font-secondary);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent-primary);
  margin-bottom: 20px; opacity: 0; transform: translateY(20px);
  animation: fadeInUp 0.8s 0.5s forwards;
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 16px; border-radius: 100px;
}
.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px;
  color: var(--text-primary);
  text-shadow: 0 1px 8px rgba(248,250,252,0.6);
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp 0.8s 0.7s forwards;
}
.hero-title .line { display: block; }
.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem); font-weight: 500;
  color: var(--text-primary); max-width: 520px;
  margin: 0 auto 28px; opacity: 0; transform: translateY(30px);
  animation: fadeInUp 0.8s 0.9s forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--gradient-primary);
  border: none; color: white;
  font-family: var(--font-secondary); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  border-radius: 100px;
  cursor: pointer; transition: var(--transition-medium);
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp 0.8s 1.1s forwards;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}
.hero-cta svg { width: 16px; height: 16px; fill: white; stroke: white; stroke-width: 2; transition: transform var(--transition-fast); }
.hero-cta:hover svg { transform: translateX(3px); }


@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ===========================
   SECTION DIVIDERS
   =========================== */
.section-divider { position: relative; height: 50px; overflow: hidden; background: var(--bg-primary); }
.section-divider::before {
  content: ''; position: absolute; top: 0; left: -5%;
  width: 110%; height: 200%;
  background: var(--bg-secondary);
  transform: rotate(-2deg); transform-origin: top left;
}
.section-divider.reverse::before { transform: rotate(2deg); transform-origin: top right; }

/* ===========================
   CONTAINER & SECTION HEADERS
   =========================== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block; font-family: var(--font-secondary);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent-primary); margin-bottom: 12px;
  background: rgba(37, 99, 235, 0.06); padding: 5px 14px; border-radius: 100px;
}
.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 12px; color: var(--text-primary);
}
.section-subtitle {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 550px; margin: 0 auto; font-weight: 400;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
  background: var(--bg-secondary); padding: var(--section-padding) 0;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-text h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800;
  margin-bottom: 20px; line-height: 1.2; color: var(--text-primary);
}
.about-text p {
  color: var(--text-secondary); font-weight: 400;
  margin-bottom: 16px; font-size: 1rem;
}
.about-visual { position: relative; }
.about-image-wrapper {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(37, 99, 235, 0.08);
  aspect-ratio: 3 / 4;
  max-width: 280px;
  margin: 0 auto;
}
.about-image-wrapper img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.portrait-wrapper img { object-position: top center; }
.about-image-wrapper::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent);
}

/* ===========================
   HOBBYS SECTION
   =========================== */
.hobbys-section {
  background: var(--bg-primary); padding: var(--section-padding) 0;
}
.hobbys-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.hobby-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 16px; padding: 32px 24px; text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hobby-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0); transition: transform var(--transition-medium);
}
.hobby-card:hover::before { transform: scaleX(1); }
.hobby-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.hobby-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; transition: background var(--transition-fast);
}
.hobby-card:hover .hobby-icon { background: rgba(37, 99, 235, 0.12); }
.hobby-icon svg { width: 28px; height: 28px; fill: var(--accent-primary); }
.hobby-card h4 {
  font-family: var(--font-primary); font-size: 1rem; font-weight: 700;
  margin-bottom: 10px; color: var(--text-primary);
}
.hobby-card p { font-size: 0.95rem; color: var(--text-secondary); font-weight: 400; line-height: 1.6; }

/* ===========================
   TIMELINE (WERDEGANG)
   =========================== */
.timeline-section {
  background: var(--bg-secondary); padding: var(--section-padding) 0;
}
.timeline {
  position: relative; max-width: 650px; margin: 0 auto;
  padding-left: 36px;
}
.timeline::before {
  content: ''; position: absolute; left: 13px; top: 0;
  width: 2px; height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.timeline-item {
  position: relative; margin-bottom: 40px; padding-left: 28px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute; left: -30px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: white;
  border: 3px solid var(--text-muted);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.timeline-marker.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-glow);
  background: var(--accent-primary);
}
.timeline-content {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 24px 28px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.timeline-content:hover {
  box-shadow: var(--shadow-md); transform: translateX(6px);
}
.active-content { border-color: var(--border-active); }
.timeline-date {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-primary); margin-bottom: 6px;
}
.timeline-content h4 {
  font-family: var(--font-primary); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 6px; color: var(--text-primary);
}
.timeline-content p {
  font-size: 0.95rem; color: var(--text-secondary); font-weight: 400; line-height: 1.6;
}

/* ===========================
   FÄCHER CARDS (PORTFOLIO)
   =========================== */
.portfolio-section {
  background: var(--bg-primary); padding: var(--section-padding) 0;
}
.faecher-grid {
  display: flex; flex-direction: column; gap: 12px;
}
.fach-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 22px 28px;
  text-decoration: none; color: var(--text-primary);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-sm);
}
.fach-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}
.fach-icon {
  width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
  background: rgba(37, 99, 235, 0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.fach-card:hover .fach-icon { background: rgba(37, 99, 235, 0.12); }
.fach-icon svg { width: 24px; height: 24px; fill: var(--accent-primary); }
.fach-info { flex: 1; }
.fach-short {
  display: inline-block; font-family: var(--font-secondary);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent-primary); margin-bottom: 2px;
}
.fach-info h3 {
  font-family: var(--font-primary); font-size: 1rem; font-weight: 700;
  margin-bottom: 4px; color: var(--text-primary);
}
.fach-info p {
  font-size: 0.92rem; color: var(--text-secondary); font-weight: 400;
}
.fach-arrow {
  width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
  background: rgba(37, 99, 235, 0.04); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.fach-card:hover .fach-arrow {
  background: var(--accent-primary); border-color: var(--accent-primary);
}
.fach-arrow svg { width: 18px; height: 18px; fill: var(--text-muted); transition: fill var(--transition-fast); }
.fach-card:hover .fach-arrow svg { fill: white; }

/* ===========================
   FAVORITES SECTION
   =========================== */
.favorites-section {
  background: var(--bg-secondary); padding: var(--section-padding) 0;
}
.favorites-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.favorite-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 16px; padding: 32px 28px; text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-sm);
}
.favorite-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.favorite-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.favorite-icon.math {
  background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.15);
}
.favorite-icon.math svg { fill: var(--accent-primary); }
.favorite-icon.media {
  background: rgba(29, 78, 216, 0.08); border: 1px solid rgba(29, 78, 216, 0.15);
}
.favorite-icon.media svg { fill: var(--accent-secondary); }
.favorite-icon svg { width: 30px; height: 30px; }
.favorite-card h4 {
  font-family: var(--font-primary); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 10px; color: var(--text-primary);
}
.favorite-card p {
  font-size: 0.95rem; color: var(--text-secondary); font-weight: 400; line-height: 1.7;
}

/* ===========================
   GOALS SECTION
   =========================== */
.goals-section {
  background: var(--bg-primary); padding: var(--section-padding) 0;
}
.goals-section .section-tag { color: var(--accent-primary); }
.goals-section .section-title { color: var(--text-primary); }
.goals-card {
  max-width: 650px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
}
.goal-step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}
.goal-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.goal-number {
  font-family: var(--font-primary); font-size: 2rem; font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; min-width: 50px;
}
.goal-info h4 {
  font-family: var(--font-primary); font-size: 1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
}
.goal-info p { color: var(--text-secondary); font-size: 0.95rem; font-weight: 400; line-height: 1.7; }

/* ===========================
   SUBJECT HERO (FACHSEITEN)
   =========================== */
.subject-hero {
  position: relative; padding: 140px 0 70px;
  min-height: 360px; display: flex; align-items: center;
  overflow: hidden;
}
.subject-hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gradient-hero);
  z-index: 1;
}
.subject-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 100px;
  background: linear-gradient(180deg, transparent, var(--bg-primary));
  z-index: 2;
}
.subject-hero-content {
  position: relative; z-index: 3; text-align: center;
  max-width: 650px; margin: 0 auto; padding: 0 24px;
}
.subject-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent-primary); margin-bottom: 14px;
  background: rgba(37, 99, 235, 0.08); padding: 5px 14px; border-radius: 100px;
}
.subject-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900;
  letter-spacing: 4px; margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subject-full-name {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2.2vw, 1.4rem); font-weight: 600;
  color: var(--text-primary); margin-bottom: 12px;
}
.subject-description {
  font-size: 0.88rem; color: var(--text-secondary);
  font-weight: 400; max-width: 500px; margin: 0 auto;
}

/* Jahrgang tab display */
.jahrgang-section { display: none; }
.jahrgang-section.active-tab { display: block; }

/* All subject heroes — same style */
.subject-hero--koea .subject-hero-bg,
.subject-hero--minf .subject-hero-bg,
.subject-hero--imsk .subject-hero-bg,
.subject-hero--wos .subject-hero-bg,
.subject-hero--ntma .subject-hero-bg {
  background: var(--gradient-hero);
}

/* ===========================
   YEAR NAV (STICKY)
   =========================== */
.year-nav-wrapper {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, 0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}
.year-nav {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.year-btn {
  padding: 8px 22px; background: transparent;
  border: 1px solid var(--border-subtle); border-radius: 100px;
  color: var(--text-secondary); font-family: var(--font-secondary);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 1px;
  text-decoration: none; text-transform: uppercase;
  transition: var(--transition-fast);
}
.year-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.year-btn.active {
  background: var(--gradient-primary); border-color: transparent;
  color: white; font-weight: 600;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

/* ===========================
   JAHRGANG SECTIONS
   =========================== */
.jahrgang-section {
  background: var(--bg-primary); padding: 60px 0;
}
.jahrgang-section.alt-bg { background: var(--bg-primary); }
.jahrgang-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
}
.jahrgang-badge {
  display: inline-block; padding: 5px 14px;
  background: rgba(37, 99, 235, 0.06); border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 100px; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 2px; color: var(--accent-primary);
}
.jahrgang-header h2 {
  font-family: var(--font-primary); font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary);
}

/* ===========================
   BEITRAG CARDS
   =========================== */
.beitraege-list {
  display: flex; flex-direction: column; gap: 20px;
}
.beitrag-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; overflow: hidden;
  transition: box-shadow var(--transition-medium);
  box-shadow: var(--shadow-sm);
}
.beitrag-card:hover { box-shadow: var(--shadow-lg); }
.beitrag-header {
  padding: 20px 28px; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.beitrag-nummer {
  display: inline-block; padding: 3px 10px;
  background: rgba(37, 99, 235, 0.06); border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 100px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent-primary);
}
.beitrag-header h3 {
  font-family: var(--font-primary); font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary);
}
.beitrag-body { padding: 24px 28px; }
.beitrag-section { margin-bottom: 20px; }
.beitrag-section:last-child { margin-bottom: 0; }
.beitrag-section h4 {
  font-family: var(--font-primary); font-size: 0.95rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text-primary);
}
.beitrag-section p {
  font-size: 0.95rem; color: var(--text-secondary);
  font-weight: 400; line-height: 1.7;
}

/* Code blocks */
.code-block {
  background: #0F172A; border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px; padding: 18px; margin-top: 10px;
  overflow-x: auto;
}
.code-block pre { margin: 0; }
.code-block code {
  font-family: 'Courier New', monospace; font-size: 0.75rem;
  color: #A5B4FC; line-height: 1.6;
}

/* Beitrag Images */
.beitrag-images {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 18px; margin-bottom: 24px;
}
.beitrag-images.single { grid-template-columns: 1fr; margin-top: 24px; }
.beitrag-images.row-3 { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.beitrag-images img {
  width: 100%; border-radius: 12px; display: block;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  cursor: pointer;
}
.beitrag-images.portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center; /* Center is better to capture faces */
}
.beitrag-images.landscape img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
}
.beitrag-images img:hover { 
  transform: translateY(-4px) scale(1.02); 
  box-shadow: var(--shadow-md); 
}
.beitrag-section ul {
  list-style: none; padding-left: 0; margin-top: 8px;
}
.beitrag-section ul li {
  position: relative; padding-left: 20px;
  margin-bottom: 10px; font-size: 0.95rem;
  color: var(--text-secondary); line-height: 1.7;
}
.beitrag-section ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-primary);
}

/* ===========================
   CHARITY LAUF PAGE
   =========================== */
.charity-hero {
  position: relative; padding: 140px 0 70px;
  min-height: 360px; display: flex; align-items: center;
  overflow: hidden;
}
.charity-hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gradient-hero);
  z-index: 1;
}
.charity-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 100px;
  background: linear-gradient(180deg, transparent, var(--bg-primary));
  z-index: 2;
}
.charity-hero-content {
  position: relative; z-index: 3; text-align: center;
  max-width: 700px; margin: 0 auto; padding: 0 24px;
}
.charity-section {
  background: var(--bg-primary); padding: var(--section-padding) 0;
}
.charity-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 48px;
}
.charity-info-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 16px; padding: 28px; text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-sm);
}
.charity-info-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
}
.charity-info-card .info-icon { font-size: 2rem; margin-bottom: 12px; }
.charity-info-card h3 {
  font-family: var(--font-primary); font-size: 1rem; font-weight: 700;
  margin-bottom: 6px; color: var(--text-primary);
}
.charity-info-card p {
  font-size: 0.95rem; color: var(--text-secondary); font-weight: 400;
}
.charity-description { max-width: 700px; margin: 0 auto; }
.charity-description p {
  font-size: 0.9rem; color: var(--text-secondary); font-weight: 400;
  line-height: 1.8; margin-bottom: 16px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg-secondary); padding: 52px 0 28px;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-primary); font-size: 1rem; font-weight: 800;
  letter-spacing: 1px; margin-bottom: 12px; color: var(--text-primary);
}
.footer-brand .accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-desc {
  color: var(--text-secondary); font-size: 0.95rem;
  font-weight: 400; max-width: 300px; line-height: 1.7;
}
.footer h5 {
  font-family: var(--font-primary); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px; color: var(--text-primary);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.95rem; font-weight: 400;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-links a:hover { color: var(--accent-primary); padding-left: 4px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
}
.footer-copyright { font-size: 0.82rem; color: var(--text-muted); }

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .top-nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hobbys-grid { grid-template-columns: 1fr 1fr; }
  .charity-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hobbys-grid { grid-template-columns: 1fr; }
  .favorites-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .back-to-top { bottom: 16px; left: 16px; width: 38px; height: 38px; }
  .top-bar { padding: 14px 20px; }
  .hero-cta { padding: 12px 24px; font-size: 0.82rem; }
  .hero-logo { width: 80px; height: 80px; border-radius: 18px; }
  .cursor-dot, .cursor-ring { display: none; }
  .beitrag-header { padding: 16px 20px; }
  .beitrag-body { padding: 20px; }
  .goal-step { flex-direction: column; gap: 12px; }
  .year-btn { padding: 7px 14px; font-size: 0.68rem; }
  .fach-card { flex-direction: column; text-align: center; padding: 20px; }
  .fach-arrow { display: none; }
}

@media (max-width: 480px) {
  .year-nav { gap: 4px; }
  .year-btn { padding: 6px 10px; font-size: 0.72rem; }
}

/* ===========================
   LIGHTBOX
   =========================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}
.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1) rotate(90deg);
}
.beitrag-images img {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.beitrag-images img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ===========================
   SLIDESHOW
   =========================== */
.slideshow-container {
  position: relative;
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.slideshow-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.slide-btn:hover {
  background: rgba(37,99,235,0.8);
  transform: translateY(-50%) scale(1.1);
}

.slide-btn--prev { left: 10px; }
.slide-btn--next { right: 10px; }

.slide-counter {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 12px 0 10px;
  background: #111;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slide-dot.active {
  background: var(--accent-primary);
  transform: scale(1.3);
}

.slide-dot:hover {
  background: rgba(255,255,255,0.6);
}

/* ===========================
   FOOTER SUBJECT PAGES
   =========================== */
.footer-grid--subject {
  grid-template-columns: 1fr 2fr;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
  margin-top: 8px;
}

.footer-nav-grid a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: var(--font-primary);
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 2px 0;
}

.footer-nav-grid a:hover {
  color: var(--accent-primary);
}

/* ===========================
   BIAS CARDS (WOP)
   =========================== */
.bias-category {
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--cat-color);
  background: var(--cat-bg);
}

.bias-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--cat-color);
  color: #fff;
}

.bias-cat-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.bias-cat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  display: block;
}

.bias-cat-title {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-primary);
  margin: 0;
  color: #fff;
}

.bias-cat-count {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.bias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 18px;
}

.bias-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 4px solid var(--cat-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bias-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bias-name {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cat-color);
  font-family: var(--font-primary);
  margin-bottom: 6px;
}

.bias-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 640px) {
  .bias-grid { grid-template-columns: 1fr; }
  .bias-cat-count { display: none; }
}

/* ===========================
   RESPONSIVE IMPROVEMENTS
   =========================== */

/* ------ Tablet (max 1024px) ------ */
@media (max-width: 1024px) {
  .subject-hero-content { padding: 0 24px; }
  .subject-title { font-size: clamp(2.8rem, 6vw, 5rem); }
  .beitraege-list { gap: 24px; }
  .bias-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .slideshow-container { border-radius: 8px; }
  .footer-grid--subject { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------ Mobile Landscape / Small Tablet (max 768px) ------ */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .container { padding: 0 18px; }

  /* Subject Hero */
  .subject-hero { min-height: 220px; padding: 60px 0 36px; }
  .subject-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .subject-full-name { font-size: 0.95rem; }
  .subject-description { font-size: 0.82rem; }

  /* Year Nav */
  .year-nav-wrapper { position: sticky; top: 56px; }
  .year-nav { gap: 6px; flex-wrap: wrap; justify-content: center; padding: 10px 16px; }
  .year-btn { padding: 7px 13px; font-size: 0.72rem; }

  /* Jahrgang sections */
  .jahrgang-section { padding: 32px 0; }
  .jahrgang-header h2 { font-size: 1.4rem; }

  /* Beitrag Cards */
  .beitrag-card { border-radius: 12px; }
  .beitrag-header { padding: 14px 18px; }
  .beitrag-header h3 { font-size: 1rem; }
  .beitrag-body { padding: 18px; gap: 16px; }
  .beitrag-section h4 { font-size: 0.9rem; }
  .beitrag-section p, .beitrag-section li { font-size: 0.85rem; }

  /* Bias Cards */
  .bias-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .bias-card { padding: 12px 14px; }
  .bias-name { font-size: 0.82rem; }
  .bias-card p { font-size: 0.77rem; }
  .bias-cat-header { padding: 12px 16px; gap: 10px; }
  .bias-cat-title { font-size: 0.95rem; }

  /* Slideshow */
  .slide-btn { width: 36px; height: 36px; font-size: 1.3rem; }
  .slide-btn--prev { left: 6px; }
  .slide-btn--next { right: 6px; }
  .slide-counter { font-size: 0.68rem; padding: 2px 8px; }

  /* Beitrag images */
  .beitrag-images { gap: 10px; }
  .beitrag-images.landscape img { max-height: 240px; }

  /* Footer */
  .footer-grid--subject { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav-grid { grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }

  /* Top bar */
  .brand { font-size: 1rem; }
}

/* ------ Mobile Portrait (max 480px) ------ */
@media (max-width: 480px) {
  html { font-size: 14px; }

  .container { padding: 0 14px; }

  /* Subject Hero */
  .subject-title { font-size: 2.4rem; letter-spacing: -0.02em; }
  .subject-full-name { font-size: 0.88rem; }

  /* Year Nav */
  .year-nav { gap: 4px; padding: 8px 14px; }
  .year-btn { padding: 6px 10px; font-size: 0.68rem; border-radius: 20px; }

  /* Beitrag */
  .beitrag-header h3 { font-size: 0.95rem; }
  .beitrag-body { padding: 14px; gap: 14px; }

  /* Bias cards: 1 column on very small screens */
  .bias-grid { grid-template-columns: 1fr; gap: 8px; padding: 12px; }

  /* Slideshow dots */
  .slide-dots { gap: 5px; }
  .slide-dot { width: 6px; height: 6px; }

  /* Footer nav */
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }

  /* Lightbox */
  .lightbox-img { max-width: 98vw; max-height: 85vh; border-radius: 6px; }
  .lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 1.5rem; }
}

/* ------ Very small (max 360px) ------ */
@media (max-width: 360px) {
  .subject-title { font-size: 2rem; }
  .year-btn { padding: 5px 8px; font-size: 0.64rem; }
  .bias-cat-count { display: none; }
}

/* ===========================
   MOBILE NAV TOGGLE
   =========================== */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--accent-primary);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(37,99,235,0.35);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1100;
  position: relative;
}

.nav-toggle:hover { background: var(--accent-secondary); transform: scale(1.05); }

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate to X when active */
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Show toggle on tablet/mobile */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
}

/* ===========================
   FULLSCREEN NAV OVERLAY
   =========================== */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.97);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(8px);
}

.fullscreen-nav.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-nav .nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.fullscreen-nav .nav-links li a {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: block;
  padding: 10px 30px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fullscreen-nav .nav-links li a:hover {
  background: rgba(37,99,235,0.2);
  color: #93C5FD;
  transform: scale(1.03);
}

/* Close button inside overlay */
.fullscreen-nav::after {
  content: 'ESC';
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-family: var(--font-primary);
}
