:root {
    --flexcheck-grey: #c6c6c6;
    --flexcheck-violet: #6c1c5b;
    --flexcheck-best-green-light: #40b93c;
    --flexcheck-best-green-dark: #266b3f;
    --flexcheck-blue: #00737e;
    --header-height: 125px;
    --footer-height: 70px;
    --sidebar-max-width: 500px;
    --sidebar-width: 25%;
}

body {
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    width: calc(100% - var(--sidebar-width));
    min-width: calc(100% - var(--sidebar-max-width));
}

.xcontainer-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: var(--sidebar-width);
    max-width: var(--sidebar-max-width);
    height: auto;
    background-color: var(--flexcheck-grey);
    padding: 1rem;
    overflow-y: auto;
    bottom: var(--footer-height);
}

@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    body {
        padding-right: 0;
    }
}

.content-section {
    margin-top: 1rem;
    margin-bottom: 2rem;
    text-align: justify;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    hyphens: auto;
}

/* .content-section figure {
    margin: 1rem;
    float: right;
} */
.content-section figure {
    width: 100%;
    max-width: 70%;
    height: auto;
}

@media (min-width: 992px) {
    .content-section figure {
        width: 40%;
        max-width: 400px;
        height: auto;
    }
}

.content-section h2 {
    text-align: left;
    font-weight: 600;
}

/* #scrollTopBtn {
    position: fixed;
    bottom: --var(--footer-height);
    right: 5px;
    display: none;
    z-index: 1040;
} */

#scrollTopBtn {
    position: fixed; /* bottom corner floating */
    bottom: 20px;
    right: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    background-color: #ffffff88;
    border: none;
    transition: opacity 0.5s ease, hover 0.5 ease;
    z-index: 1000;
    border-radius: 100px 0px 0px;
}

#scrollTopBtn:hover {
    color: #000;
    text-decoration: underline;
    opacity: 0.5;
    background-color: var(--flexcheck-grey);
}

@media (hover: hover) {
    #scrollTopBtn:hover {
        color: #000;
        text-decoration: underline;
        opacity: 0.5;
        background-color: var(--flexcheck-grey);
    }
}

.footer-links a {
    margin-right: 1rem;
    cursor: pointer;
}

footer {
    position: fixed;
    overflow-y: auto;
    z-index: 1000;
    bottom: 0;
    width: 100%;
    background-color: var(--flexcheck-grey);
}

.mobileDownload {
    background-color: var(--flexcheck-grey);
    overflow: hidden;
}

.mobileProjektinfos {
    background-color: var(--flexcheck-grey);
    overflow: hidden;
}

.modal figure figcaption {
    color: #333;
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

figure figcaption {
    text-align: center;
    color: var(--flexcheck-grey);
    font-style: italic;
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 0.5rem;
}

.sidebar .card-img-top,
.mobileProjektinfos .card-img-top {
    width: 90%;
    max-width: 150px;
    height: auto;
    max-height: fit-content;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.mobileDownload .card,
.sidebar .card,
.mobileProjektinfos .card {
    border: none;
    background-color: transparent;
}

.sidebar .card-text {
    margin: 0;
}

.mobileProjektinfos .card-text {
    margin: 0;
    text-align: center;
}

.mobileProjektinfos .card-title {
    text-align: center;
}

.sidebar .col,
.mobileProjektinfos .col {
    padding: 0px;
    font-size: 70%;
}

.card-img-top {
    max-width: 80%;
    max-height: 20%;
    align-self: center;
}

.btn-outline-flexcheck {
    outline-color: var(--flexcheck-violet);
    color: var(--flexcheck-violet);
    border-color: var(--flexcheck-violet);
}

.btn-outline-flexcheck:hover,
.btn-outline-flexcheck:active {
    outline-color: var(--flexcheck-violet);
    background-color: var(--flexcheck-violet);
    color: #fff;
    border-color: var(--flexcheck-violet);
}

.btn-flexcheck {
    outline-color: var(--flexcheck-best-green-light);
    border-color: var(--flexcheck-best-green-light);
    background-color: var(--flexcheck-best-green-light);
    color: #fff;
}

.btn-flexcheck:hover,
.btn-flexcheck:active {
    outline-color: var(--flexcheck-best-green-dark);
    border-color: var(--flexcheck-best-green-dark);
    background-color: var(--flexcheck-best-green-dark);
    color: #fff;
}

.img-download {
    max-width: 250px;
    width: 90%;
    border-style: solid;
    border-color: #fff;
    border-radius: 0% !important;
    aspect-ratio: unset !important;
}

.btn-leitfaden {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--flexcheck-violet);
    border-radius: 0.375rem;
    overflow: hidden;
    text-decoration: none;
    padding:0%;
    max-width: 250px;
}

.btn-leitfaden:hover,
.btn-leitfaden:active {
    outline-color: var(--flexcheck-violet);
    background-color: var(--flexcheck-violet);
    border-color: var(--flexcheck-violet);
}

.btn-leitfaden:hover .download-text,
.btn-leitfaden:active .download-text {
    color: #fff;
}

.download-icon {
    background-color: var(--flexcheck-violet);
    color: white;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-text {
    background-color: transparent;
    color: var(--flexcheck-violet);
    padding: 0.5rem 1rem;
    display: flex;
    align-items:center;
    justify-content:center;
    font-weight: 500;
    text-align: justify;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    hyphens: auto;
}
 .mobileDownload .img-download {
    display: none;
 }

 .mobileDownload .btn-leitfaden {
    padding: 0%;
    max-width: fit-content;
 }

 .mobileDownload .card-body {
    padding: 0%;
 }

.border-flexcheck {
    border-color: var(--flexcheck-violet);
}

.card-header {
    font-weight: 600;
}

.text-justify {
    text-align: justify;
}

a {
    color: var(--flexcheck-violet);
}

.title-logo {
    /* passt sich bis max‑width an, Höhe automatisch */
    width: 100%;
    min-width: 180px;
    max-width: 389px;
    height: auto;
}

.logos {
    height: clamp(40px, 8vw, 50px);
    width: auto;
}
.logos-funding {
    height: clamp(30px, 3vw, 40px);
    width: auto;
}

.ref-marker {
    color: #666;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}
.ref-marker:hover {
    color: #00737e;
    text-decoration: underline;
}
#bib-output {
    list-style: none; /* Remove default numbers */
    counter-reset: bibcounter; /* Initialize counter */
    padding-left: 0;
}

#bib-output > li {
    counter-increment: bibcounter; /* Increase counter for each <li> */
    position: relative;
    padding-left: 2.5em; /* space for number */
    margin-bottom: 0.5em;
}

#bib-output > li::before {
    content: "[" counter(bibcounter) "]";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #333;
    font-family: monospace, monospace;
}
