html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: #ffffff;
  padding-bottom: 20px;
  position: relative;
  margin-top: 100px;
  user-select: none;
}
/* Grund-Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Apple-typische Schriftfamilie */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    min-height: 100vh;
    color: #fff;
    background-color: #000000;
    overflow-x: hidden;
    position: relative;
}

.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.video-bg video {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
}

/* HEADER */
header {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 32px;
    padding-bottom: 32px;
    display: flex;
    justify-content: center;
    flex-direction: column; /* ⬅️ Das muss ergänzt werden */
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    gap: 52px;
}

/* Navigation Links Styling */
/* Navigation Links Styling */
.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.nav-logo {
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-logo img {
    height: 120px;
    width: 120px;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px #06f70099);
    transition: filter 0.3s, transform 0.3s ease-in;
}

/* Aktiver Link bleibt immer weiß, nur inaktiver Link wird beim Hover grün */
/* Aktiver Link bleibt immer weiß, nur inaktiver Link wird beim Hover grün */
.nav-link.active {
  color: white; /* aktiv immer weiß */
  cursor: default;
}

.nav-link:not(.active):hover,
.nav-link:not(.active):focus {
  color: #39ff14; /* hover nur bei inaktiven Links */
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 10px #39ff14);
    transform: scale(1.07);
    transition: transform 0.3s ease-in;
}

/* MAIN BEREICH */
main {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    padding-top: 38px;
    padding-bottom: 48px;
}

.title {
    font-size: 3.7rem;
    font-weight: 500;
    display: flex;
    gap: 0;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 1.3s cubic-bezier(.69,.28,.27,1.32) forwards;
    animation-delay: 0.3s;
    margin-bottom: 48px;
    margin-top: 8vh;
    user-select: none;
}

@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-30px);}
    100% { opacity: 1; transform: translateY(0);}
}

.green {
    color: #39ff14;
}

.white {
    color: #fff;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 56px;
    font-size: 1.45rem;
    font-weight: 500;
    min-height: 2.5em;
    font-family: inherit;
    text-align: center;
    letter-spacing: 0.01em;
    background: transparent;
    white-space: pre-line;
    user-select: none;
}

.video-embed {
    margin: 20px 0 28px 0;
    width: 860px;
    max-width: 95vw;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 40px #000a, 0 0 0 1px #0f0f0f88;
    transition: box-shadow 0.2s;
    background: #111a;
    border: 1px solid #222b;
    min-height: 440px;
}

.video-embed iframe {
    display: block;
    width: 100%;
    height: 484px;
    border: none;
    border-radius: 22px;
}

/* Interaktiver Youtube-Button */
.yt-button {
    font-size: 0.9rem;
    font-weight: 400;
    color: #fff;
    background: transparent;
    padding: 10px 25px;
    border: 2px solid #fff;
    border-radius: 20px;
    cursor: pointer;
    margin: 20px auto 65px auto;  /* mittig */
    transition: all 0.18s;
    display: block;                /* wichtig für margin auto */
    width: max-content;            /* Button passt sich Textbreite an */
    text-align: center;            /* Text zentriert im Button */
    letter-spacing: 0.01em;
    outline-offset: 4px;           /* Abstand zur Border */
    text-decoration: none;
}

.yt-button:hover, .yt-button:focus {
    background: #fff;
    color: #111;
}
.heart {
    color: #39ff14;
    font-size: 1.15em;
}

/* Responsives Design */
@media (max-width: 600px) {
    .title { font-size: 2.1rem; }
    .subtitle { font-size: 1.05rem; }
    .video-embed { width: 98vw; }

    header {
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }
    nav {
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    .nav-logo {
      order: 0;
    }
    .nav-link {
      order: 1;
      margin: 6px 0;
    }

    .quote-wrapper {
      flex-direction: column !important;
      align-items: center;
      gap: 1rem;
    }

    .quote-image {
      height: 140px;
      transform: translateY(0);
    }

    .info-line {
      margin-left: 1rem;
      margin-right: 1rem;
      padding: 0.5rem 1rem;
      font-size: 1rem;
    }
    .boxes-group.original { margin-top: 18px; }
    .boxes-group.duplicate { margin-bottom: 6px; }
    .boxes-group { gap: 0.8rem; }
}


#typewriter {
    white-space: nowrap;
    overflow: hidden;
    font-size: 1.45rem;
    font-weight: 500;
}

#cursor {
    display: inline-block;
    border-right: .15em solid #fff;
    animation: blink-caret 0.75s step-end infinite;
    margin-left: 2px;
    height: 1em;
    vertical-align: bottom;
}

@keyframes typing {
    from { width: 0 }
    to { width: 22ch }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

#typewriter.finished #cursor {
    display: none;
}

/* Fade-in Animation für fade-content */
.fade-content > * {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-content > *.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ABOUT-INHALT */

.about-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 5vw;
  gap: 0;
  position: relative;
}

.about-image {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.about-text-container {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 110%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 20px #0009;
  object-fit: contain;
}

.about-image img:first-child {
  clip-path: inset(5% round 25px);
  transform: translateY(-35px);
}

.about-image a {
  position: relative;
  z-index: 2;
}

.about-image img:last-child {
  width: 35%;
  margin-top: 0;
  cursor: pointer;
  transform: translate(110px, -50px);
  align-self: flex-start;
  opacity: 0;
  animation: fadeIn 2s forwards;
  animation-delay: 1s;
}


.about-text {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.6;
  padding: 32px;
  position: relative;
  color: #39ff14;
  background: linear-gradient(90deg, #39ff14 20%, #ffffff 40%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 100%;
  display: block;
  white-space: pre-line;
  text-align: left;
  height: 100%;
  margin-top: -75px;
}
.about-text p {
  margin: 0;
  padding: 0;
  display: inline;
}

@media (max-width: 800px) {
  .about-content {
    flex-direction: column;
    padding: 40px 5vw;
  }

  .about-image, .about-text-container {
    width: 100%;
  }

  .about-text {
    max-width: 100%;
    text-align: center;
  }

  .quote-wrapper {
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .quote-image {
    height: 140px;
    transform: translateY(-10px);
  }

  .quote p {
    font-size: 2rem;
    text-align: left;
  }
}
/* .video-embed ausblenden */
.video-embed {
  display: none;
}


/* Animation für Bild Fade-In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Neue Animation für instagram.png */
@keyframes instagramFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.about-image img:first-child {
  opacity: 0;
  animation: fadeIn 2s forwards;
}


.about-text {
  opacity: 0;
  animation: fadeIn 2s forwards;
  animation-delay: 0.5s;
}
/* Farben */
.green-text {
  color: #39ff14;
}

.white-text {
  color: white;
}

/* Fade-in Animation via Klassen und JS */
.fade-in {
  opacity: 0;
}

.fade-in.visible {
  opacity: 1;
}

/* Zitat-Block */
.quote {
    text-align: left;
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.quote p {
    opacity: 0;
    transition: opacity 1.5s ease;
    margin: 0;
    font-size: 2.5rem;  /* Schriftgröße deutlich vergrößert */
    font-weight: 600;
    user-select: none;
}

.quote .green {
    color: #39ff14;
}

.quote .white {
    color: white
}

/* Fade-in Animation für quote (per JS sichtbar machen) */
.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.fade-in.visible {
    opacity: 1;
}


.quote-container {
    display: inline-block;
    margin: 2.5rem auto 0;
    position: relative;
}

.quote-container {
    display: inline-block;
    margin: 2.5rem auto 0;
    position: relative;
}

.quote-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.3rem;
}

@keyframes scaleFadeIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(3);
    opacity: 1;
  }
}

.quote-image {
  opacity: 0;
  height: 200px;
  width: auto;
  user-select: none;
  position: static;
  transform: translateY(-20px);
  animation: scaleFadeIn 1.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.5s;
  transform-origin: center;
}
/* Add fade-in wrapper */
.fade-wrap {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 2.2s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info container styles */
.info-container {
  flex: 1 1 auto;
  box-sizing: border-box;
  border: 1px solid #fff;
  box-shadow:
      inset 0 0 40px rgba(255,255,255,0.07),
      inset 0 0 60px rgba(255, 255, 255, 0.1),
      0 18px 50px rgba(0,0,0,0.55);
  border-radius: 12px;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.4s ease;
}
.info-container:hover {
  transform: scale(1.025);
}

.info-container:hover .info-line {
  color: #39ff14;
}

.info-container .info-line {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fefcfc;
}

/* YouTube container styles */
.youtube-container {
    flex: 0 0 auto;
    box-sizing: border-box;
    border: 1px solid #fff;
    box-shadow:
      inset 0 0 40px rgba(255,255,255,0.07),
      inset 0 0 60px rgba(255, 255, 255, 0.1),
      0 18px 50px rgba(0,0,0,0.55);
    border-radius: 12px;
    width: 3.8rem;
    height: 100%;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.4s ease;
}

.boxes-group > .fade-wrap:last-child {
    margin-left: auto;
    margin-right: -0.5rem;
}

.boxes-group > .fade-wrap:first-of-type {
    flex: 1 1 auto;
    min-width: 0;
}

.boxes-group > .fade-wrap:first-of-type .info-container {
    width: 100%;
}

.youtube-container:hover {
  transform: scale(1.09);
}

/* YouTube Icon Styling */
.youtube-icon {
  display: block;
  width: 1.9rem;
  height: auto;
  color: white;
  transition: color 0.3s ease;
}

.youtube-container:hover .youtube-icon {
  color: #39ff14;
}

.boxes-group {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1rem;
}

/* Layout für duplizierte vs. originale Boxengruppe */
.boxes-group.duplicate { 
  margin-bottom: 8px; /* kleiner Abstand zwischen oberer und unterer Gruppe */
}
.boxes-group.original { 
  margin-top: 28px;  /* unteren Block etwas nach unten schieben */
}

/* Leicht unterschiedliche Fade-Delays zur Staffelung */
.boxes-group.duplicate .fade-wrap { 
  animation-delay: 1.9s; 
}
.boxes-group.original .fade-wrap { 
  animation-delay: 2.3s; 
}

.boxes-group > .fade-wrap:last-child {
    margin-left: auto;
    margin-right: -0.5rem;
}


@media (max-width: 600px) {
  .quote-wrapper {
    flex-direction: column !important;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
    margin-right: auto;
  }
  .quote-image {
    height: 180px;             /* größer */
    transform: translate(-180px, 0); /* nach links verschieben */
    margin: 0;                /* zentrierung aufheben */
  }
  .info-line {
    font-size: clamp(0.8rem, 4vw, 1rem);
    padding: 0.1rem 0.8rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    margin: 0 auto;
    width: 90vw;
    transform: translateX(-10px);
  }
  .boxes-group.original { margin-top: 18px; }
  .boxes-group.duplicate { margin-bottom: 6px; }
}
/* Additional responsive styles for very small screens */
@media (max-width: 480px) {
  /* Reduce title and subtitle sizes */
  .title {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 0.9rem;
  }
  /* Stack navigation links vertically and reduce spacing */
  nav {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .nav-link {
    font-size: 1rem;
  }
  /* Reduce logo size */
  .nav-logo img {
    height: 80px;
    width: 80px;
  }
  /* Hide background video on mobile to improve performance */
  .video-bg {
    display: none;
  }
  /* Make video embeds full width */
  .video-embed {
    width: 100vw;
    min-height: 240px;
  }
  /* Make about section elements full width and stack */
  .about-content {
    flex-direction: column;
    padding: 20px 5vw;
  }
  .about-image,
  .about-text-container {
    width: 100%;
  }
  /* Adjust quote text size */
  .quote p {
    font-size: 1.5rem;
  }
}


/* Fix: Ensure the .yt-button is always visible (not affected by fade-content) and above the video */
.yt-button {
  position: relative;
  z-index: 3;              /* above .video-bg (z-index:0) and normal content */
  opacity: 1 !important;   /* override any inherited fade-in opacity */
  transform: translateY(25px)
}

/* If the button is a direct child of .fade-content, keep it visible */
.fade-content > .yt-button {
  opacity: 1 !important;
}