/* Reise Inhaltsverzeichnis */
.reise-toc {
    --reise-toc-blue: #063b5b;
    --reise-toc-dark: #072b43;
    --reise-toc-yellow: #f2c300;
    --reise-toc-cream: #fff8dd;
    --reise-toc-border: #e4e7eb;
    margin: 26px 0 32px;
    padding: 16px;
    border: 1px solid #ecdfae;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf0, #fff 78%);
    box-shadow: 0 10px 28px rgba(7, 43, 67, .07);
    color: #2c3137;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.reise-toc *,
.reise-toc *::before,
.reise-toc *::after {
    box-sizing: border-box;
}

.reise-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reise-toc__heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
}

.reise-toc__title {
    color: var(--reise-toc-dark);
    font-size: 16px;
    font-weight: 800;
}

.reise-toc__icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 7px;
    border-radius: 9px;
    background: var(--reise-toc-cream);
    border: 1px solid #ecdfae;
}

.reise-toc__icon span {
    display: block;
    height: 2px;
    border-radius: 10px;
    background: var(--reise-toc-blue);
}

.reise-toc__main-toggle,
.reise-toc__group-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 1px solid var(--reise-toc-border);
    color: var(--reise-toc-dark);
    background: #fff;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

.reise-toc__main-toggle:hover,
.reise-toc__main-toggle:focus,
.reise-toc__group-toggle:hover,
.reise-toc__group-toggle:focus {
    color: var(--reise-toc-dark);
    background: var(--reise-toc-cream);
    transform: none;
}

.reise-toc__main-toggle:focus-visible,
.reise-toc__group-toggle:focus-visible,
.reise-toc a:focus-visible {
    outline: 3px solid var(--reise-toc-yellow);
    outline-offset: 2px;
}

.reise-toc__main-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 10px;
}

.reise-toc__group-toggle {
    width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 8px;
}

.reise-toc__main-toggle span,
.reise-toc__group-toggle span {
    position: relative;
    display: block;
    width: 10px;
    height: 10px;
}

.reise-toc__main-toggle span::before,
.reise-toc__main-toggle span::after,
.reise-toc__group-toggle span::before,
.reise-toc__group-toggle span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

.reise-toc__main-toggle span::after,
.reise-toc__group-toggle span::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.reise-toc__main-toggle[aria-expanded="true"] span::after,
.reise-toc__group-toggle[aria-expanded="true"] span::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.reise-toc__body {
    margin-top: 14px;
}

.reise-toc__body[hidden],
.reise-toc__sublist[hidden] {
    display: none !important;
}

.reise-toc ol.reise-toc__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-inline-start: 0 !important;
}

.reise-toc ol.reise-toc__sublist {
    list-style: none !important;
    width: calc(100% - 18px);
    margin: 7px 0 3px 18px !important;
    padding: 8px 10px 8px 13px !important;
    padding-inline-start: 13px !important;
}

.reise-toc .reise-toc__list > li,
.reise-toc .reise-toc__sublist > li {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.reise-toc .reise-toc__list > li::marker,
.reise-toc .reise-toc__sublist > li::marker {
    content: "" !important;
    font-size: 0 !important;
}

/* Manche Themes erzeugen Listennummern zusätzlich per ::before. */
.reise-toc .reise-toc__list > li::before,
.reise-toc .reise-toc__sublist > li::before {
    content: none !important;
    display: none !important;
}

.reise-toc__group + .reise-toc__group {
    margin-top: 8px;
}

.reise-toc__row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px 12px;
    border: 1px solid var(--reise-toc-border);
    border-radius: 11px;
    background: #fff;
}

.reise-toc__link {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    color: var(--reise-toc-dark);
    text-decoration: none;
    text-underline-offset: .16em;
}

.reise-toc__link:hover,
.reise-toc__link:focus {
    color: var(--reise-toc-blue);
    text-decoration: underline;
}

.reise-toc__link--main {
    font-weight: 700;
}

.reise-toc__number {
    min-width: 28px;
    flex: 0 0 auto;
    color: #8a7100;
    font-weight: 800;
}

.reise-toc__sublist {
    border-left: 3px solid var(--reise-toc-yellow);
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, .72);
}

.reise-toc__sublist li + li {
    margin-top: 3px;
}

.reise-toc__link--sub {
    padding: 5px 4px;
    font-size: 14px;
}

.entry-content h2[id],
.entry-content h3[id] {
    scroll-margin-top: 24px;
}

@media (max-width: 680px) {
    .reise-toc {
        margin: 22px 0 28px;
        padding: 13px;
        border-radius: 14px;
        font-size: 14px;
    }

    .reise-toc__title {
        font-size: 15px;
    }

    .reise-toc__row {
        padding-left: 10px;
    }

    .reise-toc__number {
        min-width: 25px;
    }

    .reise-toc__sublist {
        margin-left: 12px;
        padding-left: 10px;
    }

    .reise-toc__link--sub {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reise-toc *,
    .reise-toc *::before,
    .reise-toc *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
