
/*
 * Quellennachweis
 */
.landingpage-message-box--quellennachweis {
    background: #f7f7f7;
    border-color: #a8a8a8;
}

.landingpage-message-box--quellennachweis
.landingpage-message-box__title {
    color: #444444;
}

.landingpage-message-box--quellennachweis
.landingpage-message-box__content {
    color: #333333;
}

.landingpage-list-column {
    position: sticky;
    top: 1rem;
    align-self: flex-start;

    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.landingpage-error-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
}

.landingpage-error-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.landingpage-error-table th {
    width: 50%;
    padding: 12px;
    color: #ffffff;
    text-align: left;
}

.landingpage-error-table th:first-child {
    background: #d9534f;
}

.landingpage-error-table th:last-child {
    background: #4caf50;
}

.landingpage-error-table td {
    padding: 12px;
    vertical-align: top;
}

.landingpage-error-table td:first-child {
    background: #fdecec;
}

.landingpage-error-table td:last-child {
    background: #f8fbf5;
}

.landingpage-error-table tbody tr:not(:last-child)
td:first-child {
    border-bottom: 1px solid #efc2c2;
}

.landingpage-error-table tbody tr:not(:last-child)
td:last-child {
    border-bottom: 1px solid #d9e7cf;
}

.landingpage-flex-table-wrapper {
    width: 100%;
    margin: 25px 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.landingpage-flex-table {
    width: 100%;
    min-width: 700px;

    /*
     * Bei sticky Tabellenzellen ist separate meist
     * zuverlässiger als border-collapse: collapse.
     */
    border-collapse: separate;
    border-spacing: 0;

    background: #ffffff;
}

.landingpage-flex-table thead tr {
    background: #4caf50;
    color: #ffffff;
}

.landingpage-flex-table th {
    padding: 12px;
    font-weight: 700;
    vertical-align: middle;
    border-bottom: 1px solid #3f9143;
}

.landingpage-flex-table td {
    padding: 12px;
    border-bottom: 1px solid #d9e7cf;
    vertical-align: top;
}

.landingpage-flex-table tbody tr:nth-child(odd) td {
    background: #f8fbf5;
}

.landingpage-flex-table tbody tr:nth-child(even) td {
    background: #ffffff;
}

.landingpage-flex-table tbody tr:last-child td {
    border-bottom: 0;
}

.landingpage-flex-table tbody td:first-child {
    font-weight: 700;
}

.landingpage-flex-table .text-left {
    text-align: left;
}

.landingpage-flex-table .text-center {
    text-align: center;
}

.landingpage-flex-table .text-right {
    text-align: right;
}

.landingpage-table-rating {
    color: #e6b800;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .landingpage-flex-table-wrapper {
        position: relative;
        overflow-x: auto;
    }

    .landingpage-flex-table {
        min-width: 700px;
    }

    /*
     * Erste Spalte beim horizontalen Scrollen fixieren.
     */
    .landingpage-flex-table th:first-child,
    .landingpage-flex-table td:first-child {
        position: sticky;
        left: 0;
        min-width: 150px;
        max-width: 200px;

        /*
         * Verhindert, dass der Inhalt der anderen
         * Spalten unter der fixierten Zelle sichtbar wird.
         */
        background-clip: padding-box;

        /*
         * Optische Trennung zur scrollbareren Tabellenhälfte.
         */
        box-shadow: 4px 0 6px -5px rgba(0, 0, 0, 0.45);
    }

    /*
     * Kopfzelle muss über den normalen Tabellenzellen liegen.
     */
    .landingpage-flex-table thead th:first-child {
        z-index: 3;
        background: #4caf50;
        color: #ffffff;
    }

    /*
     * Hintergrund der fixierten ersten Spalte
     * entsprechend der jeweiligen Tabellenzeile.
     */
    .landingpage-flex-table tbody tr:nth-child(odd)
    td:first-child {
        z-index: 2;
        background: #f8fbf5;
    }

    .landingpage-flex-table tbody tr:nth-child(even)
    td:first-child {
        z-index: 2;
        background: #ffffff;
    }

    /*
     * Etwas kompaktere Darstellung auf Smartphones.
     */
    .landingpage-flex-table th,
    .landingpage-flex-table td {
        padding: 10px;
    }
}

.landingpage-flex-table-scroll-hint {
    display: none;
}

@media (max-width: 767.98px) {
    .landingpage-flex-table-scroll-hint {
        display: block;
        margin-bottom: 6px;
        color: #6c757d;
        font-size: 0.875rem;
        text-align: right;
    }
}



.landingpage-message-box {
    padding: 15px;
    margin: 25px 0;

    color: #000000;
    line-height: 1.6;

    border: 1px solid transparent;
    border-left-width: 6px;
}

.landingpage-message-box__title {
    margin: 0 0 10px;
    color: #000000;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.landingpage-message-box__content {
    color: #000000;
}

.landingpage-message-box__content > :first-child {
    margin-top: 0;
}

.landingpage-message-box__content > :last-child {
    margin-bottom: 0;
}

/*
 * Tipp
 */
.landingpage-message-box--tipp {
    background: #f8fbf5;
    border-color: #4caf50;
}

/*
 * Hinweis
 */
.landingpage-message-box--hinweis {
    background: #eef6fc;
    border-color: #2196f3;
}

/*
 * Warnung
 */
.landingpage-message-box--warnung {
    background: #fff8e1;
    border-color: #f0ad4e;
}

.landingpage-content h1,
.landingpage-content h2,
.landingpage-content h3,
.landingpage-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.65em;

    color: #212529;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.25;

    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.landingpage-content h1 {
    font-size: 2.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.landingpage-content h2 {
    font-size: 1.85rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.landingpage-content h3 {
    font-size: 1.5rem;
    line-height: 1.25;
}

.landingpage-content h4 {
    font-size: 1.25rem;
    line-height: 1.3;
}

/*
 * Erste Überschrift innerhalb eines Inhaltselements
 * benötigt keinen großen Abstand nach oben.
 */
.landingpage-content > h1:first-child,
.landingpage-content > h2:first-child,
.landingpage-content > h3:first-child,
.landingpage-content > h4:first-child {
    margin-top: 0;
}

/*
 * Der folgende Text soll näher an der Überschrift stehen.
 */
.landingpage-content h1 + p,
.landingpage-content h2 + p,
.landingpage-content h3 + p,
.landingpage-content h4 + p {
    margin-top: 0;
}

/*
 * Kleinere Darstellung auf Smartphones.
 */
@media (max-width: 767.98px) {
    .landingpage-content h1 {
        font-size: 1.85rem;
    }

    .landingpage-content h2 {
        font-size: 1.55rem;
    }

    .landingpage-content h3 {
        font-size: 1.3rem;
    }

    .landingpage-content h4 {
        font-size: 1.15rem;
    }
}


/*
 * Normales Inhaltsverzeichnis innerhalb der Landingpage.
 */
.landingpage-toc {
    margin: 25px 0;
    padding: 20px 22px;

    color: #000000;
    background: #e6ecdc;

    border: 0;
    border-left: 6px solid #4caf50;
}


/*
 * Fixierte Kopie rechts neben dem Landingpage-Inhalt.
 */
.landingpage-floating-toc {
    position: fixed;
    z-index: 1020;

    display: none;

    overflow-x: hidden;
    overflow-y: auto;

    background: transparent;
}

.landingpage-floating-toc.is-visible {
    display: block;
}


/*
 * Das geklonte Inhaltsverzeichnis übernimmt die
 * Gestaltung des normalen Inhaltsverzeichnisses.
 *
 * Außenabstand wird entfernt, da die Position bereits
 * durch den fixierten Container festgelegt wird.
 */
.landingpage-floating-toc .landingpage-toc {
    margin: 0;
    padding: 20px 22px;

    color: #000000;
    background: #e6ecdc;

    border: 0;
    border-left: 6px solid #4caf50;

    box-shadow:
            0 0.5rem 1rem
            rgba(0, 0, 0, 0.12);
}


/*
 * Überschrift des Inhaltsverzeichnisses.
 */
.landingpage-toc__title {
    margin-bottom: 12px;

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;

    color: #000000;
}


/*
 * Liste.
 */
.landingpage-toc__list {
    margin: 0;
    padding-left: 22px;
}
.landingpage-toc__item {
    display: flex;
    align-items: flex-start;

    margin-bottom: 7px;

    line-height: 1.4;
}

.landingpage-toc__item:last-child {
    margin-bottom: 0;
}

.landingpage-toc__number {
    flex: 0 0 auto;

    min-width: 2.25rem;
    margin-right: 0.35rem;

    color: #000000;
    font-weight: 600;
}

.landingpage-toc__link {
    flex: 1 1 auto;

    min-width: 0;

    color: #000000;
    text-decoration: none;

    overflow-wrap: anywhere;
}

.landingpage-toc__item--depth-1 {
    margin-left: 0;
}

.landingpage-toc__item--depth-2 {
    margin-left: 16px;
}

.landingpage-toc__item--depth-3 {
    margin-left: 32px;
}

.landingpage-toc__item--depth-4 {
    margin-left: 48px;
}

/*
 * Fixierte Variante etwas kompakter darstellen.
 */
.landingpage-floating-toc .landingpage-toc__title {
    font-size: 1rem;
}

.landingpage-floating-toc .landingpage-toc__list {
    padding-left: 18px;
}

.landingpage-floating-toc .landingpage-toc__item {
    margin-bottom: 6px;
}

.landingpage-floating-toc .landingpage-toc__link {
    display: block;

    font-size: 0.875rem;
    line-height: 1.35;
}


/*
 * Fixiertes Inhaltsverzeichnis nur auf ausreichend
 * großen Bildschirmen erlauben.
 *
 * Der Wert muss mit der Media Query im JavaScript
 * übereinstimmen.
 */
@media (max-width: 1499.98px) {
    .landingpage-floating-toc {
        display: none !important;
    }
}



/*
 * Back-to-top-Button.
 */
.landingpage-back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1030;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 3rem;
    height: 3rem;
    padding: 0;

    font-size: 1.5rem;
    line-height: 1;

    color: #ffffff;
    background: #007bff;

    border: 0;
    border-radius: 50%;

    box-shadow:
            0 0.25rem 0.75rem
            rgba(0, 0, 0, 0.25);

    opacity: 0;
    visibility: hidden;

    transform: translateY(1rem);

    transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease,
            background-color 0.2s ease;
}

.landingpage-back-to-top:hover,
.landingpage-back-to-top:focus {
    color: #ffffff;
    background: #0069d9;
    outline: 0;
}

.landingpage-back-to-top:focus {
    box-shadow:
            0 0 0 0.2rem
            rgba(0, 123, 255, 0.35);
}

.landingpage-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/*
 * Auf kleinen Geräten etwas kompakter.
 */
@media (max-width: 575.98px) {
    .landingpage-back-to-top {
        right: 1rem;
        bottom: 1rem;

        width: 2.75rem;
        height: 2.75rem;
    }
}


/*
 * Bewegungsreduktion aus den
 * Betriebssystemeinstellungen beachten.
 */
@media (prefers-reduced-motion: reduce) {
    .landingpage-back-to-top {
        transition: none;
    }
}

.landingpage-toc__list--unnumbered {
    margin: 0;
    padding-left: 0;

    list-style: none;
}

.landingpage-toc__list--unnumbered
.landingpage-toc__item::marker {
    content: "";
}

.landingpage-toc__list--numbered {
    margin: 0;
    padding-left: 0;

    list-style: none;
}


.landingpage-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;

    margin: 1.5rem 0;
    padding: 1.25rem;

    color: #212529;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 6px solid #4caf50;
    border-radius: .25rem;
}

.landingpage-author__media {
    flex: 0 0 112px;
}

.landingpage-author__image,
.landingpage-author__placeholder {
    display: block;
    width: 112px;
    height: 112px;
    border-radius: 50%;
}

.landingpage-author__image {
    object-fit: cover;
    object-position: center;
}

.landingpage-author__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2.5rem;
    color: #6c757d;
    background: #e9ecef;
}

.landingpage-author__content {
    flex: 1 1 auto;
    min-width: 0;
}

.landingpage-author__label {
    margin-bottom: .2rem;
    color: #6c757d;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.landingpage-author__name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.landingpage-author__function {
    margin-top: .15rem;
    color: #495057;
    font-weight: 600;
}

.landingpage-author__description {
    margin-top: .75rem;
    line-height: 1.55;
}

@media (max-width: 575.98px) {
    .landingpage-author {
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .landingpage-author__media {
        flex-basis: 72px;
    }

    .landingpage-author__image,
    .landingpage-author__placeholder {
        width: 72px;
        height: 72px;
    }

    .landingpage-author__placeholder {
        font-size: 1.75rem;
    }
}




/* Infothek-Uebersicht - Bootstrap 4.6, responsive/mobile-first Ergänzungen */

.infothek-page {
    max-width: 1180px;
    width: 100%;
    overflow-x: hidden;
}

.infothek-page__title {
    color: #4caf50;
    font-size: 2rem;
    line-height: 1.2;
}

.infothek-banner {
    overflow: hidden;
}

.infothek-banner__image {
    display: block;
    width: 100%;
    min-height: 92px;
    object-fit: cover;
}

.infothek-intro {
    max-width: 980px;
    line-height: 1.65;
    color: #495057;
    overflow-wrap: anywhere;
}

.infothek-main-topic {
    border-bottom: 1px solid #e5e5e5;
}

.infothek-main-topic:last-child {
    border-bottom: 0;
}

.infothek-main-topic__title {
    position: relative;
    padding-bottom: .65rem;
    font-size: 1.75rem;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.infothek-main-topic__title::after {
    content: '';
    display: block;
    width: 84px;
    height: 3px;
    margin: .65rem auto 0;
    background: #4caf50;
}

.infothek-main-topic__media {
    min-height: 260px;
    overflow: hidden;
}

.infothek-main-topic__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 380px;
    object-fit: cover;
}

.infothek-main-topic__text {
    min-width: 0;
    padding: .25rem 0;
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.infothek-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    color: #6c757d;
    background: #f3f4f2;
    border: 1px solid #e0e3dd;
}

.infothek-image-placeholder--main {
    min-height: 260px;
    height: 100%;
}

.infothek-subtopic {
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid #dee2e6;
}

.infothek-subtopic__title {
    padding: .8rem 1rem;
    color: #fff;
    background: #4caf50;
    font-size: 1.1rem;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

.infothek-subtopic__media {
    overflow: hidden;
    background: #f8f9fa;
}

.infothek-subtopic__image,
.infothek-image-placeholder--subtopic {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.infothek-subtopic__action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1rem;
    border-top: 1px solid #e9ecef;
}

.infothek-subtopic__content-link {
    display: block;
    color: inherit;
}

.infothek-subtopic__content-link:hover .infothek-subtopic__open-link,
.infothek-subtopic__content-link:focus .infothek-subtopic__open-link {
    color: #285d2b;
    text-decoration: underline;
}

.infothek-subtopic__content-link:hover .infothek-subtopic__image,
.infothek-subtopic__content-link:focus .infothek-subtopic__image {
    opacity: .94;
}

.infothek-subtopic__open-link {
    color: #397d3d;
    overflow-wrap: anywhere;
}

.infothek-single-article {
    min-width: 0;
    padding: 1rem 1.1rem;
    background: #fafafa;
    border-left: 4px solid #4caf50;
    overflow-wrap: anywhere;
}

.infothek-single-article__title {
    display: inline-block;
    max-width: 100%;
    color: #343a40;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.infothek-single-article__title:hover,
.infothek-single-article__title:focus {
    color: #397d3d;
    text-decoration: underline;
}

.infothek-single-article__text {
    color: #6c757d;
    font-size: .925rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Tablet: Hauptbild und Beschreibung bereits untereinander, Karten zweispaltig. */
@media (max-width: 991.98px) {
    .infothek-main-topic__media,
    .infothek-main-topic__image,
    .infothek-image-placeholder--main {
        min-height: 0;
    }

    .infothek-main-topic__image {
        height: auto;
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    .infothek-image-placeholder--main {
        aspect-ratio: 16 / 9;
    }

    .infothek-main-topic__text {
        height: auto !important;
        padding: 1rem 1.1rem;
        background: #f8f9fa;
        border: 1px solid #edf0eb;
    }
}

/* Smartphone. */
@media (max-width: 767.98px) {
    .infothek-page__title {
        font-size: 1.75rem;
    }

    .infothek-banner__image {
        min-height: 72px;
        height: 72px;
        object-fit: cover;
    }

    .infothek-intro {
        font-size: .975rem;
        line-height: 1.6;
        text-align: left !important;
    }

    .infothek-main-topic__title {
        font-size: 1.45rem;
        margin-bottom: 1rem !important;
    }

    .infothek-main-topic__title::after {
        width: 64px;
        margin-top: .55rem;
    }

    .infothek-main-topic__text {
        padding: .9rem 1rem;
        font-size: .975rem;
        line-height: 1.6;
    }

    .infothek-subtopic__title {
        padding: .75rem .85rem;
        font-size: 1.05rem;
    }

    .infothek-subtopic__image,
    .infothek-image-placeholder--subtopic {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .infothek-subtopic__action {
        min-height: 48px;
        padding: .7rem .85rem;
    }

    .infothek-single-article {
        padding: .9rem 1rem;
    }
}

/* Kleine Smartphones: weniger Außenraum, trotzdem ausreichend große Touch-Ziele. */
@media (max-width: 575.98px) {
    .infothek-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .infothek-page > header {
        margin-bottom: 2rem !important;
    }

    .infothek-banner {
        margin-left: -12px;
        margin-right: -12px;
    }

    .infothek-banner__image {
        height: 64px;
        min-height: 64px;
    }

    .infothek-main-topic {
        margin-bottom: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .infothek-main-topic__title {
        font-size: 1.3rem;
    }

    .infothek-main-topic__text {
        padding: .85rem .9rem;
    }

    .infothek-subtopic__title {
        font-size: 1rem;
    }

    .infothek-single-article__title {
        font-size: 1rem;
    }

    .infothek-single-article__text {
        font-size: .9rem;
    }
}

