/* ==========================================
   Grundlayout und Hauptstruktur
   ========================================== */
* {
  margin: 0;
  box-sizing: border-box;
}

main {
  max-width: 1920px;
  margin: 0;
  left: 232px;
  top: 96px;
  width: calc(100% - 232px);
  height: calc(100vh - 96px);
}

.contacts_layout_wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 64px;
}

/* ==========================================
   Kontaktliste (linke Spalte)
   ========================================== */
.contactlist_area {
  width: 450px;
  height: 100%;
  background-color: rgb(255, 255, 255);
  box-shadow: 4px 0 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* "+ Add new contact"-Button: volle Breite & bündig */
.btn_dark,
.add_contact_btn {
  border: 1px;
  border-radius: 10px;
  color: rgb(255, 255, 255);
  background-color: rgb(42, 63, 84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 12px;
  margin: 22px 52px;
  font-weight: 700;
  font-size: 21px;
  gap: 16px;
  position: sticky;
  top: 0;
  cursor: pointer;
}

.add_contact_btn img {
  width: 31px;
  height: 22px;
}

.add_contact_btn:hover {
  background-color: rgba(41, 171, 226, 1);
}

/* Scrollbare Liste */
.contact_list,
.contacts_list {
  padding-left: 46px;
  padding-right: 54px;
  padding-bottom: 80px;
  height: 100%;
  flex-grow: 1;
  overflow-y: auto;
}

/* Alphabetische Gruppen-Überschrift */
.contact_section .contact_initial {
  font-size: 12px;
  font-weight: 600;
  color: rgb(102, 102, 102);
  margin: 32px 0 8px;
  border-bottom: 1px solid rgb(221, 221, 221);
  padding-bottom: 4px;
  padding-left: 0;
}

/* ==========================================
   Einzelne Kontaktzeile
   ========================================== */
.contact-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgb(255, 255, 255);
  transition: background 0.2s;
  cursor: pointer;
}


.contact-list-item:hover {
  background-color: rgb(221, 221, 221); /* ein sanftes Grau */
  border-radius: 8px;
  cursor: pointer;
}

/* Aktives Element hervorheben */
.contact_list_item_active {
  background-color: rgba(42, 54, 71, 1) !important;
  border-radius: 8px;
}

.contact_list_item_active .contact_name {
  color: rgb(255, 255, 255) !important;
}

/* Linke Gruppe: Kreis + Details */
.contact_left {
  display: flex;
  align-items: center;
}

.contact_circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: rgb(255, 255, 255);
}

.contact_details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact_name {
  font-size: 15px;
  font-weight: 600;
  color: rgb(29, 29, 29);
  margin: 0;
}

.contact_email {
  font-size: 13px;
  color: rgb(0, 123, 255);
}

/* ==========================================
   Overlay-Content (rechts kommt dein Detailbereich)
   ========================================== */
.overlay_content {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
}
#overlay-content {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
}

.overlay_content h2 {
  margin: 0 0 24px 0;
}

.overlay_content label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.btn_clear {
  background: none;
  border: none;
  color: rgb(255, 70, 70);
  cursor: pointer;
}

.button_font {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 14px;
  background-color: rgb(42, 54, 71);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.button_font img {
  width: 16px;
  height: 16px;
}

.button_font:hover {
  background-color: rgb(31, 40, 54);
}

.btn_edit_detail {
  cursor: pointer;
}

/* ==========================================
   Detailansicht (rechte Spalte)
   ========================================== */
.contacts_overview {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
}

.contacts_overview.d_none {
  display: none;
}

.contact_detail {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  gap: 20px;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.headline_with_divider {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 64px;
}

.headline_with_divider h1 {
  font-size: 61px;
  font-weight: 700;
  color: rgb(0, 0, 0);
}

.head_dividing_line {
  width: 4px;
  height: 59px;
  background-color: rgb(41, 171, 226);
}

.headline_with_divider h6 {
  font-size: 27px;
  font-weight: 400;
  color: rgb(42, 54, 71);
}

.detal_header_text {
  display: flex;
  flex-direction: column;
}

.contact_detail_header {
  display: flex;
  align-items: center;
  gap: 54px;
}

.detal_header_text h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: rgb(29, 29, 29);
}

.detail_actions {
  display: flex;
  gap: 20px;
  font-weight: 400;
}

/* Klar strukturierte, link‑ähnliche Action‐Buttons */
.action_button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  /* übernimm Schriftfamilie/-größe */
  color: rgb(42, 54, 71);
  /* dunkles Grau/Schwarz */
  cursor: pointer;
}

.action_button .icon {
  width: 16px;
  height: 16px;
  /* am Anfang leicht abgedunkelt */
  filter: brightness(0) saturate(100%) invert(10%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(80%) contrast(80%);
}

.action_button:hover span,
.action_button:hover .icon {
  color: rgb(41, 171, 226);
  /* blau beim Hover */
  filter: brightness(1.2);
  /* Icon aufhellen */
}


.contact_circle_large {
  width: 120px;
  height: 120px;
  font-size: 47px;
}

/* Kontakt-Infos */
.contact_info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info_row {
  display: flex;
  flex-direction: column;
}

.contact_info h5 {
  font-size: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
  font-weight: 400;
}

.contact_info .contacts_mail_phone_head {
  font-weight: 700;
  color: rgb(29, 29, 29);
  margin-bottom: 25px;
}

.contact_info .info_value {
  font-size: 16px;
  color: rgb(0, 123, 255);
}

.contact_info .info_value_phone {
  font-size: 16px;
  color: rgb(29, 29, 29);
}

.edit_contacts_window {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  border: 0;
  background-color: rgba(42, 54, 71, 0.3);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

/* Toast-Container (unten Mitte) */
.toast-container {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  /* Klicks durchreichen */
  z-index: 2000;
}

/* Einzelner Toast */
.toast {
  background-color: rgb(42, 54, 71);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: toast-in 0.3s forwards, toast-out 0.3s forwards 2.5s;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}


.safe_btn {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Abstand zwischen Text und Icon */
  font-weight: bold;
  padding: 12px 16px;
  background-color: rgba(42, 54, 71, 1);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s ease-in-out;
}

.safe_btn:hover {
  background-color: rgba(41, 171, 226, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.btn_safe img.cancel_icon {
  width: 20px;
  height: 20px;
}

.delete_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  width: 126px;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 10px;
  border: 1px solid rgba(42, 54, 71, 1);
  color: rgba(42, 54, 71, 1);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
}

.delete_btn:hover {
  border: 2px solid rgba(41, 171, 226, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  color: rgba(41, 171, 226, 1);
}

.btn_create_contact {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Abstand zwischen Text und Icon */
  font-weight: bold;
  padding: 12px 16px;
  background-color: rgba(42, 54, 71, 1);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s ease-in-out;
}

.btn_create_contact:hover {
  background-color: rgba(41, 171, 226, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.btn_create_contact img.check_icon {
  width: 20px;
  height: 20px;
}

.btn_cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  width: 126px;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 10px;
  border: 1px solid rgba(42, 54, 71, 1);
  color: rgba(42, 54, 71, 1);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
}

.btn_cancel:hover {
  border: 2px solid rgba(41, 171, 226, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  color: rgba(41, 171, 226, 1);
}

.btn_cancel:active {
  border: 1px solid rgba(9, 25, 49, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  color: rgba(9, 25, 49, 1);
}

.btn_cancel:hover .close_cross::before,
.btn_cancel:hover .close_cross::after {
  background-color: rgba(41, 171, 226, 1);
  cursor: pointer;
}

.btn_cancel:active .close_cross::before,
.btn_cancel:active .close_cross::after {
  background-color: rgba(9, 25, 49, 1);
}

.close_cross {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
}


.close_cross:before,
.close_cross:after {
  position: absolute;
  content: " ";
  height: 16px;
  width: 2px;
  background-color: rgba(42, 54, 71, 1);
  border-radius: 2px;
}

.close_cross:before {
  transform: rotate(45deg);
}

.close_cross:after {
  transform: rotate(-45deg);
}


/* Icon-Buttons unter dem Namen */
.icon_button {
  background: none;
  border: none;
  padding: 4px;
  /* etwas größere Klickfläche */
  cursor: pointer;
  border-radius: 4px;
  /* leichtes Ab­runden beim Hover */
}

.icon_button:hover {
  background-color: rgba(41, 171, 226, 1);
}

.icon_button img {
  display: block;
  width: 20px;
  /* oder deine gewünschte Icon-Größe */
  height: 20px;
}

