body {
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    max-height: 50vh;
}

footer {
    margin-top: auto;
}

.profil-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;


    background-size: 200% auto;
    background-position: top center;
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-color: white;
}

.profil-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
    padding: 150px 100px 100px 100px;
    box-sizing: border-box;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    height: 85vh;
    width: 100%;
}


.profil-card {
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    flex-basis: 0;
    flex-grow: 3;
    align-items: center;
    gap: 15px;

    min-width: 200px;
    padding: 40px;
    height: 100%;

    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* kräftiger Schatten */
    overflow-y: auto;
}




.user-avatar-large {
    min-width: 80px;
    width: 80px;
    max-width: 80px;
    min-height: 80px;
    height: 80px;
    max-height: 80px;
    background-color: grey;
    border-radius: 50%;
    color: white;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.latest-msg-container {
    margin-top: 20px;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 100%;
}

#msgs-label {
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    color: var(--secondary);
}

#msg-list {
    height: 20vh;
    list-style: none;
    font-weight: normal;
    margin: 10px;
    padding: 10px;
    border: 1px solid var(--secondary);
    background-color: rgba(255, 255, 255, 0.3);
    text-align: left;
    overflow-y: scroll;
}

#msg-list > li {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
}

#msg-list > li > label{
    margin-right: 1rem;
}

.logout-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 12px 24px;
    background-color: #141A2C;
    color: #f2b324;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #1f2c59;
}


#detail-card {
    flex-grow: 7;
    min-width: 200px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0;
    column-gap: 5%;
    padding: 3%;
}
@media (max-width: 1080px) {
    .profil-content {
        background-size: 400%;
    }
    .profil-container {
        flex-direction: column;
        padding: 7%;
    }
}

@media (max-width: 1080px) {
    .profil-card {
        flex-grow: 1;
        min-width: 100%;
        padding: 3% 3% 20px;
    }
    #detail-card {
        flex-grow: 1;
        min-width: 100%;
    }
}





#detail-card > div {
    /*background-color: #f2b324;*/
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#detail-card > div > label {
    color: var(--secondary);
    font-weight: bold;
}

#detail-card > div > p {
    font-weight: 400;
    border: 1px solid var(--secondary);
    padding: 5px;
    border-radius: 5px;
    color: rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}