/* =========================================================
   Trainerstunden – Startseiten-Teaser und Detailseite
   ========================================================= */

/* ---------- Startseite: Angebot ---------- */

.trainer-angebot {
  display: grid;
  grid-template-columns: minmax(280px, 40%) 1fr;
  width: calc(100% - 30px);
  max-width: 1180px;
  margin: 35px auto;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #cbd9e3;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
}

.trainer-angebot-bild {
  position: relative;
  min-height: 330px;
}

.trainer-angebot-bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer-bildhinweis {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;

  color: #ffffff;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 5px;
}

.trainer-angebot-inhalt {
  padding: 30px;
}

.trainer-angebot-inhalt h2 {
  margin: 5px 0 16px;
  color: #183c56;
  font-size: 1.75rem;
}

.trainer-label {
  display: inline-block;
  margin: 0 0 7px;
  padding: 5px 11px;

  color: #ffffff;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  background: #236493;
  border-radius: 20px;
}

.trainer-hinweis {
  color: #52636f;
  font-size: 0.93rem;
}

.trainer-eigenverantwortlich {
  margin: 20px 0;
  padding: 14px 16px;

  background: #edf4f8;
  border-left: 5px solid #236493;
  border-radius: 6px;
}

.trainer-eigenverantwortlich > strong {
  color: #183c56;
}

.trainer-eigenverantwortlich p {
  margin: 7px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.trainer-button {
  display: inline-block;
  margin-top: 10px;
  padding: 11px 18px;

  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  background: #236493;
  border-radius: 7px;
}

.trainer-button:hover {
  color: #ffffff;
  background: #174766;
}


/* ---------- Detailseite Trainerstunden.html ---------- */

.trainer-detail {
  width: calc(100% - 30px);
  max-width: 1000px;
  margin: 35px auto;
  padding: 32px;

  background: #ffffff;
  border: 1px solid #cbd9e3;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.trainer-detail h1,
.trainer-detail h2 {
  color: #183c56;
}

.trainer-detail h1 {
  margin-top: 0;
}

.trainer-detail-einstieg {
  font-size: 1.1rem;
  line-height: 1.6;
}

.trainer-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px 0;
}

.trainer-detail-box {
  padding: 20px;
  background: #edf4f8;
  border-radius: 8px;
}

.trainer-detail-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.trainer-detail-box ul {
  margin-bottom: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.trainer-kontakt {
  margin-top: 28px;
  padding: 22px;
  background: #183c56;
  border-radius: 9px;
}

.trainer-kontakt h2 {
  margin-top: 0;
  color: #ffffff;
}

.trainer-kontakt a {
  display: block;
  margin: 10px 0;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
}

.trainer-kontakt a:hover {
  text-decoration: underline;
}


/* ---------- Smartphone ---------- */

@media (max-width: 700px) {

  .trainer-angebot {
    grid-template-columns: 1fr;
  }

  .trainer-angebot-bild {
    min-height: 0;
  }

  .trainer-angebot-bild img {
    height: auto;
  }

  .trainer-angebot-inhalt,
  .trainer-detail {
    padding: 22px;
  }

  .trainer-button {
    display: block;
    text-align: center;
  }

  .trainer-detail-grid {
    grid-template-columns: 1fr;
  }
}


/* ---------- Dark Mode ---------- */

@media (prefers-color-scheme: dark) {

  .trainer-angebot,
  .trainer-detail {
    background: #111820;
    border-color: #2a3947;
  }

  .trainer-angebot-inhalt h2,
  .trainer-detail h1,
  .trainer-detail h2,
  .trainer-eigenverantwortlich > strong {
    color: #e5e7eb;
  }

  .trainer-hinweis {
    color: #aeb9c2;
  }

  .trainer-eigenverantwortlich,
  .trainer-detail-box {
    background: #17232d;
  }
}