/* Grundlayout */
body {
  margin: 0;
  font-family: inherit;
  background: linear-gradient(135deg, #ffa5c0, #96b7ff, #ffee8f);
  color: #333;
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: backgroundMove 15s ease infinite;
}

.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shimmer-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #ccc 25%, #ddd 37%, #ccc 63%);
  background-size: 400% 100%;
  animation: placeholderShimmer 1.5s infinite;
  z-index: 1;
}

.loading-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-spinner {
  border: 6px solid #eee;
  border-top: 6px solid #ff0062;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  max-width: 80%;
}

.loading-text-instagram a {
  color: #ff0062;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  font-family: Arial, sans-serif;
  max-width: 80%;
}

/* Animationen */
@keyframes placeholderShimmer {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.progress-container {
  position: fixed;
  width: 100%;
  height: 4px;
  background: #ddd;
  top: 0;
  left: 0;
  z-index: 999;
  transition: opacity 0.5s;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: #ff0062;
  transition: width 0.4s ease;
}

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  height: 100%;
  box-sizing: border-box;
}

.logo {
  width: 120px;
  margin-bottom: 0rem;
}

.logo:hover {
  transform: scale(1.05);
}

h1 {
  margin-top: 0rem;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #333;
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  text-align: center;
}

.typing {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 1rem;
  min-height: 2rem;
}

.typing-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: calc(100vh - 160px);
  padding: 1rem;
  box-sizing: border-box;
}

.cursor {
  display: inline-block;
  width: 2px;
  background: #333;
  animation: blink 0.7s steps(2, start) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.buttons a {
  font-size: 1.4rem;
  color: #333;
  padding: 0.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.buttons a:hover {
  color: #ff0062;
  transform: scale(1.1);
}

.social-media {
  margin-top: 7rem;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-media a {
  font-size: 2.5rem;
  color: #000;
  transition: transform 0.3s, color 0.3s;
}

.social-media a:hover {
  transform: scale(1.2);
  color: #ff0062;
}

footer {
  margin-top: auto;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* Fade-In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }
.delay-4 { animation-delay: 2s; }
.delay-5 { animation-delay: 2.5s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backgroundMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsives Design – erweiterter Bereich für Smartphones und Tablets */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .landing {
    padding: 1rem;
    max-width: 100%;
    height: 100vh;
    justify-content: center; /* zentriert vertikal */
  }

  h1 {
    margin-bottom: 0.8rem;
  }

  p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .typing {
    font-size: 1.2rem;
  }

  .typing-section {
    height: auto; /* sonst blockiert es die Höhe */
    padding: 0.5rem;
    margin-top: 0.5rem;
  }

  .logo {
    margin-bottom: 0.5rem; /* statt 1rem oder mehr */
    width: 120px; /* kleiner für mobile Screens */
  }

  .buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .buttons a {
    font-size: 1.2rem;
    padding: 0.6rem;
  }

  .social-media {
    margin-top: 2rem; /* weniger Abstand */
  }

  .social-media a {
    font-size: 2rem;
  }

  footer {
    display: none; /* optional, wenn's zu viel ist */
  }
}

@media screen and (orientation: landscape) and (max-width: 820px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }

  .landing {
    height: 100vh;
    padding: 1rem;
    justify-content: center;
  }

  .logo {
    width: 90px;
    margin-bottom: 0.5rem;
  }

  h1 {
    font-size: 1.4rem;
    margin: 0.5rem 0;
  }

  .typing {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    min-height: 1.4rem;
  }

  .social-media {
    margin-top: 0.5rem;
    gap: 20px;
  }

  .social-media a {
    font-size: 1.8rem;
  }

  .typing-section {
    padding: 0.5rem;
    height: auto;
    flex-grow: 1;
    justify-content: center;
  }

  footer {
    display: none;
  }
}
