/* ============================================
   SENDEPLAN - RESPONSIVE STYLES
   ============================================ */

/* Z-Index Fix: Verhindere dass Elemente durch Header floaten */
header {
  z-index: 1000 !important;
}

.player {
  z-index: 999 !important;
}

.sendeplan-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   BEREICH 2: AKTUELLE SHOWS (Priorität)
   ============================================ */

.current-shows-section {
  order: 1;
  background: #fcf8d76b;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.current-shows-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #000;
}

.shows-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (width > 600px) {
  .shows-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.show-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.show-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.show-current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.show-current .show-time-label,
.show-current .show-name,
.show-current .show-time,
.show-current .show-description {
  color: white;
}

.show-time-label {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  color: #764ba2;
}

.show-current .show-time-label {
  opacity: 1;
}

.show-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000;
}

.show-time {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-family: monospace;
  color: #666;
}

.show-description {
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.9;
  color: #333;
}

.show-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* ============================================
   BEREICH 3: PLAYLIST
   ============================================ */

.playlist-section {
  order: 2;
  background: #fcf8d76b;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.playlist-container {
  max-width: 100%;
}

.playlist-column h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #000;
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.song-item {
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.song-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.song-list .song-artist {
  font-weight: bold;
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-list .song-title {
  font-style: italic;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: static !important;
  animation: none !important;
  transform: none !important;
  width: 100%;
}

.song-list .song-time {
  font-size: 0.7rem;
  color: #999;
  font-family: monospace;
  margin-top: auto;
}

/* ============================================
   BEREICH 1: WOCHENÜBERSICHT
   ============================================ */

.schedule-section {
  order: 3;
  background: #fcf8d76b;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.schedule-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #000;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (width > 1200px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .day-schedule {
    min-height: 100%;
    box-sizing: border-box;
  }
}

.day-schedule {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.day-header {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #764ba2;
  color: #000;
}

.day-shows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-show {
  padding: 0.75rem;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #764ba2;
  transition: background 0.2s ease;
}

.schedule-show:hover {
  background: #f0f0f0;
}

.schedule-show-time {
  font-family: monospace;
  font-weight: bold;
  font-size: 0.85rem;
  color: #764ba2;
  margin-bottom: 0.3rem;
}

.schedule-show-name {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #000;
}

.schedule-show-description {
  font-size: 0.8rem;
  line-height: 1.3;
  color: #666;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.loading {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

.error {
  text-align: center;
  padding: 2rem;
  color: #d32f2f;
  background: #ffebee;
  border-radius: 6px;
  margin: 1rem 0;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

/* ============================================
   RESPONSIVE ANPASSUNGEN
   ============================================ */

@media (width > 1200px) {
  .sendeplan-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto;
    gap: 2rem;
  }

  .current-shows-section {
    order: 1;
    grid-column: 1 / -1;
  }

  .playlist-section {
    order: 2;
    grid-column: 1;
  }

  .schedule-section {
    order: 3;
    grid-column: 2;
    grid-row: 2 / 4;
  }
  }

  @media (width > 768px) {
  .sendeplan-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto;
    gap: 2rem;
  }

  .current-shows-section {
    order: 1;
    grid-column: 1 / -1;
  }

  .playlist-section {
    order: 2;
    grid-column: 1;
  }

  .schedule-section {
    order: 3;
    grid-column: 2;
    grid-row: 2 / 4;
  }
}

@media (width > 500px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}