/**
 * Wissensdatenbank – globale Styles
 */

/* --- Design-Tokens --- */
.wissensdatenbank {
    --mk-color-primary: #1c5f6b;
    --mk-color-text: #1c1c1c;
    --mk-color-text-muted: #777;
    --mk-color-border: #80abb5;
    --mk-color-surface: #f7fafb;
    --mk-color-results-bg: #f0f0f0;
    --mk-color-tooltip-bg: #1c1c1c;
    --mk-color-dropdown-bg: #245261;
    --mk-color-dropdown-text: rgba(255, 255, 255, 0.55);
    --mk-color-dropdown-text-active: #fff;
    --mk-radius-dropdown: 20px;
    --mk-radius-icon: 20px;
    --mk-radius-option: 20px;
    --mk-radius-box: 8px;
    --mk-gap: 12px;
    --mk-max-width: 100%;
    --mk-transition: 0.25s ease;
    --mk-transition-accordion: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Layout --- */
.wissensdatenbank {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--mk-color-text);
    box-sizing: border-box;
}

/* --- Icon-Filter --- */
.wissensdatenbank__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
    padding: 20px 0;
}

.wissensdatenbank__intro {
    font-weight: 700;
    color: var(--mk-color-primary);
    flex: 0 0 35%;
    width: 35%;
    max-width: 35%;
    min-width: 0;
    font-size: 25px;
    line-height: 30px;
    box-sizing: border-box;
}

.wissensdatenbank__icon-list {
    display: flex;
    gap: var(--mk-gap);
    flex-wrap: wrap;
    flex: 0 1 auto;
    width: auto;
    max-width: 65%;
    min-width: 0;
    justify-content: flex-end;
    margin-left: auto;
    box-sizing: border-box;
}

.wissensdatenbank__icon-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: var(--mk-radius-icon);
    border: 2px solid var(--mk-color-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--mk-transition), border-color var(--mk-transition);
}

.wissensdatenbank__icon-btn:hover,
.wissensdatenbank__icon-btn--active {
    background: var(--mk-color-primary);
    border-color: var(--mk-color-primary);
}

.wissensdatenbank__icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter var(--mk-transition);
}

.wissensdatenbank__icon-btn:hover .wissensdatenbank__icon-img,
.wissensdatenbank__icon-btn--active .wissensdatenbank__icon-img {
    filter: brightness(0) invert(1);
}

.wissensdatenbank__icon-fallback {
    font-size: 20px;
    color: var(--mk-color-primary);
}

.wissensdatenbank__icon-btn--all {
    margin-right: 20px;
}

.wissensdatenbank__icon-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #318DA1;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 2;
}

.wissensdatenbank__icon-btn:hover .wissensdatenbank__icon-tooltip {
    opacity: 1;
}

/* --- Filter-Akkordeon ---
 *
 * Filter-Varianten (gelten auch fuer Dropdowns):
 * Variante 1 (--filled):  blauer Hintergrund, weisse Schrift
 * Variante 2 (--outline): weisser Hintergrund, blauer Rahmen
 * Zuweisung per style in den Filter-Defs (MK_FILTER_STYLE_FILLED / MK_FILTER_STYLE_OUTLINE).
 */
.wissensdatenbank__filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 20px 0;
}

.wissensdatenbank__filter {
    width: 100%;
    overflow: hidden;
    transition: border-color 0.3s ease, background-color var(--mk-transition);
}

/* Variante 2: Outline (weiss, blauer Rahmen – z. B. Lernpfad) */
.wissensdatenbank__filter--outline {
    border: 1px solid var(--mk-color-border);
    border-radius: var(--mk-radius-box);
    background: #fff;
}

.wissensdatenbank__filter--outline.wissensdatenbank__filter--open {
    border-color: var(--mk-color-primary);
}

.wissensdatenbank__filter--outline .wissensdatenbank__filter-header {
    background: #fff;
}

.wissensdatenbank__filter--outline.wissensdatenbank__filter--open .wissensdatenbank__filter-header {
    background: var(--mk-color-surface);
}

.wissensdatenbank__filter--outline .wissensdatenbank__filter-title {
    font-weight: 600;
    color: var(--mk-color-text);
}

.wissensdatenbank__filter--outline .wissensdatenbank__filter-value {
    font-size: 13px;
    color: var(--mk-color-primary);
    font-weight: 600;
}

.wissensdatenbank__filter--outline .wissensdatenbank__options,
.wissensdatenbank__filter--outline .wissensdatenbank__filter-actions {
    background: var(--mk-color-surface);
}

/* Variante 1: Filled (blauer Hintergrund) */
.wissensdatenbank__filter--filled {
    border: none;
    border-radius: var(--mk-radius-dropdown);
    background: var(--mk-color-dropdown-bg);
    color: var(--mk-color-dropdown-text-active);
}

.wissensdatenbank__filter--filled .wissensdatenbank__filter-header {
    background: transparent;
    padding: 20px 24px;
}

.wissensdatenbank__filter--filled .wissensdatenbank__filter-title {
    font-weight: 400;
    color: var(--mk-color-dropdown-text-active);
}

.wissensdatenbank__filter--filled.wissensdatenbank__filter--has-value .wissensdatenbank__filter-title,
.wissensdatenbank__filter--filled.wissensdatenbank__filter--open .wissensdatenbank__filter-title {
    font-weight: 600;
}

.wissensdatenbank__filter--filled .wissensdatenbank__filter-value {
    font-size: 15px;
    color: var(--mk-color-dropdown-text-active);
    font-weight: 600;
}

.wissensdatenbank__filter--filled .wissensdatenbank__filter-arrow img {
    filter: brightness(0) invert(1);
}

.wissensdatenbank__filter--filled .wissensdatenbank__options {
    padding: 0 24px 8px;
    background: transparent;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
}

.wissensdatenbank__filter--filled .wissensdatenbank__option {
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 4px 0;
    font-size: 15px;
    color: var(--mk-color-dropdown-text);
}

.wissensdatenbank__filter--filled .wissensdatenbank__option:hover,
.wissensdatenbank__filter--filled .wissensdatenbank__option--selected {
    background: transparent;
    color: var(--mk-color-dropdown-text-active);
    font-weight: 600;
}

.wissensdatenbank__filter--filled .wissensdatenbank__filter-actions {
    padding: 0 24px 20px;
    background: transparent;
}

.wissensdatenbank__filter--filled .wissensdatenbank__filter-reset {
    color: var(--mk-color-dropdown-text-active);
    opacity: 0.75;
}

.wissensdatenbank__filter--filled .wissensdatenbank__filter-reset:hover {
    color: var(--mk-color-dropdown-text-active);
    opacity: 1;
}

.wissensdatenbank__filter--filled .wissensdatenbank__empty-hint {
    color: var(--mk-color-dropdown-text);
    padding: 0 24px 20px;
}

.wissensdatenbank__filter-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color var(--mk-transition);
}

.wissensdatenbank__filter-title {
    flex: 1;
}

.wissensdatenbank__filter-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    transition: transform var(--mk-transition-accordion);
}

.wissensdatenbank__filter-arrow img {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px;
    max-height: 12px;
    object-fit: contain;
    display: block;
}

.wissensdatenbank__filter--open .wissensdatenbank__filter-arrow {
    transform: rotate(180deg);
}

.wissensdatenbank__filter-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--mk-transition-accordion);
}

.wissensdatenbank__filter--open .wissensdatenbank__filter-panel {
    grid-template-rows: 1fr;
}

.wissensdatenbank__filter-panel-inner {
    overflow: hidden;
    min-height: 0;
}

.wissensdatenbank__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px 8px;
}

.wissensdatenbank__option {
    border: 1px solid var(--mk-color-border);
    background: #fff;
    border-radius: var(--mk-radius-option);
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color var(--mk-transition), border-color var(--mk-transition), color var(--mk-transition);
    text-align: left;
    font-family: inherit;
}

.wissensdatenbank__option--has-desc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wissensdatenbank__option-label {
    display: block;
}

.wissensdatenbank__option-hint {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.wissensdatenbank__option:hover {
    border-color: var(--mk-color-primary);
}

.wissensdatenbank__option--selected {
    background: var(--mk-color-primary);
    border-color: var(--mk-color-primary);
    color: #fff;
}

.wissensdatenbank__option--selected .wissensdatenbank__option-hint {
    color: rgba(255, 255, 255, 0.85);
}

.wissensdatenbank__filter-actions {
    padding: 0 20px 16px;
}

.wissensdatenbank__filter-reset {
    border: none;
    background: transparent;
    color: var(--mk-color-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    font-family: inherit;
}

.wissensdatenbank__filter-reset:hover {
    color: var(--mk-color-text);
}

.wissensdatenbank__filter-reset[hidden] {
    display: none;
}

.wissensdatenbank__empty-hint {
    margin: 0;
    font-size: 13px;
    color: var(--mk-color-text-muted);
    font-style: italic;
}

/* --- Dropdown (global, z. B. Downloadcenter) --- */
.wissensdatenbank__filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    margin: 20px 0 0;
}

.wissensdatenbank__filter-row + .wissensdatenbank__filter-toolbar,
.wissensdatenbank__filters + .wissensdatenbank__filter-toolbar {
    margin-top: 12px;
}

.wissensdatenbank__filter-toolbar + .wissensdatenbank__selection-summary {
    margin-top: 12px;
}

.wissensdatenbank__dropdown-field {
    flex: 1 1 calc(50% - 8px);
    min-width: 200px;
}

/* Ungerade Anzahl: letzter Filter volle Breite */
.wissensdatenbank__filter-row .wissensdatenbank__dropdown-field:last-child:nth-child(odd) {
    flex-basis: 100%;
}

.wissensdatenbank__dropdown {
    width: 100%;
    border-radius: var(--mk-radius-dropdown);
    overflow: hidden;
    transition: border-color var(--mk-transition), background-color var(--mk-transition);
}

/* Variante 1: Filled (blauer Hintergrund – z. B. Downloadcenter) */
.wissensdatenbank__dropdown--filled {
    background: var(--mk-color-dropdown-bg);
    color: var(--mk-color-dropdown-text-active);
}

.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-title {
    color: var(--mk-color-dropdown-text-active);
}

.wissensdatenbank__dropdown--filled.wissensdatenbank__dropdown--has-value .wissensdatenbank__dropdown-title,
.wissensdatenbank__dropdown--filled.wissensdatenbank__dropdown--open .wissensdatenbank__dropdown-title {
    font-weight: 600;
}

.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-value {
    font-size: 15px;
    color: var(--mk-color-dropdown-text-active);
    font-weight: 600;
}

.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-arrow img {
    filter: brightness(0) invert(1);
}

.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-option {
    color: var(--mk-color-dropdown-text);
}

.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-option:hover,
.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-option--selected {
    color: var(--mk-color-dropdown-text-active);
}

.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-empty {
    color: var(--mk-color-dropdown-text);
}

/* Variante 2: Outline (weiss, blauer Rahmen) */
.wissensdatenbank__dropdown--outline {
    background: #fff;
    border: 1px solid var(--mk-color-primary);
    color: var(--mk-color-text);
}

.wissensdatenbank__dropdown--outline.wissensdatenbank__dropdown--open {
    border-color: var(--mk-color-primary);
}

.wissensdatenbank__dropdown--outline .wissensdatenbank__dropdown-title {
    color: var(--mk-color-text);
    font-weight: 600;
}

.wissensdatenbank__dropdown--outline .wissensdatenbank__dropdown-value {
    font-size: 13px;
    color: var(--mk-color-primary);
    font-weight: 600;
}

.wissensdatenbank__dropdown--outline .wissensdatenbank__dropdown-option {
    color: var(--mk-color-text-muted);
}

.wissensdatenbank__dropdown--outline .wissensdatenbank__dropdown-option:hover,
.wissensdatenbank__dropdown--outline .wissensdatenbank__dropdown-option--selected {
    color: var(--mk-color-primary);
}

.wissensdatenbank__dropdown--outline .wissensdatenbank__dropdown-empty {
    color: var(--mk-color-text-muted);
}

.wissensdatenbank__dropdown-top {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
}

.wissensdatenbank__dropdown-header {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
}

.wissensdatenbank__dropdown-selection {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 55%;
    padding: 0;
}

.wissensdatenbank__dropdown-selection[hidden] {
    display: none;
}

.wissensdatenbank__dropdown-clear {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--mk-color-primary);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.wissensdatenbank__dropdown-clear:hover {
    background: var(--mk-color-dropdown-bg, #245261);
}

.wissensdatenbank__dropdown-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.wissensdatenbank__dropdown-title {
    font-size: 15px;
    font-weight: 400;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wissensdatenbank__dropdown-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-color-primary);
}

.wissensdatenbank__dropdown--has-value .wissensdatenbank__dropdown-title {
    font-weight: 600;
}

.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-clear {
    background: rgba(255, 255, 255, 0.95);
    color: var(--mk-color-primary);
}

.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-clear:hover {
    background: #fff;
}

.wissensdatenbank__dropdown--filled .wissensdatenbank__dropdown-value {
    color: var(--mk-color-dropdown-text-active);
}

.wissensdatenbank__dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    transition: transform var(--mk-transition-accordion);
}

.wissensdatenbank__dropdown-arrow img {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px;
    max-height: 12px;
    object-fit: contain;
    display: block;
}

.wissensdatenbank__dropdown--open .wissensdatenbank__dropdown-arrow {
    transform: rotate(180deg);
}

.wissensdatenbank__dropdown-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--mk-transition-accordion);
}

.wissensdatenbank__dropdown--open .wissensdatenbank__dropdown-panel {
    grid-template-rows: 1fr;
}

.wissensdatenbank__dropdown-panel-inner {
    overflow: hidden;
    min-height: 0;
}

.wissensdatenbank__dropdown-list {
    list-style: none;
    margin: 15px 0 0;
    padding: 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wissensdatenbank__dropdown-option {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    padding: 4px 0;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: color var(--mk-transition), font-weight var(--mk-transition);
}

.wissensdatenbank__dropdown-option:hover,
.wissensdatenbank__dropdown-option--selected {
    font-weight: 600;
}

.wissensdatenbank__dropdown-empty {
    margin: 0;
    padding: 0 24px 20px;
    font-size: 14px;
    font-style: italic;
}

/* --- Ausgewaehltes Handlungsfeld --- */
.wissensdatenbank__selection-summary {
    padding: 20px;
    background: var(--mk-color-surface);
    border-radius: var(--mk-radius-box);
    margin-bottom: 0;
}

.wissensdatenbank__selection-summary[hidden] {
    display: none !important;
}

.wissensdatenbank__selection-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wissensdatenbank__selection-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.wissensdatenbank__selection-item-main {
    flex: 0 0 calc(50% - 20px);
    width: calc(50% - 20px);
    max-width: calc(50% - 20px);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    box-sizing: border-box;
}

.wissensdatenbank__selection-item-intro {
    flex: 0 0 calc(50% - 20px);
    width: calc(50% - 20px);
    max-width: calc(50% - 20px);
    min-width: 0;
    box-sizing: border-box;
}

.wissensdatenbank__selection-item-intro-anim {
    overflow: hidden;
    /* Höhe wird per JS gesetzt (Auf- und Zuklappen); max-height allein reicht für Collapse nicht. */
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wissensdatenbank__selection-item-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wissensdatenbank__selection-item-icon img {
    width: 32px;
    height: 32px;
    border-radius: var(--mk-radius-icon);
    object-fit: contain;
}

.wissensdatenbank__selection-item-text {
    min-width: 0;
}

.wissensdatenbank__selection-item-name {
    display: block;
    color: var(--mk-color-primary);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.wissensdatenbank__selection-item-desc {
    margin: 4px 0 0;
    font-size: 14px;
    color: #444;
}

.wissensdatenbank__selection-item-intro-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #444;
}

.wissensdatenbank__selection-item-intro-ellipsis {
    margin-left: 0;
}

.wissensdatenbank__selection-item-weiterlesen {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    margin: 0 0 0 0.25em;
    font: inherit;
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    color: inherit;
    cursor: pointer;
}

.wissensdatenbank__selection-item-weiterlesen:hover {
    opacity: .85;
}

.wissensdatenbank__filter-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 12px 0 30px;
    box-sizing: border-box;
}

.wissensdatenbank__reset-all {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mk-color-primary);
    text-decoration: underline;
    cursor: pointer;
    box-shadow: none;
    border-radius: 0;
    transition: opacity 0.2s ease;
}

.wissensdatenbank__reset-all:hover,
.wissensdatenbank__reset-all:focus {
    color: var(--mk-color-primary);
    opacity: 0.85;
    text-decoration: underline;
    background: none;
}

.wissensdatenbank__reset-all-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--mk-color-primary);
}

.wissensdatenbank__reset-all-svg {
    display: block;
    width: 14px;
    height: 14px;
}

.wissensdatenbank__reset-all-label {
    text-decoration: underline;
}

.wissensdatenbank__map-filter-reset {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
}

.wissensdatenbank__map-filters .wissensdatenbank__reset-all {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .wissensdatenbank__selection-item {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }
    .wissensdatenbank__selection-item-main,
    .wissensdatenbank__selection-item-intro {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

/* --- Ergebnisse / Lernpfad --- */
.wissensdatenbank__results {
    margin-top: 40px;
}

.wissensdatenbank__results-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    min-height: 0;
}

/* Lernpfad: hellblauer Results-Hintergrund wie Mockup */
.wissensdatenbank--lernpfad .wissensdatenbank__results-content {
    background: #e8f2f5;
    border: 1px solid #d4e4e9;
    border-radius: 4px;
    padding: 48px 40px;
    box-sizing: border-box;
}

.wissensdatenbank__placeholder {
    text-align: center;
    color: var(--mk-color-text-muted);
    margin: 0;
}

.wissensdatenbank__placeholder--empty {
    padding: 40px 16px;
    font-size: 16px;
    line-height: 1.45;
    color: var(--mk-color-primary);
}

/* --- Pagination (Mehr laden / Seiten) --- */
.wissensdatenbank__pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wissensdatenbank__pagination[hidden] {
    display: none !important;
}

.wissensdatenbank__load-more {
    appearance: none;
    border: 1px solid var(--mk-color-primary, #1c5f6b);
    background: var(--mk-color-primary, #1c5f6b);
    color: #fff;
    font: inherit;
    font-size: 15px;
    padding: 12px 28px;
    cursor: pointer;
    border-radius: 2px;
    transition: opacity .15s ease, background-color .15s ease;
}

.wissensdatenbank__load-more:hover {
    opacity: .92;
}

.wissensdatenbank__load-more:disabled,
.wissensdatenbank__load-more.is-loading {
    opacity: .55;
    cursor: wait;
}

.wissensdatenbank__pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wissensdatenbank__page-btn {
    appearance: none;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #c3c4c7;
    background: #fff;
    color: #1d2327;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
}

.wissensdatenbank__page-btn:hover {
    border-color: var(--mk-color-primary, #1c5f6b);
    color: var(--mk-color-primary, #1c5f6b);
}

.wissensdatenbank__page-btn--active {
    background: var(--mk-color-primary, #1c5f6b);
    border-color: var(--mk-color-primary, #1c5f6b);
    color: #fff;
    cursor: default;
}

/* --- Dynamic Icons (Global Block / Loop Shortcodes) --- */
.tk-taxonomy-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tk-taxonomy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.tk-taxonomy-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* --- Loading (reine CSS-Animation, GPU-freundlich) --- */
.wissensdatenbank__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    min-height: 72px;
}

.wissensdatenbank__loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(28, 95, 107, 0.18);
    border-top-color: var(--mk-color-primary);
    border-radius: 50%;
    animation: mk-loading-spin 0.75s linear infinite;
}

@keyframes mk-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wissensdatenbank__loading-spinner {
        animation-duration: 1.5s;
    }
}

.wissensdatenbank__phases {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.wissensdatenbank__phases-header {
    text-align: center;
    margin: 0 0 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.wissensdatenbank__phases-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--mk-color-primary, #245261);
}

.wissensdatenbank__phases-intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mk-color-primary, #245261);
}

.wissensdatenbank__phase {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    margin: 0;
    padding: 56px 0;
    border-bottom: 1px solid var(--mk-color-border, #c5d5da);
}

.wissensdatenbank__phase:first-of-type {
    padding-top: 8px;
}

.wissensdatenbank__phase:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}

.wissensdatenbank__phase-label {
    margin: 0;
    padding: 0;
    flex: none;
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: var(--mk-color-primary, #245261);
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wissensdatenbank__phase-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.wissensdatenbank__phase-cards {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wissensdatenbank__phase-main > .mk-dlc-results.wissensdatenbank__phase-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.wissensdatenbank__phase-pagination {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.wissensdatenbank__phase-load-more {
    border-radius: 8px;
    padding: 12px 32px;
    min-width: 160px;
}

@media (max-width: 1199px) {
    .wissensdatenbank__phase-main > .mk-dlc-results.wissensdatenbank__phase-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wissensdatenbank__phases-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .wissensdatenbank--lernpfad .wissensdatenbank__results-content {
        padding: 28px 16px;
    }

    .wissensdatenbank__phase {
        gap: 20px;
        padding: 40px 0;
    }

    .wissensdatenbank__phases-header {
        margin-bottom: 24px;
    }

    .wissensdatenbank__phases-title {
        font-size: 22px;
    }

    .wissensdatenbank__phase-label {
        font-size: 14px;
    }

    .wissensdatenbank__phase-main > .mk-dlc-results.wissensdatenbank__phase-cards,
    .wissensdatenbank__phase-cards {
        grid-template-columns: 1fr;
    }
}

/* Native Downloadcenter-Cards (GB-Nachbau — Typo/Farbe wie Breakdance-GB) */
.mk-dlc-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    padding: 20px 15px;
    border: 1px solid var(
        --bde-palette-borderblue-3d0c24c1-d678-4917-980a-5197f76a469e-11,
        var(--mk-color-border, #80abb5)
    );
    border-radius: 20px;
    text-decoration: none;
    color: #00576a;
    background: transparent;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.mk-dlc-card:hover,
.mk-dlc-card:focus-visible {
    border-color: var(
        --bde-palette-brand-turquoise-41ce6780-fd71-4cf8-a481-bcdf054f4d6c-2,
        #41ce67
    );
    color: #00576a;
    text-decoration: none;
}

/* Hervorgehobenes Lernelement — nur Lernpfad: blauer BG, weißer Text, weißes Icon */
.mk-dlc-card--hervorgehoben {
    background: #00576a;
    border-color: #00576a;
    color: #fff;
}

.mk-dlc-card--hervorgehoben .mk-dlc-card__label,
.mk-dlc-card--hervorgehoben .mk-dlc-card__title {
    color: #fff;
}

.mk-dlc-card--hervorgehoben .mk-dlc-card__icon svg,
.mk-dlc-card--hervorgehoben .mk-dlc-card__icon svg path {
    stroke: #fff;
}

.mk-dlc-card--hervorgehoben:hover,
.mk-dlc-card--hervorgehoben:focus-visible {
    background: #00576a;
    border-color: #00576a;
    color: #fff;
}

.mk-dlc-card__icon {
    flex: 0 0 20%;
    max-width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-dlc-card__icon svg {
    display: block;
    width: 40px;
    height: 40px;
}

.mk-dlc-card__body {
    flex: 1 1 80%;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.mk-dlc-card__label {
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    color: #000000;
}

.mk-dlc-card__title {
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
    color: #000000;
}

.mk-dlc-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.mk-dlc-results--list {
    grid-template-columns: 1fr;
}

@media (max-width: 1199px) {
    .mk-dlc-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mk-dlc-results {
        grid-template-columns: 1fr;
    }
}

.wissensdatenbank__card {
    background: #fff;
    border-radius: var(--mk-radius-box);
    padding: 16px;
    display: flex;
    gap: 12px;
}

.wissensdatenbank__card-icon {
    color: #c0392b;
    font-size: 11px;
    font-weight: 700;
    flex: 0 0 40px;
}

.wissensdatenbank__card-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.wissensdatenbank__card-excerpt {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.wissensdatenbank__breakdance-item {
    min-width: 0;
}

.wissensdatenbank--expertinnen .wissensdatenbank__breakdance-item {
    height: 100%;
}

.wissensdatenbank--expertinnen .wissensdatenbank__breakdance-item > .breakdance,
.wissensdatenbank--expertinnen .wissensdatenbank__breakdance-item > [class*="bde-"] {
    height: 100%;
}

/* --- Homepage: 2×50% + 3. Filter 100%, dann CTA --- */
.wissensdatenbank--homepage {
    max-width: none;
}

.wissensdatenbank--homepage .wissensdatenbank__filter-row {
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

.wissensdatenbank--homepage .wissensdatenbank__dropdown-field {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
}

/* Dritter (oder letzter ungerader) Filter volle Breite */
.wissensdatenbank--homepage .wissensdatenbank__filter-row .wissensdatenbank__dropdown-field:last-child:nth-child(odd) {
    flex-basis: 100%;
}

.wissensdatenbank__cta {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.wissensdatenbank__cta-btn {
    appearance: none;
    border: none;
    background: var(--mk-color-dropdown-bg, #245261);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--mk-radius-dropdown, 20px);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.wissensdatenbank__cta-btn:hover {
    opacity: 0.92;
}

.wissensdatenbank__cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .wissensdatenbank--homepage .wissensdatenbank__dropdown-field {
        flex: 1 1 100%;
    }

    .wissensdatenbank__cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Netzwerk: Karte + Listenansicht --- */
.wissensdatenbank--netzwerk .wissensdatenbank__selection-summary {
    margin-bottom: 0;
}

.wissensdatenbank__map-shell {
    position: relative;
    margin-top: 40px;
}

.wissensdatenbank__map-toolbar {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.wissensdatenbank__view-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--mk-color-border);
    border-radius: var(--mk-radius-box);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(28, 95, 107, 0.08);
}

.wissensdatenbank__view-btn {
    border: none;
    background: #fff;
    color: var(--mk-color-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color var(--mk-transition), color var(--mk-transition);
}

.wissensdatenbank__view-btn + .wissensdatenbank__view-btn {
    border-left: 1px solid var(--mk-color-border);
}

.wissensdatenbank__view-btn--active {
    background: var(--mk-color-primary);
    color: #fff;
}

.wissensdatenbank__map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.wissensdatenbank__map-filter-field {
    flex: 1 1 calc(50% - 5px);
    min-width: 200px;
    max-width: none;
    position: relative;
    /* Nur Platz für den geschlossenen Zustand; geöffnetes Dropdown liegt darüber */
    min-height: calc(24px + 18px + 2px);
}

.wissensdatenbank__map-filters .wissensdatenbank__map-filter-field:last-child:nth-child(odd) {
    flex-basis: 100%;
}

/* Ganzes Dropdown absolut → Border/Accordion/overflow bleiben wie bisher */
.wissensdatenbank__map-filter-field .wissensdatenbank__dropdown {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

.wissensdatenbank__map-filter-field .wissensdatenbank__dropdown--open {
    z-index: 60;
}

.wissensdatenbank__map-filter-field .wissensdatenbank__dropdown-top {
    padding: 12px 16px;
    gap: 8px;
}

.wissensdatenbank__map-filter-field .wissensdatenbank__dropdown-title {
    font-size: 13px;
}

.wissensdatenbank__map-filter-field .wissensdatenbank__dropdown-selection {
    max-width: 58%;
}

.wissensdatenbank__map-filter-field .wissensdatenbank__dropdown-value {
    font-size: 13px;
}

.wissensdatenbank__map-filter-field .wissensdatenbank__dropdown-list {
    margin-top: 8px;
    padding: 0 16px 14px;
}

.wissensdatenbank__map-stage {
    position: relative;
    z-index: 1;
    border-radius: var(--mk-radius-box);
    overflow: hidden;
    border: none;
    background: var(--mk-color-surface);
    box-shadow: 0 2px 16px rgba(28, 95, 107, 0.08);
}

.wissensdatenbank__map-view,
.wissensdatenbank__list-view {
    min-height: 520px;
}

.wissensdatenbank__map-view[hidden],
.wissensdatenbank__list-view[hidden] {
    display: none !important;
}

.wissensdatenbank__list-view {
    max-height: 520px;
    overflow-y: auto;
    padding: 28px;
    background: #f4f8f9;
}

.wissensdatenbank__netzwerk-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wissensdatenbank__netzwerk-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 1px 2px rgba(28, 95, 107, 0.06);
}

.wissensdatenbank__netzwerk-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wissensdatenbank__netzwerk-item-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--mk-color-primary);
    line-height: 1.3;
}

.wissensdatenbank__netzwerk-item-excerpt,
.wissensdatenbank__netzwerk-item-address {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.wissensdatenbank__netzwerk-item-address {
    color: var(--mk-color-text-muted);
    font-style: normal;
}

.wissensdatenbank__netzwerk-item-meta {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--mk-color-primary);
    letter-spacing: 0.01em;
}

.wissensdatenbank__netzwerk-item-pin {
    flex: 0 0 28px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.wissensdatenbank__netzwerk-item-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--mk-color-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(28, 95, 107, 0.25);
}

.wissensdatenbank__leaflet {
    width: 100%;
    height: 520px;
    background: #e8f0f2;
    z-index: 1;
}

.wissensdatenbank__pin-wrap {
    background: transparent;
    border: none;
}

.wissensdatenbank__pin {
    position: relative;
    display: block;
    width: 80px;
    height: 80px;
}

.wissensdatenbank__pin-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: var(--mk-color-primary, #1c5f6b);
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px rgba(28, 95, 107, 0.28);
    z-index: 2;
}

.wissensdatenbank__pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: rgba(28, 95, 107, 0.45);
    z-index: 1;
    animation: mk-pin-pulse 1.8s ease-out infinite;
}

@keyframes mk-pin-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(2.8);
        opacity: 0;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Tooltip rechts vom Pin: Pfeil links oben (Position wird per JS am Pin ausgerichtet) */
.wissensdatenbank__map-popup-wrap--right.leaflet-popup {
    margin-bottom: 0 !important;
}

.wissensdatenbank__map-popup-wrap .leaflet-popup-content-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    padding: 0 !important;
    overflow: visible;
}

.wissensdatenbank__map-popup-wrap .leaflet-popup-content {
    margin: 0 !important;
    min-width: 200px;
    max-width: 280px;
    width: auto !important;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.4;
}

.wissensdatenbank__map-popup-wrap .leaflet-popup-content p {
    margin: 0;
}

.wissensdatenbank__map-popup-wrap--right .leaflet-popup-tip-container {
    width: 16px;
    height: 16px;
    margin: 0 !important;
    left: -8px !important;
    top: 18px !important;
    bottom: auto !important;
    overflow: visible;
    pointer-events: none;
}

.wissensdatenbank__map-popup-wrap--right .leaflet-popup-tip {
    width: 12px;
    height: 12px;
    margin: 2px 0 0 2px;
    padding: 0;
    background: #fff;
    box-shadow: none;
    transform: rotate(45deg);
}

.wissensdatenbank__map-popup {
    padding: 20px;
    min-width: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    color: var(--mk-color-text);
}

.wissensdatenbank__map-popup-title {
    display: block;
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.wissensdatenbank__map-popup-address {
    margin: 0 0 12px !important;
    font-size: 14px;
    font-weight: 400;
    color: #222;
}

.wissensdatenbank__map-popup-link {
    display: inline-block;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wissensdatenbank__map-popup-link:hover {
    color: var(--mk-color-primary, #1c5f6b);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .wissensdatenbank--homepage .wissensdatenbank__dropdown-field {
        flex: 1 1 100%;
    }

    .wissensdatenbank__map-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wissensdatenbank__map-filters {
        justify-content: flex-start;
    }

    .wissensdatenbank__map-filter-field {
        flex: 1 1 calc(50% - 5px);
        min-width: 200px;
        max-width: none;
    }

    .wissensdatenbank__map-filters .wissensdatenbank__map-filter-field:last-child:nth-child(odd) {
        flex-basis: 100%;
    }
}

@media (max-width: 700px) {
    .wissensdatenbank__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .wissensdatenbank__intro {
        flex: 0 0 35%;
        width: 35%;
        max-width: 35%;
        font-size: 18px;
        line-height: 24px;
    }

    .wissensdatenbank__icon-list {
        flex: 0 1 auto;
        width: auto;
        max-width: 65%;
        justify-content: flex-end;
        margin-left: auto;
    }

    .wissensdatenbank__phase {
        flex-direction: column;
    }

    .wissensdatenbank__phase-cards {
        grid-template-columns: 1fr;
    }

    .wissensdatenbank__map-filter-field {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: 1 1 100%;
    }

    .wissensdatenbank__leaflet,
    .wissensdatenbank__map-view,
    .wissensdatenbank__list-view {
        min-height: 420px;
    }

    .wissensdatenbank__leaflet {
        height: 420px;
    }
}

/* --- WDB FAQ (Shortcode; BD-Element nutzt elements/Faq/default.css) --- */
.wdb-faq.bde-wdb-faq {
  display: flex;
  text-align: left;
  flex-direction: column;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  --faqBorderColor: #80abb5;
  --faqBorderWidth: 1px;
  --faqItemHorizontalPadding: 16px;
  --faqItemVerticalPadding: 16px;
  --mk-transition-accordion: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --bde-transition-duration: 0.45s;
  gap: 20px;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

.wdb-faq.bde-wdb-faq *,
.wdb-faq.bde-wdb-faq *::before,
.wdb-faq.bde-wdb-faq *::after {
  box-sizing: border-box;
}

.wdb-faq.bde-wdb-faq .bde-faq__item {
  border-style: solid;
  border-color: var(--faqBorderColor);
  border-width: var(--faqBorderWidth);
  border-radius: 20px;
  overflow: hidden;
}

.wdb-faq.bde-wdb-faq .bde-faq__answer-content {
  padding: var(--faqItemVerticalPadding) var(--faqItemHorizontalPadding);
  padding-top: 0;
}

.wdb-faq.bde-wdb-faq .bde-faq__title-tag {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
  text-align: left;
}

.wdb-faq.bde-wdb-faq .bde-faq__icon > svg {
  font-size: inherit;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.wdb-faq.bde-wdb-faq .bde-faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 16px;
  transition: transform var(--mk-transition-accordion), color var(--mk-transition-accordion);
}

.wdb-faq.bde-wdb-faq .bde-faq__question {
  border: none;
  margin: 0;
  padding: var(--faqItemVerticalPadding) var(--faqItemHorizontalPadding);
  width: 100%;
  background: transparent;
  line-height: normal;
  -webkit-appearance: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
}

.wdb-faq.bde-wdb-faq .bde-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--mk-transition-accordion);
}

.wdb-faq.bde-wdb-faq .bde-faq__item.is-active .bde-faq__answer {
  grid-template-rows: 1fr;
}

.wdb-faq.bde-wdb-faq .bde-faq__answer-inner {
  overflow: hidden;
  min-height: 0;
}

.wdb-faq.bde-wdb-faq .bde-faq__answer-content {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.55;
}

/* Smooth wie Filter: ein Icon, 180° Rotation */
.wdb-faq.bde-wdb-faq .bde-faq__question[aria-expanded="true"] .bde-faq__icon--rotate,
.wdb-faq.bde-wdb-faq .bde-faq__item.is-active .bde-faq__icon--rotate {
  transform: rotate(180deg);
}

.wdb-faq.bde-wdb-faq .bde-faq__icon--inactive,
.wdb-faq.bde-wdb-faq .bde-faq__icon--active {
  display: none;
}

.wdb-faq.bde-wdb-faq .bde-faq__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Shortcode FAQ — responsive (kein BD Design-Panel) */
@media (max-width: 782px) {
  .wdb-faq.bde-wdb-faq {
    --faqItemHorizontalPadding: 14px;
    --faqItemVerticalPadding: 14px;
    gap: 16px;
  }

  .wdb-faq.bde-wdb-faq .bde-faq__item {
    border-radius: 16px;
  }

  .wdb-faq.bde-wdb-faq .bde-faq__title-tag,
  .wdb-faq.bde-wdb-faq .bde-faq__question {
    font-size: 1.0625rem;
  }

  .wdb-faq.bde-wdb-faq .bde-faq__question {
    gap: 12px;
  }

  .wdb-faq.bde-wdb-faq .bde-faq__answer-content {
    margin-top: 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .wdb-faq.bde-wdb-faq {
    --faqItemHorizontalPadding: 12px;
    --faqItemVerticalPadding: 12px;
    gap: 12px;
  }

  .wdb-faq.bde-wdb-faq .bde-faq__item {
    border-radius: 14px;
  }

  .wdb-faq.bde-wdb-faq .bde-faq__title-tag,
  .wdb-faq.bde-wdb-faq .bde-faq__question {
    font-size: 1rem;
    font-weight: 600;
  }

  .wdb-faq.bde-wdb-faq .bde-faq__icon {
    font-size: 14px;
  }

  .wdb-faq.bde-wdb-faq .bde-faq__answer-content {
    margin-top: 14px;
    font-size: 0.9375rem;
  }
}

/* --- WDB Kennzahlen / Faktenbox (Shortcode + BD-Element) --- */
.wdb-kennzahlen {
    --wdb-kz-title: clamp(1.5rem, 1.1rem + 1.8vw, 2.1875rem);   /* ~24–35px */
    --wdb-kz-label: clamp(0.9375rem, 0.8rem + 0.7vw, 1.375rem); /* ~15–22px */
    --wdb-kz-value: clamp(1.75rem, 1.1rem + 2.8vw, 3.125rem);   /* ~28–50px */
    --wdb-kz-divider: rgba(255, 255, 255, 0.35);

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    padding: clamp(0.875rem, 0.7rem + 0.8vw, 1.25rem);
    box-sizing: border-box;
    border-radius: 20px;
    background: #00576a;
    font-family: 'DM Sans', sans-serif;
    color: #fff;
}

.wdb-kennzahlen:last-child {
    margin-bottom: 0;
}

.wdb-kennzahlen__title {
    margin: 0;
    padding: 0;
    text-align: center;
    color: #efcc5c;
    font-size: var(--wdb-kz-title);
    font-weight: 600;
    line-height: 1.3;
}

.wdb-kennzahlen__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    width: 100%;
}

.wdb-kennzahlen__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(0.75rem, 0.5rem + 1vw, 1.5625rem);
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: clamp(8rem, 6rem + 6vw, 12.5rem);
    padding: clamp(0.875rem, 0.7rem + 0.6vw, 1.25rem) clamp(0.5rem, 0.35rem + 0.5vw, 0.75rem);
    box-sizing: border-box;
    border-right: 1px solid var(--wdb-kz-divider);
    text-align: center;
}

.wdb-kennzahlen__col:last-child {
    border-right: none;
}

.wdb-kennzahlen__label {
    margin: 0;
    color: #fff;
    font-size: var(--wdb-kz-label);
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wdb-kennzahlen__value {
    margin: 0;
    color: #fff;
    font-size: var(--wdb-kz-value);
    font-weight: 600;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wdb-kennzahlen__hf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(3.5rem, 3rem + 1.5vw, 4.6875rem);
}

.wdb-kennzahlen__hf-img {
    display: block;
    width: clamp(3.5rem, 3rem + 1.5vw, 4.6875rem);
    height: clamp(3.5rem, 3rem + 1.5vw, 4.6875rem);
    max-width: 100%;
    object-fit: contain;
}

.wdb-kennzahlen__hf-fallback {
    display: block;
    width: clamp(3.5rem, 3rem + 1.5vw, 4.6875rem);
    height: clamp(3.5rem, 3rem + 1.5vw, 4.6875rem);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
}

/* Tablet: 2 Spalten; bei 3 Spalten letzte Zelle volle Breite */
@media (max-width: 900px) {
    .wdb-kennzahlen__grid {
        flex-wrap: wrap;
    }

    .wdb-kennzahlen__col {
        flex: 1 1 50%;
        max-width: 50%;
        border-right: 1px solid var(--wdb-kz-divider);
        border-bottom: 1px solid var(--wdb-kz-divider);
    }

    .wdb-kennzahlen__col:nth-child(even) {
        border-right: none;
    }

    .wdb-kennzahlen__col:last-child {
        border-bottom: none;
    }

    .wdb-kennzahlen[data-cols="3"] .wdb-kennzahlen__col:last-child {
        flex-basis: 100%;
        max-width: 100%;
        border-right: none;
    }

    .wdb-kennzahlen[data-cols="1"] .wdb-kennzahlen__col {
        flex-basis: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: none;
    }
}

@media (max-width: 520px) {
    .wdb-kennzahlen {
        border-radius: 16px;
    }

    .wdb-kennzahlen__col {
        flex: 1 1 100%;
        max-width: 100%;
        min-height: 0;
        border-right: none;
        border-bottom: 1px solid var(--wdb-kz-divider);
    }

    .wdb-kennzahlen__col:last-child {
        border-bottom: none;
    }
}


