/* ballet.css */

/* Reset und Grundstile */
* {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
}

html, body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background: #fafafa;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  min-height: 100vh; /* Sicherstellen, dass der Body mindestens die volle Höhe des Viewports hat */
  display: flex;
  flex-direction: column; /* Vertikale Ausrichtung */
}

main {
  flex: 1; /* Nimmt den verbleibenden Platz ein */
}


/* Spezifische Link-Farben */
/* Links rosa färben, außer wenn sie die Klasse 'btn' haben */
a:not(.btn) {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:not(.btn):hover {
  color: #a6789c;
}

:root {
  --primary-color: #333;
  --secondary-color: #555;
  --accent-color: #c9a7b4; /* Rosa Farbe */
  --light-bg: #f9f9f9;
  --dark-bg: #222;
  --max-width: 1200px;
}

.content-wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-100%);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

header.visible {
  transform: translateY(0); /* Header fährt in den Viewport */
  opacity: 1;
}

header .always-show-header {
  transform: translateY(0);
  opacity: 1;
  transition: none;
}

/* Klasse für immer sichtbaren Header */
.always-show-header header {
  transform: translateY(0) !important; /* Setzt den Header in die sichtbare Position */
  opacity: 1 !important;               /* Macht den Header vollständig sichtbar */
  transition: none !important;        /* Deaktiviert Übergänge für sofortige Sichtbarkeit */
}

header .logo {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  width: 200px; /* Einheitliche Breite */
  text-align: left;
  white-space: nowrap; /* Kein Zeilenumbruch */
}

/* Sprachumschaltung als DE | EN */
.language-switcher {
  margin-right: 20px;
  gap: 10px;
  align-items: right;
}

.language-switcher a {
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

.language-switcher a.active {
  color: var(--accent-color); /* Rosa Farbe */
  font-weight: 700;
}

.language-switcher a:hover {
  color: #666;
}

/* Navigation Styles */
#mainNav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

#mainNav ul li a {
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #333;
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

#mainNav ul li a:hover {
  color: var(--accent-color);
  text-shadow: 0 0px 20px rgba(0,0,0,0.1);

}

/* Verstecke Elemente mit der Klasse .hidden */
.hidden {
  display: none !important;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

@media (max-width: 768px) {
  #mainNav {
    position: fixed;
    top: 70px;
    right: 30px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
    transform: translateY(-200%);
    transition: transform 0.3s ease;
  }

  #mainNav.open {
    transform: translateY(0);
  }

  #mainNav ul {
    flex-direction: column;
    gap: 0;
  }

  #mainNav ul li a {
    padding: 15px 20px;
    display: block;
    border-bottom: 1px solid #eee;
  }

  #mainNav ul li:last-child a {
    border-bottom: none;
  }

  .hamburger {
    display: flex;
  }

  /* Spezifische Regel für versteckte Links im Hamburger-Menü */
  #mainNav ul li a.hidden {
    display: none;
  }
}

/* Footer Styles */
footer {
  background: var(--dark-bg);
  color: #ccc;
  padding: 40px 20px;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

a.footer {
  color: #ccc;
  font-weight: normal;
}

/* Indikatoren */
.news-indicators {
  text-align: center;
  margin-top: 20px;
}

.news-indicators .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.news-indicators .dot.active {
  background: var(--accent-color);
}

/* Keyframes und Animationen */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Mobile Einstellungen */
@media (max-width: 768px) {
  .about-wrapper, .training-info {
    flex-direction: column;
  }
  .training-image, .image-placeholder-about {
    width: 100%;
    height: 200px;
  }
  .training-text, .text {
    max-width: 100%;
  }

  .news-carousel {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 20px; /* Einheit angegeben */
  }
  .news-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
    padding: 30px;
  }
}

.btn {
  text-decoration: none;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: -webkit-transform 0.5s ease, box-shadow 0.5s ease;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform: scale(1); /* Ausgangszustand */
}

.btn:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); /* Schatten beim Hover */
  color: #fff;
  transform: scale(1.05);
}

@keyframes hoverPulse {
  0% {
    transform: scale(1); /* Ausgangszustand */
  }
  50% {
     /* Zwischenzustand (Größer) */
  }
  100% {
    transform: scale(1); /* Zurück zur Ausgangsgröße */
  }
}