/* index.css */

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/background.jpg') center/cover no-repeat fixed;
  position: relative;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

.hero {
  text-align: center;
  color: #fff;
}

.hero img {
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  width: clamp(200px, 50vw, 400px);
  height: auto;
  filter: invert(1) brightness(2) drop-shadow(0px 0px 25px rgba(0, 0, 0, 0.5)); /* Macht die SVG weiß */
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }

  .hero {
    height: 100vh;
    padding: 20px;
  }
}

.hero p {
  font-size: clamp(0.5rem, 4vw, 2rem);
  margin: 30px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease forwards;
  color: #fff;
}

/* Sections */
section {
  position: relative;
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 20px auto 0;
}

/* About Section */
#about-section,
#gallery-section,
#fees-section,
#training-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f5f5f5;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.image-placeholder-about {
  flex: 1 1 400px;
  background: #ccc center/cover no-repeat;
  height: 300px;
  border-radius: 10px;
  position: relative;
  transition: opacity 1s ease, transform 0.5s ease-in;
  opacity: 1;
}

.text {
  flex: 1 1 400px;
  max-width: 600px;
}

.text p {
  margin: 20px 0;
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Training Section */
#training-section {
  background: #f0f0f0;
}

.training-info {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.training-image {
  flex: 1 1 400px;
  height: 300px;
  background: url('../images/trainingroom.jpg') center/cover no-repeat;
  border-radius: 10px;
}

.training-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.training-text h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.training-text p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Gallery Section */
.gallery-wrapper {
  overflow: hidden;
  transition: height 0.5s ease;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

#gallery-section p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

.album {
  position: relative;
  background: #ddd;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.album:hover {
  box-shadow: 0 0px 20px rgba(0,0,0,0.2);
}

.album-title {
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px;
  text-align: center;
  width: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.album:hover .album-title {
  opacity: 1;
}

/* Initialer Zustand der neuen Alben */
.album.fade-in-init {
  opacity: 0;
  transform: translateY(20px);
}

/* Animationseffekt beim Einblenden */
.album.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.gallery-controls {
  text-align: center;
  margin-top: 20px;
}

.gallery-controls button {
  background: var(--accent-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.gallery-controls button:hover {
  background: #b58a99;
}

/* Fees Section */
#fees p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin: 20px auto;
  max-width: 500px;
  line-height: 1.6;
}

#fees p a:not(.btn) {
  color: var(--accent-color);
  font-weight: 600;
}