/* ==========================================================================
   TAGEBIS SCHULFERIEN.CSS - Spezifisches Stylesheet für Schulferien
   Header & Footer werden zu 100% von style.css gesteuert
   ========================================================================== */

/* 1. Haupt-Layout & Container */
.school-main {
  min-height: calc(100vh - 120px);
  padding: 2.5rem 1rem 5rem;
}

.content-wrapper {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* 2. Hero & Regionsauswahl */
.school-hero {
  text-align: center;
}

.region-control-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.region-select-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.region-select-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-select {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.custom-select:focus {
  border-color: #c026d3;
}

/* 3. Hero Live-Countdown Kachel (Schul-Thema mit sanftem Violett-Glow) */
.next-holiday-card {
  padding: 2rem;
  text-align: center;
  border: 2px solid rgba(192, 38, 211, 0.35);
  background: radial-gradient(circle at top, rgba(192, 38, 211, 0.12) 0%, var(--bg-surface) 75%);
  box-shadow: 0 10px 30px -5px rgba(192, 38, 211, 0.15);
}

.next-holiday-badge.school-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #c026d3;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.next-holiday-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.next-holiday-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.next-holiday-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.btn-share-holiday, .btn-save-holiday {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-share-holiday {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-share-holiday:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.btn-save-holiday {
  background: #c026d3;
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(192, 38, 211, 0.35);
}

.btn-save-holiday:hover {
  background: #a21caf;
  transform: translateY(-1px);
}

/* 4. Bulk Import Card (1-Klick-Hebel) */
.bulk-import-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.8rem;
  border: 1.5px dashed #c026d3;
  background: rgba(192, 38, 211, 0.08);
  border-radius: 20px;
}

.bulk-import-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bulk-import-icon {
  font-size: 2rem;
}

.bulk-import-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.bulk-import-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bulk-import-btn {
  white-space: nowrap;
  flex-shrink: 0;
  background: #c026d3 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(192, 38, 211, 0.35) !important;
}

.bulk-import-btn:hover {
  background: #a21caf !important;
}

/* 5. Ferienübersicht & Kacheln */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.results-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c026d3;
  background: rgba(192, 38, 211, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

.school-periods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.school-period-card {
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transition: all 0.2s ease;
  cursor: pointer;
}

.school-period-card:hover {
  transform: translateY(-2px);
  border-color: #c026d3;
}

.school-period-card.is-active {
  border: 2px solid #10b981;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.12) 0%, var(--bg-surface) 70%);
}

.school-period-card.is-past {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.period-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  gap: 8px;
}

.period-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.period-status-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.period-status-tag.active-now {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
}

.period-dates {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.period-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.period-duration {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.period-countdown {
  font-size: 0.85rem;
  font-weight: 800;
  color: #c026d3;
}

/* 6. Partner-Empfehlungsbox (Urlaubs-Tipp) */
.travel-partner-section .partner-card {
  padding: 2rem;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(192, 38, 211, 0.08) 100%);
}

.partner-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #c026d3;
  margin-bottom: 0.5rem;
}

.partner-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.partner-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.partner-links-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.partner-btn {
  background: #c026d3;
  color: #ffffff !important;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.partner-btn:hover {
  background: #a21caf;
}

.partner-btn.secondary {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main) !important;
}

.partner-btn.secondary:hover {
  background: var(--border-color);
}

/* 7. SEO Content Ratgeber */
.seo-guide-section {
  padding: 2.5rem 2rem;
  line-height: 1.7;
}

.seo-guide-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.seo-guide-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.5rem;
}

.seo-guide-section p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* 8. Mobile Anpassungen */
@media (max-width: 768px) {
  .region-control-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .bulk-import-card {
    flex-direction: column;
    text-align: center;
  }
  
  .bulk-import-info {
    flex-direction: column;
  }
  
  .bulk-import-btn {
    width: 100%;
  }

  .school-periods-grid {
    grid-template-columns: 1fr;
  }

  .next-holiday-card {
    padding: 1.5rem 1rem;
  }
}