/*
Theme Name: Sonnenunterklang
Theme URI: https://sonnenunterklang.de/
Author: Retronom
Author URI: https://sonnenunterklang.de/
Description: Custom Theme für das Sonnenunterklang Festival
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=BioRhyme:wght@400;700&display=swap');

body {
  margin: 0;
  font-family: 'BioRhyme', serif;
  background: #000;
  color: #fff;
  scroll-behavior: smooth;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  color: black;
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-banner {
  max-width: 100%;
  height: auto;
}
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  overflow: auto;
}
.modal.open {
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  color: black;
  padding: 2rem;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
}
.modal-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.more-info-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}


    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      scroll-behavior: smooth;
    }

    html, body {
      font-family: 'BioRhyme', serif;
      height: 100%;
      color: white;
      background: url('images/sonnenunterklang-bg.jpg') no-repeat center center fixed;
      background-size: cover;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -1;
      background: rgba(0, 0, 0, 0.4);
    }

    header {
      position: fixed;
      top: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.6);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 999;
    }

    header .logo a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      font-size: 1.2rem;
    }

    .nav-links {
      display: none;
      gap: 1.5rem;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      font-weight: bold;
    }

    .burger {
      display: none;
      flex-direction: column;
      cursor: pointer;
    }

    .burger div {
      width: 25px;
      height: 3px;
      background-color: white;
      margin: 4px 0;
    }

    section {
      width: 80%;
      max-width: 1200px;
      margin: 2rem auto;
      min-height: 80vh;
      padding: 4rem 2rem;
      background: rgba(255, 255, 255, 0.8);
      color: black;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    #hero {
      background: none;
      color: white;
      border-radius: 0;
      min-height: 100vh;
      justify-content: center;
      align-items: center;
      text-align: center;
    }

    #hero h1, #hero h2, #hero h3, #hero p {
      text-shadow: 2px 2px 4px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.6);
      margin: 0.3rem 0;
    }

    #hero h1 {
      font-size: clamp(2rem, 6vw, 4rem);
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.3rem;
    }

    #hero h1 span {
      display: inline-block;
    }

    @media (max-width: 600px) {
      #hero h1 span {
        display: block;
      }
    }

    #hero h2 {
      font-size: 2rem;
    }

    #hero h3 {
      font-size: 1.5rem;
    }

    #hero p {
      max-width: 600px;
      font-size: 1.2rem;
      margin-top: 1rem;
    }

    .tage-grid {
      display:block;
      gap: 1.5rem;
      margin-top: 2rem;
      /*display: grid;*/
      /*grid-template-columns: 1fr; /* Mobil-Standard: eine Spalte */
    }

    .tag-box {
      background: white;
      border-radius: 8px;
      padding: 1.5rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      text-align: left;
      margin-bottom:1rem;
    }

    .tag-box img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      border-radius: 4px;
      margin-bottom: 0.5rem;
    }

    .tag-box h4 {
      margin-bottom: 0.5rem;
    }

    .tag-box p {
      margin: 0.2rem 0;
      font-size: 0.9rem;
    }

    footer {
      background: #111;
      color: white;
      padding: 2rem;
      text-align: center;
      font-size: 0.9rem;
    }

    /* Planeten */
    .floating-planet {
  position: fixed;
  top: 0;
  left: 0;
  offset-rotate: 0deg;
  offset-distance: 0%;
  animation: planetMotion 22s ease-in-out forwards;
  animation-fill-mode: forwards;
  pointer-events: none;
  z-index: 9999;
  filter: drop-shadow(4px 6px 6px rgba(0, 0, 0, 0.4));
  will-change: offset-distance, transform;
}

.planet-tilt {
  animation: planetMotion 22s ease-in-out forwards, planetTilt 6s ease-in-out infinite;
}

/* Keyframes für Bewegung entlang des Pfads */
@keyframes planetMotion {
  0%   { offset-distance: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes planetTilt1 {
  0% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(8deg); }
  100% { transform: rotate(5deg); }
}

@keyframes planetTilt2 {
  0% { transform: rotate(5deg); }
  40% { transform: rotate(-25deg); }
  80% { transform: rotate(20deg); }
  100% { transform: rotate(5deg); }
}

@keyframes planetTilt3 {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(8deg); }
  40% { transform: rotate(7deg); }
  60% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}

@keyframes planetTilt4 {
  0% { transform: rotate(-5deg); }
  20% { transform: rotate(13deg); }
  40% { transform: rotate(-2deg); }
  60% { transform: rotate(22deg); }
  80% { transform: rotate(-1deg); }
  100% { transform: rotate(-22deg); }
}


/* Smooth Pfade – angepasst für schöne Bögen */
.planet-path-1 {
  offset-path: path("M -150 200 C 300 100, 600 300, 1300 200");
  animation: planetMotion 20s ease-in-out forwards;
}
.planet-path-2 {
  offset-path: path("M 1300 100 C 1000 400, 300 -100, -150 150");
  animation: planetMotion 22s ease-in-out forwards;
}
.planet-path-3 {
  offset-path: path("M -100 100 C 300 200, 900 0, 1300 120");
  animation: planetMotion 24s ease-in-out forwards;
}
.planet-path-4 {
  offset-path: path("M 1300 250 C 800 -150, 400 400, -150 200");
  animation: planetMotion 26s ease-in-out forwards;
}
.planet-path-5 {
  offset-path: path("M -150 300 C 300 100, 1000 400, 1300 150");
  animation: planetMotion 23s ease-in-out forwards;
}
.planet-path-6 {
  offset-path: path("M 1300 50 C 800 500, 200 -200, -150 100");
  animation: planetMotion 25s ease-in-out forwards;
}

.rotate1 { animation: planetMotion 22s ease-in-out forwards, planetTilt1 14s ease-in-out infinite; }
.rotate2 { animation: planetMotion 22s ease-in-out forwards, planetTilt2 16s ease-in-out infinite; }
.rotate3 { animation: planetMotion 22s ease-in-out forwards, planetTilt3 12s ease-in-out infinite; }
.rotate4 { animation: planetMotion 22s ease-in-out forwards, planetTilt4 15s ease-in-out infinite; }




    @media (min-width: 1024px) {
      .tage-grid {
        display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 gleich breite Spalten */
  }

  /* MO / DI / MI jeweils 2 Spalten = 3 Boxen pro Zeile */
  .tage-grid .tag-box:nth-child(1),
  .tage-grid .tag-box:nth-child(2),
  .tage-grid .tag-box:nth-child(3) {
    grid-column: span 2;
  }

  /* DO & FR je 3 Spalten = 2 Boxen in einer neuen Zeile */
  .tage-grid .tag-box:nth-child(4),
  .tage-grid .tag-box:nth-child(5) {
    grid-column: span 3;
  }
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 1rem;
        border-radius: 8px;
      }

      .nav-links.active {
        display: flex;
      }

      .burger {
        display: flex;
      }
    }
  
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  padding: 3vh 0;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  color: #111;
  max-height: 90vh;
  overflow-y: auto;
}

.modal .close {
  color: #000;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-top: -1rem;
  margin-right: -1rem;
}

.artist-block {
  margin-bottom: 2rem;
}

.artist-block img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.info-button {
  background: #000;
  color: #fff;
  border: 2px solid white;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.info-button:hover {
  background: white;
  color: black;
}

@media (min-width: 768px) {
  .tag-box img {
    aspect-ratio: 3 / 1 !important;
  }
}

@media (max-width: 768px) {
  .modal-banner,
  .artist-block img {
    aspect-ratio: 1 / 1 !important;
  }
}


.more-link {
  display:none;
}