/* Modernes Select2 Styling */

/* Styling für die Überschrift */
h2 {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(116, 185, 255, 0.3);
  font-family: 'Roboto', sans-serif;
}

/* Container */
.select2-container {
  font-family: 'Roboto', sans-serif;
  width: 100% !important;
  max-width: 500px;
  margin: 0 auto;
}

/* Haupteingabefeld - grösser und heller */
.select2-container--default .select2-selection--single {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  border: none;
  border-radius: 20px;
  height: 65px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(116, 185, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover-Effekt */
.select2-container--default .select2-selection--single:hover {
  box-shadow: 0 15px 40px rgba(116, 185, 255, 0.5);
  transform: translateY(-3px);
}

/* Fokus-Effekt */
.select2-container--default.select2-container--focus .select2-selection--single {
  box-shadow: 0 0 0 4px rgba(116, 185, 255, 0.3), 0 15px 40px rgba(116, 185, 255, 0.5);
}

/* Text im Eingabefeld - grösser */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: white;
  font-weight: 600;
  font-size: 18px;
  line-height: 65px;
  padding-left: 25px;
  padding-right: 60px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Placeholder Text */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(255, 255, 255, 0.8);
}

/* Pfeil-Icon - grösser */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 65px;
  right: 20px;
  top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: white transparent transparent transparent;
  border-width: 10px 8px 0 8px;
  margin-top: -5px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Dropdown Container - grösser */
.select2-dropdown {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: white;
  margin-top: 8px;
  overflow: hidden;
}

/* Suchfeld im Dropdown - grösser */
.select2-search--dropdown .select2-search__field {
  border: none;
  border-bottom: 3px solid #f0f0f0;
  border-radius: 0;
  padding: 20px 25px;
  font-size: 18px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.select2-search--dropdown .select2-search__field:focus {
  border-bottom-color: #74b9ff;
  background: white;
  outline: none;
}

/* Dropdown-Optionen - grösser */
.select2-results__options {
  max-height: 350px;
  padding: 15px 0;
}

.select2-results__option {
  padding: 18px 25px;
  font-size: 18px;
  color: #333;
  transition: all 0.2s ease;
  border-left: 5px solid transparent;
  cursor: pointer;
}

/* Hover-Effekt für Optionen - heller */
.select2-results__option--highlighted[aria-selected] {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  border-left-color: white;
  transform: translateX(8px);
}

/* Ausgewählte Option - heller */
.select2-results__option[aria-selected="true"] {
  background-color: #e3f2fd;
  color: #0984e3;
  border-left-color: #74b9ff;
  font-weight: 600;
}

/* Loading-Spinner */
.select2-results__option--loading {
  text-align: center;
  color: #999;
  font-style: italic;
}

/* Keine Ergebnisse */
.select2-results__option--no-results {
  color: #999;
  text-align: center;
  font-style: italic;
  background: #f9f9f9;
}

/* Responsive Design - grösser */
@media (max-width: 768px) {
  h2 {
    font-size: 28px;
    margin-bottom: 25px;
  }
  
  .select2-container--default .select2-selection--single {
    height: 60px;
    border-radius: 18px;
  }
  
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 60px;
    font-size: 17px;
    padding-left: 22px;
  }
  
  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 60px;
  }
  
  .select2-results__option {
    padding: 16px 22px;
    font-size: 17px;
  }
}

/* Animationen */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.select2-dropdown {
  animation: slideIn 0.3s ease;
}

