body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* HEADER */
header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 100px;
    width: auto;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

nav a.active {
    background-color: #5a5ff0;
    color: white;
}

nav a:hover {
    background-color: #ddd;
}

nav a img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Hauptbereich */
.detail-container {
    display: flex;
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery {
    flex: 1;
    text-align: center;
}

.main-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.thumb {
    width: 50px;
    height: 50px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
}

.thumb:hover {
    border: 2px solid #372F7C;
}

.info-box {
    flex: 1;
    padding-left: 20px;
}

h1 {
    font-size: 24px;
    color: #372f7c;
}

.icon {
    width: 16px;
    margin-right: 5px;
}

.contact-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #372F7C;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.contact-btn:hover {
    background: #585858;
}

.ausschreiber-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ausschreiber-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.ausschreiber-name {
    font-weight: bold;
    font-size: 16px;
}

/* 🔹 EINHEITLICHE BOX für Username + Profilbild */
.ausschreiber-info {
    display: flex;
    flex-direction: column;
    /* Zentriert Username unter dem Bild */
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: fit-content;
    text-decoration: none;
    /* 🔥 Kein Unterstrich mehr! */
    transition: transform 0.2s ease-in-out;
}

/* 🔹 Profilbild */
.ausschreiber-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* 🔹 Username */
.ausschreiber-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
    /* Abstand zum Bild */
    text-decoration: none !important;
    /* Sicherstellen, dass keine Unterlinie da ist */
}

/* 🟣 Hover-Effekt: Box wird größer */
.ausschreiber-info:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
        padding: 15px;
        margin: 20px 10px;
    }

    .gallery {
        width: 100%;
        margin-bottom: 20px;
    }

    .main-image img {
        max-height: 250px;
        object-fit: cover;
        border-radius: 8px;
    }

    .info-box {
        padding-left: 0;
    }

    h1 {
        font-size: 20px;
        text-align: center;
        margin-top: 10px;
    }

    .ausschreiber-info {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        box-shadow: none;
        background: none;
        margin-bottom: 15px;
    }

    .ausschreiber-name {
        margin-top: 0;
        font-size: 15px;
    }

    .contact-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }

    .thumb {
        width: 40px;
        height: 40px;
    }
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.overlay-user {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.overlay-user:hover {
    transform: scale(1.05);
}

.overlay-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.overlay-name {
    font-weight: bold;
    color: #372F7C;
    font-size: 14px;
}

@media (max-width: 600px) {
    .overlay-user {
        bottom: 10px;
        padding: 6px 12px;
    }

    .overlay-pic {
        width: 32px;
        height: 32px;
    }

    .overlay-name {
        font-size: 14px;
    }
}

.main-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.user-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.user-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.chat-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-username {
    font-weight: bold;
    color: #000;
}

.inserat-titel-info {
    text-align: right;
}

.chat-inserat-titel {
    font-weight: bold;
    font-size: 16px;
    color: #372F7C;
}

.chat-ort {
    font-size: 14px;
    color: #777;
}

/* Benutzerzeile über dem Bild */
.top-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-header {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.user-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.user-name {
    font-weight: bold;
    color: #222;
}

/* Dauerauftrag nach oben */
.dauerauftrag-top {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Burger-Menü Styling */
#burger-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    color: #372F7C;
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

@media (max-width: 768px) {
    #burger-icon {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 10px;
        background: white;
        width: 200px;
        padding: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        z-index: 1000;
    }

    nav.show {
        display: flex;
    }

    nav a {
        padding: 10px;
        text-align: center;
    }
}