/* 🔷 EVENTKARTE */
.cpa-event-card {
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  background: #fff;
  overflow: hidden;
  border-left: 5px solid #009193;
  border-bottom: 2px solid #009193;
}

.cpa-event-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.cpa-event-calendar {
  width: 80px;
  background: #f9f9f9;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.cpa-calendar-day,
.cpa-calendar-month,
.cpa-calendar-year {
  font-size: 1.8em;
  font-weight: bold;
  color: #009193;
  line-height: 1.2;
}

.cpa-event-image {
  margin-top: 25px;
  margin-left: 25px;
  max-width: 120px;
  flex: 0 0 auto;
}

.cpa-event-image img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: cover;
  border-right: 1px solid #eee;
}

.cpa-event-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cpa-event-title {
  margin: 0 0 8px;
  font-size: 1.2em;
  color: #004b4b;
}

.cpa-event-dates,
.cpa-event-location,
.cpa-event-price,
.cpa-event-status,
.cpa-event-availability {
  font-size: 0.95em;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.cpa-tax-hint {
  font-size: 0.9em;
  color: #666;
  margin-left: 4px;
}

.cpa-free {
  font-weight: bold;
  color: #009193;
}

/* Basisstil für alle Buttons */
.button {
  display: inline-block;
  padding: 8px 14px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
  text-decoration: none;
}

/* Primärbutton: Türkis mit weißer Schrift */
.button-primary {
  background-color: #009193;
  color: #fff;
  border: none;
}

/* Sekundärbutton: Weiß mit türkisfarbener Umrandung */
.button-secondary {
  background-color: #fff;
  color: #009193;
  border: 1px solid #009193;
}


/* 🔷 BUTTONS IN DER KARTE */
.cpa-event-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 1px;
}


/* 🔷 DETAILMODAL & BUCHUNGSMODAL */
.cpa-details-modal,
.cpa-booking-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  max-width: 700px;
  width: 90%;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border: 3px solid #009193;
  display: none;
  flex-direction: column;
  max-height: 80vh;
  overflow: hidden;
}

.cpa-details-modal.open,
.cpa-booking-modal.open {
  display: flex;
}

/* 🔷 MODAL HEADER */
.cpa-modal-header {
  display: flex;
  gap: 20px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
  flex-shrink: 0;
}

.cpa-modal-image img {
  width: 100px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.cpa-modal-info {
  flex: 1;
}

.cpa-modal-info h2 {
  margin: 0 0 8px;
  font-size: 1.3em;
  color: #004b4b;
}

.cpa-modal-dates,
.cpa-modal-location,
.cpa-modal-price,
.cpa-modal-status {
  margin-bottom: 6px;
  font-size: 0.95em;
  color: #333;
}

/* 🔷 MODAL BODY */
.cpa-modal-body,
.cpa-booking-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 🔷 MODAL FOOTER – Einheitlich */
.cpa-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  padding: 16px;
  background: #fff;
  border-top: 1px solid #ccc;
  flex-shrink: 0;
}

.cpa-modal-footer .button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #009193;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s ease, color 0.2s ease;
}

.cpa-modal-footer .cpa-footer-back,
.cpa-modal-footer .cpa-modal-close {
  background-color: #fff;
  color: #009193;
}

.cpa-modal-footer .cpa-footer-next,
.cpa-modal-footer .cpa-book-now {
  background-color: #009193;
  color: #fff;
  border: none;
}

/* 🔷 TEILNEHMERBLOCK */
.cpa-participant-block {
  border: 1px solid #ccc;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #fefefe;
}

.cpa-participant-block h4 {
  margin-top: 0;
  color: #004b4b;
}

.cpa-participant-block label {
  font-weight: normal;
  display: block;
  margin-bottom: 10px;
}

.cpa-participant-block input,
.cpa-participant-block select {
  border: 2px solid #009193;
  border-radius: 4px;
  padding: 6px 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1em;
  background: #fff;
  color: #004b4b;
  margin-top: 4px;
}

.cpa-participant-block select {
  min-width: 200px;
}

/* 🔷 Layout-Zeilen */
.row-anrede,
.row-names,
.row-contact,
.row-ticket {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.row-anrede label {
  flex: 0 0 33%;
}

.row-names label,
.row-contact label,
.row-ticket label {
  flex: 1;
}

/* 🔷 Pflichtfeld-Stern */
.cpa-participant-block .required {
  color: #a00;
  font-weight: bold;
  font-size: 1em;
  vertical-align: super;
  margin-left: 2px;
  line-height: 1;
}
/* 🔷 OVERLAYS */
.cpa-details-overlay,
.cpa-booking-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}

.cpa-details-overlay.open,
.cpa-booking-overlay.open {
  display: block;
}

/* 🔷 ZENTRIERTER ALERT */
.cpa-centered-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cpa-alert-box {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.cpa-alert-box p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cpa-alert-ok,
.cpa-alert button {
  background-color: #009193;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* 🔷 TRAINER-POPUP */
.cpa-trainer-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cpa-trainer-popup[aria-hidden="false"] {
  display: flex;
}

.cpa-trainer-popup-inner {
  background: #fff;
  padding: 1.5em;
  max-width: 900px;
  width: 95%;
  height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

.cpa-trainer-popup-inner h3 {
  color: #009193;
  margin-top: 0;
}

.cpa-trainer-iframe {
  flex-grow: 1;
  width: 100%;
  border: none;
  border-radius: 6px;
  background: #f9f9f9;
}

.cpa-trainer-close {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #333;
}

/* 🔷 TEILNEHMER-ENTFERNEN ICON */
.cpa-remove-participant {
  background: none;
  border: none;
  cursor: pointer;
  color: red;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cpa-remove-participant:hover {
  color: #b30000;
  transform: scale(1.2);
}

.cpa-remove-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  pointer-events: none;
}

/* Login-Überschrift */
.u-column1 h2 {
  font-size: 1rem !important;
}

/* Login-Überschrift */
.u-column2 h2 {
  font-size: 1rem !important;
}

/* Labels */
.woocommerce-form-login label {
  font-size: 0.9rem !important;
}

/* Eingabefelder */
.woocommerce-form-login input {
  font-size: 0.9rem !important;
}

/* Checkbox & Passwort-Link */
.woocommerce-form-login .form-row,
.woocommerce-form-login .woocommerce-LostPassword {
  font-size: 0.85rem !important;
}

/* Login-Button */
.woocommerce-form-login__submit {
  font-size: 0.9rem !important;
  padding: 0.5em 1em;
}

.cpa-login-hint {
  font-size: 1rem;
  color: #009193;
  background: #f9f9f9;
  padding: 1em;
  border-radius: 6px;
  margin-bottom: 1em;
	font-weight: bold;
  
}
