@font-face {
    font-family: "OpenSans-Regular";
    src: url("../webfonts/opensans/OpenSans-Regular.woff2") format("woff2"),
        url("../webfonts/opensans/OpenSans-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "OpenSans-Italic";
    src: url("../webfonts/opensans/OpenSans-Italic.woff2") format("woff2"),
        url("../webfonts/opensans/OpenSans-Italic.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "OpenSans-Semibold";
    src: url("../webfonts/opensans/OpenSans-SemiBold.woff2") format("woff2"),
        url("../webfonts/opensans/OpenSans-SemiBold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "OpenSans-SemiboldItalic";
    src: url("../webfonts/opensans/OpenSans-SemiBoldItalic.woff2") format("woff2"),
        url("../webfonts/opensans/OpenSans-SemiBoldItalic.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* ======= main ======= */

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: "OpenSans-Regular", serif;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 70px;
    width: 100vw;
    overflow-x: hidden;
    color: var(--darkmode-font-color);
    background-color: var(--darkmode-background-color);
}

/* ======= color variables ======= */

.btn-secondary {
    color: #fff;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    opacity: 0.9;
}

/* ======= typo ======= */

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    color: var(--darkmode-font-color);
}

body p {
    color: var(--darkmode-font-color);
    word-wrap: break-word;
}

/* ======= links ======= */

a {
    color: #6b6b6b;
    text-decoration: underline;
    transition: color .15s ease-in-out;
}

a:hover {
    color: var(--darkmode-link-hover);
}

body p.grey {
    color: #9a9a9a;
}

body p.grey.dateAlignRight {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

b,
strong {
    font-family: "OpenSans-Semibold", serif;
}

a.btn {
    text-decoration: none;
}

/* ======= helper ======= */

.onlyApp {
    border-radius: var(--border-radius-default);
    border: 1px dashed #4caf50;
    color: #437b45;
    background-color: #f3fcf3;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    width: 90%;
}

@media (prefers-color-scheme: dark) {

    .onlyApp {
        border-radius: var(--border-radius-default);
        border: 1px dashed #9cff57;
        color: #c7ff9c;
        background-color: #1a1a1a;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
        padding: 10px;
        margin-bottom: 15px;
        width: 90%;
    }

}

/* =======  accordion ======= */

[data-toggle="collapse"] .fal:before {
    content: "\f077";
}

[data-toggle="collapse"].collapsed .fal:before {
    content: "\f078";
}

.card-link {
    text-decoration: none;
}

#accordion .card a.card-link .card-header {
    color: var(--darkmode-font-color);
    border: none;
    align-items: center;
    background-color: var(--darkmode-background-color2);
}

#accordion .card a.card-link .card-header div {
    align-items: center;
}

#accordion .card a.card-link .card-header div p {
    margin: 0;
}

#accordion .card {
    background-color: var(--darkmode-background-color);
    border: 1px solid #e7e7e7;
    border-radius: var(--border-radius-default);
    margin-bottom: 2px;
}

#accordion .card-body {
    border-top: 1px solid #e7e7e7;
}

#accordion .card-body p {
    margin: 0;
}

.grid-list-tops {
    margin-top: 15px;
}

/* =======  posts ======= */

.grid-list-posts .grid-item {
    border-radius: var(--border-radius-default);
    border: 1px solid var(--darkmode-border-color);
    background-color: var(--darkmode-background-color2);
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-shadow: var(--box-shadow-default);
}

.grid-list-posts .grid-item:hover {
    opacity: var(--opacity-default);
}

.grid-list-posts .grid-item .grid-item-img,
.grid-list-posts .grid-item .grid-item-img img {
    width: 100%;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.grid-list-posts .grid-item .grid-item-content {
    padding-top: 1.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.grid-list-posts .grid-item .grid-item-content h1 {
    font-size: 1.2rem;
}

.grid-list-posts .grid-item .grid-item-content h3 {
    font-size: 1rem;
}

/* =======  events ======= */

.grid-list-events .grid-item {
    border-radius: var(--border-radius-default);
    border: 1px solid var(--darkmode-border-color);
    background-color: var(--darkmode-background-color2);
    display: flex;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-shadow: var(--box-shadow-default);
}

.grid-list-events .grid-item:hover {
    opacity: var(--opacity-default);
}

.grid-list-events .grid-item .grid-item-img {
    min-width: 200px;
    width: 200px;
    height: auto;
    display: flex;
}

.grid-list-events .grid-item .grid-item-img .img {
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.grid-list-events .grid-item .grid-item-content {
    padding-top: 1.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    width: 100%;
}

.grid-list-events .grid-item .grid-item-content h1 {
    font-size: 1.3rem;
}

.grid-list-events .grid-item .grid-item-content h3 {
    font-size: 1rem;
}

/* =======  galleries ======= */

.grid-list-galleries .grid-item {
    border-radius: var(--border-radius-default);
    border: 1px solid var(--darkmode-border-color);
    background-color: var(--darkmode-background-color2);
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-shadow: var(--box-shadow-default);
}

.grid-list-galleries .grid-item:hover {
    opacity: var(--opacity-default);
}

.grid-list-galleries .grid-item .grid-item-img,
.grid-list-galleries .grid-item .grid-item-img img {
    width: 100%;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.grid-list-galleries .grid-item .grid-item-content {
    padding-top: 1.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.grid-list-galleries .grid-item .grid-item-content h1 {
    font-size: 1.3rem;
}

.grid-list-galleries .grid-item .grid-item-content h3 {
    font-size: 1rem;
}

.grid-item-galleries {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    cursor: pointer;
    position: relative;
}

.grid-item-galleries .grid-item-img,
.grid-item-galleries .grid-item-img .img {
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    position: absolute;
    transition: opacity 0.3s ease;
}

.grid-item-galleries .img:hover {
    opacity: 0.5;
}

/* =======  faq ======= */

.grid-list-faq .grid-item {
    border-radius: var(--border-radius-default);
    border: 1px solid var(--darkmode-border-color);
    background-color: var(--darkmode-background-color2);
    display: flex;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-shadow: var(--box-shadow-default);
}

.grid-list-faq .grid-item:hover {
    opacity: var(--opacity-default);
}

.grid-list-faq .grid-item .grid-item-img {
    margin: 10px;
    min-width: 120px;
    align-self: center;
}

.grid-list-faq .grid-item .grid-item-img img {
    max-width: 120px;
    height: auto;
}

.grid-list-faq .grid-item .grid-item-img .img {
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.grid-list-faq .grid-item .grid-item-content {
    width: 100%;
    padding: 1.2rem 1.2rem 1rem;
}

.grid-list-faq .grid-item .grid-item-content .col-1 {
    align-self: center;
}

.grid-list-faq .grid-item .grid-item-content h1 {
    font-size: 1.3rem;
}

/* Grundlegende Styles für die FAQ-Elemente */
.faq-card {
    margin-bottom: 1rem;
    /* Abstand zwischen den Akkordeon-Elementen */
    border: 1px solid #ddd;
    /* Dezenter Rahmen */
    border-radius: var(--border-radius-default);
    /* Leicht abgerundete Ecken */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Dezenter Schatten */
    overflow: hidden;
    /* Verhindert, dass Inhalte über den Rand hinausragen */
    color: var(--darkmode-font-color);
}

/* Button (Frage) */
.faq-question {
    padding: 1rem 1.25rem;
    /* Mehr Innenabstand */
    width: 100%;
    /* Volle Breite */
    text-align: left;
    /* Text linksbündig (redundant, aber explizit) */
    background-color: var(--darkmode-background-color);
    /* Übergänge */
    cursor: pointer;
    /* Zeigt an, dass es klickbar ist */
    position: relative;
    /* Für die absolute Positionierung des Icons */
    text-decoration: none !important;
}

.faq-question:active,
.faq-question:focus,
.faq-question:not(.collapsed) {
    background-color: lightgrey !important;
}

.faq-question {
    background-color: var(--darkmode-background-color);
}

.faq-question:hover {
    background-color: lightgrey;
    color: var(--darkmode-font-color) !important;
}

.faq-question-text {
    padding: 0.5em;
}

.faq-question-text p {
    margin: 0;
}

/* Icon-Container (für Zentrierung und Abstände) */
.faq-icon-container {
    width: 3em;
    text-align: center;
    align-self: anchor-center;
}

.faq-icon {
    transition: transform 0.2s ease;
    display: inline-block;
    font-size: 1.2rem;
    /* Etwas größeres Icon */
    color: var(--darkmode-font-color);
    /* Bootstrap-Primärfarbe (Blau) */
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

/* Antwortbereich */
.faq-answer {
    padding: 1.25rem;
    /* Mehr Innenabstand */
    background-color: var(--darkmode-background-color2);
    /* Weißer Hintergrund */
    border-top: 1px solid #ddd;
    /* Linie zwischen Frage und Antwort*/

}

/* Optional: Abstände innerhalb der Frage und Antwort anpassen */
.faq-question>div,
.faq-answer>p {
    /* Oder andere Elemente in der Antwort */
    margin-bottom: 0;
    /* Entfernt unnötige Abstände */
}

/* Optional: Abstände für sehr kleine Bildschirme entfernen*/
@media (max-width: 575px) {
    .faq-question {
        padding: 0.75rem 1rem;
    }
}

/* =======  contacts ======= */

.grid-list-contacts .grid-item {
    border-radius: var(--border-radius-default);
    border: 1px solid var(--darkmode-border-color);
    background-color: var(--darkmode-background-color2);
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow-default);
}

.grid-list-contacts .grid-item.overview {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.grid-list-contacts .grid-item.overview:hover {
    opacity: var(--opacity-default);
}

.grid-list-contacts .grid-item .grid-item-img {
    margin: 10px;
    min-width: 120px;
    align-self: center;
    height: auto;
}

.grid-list-contacts .grid-item .grid-item-img img {
    max-width: 120px;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.grid-list-contacts .grid-item .grid-item-img img:hover {
    opacity: var(--opacity-default);
}

.grid-list-contacts .grid-item .grid-item-img .img {
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.grid-list-contacts .grid-item .grid-item-content {
    padding: 1.2rem 1.2rem 0.7rem 0.4rem;
    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
    overflow: hidden;
}

.grid-list-contacts .grid-item .grid-item-content.noCursor:hover {
    cursor: auto;
}

.grid-list-contacts .grid-item .grid-item-content .contactButton {
    align-self: center;
}

.grid-list-contacts .grid-item .grid-item-content h1 {
    font-size: 1.2rem;
}

/* =======  company  ======= */

.grid-list-company {
    margin-top: 0 !important;
}

/* =======  coupons  ======= */

.grid-list-coupons .grid-item {
    border-radius: var(--border-radius-default);
    border: 1px dashed var(--darkmode-border-color);
    background-color: var(--darkmode-background-color2);
    display: flex;
    box-shadow: var(--box-shadow-default);
}

.grid-list-coupons .grid-item.overview {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.grid-list-coupons .grid-item.overview:hover {
    opacity: var(--opacity-default);
}

.grid-list-coupons .grid-item-mark {
    width: 10px;
    min-width: 5px;
    height: auto;
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.grid-list-coupons .grid-item .grid-item-img {
    margin: 10px;
    min-width: 120px;
}

.grid-list-coupons .grid-item .grid-item-img img {
    max-width: 120px;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.grid-list-coupons .grid-item .grid-item-img img:hover {
    opacity: var(--opacity-default);
}

.grid-list-coupons .grid-item .grid-item-img .img {
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.grid-list-coupons .grid-item .grid-item-content {
    padding-top: 1.2rem;
    padding-left: 0.4rem;
    padding-right: 150px;
}

.grid-list-coupons .grid-item .grid-item-content-detail {
    padding: 1.2rem;
}

.grid-list-coupons .grid-item .grid-item-content h1 {
    font-size: 1.2rem;
}

.grid-list-coupons .grid-item .grid-item-disruptor {
    position: absolute;
    right: 0;
    top: 15px;
    max-width: 160px;
    padding: 5px 25px;
    color: white;
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

/* =======  Embedded IMG  ======= */

.ix-embedded {
    transition: opacity 0.3s ease;
}

.ix-embedded:hover {
    cursor: pointer;
    position: relative;
    opacity: var(--opacity-default);
}

/* =======  PDF  ======= */

.ix-embedded-pdf:hover {
    cursor: pointer;
    opacity: 0.3;
}

.pdfDiv {
    display: flex;
    align-items: center;
    /* Vertikale Zentrierung */
    position: relative;
    /* Wichtig, wenn du später noch Overlays o.ä. brauchst */
    justify-content: center;
}

.pdfIcon {
    font-size: 70px;
    color: black;
    position: absolute;
    /* Keine absolute Positionierung oder Transformation mehr nötig! */
}

.pdfIcon:hover {
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {

    /* PDF hover , Icon changing */
    .ix-embedded-pdf:hover~.pdfIcon,
    .pdfIcon:hover {
        color: white;
    }

}

/* Added by JS */
.pdfHover {
    opacity: 0.3;
}

/* ======= Swipe Series ====== */
.swipeSeries {
    color: white;
    display: contents;
}

.swipeSeries i {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    padding: 1.5rem;
    height: 100%;
    transition: background-color 0.3s ease;
}

.swipeSeries i:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.swipeSeries .fa-chevron-left {
    float: left;
}

.swipeSeries .fa-chevron-right {
    float: right;
}

.picNoChannel {
    margin-top: 160px;
}

.noPicAndChannel {
    margin-top: 240px;
}

.noPicNoChannel {
    margin-top: 180px;
}

.minHeight {
    min-height: 40px;
    justify-content: space-between;
}

.debugVersion {
    float: right;
    margin-bottom: 0;
    margin-top: 20px;
}

.tinyMCELinkExternal {
    color: #6b6b6b !important;
    text-decoration: underline !important;
    transition: color .15s ease-in-out;
}

.tinyMCELinkExternal:hover {
    color: var(--darkmode-link-hover) !important;
}

ilink {
    text-decoration: underline;
}

ilink:hover {
    color: var(--darkmode-link-hover);
    cursor: pointer;
}

a:hover {
    cursor: pointer !important;
}

.noEntrys {
    display: none;
    width: 100%;
}

.noEntrys p {
    text-align: center;
}

/** ******************* */
/** CUSTOM COLOR STYLES */
/** ******************* */

/* Custom Color 1 */
.bg-primary-light {
    background-color: var(--custom1-color) !important;
}

.bg-primary-dark {
    background-color: var(--custom1-color) !important;
}

/* Buttons Custom Color 2 */
.btn-secondary {
    color: var(--custom2-text-color) !important;
    background-color: var(--custom2-color);
    border-color: var(--custom2-color);
}

.btn-secondary:hover {
    background-color: var(--custom2-color);
    border-color: var(--custom2-color);
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--custom1-color);
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 15px;
    border-radius: var(--border-radius-default);
    /* Wichtig: Initial durchsichtig und etwas nach unten versetzt */
    opacity: 0;
    transform: translateY(20px);
    /* Übergang für sanftes Einblenden */
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 2em rgba(5, 0, 31, 0.5);
    display: flex;
}

#scrollToTopBtn:hover {
    color: rgba(0, 0, 0, 1);
}

/* Neue Klasse für den sichtbaren Zustand */
#scrollToTopBtn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (prefers-color-scheme: dark) {

    /* PDF hover , Icon changing */
    .gallery .prev:hover,
    .gallery .next:hover {
        background-color: rgba(74, 74, 74, 0.3);
    }

    .faq-question:active,
    .faq-question:focus,
    .faq-question:not(.collapsed) {
        background-color: #212529 !important;
    }

    .faq-question {
        background-color: var(--darkmode-background-color);
    }

    .faq-question:hover {
        background-color: #212529;
        color: var(--darkmode-font-color) !important;
    }

}