/* =====================================================================
   „So trainierst du bei uns“ – Startseiten-Block (#training-home) und Seite /training/
   Eigene Datei, damit style.css (und ihr ?v= auf allen Seiten) unberührt bleibt.
   ===================================================================== */

/* ---------- KI-Kennzeichnung (Art. 50 KI-VO) ----------
   Hinweis IM Bild. Er verschwindet von selbst, sobald ein echtes Foto eingesetzt ist:
   KI-Bilder liegen unter /img/training/ki-…, echte Fotos haben einen anderen Namen. */
.ki-wrap { position: relative; }
.ki-label {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(12,69,84,0.78); color: #fff;
  font: 600 0.68rem/1 'Outfit', sans-serif; letter-spacing: 0.04em;
  padding: 5px 9px; border-radius: 20px; pointer-events: none;
}
.ki-wrap:has(img:not([src*="/ki-"])) .ki-label { display: none; }
.ki-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kennzahlen-Chips ---------- */
.tr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tr-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--light); color: var(--teal-dark);
  font-weight: 600; font-size: 0.92rem;
  padding: 9px 16px; border-radius: 50px;
}
.tr-chip svg { width: 18px; height: 18px; flex: none; }

/* =========================== STARTSEITE =========================== */
#training-home { background: var(--off-white); }
.tr-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: 48px 0 36px; counter-reset: trs;
}
.tr-tile { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.tr-tile img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tr-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 44px 16px 16px;
  background: linear-gradient(to top, rgba(12,69,84,0.92), rgba(12,69,84,0));
  color: #fff; font-weight: 700; font-size: 1.08rem;
  display: flex; align-items: center; gap: 10px;
}
.tr-tile figcaption::before {
  counter-increment: trs; content: counter(trs);
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: 0.95rem;
  display: grid; place-items: center;
}
.tr-tile .ki-label { top: 10px; bottom: auto; }
.tr-home-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; }

@media (max-width: 900px) {
  .tr-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .tr-strip { gap: 10px; }
  .tr-tile figcaption { font-size: 0.92rem; padding: 36px 10px 12px; gap: 8px; }
  .tr-tile figcaption::before { width: 24px; height: 24px; font-size: 0.8rem; }
}

/* =========================== SEITE /training/ =========================== */
.tr-hero { padding-bottom: 96px; }
.tr-hero .phero-bg { background-position: center 35%; }
.tr-hero .tr-chips { margin: 0 0 30px; }
.tr-hero .tr-chip { background: rgba(255,255,255,0.14); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tr-hero .ki-label { right: 14px; bottom: 14px; }

/* Schritte */
.tr-steps { list-style: none; max-width: 980px; margin: 56px auto 0; position: relative; }
.tr-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; padding: 0 0 72px;
}
.tr-step:last-child { padding-bottom: 0; }
.tr-step:nth-child(even) .tr-step-img { order: 2; }
.tr-step-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); max-width: 400px; width: 100%; justify-self: end; }
.tr-step:nth-child(even) .tr-step-img { justify-self: start; }
.tr-step-img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tr-step-num {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(201,168,76,0.35); margin-bottom: 18px;
}
.tr-step h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 10px; }
.tr-step p { color: var(--text-mid); font-size: 1.05rem; line-height: 1.7; max-width: 380px; }

/* Kennzahlen-Band */
.tr-facts .two-col { gap: 56px; }
.tr-facts-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.tr-facts-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tr-fact-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 30px; }
.tr-fact-list li { display: flex; flex-direction: column; gap: 6px; }
.tr-fact-list strong { color: var(--gold-light); font-size: 1.9rem; line-height: 1.1; font-weight: 800; }
.tr-fact-list span { color: rgba(255,255,255,0.8); font-size: 0.98rem; line-height: 1.5; }

/* Warum funktionell */
.tr-why { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; margin-top: 52px; }
.tr-why-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.tr-why-img img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% center; }
.tr-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tr-why-card { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.tr-why-ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--light); color: var(--teal-mid);
  display: grid; place-items: center; margin-bottom: 14px;
}
.tr-why-ico svg { width: 24px; height: 24px; }
.tr-why-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tr-why-card p { color: var(--text-mid); font-size: 0.93rem; line-height: 1.6; }

@media (max-width: 900px) {
  .tr-step { grid-template-columns: 1fr; gap: 22px; padding-bottom: 56px; text-align: center; }
  .tr-step:nth-child(even) .tr-step-img { order: 0; }
  .tr-step-img, .tr-step:nth-child(even) .tr-step-img { justify-self: center; max-width: 360px; }
  .tr-step p { margin: 0 auto; }
  .tr-step-num { width: 46px; height: 46px; font-size: 1.2rem; margin-bottom: 12px; }
  .tr-facts .two-col { grid-template-columns: 1fr; gap: 36px; }
  .tr-why { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .tr-why-grid { grid-template-columns: 1fr; }
  .tr-fact-list { gap: 20px 16px; }
  .tr-fact-list strong { font-size: 1.55rem; }
}

/* Welle unter dem Block bekommt dieselbe Hintergrundfarbe, sonst weißer Streifen */
#training-home + .wave-divider { background: var(--off-white); }

/* Handy: KI-Hinweis auf den kleinen Kacheln dezenter */
@media (max-width: 600px) {
  .ki-label { font-size: 0.58rem; padding: 4px 7px; right: 8px; bottom: 8px; }
  .tr-tile .ki-label { top: 8px; }
}

/* Startseite: Zeile „Warum funktionelles Training?“ */
.tr-why-row { text-align: center; margin: 0 0 36px; }
.tr-why-row ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 10px; }
.tr-why-row li {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; font-weight: 700; color: var(--teal-deeper); font-size: 0.98rem; line-height: 1.3;
}
.tr-why-row .tr-why-ico { margin: 0; flex: none; width: 42px; height: 42px; }
@media (max-width: 900px) { .tr-why-row ul { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) {
  .tr-why-row li { flex-direction: column; text-align: center; gap: 8px; padding: 14px 10px; font-size: 0.88rem; }
  .tr-why-row .tr-why-ico { width: 38px; height: 38px; }
}

/* /training/: Dein Ziel. Dein Plan. */
.tr-indiv-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; margin-top: 52px; }
.tr-indiv-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.tr-indiv-img img { display: block; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 25%; }
.tr-indiv-img figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(12,69,84,0.9), rgba(12,69,84,0));
  color: #fff; font-weight: 600; font-size: 1rem;
}
.tr-ziel-frage { font-size: 1.35rem; margin-bottom: 16px; }
.tr-ziele { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tr-ziele li {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: #fff; border: 2px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 10px; font-weight: 700; color: var(--teal-deeper); font-size: 0.95rem; line-height: 1.25;
  transition: border-color .2s, transform .2s;
}
@media (hover: hover) { .tr-ziele li:hover { border-color: var(--teal); transform: translateY(-3px); } }
.tr-ziel-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-pale); color: var(--gold); display: grid; place-items: center; }
.tr-ziel-ico svg { width: 24px; height: 24px; }
.tr-ziel-hinweis { color: var(--text-mid); margin: 18px 0 22px; font-size: 1rem; line-height: 1.6; }
.tr-zahlen { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tr-zahlen li { background: var(--teal-deeper); color: #fff; border-radius: var(--radius); padding: 16px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.tr-zahlen strong { color: var(--gold-light); font-size: 1.6rem; line-height: 1.1; font-weight: 800; }
.tr-zahlen span { font-size: 0.88rem; color: rgba(255,255,255,0.85); }

/* /training/: Vergleich Maschine vs. funktionell */
.tr-vgl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; max-width: 960px; margin: 48px auto 0; }
.tr-vgl-col { border-radius: var(--radius); padding: 28px 28px 26px; }
.tr-vgl-col h3 { font-size: 1.25rem; margin-bottom: 16px; }
.tr-vgl-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tr-vgl-col li { position: relative; padding-left: 32px; line-height: 1.5; }
.tr-vgl-col li::before { content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 12px; }
.tr-vgl-alt { background: #fff; border: 1px solid #dfe7e9; color: var(--text-light); }
.tr-vgl-alt h3 { color: var(--text-light); }
.tr-vgl-alt li::before { background-color: #e6ecee; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B8A96' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E"); }
.tr-vgl-neu { background: var(--teal-deeper); color: #fff; box-shadow: var(--shadow-md); transform: scale(1.04); }
.tr-vgl-neu h3 { color: var(--gold-light); }
.tr-vgl-neu li::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.tr-vgl-vs { font-family: 'Caveat', cursive; font-size: 1.8rem; color: var(--gold); }

@media (max-width: 900px) {
  .tr-indiv-grid { grid-template-columns: 1fr; gap: 32px; }
  .tr-indiv-img { max-width: 420px; margin: 0 auto; }
  .tr-ziel-frage { text-align: center; }
  .tr-vgl { grid-template-columns: 1fr; gap: 10px; }
  .tr-vgl-vs { text-align: center; }
  .tr-vgl-neu { transform: none; }
}
@media (max-width: 480px) {
  .tr-ziele { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tr-ziele li { font-size: 0.88rem; padding: 14px 8px; }
  .tr-zahlen { gap: 8px; }
  .tr-zahlen li { padding: 12px 6px; }
  .tr-zahlen strong { font-size: 1.25rem; }
  .tr-zahlen span { font-size: 0.78rem; }
  .tr-vgl-col { padding: 22px 20px; }
}

@media (max-width: 900px) { .tr-ziel-hinweis { text-align: center; } }
