.logo-animation {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  overflow: hidden;
  --logo: none;
}

/* ==========================================================
   START-HINTERGRUND (sichtbar direkt beim Laden)
   ========================================================== */
.initial-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4; /* leicht sichtbar */
  z-index: 0;
  animation: fadeOutInitial 1s ease 1.8s forwards; /* verschwindet kurz vor Logo-Zoom */
}

@keyframes fadeOutInitial {
  to {
    opacity: 0.5;
  }
}

/* ==========================================================
   HINTERGRUND (Swiper oder Einzelbild)
   ========================================================== */
.background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.single-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeInBg 1.5s ease-in 1.8s forwards;
}

.bg-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  animation: fadeInBg 1.5s ease-in 1.8s forwards;
}

.bg-swiper .swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  transition: opacity 1.5s ease-in-out;
}

@keyframes fadeInBg {
  to {
    opacity: 1.6;
  }
}

/* ==========================================================
   LOGO-MASKE
   ========================================================== */
.logo-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  perspective: 1000px;
}

.logo-mask {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  mask-image: var(--logo);
  -webkit-mask-image: var(--logo);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 70vw auto;
  -webkit-mask-size: 70vw auto;
  mask-position: center;
  -webkit-mask-position: center;
  transform-origin: center center;
  animation: zoomIn 1s ease-in 2s forwards;
}

@keyframes zoomIn {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(16); opacity: 0; }
}

/* ==========================================================
   TEXT
   ========================================================== */


.overlay-text .links {
	display: flex;
	gap:5px;
	flex-direction: column;
	margin-top:20px;
	align-items: center;	
	  opacity: 0;
  animation: fadeLine 0.6s ease-out forwards;
	
}
.overlay-text .links a {
    background: #fff;
    color: #000;
    display: flex;
    justify-content: center;
    padding: 5px 15px;
    line-height: 1.2em;
    font-size: 19px;
	padding-top:10px;
	border-radius: 25px;
}

.overlay-text .links a:hover {
    background: var(--farbe-2);
	color:#FFF;
}


.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: white;
  text-align: center;
}

.overlay-text p, .overlay-text a {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  animation: fadeLine 0.6s ease-out forwards;
  font-size: 35px;
  line-height: 1.3em;
}

.overlay-text p {
text-shadow: 4px 3px 0 #000;
}



.overlay-text p strong {
  font-size: 45px;
}

.overlay-text p:nth-child(1) {
  animation-delay: 0.8s;
  font-size: 45px;
}
.overlay-text p:nth-child(2) { animation-delay: 0.5s; }
.overlay-text p:nth-child(3) { animation-delay: 0.8s; }
.overlay-text .links { animation-delay: 0.9s; }
.overlay-text .social-icons { animation-delay: 0.5s; }

@keyframes fadeLine {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================
   LOGO IM TEXT
   ========================================================== */
.overlay-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeLogo 0.6s ease-out forwards;
  animation-delay: 0.5s;
}

.overlay-logo svg {
  width: 30vw;
  height: auto;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.6));
  fill: #FFF;
}

.overlay-logo svg g,
.overlay-logo svg path,
.overlay-logo svg g g,
.overlay-logo svg rect {
  fill: #FFF !important;
}

@keyframes fadeLogo {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}






/* Social Icons */
.overlay-text .social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
}

.overlay-text .social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
}

.overlay-text .social-icons a svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  transition: transform 0.3s ease;
}

.overlay-text .social-icons a svg path {
  transition: fill 0.3s ease;
}

.overlay-text .social-icons a:hover svg {
  transform: scale(1.2);
}

.overlay-text .social-icons a:hover svg path,
.overlay-text .social-icons a:hover svg{
  fill: var(--farbe-2) !important;
}


@media (max-width: 768px) {
	.overlay-logo svg {
		width: 80vw;
	}
	
.logo-mask {
  mask-size: 90vw auto;
  -webkit-mask-size: 90vw auto;
}
}
