
.wrp-prospects {
    color: #444;
}

.wrp-overview {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
}

.wrp-categories {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.wrp-categories a {
    display: block;
    padding: 7px 0;
    color: #b4163b;
    text-decoration: none;
}

.wrp-categories a:hover,
.wrp-categories a.is-current {
    text-decoration: underline;
    font-weight: 700;
}

.wrp-categories a.is-disabled {
    color: #bbb;
    cursor: default;
    text-decoration: none;
    font-weight: 400;
}

.wrp-section {
    padding: 0 0 28px;
    margin: 0 0 28px;
    border-bottom: 3px solid #eee;
}

.wrp-section h2 {
    margin: 0 0 14px;
    font-size: 21px;
}

.wrp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 14px;
}

.wrp-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
    overflow: hidden;
}

.wrp-card-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 205px;
    padding: 8px;
    text-decoration: none;
}

.wrp-card-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 190px;
    object-fit: contain;
}

.wrp-card-footer {
    min-height: 68px;
    padding: 9px 8px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.wrp-card-footer a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 17px;
}

.wrp-card-footer a:hover {
    color: #b4163b;
    text-decoration: underline;
}

.wrp-card-footer span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.wrp-detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
}

.wrp-detail-header img {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.wrp-detail-header h2 {
    margin: 0 0 3px;
}

.wrp-detail-header span {
    font-size: 14px;
}

.wrp-description {
    margin: 0 0 20px;
}

.wrp-viewer {
    width: 100%;
    margin: 0 0 45px;
    background: #333;
}

.wrp-viewer iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
}

.wrp-related h3 {
    margin-bottom: 12px;
}

.wrp-related-grid {
    grid-template-columns: repeat(4, minmax(120px, 180px));
    justify-content: start;
}

.wrp-back {
    margin-top: 42px;
}

.wrp-back a {
    display: inline-block;
    padding: 9px 14px;
    color: #fff;
    background: #b4163b;
    border-radius: 3px;
    text-decoration: none;
}

.wrp-message {
    padding: 18px;
    background: #f5f5f5;
    border-left: 4px solid #b4163b;
}

@media (max-width: 900px) {
    .wrp-overview {
        grid-template-columns: 1fr;
    }

    .wrp-categories {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px 12px;
        padding-bottom: 14px;
        border-bottom: 1px solid #ddd;
    }

    .wrp-categories a {
        padding: 4px 0;
    }

    .wrp-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 650px) {
    .wrp-grid,
    .wrp-related-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .wrp-card-image {
        min-height: 170px;
    }

    .wrp-card-image img {
        height: 155px;
    }

    .wrp-viewer iframe {
        height: 520px;
    }
}

@media (max-width: 400px) {
    .wrp-grid,
    .wrp-related-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.2.0: Prospektseite ohne Sidebar, aber innerhalb der vorhandenen Theme-Breite */
body.wrp-fullwidth-page main#primary.content-layout {
    display: block !important;
}

body.wrp-fullwidth-page main#primary.content-layout > aside#secondary.site-sidebar {
    display: none !important;
}

body.wrp-fullwidth-page main#primary.content-layout > section.content-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
}


/* v0.2.1: Die originale .wrap-Breite und Zentrierung des Themes beibehalten. */
body.wrp-fullwidth-page main#primary.wrap {
    margin-left: auto !important;
    margin-right: auto !important;
}
