:root {
  /* Variablen für Farben */
  --bg: #000000;
  /* Hintergrundfarbe */
  --bg-light: #000000;
  /* Hintergrundfarbe */
  --bg-transparent: rgba(0, 0, 0, 0.6);
  /* Transparente Hintergrundfarbe */
  --text: #f1f5f9;
  /* Textfarbe */
  --muted: #94a3b8;
  /* Muted-Farbe */
  --accent: #0ef;
  /* Akzentfarbe */
  scrollbar-color: grey white;
  /* Scrollbar-Farbe */
}

* {
  /* Universelle Stile */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Körper */
  font-family: "Segoe UI", sans-serif;
  /* Schriftart */
  background: #000;
  background-size: cover;
  /* Hintergrundabdeckung */
  color: var(--text);
  line-height: 1.6;
  /* Zeilenhöhe */
  margin: 0;
  /* Abstand */
  padding: 0;
  /* Polsterung */
  width: 100%;
  height: 100%;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: 100%;
  height: auto;
  z-index: -1;
  object-fit: cover;
  opacity: 0.7;
  /* Optional: für dunkleren Effekt */
  background: #000;
}

/* Hamburger-Menü */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

/* Projekte */
.projects-section {
  width: 100%;
  position: relative;
  background: linear-gradient(rgba(30, 30, 40, 0.8), rgba(30, 30, 40, 0.8)),
    url("assets/code-1839406_1280.jpg") no-repeat center center fixed;
  background-size: cover;
  padding-top: 40px;
  padding-bottom: 0;
}

.projects-title {
  text-align: center;
  font-size: 40px;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 10px;
}

.projects-subtitle {
  text-align: center;
  font-size: 20px;
  color: #fff;
  margin-bottom: 40px;
}

.projects-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin: 0 60px 60px 60px;
  margin-bottom: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(30, 30, 40, 0.8);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 420px;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 2px solid #222;
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 8px;
}

.project-info p {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

/* Container */
.container {
  width: 100%;
  height: 100%;
  padding: 60px 40px 40px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.logo {
  font-size: 30px;
  font-weight: bold;
  color: white;
  padding-left: 100px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  padding-right: 100px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: gray;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  min-height: 90vh;
  /* Höhe der Hero-Sektion */
}

.hero-left {
  flex: 1;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 0;
  margin-left: 100px;
}

.typing-text {
  font-size: 40px;
  color: white;
  margin-bottom: 20px;
  height: 2.5rem;
  margin-left: 100px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-left: 100px;
  margin-top: 40px;
}

.social-links img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

/* Profilbild */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

/* Social Media Links */
.social-media .social-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.social-media .social-links a {
  width: 32px;
  height: 32px;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 100px;
  margin-top: 32px;
  gap: 16px;
}

.hero-contact-text {
  color: #fff;
  font-size: 20px;
}

.hero-contact-btn {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid #fff;
  border-radius: 40px;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hero-contact-btn:hover {
  background: #fff;
  color: #222;
}

/* Footer */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  background: grey;
  padding: 20px 40px 10px 40px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
  color: white;
  align-items: flex-start;
}

.footer-col h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.footer-col p {
  margin-bottom: 18px;
  font-size: 1rem;
}

.footer-col .social-links {
  display: flex;
  gap: 18px;
  margin-left: 0;
}

.footer-col .social-links img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.footer-col form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col input[type="email"] {
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
}

.footer-col input[type="text"] {
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
}

.footer-col button {
  padding: 12px;
  border-radius: 24px;
  border: 2px solid #fff;
  background: grey;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
}

.footer-bottom {
  text-align: left;
  color: white;
  font-size: 1rem;
  padding: 10px 0 5px 30px;
  background: grey;
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 90vh;
  }
  .hero-right {
    order: 1; /* Bild kommt zuerst */
    margin-bottom: 10px;
    margin-top: 1px;
  }
  .hero-left {
    order: 2; /* Text, Social Links, Button kommen danach */
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
  }
  .hero h1 {
    font-size: 2.2rem;
  }

  .typing-text {
    font-size: 1.2rem;
  }

  .profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-item h3 {
    font-size: 1.5rem;
  }

  .skills ul li {
    font-size: 1rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Navigation für mobile Geräte */
@media (max-width: 768px) {
  header, .navbar, .nav-links {
  position: relative;
  z-index: 10000; /* liegt über allem */
}

  .navbar {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .hamburger-menu {
    display: flex;
  }

  .logo {
    padding-left: 0;
    font-size: 24px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: gray;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    display: none; /* Standardmäßig ausgeblendet */
    z-index: 9999;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
  }
}
.nav-links.show {
  display: flex; /* Anzeigen bei Klick */
}

/* Typing-Animation und Social Links ausblenden, wenn Menü geöffnet ist */
.nav-links.show ~ .container .hero .typing-text,
.nav-links.show ~ .container .hero .social-links {
  display: none;
}

/* Hero-Sektion für mobile Geräte */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1000;
    padding-top: 0; /* Weniger Abstand nach oben */
    min-height: 10vh;
  }

  .hero-left {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Abstand zwischen Typing-Animation und Social Links */
    margin-top: 0;
  }

  .hero h1 {
    font-size: 1rem;
    margin-left: 0;
  }

  .typing-text {
    font-size: 1.5rem;
    margin-left: 0;
    z-index: 1000;
    margin-top: 20px;
  }

  .social-links {
    margin-left: 0;
    justify-content: center;
  }

  .hero-contact {
    margin-left: 0;
    align-items: center;
  }

  .hero-contact-btn {
    width: 100%;
    text-align: center;
  }

  .hero-right {
    margin-top: -40px;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }
}

/* Projekte für mobile Geräte */
@media (max-width: 768px) {
  .projects-grid {
    flex-direction: column;
    gap: 20px;
    margin: 0 20px;
    padding-top: 20px;   /* weniger Abstand oben */
    padding-bottom: 20px;
  }

  .projects h2 {
    font-size: 1.5rem;   /* kleinere Überschrift */
    margin-bottom: 8px;
  }

  .projects p {
    font-size: 1rem;   /* kleinerer Text */
    margin-bottom: 15px;
  }

  .project-card {
    width: 90%;          /* etwas kleiner als die volle Breite */
    max-width: 350px;    /* maximale Breite pro Karte */
    margin: 0 auto;      /* Karten mittig ausrichten */
  }

  .project-card img {
    height: 180px;       /* Bilder kleiner machen */
    object-fit: cover;   /* Bilder bleiben schön zugeschnitten */
  }

  .project-info h3 {
    font-size: 1.5rem;   /* Titel verkleinern */
  }

  .project-info p {
    font-size: 1rem;   /* Beschreibung verkleinern */
  }
}

/* Footer für mobile Geräte */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-col {
    min-width: 100%;
  }

  .footer-col h3 {
    font-size: 1.2rem;
    display: none;
  }

  .footer-col p {
    font-size: 1rem;
  }

  .footer-col form {
    width: 100%;
  }

  .footer-col input[type="email"],
  .footer-col input[type="text"] {
    width: 100%;
  }

  .footer-col button {
    width: 100%;
  }

  .footer-bottom {
    text-align: center;
    margin-top: auto;   /* falls du Flexbox nutzt */
    padding: 10px 0;
  }
}

/* Allgemeine Regeln für mobile Geräte */
@media (max-width: 768px) {
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }
}
