/* training-form.css */

/* === Nächster Termin === */
.training-formular-naechster-termin {
    font-size: 1em;
    font-weight: 500;
    color: #0077cc;
    margin-top: 0.5em;
}

/* === Formular-Details (wird per JS befüllt) === */
.training-formular-details {
    margin-top: 0.8em;
    line-height: 1.5;
    color: #333;
}

/* === Hauptformular === */
.training-formular {
    max-width: 500px;
    margin: 1em 0 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    border-radius: 10px;
    background-color: #e6f4ff;
    padding: 2em;
}
.training-formular label {
    padding-top: 0.5em;
    font-weight: 700;
    font-size: 1em;
    line-height: 1.4;
    color: #333;
}
.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;
}
.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;
}
.button-cta,.training-formular button {
    display: block;
    margin: 2em auto 0;
    width: 100%;
    max-width: 400px;
    padding: 1em 1.2em;
    background: #ffcb05;
    color: #404040;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 20px;
    transition: background 0.3s ease;
}
.button-cta-small:hover,
.button-cta:hover,
.training-formular button:hover {
  background: rgb(179,143,2);
}

.button-cta-small {
  padding: 0.6em 1.2em;
 background: #ffcb05;
  color: #404040;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95em;
  text-align: center;
  margin: 0em auto 0!important;
}

/* === Radio-Buttons === */
.radio-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.radio-vertical label {
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 0.8em;
    margin: 0;
    padding-top: 0.2em;
    color: #333;
}
.radio-vertical input[type="radio"] {
    margin: 0;
}

/* === Preis-Anzeige === */
.training-formular-preis {
    font-size: 2em !important;
    line-height: 0.7 !important;
    font-weight: 500 !important;
    margin-top:0.8em;
}
.training-formular-preis-hinweis {
    font-size: 0.4em;
    line-height: 1.3;
    padding-top: 0.6em;
    font-weight: 500;
    display: inline-block;
}

/* === Allgemeine Hinweise === */
.training-hinweise {
    margin-top: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
}
.dauer-hinweis {
    background-color: #fff9e5;
    border-left: 4px solid #f0c000;
    padding: 0.8em 1em;
    margin-bottom: 1em;
    border-radius: 6px;
    font-size: 15px;
}
.kursplatz-hinweis {
    margin: 1.5em 0 0.6em;
    text-align: left;
}

/* === Termin-Hinweis-Link === */
.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;
}



/* === Tooltip === */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}
.tooltip-text::after {
    content: attr(data-tooltip);
    white-space: pre-line;
    position: absolute;
    left: 0;
    top: 120%;
    background-color: #333;
    color: #fff;
    padding: 0.7em 1em;
    font-size: 0.9em;
    border-radius: 6px;
    z-index: 10;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: 250px;
    pointer-events: none;
}
.tooltip-wrapper:hover .tooltip-text::after {
    opacity: 1;
    transform: translateY(0);
}

.teilnahmeform-auswahl {
  display: flex;
  gap: 10px;
  margin: 1em 0;
  justify-content: space-between;
}

.teilnahme-option {
  flex: 1;
  text-align: center;
  padding: 1em;
  border: 2px solid #ccc;
  border-radius: 8px;
  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;
}

.teilnahme-option.selected {
  border-color: #f99b1d;
  background-color: #fff0e0;
  box-shadow: 0 0 0 2px rgba(249, 155, 29, 0.15);
}

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

  .teilnahme-option {
    max-width: 100%;
  }
    /* 1. Kleine Buttons ausblenden */
  .button-cta-small {
    display: none !important;
  }

  /* 2. Primären Button (Slide 5) – margin von 2em auf 0 */
  .slide.white .slide-inner .button-cta {
    margin: 0 !important;
  }
    /* Button in Slide 5 zentrieren */
  .slide#slide-5 .button-cta {
    display: block;
    margin: 0 auto !important;
    text-align: center;
  }
}
