/* Portal-Paketkarten: Karten einer Reihe teilen sich die Zeilen (subgrid), damit Titel, Preis und jede Zeile auf einer Höhe stehen */
.bb-portal-pakete {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
/* A single package gets one centered column as wide as a package card block */
.bb-portal-pakete:has(> .bb-portal-karte:only-child) {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}
.bb-portal-pakete:has(> .bb-portal-karte:only-child) > .bb-portal-karte {
    border-color: var(--bb-primary, #b92121);
    box-shadow: 0 18px 44px rgba(185, 33, 33, 0.12);
}
.bb-portal-karte {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    row-gap: 0.9rem;
    padding: 1.75rem;
    background-color: var(--bb-white, #ffffff);
    border: 1px solid var(--bb-border, #e7e5e2);
    border-radius: 10px;
    transition: box-shadow 0.3s, transform 0.3s;
}
.bb-portal-karte:hover {
    box-shadow: 0 18px 44px rgba(27, 30, 35, 0.08);
    transform: translateY(-2px);
}
.bb-portal-karte h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--bb-heading, #1b1e23);
}
.bb-portal-preis {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--bb-heading, #1b1e23);
}
.bb-portal-preis span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--bb-muted, #7b818a);
}
.bb-portal-zeilen {
    display: flex;
    flex-direction: column;
}
.bb-portal-zeile {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--bb-border, #e7e5e2);
}
.bb-portal-zeile:last-child {
    border-bottom: 0;
}
.bb-portal-zeile > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}
.bb-portal-zeile > span:last-child {
    font-weight: 600;
    max-width: 55%;
    text-align: right;
    color: var(--bb-heading, #1b1e23);
}
/* The provisioning label stays whole, the time wraps instead */
.bb-portal-bereitstellung > span:first-child {
    flex-shrink: 0;
}
.bb-portal-bereich .bb-portal-zeile > span:last-child {
    max-width: none;
    white-space: nowrap;
}
.bb-portal-zeile small {
    display: block;
    font-size: 0.82rem;
    color: var(--bb-muted, #7b818a);
}
.bb-portal-bestellen {
    align-self: end;
    display: flex;
    justify-content: center;
    min-height: 44px;
    align-items: center;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    color: var(--bb-primary, #b92121);
    text-decoration: none;
    border: 1px solid var(--bb-primary, #b92121);
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.bb-portal-bestellen:hover {
    background-color: var(--bb-primary, #b92121);
    color: #ffffff;
}
/* Portal-Add-ons: ein Kasten je Bereich */
.bb-portal-addons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
}
.bb-portal-bereich {
    padding: 1.75rem;
    background-color: var(--bb-white, #ffffff);
    border: 1px solid var(--bb-border, #e7e5e2);
    border-radius: 10px;
}
.bb-portal-bereich h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}
.bb-portal-hinweis {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: var(--bb-muted, #7b818a);
}
.bb-portal-gruppe {
    margin: 0.9rem 0 0;
    font-size: 0.92rem;
}
.bb-portal-gruppe span {
    color: var(--bb-muted, #7b818a);
}
@media (max-width: 1024px) {
    .bb-portal-pakete {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .bb-portal-pakete,
    .bb-portal-addons {
        grid-template-columns: minmax(0, 1fr);
    }
}
