:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --secondary: #6a1b9a;
  --light: #f8f4fb;
  --dark: #343a40;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .montserrat-bold {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.text-pink { color: var(--primary); }
.bg-pink { background-color: var(--primary); }
.bg-purple { background-color: var(--secondary); }
.bg-light { background-color: var(--light) !important; }

/* Navigation - FIXED TOP */
.navbar {
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  position: relative;
}

.hero-section {
  margin-top: -80px;
  padding-top: 100px;
}

.navbar-brand {
  font-size: 1.8rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.login__btn {
  background: var(--gradient);
  color: white !important;
  border-radius: 30px;
  padding: 0.5rem 1.5rem !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
              url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1964&q=80') center/cover no-repeat !important;
  color: white;
  padding: 6rem 0 4rem;
}

.hero-section h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Form Styling */
.form-wrapper {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.form-step-title {
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.5rem;
}

.form_flex_items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.form_flex_items span {
  flex-basis: 100%;
  margin-bottom: 0.5rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}

.form_flex_items input[type="radio"] {
  display: none;
}

.form_flex_items label {
  flex: 1;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-weight: 500;
}

.form_flex_items input[type="radio"]:checked + label {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.custom__input {
  position: relative;
}

.custom__input input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.custom__input input:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.custom__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: all 0.3s ease;
}

.custom__input input:focus ~ .custom__label,
.custom__input input:not(:placeholder-shown) ~ .custom__label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.8rem;
  background: var(--primary);
  padding: 0 0.5rem;
  border-radius: 4px;
  color: white;
}

#togglePassword {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

/* Datumsauswahl - FIXED */
.date-of-birth-container {
  margin: 1.5rem 0;
}

.dob-label {
  display: block;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.dob-selects {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.dob-selects .form-control {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.7)'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
  padding-right: 40px;
  min-height: 50px;
  box-shadow: none;
}

.dob-selects .form-control:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.dob-selects .form-control option {
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px;
}

#ageValue {
  display: block;
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  border-left: 3px solid var(--primary);
}

/* Standort Eingabe */
.location-container {
  margin-bottom: 1.5rem;
}

.location-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.location-input:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.location-hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Zusammenfassung */
.summary-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.summary-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item strong {
  color: #ff6b9d;
  font-weight: 600;
}

.summary-item span {
  color: #fff;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Fehler-Anzeige - KORRIGIERT */
.error-message {
  color: #ff6b6b !important;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 107, 107, 0.15);
  border-radius: 6px;
  border-left: 3px solid #ff6b6b;
  transition: all 0.3s ease;
  max-height: 100px;
  overflow: hidden;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-5px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message.hidden {
  display: none !important;
  max-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
}

/* Validierungsstile für Eingabefelder */
.custom__input input.invalid {
  border-color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.05) !important;
}

.custom__input input.valid {
  border-color: #51cf66 !important;
  background: rgba(81, 207, 102, 0.05) !important;
}

/* Spezifische Positionierung für Fehlermeldungen */
#gender-error,
#searchgender-error {
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

#name-error,
#email-error,
#password-error,
#location-error {
  margin-top: 0.5rem !important;
  display: block !important;
}

#day-error,
#month-error,
#year-error {
  margin-top: 0.5rem !important;
  display: block !important;
}

#terms-error {
  margin-top: 0.5rem !important;
  display: block !important;
}

/* Ladeanzeige und Alerts */
#loading-spinner {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.25em;
}

.alert {
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid transparent;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { 
    transform: translateY(-10px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.alert-success {
  background-color: rgba(25, 135, 84, 0.15);
  border-color: rgba(25, 135, 84, 0.3);
  color: #d1e7dd;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.3);
  color: #f8d7da;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fortschrittsanzeige */
.progress-container {
  margin: 2rem 0;
}

.progress {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.progress-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-step.active {
  background-color: var(--primary);
}

/* Navigationsbuttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.form-nav-btn {
  background: var(--white);
  color: var(--primary) !important;
  border: none;
  padding: 0.8rem 1.8rem !important;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  min-width: 120px;
  font-size: 1rem;
}

.form-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.form-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Styling für die Profil-Karten */
.profile-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: none;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profile-image {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.profile-card .card-body {
  padding: 1rem;
}

.profile-card .card-title {
  font-weight: 600;
  margin-bottom: 0;
  color: var(--dark);
}

.online-dot {
  width: 15px;
  height: 15px;
  border: 2px solid white;
  z-index: 10;
}

/* Position der Indikatoren etwas unterhalb des Carousels */
.carousel-indicators {
    bottom: -20px;
}

/* Inaktive Buttons */
.carousel-indicators button {
    background-color: gray !important;
    opacity: 1 !important;
}

/* Aktiver Button */
.carousel-indicators .active {
    background-color: black !important;
    opacity: 1 !important;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
  background-color: var(--light);
  color: var(--secondary);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
  border-color: rgba(106, 27, 154, 0.25);
  box-shadow: 0 0 0 0.25rem rgba(106, 27, 154, 0.25);
}

/* Footer */
.text-light-gray {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer {
  background-color: var(--secondary);
  color: white;
  padding: 2rem 0;
}

footer a {
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

footer a:hover {
  color: var(--white) !important;
  padding-left: 5px;
}

.bg-gradient {
  background: var(--gradient) !important;
  padding: 3rem 0;
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Formular-Schritt-Anzeige */
.form-step {
  display: none;
  flex-direction: column;
  min-height: 400px;
}

.form-step:first-child {
  display: flex;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .form-wrapper {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 7rem 0 3rem;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .form_flex_items label {
    flex-basis: calc(50% - 0.4rem);
  }
  
  .dob-selects {
    flex-direction: column;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .form-nav-btn {
    width: 100%;
    margin: 0;
  }
  
  #day-error,
  #month-error,
  #year-error {
    margin-top: 0.25rem !important;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 6rem 0 2rem;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .form-wrapper {
    padding: 1.5rem;
  }
  
  .progress-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .dob-selects .form-control {
    padding: 10px 12px;
    font-size: 14px;
    min-height: 45px;
  }
}