/* ============================================================
   Desktop View – partner.css (Premium Version)
   Hans Rittmeier GmbH | rittmeier-bedachung.de
   ============================================================ */

.partner-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
}

.partner-content .block {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for a clean, spacious look */
    gap: 40px;
    margin-top: 50px;
}

/* Neutralize legacy paragraph and break tags */
.partner-content .block p,
.partner-content .block > br {
    display: contents;
}

/* ---------- Card Design ---------- */

.frame {
    background: #ffffff;
    border: 1px solid #eef2f6 !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 40px !important;
    margin: 0 !important;
    height: 300px !important; /* Spacious height for desktop logos */
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-align: center;
}

.frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #8cd5e3 !important;
    font-weight: normal !important; /* Reset legacy hover effect */
}

/* ---------- Typography ---------- */

/* Targeting the text inside <br> tags (legacy HTML quirk) */
.frame br {
    display: block;
    margin-bottom: 25px;
    font-size: 18pt;
    font-weight: 700;
    color: #2a4a6a;
    font-style: normal;
    font-family: inherit;
    line-height: 1.2;
}

/* Neutralize the second <br> if present */
.frame > br + br {
    display: none;
}

/* ---------- Logo Scaling (Standardized) ---------- */

.frame img {
    max-width: 80%;
    max-height: 120px;
    height: auto !important;
    width: auto !important;
    object-fit: contain; /* Ensures logo is never cropped but stays sharp */
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.03));
}

.frame:hover img {
    transform: scale(1.05);
}

/* Fine-tune specific brands for visual balance */
.velux img {
    max-width: 60%;
}

.rheinzink img {
    max-width: 85%;
}

.kebu img {
    max-width: 75%;
}

.rathscheck img {
    max-width: 85%;
}