:root {
    --bg: #ffffff;
    --text: #111111;
    --text-muted: #4b5563;
    --primary: #000000;
    --accent: #8b5cf6;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 30px rgba(0,0,0,0.07);
  }
  
  [data-theme="dark"] {
    --bg: #0f0f0f;
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #ffffff;
    --accent: #a78bfa;
    --card: #171717;
    --border: #2d3748;
    --shadow: 0 4px 30px rgba(49, 49, 49, 0.5);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }
  
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    transition: background 0.35s ease, color 0.35s ease;
  }
  
  /* Respect reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  /* Theme Toggle */
  .theme-toggle {
    position: fixed;
    top: 1rem;
    right: 4rem;
    z-index: 9999;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .theme-toggle:hover {
    background: rgba(139, 92, 246, 0.18);
    transform: translateY(-1px);
  }
  
  [data-theme="dark"] .theme-toggle {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c4b5fd;
  }
  

 /* NAVIGATION (DESKTOP + MOBILE) */

.navbar {
  position: sticky;
  padding: 20px 30px;
  top: 0;
  background: var(--bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 600;
}

/* NAV LIST (DESKTOP) */
.nav-list {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  color: #6b21a8;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-list a:hover {
  color: #9333ea;
  transform: translateY(-2px);
}

.nav-list a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #9333ea;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

/* HAMBURGER */
.hamburger {
  margin-left: auto;
  display: none;
  font-size: 28px;
  color: #6b21a8;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 300;
}

/* ================================
   MOBILE
   ================================ */

   @media (max-width: 768px) {

    .hamburger {
      display: block;
    }
  
    .nav-list {
      position: absolute;
      top: 70px;
      right: 0;
  
      display: none;
      flex-direction: column;
      gap: 1.2rem;
  
      width: 220px;
      padding: 1.5rem;
  
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 1rem 0 0 1rem;
      box-shadow: var(--shadow);
  
      /* Rechtsbündig */
      align-items: flex-end;
      text-align: right;
  
      /* Animation (Slide von rechts) */
      opacity: 0;
      transform: translateX(20px);
      transition: all 0.25s ease;
  
      /* 🔥 BONUS: Scroll wenn zu lang */
      max-height: 80vh;
      overflow-y: auto;
    }
  
    .nav-list.active {
      display: flex;
      opacity: 1;
      transform: translateX(0);
    }
  

  }


  .skill-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1rem 3rem;
  }
  
  .skills-inner {
    max-width: 920px;
    animation: fadeInUp 1.3s ease-out forwards;
  }
  
  @keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
  }
  
  h1 {
    font-size: clamp(5.5rem, 15vw, 11rem);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.88;
    margin-bottom: 1.6rem;
  
    background: linear-gradient(90deg, #000 0%, #222 30%, var(--accent) 60%, #d8b4fe 90%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  
    background-size: 200% 100%;
    animation: gradientFlow 18s ease infinite alternate;
  }
  
  [data-theme="dark"] h1 {
    background: linear-gradient(90deg, #e0e0ff 0%, #c4b5fd 25%, var(--accent) 55%, #a78bfa 80%, #e0e7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% 100%;
    animation: gradientFlow 18s ease infinite alternate;
  }
  
  @keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }
  
  .tagline {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
  }
  
  .tagline-main   { display: block; font-weight: 600; }
  .tagline-sub    { display: block; font-size: 0.78em; opacity: 0.85; margin-top: 0.5rem; }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);       /* immer 3 Spalten auf Desktop */
    gap: 1.8rem;
    margin: 2rem 0 4rem;
  }
  
  @media (max-width: 1023px) {
    .skills-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
  }
  
  .skill-card {
    background: var(--card);
    padding: 2.2rem 1.8rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.28s ease;
  }
  
  .skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
  }
  
  .skill-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.8rem;
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.8rem;
    background: var(--accent);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.28s ease;
    box-shadow: 0 4px 18px rgba(139,92,246,0.28);
    border: 1px solid rgba(139,92,246,0.4);
  }
  
  .btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 30px rgba(139,92,246,0.45);
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #ffffff !important;
  }
  
  [data-theme="dark"] .btn {
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    border-color: rgba(196,181,253,0.5);
  }
  
  /* Sections */
  .section {
    max-width: 920px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  .section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .section-title {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.6rem;
    color: var(--primary);
  }
  
  .experience-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 3rem 0 1.2rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border);
  }
  
  .experience-heading::before {
    content: "→ ";
    color: var(--accent);
    margin-right: 0.4rem;
  }
  
  .friend-section {
    text-align: center;
    padding: 5rem 1.5rem;
  }
  
  footer {
    padding: 5rem 1.5rem 3rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    nav ul { gap: 1.4rem; font-size: 0.95rem; }
    .skill-section { min-height: 60vh; padding-top: 6rem; }
    h1 { font-size: clamp(4.2rem, 13vw, 7.5rem); }
  }


.image-container {
    margin-top: 2rem;
    display: flex;
    gap: 20px;              
    justify-content: center;
    flex-wrap: wrap;        /* Für kleinere Screens */
}

.image-container img {
  width: 70%;
  max-width: 900px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.image-container img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .image-container {
    gap: 15px;         
    padding: 0 10px;   
  }

  .image-container img {
    width: 100%;
  }
}
