/* ============================================
   FLORIAN W. — SCHULPORTFOLIO
   Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary:    #0b0b0b;
  --bg-secondary:  #111111;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.22);
  --text-primary:  #f0f0f0;
  --text-secondary:#8a8a8a;
  --text-muted:    #4a4a4a;
  --accent:        #ffffff;
  --glow:          rgba(255,255,255,0.12);
  --glow-strong:   rgba(255,255,255,0.25);
  --nav-h:         70px;
  --radius:        16px;
  --radius-sm:     10px;
  --transition:    0.35s cubic-bezier(0.4,0,0.2,1);
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* ── Noise Texture Overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(11,11,11,0.75);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(11,11,11,0.95); }

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  position: relative;
}
.nav-logo::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.nav-logo:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-links a.active {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
  z-index: 1100;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(11,11,11,0.97);
  backdrop-filter: blur(30px);
  z-index: 1050;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 8px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s cubic-bezier(0.77,0,0.175,1);
}
.mobile-menu.open { clip-path: inset(0 0 0% 0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 10px 30px;
  transition: color 0.3s, transform 0.3s;
  position: relative;
}
.mobile-menu a::before {
  content: attr(data-num);
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.mobile-menu a:hover { color: var(--text-primary); transform: translateX(8px); }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.5rem; color: var(--text-secondary);
  padding: 8px;
  transition: color var(--transition);
}
.mobile-menu-close:hover { color: var(--text-primary); }

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page {
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* ============================================
   HERO (INDEX)
   ============================================ */
.intro-screen {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.intro-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-initials {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
  animation: introReveal 2s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes introReveal {
  0%   { opacity: 0; transform: scale(0.85); -webkit-text-stroke-color: rgba(255,255,255,0); filter: blur(20px); }
  30%  { opacity: 1; transform: scale(1.02);  -webkit-text-stroke-color: rgba(255,255,255,0.6); filter: blur(0); }
  60%  { transform: scale(1); -webkit-text-stroke-color: rgba(255,255,255,0.25); }
  100% { opacity: 1; transform: scale(1); -webkit-text-stroke-color: rgba(255,255,255,0.12); }
}
.intro-line {
  position: absolute;
  background: rgba(255,255,255,0.06);
  animation: lineDraw 1.5s ease forwards;
}
.intro-line.h { height: 1px; width: 0; top: 50%; }
.intro-line.v { width: 1px; height: 0; left: 50%; top: 0; }
@keyframes lineDraw {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { width: var(--w, 100vw); height: var(--h, 100vh); opacity: 1; }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 60%,
    rgba(255,255,255,0.03) 0%, transparent 70%),
    linear-gradient(160deg, #0d0d0d 0%, #0b0b0b 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  animation: heroFadeIn 1.2s 0.3s ease both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero-name span { color: var(--text-muted); }
.hero-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 300;
}
.hero-cta {
  margin-top: 50px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 14px 30px;
  border-radius: 40px;
  transition: var(--transition);
}
.hero-cta:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card);
  box-shadow: 0 0 30px var(--glow);
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section { padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 60px); }
.section-header { margin-bottom: clamp(40px, 6vw, 80px); }
.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}
.section-desc {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
}
.divider {
  width: 40px; height: 1px;
  background: var(--border-hover);
  margin: 20px 0;
}

/* ============================================
   CARDS GRID (Home)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.subject-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  cursor: pointer;
  transition: transform var(--transition),
              border-color var(--transition),
              background var(--transition),
              box-shadow var(--transition);
  position: relative; overflow: hidden;
  text-decoration: none; display: block;
}
.subject-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--glow), transparent 70%);
  opacity: 0; transition: opacity var(--transition);
}
.subject-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.subject-card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  font-size: 1.3rem;
  transition: var(--transition);
}
.subject-card:hover .card-icon {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.card-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}
.card-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
}
.subject-card:hover .card-arrow {
  color: var(--text-primary);
  gap: 14px;
}
.card-count {
  position: absolute; top: 28px; right: 28px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
}

/* ============================================
   SUBJECT PAGES
   ============================================ */
.projects-list {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 860px;
}
.project-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex; align-items: flex-start;
  gap: 24px;
  transition: var(--transition);
  cursor: default;
}
.project-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.project-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 4px;
  min-width: 28px;
  letter-spacing: 0.08em;
}
.project-body { flex: 1; }
.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.project-meta {
  display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 6px;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.gallery-grid {
  columns: 3 280px;
  gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.gallery-item:hover { border-color: var(--border-hover); transform: scale(1.01); }
.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon { font-size: 1.5rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw; max-height: 88vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  font-size: 1.8rem; color: var(--text-secondary);
  padding: 8px; cursor: pointer;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--text-primary); }
.lightbox-caption {
  position: absolute; bottom: 30px;
  font-size: 0.8rem; color: var(--text-secondary);
  letter-spacing: 0.08em;
}

/* ============================================
   ABOUT ME
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.about-avatar-wrap {
  position: sticky; top: calc(var(--nav-h) + 30px);
}
.about-avatar {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.avatar-initials {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  letter-spacing: -0.03em;
}
.avatar-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.05), transparent 70%);
}
.about-meta {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.about-meta-item {
  display: flex; justify-content: space-between;
  font-size: 0.8rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.about-meta-item span:first-child { color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; }
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.about-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
  transition: var(--transition);
}
.skill-item:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.skill-item span { font-size: 1.1rem; }
.interests-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px;
}
.interest-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.interest-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ============================================
   LEGAL PAGES (Datenschutz / Impressum)
   ============================================ */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 50px;
}
.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.legal-section p, .legal-section li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 10px;
}
.legal-section li { padding-left: 14px; }
.legal-section li::before { content: '—'; margin-right: 8px; color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 40px clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex; gap: 20px;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-secondary); }

/* ============================================
   ANIMATIONS / SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   GALLERY PLACEHOLDER IMAGES
   ============================================ */
.gallery-placeholder {
  width: 100%; aspect-ratio: var(--ar, 4/3);
  background: var(--bg-card);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
}
.gallery-placeholder-label {
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-avatar-wrap { position: static; }
  .about-avatar { aspect-ratio: 1; }

  .gallery-grid { columns: 2 160px; }

  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-transition {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 8000;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}
.page-transition.leave {
  animation: transLeave 0.5s cubic-bezier(0.76,0,0.24,1) forwards;
}
@keyframes transLeave {
  from { transform: scaleY(0); transform-origin: bottom; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  50.01% { transform-origin: top; }
  to   { transform: scaleY(0); transform-origin: top; }
}

/* ============================================
   HOME EXTRA SECTIONS
   ============================================ */

.highlights-section,
.timeline-section {
  margin-top: 140px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px;
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 0%,
    rgba(255,255,255,0.08),
    transparent 70%
  );
  opacity: 0;
  transition: var(--transition);
}

.highlight-box:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.highlight-box:hover::before {
  opacity: 1;
}

.highlight-box span {
  font-size: 2rem;
  display: block;
  margin-bottom: 20px;
}

.highlight-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.highlight-box p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
}

.timeline-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(6px);
}

.timeline-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  min-width: 70px;
  line-height: 1;
}

.timeline-item h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.timeline-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   HOME HERO
   ============================================ */

.hero-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.hero-home::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.06),
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
}

.hero-home-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-home-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-home-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 30px;
}

.hero-home-text {
  max-width: 600px;
  margin: auto;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-home-button {
  display: inline-block;
  margin-top: 50px;
  padding: 16px 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.hero-home-button:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

/* ============================================
   ABOUT PREVIEW HOME
   ============================================ */

.about-preview {
  margin-top: 140px;
}

.about-preview-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-preview-card {
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.08),
    transparent 70%
  );
}

.about-preview-initials {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
}

.about-preview-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: var(--transition);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-preview-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .about-preview-content {
    grid-template-columns: 1fr;
  }

  .about-preview-card {
    height: 250px;
  }
}

/* ==========================
   PROJECT SHOWCASE
   ========================== */

.showcase-section{
  margin-top: 100px;
}

.showcase-slider{
  position: relative;
  max-width: 900px;   /* kleiner */
  margin: 50px auto 0;
  padding: 0 40px;    /* Abstand zu den Pfeilen */
}

.showcase-track{
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: 24px;
}

.showcase-card{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.95);
  transition: all .55s ease;
  pointer-events: none;
}

.showcase-card.active{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.showcase-card img{
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 20px 50px rgba(0,0,0,.35),
    0 5px 15px rgba(0,0,0,.15);
  transition: transform .5s ease;
}

.showcase-card:hover img{
  transform: scale(1.015);
}

/* Pfeile */

.slider-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  background: rgba(18,18,18,.75);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  z-index: 20;
  font-size: 1.2rem;
  transition: all .25s ease;
}

.slider-btn:hover{
  background: rgba(255,255,255,.12);
  transform: translateY(-50%) scale(1.08);
}

.prev{
  left: -5px;
}

.next{
  right: -5px;
}

/* Punkte */

.slider-dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: all .3s ease;
  cursor: pointer;
}

.dot:hover{
  background: rgba(255,255,255,.5);
}

.dot.active{
  width: 28px;
  border-radius: 20px;
  background: #fff;
}

/* Responsive */

@media (max-width: 900px){

  .showcase-slider{
    max-width: 100%;
    padding: 0 10px;
  }

  .showcase-track{
    height: 320px;
  }

  .showcase-card img{
    height: 320px;
  }

  .slider-btn{
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .prev{
    left: 10px;
  }

  .next{
    right: 10px;
  }
}

.showcase-section .section-header{
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.showcase-section .divider{
  margin: 20px auto;
}

.showcase-section .section-desc{
  max-width: 600px;
  margin: 0 auto;
}

.showcase-section{
  width: 100%;
  max-width: 1200px;
  margin: 100px auto 120px; /* unten jetzt 120px Abstand */
}

/* ================================
   BACKGROUND IMAGE (PORTFOLIO STYLE)
   ================================ */

.bi {
  position: fixed;
  inset: 0;
  background-image: url("Bilder/Straße.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* Dunkles Overlay + leichter “Glass / Cinematic” Look */
.bi::after {
  content: "";
  position: fixed;
  inset: 0;

  /* dunkler Verlauf statt nur schwarz → wirkt hochwertiger */
  background: linear-gradient(
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.70)
  );

  /* leichter Blur für Glas-Effekt */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  z-index: -1;
}