/* Themen-Akkordeon */

.wp-block-rcb-theme-themenakkordeon {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-rcb-theme-themenakkordeon .themenakkordeon__heading {
    text-align: center;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
}

/* Checkboxen verstecken */
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__toggle,
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item-toggle {
    display: none;
}

/* Akkordeon-Rahmen */
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__accordion {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Haupt-Header (Toggle-Label) */
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid #f0ebe5;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.wp-block-rcb-theme-themenakkordeon .themenakkordeon__header::after {
    content: '';
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
     background: url('/wp-content/uploads/2026/05/home-icon-oeffnen-rcb.svg');
    border-radius: 50%;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.wp-block-rcb-theme-themenakkordeon .themenakkordeon__toggle:checked + .themenakkordeon__header::after {
    transform: rotate(180deg);
}

/* Items: eingeklappt */
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wp-block-rcb-theme-themenakkordeon .themenakkordeon__toggle:checked ~ .themenakkordeon__items {
    max-height: 5000px;
}

/* Einzelnes Item */
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item {
    border-bottom: 1px solid #f0ebe5;
}

.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item:last-child {
    border-bottom: none;
}

/* Item-Label (klickbarer Button) */
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    background: #fff;
    font-size: 1rem;
    color: #999;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item-label:hover {
    background: #fafaf9;
    color: #666;
}

.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item-label::after {
    content: '›';
    font-size: 2rem;
    color: #999;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4d0ca;
    border-radius: 50%;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

/* Item aktiv (aufgeklappt) */
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item-toggle:checked + .themenakkordeon__item-label {
    background: #f5f1ed;
    color: #333;
}

.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item-toggle:checked + .themenakkordeon__item-label::after {
    transform: rotate(90deg);
    background: #000;
    color: #fff;
}

/* Item-Inhalt: eingeklappt */
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    background: #f5f1ed;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item-toggle:checked ~ .themenakkordeon__item-content {
    max-height: 500px;
    padding: 20px 24px;
}

/* Link im aufgeklappten Bereich */
.wp-block-rcb-theme-themenakkordeon .themenakkordeon__item-link {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}
