* {
    box-sizing: border-box;
    margin: 0;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    scroll-behavior: smooth;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.all-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

.content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    margin-left: 232px;
    width: calc(100% - 232px)
}

.small-menu-button.inactive {
    pointer-events: none;
}

#contactlist-container {
    position: absolute;
    width: auto;
    height: calc(100dvh - 96px);
    top: 96px;
    width: 456px;
    box-shadow: 0px 7px 6px 2px rgba(0, 0, 0, 0.11);
    background-color: #FFFFFF;
    overflow: auto;
}

#contactlist-container.inactive {
    pointer-events: none;
}

#contactlist-container {
    scrollbar-color: grey rgb(252, 252, 252);
    scrollbar-width: thin;
}

#contactlist-container::-webkit-scrollbar {
    width: 8px;
}

#contactlist-container::-webkit-scrollbar-track {
    background: white;
}

#contactlist-container::-webkit-scrollbar-thumb {
    background: grey;
    border-radius: 10px;

}

#contactlist-container::-webkit-scrollbar-thumb:hover {
    background: rgb(180, 180, 180);
    cursor: pointer;
}

.contacs-box-container {
    max-height: 100%;
    width: 100%;
    padding: 0 50px;
    padding-top: 85px;
}

#contact-flex-container {
    display: flex;
}

.error-message{
    font-size: 9px;
    color: white;
    margin: 2px 0 22px 0;
}

.error-text-red {
    color: red !important;
}

.more-information-container {
    position: fixed;
    top: 96px;
    left: 688px;
    height: calc(100dvh - 96px);
    width: calc(100vw - 688px);
    background-color: #F6F7F8;
}

.container-user-name {
    margin-right: 20px;
    inline-size: auto;
    overflow-wrap: break-word;
    max-width: fit-content;
}

.contact-headline {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 113px;
    margin-left: 60px;
}

.contact-headline h1 {
    font-weight: 700;
    font-size: 61px;
    line-height: 73px;
}

.contact-headline span {
    font-weight: 400;
    font-size: 27px;
    line-height: 32px;
}

#contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
}

#container-contacts-button {
    display: flex;
    flex-direction: column;
    left: 250px;
    position: fixed;
    background-color: #FFFFFF;
}

#container-contacts-button button {
    top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 352px;
    height: 56px;
    background-color: #2A3647;
    padding: 12px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 21px;
    line-height: 25px;
    margin: 30px;
}

#container-contacts-button button:hover {
    background-color: #29abe2;
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.3);
}

#container-contacts img {
    width: 32px;
    height: 32px;
}

.add-new-button-mobile-container {
    display: none;
    position: absolute;
    height: 0;
    width: 0;
    right: 70px;
    bottom: 160px;
}

.add-new-button {
    height: 56px;
    width: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2A3647;
    cursor: pointer;
    border-radius: 46px;
    box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.3);
}

.add-new-button.active{
    background-color: #29abe2;
}

.mobile-img-line {
    display: none;
}

.container-letter {
    width: 352px;
    height: 58px;
    padding: 17px 36px;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    margin: 10px 0 5px 0;
}

.line {
    width: 100%;
    height: 2px;
    border: none;
    border-radius: 3px;
    background-color: #D1D1D1;
}

.container-contact {
    min-width: 346px;
    max-width: 346px;
    min-height: 78px;
    border-radius: 10px;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 10px 0;
}

.contactList {
    padding-bottom: 40px;
}

.container-contact:hover {
    cursor: pointer;
    background-color: #cccccc59;
}

.container-contact.select-contact {
    background-color: #2A3647;
}

.dark-border {
    border: 2px solid #333;
}

.container-initials {
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
}

.container-contact-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: calc(346px - 24px - 24px - 42px - 35px);
    overflow-wrap: break-word;
}

.contact-preview-name {
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
}

.contact-preview-mail {
    color: #007CEE;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
}

.contact-info-container {
    margin-top: 30px;
    margin-left: 60px;
}

#moreInformationContact {
    transform: translateX(100%);
    transition: transform 0.5s ease-out;
}

.info-name-container {
    display: flex;
    align-items: center;
    gap: 54px;
}

.procressing-area {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.procressing-area h1 {
    font-size: 47px;
}

.more-info-initials {
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    font-size: 47px;
    line-height: 14px;
}

.procressing-area-button-container {
    justify-content: flex-start;
    display: flex;
    gap: 13px;
}

.procressing-area-button {
    display: flex;
    gap: 8px;
    transform-origin: right;
    color: black;
}

.procressing-area-button:hover .icon,
.procressing-area-button:hover p {
    color: #29abe2;
    font-weight: 700;
    transform: scale(1.02);
}

.procressing-area-button button {
    height: 24px;
    width: 24px;
}

.procressing-area-button p {
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px
}

.contact-information {
    height: 74px;
    width: 207px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: start;
}

.contact-information p {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}

.info-box-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-box p {
    font-size: 16px;
    font-weight: 700;
    line-height: 19.2px;
}

.info-box a {
    color: #007CEE;
}

.mobile-procressing-area-overlay {
    opacity: 0;
}

.new-contact-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 3;
    visibility: hidden;
    transform: scale(1);
    transition: opacity 0.5s ease-in-out, transform 8s ease-in-out, visibility 0.6s;
}

.new-contact-overlay.active {
    visibility: visible;
    opacity: 1;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1);
}

.d-none {
    display: none;
}

.new-Contect-Container {
    position: absolute;
    width: 1200px;
    height: 600px;
    border-radius: 30px;
    display: flex;
    transform: translateX(130%);
    transition: transform 0.5s ease-in-out;
}

.new-Contect-Container.active {
    transform: translateX(0);
}

.edit-contact-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 3;
    visibility: hidden;
    transform: scale(1);
    transition: opacity 0.5s ease-in-out, transform 8s ease-in-out, visibility 0.6s;

}

.edit-contact-overlay.active {
    visibility: visible;
    opacity: 1;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1);
}

.edit-Contect-Container {
    position: absolute;
    width: 1200px;
    height: 600px;
    border-radius: 30px;
    display: flex;
    transform: translateX(130%);
    transition: transform 0.5s ease-in-out;
}

.edit-Contect-Container.active {
    transform: translateX(0);
}

.information-content-container {
    width: 460px;
    height: 100%;
    border-radius: 30px 0 0 30px;
    padding-left: 40px;

    background-color: #2A3647;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 16px;
}

.information-content-container img {
    width: 55px;
}

.information-content-container h1 {
    font-size: 61px;
    font-weight: 700;
    color: white;
}

.information-content-container p {
    font-size: 27px;
    font-weight: 400;
    color: white;
}

.information-content-container hr {
    border: none;
    height: 2px;
    width: 85px;
    background-color: #29ABE2;

}

.add-input-contact-container {
    width: 840px;
    height: 100%;
    border-radius: 0 30px 30px 0;
    background-color: white;
    display: flex;
    align-items: center;
    gap: 70px;
}

.edit-add-input-contact-container {
    width: 840px;
    height: 100%;
    border-radius: 0 30px 30px 0;
    background-color: white;
    display: flex;
    align-items: center;
    gap: 70px;
}

.close-btn {
    position: absolute;
    padding: 5px;
    margin-left: 670px;
    margin-bottom: 480px;
    transition: 100ms;
}

.mobile-close-btn {
    display: none;
}

.close-btn:hover {
    background-color: #cccccc52;
    padding: 5px;
    border-radius: 100%;
}

.close-btn:active {
    background-color: #cccccc52;
    padding: 5px;
    border-radius: 100%;
}

.new-user-image {
    height: 120px;
    width: 120px;
    border-radius: 70px;
    border: solid 3px white;
    background-color: #D1D1D1;
    margin-left: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.edit-contact-initialien {
    font-size: 47px;
    color: #FFFFFF;
}

.edit-contact-initcolor {
    height: 120px;
    width: 120px;
    border-radius: 70px;
    border: solid 3px white;
    margin-left: 80px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.input-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-area {
    position: relative;
    display: flex;
    align-items: center;
    width: 422px;
}

.input-area input {
    width: 100%;
    height: 50px;
    padding: 10px;
    padding-right: 35px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 20px;
}

.input-area img {
    position: absolute;
    right: 10px;
}

.input-area input::placeholder {
    color: #D1D1D1;
}

.input-area input:focus {
    border: 1px solid #29abe2;
    outline: none;
    box-shadow: none;
}

.red-focus-border:focus {
    border: 1px solid red !important;
}

.contact-button-container {
    display: flex;
    gap: 24px;
    margin-top: 10px;
}

.cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 138px;
    height: 56px;
    padding: 0 16px;
    gap: 8px;
    border-radius: 10px;
    border: solid 1px black;
    font-size: 24px;
    font-weight: 300;
    transform-origin: left;
    transition: 100ms;
}

.cancel-btn p {
    font-size: 20px;
    font-weight: 400;
}

.cancel-btn:hover {
    color: #29abe2;
    border: solid 2px #29abe2;
    transform: scale(0.99);
}

.edit-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 138px;
    height: 56px;
    padding: 0 16px;
    gap: 8px;
    border-radius: 10px;
    border: solid 1px black;
    font-size: 24px;
    font-weight: 300;
    transform-origin: left;
    transition: 100ms;
}

.edit-cancel-btn p {
    font-size: 20px;
    font-weight: 400;
}

.edit-cancel-btn:hover {
    color: #29abe2;
    border: solid 2px #29abe2;
    transform: scale(0.99);
}

button .close-icon:hover path {
    stroke: #29abe2;
}

.create-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 226px;
    height: 57px;
    padding: 16px;
    gap: 8px;
    border-radius: 10px;
    background-color: #2A3647;
    color: white;
    font-size: 24px;
    font-weight: 400;
    transition: 100ms;
}

.create-btn:hover {
    background-color: #29abe2;
    box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 57px;
    width: 111px;
    padding: 16px;
    border-radius: 10px;
    background-color: #2A3647;
    color: white;
    font-size: 21px;
    font-weight: 700;
    transition: 100ms;
    gap: 4px;
}

.save-btn:hover {
    background-color: #29abe2;
    box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

.massage-box {
    position: absolute;
    bottom: 100px;
    right: 120px;
}

.text-message {
    width: 326px;
    height: 74px;
    border-radius: 20px;
    background-color: #2A3647;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-message h1 {
    color: white;
    font-weight: 400;
    font-size: 20px;
}

.back-to-contactlist-btn {
    display: none;
}

.procress-mobile-view {
    display: none;
}

.mobile-overlay {
    display: none;
}

.mobile-procressing-area-button {
    display: none;
}

@media(max-width: 1300px) {
    .contact-headline {
        display: flex;
        align-items: start;
        flex-direction: column;
        margin: 24px 0 0 16px;
        gap: 16px;
        margin-top: 113px;
        margin-left: 60px;
        background-color: #F6F7F8
    }

    .desktope-line {
        display: none;
    }

    .mobile-img-line {
        display: flex;
    }
}

@media(max-width: 1250px) {
    .container-user-name h1 {
        font-size: 40px;
    }
}

@media(max-width: 1230px) {
    .new-Contect-Container {
        width: 1000px;
        height: 600px;
    }

    .edit-Contect-Container {
        width: 1000px;
        height: 600px;
    }

    .add-input-contact-container {
        width: 640px;
        height: 100%;
        border-radius: 0 30px 30px 0;
        background-color: white;
        gap: 10px;
    }

    .edit-add-input-contact-container {
        width: 640px;
        height: 100%;
        border-radius: 0 30px 30px 0;
        background-color: white;
        gap: 10px;
    }

    .close-btn {
        margin-left: 520px;
    }

    .edit-close-btn {
        margin-left: 520px;
    }

    .new-user-image {
        margin-left: 10px;
    }

    .edit-contact-initcolor {
        margin-left: 10px;
    }
}

@media(max-width: 1200px) {
    .info-name-container {
        flex-direction: column;
        align-items: start;
        gap: 30px;
    }
}

@media(max-width: 1040px) {
    .content {
        width: 100%;
        margin: 0;
    }

    header {
        position: relative;
        z-index: 1;
    }

    .contactList {
        padding-bottom: 20px;
    }

    #contactlist-container {
        height: calc(100dvh - 160px);
        top: 80px;
        left: 0;
    }

    .contacs-box-container {
        padding-top: 15px;
    }

    #container-contacts-button {
        left: 18px;
    }

    .container-contact:hover {
        background-color: transparent;
    }

    .container-contact.select-contact {
        background-color: transparent;
    }

    .more-information-container {
        display: none;
        top: 96px;
        left: 458px;
        height: 100%;
        width: 100%;
    }

    #container-contacts-button {
        display: none;
    }

    .add-new-button-mobile-container {
        display: block;
    }

    .contact-overlay {
        position: absolute;
        height: 100vh;
        width: 100%;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        z-index: 2;
        visibility: hidden;
        transform: scale(1);
        transition: opacity 0.5s ease-in-out, transform 8s ease-in-out, visibility 0.6s;
    }

    .contact-overlay.active {
        visibility: visible;
        opacity: 1;
        position: absolute;
        height: 100vh;
        width: 100%;
        top: 0;
        left: 0;
        background-color: rgb(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: scale(1);
    }

    .new-Contect-Container {
        position: absolute;
        width: calc(100% - 30px);
        height: 760px;
        border-radius: 30px;
        display: flex;
        flex-direction: column;
        transform: translateY(130%);
        transition: transform 0.5s ease-in-out;
    }

    .new-Contect-Container.active {
        transform: translateY(0);
    }

    .edit-Contect-Container {
        position: absolute;
        width: calc(100% - 30px);
        height: 760px;
        border-radius: 30px;
        display: flex;
        flex-direction: column;
        transform: translateY(130%);
        transition: transform 0.5s ease-in-out;
    }

    .edit-Contect-Container.active {
        transform: translateY(0);
    }

    .information-content-container {
        width: 100%;
        height: 352px;
        border-radius: 30px 30px 0 0;
        padding-left: 40px;
        background-color: #2A3647;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        gap: 16px;
    }

    .close-btn {
        right: 15px;
        top: 15px;
        padding: 5px;
        margin-left: 0;
        margin-bottom: 0;
    }

    .close-btn:hover {
        background-color: transparent;
    }

    .desktop-close-btn {
        display: none;
    }

    .mobile-close-btn {
        display: flex;
        width: 32px;
        height: 32px;
        justify-content: center;
        align-items: center;
    }

    .new-user-image {
        position: absolute;
        margin-left: 0px;
        top: 295px;
    }

    .edit-contact-initcolor {
        position: absolute;
        margin-left: 0px;
        top: 295px;
    }

    form {
        margin-top: 93px;
    }

    .input-container {
        align-items: center;
    }

    .error-message {
        margin: 2px 0 11px 0;
        align-self: flex-start;
    }

    .input-area {
        position: relative;
        display: flex;
        align-items: center;
        width: 364px;
    }

    .create-btn {
        height: 51px;
        width: 202px;
        margin-top: 20px;
        font-size: 20px;
    }

    .create-btn:hover {
        background-color: #2A3647;
        box-shadow: none;
    }

    .cancel-btn {
        display: none;
    }

    .contact-button-container {
        margin-top: 0;
    }

    .information-content-container img {
        display: none;
    }

    .information-content-container h1 {
        font-size: 47px;
        font-weight: 700;
        color: white;
    }

    .information-content-container p {
        font-size: 20px;
        font-weight: 400;
        color: white;
    }

    .add-input-contact-container {
        width: 100%;
        height: 408px;
        border-radius: 0 0 30px 30px;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 70px;
    }

    .edit-add-input-contact-container {
        width: 100%;
        height: 408px;
        border-radius: 0 0 30px 30px;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 70px;
    }

    .mobile-overlay {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: start;
        flex-direction: column;
        background: #ffffff;
        z-index: 1;
    }

    .headline-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .contact-headline {
        display: flex;
        align-items: start;
        flex-direction: column;
        margin: 24px 0 0 60px;
        gap: 16px;
        background: #ffffff;
    }

    .headline-container .back-to-contactlist-btn {
        display: flex;
        width: 32px;
        height: 32px;
        margin-right: 16px;
        margin-bottom: 60px;
        cursor: pointer;
    }

    .procressing-area-button-container {
        display: none;
    }

    .contact-information {
        height: 24px;
        width: 330px;
        margin-top: 20px;
        margin-bottom: 22px;
        display: flex;
        align-items: center;
        justify-content: start;
    }

    .mobile-procressing-area-overlay {
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1;
        background-color: transparent;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
    }

    .mobile-procressing-area-overlay.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .mobile-procressing-area-overlay.close {
        transform: translateX(100%);
        visibility: visible;
        opacity: 1;
    }

    .mobile-procressing-area-button {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;
        width: 56px;
        border-radius: 56px;
        background-color: #2A3647;
        box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        right: 14px;
        bottom: 184px;
    }

    .mobile-procressing-area-button.active {
        background-color: #29abe2;
    }

    .procressing-mobile-menu-container {
        position: absolute;
        background-color: white;
        border-radius: 30px 30px 0 30px;
        bottom: 170px;
        right: 8px;
    }

    .procressing-mobile-menu {
        height: 116px;
        width: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        border-radius: 20px 20px 0 20px;
        box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.3);
    }

    .procressing-area-button-mobile-position {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        padding: 10px;
        gap: 8px;
    }

    .procressing-area-edit-button-mobile {
        display: flex;
        background-color: #ffffff;
        padding: 8px 20px 8px 10px;
        gap: 8px;
        color: black;
        font-size: 16px;
    }

    .procressing-area-edit-button-mobile.active{
        background-color: #e9e9e9;
        border-radius: 10px;
    }

    .procressing-area-delete-button-mobile {
        display: flex;
        padding: 5px 0px 0px 10px;
        gap: 8px;
        color: black;
        font-size: 16px;
    }

    .massage-box {
        position: absolute;
        bottom: 100px;
        right: 120px;
        z-index: 4;
    }

    .menu-box {
        position: relative;
        display: flex;
        width: 100%;
        height: 80px;
        padding: 0;
        justify-content: center;
        margin-top: auto;
        background-color: #2A3647;
        z-index: 1;
    }
}

@media (max-width: 1040px) and (max-height: 810px) {
    .new-Contect-Container,
    .edit-Contect-Container {
        height: 660px !important;
    }

    .information-content-container {
        height: 302px !important;
    }

    .add-input-contact-container,
    .edit-add-input-contact-container {
        height: 358px !important;
    }

    form {
        margin-top: 65px !important;
    }

    .new-user-image,
    .edit-contact-initcolor {
        top: calc((358px / 2) + 60px) !important;
    }

    .create-btn {
        margin-top: 0 !important;
    }
}

@media(max-width: 1040px) and (max-height: 800px) {
    #moreInformationContact {
        max-height: calc(100dvh - 325px);
        overflow-y: scroll;
    }
}

@media (max-width: 1040px) and (max-height: 700px) {

    .new-Contect-Container,
    .edit-Contect-Container {
        height: 610px !important;
    }

    .information-content-container {
        height: 252px !important;
    }

    .new-user-image,
    .edit-contact-initcolor {
        top: calc((252px / 2) + 60px) !important;
    }
}

@media(max-width: 650px) {
    #container-contacts-button {
        height: 0;
        width: 0;
        left: 80%;
        background-color: transparent;
        margin-top: 680px;
    }
}

@media(max-width: 460px) {
    #contactlist-container {
        width: 100%;
    }

    .contacs-box-container {
        padding: 0 10px;
    }

    .massage-box {
        right: calc(50% - 163px);
    }
}

@media (max-width: 460px) and (max-height: 700px) {

    .edit-contact-initcolor,
    .new-user-image {
        width: 90px;
        height: 90px;
        top: calc((358px / 2) + 25px) !important;
    }

    .edit-contact-initialien {
        font-size: 38px;
    }
}

@media(max-width: 428px) and (max-height: 800px) {
    #moreInformationContact {
        max-height: calc(100dvh - 300px) !important;
    }
}

@media(max-width: 428px) {
    #contactlist-container {
        width: 100%;
    }

    #container-contacts-button {
        height: 0;
        width: 0;
        left: 70%;
        background-color: transparent;
        margin-top: 680px
    }

    #container-contacts-button:nth-child(2) {
        padding-top: 400px;
    }

    #container-contacts-button button {
        width: 56px;
        height: 56px;
        background-color: #2A3647;
        padding: 12px;
        border: none;
        border-radius: 100%;
        color: white;
    }

    #container-contacts-button p {
        display: none;
    }

    #contact-details {
        display: none;
    }

    .line {
        width: 352px;
    }

    section {
        width: 352px;
    }

    .container-contact:hover {
        background-color: transparent;
    }

    .container-contact.select-contact {
        background-color: transparent;
    }

    .contact-info-container {
        margin-top: 0;
        margin-left: 0;
    }

    .procress-mobile-view {
        display: flex;
    }

    .edit-contact-initcolor {
        position: absolute;
        margin-left: 0;
        top: 295px;
    }

    .mobile-delete-view {
        display: flex;
    }

    .contact-button-container {
        margin-top: 0;
    }

    .cancel-btn:hover {
        color: black;
        border: solid 1px black;
        transform: scale(1);
    }

    .mobile-overlay {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: start;
        flex-direction: column;
        background: #ffffff;
        z-index: 1;
    }

    .headline-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .contact-headline {
        display: flex;
        align-items: start;
        flex-direction: column;
        margin: 24px 0 0 16px;
        gap: 16px;
        background: #ffffff;
    }

    .headline-container .back-to-contactlist-btn {
        display: flex;
        width: 32px;
        height: 32px;
        margin-right: 16px;
        margin-bottom: 60px;
        cursor: pointer;
    }

    .contact-headline h1 {
        font-weight: 700;
        font-size: 47px;
        line-height: 56px;
    }

    .desktope-line {
        display: none;
    }

    .mobile-img-line {
        display: flex;
    }

    .contact-headline span {
        font-weight: 400;
        font-size: 20px;
        line-height: 24px;
    }

    #moreInformationContact {
        width: 100%;
        height: 100%;
        background: #ffffff;
        padding: 20px;
    }

    .info-name-container {
        gap: 20px;
    }

    .procressing-area h1 {
        font-size: 36px;
        font-weight: 700;
        line-height: 43px;
    }

    .procressing-area-button-container {
        display: none;
    }

    .contact-information {
        height: 24px;
        width: 330px;
        margin-top: 20px;
        margin-bottom: 22px;
        display: flex;
        align-items: center;
        justify-content: start;
    }

    .information-content-container h1 {
        font-size: 40px;
    }

    .information-content-container p {
        font-size: 16px;
    }

    .input-area {
        width: 250px;
    }

    .edit-cancel-btn {
        width: 82px;
        height: 51px;
        padding: 18px 10px;
        transform-origin: none;
        transition: none;
    }

    .edit-cancel-btn p {
        font-size: 20px;
        font-weight: 400;
    }

    .edit-cancel-btn:hover {
        color: black;
        border: solid 1px black;
        transform: none;
    }

    .save-btn {
        height: 51px;
        width: 99px;
        font-size: 21px;
        font-weight: 700;
        gap: 4px;
    }

    .save-btn:hover {
        background-color: #2A3647;
        box-shadow: none;
    }
}

@media(max-width: 375px) {
    #contactlist-container {
        width: 100%;
    }

    .container-letter {
        width: 100%;
    }

    .contacs-box-container {
        padding: 0;
        width: 100%;
    }

    .contactList {
        padding-bottom: 40px;
        width: 100%;
    }
}

@media(max-width: 361px) {
    #contactlist-container {
        width: 100%;
    }

    .contactList {
        width: 300px;
    }

    .container-contact {
        min-width: 300px;
        max-width: 300px;
    }

    .container-contact-preview {
        max-width: calc(300px - 24px - 24px - 42px - 35px);
    }

    section {
        width: 300px;
    }

    .container-letter {
        width: 90%;
        padding: 17px 0 17px 20px;
    }

    .contacs-box-container {
        width: 300px;
        padding: 0 0 0 10px;
    }

    .line {
        width: 300px;
    }
}