/* ========================================================
   WDB Infos – Accordion Mechanik
======================================================== */

.wdb-info-list  {
    background: #1F1F1F;
    border-radius: 10px;
    padding: 40px;
}

@media (max-width: 768px) {
    .wdb-info-list {
        padding: 20px;
    }
}

.wdb-info-item {
    margin-bottom: 20px;
}

.wdb-info-category .wdb-info-list .wdb-info-item:first-child .wdb-info-acc-titel {
    border-top: none;
}

/* ── Titel (klickbar) ──
   Eigenes transition Property (wir "besitzen" den Titel nicht von Elementor) */
.wdb-info-acc-titel {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    border-bottom: 1px solid #636363;
    transition: border-color 0.2s ease;
}

.wdb-info-item.is-open .wdb-info-acc-titel {
    border-bottom-color: transparent;
}

/* ── Inhalt (animiert) ──
   WICHTIG:
   1. Elementor gibt dem Container `.e-con` padding (meist 0 0 20px) und
      eine eigene transition (background/border/box-shadow/transform).
   2. Padding wird mit-animiert, damit das Element wirklich auf 0px kommt
      (sonst bleibt es bei ~20px padding-bottom stecken).
   3. Border-Width (nicht nur Farbe!) wird mit-animiert, damit am Ende
      der Animation keine 1px stehen bleiben → kein sichtbarer "Nach-oben-
      Rutsch" wenn display:none schaltet.
   4. box-sizing: border-box damit padding+border in die Höhenberechnung
      einfließen. */
.wdb-info-acc-inhalt {
    display: none;
    overflow: hidden;
    box-sizing: border-box;
    /* Im zugeklappten Zustand: kein Padding, kein Border → echte 0px */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 solid #636363;
}

/* Im geöffneten Zustand: Padding + Border zurück */
.wdb-info-item.is-open .wdb-info-acc-inhalt {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
    border-bottom-width: 1px;
}

/* Animations-Klasse: height + padding + border gemeinsam animieren */
.wdb-info-acc-inhalt.wdb-animating {
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                padding-top 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                padding-bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-bottom-width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wdb-info-acc-inhalt ul {
    padding-left: 25px;
    list-style: disc;
}

/* ── Pfeil ── */
.wdb-icon-arrow {
    display: block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform: rotate(0deg);
}

.wdb-info-item.is-open .wdb-icon-arrow {
    transform: rotate(90deg);
}

/* ── Kategorie ── */
.wdb-info-cat-title {
    margin-bottom: 50px;
    color: var(--e-global-color-accent);
    padding-left: 40px;
}

.wdb-info-category {
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .wdb-info-cat-title {
        padding: 0px;
        margin-bottom: 30px;
    }
    .wdb-info-category {
        margin-bottom: 40px;
    }
}


/* ========================================================
   WDB Infos – Filter (Suchfeld + Kategorie-Checkboxen)
======================================================== */

/* ── Versteckte Items/Kategorien (durch Filter) ── */
.wdb-info-item.is-hidden,
.wdb-info-category.is-hidden,
.wdb-infos-filter-item.is-hidden {
    display: none !important;
}

/* ── Wrapper ── */
.wdb-infos-filter-wrap {
    font-family: "Neue Haas Unica W1G", "Helvetica Neue", Helvetica, sans-serif;
}

/* ── Desktop: Sticky Sidebar ── */
.wdb-infos-filter-sidebar {
    position: sticky;
    top: 20px;
    display: block;
}

/* Mobil-Bar im Desktop ausblenden */
.wdb-infos-filter-mobile-bar {
    display: none;
}

@media (max-width: 1024px) {
    .wdb-infos-filter-sidebar    { display: none; }
    .wdb-infos-filter-mobile-bar { display: block; position: relative; margin-bottom: 24px; }

}

/* ── Suchfeld ── */
.wdb-infos-filter-search-wrap {
    margin-bottom: 30px;
}

.wdb-infos-filter-search {
    width: 90%;
    height: 60px;
    padding: 0 24px;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 400;
    color: #1F1F1F;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.wdb-infos-filter-search::placeholder {
    color: #9a9a9a;
    font-weight: 400;
}

.wdb-infos-filter-search:focus {
    box-shadow: 0 0 0 2px #AB9962;
}

/* Suchfeld auf Mobil (im Dropdown) etwas kleiner */
.wdb-infos-filter-dropdown .wdb-infos-filter-search {
    height: 50px;
    font-size: 1.6rem;
}

/* ── Checkbox-Liste ── */
.wdb-infos-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wdb-infos-filter-item {
    margin-bottom: 12px;
}

.wdb-infos-filter-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Native Checkbox visuell verstecken, aber tastaturbedienbar lassen */
.wdb-infos-filter-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Eigene Box (Gold-Rand) */
.wdb-infos-filter-box {
    width: 26px;
    height: 26px;
    border: 2px solid #AB9962;
    border-radius: 4px;
    flex-shrink: 0;
    background: transparent;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
}

/* Checked: gefüllt mit Gold + weißer Haken */
.wdb-infos-filter-checkbox:checked + .wdb-infos-filter-box {
    background: #AB9962;
}

.wdb-infos-filter-checkbox:checked + .wdb-infos-filter-box::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 2px;
    width: 7px;
    height: 13px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Fokus-Ring für Tastatur-Navigation */
.wdb-infos-filter-checkbox:focus-visible + .wdb-infos-filter-box {
    outline: 2px solid #AB9962;
    outline-offset: 3px;
}

/* Kategorie-Name */
.wdb-infos-filter-name {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    transition: color 0.15s ease;
}

.wdb-infos-filter-checkbox:checked ~ .wdb-infos-filter-name,
.wdb-infos-filter-label:hover .wdb-infos-filter-name {
    color: #AB9962;
}

/* "Keine Ergebnisse" im Filter */
.wdb-infos-filter-no-results {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 1.4rem;
    margin: 12px 0 0;
}


/* ========================================================
   MOBIL – Button + Dropdown (analog Tickets)
======================================================== */

.wdb-infos-filter-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    padding: 0 8px 0 24px;
    background: #4E4E4E;
    border: 1px solid #707070;
    border-radius: 50px;
    cursor: pointer;
    gap: 12px;
    font-family: inherit;
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, border-radius 0.2s ease;
}

.wdb-infos-filter-mobile-btn.is-open {
    border-color: #707070;
    border-radius: 25px 25px 0 0;
    border-bottom-color: transparent;
}

.wdb-infos-filter-mobile-label {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: center;
    transition: color 0.2s ease;
}

.wdb-infos-filter-mobile-btn.is-active .wdb-infos-filter-mobile-label {
    color: #AB9962;
}

.wdb-infos-filter-mobile-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.wdb-infos-filter-mobile-btn.is-open .wdb-infos-filter-mobile-icon {
    background: #AB9962;
}

.wdb-infos-filter-mobile-icon img {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Dropdown Panel */
.wdb-infos-filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #707070;
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 20px 24px;
    z-index: 999;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.wdb-infos-filter-dropdown.is-open {
    display: block;
    animation: wdb-infos-dropdown-in 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wdb-infos-dropdown-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wdb-infos-filter-dropdown .wdb-infos-filter-name {
    font-size: 1.8rem;
}
