/**
 * page-unser-netzwerk.css — Layout der Netzwerk-Boxen.
 * 2-Spalten-Grid mit Hover-Effekt (Box wächst, Footer-Bar wird sichtbar).
 */

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
}

.row-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.row {
    background-color: #fff;
    border: 3px solid #006883;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    overflow: hidden;
    position: relative;
    transition: height 0.3s ease;
    width: 48%;
    flex: 1;
}
.row:hover, .row:active, .row:focus {
    height: 300px;
}

.row img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: object-fit 0.3s ease;
}
.row:hover img, .row:active img, .row:focus img {
    object-fit: contain;
}

.row h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0066cc;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    padding: 10px;
    text-align: center;
}

.partner {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    width: 100%;
    text-align: center;
}

/* Footer-Bar: bei Hover sichtbar */
.footer-bar {
    position: absolute;
    bottom: 0;
    background-color: #006883;
    color: #fff;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}
.row:hover .footer-bar,
.row:active .footer-bar,
.row:focus .footer-bar {
    opacity: 1;
}

.left-text, .right-text {
    width: 50%;
    white-space: nowrap;
}
.left-text  { text-align: left;  padding-left: 10px; }
.right-text { text-align: right; padding-right: 10px; }

/* Schwarzer Hintergrund (z.B. für Logos die auf dunkel besser aussehen) */
.black-background { background-color: #000; color: #fff; }

/* Einzelne, zentrierte Box */
.single-row { justify-content: center; }
.single-row .row .row-link { width: 60%; }

/* === Mobile === */
@media (max-width: 768px) {
    .row-container {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0;
    }
    .row {
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }
    .row:hover { height: 200px; }
    .footer-bar {
        opacity: 1;
        font-size: 10px;
        padding: 10px;
    }
    .left-text, .right-text {
        width: 45%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .row img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .row:hover img { object-fit: contain; }
}
