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

body {
  background: #0f0f0f;
  color: #cfcfcf;
  font-family: "Fira Code", monospace, sans-serif;
  line-height: 1.5;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-logo {
  font-weight: bold;
  color: #00ff9c;
  font-size: 1.5rem;
}

.blink-cursor {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #cfcfcf;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00ff9c;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 80vh; /* Beispiel: 80% Fensterhöhe */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Hintergrundbild mit Gradient */
  padding: 5rem 2rem 3rem;
  background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), 
    url("lego.jpg") center/cover no-repeat;
}

.hero h1 {
  font-size: 3rem;
  color: #00ff9c;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fafafa;
}

.hero p {
  font-size: 1.2rem;
  color: #aaa;
}

/* Hintergrund-Video (auskommentiert im HTML, falls du es nutzen möchtest) */
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; 
  z-index: -1; /* hinter dem Inhalt */
}
.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* Text-Container (Overlay) */
.hero-content {
  position: relative; 
  z-index: 1;     /* liegt über dem Video */
  color: #fff;    /* Heller Text */
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Allgemeine Sektionseinstellungen */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/**********************************************
  ABOUT SECTION – Diagonal Fade & Überlappung
***********************************************/
.about-section {}

/* Flex-Container mit Überlappung */
.about-flex-container {
  display: flex;
  flex-direction: column; 
  gap: 2rem;
  margin-top: 2rem;
  position: relative; 
}

.about-image-container {
  position: relative;
  flex: 1;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
}
.about-image-container img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}
.about-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    #0f0f0f 100%
  );
}

.about-text {
  flex: 1;
  position: relative;
  margin-left: 5%;
  z-index: 1; 
}
.about-text p {
  line-height: 1.6;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Ab breiter Screens: Bild & Text nebeneinander */
@media (min-width: 700px) {
  .about-flex-container {
    flex-direction: row; 
    align-items: center; 
  }
  .about-text {
    margin-left: -20%;
  }
}

/* Ab breiter Screens: Bild & Text nebeneinander */
@media (min-width: 1024px) {
  .about-flex-container {
    flex-direction: row; 
    align-items: center; 
  }
  .about-text {
    margin-left: -20%;
  }
}

/**********************************************
  PROJECTS SECTION
***********************************************/
.projects-section .project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.project-item {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
}

.project-item h3 {
  margin-bottom: 0.5rem;
  color: #00ff9c;
}

/**********************************************
  CONTACT SECTION
***********************************************/
.contact-section p {
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid #555;
  background: #2a2a2a;
  color: #cfcfcf;
}

.contact-form button {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 4px;
  background: #00ff9c;
  color: #0f0f0f;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-form button:hover {
  background: #00cc7d;
}

/**********************************************
  FOOTER
***********************************************/
.footer {
  text-align: center;
  padding: 1rem;
  background: #1a1a1a;
  margin-top: 2rem;
}

.text-highlight {
  color: #00ff9c;
}

/**********************************************
  SHELL-FORM STYLES
***********************************************/
.shell-form {
  background: #0e0e0e;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 600px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: "Lucida Console", Monaco, monospace;
  color: #00ff9c; 
}
.shell-line {
  margin-bottom: 0.2rem;
}
.shell-prompt {
  color: #00ff9c;
  margin-right: 0.5rem;
  font-weight: bold;
}
.cmd {
  color: #cfcfcf;
}
.shell-form input,
.shell-form textarea {
  background: #141414;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.8rem;
  color: #00ff9c;
  font-family: inherit;
  width: 100%;
  resize: vertical;
}
.shell-form ::placeholder {
  color: #008f65;
}
.shell-form button {
  background: #00ff9c;
  color: #0f0f0f;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: inherit;
}
.shell-form button:hover {
  background: #00cc7d;
}
/* Shell-Cursor-Blinken */
.shell-line::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #00ff9c;
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: bottom;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/**********************************************
  SOCIAL SECTION
***********************************************/
/* Container für die Social-Icons als Flex-Container */
.social-contact {
  display: flex;             /* Icons in einer Reihe */
  justify-content: center;   /* Zentriert horizontal */
  align-items: center;       
  gap: 2rem;                 /* Abstand zwischen den Icons */
  margin-top: 2rem;          
}
/* Standard-Stil für Links */
.social-contact a {
  text-decoration: none;
  color: #cfcfcf;            
  transition: color 0.3s ease;
}
/* Hover-Effekt */
.social-contact a:hover {
  color: #00ff9c;            
}
/* Falls du die <i> Icons anzeigen möchtest (Font Awesome) */
.social-contact i {
  margin-right: 0.5rem;
  font-size: 2rem;
}
/* Keine Extra-Margins in den <p>-Elementen */
.social-contact p {
  margin: 0;
}