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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #121212;
  color: #fff;
  line-height: 1.6;
}

.red {
  color: #e63946;
}

header {
  background: #0f0f0f;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

header img {
  height: 50px;
}

/* Hamburger Grundstil */
.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 20;
}

/* Navigation */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover,
nav a:visited,
nav a:active {
  color: white;
  text-decoration: none;
}

/* Mobile Layout */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #0f0f0f;
    padding: 20px;
    border-radius: 8px;
    z-index: 10;
    animation: fadeIn 0.3s ease-in-out;
  }

  nav.show {
    display: flex;
  }

  nav a {
    margin: 10px 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav a:hover {
  color: #e63946;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 150px 20px;
  background-color: #1a1a1a;
  height: 100vh;
  position: relative;
}

.hero-logo {
  width: 450px;
  opacity: 0.15;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.hero h1,
.hero p,
.hero .btn {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Button */
.btn {
  display: inline-block;
  background-color: #e63946;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s ease;
  font-weight: bold;
}

.btn:hover {
  background-color: #fff;
  color: #e63946;
}

/* About Section */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  flex-wrap: wrap;
  background-color: #181818;
}

.about img {
  max-width: 300px;
  border-radius: 10px;
  margin: 20px;
}

.about div {
  max-width: 500px;
  margin: 20px;
}

/* Projekte Section */
#projects {
  text-align: center;
  padding: 120px 20px;
  background-color: #121212;
}

#projects h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  max-width: 1400px;
  margin: auto;
}

.project {
  background-color: #1b1b1b;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  max-width: 450px;
  margin: auto;
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.project h3 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: #e63946;
}

.project p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Video Thumbnail */
.video-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 50%;
}

/* Video Modal */
.video-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.85);
}

.video-modal video {
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
}

/* Lebenslauf Section */
#cv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  background-color: #181818;
  text-align: center;
}

/* Footer */
.footer {
  background-color: #0f0f0f;
  text-align: center;
  padding: 20px;
}
