/* BODY GRUNDSTIL */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    margin: 0;
}

/* 🔙 ZURÜCK-BUTTON */
.back-button {
    display: inline-block;
    margin: 20px;
    margin-bottom: -10px;
    text-decoration: none;
    background-color: #372F7C;
    color: white;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease-in-out;
}

.back-button:hover {
    background-color: #241d5c;
}

/* 👤 PROFIL HEADER */
.profile-header {
    background: #2e2670;
    color: white;
    text-align: center;
    padding: 60px 20px 30px;
    border-radius: 25px 25px 0 0;
    position: relative;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

.profile-header h1 {
    font-size: 26px;
    margin: 10px 0 5px;
    font-weight: bold;
}

.joined-date {
    font-size: 14px;
    color: #ccc;
}

/* 🏠 NAVIGATION */
.profile-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: white;
    padding: 15px 0;
    border-bottom: 2px solid #ddd;
}

.profile-nav a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
}

.profile-nav a.active {
    border-bottom: 3px solid #372F7C;
    color: #372F7C;
}

.profile-nav a:hover {
    color: #372F7C;
}

/* 📄 INFO-BEREICH */
.profile-info-container {
    background: #c2c2c2;
    padding: 40px 20px;
    border-radius: 0 0 25px 25px;
    margin-top: -1px;
}

.profile-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: auto;
}

/* 🏷 INFO-BOXEN */
.info-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 180px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
}

.info-box:hover {
    transform: scale(1.05);
}

.info-box img {
    width: 40px;
    margin-bottom: 10px;
}

.info-box p {
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 📄 TAB-INHALTE */
.tab-content {
    display: none;
    padding: 40px 20px;
    background: white;
    border-radius: 0 0 25px 25px;
    max-width: 900px;
    margin: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.tab-content.active {
    display: block;
}

/* 🏆 BEWERTUNGEN */
.rating {
    font-size: 50px;
    font-weight: bold;
}

/* 🔥 PROFIL SCHLIESSEN BUTTON */
.close-profile-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #2e2670;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.close-profile-btn:hover {
    background-color: #1e184a;
}

/* ✅ AUSSCHREIBUNGEN STIL */
.inserate-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.inserat-box {
    background: white;
    padding: 15px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
    text-decoration: none;
    color: black;
}

.inserat-box:hover {
    transform: scale(1.05);
}

.inserat-box h3 {
    font-size: 18px;
    font-weight: bold;
    color: #372F7C;
    margin-bottom: 5px;
}

.inserat-box p {
    font-size: 16px;
    margin: 3px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ✅ ICONS */
.inserat-box img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* ❌ Falls keine Ausschreibungen da sind */
.no-inserate {
    text-align: center;
    font-size: 18px;
    color: gray;
    margin-top: 20px;
}

/* ⭐ Sterne-Rating Design */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

.star-rating input:checked~label {
    color: gold;
}

.star-rating label:hover,
.star-rating label:hover~label {
    color: gold;
}

/* 📝 Kommentar-Feld */
textarea {
    width: 100%;
    max-width: 500px;
    height: 80px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    resize: none;
    transition: border-color 0.3s ease-in-out;
}

textarea:focus {
    border-color: #372F7C;
    outline: none;
}

/* 🔢 Zeichen-Zähler */
#char-counter {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 🟢 Bewertungs-Button */
.bewertung-btn {
    background-color: #372F7C;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.bewertung-btn:hover {
    background-color: #474fc0;
}

/* MEDIA QUERY FÜR MOBILE */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        align-items: center;
    }
}

.back-button {
    display: inline-block;
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    background-color: #372F7C;
    color: white;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease-in-out;
    z-index: 1000;
}

.back-button:hover {
    background-color: #241d5c;
}

@media (max-width: 768px) {
    .profile-nav {
        flex-direction: column;
        gap: 10px;
    }

    .tab-content {
        padding: 20px 15px;
        border-radius: 0;
        box-shadow: none;
    }

    .profile-info-container {
        padding: 20px 15px;
        border-radius: 0;
    }

    .inserate-grid {
        padding: 0;
        gap: 15px;
    }

    .inserat-box {
        width: 95%;
        padding: 15px 10px;
    }

    .info-box {
        width: 90%;
    }

    .profile-header {
        padding: 40px 15px 20px;
    }

    .profile-header h1 {
        font-size: 22px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .rating {
        font-size: 36px;
    }

    .bewertung-btn {
        width: 100%;
    }

    textarea {
        width: 100%;
    }

    .back-button {
        top: 15px;
        left: 15px;
        font-size: 14px;
        padding: 8px 14px;
    }

    .star-rating {
        font-size: 1.8rem;
    }
}