/* =============================
   choose-role.css
============================= */
.choose-role {
  background: linear-gradient(270deg, #f4f4f4, #e5e9ee, #f4f4f4);
  background-size: 300% 300%;
  animation: gradientAnimation 10s ease infinite;
  padding: 40px 0 60px;
  text-align: center;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.role-note {
  font-size: 0.9em;
  color: #444;
  margin-top: 10px;
}

/* Combined role-content */
.role-content {
  padding: 0px 0px 0px;
  background-size: 100%;
  background-position: top;
  transition: background-image 0.5s ease;
  background-repeat: no-repeat;
  opacity: 1;
  transform: translateX(0);
}

/* Styles for the role dropdown */
#role-select {
  margin: 10px;
  padding: 10px 25px;
  background: #fff;
  border: solid 1px #fff; /* Match button border */
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  color: #05164D; /* Match button text color */
  -webkit-appearance: none; /* Remove default browser styling */
  -moz-appearance: none;
  appearance: none;
  /* Add custom dropdown arrow */
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2305164D" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 24px 24px;
  padding-right: 50px; /* Make space for the arrow */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#role-select:hover {
  border-color: #05164D; /* Add a subtle hover effect */
}

#role-select:focus {
  outline: none;
  border-color: #ffad00; /* Highlight on focus */
  box-shadow: 0 0 0 2px rgba(255, 173, 0, 0.3);
}

/* Styles for the "Berufsgruppe ändern" button */
.role-options-button {
  margin: 10px;
  padding: 15px 25px;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #05164D;
  border: solid 1px #fff;
  position: relative;
  overflow: hidden;
}

.role-options-button span {
  position: relative;
  z-index: 1;
}

.role-options-button:hover,
.role-options-button:active {
  color: #fff;
}

.role-options-button::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 0%;
  height: 100%;
  top: 0;
  left: 0;
  background: #05164D;
  border-radius: 8px;
  transition: width 0.3s ease;
}

.role-options-button:hover::after,
.role-options-button:active::after {
  width: 100%;
}

/* Button navigation for desktop */
.role-buttons {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.role-buttons button {
  margin: 10px;
  padding: 12px 20px;
  border: 2px solid #fff;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  width: 175px;
  justify-content: center;
  border:solid 1px #fff;
}

.role-buttons button:hover {
  background: #05164d7d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.role-buttons button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.role-buttons button.active {
  background: #fff;
  color: #05164D;
  border-color: #fff;
}

/* Show buttons on desktop, dropdown on mobile */
@media (min-width: 769px) {
  #role-select {
    display: none;
  }
  .role-buttons {
    display: flex;
  }
}
