/* Branchenköpfe CSS */

/* Gesamtbereich */
.bk-section {
    margin: 40px 0;
    font-family: inherit;
}

/* Kopfzeile: Linie oben + Navigation */
.bk-header {
    padding-top: 14px;
    padding-bottom: 14px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #000;
}

.bk-label {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    background: var(--theme-palette-color-2);
    color: #000;
}

/* Navigation Styles */
.bk-header-right {
    flex: 1;
    text-align: right;
}

.bk-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bk-tabs li {
    display: inline-block;
    margin-left: 18px;
}

.bk-tabs li:first-child {
    margin-left: 0;
}

.bk-tabs a {
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #555;
}

.bk-tabs li.active a,
.bk-tabs a:hover {
    color: #000;
}

/* Mobile Dropdown */
.bk-mobile-dropdown {
    display: none;
}

.bk-category-select {
    width: 100%;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.bk-category-select:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Posts Container */
.bk-posts-container {
    transition: opacity 0.3s ease;
}

/* Obere drei großen Artikel */
.bk-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 36px;
}

.bk-item-large {
    display: flex;
    flex-direction: column;
}

.bk-thumb-link {
    display: block;
    margin-bottom: 14px;
    position: relative;
}

.bk-thumb {
    width: 100%;
    padding-top: 65%; /* Seitenverhältnis 16:10 / ähnlich */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Category Badges wie bei car-tiles */
.bk-category-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bk-category-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    background: var(--theme-palette-color-2);
    color: #000;
    border: none;
    letter-spacing: 0.5px;
    display: inline-block;
}

.bk-title-large {
    font-size: 1.35rem; /* größer als unten */
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 700;
    /* Titel auf max. 2 Zeilen begrenzen */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.35rem * 1.3 * 2); /* Reserviert Platz für 2 Zeilen */
}

.bk-title-large a {
    text-decoration: none;
    color: inherit;
}

.bk-title-large a:hover {
    text-decoration: underline;
}

.bk-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    /* Exakt 3 Zeilen für Vorschau */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(0.95rem * 1.6 * 3); /* Fixe Höhe für 3 Zeilen */
}

/* Unterer Sechserblock */
.bk-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 30px;
}

.bk-item-small {
    display: flex;
    align-items: flex-start;
}

.bk-thumb-link-small {
    display: block;
    flex: 0 0 40%;
    margin-right: 12px;
    position: relative;
}

.bk-thumb-small {
    width: 100%;
    padding-top: 65%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bk-category-badges--small {
    top: 8px;
    left: 8px;
}

.bk-category-badges--small .bk-category-badge {
    padding: 3px 8px;
    font-size: 10px;
}

.bk-small-content {
    flex: 1;
}

.bk-title-small {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
    /* Titel auf max. 3 Zeilen begrenzen */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-title-small a {
    text-decoration: none;
    color: inherit;
}

.bk-title-small a:hover {
    text-decoration: underline;
}

/* Responsive Anpassungen */

/* iPad Pro und größere Tablets (Landscape) */
@media (max-width: 1200px) {
    .bk-top-grid {
        gap: 24px;
    }

    .bk-bottom-grid {
        gap: 20px 24px;
    }

    .bk-title-large {
        font-size: 1.25rem;
    }

    .bk-excerpt {
        font-size: 0.9rem;
    }

    .bk-tabs li {
        margin-left: 14px;
    }

    .bk-tabs a {
        font-size: 12px;
    }
}

/* Tablets und kleinere Desktops */
@media (max-width: 1024px) {
    .bk-top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .bk-bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
    }

    .bk-title-large {
        font-size: 1.2rem;
    }

    .bk-title-small {
        font-size: 0.95rem;
    }
}

/* iPad und kleinere Tablets (Portrait) */
@media (max-width: 820px) {
    .bk-section {
        margin: 30px 0;
    }

    .bk-header {
        margin-bottom: 20px;
        gap: 16px;
    }

    .bk-top-grid {
        margin-bottom: 30px;
    }

    .bk-thumb-link-small {
        flex: 0 0 45%;
    }

    .bk-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .bk-tabs li {
        margin-left: 0;
    }
}

/* Mobile Landscape und kleine Tablets */
@media (max-width: 768px) {
    .bk-header {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 12px;
    }

    .bk-label {
        font-size: 12px;
        padding: 5px 12px;
    }

    .bk-header-right {
        text-align: left;
        width: 100%;
    }

    .bk-tabs-desktop {
        display: none;
    }

    .bk-mobile-dropdown {
        display: block;
        width: 100%;
    }

    .bk-category-select {
        font-size: 12px;
        padding: 8px 28px 8px 10px;
    }

    .bk-top-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }

    .bk-bottom-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bk-title-large {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .bk-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .bk-item-small {
        align-items: flex-start;
    }

    .bk-thumb-link-small {
        flex: 0 0 35%;
        margin-right: 14px;
    }

    .bk-title-small {
        font-size: 1rem;
        -webkit-line-clamp: 4;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .bk-section {
        margin: 20px 0;
    }

    .bk-header {
        margin-bottom: 16px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .bk-label {
        font-size: 11px;
        padding: 4px 10px;
    }

    .bk-category-select {
        font-size: 11px;
        padding: 7px 26px 7px 9px;
        background-position: right 10px center;
        background-size: 10px;
    }

    .bk-top-grid {
        gap: 16px;
        margin-bottom: 20px;
    }

    .bk-bottom-grid {
        gap: 16px;
    }

    .bk-thumb {
        padding-top: 60%;
    }

    .bk-category-badges {
        top: 12px;
        left: 12px;
        gap: 4px;
    }

    .bk-category-badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    .bk-title-large {
        font-size: 1.15rem;
        margin-bottom: 8px;
        min-height: calc(1.15rem * 1.3 * 2);
    }

    .bk-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        height: calc(0.85rem * 1.5 * 2);
    }

    .bk-thumb-link-small {
        flex: 0 0 40%;
        margin-right: 12px;
    }

    .bk-thumb-small {
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
    }

    .bk-category-badges--small {
        top: 6px;
        left: 6px;
    }

    .bk-category-badges--small .bk-category-badge {
        padding: 2px 6px;
        font-size: 9px;
    }

    .bk-title-small {
        font-size: 0.9rem;
        line-height: 1.35;
    }
}

/* Extra kleine Mobile-Geräte */
@media (max-width: 360px) {

    .bk-title-large {
        font-size: 1.1rem;
    }

    .bk-title-small {
        font-size: 0.95rem;
    }
}

