
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
  user-select: none; 
}

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

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


.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;
  border-radius: 10px;
}

/* 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;
  border-radius: 10px;
}


.top-left {
  top: 7vw;
  left: 7vw;
  transform-origin: center;
  animation: slide-in-top-left 2s ease;
  border-radius: 10px;
}

.top-right {
  top: 7vw;
  right: 7vw;
  transform-origin: center;
  line-height: 1;
  animation: slide-in-top-right 2s ease;
  border-radius: 10px;
}

/* ============= PORTFOLIO-BEREICH ============= */
.portfolio-wrapper {
  perspective: 800px; 
  perspective-origin: center center;
  position: absolute;
  top: 30vh;
  left: 50%;
  transform: translateX(-50%);
  transform-style: preserve-3d;
  z-index: 1001;
  
  /* Verzögerte Rotation des gesamten Wrappers */
  animation: startRotating 40s linear infinite;
  animation-delay: 3s;
  animation-fill-mode: both;
}

/* Hauptüberschrift */
.portfolio-text {
  font-size: 4vh;
  font-weight: bold;
  color: chocolate;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.2rem;
  display: inline-block;
  position: relative;
  transform-style: preserve-3d;
  transform-origin: center;
  user-select: none;
  margin-left: 5px;
  
  /* Animationsstart (nur Fall-Animation) */
  animation: portfolioFall 3s ease-in-out forwards;

}

/* Unterüberschrift */
.portfolio-text-klein {
  position: relative;
  font-size: 1.1rem;
  text-align: center;
  color: white;
  margin-bottom: 20px;
  transform-style: preserve-3d;
  perspective: 1000;
  
  /* Bounce-Animation */
  animation: webseitenBounce 1s ease-out forwards;
  animation-delay: 1.7s;
 
}

/* ============= WRAPPER / HAUPT-KARUSSELL ============= */
.wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px; /* 3D-Perspektive für das Karussell */
  z-index: 1;
  opacity: 0; /* Startet unsichtbar */
  animation: wrapperFadeIn 3s ease-in forwards;
  animation-delay: 5s; 
}

.inner {
  --w: 12vh; 
  --h: 15vh; 
  --translateZ: calc((var(--w) + var(--h)) * 1.1);
  --rotateX: -15deg; 
  --perspective: 1000px;

  position: absolute;
  width: var(--w);
  height: var(--h);
  z-index: 2;
  transform-style: preserve-3d;
  transform: perspective(var(--perspective));
  animation: rotating 40s linear infinite;
  border-radius: 5px;
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: rgba(var(--color-card), 0.6);
  transform: rotateY(calc((360deg / var(--quantity)) * var(--index)))
             translateZ(var(--translateZ));
  box-shadow: 0 0vh 0px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  -webkit-box-reflect: below 1px
    linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.4));
}

.img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: radial-gradient(
    circle,
    rgba(var(--color-card), 0.2) 0%,
    rgba(var(--color-card), 0.6) 80%,
    rgba(var(--color-card), 0.9) 100%
  );
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: transform 0.5s ease;
  border: none; /* Entfernt alle Borders */
  border-top: 1px solid rgba(255, 255, 255, 0.5); /* Fügt nur oben eine Border hinzu */
}


.card h2 {
  position: absolute;
  width: 100%;
  height: 17.3vh;
  top: -2.3vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: #ffffff;
  user-select: none;
  padding: 5px 8px;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  z-index: -10;
  font-weight: 200;
}
.card h2:hover {
  background-color: rgba(0, 0, 0, 0.95);
  color: chocolate;
 
}

.card h3 {
  position: absolute;
  width: 100%;
  height: 17.5vh;
  top: -2.5vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: #ffffff;
  user-select: none;
  padding: 4px 8px;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  z-index: 3000;
  font-weight: 200;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 1vh;
}

/* PetTierio: Text darf umbrechen + Logo mit seitlichem Luftpolster */
.pet-tierio-card h3 {
  white-space: normal;
  line-height: 1.25;
  font-size: 0.55rem;
  padding: 6px 14px;
}

.pet-tierio-card .img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-tierio-logo {
  width: 82%;
  height: 82%;
  object-fit: contain;
  object-position: center;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 17.5vh; /* Gleiche Höhe wie .card h3 */
  top: -2.5vh;    /* Gleiche Position wie .card h3 */
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  z-index: -20;   /* Weit hinter anderen Elementen */
  background-color: rgba(0, 0, 0, 0.8);
  pointer-events: none; /* Verhindert, dass es Klicks abfängt */
}

.img video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Statt 'cover' verwenden wir 'contain' */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: transform 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.2); /* Optionaler Hintergrund für leere Bereiche */
}


/* ============= BUTTON / SOCIAL ICONS ============= */
.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.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;
}

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(124, 37, 37, 0.1);
  -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) {
  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,  rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}

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

/* Hover-Stile mit unterschiedlichen Weißtönen */
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 die ursprüngliche Hover-Regel */
ul li a:hover span {
  background: initial; 
}

ul li:hover i {
  color: #000000;
}

/* Keine vertikale Verschiebung beim Hovern */
ul li a:hover {
  transform: rotate(-30deg) skew(25deg) translate(0px, 0); 
  box-shadow: -90px 90px 30px rgba(0, 0, 0, 0.5);
}

/* ============= FOOTER ============= */
footer {
  position: absolute;
  bottom: 3vh;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.5vh;
  color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  margin-bottom: 2vh;
  z-index: -1;
}

/* ============= MEDIA QUERIES ============= */
@media screen and (max-width: 400px) {
  .card h2 {
    font-size: 0.45rem; 
    padding: 4px 8px;
  }
}

/* ============= KEYFRAMES ============= */

/* Slide-In für die Eck-Buttons */
@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);
  }
}

/* Karussell-Rotation */
@keyframes rotating {
  from {
    transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0);
  }
  to {
    transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(-1turn);
  }
}

/* NEUE ANIMATIONEN FÜR PORTFOLIO TEXTE */
@keyframes portfolioFall {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }
  60% {
    transform: translateY(20px);
    opacity: 1;
  }
  80% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes webseitenBounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(15px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes wrapperFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* WICHTIGE ÄNDERUNG: Zwei-Phasen Rotation mit konstantem Tempo nach dem Start */
@keyframes startRotating {
  0% {
    transform: translateX(-50%) rotateY(0deg);
  }
  100% {
    transform: translateX(-50%) rotateY(360deg);
  }
}

/* Portfolio Info Text im Footer */
footer .portfolio-info {
  color: white;
  font-size: 0.675rem; /* 25% kleiner als 0.9rem */
  line-height: 1.4;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  footer .portfolio-info {
    font-size: 0.6rem; /* 25% kleiner als 0.8rem */
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }

  /* GitHub Button für Mobile tiefer positionieren */
  .button-container {
    bottom: 58px; /* Gleiche Höhe wie LinkedIn/Email Buttons */
    right: calc(10vw - 15px); /* 15px weiter nach rechts */
  }

  .email-tooltip {
    bottom: 110px; /* Entsprechend angepasst */
    right: calc(9vw - 15px); /* 15px weiter nach rechts */
  }
}

/* Sterne für ausgewählte Karten */
.star {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.star .material-icons {
  font-size: 0.8rem;
  color: chocolate;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Portfolio Cards - CSS Custom Properties */
.inner {
  --quantity: 11;
}

.card {
  --index: 0;
  --color-card: 142, 249, 252;
  cursor: pointer;
}

.card:nth-child(1) {
  --index: 0;
  --color-card: 142, 249, 252;
}

.card:nth-child(2) {
  --index: 1;
}

.card:nth-child(3) {
  --index: 2;
}

.card:nth-child(4) {
  --index: 3;
}

/* Spezifische Stile für das Architektur-Logo */
.card:nth-child(4) .img {
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card:nth-child(4) .img img {
  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
}

.card:nth-child(5) {
  --index: 4;
}

.card:nth-child(6) {
  --index: 5;
}

.card:nth-child(7) {
  --index: 6;
}

.card:nth-child(8) {
  --index: 7;
  --color-card: 204, 142, 252;
}

.card:nth-child(9) {
  --index: 8;
  --color-card: 142, 252, 157;
}

.card:nth-child(10) {
  --index: 9;
  --color-card: 204, 142, 252;
}

.card:nth-child(11) {
  --index: 10;
  --color-card: 142, 252, 157;
}

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

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


