/* ---------- Allgemeines Layout ---------- */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #222;
  background: linear-gradient(180deg, #f9f9f9, #f1faff);
}

/* ---------- Header ---------- */
header {
  background: linear-gradient(135deg, #0077b6, #00b4d8, #90e0ef);
  color: white;
  padding: 2.5rem 1rem;
  border-bottom-left-radius: 50% 10%;
  border-bottom-right-radius: 50% 10%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}

.header-text {
  flex: 2;
}

.header-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0.9;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.goal {
  margin-top: 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

/* ---------- Main ---------- */
main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

main h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #C0C0C0;
  position: relative;
}

main h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #00b4d8;
  margin: 0.5rem auto 0;
  border-radius: 3px;
}

/* ---------- Trainingskarten Grid ---------- */
.trainings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.training-card {
  background: white;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eef2f3;
  cursor: pointer;
  overflow: hidden;
}

.training-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.training-card h3 {
  margin-top: 0;
  color: #C0C0C0;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.training-card p {
  margin: 0.4rem 0;
}

/* ---------- Details-Bereich in Karten ---------- */
.training-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0;
}

.training-card.open .training-details {
  max-height: 600px; /* Platz für Bild + Text */
  padding: 1rem 0 0;
}

.training-details img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  display: block;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  background: #222;
  color: #ddd;
  padding: 1.2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  border-top: 4px solid #00b4d8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .header-image {
    margin-top: 1rem;
  }
}
