/* ============================================================
   AionX Longevity — Trainingsseiten (DE + EN)

   Abweichung vom üblichen Muster: Seitenspezifisches CSS steht sonst
   im <style>-Block der jeweiligen Seite. Hier teilen sich zwei
   identisch aufgebaute Sprachfassungen dasselbe Layout — eine gemeinsame
   Datei verhindert, dass die beiden auseinanderlaufen.

   Nur Tokens aus aionx.css verwenden. Goldregel: genau ein goldenes
   Element pro Ansicht — der Buchungs-Button.
   ============================================================ */

/* ---------- Hero ----------
   Zweispaltig statt Vollbild: links die Aussage, rechts das Porträt.
   Das Porträt trägt den Hero, nicht ein Kammerbild — die Kammer kommt
   erst am optionalen vierten Tag ins Spiel. */
.training-hero {
  position: relative;
  overflow: hidden;
  padding: 176px 0 96px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
/* min-width:0 verhindert, dass lange Wörter das Raster sprengen. */
.hero-copy { min-width: 0; }
.training-hero h1 { margin: 18px 0 20px; }
.training-hero .lead { max-width: 560px; color: var(--w78); font-size: 17px; margin-bottom: 32px; }

/* IBUM-Absender über der Headline */
.ibum-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 440px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--w10);
}
.ibum-lockup img { width: 66px; height: auto; flex-shrink: 0; }
.ibum-lockup span {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--grey-500);
}
.ibum-lockup strong { color: var(--w78); font-weight: 400; }

.hero-portrait { margin: 0; }
.hero-portrait img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--w10);
  filter: saturate(0.92);
}
.hero-portrait figcaption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--grey-500);
}
.hero-portrait figcaption strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
}

@media (max-width: 900px) {
  .training-hero { padding: 140px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-portrait { max-width: 340px; }
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--w10);
  border-bottom: 1px solid var(--w10);
}
.hero-meta li {
  padding: 16px 28px 16px 0;
  margin-right: 28px;
  font-size: 14.5px;
  color: var(--white);
}
.hero-meta li + li { border-left: 1px solid var(--w08); padding-left: 28px; }
.hero-meta span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 5px;
}
@media (max-width: 700px) {
  .hero-meta li { width: 100%; padding: 13px 0; margin-right: 0; }
  .hero-meta li + li { border-left: 0; border-top: 1px solid var(--w06); padding-left: 0; }
}

/* ---------- Platzzähler ---------- */
.seat-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  margin: 0 0 22px;
  border: 1px solid var(--w14);
  border-radius: 999px;
  color: var(--w78);
}
.seat-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tone-success);
  flex-shrink: 0;
}
.seat-badge[data-state="scarce"] { border-color: rgba(184,134,43,0.5); color: var(--white); }
.seat-badge[data-state="scarce"] .dot { background: var(--tone-warning); }
.seat-badge[data-state="sold-out"] { border-color: var(--w14); color: var(--grey-500); }
.seat-badge[data-state="sold-out"] .dot { background: var(--grey-700); }

/* ---------- Sektionen ---------- */
.section-alt { border-top: 1px solid var(--w08); background: var(--surface-card); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin: 22px 0 16px; }
.footnote { margin-top: 28px; font-size: 13px; color: var(--grey-500); max-width: 560px; }
.note-inline {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  max-width: 420px;
}

/* Eckdatenleiste — identisch zur Showroom-Seite */
.visit-strip { border-top: 1px solid var(--w08); border-bottom: 1px solid var(--w08); background: var(--surface-card); }
.visit-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.visit-grid > div { padding: 36px 28px; }
.visit-grid > div + div { border-left: 1px solid var(--w06); }
.visit-grid .n {
  font-family: var(--font-mono); font-weight: 300; font-size: 11px;
  letter-spacing: 0.28em; color: var(--gold-500); display: block; margin-bottom: 12px;
}
.visit-grid h3 { font-family: var(--font-body); font-weight: 600; font-size: 16px; margin-bottom: 7px; color: var(--white); }
.visit-grid p { font-size: 13.5px; color: var(--w60); }
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid > div:nth-child(3) { border-left: 0; }
  .visit-grid > div:nth-child(n+3) { border-top: 1px solid var(--w06); }
}
@media (max-width: 560px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-grid > div + div { border-left: 0; border-top: 1px solid var(--w06); }
}

/* ---------- Referent ---------- */
.speaker { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: start; }
.speaker h2 { margin: 22px 0 18px; }
@media (max-width: 900px) { .speaker { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Video ---------- */
.video-wrap { max-width: 900px; margin: 0 auto; }
.video-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.video-head h2 { margin: 16px 0 12px; }
.video-head .muted { font-size: 14.5px; }
.video-figure { margin: 0; }
/* preload="none" + Poster: die 8 MB lädt erst, wer wirklich klickt. */
.video-figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--w10);
  background: var(--black);
}

/* ---------- Zertifizierungspfade ---------- */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.tracks .card { display: flex; flex-direction: column; }
.tracks h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 16px 0 10px; }
.tracks .muted { font-size: 14.5px; margin-bottom: 14px; }
.tracks .check-list { flex: 1; }
.tracks .req {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--w08);
  font-size: 13.5px; color: var(--w60);
}
.tracks .req strong { color: var(--w78); font-weight: 500; }
@media (max-width: 900px) { .tracks { grid-template-columns: 1fr; } }

/* ---------- Zweispalter für Agenda und FAQ ---------- */
.xday { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.xday h2 { margin: 22px 0 18px; }
@media (max-width: 900px) { .xday { grid-template-columns: 1fr; gap: 36px; } }

/* Akkordeon — identisch zur Showroom-Seite */
.accordion details { border-bottom: 1px solid var(--w08); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--w78);
  transition: color var(--t-micro) var(--ease-micro);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--white); }
.accordion summary .ico {
  font-family: var(--font-mono);
  font-weight: 300;
  color: var(--grey-500);
  transition: transform var(--t-micro) var(--ease-micro);
}
.accordion details[open] summary { color: var(--white); }
.accordion details[open] summary .ico { transform: rotate(45deg); }
.accordion .body { padding: 0 4px 22px; color: var(--w60); font-size: 14px; }
.accordion .body a { color: var(--w78); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Enthalten / nicht enthalten ---------- */
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.incl h3 {
  font-family: var(--font-mono); font-weight: 300; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--grey-500); margin-bottom: 18px;
}
.minus-list { list-style: none; }
.minus-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: var(--w60);
  font-size: 15px;
}
.minus-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 20px;
  width: 13px; height: 1.5px;
  background: var(--grey-700);
}
.minus-list strong { color: var(--w78); font-weight: 500; }
@media (max-width: 900px) { .incl { grid-template-columns: 1fr; } }

.price-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--w08);
}
.price-line p { font-size: 14px; max-width: 560px; }
@media (max-width: 700px) { .price-line { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Prüfung ---------- */
.exam-wrap { max-width: 760px; }
.exam-mark { width: 78px; height: auto; margin-bottom: 24px; }
.exam-wrap h2 { margin: 22px 0 14px; }
.exam-wrap .muted { margin-bottom: 20px; }
.exam-wrap .btn { margin-top: 26px; }

/* ---------- Ort ---------- */
.venue { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.venue h2 { margin: 22px 0 18px; }
.venue-address {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.9;
  color: var(--w78);
  font-style: normal;
  padding-top: 22px;
  border-top: 1px solid var(--w08);
}
.venue-img { border-radius: var(--r-lg); border: 1px solid var(--w08); }
@media (max-width: 900px) { .venue { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Buchung ---------- */
.booking-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface-featured);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: var(--r-xl);
  box-shadow: 0 0 40px rgba(201,162,39,0.08);
  overflow: hidden;
}
.booking-head { padding: 56px 40px 0; text-align: center; }
.booking-head h2 { margin: 22px 0 14px; }
.booking-head .muted { max-width: 520px; margin: 0 auto 26px; font-size: 14.5px; }
.booking-form { padding: 12px 40px 48px; }
@media (max-width: 640px) {
  .booking-head { padding: 40px 22px 0; }
  .booking-form { padding: 8px 22px 36px; }
}

.req-star { color: var(--gold-500); }

/* Radiogruppe „Ich buche als“ — untereinander, die Labels sind zu lang für eine Zeile */
.booking-form .choice-inline { flex-direction: column; gap: 4px; }
.booking-form .choice-group { margin: 6px 0 24px; }

.consent {
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--w60);
  padding: 10px 0;
}
.consent a { color: var(--w78); text-decoration: underline; text-underline-offset: 3px; }

/* Honeypot — für Menschen unsichtbar, für Bots verlockend */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pflichtangaben unmittelbar vor dem Bestellbutton (§ 312j Abs. 2 BGB) */
.order-summary {
  margin: 30px 0 22px;
  padding: 26px 28px;
  background: var(--w03);
  border: 1px solid var(--w14);
  border-radius: var(--r-lg);
}
.order-summary h3 {
  font-family: var(--font-mono); font-weight: 300; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--grey-500); margin-bottom: 18px;
}
.order-summary dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 9px 20px; }
.order-summary dt { font-size: 13px; color: var(--grey-500); }
.order-summary dd { margin: 0; font-size: 13.5px; color: var(--w78); }
.order-summary .total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--w10);
  font-size: 15px; color: var(--w78);
}
.order-summary .total strong {
  font-family: var(--font-mono); font-weight: 400; font-size: 22px; color: var(--white);
}
.order-summary .total-note { margin-top: 10px; font-size: 12.5px; color: var(--grey-500); line-height: 1.6; }
@media (max-width: 560px) {
  .order-summary { padding: 20px 18px; }
  .order-summary dl { grid-template-columns: 1fr; gap: 2px 0; }
  .order-summary dt { margin-top: 10px; }
}

.booking-submit { width: 100%; margin-top: 20px; font-size: 15px; padding: 17px 28px; }
.booking-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.sepa-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--tone-warning);
}

.form-message {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.6;
  border: 1px solid var(--w14);
  color: var(--w78);
}
.form-message.is-error   { border-color: rgba(196,110,97,0.5); color: var(--tone-error); background: rgba(196,110,97,0.07); }
.form-message.is-success { border-color: rgba(109,154,120,0.5); color: var(--tone-success); background: rgba(109,154,120,0.07); }
.form-message.is-warn    { border-color: rgba(184,134,43,0.5); color: var(--tone-warning); background: rgba(184,134,43,0.07); }

/* ---------- Rechtliche Hinweise ---------- */
.legal-strip { border-top: 1px solid var(--w08); }
.legal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.legal-grid h3 {
  font-family: var(--font-mono); font-weight: 300; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--grey-500); margin-bottom: 12px;
}
.legal-grid p { font-size: 13px; color: var(--w60); line-height: 1.7; }
.legal-grid a { color: var(--w78); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .legal-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .legal-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Danke-Seite ---------- */
.ty-detail {
  max-width: 460px;
  margin: 0 auto 32px;
  padding-top: 24px;
  border-top: 1px solid var(--w08);
  font-size: 13.5px;
  color: var(--w60);
}
.ty-detail a { color: var(--w78); text-decoration: underline; text-underline-offset: 3px; }

/* Persönliches Angebot — erscheint nur, wenn die Seite mit einem gültigen
   Code aufgerufen wurde. Bewusst ohne durchgestrichenen Normalpreis:
   Sobald ein Preis als Ermäßigung beworben wird, verlangt § 11 PAngV die
   Angabe des niedrigsten Preises der letzten 30 Tage. */
.personal-offer {
  display: inline-block;
  margin: 0 0 22px;
  padding: 9px 16px;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold-300);
}
