:root {
    --r-color-green: #4ade80;
    --profile-text-color: white;
    --r-background-color: #1e323d;
    --r-card-color: #243b47;
    --r-muted-text: #cfd8dc;
    --r-border-radius: 18px;
}

/* Gesamter Bereich */
.player-section {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

/* Layout: Navigation links + Profil + Navigation rechts */
.player-layout {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 80px;
    align-items: center;
    gap: 20px;
}

/* Profilkarte */
.profile-card {
    width: 100%;
    background: var(--r-card-color);
    border-radius: var(--r-border-radius);
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Banner */
.profile-banner {
    position: relative;
    min-height: 280px;
    background-image: url("../Gallerie/grass.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

/* dunkler Overlay für bessere Lesbarkeit */
.profile-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(10, 20, 25, 0.75), rgba(10, 20, 25, 0.25)),
        linear-gradient(to top, rgba(10, 20, 25, 0.75), rgba(10, 20, 25, 0.1));
}

/* Inhalt im Banner */
.profile-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    color: var(--profile-text-color);
}

/* Linke Banner-Seite mit Profilbild */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.profile-avatar-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    background: #fff;
}

#role {
    margin: 12px 0 0 0;
    text-align: center;
    font-size: 14px;
    color: #e5e5e5;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
}

/* Rechte Banner-Seite mit Name und Land */
.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

#profile-name {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-family: "Audiowide", sans-serif;
    color: white;
}

.profile-country {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: #f1f1f1;
}

.flag {
    width: 28px;
    height: 18px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

/* Detailbereich unter dem Banner */
.profile-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
    background: var(--r-background-color);
}

.detail-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--r-muted-text);
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

/* Navigation links / rechts */
.profile-nav {
    width: 100%;
    min-height: 180px;
    border: none;
    border-radius: 16px;
    background: var(--r-card-color);
    color: white;
    font-size: clamp(28px, 4vw, 42px);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profile-nav:hover {
    background: #2c4957;
    transform: translateY(-2px);
}

.profile-nav:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .player-layout {
        grid-template-columns: 60px minmax(0, 1fr) 60px;
        gap: 14px;
    }

    .profile-banner-content {
        gap: 20px;
        padding: 22px;
    }

    .profile-avatar-img {
        width: 110px;
        height: 110px;
    }

    .profile-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .player-layout {
        grid-template-columns: 1fr;
    }

    .profile-nav {
        min-height: 60px;
        width: 100%;
    }

    .profile-nav-left {
        order: 2;
    }

    .profile-card {
        order: 1;
    }

    .profile-nav-right {
        order: 3;
    }

    .profile-banner-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .profile-sidebar {
        align-items: flex-start;
        min-width: auto;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }
}
``