* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0f172a;
  scroll-behavior: smooth;
  line-height: 1.5;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 12px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header / Navigation */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 100;
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #1e293b;
  transition: 0.2s;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #2563eb;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 8px rgba(37,99,235,0.2);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -12px rgba(37,99,235,0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
}

.btn-outline:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* Hero Section */
.hero {
  padding: 5rem 0 3rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.25rem 1rem;
  border-radius: 30px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  background: linear-gradient(to right, #0f172a, #2d3a5e);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.highlight {
  color: #2563eb;
  background: none;
  background-clip: unset;
  -webkit-background-clip: unset;
}

.hero-description {
  font-size: 1.2rem;
  color: #334155;
  max-width: 550px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat span:first-child {
  font-weight: 800;
  font-size: 1.8rem;
  color: #0f172a;
}

.hero-avatar {
  flex: 0.8;
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border-radius: 3rem;
  padding: 1rem;
  box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
  text-align: center;
  transition: transform 0.1s ease-out;
}

.avatar-icon {
  font-size: 10rem;
  color: #2563eb;
}

/* Skills Section */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.skill-card {
  background: white;
  padding: 1.2rem 2rem;
  border-radius: 60px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
}

.skill-card i {
  font-size: 1.4rem;
  color: #2563eb;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 12px 20px -12px rgba(0,0,0,0.1);
}

/* Projekte */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border-radius: 2rem;
  overflow: hidden;
  transition: 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  border: 1px solid #eef2ff;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 35px -16px rgba(0,0,0,0.15);
  border-color: #cbdffc;
}

.project-img {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 2rem;
  text-align: center;
  color: white;
}

.project-img i {
  font-size: 3rem;
}

.project-info {
  padding: 1.8rem;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-tag {
  background: #eef2ff;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e40af;
}

/* Über mich */
.about-wrapper {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  background: white;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.02);
  border: 1px solid #eef2ff;
}

.about-text {
  flex: 2;
}

.about-text p {
  margin-bottom: 1rem;
  color: #334155;
}

.timeline {
  flex: 1.5;
  border-left: 3px solid #e2e8f0;
  padding-left: 1.8rem;
}

.timeline-item {
  margin-bottom: 1.8rem;
}

.timeline-date {
  font-weight: 700;
  color: #2563eb;
}

/* Kontakt */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.05);
  border: 1px solid #eef2ff;
}

.input-group {
  margin-bottom: 1.2rem;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 28px;
  border: 1.5px solid #e2e8f0;
  font-family: inherit;
  transition: 0.2s;
  background: #fefefe;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

textarea {
  border-radius: 28px;
  resize: vertical;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-links a {
  background: #f1f5f9;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 60px;
  color: #1e293b;
  font-size: 1.5rem;
  transition: 0.2s;
  text-decoration: none;
}

.social-links a:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-3px);
}

.contact-details {
  font-size: 0.9rem;
  color: #334155;
}

.contact-details i {
  width: 1.8rem;
  color: #2563eb;
}

footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
}

/* ============================================ */
/* NUR DIE RESPONSIVE VERBESSERUNGEN (ohne dein Design zu zerstören) */
/* ============================================ */

@media (max-width: 800px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 3rem 0 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .avatar-icon {
    font-size: 7rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .about-wrapper {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat span:first-child {
    font-size: 1.3rem;
  }
  
  .stat {
    font-size: 0.75rem;
  }
  
  .skill-card {
    padding: 0.8rem 1.3rem;
    font-size: 0.85rem;
  }
  
  .skill-card i {
    font-size: 1.1rem;
  }
  
  .project-info {
    padding: 1.2rem;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
  }
  
  .contact-form {
    padding: 1.2rem;
  }
}
/* Dark Mode Button */
.dark-mode-btn {
  background: #e2e8f0;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  color: #1e293b;
}

.dark-mode-btn:hover {
  background: #cbd5e1;
  transform: scale(1.05);
}

/* Avatar Bild */
.avatar-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 2rem;
  object-fit: cover;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* ========== DARK MODE STYLES ========== */
body.dark-mode {
  background: #0f172a;
  color: #f1f5f9;
}

body.dark-mode header {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: rgba(255,255,255,0.05);
}

body.dark-mode .logo {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  background-clip: text;
  -webkit-background-clip: text;
}

body.dark-mode .nav-links a {
  color: #cbd5e1;
}

body.dark-mode .nav-links a:hover {
  color: #60a5fa;
}

body.dark-mode .dark-mode-btn {
  background: #334155;
  color: #f1f5f9;
}

body.dark-mode .hero-badge {
  background: #1e293b;
  color: #93c5fd;
}

body.dark-mode .hero-content h1 {
  background: linear-gradient(to right, #f1f5f9, #cbd5e1);
  background-clip: text;
  -webkit-background-clip: text;
}

body.dark-mode .hero-description,
body.dark-mode .stat span:first-child,
body.dark-mode .stat {
  color: #cbd5e1;
}

body.dark-mode .hero-avatar {
  background: linear-gradient(145deg, #1e293b, #0f172a);
}

body.dark-mode .skill-card,
body.dark-mode .project-card,
body.dark-mode .about-wrapper,
body.dark-mode .contact-form {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .skill-card:hover,
body.dark-mode .project-card:hover {
  border-color: #3b82f6;
}

body.dark-mode .skill-card i,
body.dark-mode .tech-tag,
body.dark-mode .timeline-date,
body.dark-mode .contact-details i {
  color: #60a5fa;
}

body.dark-mode .section-sub,
body.dark-mode .project-info p,
body.dark-mode .about-text p,
body.dark-mode .contact-details {
  color: #cbd5e1;
}

body.dark-mode input,
body.dark-mode textarea {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus {
  border-color: #3b82f6;
}

body.dark-mode .social-links a {
  background: #334155;
  color: #cbd5e1;
}

body.dark-mode .social-links a:hover {
  background: #2563eb;
  color: white;
}

body.dark-mode #projects {
  background: #0f172a !important;
}

body.dark-mode #contact {
  background: linear-gradient(120deg, #0f172a 0%, #1e293b 100%) !important;
}

body.dark-mode .btn-outline {
  border-color: #475569;
  color: #cbd5e1;
}

body.dark-mode .btn-outline:hover {
  border-color: #3b82f6;
  color: #60a5fa;
}

body.dark-mode footer {
  background: #020617;
}