/*
 * Themen-Galerie - Frontend (Startseite)
 * Farben aus den --bk-*-Variablen des Templates, Fallbacks fuer den OPC-Editor.
 */
.bk-themen {
    margin: 40px 0;
    color: var(--bk-text, #3B3535);
}

.bk-themen-head {
    text-align: center;
    margin-bottom: 32px;
}

.bk-themen-title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bk-accent, #107C92);
}

/* Linien links und rechts der Ueberschrift, wie in der Vorlage */
.bk-themen-title--lines {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bk-themen-title--lines::before,
.bk-themen-title--lines::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--bk-primary, #CB5550);
    opacity: 0.6;
}

.bk-themen-title--lines > span {
    flex: 0 1 auto;
}

.bk-themen-subtitle {
    margin: 0;
    font-size: 16px;
    color: var(--bk-muted, #AEAAA8);
}

.bk-themen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.bk-themen--cols-2 .bk-themen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-themen--cols-4 .bk-themen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bk-themen-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--bk-border, #DFDDDC);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: inherit !important;
    text-decoration: none !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.bk-themen-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.bk-themen-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bk-surface, #F8F6F5);
}

.bk-themen-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Symbolkreis sitzt auf der unteren Bildkante */
.bk-themen-icon {
    position: absolute;
    left: 20px;
    bottom: -30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--bk-gold, #D4B896);
    color: var(--bk-gold, #D4B896);
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bk-themen-body {
    padding: 44px 22px 24px;
}

.bk-themen-card-title {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--bk-accent, #107C92);
}

.bk-themen-card-text {
    display: block;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .bk-themen .bk-themen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 767.98px) {
    .bk-themen { margin: 28px 0; }
    .bk-themen-title { font-size: 22px; }
    .bk-themen-title--lines { gap: 12px; }
    .bk-themen .bk-themen-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
