/* ==========================================
   Overlay-Grundstruktur
   ========================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.25s ease;
}

.overlay.show {
  visibility: visible;
  opacity: 1;
}

.overlay_content_inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

/* ==========================================
   Overlay-Container (Querformat, Slide-In)
   ========================================== */
#overlay-container {
  display: flex;
  width: 1212px;
  height: 592px;
  background-color: white;
  border-radius: 30px;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1001;
}

#overlay-container.show {
  transform: translateX(0);
}

/* ==========================================
   Linke Hälfte (40%)
   ========================================== */
.overlay_container_left {
  background-color: rgb(42, 54, 71);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 520px;
  height: 594px;
  padding-top: 66px;
  padding-left: 48px;
  padding-right: 48px;
  padding-bottom: 66px;
}

.overlay_container_left h1 {
  font-size: 61px;
  font-weight: 700;
  color: white;
}

.overlay_container_left .overlay_subtitle {
  font-size: 18px;
  color: rgb(200, 200, 200);
  margin: 0;
}

.divider_horizontal {
  width: 60px;
  height: 4px;
  background-color: rgb(41, 171, 226);
  margin-top: 8px;
}

.join_logo {
  width: 48px;
  margin-bottom: 24px;
}

/* ==========================================
   Rechte Hälfte (60%)
   ========================================== */
.overlay_container_right {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: 27px;
  width: 60%;
  box-sizing: border-box;
}

.form_layout {
  position: relative;
  height: 100%;
  margin-top: 204px;
  left: 50px;
}

.overlay_contact_circle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 47px;
  border: white 2px solid;
  height: 120px;
  width: 120px;
  border-radius: 60px;
  background-color: rgb(209, 209, 209);
  color: white;
  font-weight: 500;
}

.add_contact_icon {
  width: 130px;
  height: 130px;
  background-image: url("../assets/icons/add_new_contact.svg");
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
}

#addnew-contact-form,
#edit-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form + Icons */
.input_container {
  width: 420px;
  height: 50px;
  border: solid 1px rgb(209, 209, 209);
  border-radius: 10px;
  color: black;
  font-weight: 400;
  padding: 13px 21px;
  font-size: 20px;
}

.input_container input {
  width: 100%;
  padding: 12px 48px 16px;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 8px;
  font-size: 16px;
}

.input_container label {
  display: block;
  margin-bottom: 4px;
  color: rgb(51, 51, 51);
}

.input-icon {
  position: absolute;
  top: 40%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.5;
}

.user-icon::before {
  content: "";
  display: inline-block;
  width: 16px;
  /* Breite des Icons */
  height: 16px;
  /* Höhe des Icons */
  background-image: url('/assets/icons/person.svg');
  /* Pfad zu deinem User-Icon */
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
  /* Abstand zum Text */
  vertical-align: middle;
  /* Vertikale Ausrichtung */
}

.email-icon::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/assets/icons/mail.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
  vertical-align: middle;
}

.phone-icon::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/assets/icons/phone.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
  vertical-align: middle;
}

/* Overlay-Buttons */
.overlay_buttons {
  display: flex;
  gap: 24px;
  z-index: 10;
}

.btn_clear {
  border: 1px solid rgb(42, 54, 71);
  background: none;
  border-radius: 8px;
  padding: 12px 24px;
  color: rgb(42, 54, 71);
  font-size: 16px;
  cursor: pointer;
}

.btn_primary {
  background-color: rgb(42, 54, 71);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* Close-Button oben rechts */
.overlay_container_close_button {
  position: absolute;
  top: 24px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 50%;
}

.closebutton_blue:hover {
  cursor: pointer;
  background-color: rgba(238, 238, 238, 1);
}

.closebutton_blue:active {
  background-color: rgba(41, 171, 226, 1);
}

.closebutton_blue:before,
.closebutton_blue:after {
  position: absolute;
  content: " ";
  height: 16px;
  width: 2px;
  background-color: rgba(42, 54, 71, 1);
  border-radius: 2px;
}

.closebutton_blue:before {
  transform: rotate(45deg);
}

.closebutton_blue:after {
  transform: rotate(-45deg);
}

.closebutton_blue:active::before,
.closebutton_blue:active::after {
  background-color: rgba(255, 255, 255, 1);
}

@keyframes slideIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}