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

body {
  background-color: rgb(5, 5, 5);
  color: white;
  font-family: Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
}

html, body {
  overflow: hidden;
  height: 100%;
}


header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  z-index: 5; /* Menü bleibt oben sichtbar */
}
/* Ladeanzeige Hintergrund */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  font-family: Arial, sans-serif;
  transition: opacity 2s ease; /* Sanftes Ausblenden */
}

/* Loader Animation */
.loader {
  width: 50px;
  height: 50px;
  border: 6px solid #ffffff;
  border-top: 6px solid chocolate;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation für den Kreis */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Styling für den Text */
#loading-screen p {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.background h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8vh;
  line-height: 0.75;
  text-transform: uppercase;
  text-align: center;
  z-index: 2;
  opacity: 0; /* Unsichtbar zu Beginn */
  color: chocolate; /* Startfarbe */
  animation: color-pulse-zwei 0.7s ease forwards;
  -webkit-box-reflect: below 1px linear-gradient(transparent, rgba(0, 0, 0, 0.15));
}

.overlay {
  position: absolute;
  top: 25%; /* Startet 20% vom oberen Rand */
  left: 25%; /* Startet 20% vom linken Rand */
  width: 50%; /* Deckt 60% der Breite ab */
  height: 50%; /* Deckt 60% der Höhe ab */
  background-color: black;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: circle(1vh at 0px 0px);
  transition: clip-path 0.2s ease, padding 0.2s ease;
  padding: 0vh;
  text-align: center;
}

.background h1.animate {
  animation: fadeInColorChange 0.7s ease forwards; /* Animation starten */
}

.overlay video {
  position: fixed; /* Fixiert das Video relativ zum Viewport */
  top: 0;
  left: 0;
  width: 100vw; /* Deckt die gesamte Breite des Bildschirms ab */
  height: 100vh; /* Deckt die gesamte Höhe des Bildschirms ab */
  object-fit: cover; /* Schneidet das Video proportional zu */
  z-index: -1; /* Stellt sicher, dass das Video hinter anderen Elementen bleibt */
  pointer-events: none; /* Verhindert Interaktionen mit dem Video */
}

.overlay h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8vh;
  line-height: 0.75;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  z-index: 4;
}
.overlay h1,
.background h1 {
  user-select: none; /* Verhindert das Auswählen von Text */
  cursor: default; /* Setzt den Standardcursor */
}
#video-text {
  font-size: 8.1vh;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); /* Startfarbe */
  text-align: center;
  animation: color-pulse 3s infinite alternate; /* Animation aktivieren */
}

/* Keyframes für die Animation */
@keyframes color-pulse {
  0% {
        color: rgba(255, 255, 255, 0.85);

  }
  33% {
    color: rgba(255, 255, 255, 0.55);
  }
  66% {
        color: rgba(255, 255, 255, 0.25);

  }
  100% {
    color: rgba(255, 255, 255, 0.05);
  }
}

@keyframes slide-in-top-left {
  0% {
    transform: rotate(-90deg) translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes slide-in-top-right {
  0% {
    transform: rotate(90deg) translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

.corner-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.corner-button {
  position: absolute;
  width: 7vh;
  height: 7vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 1px 3px 15px -3px rgba(0, 0, 0, 0.5);
  transition: background-color 0.6s ease, transform 0.9s ease;
  opacity: 1;
  z-index: 10;

  /* Hinzufügen der Farbwechsel-Animation */
  animation: button-color-pulse 3s infinite alternate;
}
@keyframes button-color-pulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeInColorChange {
  0% {
    opacity: 0; /* Startet unsichtbar */
    color: chocolate; /* Ursprüngliche Farbe */
  }
  100% {
    opacity: 1; /* Sichtbar */
    color: white; /* Ziel-Farbe */
  }
}

/* Hover-Effekte für die Buttons */
.corner-button:hover {
  transform: scale(1.7) rotate(90deg);
  box-shadow: 3px 5px 15px -3px rgba(0, 0, 0, 0.6),
    5px -5px 15px -3px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  opacity: 1;
}

/* Ecken-Positionierung und Animationen */
.top-left {
  top: 7vw;
  left: 7vw;
  transform: rotate(0deg);
  transform-origin: center;
  animation: slide-in-top-left 2s ease;
  animation-delay: 2s;
}

.top-right {
  top: 7vw;
  right: 7vw;
  transform: rotate(0deg);
  transform-origin: center;
  line-height: 1;
  animation: slide-in-top-right 2s ease;
  animation-delay: 2s;
}

footer {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.5vh;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 10px;
}

/* =========================================================
     SOCIAL ICONS
     ========================================================= */
/* LinkedIn Button (links) */
.linkedin-container {
  position: fixed;
  bottom: 128px;
  left: 7vw;
  z-index: 1000;
  transform: scale(0.5);
  transform-origin: bottom left;
}

.linkedin-tooltip {
  position: fixed;
  bottom: 180px;
  /* Position über dem linkedin-container */
  left: 6vw;
  /* Gleiche horizontale Ausrichtung wie linkedin-container */

  color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  white-space: nowrap;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  z-index: 1001;
  opacity: 0;
  transition: opacity 1.8s ease;
  pointer-events: none;
  /* Verhindert, dass der Tooltip Mausevents blockiert */
}

/* Tooltip anzeigen wenn über linkedin-container gehovert wird */
.linkedin-container:hover+.linkedin-tooltip {
  opacity: 1;
}

/* LinkedIn Logo Transparenz anpassen */

/* E-Mail Button (rechts) */
.button-container {
  position: fixed;
  bottom: 128px;
  right: 7vw;
  z-index: 1000;
  transform: scale(0.5);
  transform-origin: bottom right;
}

.email-tooltip {
  position: fixed;
  bottom: 180px;
  /* Position über dem button-container */
  right: 6vw;
  /* Gleiche horizontale Ausrichtung wie button-container */

  color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  white-space: nowrap;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  z-index: 1001;
  opacity: 0;
  transition: opacity 1.8s ease;
  pointer-events: none;
  /* Verhindert, dass der Tooltip Mausevents blockiert */
}

/* Tooltip anzeigen wenn über button-container gehovert wird */
.button-container:hover+.email-tooltip {
  opacity: 1;
}


/* =========================================================
     SOCIAL ICONS
     ========================================================= */
/* LinkedIn Button (links) */
.linkedin-container {
  position: fixed;
  bottom: 128px;
  left: 7vw;
  z-index: 1000;
  transform: scale(0.5);
  transform-origin: bottom left;
}

.linkedin-tooltip {
  position: fixed;
  bottom: 180px;
  /* Position über dem linkedin-container */
  left: 6vw;
  /* Gleiche horizontale Ausrichtung wie linkedin-container */

  color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  white-space: nowrap;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  z-index: 1001;
  opacity: 0;
  transition: opacity 1.8s ease;
  pointer-events: none;
  /* Verhindert, dass der Tooltip Mausevents blockiert */
}

/* Tooltip anzeigen wenn über linkedin-container gehovert wird */
.linkedin-container:hover+.linkedin-tooltip {
  opacity: 1;
}


/* E-Mail Button (rechts) */
.button-container {
  position: fixed;
  bottom: 128px;
  right: 7vw;
  z-index: 1000;
  transform: scale(0.5);
  transform-origin: bottom right;
}

.email-tooltip {
  position: fixed;
  bottom: 180px;
  /* Position über dem button-container */
  right: 6vw;
  /* Gleiche horizontale Ausrichtung wie button-container */

  color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  white-space: nowrap;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  z-index: 1001;
  opacity: 0;
  transition: opacity 1.8s ease;
  pointer-events: none;
  /* Verhindert, dass der Tooltip Mausevents blockiert */
}

/* Tooltip anzeigen wenn über button-container gehovert wird */
.button-container:hover+.email-tooltip {
  opacity: 1;
}

ul.social-icons {
  position: relative;
  z-index: 1000;
  display: flex;
  gap: 100px;
  margin: 0;
  padding: 0;
}

ul li {
  list-style: none;
}

ul li a {
  position: relative;
  display: block;
  text-decoration: none;
  transform: rotate(-30deg) skew(25deg) translate(0, 0);
  transition: 0.5s;
  box-shadow: -70px 70px 25px rgba(0, 0, 0, 0.2);
}

ul li a:hover {
  transform: rotate(-30deg) skew(25deg) translate(0px, 0);
  box-shadow: -90px 90px 30px rgba(0, 0, 0, 0.5);
}

ul li a span {
  display: block;
  width: 80px;
  height: 80px;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

/* Zweite Ebene (Seitenfläche) */
ul li a span:nth-child(2) {
  position: absolute;
  top: 39px;
  left: -69px;
  height: 60px;
  width: 80px;
  transform: rotate(0deg) skewY(-45deg) rotate(90deg);
  -webkit-box-reflect: below 1px linear-gradient(transparent, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}

ul li a span:nth-child(2):before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(95, 95, 95, 0.1);
  -webkit-box-reflect: below 1px linear-gradient(transparent, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}

/* Dritte Ebene (untere Fläche) */
ul li a span:nth-child(3) {
  position: absolute;
  bottom: -59px;
  left: -30px;
  height: 60px;
  width: 100%;
  transform: rotate(0deg) skewX(-45deg);
  -webkit-box-reflect: below 1px linear-gradient(transparent, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}

ul li a span:nth-child(3):before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.4));
}

ul li a i {
  font-size: 2.5em;
  color: #9e9e9e;
  line-height: 80px;
  transition: 0.5s;
}

/* Hover-Farben */
ul li a:hover span:nth-child(1) {
  background: #cacaca;
}

ul li a:hover span:nth-child(2) {
  background: #d1d1d1;
}

ul li a:hover span:nth-child(3) {
  background: #d3d3d3;
}

/* Überschreibt Hover-Regel */
ul li a:hover span {
  background: initial;
}

/* Icon-Farbe beim Hovern */
ul li:hover i {
  color: #000000;
}

/* Content div - versteckt standardmäßig */
#content {
  display: none;
}

/* Social Icons - CSS Custom Properties */
.social-icons li {
  --clr: #ffffff;
}

/* LinkedIn Images - Größe */
.linkedin-container img {
  width: 40px;
  height: 40px;
}

/* LinkedIn Logo beim Hover austauschen - schwarzes Logo ohne Transparenz */
.linkedin-container:hover img {
  content: url('./assets/icons8-linkedin-250-black.png');
  opacity: 1;
  /* Schwarzes Logo voll sichtbar */
}

