/* ==========================================
   OIT PARTNER MANAGER - PARTNER GRID
   ========================================== */

/* Container - Full Width */
.pgrid-root {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #000;
    padding: 60px 40px;
}

/* Grid */
.pgrid-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Card */
.pgrid-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
    min-height: 240px;
}

.pgrid-card:hover {
    transform: translateY(-5px);
    border-color: #fff;
    background: #1a1a1a;
}

/* Logo */
.pgrid-logo {
    width: 130px;
    height: 130px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.pgrid-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.pgrid-card:hover .pgrid-logo img {
    filter: grayscale(0%);
}

/* Name */
.pgrid-name {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1200px) {
    .pgrid-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .pgrid-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgrid-root {
        padding: 40px 30px;
    }

    .pgrid-logo {
        width: 100px;
        height: 100px;
    }

    .pgrid-name {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .pgrid-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pgrid-root {
        padding: 30px 20px;
    }

    .pgrid-card {
        padding: 20px 15px;
        gap: 15px;
        min-height: 180px;
    }

    .pgrid-logo {
        width: 80px;
        height: 80px;
        padding: 10px;
    }

    .pgrid-name {
        font-size: 13px;
    }
}

/* ==========================================
   HORIZONTAL SLIDER
   ========================================== */

.pslider-main {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #000;
    padding: 40px 0;
	padding-top: 20px;

    /* statt overflow:hidden */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    cursor: grab;
    user-select: none;
}

.pslider-main.is-dragging {
    cursor: grabbing;
}

/* optional: Scrollbar verstecken */
.pslider-main::-webkit-scrollbar {
    height: 0;
}

.pslider-track {
    display: flex;
    gap: 30px;

    /* keine transform-animation mehr */
    animation: none;

    /* wichtig: Track muss breiter als Viewport sein */
    width: max-content; /* fit-content geht auch */
}

.pslider-item {
    flex: 0 0 200px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, border-color 0.3s;
}

.pslider-item:hover {
    transform: translateY(-5px);
    border-color: #fff;
}

.pslider-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pslider-logo {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.pslider-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.pslider-item:hover .pslider-logo img {
    filter: grayscale(0%);
}

.pslider-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.pslider-main{
  touch-action: pan-y; /* erlaubt vertikales Scrollen der Seite, Drag horizontal bleibt möglich */
}
