/* ============================================================
   CTLS TRAINING DETAIL LAYOUT + FORMULAR (JSON-ready)
   ============================================================ */
.training-formular-details {
    padding: 10px 0px 10px 0px;
}

   #trainingsort option.ort-disabled {
    color: #999;
}
/* === GRID-LAYOUT === */
.training-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--global-gutter);
}

.training-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3em;
  align-items: start;
}

.training-main {
  background: transparent;
}

/* === SIDEBAR (Standard für Kursseiten) === */
.training-sidebar {
  flex: 0 0 360px;
  max-width: 360px;
}

/* Responsive: untereinander auf Mobil */
@media (max-width: 900px) {
  .training-grid {
    grid-template-columns: 1fr;
  }
  .training-sidebar {
    position: static;
    margin-top: 2em;
  }
}
/* Bilder in der Kursbeschreibung fixen */
.kursbeschreibung-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 6px;
}

/* Bilder nicht riesig werden lassen (Diagramme etc.) */
.kursbeschreibung-content img {
    max-width: 650px;
}
.kursbeschreibung-content hr {
    border: 0;
    padding-bottom: 10px;
}
/* ============================================================
   TRAINING-FORMULAR (rechte Sidebar auf Kursseite)
   ============================================================ */
.training-formular {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  background: #fcfcfc;
  border: 1px solid #d9e4ec;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.training-formular.ready {
  opacity: 1;
}

/* === Texte & Überschriften === */
.training-formular h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.training-formular label {
  padding-top: 0;

  font-size: 1em;
  line-height: 1.4;
  color: #333;
}

/* === Inputs & Selects === */
.training-formular input[type="text"],
.training-formular input[type="email"],
.training-formular select,
.training-formular textarea {
  padding: 0.5em 1em;
  font-size: 1em;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border 0.3s ease, background-color 0.3s ease;
}

.training-formular input:focus,
.training-formular select:focus,
.training-formular textarea:focus {
  border-color: #0077cc;
  outline: none;
}

/* === Select Dropdown Icon === */
.training-formular select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  background-size: 2em;
  padding-right: 3em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   PREISBEREICH
   ============================================================ */
.training-formular-preis {
  font-size: 2em !important;
  line-height: 0.8 !important;
  font-weight: 500 !important;
  padding-top: 0.8em;
}

.training-formular-preis-hinweis {
  font-size: 0.45em;
  line-height: 1.3;
  padding-top: 0.8em;
  font-weight: 500;
  display: inline-block;
}

.preis-alt {
  position: relative;
  display: inline-block;
  color: rgb(59, 59, 59);
  font-size: 0.6em;
  font-weight: 500;
  margin-bottom: 0.7em;
}

.preis-alt::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: red;
  transform: rotate(-10deg);
  transform-origin: center;
}

/* ============================================================
   TEILNAHMEFORM (Präsenz / Online Buttons)
   ============================================================ */
.teilnahmeform-auswahl {
  display: flex;
  gap: 10px;
  margin: 0em 1em 1em 0em;
  justify-content: flex-start;
}

.teilnahme-option {
  flex: 1;
  text-align: center;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background: #f9f9f9;
  max-width: 180px;
  font-size: 0.85em;
}

.teilnahme-option .icon img {
  width: 56px;
  height: 56px;
  margin-bottom: 0.5em;
}

.teilnahme-option:hover {
  background-color: #f0f0f0;
}

/* Aktiv */
.teilnahme-option.selected {
  border-color: #f99b1d !important;
  background-color: #fff0e0 !important;
  color: #000 !important;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(249,155,29,0.3);
}

/* Deaktiviert */
.teilnahme-option.inaktiv {
  background-color: #eee !important;
  opacity: 0.6;
  filter: grayscale(80%);
  cursor: default;
}

/* Buchungsformular links – flach, volle Breite */
.buchungsformular-ohne-schatten {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.buchungsformular-ohne-schatten form {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
  .teilnahmeform-auswahl {
    flex-direction: column;
    align-items: stretch;
  }
  .teilnahme-option {
    max-width: 100%;
  }
}

/* ============================================================
   TOOLTIP / HINWEISE
   ============================================================ */
.training-hinweise {
  margin-top: 1em;
  font-size: 0.9em;
  line-height: 1.5;
  color: #333;
}

.dauer-hinweis {
  display: none;
  background-color: #fff9e5;
  border-left: 4px solid #f0c000;
  padding: 0.8em 1em;
  margin-bottom: 0em;
  border-radius: 6px;
  font-size: 15px;
}

.tooltip-box {
  display: none;
  position: absolute;
  background: #fff;
  color: #000;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.3;
  z-index: 1000;
}

/* ============================================================
   BUTTONS & LINKS
   ============================================================ */
.training-formular .button-cta {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 1rem 0;
}

.training-termin-hinweis {
  margin-top: 1em;
  font-size: 1em;
  line-height: 1.4em;
  text-align: left;
}

.training-termin-hinweis a {
  text-decoration: underline;
  color: #0077cc;
}

.training-termin-hinweis a:hover {
  color: #005fa3;
}

/* ============================================================
   RESPONSIVE OPTIMIERUNG
   ============================================================ */
@media (max-width: 900px) {
  .training-formular {
    padding: 1.5em;
  }
}

/* ============================================================
   BUCHUNGSSUMMARY (rechte Sidebar auf Kurs-Buchen)
   ============================================================ */

.buchung-summary {
  background: #fcfcfc;
  border: 1px solid #d9e4ec;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.buchung-summary-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2em;
}

.buchung-zurueck {
  font-size: 0.9em;
  color: #b00;
  text-decoration: none;
}
.buchung-zurueck:hover {
  text-decoration: underline;
}

.buchung-titel {
  font-size: 1.5em;
  margin: 0;
}

.buchung-summary-content {
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
}

.buchung-row {
  margin-bottom: 0.8em;
}

.buchung-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0.8em 0;
}

.buchung-netto,
.buchung-mwst {
  font-size: 0.95em;
}

.buchung-gesamt {
  font-weight: 700;
  font-size: 1.05em;
  color: #000;
  margin-top: 1em;
}
/* ============================================================
   BUCHUNG – Betragsblock (Netto / MwSt / Gesamtbetrag)
   ============================================================ */

.buchung-summary-betraege {
  text-align: right;
  margin-top: 1em;
}

.buchung-summary-betraege .buchung-row {
  margin: 0.3em 0;
}

.buchung-summary-betraege .buchung-netto,
.buchung-summary-betraege .buchung-mwst {
  font-size: 0.95em;
  color: #444;
}

.buchung-summary-betraege .buchung-gesamt {
  font-weight: 700;
  font-size: 1.1em;
  color: #000;
  margin-top: 0.6em;
}

/* Mobil kompakter */
@media (max-width: 768px) {
  .buchung-summary {
    padding: 1.5em;
  }
  .buchung-titel {
    font-size: 1.3em;
  }
}

/* ============================================================
   CTLS – Teilnahmeform Auswahl (Neutral, Container-basiert)
   ============================================================ */

.teilnahmeform-auswahl {
  display: flex;
  gap: 10px;
  margin: 1.5em 0;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.radio-option {
  flex: 1; /* verteilt beide gleichmäßig */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f8f9fa;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  height: 46px;
  transition: background-color 0.15s ease;
  text-align: center;
}

/* Radio unsichtbar */
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Labeltext */
.radio-option span {
  pointer-events: none;
  color: #333;
  font-family: var(--font-body);
}

/* Aktiv (leicht abgesetzt, aber neutral) */
.radio-option:has(input[type="radio"]:checked),
.radio-option input[type="radio"]:checked ~ span {
  background-color: #e7eaed;
  border-color: #bbb;
  color: #000;
}

/* Deaktiviert */
.radio-option:has(input[type="radio"]:disabled),
.radio-option input[type="radio"]:disabled ~ span {
  background-color: #f2f2f2;
  color: #aaa;
  border-color: #ddd;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile: untereinander */
@media (max-width: 600px) {
  .teilnahmeform-auswahl {
    flex-direction: column;
  }

  .radio-option {
    width: 100%;
  }
}
.training-hinweis-cta {
    margin-top: 0.8em;
    padding: 10px 14px;
    background: #ffffff;
    border-left: 3px solid #0073aa;
    border-radius: 4px;
}

.training-hinweis-cta a {

    color: #0073aa;
    text-decoration: none;
}

.training-hinweis-cta a:hover {
    text-decoration: none;
}
