
/* Frontend Styles – HP Ausbildung Booking */

/* Karten-Grid */
.hp-booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
  position: relative;
}

/* Schwebende Glaskarten */
.hp-booking-card {
  position: relative;
  border-radius: 1.7rem;
  padding: 1px;
  background: radial-gradient(circle at top left, rgba(0, 181, 165, 1), rgba(0, 153, 142, 0.6));
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  animation: hp-card-drift 18s ease-in-out infinite;
  transform-origin: center;
}

.hp-booking-card:nth-child(2n) {
  animation-duration: 21s;
  animation-direction: alternate;
}
.hp-booking-card:nth-child(3n) {
  animation-duration: 23s;
}
.hp-booking-card:nth-child(4n) {
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}

@keyframes hp-card-drift {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(10px, -10px, 0); }
  40%  { transform: translate3d(22px, -18px, 0); }
  60%  { transform: translate3d(-8px, -14px, 0); }
  80%  { transform: translate3d(-18px, -4px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.hp-booking-card-inner {
  background: rgba(5, 26, 30, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1.6rem;
  padding: 1.7rem 1.9rem 1.9rem;
  position: relative;
  overflow: hidden;
}

.hp-booking-card::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 230, 0.35), transparent 60%);
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
  border-radius: inherit;
}

.hp-booking-card:hover {
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.5);
  transform: translate3d(0, -6px, 0) scale(1.02);
}

.hp-booking-title {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f5fffd;
  letter-spacing: 0.02em;
}

.hp-booking-text {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(227, 246, 244, 0.9);
}

.hp-booking-meta {
  margin: 0 0 1.4rem;
  font-size: 0.88rem;
  color: rgba(180, 235, 228, 0.95);
}

.hp-booking-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Buttons */

.hp-booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.hp-booking-button-main {
  background: linear-gradient(135deg, #00d4c3, #00b5a5);
  color: #021015;
  box-shadow: 0 14px 32px rgba(0, 181, 165, 0.7);
}

.hp-booking-button-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 181, 165, 0.9);
  filter: brightness(1.05);
}

.hp-booking-button-ghost {
  background: rgba(4, 30, 34, 0.7);
  color: #e8fffb;
  border: 1px solid rgba(0, 230, 206, 0.85);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.hp-booking-button-ghost:hover {
  background: rgba(4, 38, 44, 0.95);
}

/* Modal-Overlay */

.hp-booking-modal {
  position: fixed !important;
  inset: 0;
  z-index: 999999 !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}

.hp-booking-modal-open {
  opacity: 1;
  pointer-events: auto;
}

.hp-booking-modal-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 8, 10, 0.94), rgba(0, 0, 0, 0.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Dialog */

.hp-booking-modal-dialog {
  position: relative;
  max-width: 640px;
  width: 94%;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(4, 30, 35, 0.96), rgba(0, 63, 72, 0.99));
  border-radius: 1.6rem;
  padding: 2rem 2.1rem 2.2rem;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(0, 230, 206, 0.7);
  overflow: hidden;
}

.hp-booking-modal-dialog::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 230, 0.4), transparent 60%);
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
  border-radius: inherit;
}

.hp-booking-modal-content {
  position: relative;
  z-index: 2;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hp-booking-modal-title {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f5fffd;
}

.hp-booking-modal-subtitle {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  color: rgba(226, 246, 244, 0.92);
}

.hp-booking-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: rgba(235, 255, 252, 0.9);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.hp-booking-modal-close:hover {
  color: #ffffff;
}

/* Formular */

.hp-booking-field {
  margin-bottom: 1rem;
}

.hp-booking-field-half {
  display: inline-block;
  width: calc(50% - 0.5rem);
}

.hp-booking-field-half + .hp-booking-field-half {
  margin-left: 0.7rem;
}

.hp-booking-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(231, 246, 244, 0.96);
  margin-bottom: 0.3rem;
}

.hp-booking-field input[type="text"],
.hp-booking-field input[type="email"],
.hp-booking-field select,
.hp-booking-field textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(0, 230, 206, 0.55);
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
  background: rgba(0, 20, 24, 0.9);
  color: #f5fffd;
  outline: none;
  box-shadow: 0 0 0 1px transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hp-booking-field textarea {
  min-height: 80px;
  resize: vertical;
}

.hp-booking-field input[type="text"]:focus,
.hp-booking-field input[type="email"]:focus,
.hp-booking-field select:focus,
.hp-booking-field textarea:focus {
  border-color: #00ffe6;
  box-shadow: 0 0 0 1px rgba(0, 255, 230, 0.5);
  background: rgba(0, 28, 32, 0.98);
}

.hp-booking-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.hp-booking-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 400;
}

.hp-booking-required {
  color: #ffb3b3;
  margin-left: 0.1rem;
}

/* Checkboxbereich */

.hp-booking-checkboxes {
  margin-top: 1.1rem;
  padding: 0.9rem 0.9rem 0.8rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, rgba(0, 230, 206, 0.16), rgba(2, 26, 32, 0.98));
  border: 1px solid rgba(0, 230, 206, 0.45);
}

.hp-booking-checkboxes label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(226, 244, 242, 0.95);
  margin-bottom: 0.35rem;
}

.hp-booking-checkboxes input[type="checkbox"] {
  margin-top: 0.15rem;
}

.hp-booking-checkboxes a {
  color: #8ffbf0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.hp-booking-checkboxes a:hover {
  text-decoration-thickness: 2px;
}

/* Zahlungsart-Hinweis */

.hp-booking-field-payment {
  margin-top: 1.1rem;
}

.hp-booking-payment-options {
  margin-top: 0.25rem;
}

.hp-booking-payment-option {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 206, 0.45);
  background: rgba(1, 21, 24, 0.8);
}

.hp-booking-payment-option input {
  margin-right: 0.35rem;
}

.hp-booking-bank-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(225, 246, 243, 0.95);
  background: rgba(0, 24, 22, 0.9);
  border-radius: 0.8rem;
  padding: 0.6rem 0.75rem;
  border: 1px dashed rgba(0, 230, 206, 0.6);
  display: none;
}

/* Messages + Buttons */

.hp-booking-messages {
  margin-top: 0.8rem;
  min-height: 1.2rem;
}

.hp-booking-message {
  font-size: 0.88rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
}

.hp-booking-message-error {
  background: rgba(255, 89, 89, 0.12);
  border: 1px solid rgba(255, 130, 130, 0.7);
  color: #ffb3b3;
  display: none;
}

.hp-booking-message-success {
  background: rgba(0, 230, 206, 0.1);
  border: 1px solid rgba(0, 255, 230, 0.85);
  color: #e8fffb;
  display: none;
}

.hp-booking-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.hp-booking-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.hp-booking-submit-full {
  background: linear-gradient(135deg, #00d4c3, #00b5a5);
  color: #021015;
  box-shadow: 0 16px 38px rgba(0, 181, 165, 0.85);
}

.hp-booking-submit-erst {
  background: rgba(0, 30, 34, 0.6);
  color: #e7fffb;
  border: 1px solid rgba(0, 255, 230, 0.8);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.hp-booking-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  box-shadow: none;
}

/* Body Scroll Lock */

.hp-booking-no-scroll {
  overflow: hidden;
}

/* Responsive */

@media (max-width: 768px) {
  .hp-booking-card-inner {
    padding: 1.4rem 1.5rem 1.6rem;
  }
}

@media (max-width: 600px) {
  .hp-booking-modal-dialog {
    padding: 1.45rem 1.25rem 1.7rem;
    border-radius: 1.3rem;
  }
  .hp-booking-modal-title {
    font-size: 1.2rem;
  }
  .hp-booking-field-half {
    width: 100%;
    margin-left: 0;
  }
  .hp-booking-actions {
    justify-content: stretch;
  }
  .hp-booking-submit {
    width: 100%;
  }
}

@media (max-height: 700px) {
  .hp-booking-modal {
    padding: 0.75rem 0;
  }
  .hp-booking-modal-content {
    max-height: calc(100vh - 1.5rem);
  }
}
