/**
 * Akademie-Seite spezifische Styles
 * Ergänzt die main.css
 */

/* Hero Section - halbe Höhe wie Hauptseite */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  padding: 40px 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: auto;
  max-height: 45vh;
  display: flex;
  align-items: center;
  /* Vanta Waves wird als Canvas darüber gelegt - Größe bleibt gleich */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(45, 170, 225, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Intro Section */
.intro {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.intro-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
}

.intro-content p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.intro-highlight {
  background: rgba(45, 170, 225, 0.1);
  border-left: 4px solid var(--primary);
  padding: 24px 32px;
  border-radius: 12px;
  margin: 40px 0;
}

.intro-highlight h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.intro-highlight ul {
  list-style: none;
  padding-left: 0;
}

.intro-highlight li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
}

.intro-highlight li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Courses Section */
.courses {
  padding: 80px 40px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.courses-container {
  max-width: 1400px;
  margin: 0 auto;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.course-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 41, 59, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Titelbild für Training-Karten */
.course-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  position: relative;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

/* Fallback wenn kein Bild vorhanden - wird per JavaScript oder PHP gehandhabt */
.course-card.no-image {
  padding: 18px;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hard);
  border-color: var(--primary);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
}

.course-header {
  margin-bottom: 12px;
  padding: 16px 20px 0;
}

.course-card.no-image .course-header {
  padding: 0;
}

.course-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
  line-height: 1.3;
}

.course-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.course-price-type {
  font-size: 14px;
  color: var(--text-light);
}

.course-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 12px 0;
  padding: 0 20px;
}

.course-features {
  list-style: none;
  padding: 0 20px;
  margin: 16px 0;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text);
}

.course-features li i {
  color: var(--primary);
  font-size: 16px;
  flex-grow: 1;
}

.course-features li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text);
  font-size: 13px;
}

.course-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}

.course-link {
  margin-top: auto;
  padding: 12px 20px 20px;
}

.course-link a {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.course-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 170, 225, 0.3);
}

/* No Trainings Card */
.no-trainings-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 41, 59, 0.08);
  text-align: center;
}

.no-trainings-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}

.no-trainings-content p {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.no-trainings-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.no-trainings-actions .btn {
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.no-trainings-actions .btn-ghost {
  border: 1px solid rgba(30, 41, 59, 0.1);
  color: var(--dark);
}

/* Formats Section */
.formats {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.format-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 41, 59, 0.08);
  transition: all 0.3s ease;
}

.format-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hard);
}

.format-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.format-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.format-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Contact Section */
.contact-section {
  padding: 80px 40px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-info {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  margin-top: 40px;
}

.contact-info p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Navigation Active State */
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  width: 100%;
}

/* Suchfunktion */
.training-search {
  position: relative;
  max-width: 500px;
  margin: 0 auto 40px;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid rgba(30, 41, 59, 0.1);
  border-radius: var(--radius);
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 170, 225, 0.1);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 20px;
  pointer-events: none;
}

/* Teilbereich-Überschriften */
.training-section-header {
  grid-column: 1 / -1;
  margin: 60px 0 30px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary);
}

.training-section-header:first-child {
  margin-top: 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

/* "Keine Ergebnisse" Meldung */
.no-results-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-results-message p {
  font-size: 18px;
  margin: 0;
}

/* Versteckte Trainings bei Suche */
.course-card[style*="display: none"] {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  
  .formats-grid {
    grid-template-columns: 1fr;
  }
  
  .training-search {
    margin: 0 20px 30px;
  }
  
  .section-title {
    font-size: 24px;
  }
}

