/* -------------------------------------------------
   GLOBAL LAYOUT
------------------------------------------------- */
body .content {
    background: none;
    padding: 0px;
}

/* ---------------------------
   P4P SECTION
--------------------------- */
.p4p-section {
    padding: 18px 20px;
    background: rgba(30, 30, 30, 0.7);
    margin-bottom: 12px;
    border-radius: 12px;
}

.p4p-title {
    text-align: center;
    margin-bottom: 14px;
    font-size: 1.6rem;
    color: #eee;
    font-weight: 700;
}


/* ---------------------------
   P4P GRID
--------------------------- */
.p4p-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}


/* ---------------------------
   P4P CARD
--------------------------- */
.p4p-card {
    position: relative;
    background: radial-gradient(circle at top right,
        rgba(150,0,0,0.4),
        rgba(20,20,20,0.85)
    );
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    display: flex;
    align-items: center;
    padding: 12px;
}

.p4p-card:hover {
    background: radial-gradient(circle at top right,
        rgba(198, 0, 0, 0.4),
        rgba(47, 47, 47, 0.85)
    );
}

.p4p-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    object-fit: contain;
}

.p4p-flag {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;          /* feste Breite */
    height: 25px;         /* feste Höhe, angepasst an deine Karte */
    object-fit: cover;    /* skaliert das Bild passend, ohne zu verzerren */
    border-radius: 4px;
}


/* ---------------------------
   POSITION BADGES
--------------------------- */
.p4p-position {
    font-size: 2.6rem;
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 12px;
}

.gold   { color: #D4AF37; }
.silver { color: #C0C0C0; }
.bronze { color: #CD7F32; }


/* ---------------------------
   NAME OVERLAY
--------------------------- */
.p4p-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    font-size: 1.05rem;
    font-weight: 600;
    color: #eee;
    text-align: center;
}


/* ---------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 800px) {
    .p4p-grid {
        grid-template-columns: 1fr;
    }
}