
.button-back-animated {
  background-color: #f7faff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  gap: 0.5rem;
  border-radius: 0.375rem;
  font-size: 14px;
  font-weight: bold;
  padding: 10px;
  color: #1e293b;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.button-back-animated:focus-visible {
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}

.button-back-animated:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.button-back-animated-icon {
  width: 16px;
  height: 16px;
  margin-left: -0.25rem;
  transition: transform 0.2s;
  color: #1e293b;
}

.button-back-animated:hover .button-back-animated-icon {
  transform: translateX(-0.25rem);
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.center {
 /* width: 450px;*/
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}

/*.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.input-group label {
  font-weight: bold;
  font-size: 14px;
  color: #1e293b;
}*/

.switch-page {
  color: #f3c800;
  text-decoration: none;
}

.switch-page:hover {
  text-decoration: underline;
}

.external-link {
  color: #276ad7;
  text-decoration: none;
}

.external-link:hover {
  text-decoration: underline;
}

.forgot-password {
  font-size: 14px;
  color: #f3c800;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.search-form {
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.search-container {
  position: relative;
}

.search-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding-left: 12px;
  pointer-events: none;
}

.search-icon svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.search-input {
  display: block;
  width: 100%;
  padding: 8px 8px 8px 36px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

.search-input:focus {
  border-color: #f3c800;
}

.search-input::placeholder {
  color: #9ca3af;
}

.button-merkliste-animated {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  font-size: 14px;
  font-weight: bold;
  padding: 10px;
  background-color: #f3c800;
  color: #475569;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
  margin-top: 30px;
  /* line-height: 1; */
}

.button-merkliste-animated#step-one-next-btn {
  margin-top: 20px;
}

.button-merkliste-animated:hover {
  background-color: #eec200;
}

.button-merkliste-animated:focus-visible {
  outline: 2px solid #18181b;
  outline-offset: 2px;
}

.button-merkliste-animated:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.button-merkliste-animated-icon {
  width: 16px;
  height: 16px;
  margin-right: -0.25rem;
  transition: transform 0.2s;
  color: #475569;
  vertical-align: middle;
}

.button-merkliste-animated:hover .button-merkliste-animated-icon {
  transform: translateX(0.25rem);
}

/* Reverse Button */
.button-merkliste-animated-reverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  font-size: 14px;
  font-weight: bold;
  padding: 10px;
  background-color: #f3c800;
  color: #475569;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
  margin-top: 30px;
}

.button-merkliste-animated-reverse:hover {
  background-color: #eec200;
}

.button-merkliste-animated-reverse:focus-visible {
  outline: 2px solid #18181b;
  outline-offset: 2px;
}

.button-merkliste-animated-reverse:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.button-merkliste-animated-icon-reverse {
  width: 16px;
  height: 16px;
  margin-left: -0.25rem;
  transition: transform 0.2s;
  color: #475569;
}

.button-merkliste-animated-reverse:hover
  .button-merkliste-animated-icon-reverse {
  transform: translateX(-0.25rem);
}

:not(select).select
  [data-popover]
  [role='listbox']:not([data-empty]):not(
    :has([data-value]:not([aria-hidden='true']))
  ):before {
  content: 'Keine Ergebnisse gefunden';
}

#select-gender .btn-outline,
#select-country .btn-outline {
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#select-gender .btn-outline svg.lucide-chevron-down-icon,
#select-country .btn-outline svg.lucide-chevron-down-icon {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.5;
}

#select-gender #select-gender-trigger.btn-outline,
#select-country #select-country-trigger.btn-outline {
  width: 100% !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

#select-gender .select-leading-icon,
#select-country .select-leading-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #64748b;
}

#select-gender .select-label,
#select-country .select-label {
  flex: 1 1 auto;
  min-width: 0;
}

#select-gender .lucide-chevrons-up-down,
#select-country .lucide-chevrons-up-down {
  margin-left: auto;
  flex-shrink: 0;
}

#select-gender-trigger:focus,
#select-gender-trigger:focus-visible,
#select-country-trigger:focus,
#select-country-trigger:focus-visible {
  border-color: #f3c800 !important;
  tw-ring-shadow: none !important;
  box-shadow: none !important;
}

.horizontal-row {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 10px;
}

.vertical-stepper {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 25px;
  font-size: 14px;
  color: #a1aebe;
}

.vertical-stepper-step {
  display: flex;
  flex-direction: row;
  gap: 10px;
  vertical-align: middle;
  align-items: center;
}

.vertical-stepper-step-icon {
  border: 2px solid #a1aebe;
  border-radius: 9999px;
  padding: 5px;
}

.vertical-stepper-divider {
  border-left: 2px solid #a1aebe;
  height: 50px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 14px;
}

.vertical-stepper-step.completed {
  color: #f3c800;
}

.vertical-stepper-step-icon.completed {
  border-color: #f3c800 !important;
}

.vertical-stepper-divider.completed {
  border-color: #f3c800 !important;
}

.search-container {
  position: relative;
}

.search-input.password {
  padding: 8px 36px 8px 36px; /* extra Padding rechts für Passwort Toggle Icon */
}

.password-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  color: #6b7280;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.password-toggle:focus-visible {
  outline: 2px solid #f3c800;
  outline-offset: 2px;
}

.password-toggle svg {
  pointer-events: none;
}

/* ========================================================================== */
/* Notification */
/* ========================================================================== */
.notification {
  position: absolute;
  bottom: 25px;
  right: 25px;
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  padding: 14px;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(26, 26, 26, 0.14), inset 0 -1px 0 rgba(39, 39, 39, 0.1),
    inset 0 0 14px 7px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  text-wrap: balance;

  z-index: 9999;
}

.notification-icon {
  margin-right: 16px;
}

.notification-close {
  margin-left: 4px;
}

.notification-close:hover {
  cursor: pointer !important;
}

.notification-content {
  display: flex;
  flex-direction: column;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
}

.notification-title {
  color: #1e293b;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 6px;
}

#notification[hidden] {
  display: none;
}
#notification:not([hidden]) {
  display: flex;
}

.legend {
  list-style: none;
  margin: 0;
  display: grid;
}

.legend li {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: start;
  line-height: 1.3;
  font-size: 14px;
  /* align-items: center; */
}

.legend .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #000000;
  margin-top: 0.475em;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.5;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-bottom: 12px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-top: 1px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-text {
  flex: 1;
}

.check-icon {
  color: #475569;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.custom-checkbox:hover .checkmark {
  border-color: #f3c800;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #f3c800;
  border-color: #f3c800;
}

.custom-checkbox input:checked ~ .checkmark .check-icon {
  opacity: 1;
  transform: scale(1);
}

.custom-checkbox input:focus-visible ~ .checkmark {
  outline: 2px solid #f3c800;
  outline-offset: 2px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type='number'] {
  -moz-appearance: textfield; /* Firefox */
}

.input-error {
  border: 1px solid #f45858 !important;
  tw-ring-shadow: none !important;
  box-shadow: none !important;
}

/* ========================================================================== */
/* Multi Step Form */
/* ========================================================================== */
.form-step {
  display: none;
  transition: opacity 0.5s ease;
}
.form-step.active {
  display: block;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translate3d(20px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeOutRight {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  /* 50% {
    opacity: 0;
    transform: translate3d(20px, 0, 0);
  } */

  100% {
    opacity: 0;
    transform: translate3d(20px, 0, 0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-20px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ========================================================================== */
/* Responsive Styling für mobile Endgeräte */
/* ========================================================================== */
@media (max-width: 1280px) {
  .vertical-stepper {
    display: none !important;
  }
}

@media (max-width: 500px) {
  .center {
    min-width: auto !important;
    padding: 12px;
  }
}

.notification-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  z-index: 9999;
  pointer-events: none;
}

.notification-container .notification {
  position: relative;
  bottom: auto;
  right: auto;
  pointer-events: auto;
  width: auto;
  flex-shrink: 0;
}

.required-input-indicator {
  color: #f45858;
}

.vertical-stepper-step {
  display: flex;
  flex-direction: row;
  gap: 10px;
  vertical-align: middle;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.vertical-stepper-step:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

.vertical-stepper-step.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.vertical-stepper-step.disabled:hover {
  transform: none;
  opacity: 0.5;
}

.vertical-stepper-step.active {
  font-weight: bold;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

.vertical-stepper-step-icon {
  border: 2px solid #a1aebe;
  border-radius: 9999px;
  padding: 5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.vertical-stepper-step-icon.completed {
  border-color: #f3c800 !important;
  animation: stepComplete 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vertical-stepper-divider {
  border-left: 2px solid #a1aebe;
  height: 50px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 14px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.vertical-stepper-divider::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 100%;
  width: 2px;
  background-color: #f3c800;
  transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-stepper-divider.completed::before {
  bottom: 0;
}

.vertical-stepper-divider.completed {
  border-color: #f3c800 !important;
}

.vertical-stepper-step {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-stepper-step.completed {
  color: #f3c800;
  animation: stepTextHighlight 0.4s ease-out 0.3s;
}

@keyframes stepComplete {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 200, 0, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(243, 200, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 200, 0, 0);
  }
}

@keyframes stepTextHighlight {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.vertical-stepper-step-icon svg {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-stepper-step-icon.completed svg {
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

@keyframes iconPop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.vertical-stepper-step-icon.completed::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: radial-gradient(
    circle,
    rgba(243, 200, 0, 0.3) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%) scale(1.5);
  animation: glowPulse 0.6s ease-out;
  pointer-events: none;
}

@keyframes glowPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

@media (max-width: 768px) {
  .notification-container {
    bottom: 15px;
    right: 15px;
    gap: 10px;
    max-width: calc(100vw - 30px);
  }

  .notification {
    padding: 12px;
    border-radius: 12px;
    max-width: 100%;
  }

  .notification-icon {
    margin-right: 12px;
  }

  .notification-close {
    margin-left: 2px;
  }

  .notification-content {
    font-size: 13px;
  }

  .notification-title {
    font-size: 15px;
    margin-bottom: 4px;
  }
}

@media (max-width: 500px) {
  .notification-container {
    bottom: 10px;
    right: 10px;
    gap: 8px;
  }

  .notification {
    padding: 10px;
    border-radius: 10px;
  }

  .notification-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }

  .notification-icon svg {
    width: 28px;
    height: 28px;
  }

  .notification-content {
    font-size: 12px;
  }

  .notification-title {
    font-size: 14px;
    margin-bottom: 3px;
  }

  .legend li {
    font-size: 12px;
    line-height: 1.2;
  }
}

.vertical-stepper-step.error {
  color: #f45858;
}

.vertical-stepper-step-icon.error {
  border-color: #f45858 !important;
}

.vertical-stepper-divider.error {
  border-color: #f45858 !important;
}
