@import url('https://fonts.googleapis.com/css2?family=Italianno&display=swap');

:root {
    /* Sowasdat Farbpalette */
    --primary-blue: #0d2c4e;
    /* Dunkelblau */
    --secondary-blue: #1a4a7a;
    /* Helleres Blau */
    --bg-body: #f0f2f5;
    /* Neutraler Hintergrund */
    --bg-stage: #fdfbf7;
    /* Warmes Weiß für Inhaltsbereiche */
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --card-radius: 16px;

    /* Bootstrap Overrides für Konsistenz */
    --bs-primary: var(--primary-blue);
    --bs-primary-rgb: 13, 44, 78;
    --bs-body-bg: var(--bg-body);
    --bs-body-font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --bs-border-radius: 0.375rem;
}

html {
    -webkit-text-size-adjust: none
}

#newspaper__footer .ti {
    line-height: 100% !important;
}

#newspaper__footer .dropdown-menu li .dropdown-item .ti {
    line-height: 1 !important;
}

.btn-blue {
    background-color: rgb(1, 158, 230) !important;
    border: 1px solid #29385e !important;
}

html,
body {
    margin: 0px;
    height: 100%;
    width: 100%;
    color: #212529 !important;
    touch-action: manipulation;
    overflow: hidden !important;
    background-color: var(--bg-body);
    /* Cremiger, leicht vergilbter Hintergrund für historischen Look */
    color: #333333;
    font-family: var(--bs-body-font-family) !important;
}

body {
    display: flex;
    flex-direction: column;
}

.bg-rz {
    background-color: #002c5a !important;
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: #002c5a;
}

#newspaper__bookContainer {
    margin: 0px;
    flex: auto;
    display: flex;
    position: relative !important;
    overflow: hidden;
}

#newspaper__interstitial_image {
    background-color: #fff;
}

[data-elem="slide"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    inset: 0px !important;
}

[data-reading-mode="true"] [data-elem="slide"] {
    display: block;
    align-items: center;
    justify-content: center;
    width: initial !important;
    height: initial !important;
    inset: initial !important;
}

/* .pageSlide img {
    background-color: #fff;
} */

[data-elem="slide"] div {
    display: flex;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
}

.reading-mode div[data-elem="slide"] {
    transform: none !important;
    width: 100% !important;
}

[data-reading-mode="true"] [data-elem="slide"] div {
    display: block;
    justify-content: center;
    width: initial !important;
    height: initial !important;
}


[data-slide-type="singlepage"] img {
    margin: 1.5rem;
    max-width: 100%;
    object-fit: contain;
    /* box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; */
}

[data-reading-mode="true"] [data-slide-type="singlepage"] img {
    padding: 0;
    max-width: 100%;
    object-fit: initial;
}

[data-slide-type="interstitial"] img {
    padding: 1.5rem;
    max-width: 100%;
    object-fit: contain;
}

[data-slide-type="doublepage"] img {
    max-height: 100%;
    max-width: 50%;
    margin: 1.5rem;
    object-fit: contain;
    /* box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; */
}

[data-slide-type="doublepage"] img:first-child {
    margin-right: 0px;
}

[data-slide-type="doublepage"] img:last-child {
    margin-left: 0px;
}

.curdragslide {
    cursor: grab;
}

.newspaper__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: auto;
    padding: 1rem 0px;
    line-height: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px #ccc;
    padding: 10px 5px;
    -webkit-box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.2);
}

.newspaper__header>div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.newspaper__header>div:first-child {
    justify-content: start;
    flex: 1;
}

.newspaper__header>div:last-child {
    justify-content: end;
    flex: 1;
}

.newspaper__search-desktop {
    position: relative;
    display: flex;
    flex: 1;
    max-width: 300px;
    height: 100%;
    flex-direction: row;
    justify-content: end;
}

.newspaper__search-desktop-field {
    position: relative;
    width: 0;
    height: 90%;
    opacity: 0;
    transition: all 0.3s ease;
    margin-right: 10px;
}

@media (max-width: 767px) {
    .newspaper__search-desktop {
        display: none;
    }
}

.newspaper__search-desktop-field.active {
    width: 100%;
    opacity: 1;
}

.newspaper__search-desktop-field input {
    border: 1px solid #ddd;
    height: 100%;
    width: 100%;
    border-radius: 4px;
    padding: 8px 15px;
    outline: none;
}

.newspaper__button__header__search-desktop {
    z-index: 2;
}

.newspaper__header .dropdown-search {
    width: 100%;
    padding: 1rem;
}

.newspaper__header .dropdown-search .input-group {
    width: 100%;
}

.newspaper__header .dropdown-search .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}


.navbar-brand {
    font-weight: 800 !important;
    color: var(--primary-blue) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--secondary-blue) !important;
}

.tooltip {
    z-index: 1240 !important;
}

.newspaper__footer>div {
    display: flex;
    flex: 4;
    gap: 5px;
    height: 100%;
    justify-content: center;
}

.newspaper__footer__start>*,
.newspaper__footer__center>*,
.newspaper__footer__end>* {
    margin: 0px .25rem;
}


.newspaper__footer>div:first-child {
    justify-content: start;
    flex: 1;
}

.newspaper__footer>div:last-child {
    justify-content: end;
    flex: 1;
}

.newspaper__header-date h1 {
    font-weight: 400;
    line-height: 1;
    margin: 0px;
    color: #212529;
    padding: 0.375rem 0.75rem;
    font-size: clamp(1rem, 1rem + 1.4815vw, 1.1rem);
}

.newspaper__button,
.newspaper__footer__span__current-page {
    font-weight: 400;
    line-height: 1;
    color: #212529;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0rem 0.25rem;
    font-size: clamp(1rem, 0.5rem + 1.4815vw, 1.1rem);
    border-radius: 0;
    background-color: transparent;
    outline: none !important;
    box-shadow: none;
}

.newspaper__footer__span__current-page {
    line-height: 100%;
    padding: 0px;
}

.newspaper__button:hover .newspaper__button:focus {
    color: rgb(33, 37, 41);
    animation: borderPulse 1000ms 1 ease-out;
    -webkit-animation: borderPulse 1000ms 1 ease-out;
}

@-webkit-keyframes borderPulse {
    0% {
        box-shadow: inset 0px 0px 0px 5px rgba(255, 255, 255, .8), 0px 0px 0px 0px rgba(255, 255, 255, 1);
    }

    100% {
        box-shadow: inset 0px 0px 0px 3px rgba(33, 37, 41, .4), 0px 0px 0px 10px rgba(255, 255, 255, 0);
    }
}

/* Declare border pulse animation */
@keyframes borderPulse {
    0% {
        box-shadow: inset 0px 0px 0px 5px rgba(255, 255, 255, .8), 0px 0px 0px 0px rgba(255, 255, 255, 1);
    }

    100% {
        box-shadow: inset 0px 0px 0px 3px rgba(33, 37, 41, .4), 0px 0px 0px 10px rgba(255, 255, 255, 0);
    }
}


.newspaper__footer__span__current-page {
    width: 100%;
    max-width: 100px;
}

@media (max-width: 768px) {
    .newspaper__footer__span__current-page {
        width: 100%;
        max-width: 65px;
    }
}

.newspaper__control__button,
.newspaper__bruchure__control__button,
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0px;
    border-radius: 50%;
    margin: 0px;
    height: 50px;
    font-size: 20px;
    line-height: 1;
    color: var(--primary-blue);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 50px;
    border: none !important;
    /* border: 1px solid var(--primary-blue) !important; */
    background-color: var(--white);
    z-index: 2;
    transition: all 0.3s ease;
}

.newspaper__control__button:hover,
.newspaper__bruchure__control__button:hover,
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.newspaper__control__button.next,
.newspaper__bruchure__control__button.next {
    right: 10px;
}

.newspaper__control__button.prev,
.newspaper__bruchure__control__button.prev {
    left: 10px;
}



.offcanvas-end {
    width: 450px;
}


.offcanvas-header {
    min-height: 60px;
    line-height: 100%;
    padding: 0px 1rem;
    align-items: center;
    border-bottom: 1px #ccc;
    -webkit-box-shadow: 0px 0px 5px -1px rgb(0 0 0 / 20%);
    -moz-box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 5px -1px rgb(0 0 0 / 20%);
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.offcanvas-header button,
.offcanvas-header button i {
    text-align: right;
    padding: 0px;
}

.offcanvas-title {
    margin: 0px;
    font-size: clamp(1rem, 0.5rem + 1.4815vw, 1.1rem);
}

.offcanvas-body {
    display: flex;
    padding: 1.5rem;
    gap: 1.5rem;
    flex-direction: column;
    height: 100%;
    overflow: auto;
}

@media (max-width: 480px) {
    .offcanvas {
        width: 100% !important;
    }
}

.offcanvas-footer {
    min-height: 60px;
    line-height: 100%;
    padding: 0px 1rem;
    align-items: center;
    border-bottom: 1px #ccc;
    -webkit-box-shadow: 0px 0px 5px -1px rgb(0 0 0 / 20%);
    -moz-box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 5px -1px rgb(0 0 0 / 20%);
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}


.form-control {
    height: auto;
    border-right: none;
}

.input-group button {
    border-radius: 0px;
}

#newspaper__offcanvas__menu ul {
    list-style: none;
    padding: 0px;
    text-align: center;
}

#newspaper__offcanvas__menu ul li {
    border-bottom: 1px solid #212529;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#newspaper__offcanvas__menu ul li a {
    padding: 15px;
    color: #212529;
    display: block;
    text-decoration: none;
}

#newspaper__offcanvas__menu ul li a .fas {
    width: 25px;
}

#newspaper__offcanvas__menu ul li:hover {
    background-color: #F8F9FA;
}

#newspaper__offcanvas__menu ul li:hover a {
    color: #212529;
}

#newspaper__offcanvas__menu .social_media {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

#newspaper__thumbnail__container {
    display: grid;
    grid-gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 1.5rem;
}

#newspaper__thumbnail__container div {
    cursor: pointer;
    margin-bottom: 1rem;
    text-align: center;
}


#newspaper__thumbnail__container img {
    margin: 0px auto;
    width: 100%;
    max-width: 189px;
    background-color: #fff;
    opacity: .8;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

#newspaper__thumbnail__container div.activeThumbnail img {
    opacity: 1;
    border: 2px solid #001730;
}

#newspaper__thumbnail__container div:hover img {
    opacity: 1;
    transform: scale(1.04);
}

#newspaper__thumbnail__container div.activeThumbnail .badge.bg-secondary {
    background-color: #4e5559 !important;
}

#newspaper__thumbnail__container [data-page-index]:first-child,
#newspaper__thumbnail__container [data-page-index]:last-child {
    grid-column: 1/-1;
}

#newspaper__thumbnail__container [data-page-index] {
    display: flex;
    flex-direction: column;
}

[data-page-index] * {
    pointer-events: none;
}

#newspaper__search__pages,
#newspaper__search__pages .search-pages {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}


#newspaper__search__pages.edition-search {
    grid-template-columns: 1fr;
}

#newspaper__archive__edition-wrapper {
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
}

#newspaper__search__result {
    margin-bottom: 1rem;
}

#newspaper__search__pages>div,
#newspaper__search__pages .search-pages>div {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    justify-content: center;
    text-align: center;
    align-items: center;
}

#newspaper__search__pages .search-pages {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

#newspaper__search__pages .search-date {
    grid-row: span 2;
}

.folded_newspaper {
    width: 80%;
    height: auto;
    overflow: inherit;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 10px;
}

.folded_newspaper:hover {
    transform: scale(1.05);
}

.folded_newspaper_inner {
    overflow: hidden;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

#newspaper__offcanvas__archive .folded_newspaper::before,
#newspaper__offcanvas__search .folded_newspaper::before,
#newspaper__archive__current-newspaper .folded_newspaper::before {
    position: absolute;
    top: -3px;
    left: -2px;
    width: 99%;
    height: 99%;
    content: '';
    transform: rotate(-1deg);
    transform-origin: center;
    background: #cec9bb;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 2px 0 rgb(0 0 0 / 10%), 0 4px 4px 0 rgb(0 0 0 / 10%), 0 8px 8px 0 rgb(0 0 0 / 10%), 0 16px 16px 0 rgb(0 0 0 / 10%);
}

#newspaper__offcanvas__archive .folded_newspaper::after,
#newspaper__offcanvas__search .folded_newspaper::after,
#newspaper__archive__current-newspaper .folded_newspaper::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: -moz-linear-gradient(0deg, rgba(0, 0, 0, 0.3421962535014006) 0%, rgba(255, 255, 255, 0) 8%);
    background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 0.3421962535014006) 0%, rgba(255, 255, 255, 0) 8%);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3421962535014006) 0%, rgba(255, 255, 255, 0) 8%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#ffffff", GradientType=1);
}

#newspaper__offcanvas__archive .folded_newspaper img.cover,
#newspaper__offcanvas__search .folded_newspaper img.cover,
#newspaper__archive__current-newspaper .folded_newspaper img.cover {
    position: absolute;
    width: 100% !important;
    min-height: 100% !important;
    top: 0;
    left: 0;
}

#newspaper__offcanvas__archive img,
#newspaper__search__pages img,
#newspaper__archive__current-newspaper img {
    width: 100%;
    margin-bottom: 10px;

    background-color: #cec9bb;
    transition: all 0.3s ease;
    border: 2px solid #cec9bb;
}


#newspaper__search__pages div:hover img:not(.cover) {
    opacity: 1;
    transform: scale(1.04);
}

#newspaper__offcanvas__archive a:hover,
#newspaper__search__pages a:hover {
    text-decoration: none;
}

#newspaper__archive__current-newspaper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    position: relative;
}

#newspaper__archive__current-newspaper *:hover {
    cursor: pointer;
}

.pignose-calendar {
    margin: 0px !important;
    width: 100% !important;
}

.swiper {
    width: 100%;
    height: auto;
}

.search-scope-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-scope-buttons .btn {
    display: flex;
    justify-content: center;
    flex: 1;
    transition: all 0.3s ease;
}


.btn-outline-rz {
    justify-content: center;
    align-items: center;
    --bs-btn-color: #001730;
    --bs-btn-border-color: #001730;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #001730;
    --bs-btn-hover-border-color: #001730;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #001730;
    --bs-btn-active-border-color: #001730;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #001730;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #001730;
    --bs-gradient: none;
}

.search-scope-buttons .btn.active {
    background-color: #001730;
    color: white;
}

.search-scope-buttons .btn {
    font-size: clamp(0.8rem, 0.6rem + 1.4815vw, 1rem) !important;
}

#newspaper__archive__current-newspaper.closed {
    display: none;
}

#newspaper__archive__current-newspaper.opened {
    display: flex;
}

.newspaper__archive__current-newspaper-text {
    padding: 0px 1rem;
}

#newspaper__offcanvas__search-preloader {
    top: 0px;
    display: none;
    left: 0px;
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(255, 255, 255, 1);
    z-index: 333333333;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #212529;
    font-weight: 700;
    font-size: 1.1rem;
}

#newspaper__offcanvas__search-preloader img {
    background-color: #fff !important;
    box-shadow: none !important;
}

#newspaper__offcanvas__search .offcanvas-body {
    display: flex;
    padding: 1.5rem;
    gap: 1.5rem;
    flex-direction: column;
    height: 100%;
    overflow: hidden !important;
}

#newspaper__footer__pages {
    display: flex;
    width: 90px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* .newspaper__thumbnail__page-number {
    display: block;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    width: auto;
    font-size: 1em;
    color: #212529;
    overflow: hidden;
    text-transform: uppercase;
    padding: 5px;
    hyphens: auto;
    word-wrap: break-word;
    word-break: break-all;
    text-decoration: none;
} */

.badge {
    display: block;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    text-transform: uppercase;
    padding: 5px;
    hyphens: auto;
    word-wrap: break-word;
    word-break: break-all;
    text-decoration: none;
    display: block;
    margin: 5px auto;
    font-size: 0.8rem;
}


#newspaper__interstitial {
    width: 100%;
    top: 60px;
    height: calc(100% - 120px);
    z-index: 1000000;
    background-color: #EDECE8;
    position: fixed;
    display: none;
    overflow: hidden;
}

#newspaper__interstitial.active {
    display: block !important;
}

#newspaper__interstitial_image {
    margin: 0px auto;
    display: block;
    margin-left: auto;
    margin-right: auto;

}

#newspaper__interstitial .arrow {
    z-index: 1000000000;
}

.bs-tooltip-end,
.bs-tooltip-start {
    top: 5px !important;
}

.bs-tooltip-end .tooltip-arrow,
.bs-tooltip-start .tooltip-arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
}



#newspaper__offcanvas__brochures {
    display: flex;
    height: auto !important;
}

#newspaper__brochure__container {
    padding: 1rem 0px;
    position: relative;
    width: 100%;
}

#newspaper__brochure__container a {
    text-decoration: none;
    display: flex !important;
    flex-direction: column;
    align-content: stretch;
    flex-shrink: 0;
    width: 100%;
    max-width: 250px;
}

.newspaper__brochure__container-image {
    height: 100%;
    max-height: 150px;
    flex-grow: 1;
    padding: 3px;
    margin: 0px auto;
    background-color: #fff;
}

.newspaper__brochure__container-meta {
    flex: 1;
    position: relative;
}

.newspaper__brochure__container-title {
    display: block;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    width: auto;
    font-size: 1em;
    color: #212529;
    overflow: hidden;
    text-transform: uppercase;
    padding: 5px;
    hyphens: auto;
    word-wrap: break-word;
    word-break: break-all;
    text-decoration: none;
}

.newspaper__brochure__container-date {
    display: block;
    text-align: center;
    font-size: 12px;
    padding: 0px 5px;
    color: #212529;
    text-shadow: none;
    box-sizing: border-box;
    text-decoration: none;
}



.dropdown-menu {
    padding: 0px;
    overflow: hidden;
}

.dropdown-menu i {
    min-width: 20px;
    text-align: center;
    font-weight: 500;
}

button i {
    min-width: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-size: clamp(1rem, 1.5rem + 1.4815vw, 1.5rem);
    font-weight: 500;
}

button img {
    width: 20px;
    height: auto;
}

.dropdown-menu li .dropdown-item {
    border-bottom: 1px solid #eee;
    padding: 1rem;
    cursor: pointer;
}

.dropdown-menu li:last-child .dropdown-item {
    border-bottom: 0px solid #eee;
}

#newspaper__footer .ti {
    line-height: 100% !important;
}

#newspaper__footer {
    bottom: 0px;
    height: auto;
    line-height: 100%;
    color: #505050;
    width: 100%;
    padding: 1rem 0px;
    text-align: center;
    z-index: 20 !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    border-top: 1px #ccc;
    background: var(--white);
    -webkit-box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.2);
}


/* Styling für den aktiven/ausgewählten Tag (die aktuell geladene Ausgabe) */
.pignose-calendar .pignose-calendar-unit.pignose-calendar-unit-active a {
    background-color: #1858a8;
    /* Haupt-Blauton der Seite */
    color: #ffffff !important;
    box-shadow: none;
}

/* Wenn der Lesemodus aktiv ist... */
body.reading-mode-active .pageSlide .elem-zoom-wrapper {
    /* ...erlaube vertikales Scrollen auf der gezoomten Seite. */
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Verhindert horizontales Wischen im Lesemodus, da man ja scrollen will */
body.reading-mode-active .slider {
    touch-action: pan-y;
}

body.reading-mode-active .pageSlide {
    width: 100%;
}

/* --- STYLES FÜR DEN NEUEN LESE-MODUS --- */

/* Verhindert das Scrollen des Haupt-Bodys, wenn der Lesemodus aktiv ist */
body.reading-mode-active {
    overflow: hidden;
}

/* Das Overlay für den Vollbild-Lesemodus */
#reading-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Der Schließen-Button oben rechts */
#reading-mode-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

/* Container für das Bild, ermöglicht vertikales Scrollen */
#reading-mode-overlay .reading-mode-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    text-align: center;
    cursor: grab;
}

/* Das Bild im Lesemodus */
#reading-mode-overlay .reading-mode-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =========================================
   5. BUTTONS & INTERAKTION
   ========================================= */
.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    border-radius: 50px !important;
    font-weight: 700;
    padding: 10px 35px;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--secondary-blue) !important;
}

.btn-secondary {
    background-color: var(--secondary-blue) !important;
    border-radius: 50px !important;
    font-weight: 600;
}

.btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    border-radius: 50px !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
}