/* --- Basis Layout --- */
.htlleo-event {
  width: 100%;
  max-width: 1200px; 
  margin: 2rem auto 4rem auto;
  padding: 0;
  background-color: transparent; 
  font-family: 'Manrope', sans-serif; 
  position: relative;
}

.htlleo-event-header {
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  color: white !important;
}

.htlleo-event-header h2 {
  font-size: 2.2rem;
  margin: 0;
  color: white !important;
  font-weight: 700;
}

/* --- Session Cards --- */
.htlleo-session-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.htlleo-session-card {
  background: #fff !important;
  border: 1px solid #eee;
  padding: 1.2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.htlleo-session-available {
  cursor: pointer;
  border-left: 4px solid #004a99; 
}

.htlleo-session-available:hover {
  background-color: #f0f7ff !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.htlleo-session-full {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-left: 4px solid #555 !important;
  filter: grayscale(1) blur(0.4px); 
  opacity: 0.6;
}

/* --- Formular Container & Animation --- */
.htlleo-registration-form-container {
  position: relative; /* Wichtig für das Response-Popup */
  overflow: hidden;
  height: 0; 
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff !important; 
  margin-top: 1.5rem;
  border-top: 4px solid #004a99;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  border-radius: 20px;
  z-index: 10;
}

.htlleo-registration-form {
  display: grid !important; 
  grid-template-columns: 1fr 1fr !important; 
  gap: 0.8rem 1.5rem;
  padding: 2rem 2.5rem; 
  background: #ffffff !important;
  box-sizing: border-box;
}

.form-full-width, 
.htlleo-registration-form h3,
.form-actions {
  grid-column: span 2 !important;
}

.htlleo-registration-form h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #032138 !important;
  font-size: 1.3rem;
  font-weight: 800;
}

.htlleo-registration-form label {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.2rem !important; 
  color: #444 !important;
  text-transform: uppercase;
}

.htlleo-registration-form input,
.htlleo-registration-form select {
  width: 100% !important;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  background: #fdfdfd !important;
  border-radius: 10px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.submit-btn {
  flex: 2;
  background: #004a99 !important;
  color: white !important;
  border-radius: 50px;
  padding: 0.8rem;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.cancel-btn {
  flex: 1;
  background: #eee !important;
  color: #444 !important;
  border-radius: 50px;
  padding: 0.8rem;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* --- SNACKBAR / POPUP OVERLAY (Das was du gesucht hast) --- */
.htlleo-registration-response {
  position: absolute; /* Fixiert innerhalb des Containers */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none; /* Klicks durchlassen wenn leer */
  transition: background 0.3s ease;
}

/* Wenn eine Nachricht drin ist, Hintergrund abdunkeln */
.htlleo-registration-response:has(.status-msg) {
  background: rgba(255, 255, 255, 0.9);
  pointer-events: auto;
}

.status-msg {
  padding: 1.5rem 2.5rem;
  border-radius: 15px;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 80%;
  animation: popup-anim 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-msg.success {
  background: #004a99 !important;
  color: white !important;
  border-bottom: 4px solid #00c853;
}

.status-msg.error {
  background: #CC1625 !important;
  color: white !important;
}

@keyframes popup-anim {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Responsive --- */
@media (max-width: 950px) {
  .htlleo-session-list { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 600px) {
  .htlleo-registration-form {
    grid-template-columns: 1fr !important;
    padding: 1.2rem;
  }
  .form-full-width, .htlleo-registration-form h3, .form-actions {
    grid-column: 1 !important;
  }
}