/* ==================== GLOBALE ==================== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    background: #ffffff;
}

.logo-container h1 {
    margin: 0 0 0 1rem;
    color: #004b87;
    font-size: 2.2rem;
    font-weight: bold;
}

/* ==================== MAIN MENU ==================== */
.main-menu {
    background: #004b87 !important; /* SBB Dunkelblau */
    border: none;
    border-radius: 0;
    margin: 0;
    width: 80% !important;
}

.main-menu .ui-menuitem-link {
    color: white !important;
    padding: 1.2rem 2rem !important; /* größerer Klickbereich */
    font-size: 2rem !important; /* doppelt so groß */
    font-family: FFClan, arial, helvetica, sans-serif;
}

.main-menu .ui-menuitem-link:hover,
.main-menu .ui-menuitem-link.ui-state-active {
    background: #003366 !important; /* dunkler Hover */
}

/* ==================== CONTENT ==================== */
.main-content-wrapper {
    padding: 2rem 1rem;
    min-height: 70vh;
    background: #ffffff;
    margin: 35px 35px 35px 0;
}

/* Suchfeld-Panel */
.search-panel {
    background: #f8f9fa;
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input {
    width: 70%;
    font-size: 1.2rem;
    padding: 0.8rem;
    border: 1px solid #999999;
    border-radius: 4px;
}

.search-button {
    margin-left: 1rem;
    background: #004b87;
    color: white;
    border: none;
}

/* ==================== FOOTER ==================== */

.footer-panel {
    background: rgb(121, 189, 176);
    color: #ffffff;
    padding: 3rem 0 8rem 0;
    margin-top: 3rem;
}

.footer-content {
    width: 80%;
    margin: 0 auto;
}

/* =========================================================
   FOOTER LINKS OBEN
========================================================= */

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    margin-bottom: 5rem;
}

.footer-links a {
    color: #ffffff;

    text-decoration: none;

    margin-right: 4rem;

    font-size: 2.0rem;
    line-height: 2.0rem;

    font-family: FFClan, Arial, Helvetica, sans-serif;
}

.footer-links a:hover {
    color: #367270;
    text-decoration: none;
}

/* =========================================================
   FOOTER LOGOS
========================================================= */

.footer-logos {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 8rem;
    flex-wrap: wrap;
}

.footer-logo-left,
.footer-logo-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-text {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-partner-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* =========================================================
   STAATSBIBLIOTHEK LOGO
========================================================= */

.footer-logo-staatsbibliothek {
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* =========================================================
   PARTNER LOGOS
========================================================= */

.footer-logo-institutionen {
    height: 40px;
    width: 40px;
    object-fit: contain;
    display: block;
}

/* =========================================================
   SITE HEADER
========================================================= */

.site-header {
    position: relative;
    height: 210px;
    background-color: #e4f2ef;
    overflow: visible !important;
}

/* Hintergrundbild */
.header-img {
    position: absolute;
    inset: 0;

    background-image: url("/javax.faces.resource/Einband_Header_02-15.jpg.xhtml?ln=images");
    background-position: center center;
    background-repeat: repeat;
    background-size: cover;

    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

/* =========================================================
   HEADER OBEN
========================================================= */

.header-panel {
    position: relative;
    z-index: 1;

    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.header-content {
    width: 80% !important;
    margin: 0 auto !important;
    padding: 0 !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

.header-login-panel {
    position: relative;
    z-index: 2;

    background-color: #e4f2ef !important;
    background: transparent !important;

    border: none !important;
    box-shadow: none !important;

    width: 80%;
    margin: 0 auto;

    padding-top: 0.5rem;
}


.logo-container {
    margin: 0 !important;
    flex: 1;
    text-align: left !important;
}

.site-title {
    display: inline-block;
    font-size: 60px !important; /* doppelt */
    line-height: 1 !important;
    color: rgb(60, 75, 120) !important;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    text-decoration: none !important;
    background: transparent !important;
    margin-top: 20px;
}

/* =========================================================
   HEADER Bild rechts Staatsbibliothek
========================================================= */
.header-logo-link {
    display: block;
    text-decoration: none;
    margin: 0 !important;
    padding: 0 !important;
}

.header-logo-staatsbibliothek {
    max-width: 320px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 0 0 auto !important;
}

.site-title:hover {
    color: rgb(45, 60, 100) !important;
    text-decoration: none !important;
}

/* Rechts oben */
.top-right-nav {
    margin-left: auto !important;
    text-align: right !important;
    padding: 0 !important;
    margin-right: 19px;
}

.top-right-nav a,
.top-right-nav .ui-commandlink,
.top-right-nav .ui-link {
    color: #285052 !important;
    text-decoration: none !important;
    margin-left: 0.8rem;
}

.top-right-nav a:hover,
.top-right-nav .ui-commandlink:hover {
    color: #d97373 !important;
}

/* =========================================================
   MAIN MENU UNTEN
========================================================= */

.main-menu {
    z-index: 2;
    position: absolute !important;
    left: 10%;
    bottom: 0;

    width: 80% !important;
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* PrimeFaces Menü-Listen zurücksetzen */
.main-menu,
.main-menu ul,
.main-menu .ui-menu-list {
    padding-left: 7px !important
}

/* Menüeinträge */
.main-menu .ui-menuitem-link {
    padding: 0.8rem 3.0rem 0.8rem 0 !important;

    background: transparent !important;
    color: #285052 !important;

    text-transform: uppercase;
    text-decoration: none !important;
}

.main-menu .ui-menuitem-link,
.main-menu .ui-menuitem-text {
    font-size: 1.8rem !important;
    line-height: 2.0rem !important;
    font-family: FFClan, Arial, Helvetica, sans-serif;
}

/* Hover */
.main-menu .ui-menuitem-link:hover,
.main-menu .ui-menuitem-link:hover .ui-menuitem-text,
.main-menu .ui-menuitem-link.ui-state-active,
.main-menu .ui-menuitem-link.ui-state-active .ui-menuitem-text {
    background: transparent !important;
    color: #d97373 !important;
}

.main-menu,
.main-menu .ui-menu-list,
.main-menu .ui-menu-child {
    overflow: visible !important;
}

.main-menu .ui-menu-child {
    z-index: 9999 !important;
    background: #e4f2ef !important;
}

.sub-search-menu .ui-menu-list {
    background-color: rgb(255, 255, 255) !important;
    width: auto !important;
    padding-left: 30px !important;
}

.sub-search-menu .ui-icon-triangle-1-s {
    transform: scale(1.5);

    font-weight: bold;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    vertical-align: middle;
}

.sub-search-menu .ui-menuitem-link {
    display: flex !important;
    align-items: center !important;
}

.login-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem; /* vorher 0.4 */
    color: #285052 !important;
    text-decoration: none !important;
    font-size: 2rem !important; /* 4x größer */
    font-family: FFClan, arial, helvetica, sans-serif !important;
    line-height: 1.2;
    padding: 0 !important;
}

.login-logout-icon {
    font-size: 2rem !important; /* 4x größer */
}

.header-login-user-text {
    font-size: 2rem !important; /* 4x größer */
}

.top-right-nav a {
    margin-left: 1.5rem;
    color: #004b87;
    text-decoration: none;
    font-size: 2rem !important; /* 4x größer */
    font-family: FFClan, arial, helvetica, sans-serif !important;
}

.top-right-nav a:hover {
    color: #003366;
}

.header-login-language {
    padding-left: 30px;
}

.header-login-headerform {
    display: flex;
    justify-content: flex-end;
}

.ui-messages,
.ui-message {
    font-size: 2rem !important;
    line-height: 1.4 !important;
}

.ui-messages-error,
.ui-message-error {
    padding: 2rem !important;
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner {
    display: none;

    position: relative;
    width: 100%;
    min-height: 95px;

    background-color: #eef5f4;
    border-bottom: 1px solid #d7e2e1;

    align-items: center;

    padding: 0 90px 0 65px;
    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    color: #44525f;

    z-index: 9999;
}

.cookie-banner a {
    color: #4a718f;
    text-decoration: none;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-banner button {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    border: 3px solid #3f5874;
    border-radius: 50%;

    background: #ffffff;
    color: #3f5874;

    font-size: 16px;
    font-weight: bold;
    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;
}

.cookie-banner button:hover {
    background: #f8fbfb;
}

.cookie-banner-content {
    max-width: 1900px;
}

.footer-partner-logos a {
    display: inline-flex;
    align-items: center;
}

.footer-logo-institutionen {
    cursor: pointer;
    transition: opacity .2s ease;
}

.footer-logo-institutionen:hover {
    opacity: 0.8;
}

.landing-search-box {
    width: 580px;
    margin: 3rem auto 5rem auto;

    background-color: #e4f2ef;

    padding: 2rem;
    box-sizing: border-box;

    position: relative;
    overflow: hidden;
}

.landing-search-box::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("/javax.faces.resource/Rolle_Ausschnitt.jpg.xhtml?ln=user-upload-old-typo3-system");
    background-repeat: repeat;
    background-size: cover;

    opacity: 0.08; /* zwischen 0.05 und 0.12 testen */

    pointer-events: none;
}

.landing-search-inner {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-search-input {
    width: 330px;
    height: 38px;
    border: 1px solid #367270;
    font-size: 1.4rem;
}

.landing-search-button {
    width: 42px;
    height: 38px;
    margin-left: 6px;
    background-color: #e4f2ef !important;
    /*background: transparent !important;*/
    border: 1px solid #367270 !important;
    color: #285052 !important;
}


.search-row {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    gap: 6px;
}

.landing-intro {
    width: 80%;
    margin: 0 auto;
}

.landing-intro h1 {
    color: #5d6a72;
    font-size: 3rem;
    font-weight: normal;
    margin-bottom: 6rem;
}

.landing-columns {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 7rem;
    align-items: start;
}

.landing-text {
    color: #5d6a72;
    font-size: 1.35rem;
    line-height: 1.55;
}

.landing-video h2 {
    color: #5d6a72;
    font-size: 2rem;
    font-weight: normal;
    margin-top: 0;
}

.landing-video {
    color: #5d6a72;
    font-size: 1.2rem;
}

.landing-video a {
    color: #2b78b8;
    text-decoration: none;
}

.landing-more {
    margin-top: 40px !important;
}

.landing-more .ui-accordion-header.ui-state-default,
.landing-more .ui-accordion-header.ui-state-active {
    background: #f5f5f5 !important;
    /*border: 1px solid #dddddd !important;*/
}

.landing-more .ui-accordion-header.ui-state-default a,
.landing-more .ui-accordion-header.ui-state-active a {
    background: #f5f5f5 !important;
    color: #555 !important;
}

.landing-more .ui-accordion-header:focus,
.landing-more .ui-accordion-header a:focus,
.landing-more .ui-accordion-header .ui-accordion-header-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.landing-more .ui-accordion-header.ui-state-active,
.landing-more .ui-accordion-header.ui-state-active a,
.landing-more .ui-accordion-header.ui-state-default,
.landing-more .ui-accordion-header.ui-state-default a {
    /*     background: #f5f5f5 !important; */
    color: #555555 !important;
    box-shadow: none !important;
}

.landing-more a {
    color: #2b78b8;
    text-decoration: none;
}

.landing-more a:hover {
    text-decoration: underline;
}

/*.landing-more .ui-accordion-content {*/
/*  padding: 12px 2px 0 12px !important;*/
/*}*/

/* Radio-Button Grundzustand */
.landing-search-options .ui-radiobutton-box {
    position: relative !important;
    width: 16px !important;
    height: 16px !important;
    background: #ffffff !important;
    border: 1px solid #9fbfc7 !important;
}

/* Ausgewählt: hellblau */
.landing-search-options .ui-radiobutton-box.ui-state-active {
    background: #d9edf7 !important;
    border-color: #7fb6c8 !important;
}

/* Punkt exakt zentrieren */
.landing-search-options .ui-radiobutton-icon.ui-icon-bullet {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;

    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #7fb6c8 !important;
}

.landing-search-options .ui-radiobutton-icon.ui-icon-bullet {
    width: 8px !important;
    height: 8px !important;

    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 50% !important;
}

.landing-search-options label {
    font-size: 16px !important;
    font-weight: 100 !important;
    color: rgb(98, 110, 116);
}

.landing-search-options {
    margin-top: 8px;
    width: 474px;
}

.landing-search-options .ui-selectoneradio {
    width: 100%;
}

.collections-page {
    width: 80%;
    margin: 5rem auto;
    color: #5d6a72;
}

.collections-page h1 {
    font-size: 3.4rem;
    font-weight: normal;
    margin-bottom: 4rem;
}

.collections-top {
    display: grid;
    grid-template-columns: 1fr 580px;
    gap: 6rem;
    align-items: start;
    margin-bottom: 4rem;
}

.collections-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.collections-links li {
    margin-bottom: 0.9rem;
}

.collections-links a,
.collection-block a {
    color: #2b78b8;
    text-decoration: none;
}

.collections-links a:hover,
.collection-block a:hover {
    text-decoration: underline;
}

.collection-block {
    border-top: 1px solid #cfcfcf;
    padding-top: 2.5rem;
    margin-top: 3rem;

    /* Schmaler, aber bleibt an der ursprünglichen Position */
    max-width: 1100px;

    padding-right: 10px;
    padding-left: 10px;
}

.collection-block h2 {
    font-size: 2.8rem;
    font-weight: normal;
    color: #5d6a72;
    margin: 0 0 2.5rem 0;
}

.collection-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 3rem;
    align-items: start;
}

.collection-text h3 {
    font-size: 2rem;
    font-weight: normal;
    margin-top: 0;
    color: #5d6a72;
}

.collection-text p {
    font-size: 16px;
    line-height: 1.42857143;
    margin: 0 0 1.3rem 0;
}

.collection-image {
    margin: 0;
    text-align: left;
}

.collection-image img {
    max-width: 130px;
    height: auto;
    display: block;
}

.collection-image figcaption {
    margin-top: 0.8rem;
    font-size: 1.4rem;
    color: #5d6a72;
}

.collection-accordion {
    margin-top: 1.5rem !important;
}


.ui-accordion.ui-widget.ui-helper-reset.ui-hidden-container.landing-more {
    border: none !important;
}

.landing-more .ui-accordion-header {
    margin-bottom: 8px !important;
    border: 1px solid #d8d8d8 !important;
    background: #f5f5f5 !important;
    font-size: 16px;
}

.landing-more .ui-accordion-content {
    margin-top: -10px !important;
    margin-bottom: 8px !important;
    border: 1px solid #d8d8d8 !important;
    border-top: none !important;
    font-size: 16px;
}

.about-image-slider {
    width: 100%;
    max-width: 620px;
    margin: 3rem auto;
    position: relative;
    overflow: visible;
}

/* Bild */

.about-slider-image {
    display: block;
    width: 100% !important;
    max-width: 520px !important;
    height: auto !important;
    max-height: 340px !important;
    object-fit: contain !important;
    margin: 0 auto;
}

/* Galleria */

.about-image-slider .ui-galleria,
.about-image-slider .ui-galleria-content,
.about-image-slider .ui-galleria-panel-wrapper,
.about-image-slider .ui-galleria-item-wrapper {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Pfeile links/rechts wie im Original */

.about-image-slider .ui-galleria-item-prev,
.about-image-slider .ui-galleria-item-next {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #6f7980 !important;
    width: auto !important;
    height: auto !important;
    font-size: 3.8rem !important;
}

.about-image-slider .ui-galleria-item-prev {
    left: -95px !important;
}

.about-image-slider .ui-galleria-item-next {
    right: -95px !important;
}

.about-image-slider .ui-galleria-item-nav {
    transform: translateY(-50%);
    z-index: 20;
}

/* Punkte */

.about-image-slider .ui-galleria-indicators {
    margin-top: 12px;
}

.about-image-slider .ui-galleria-indicator button {
    width: 10px;
    height: 10px;
}

/* Play-Button unten links */

.about-slider-playbar {
    position: absolute;
    left: -95px;
    bottom: 10px;
    z-index: 25;
}

.slider-play-button,
.about-slider-play {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #444 !important;
    padding: 0 !important;
}

.slider-play-button .fa,
.about-slider-play .fa {
    font-size: 2rem !important;
}

/* Höhe der Galleria reduzieren */

.about-image-slider .ui-galleria-panel-wrapper,
.about-image-slider .ui-galleria-panel {
    height: 300px !important;
}

/* Bild etwas kleiner */

.about-slider-image {
    max-height: 300px !important;
}

/* Abstand zwischen Bild und Thumbnail-Leiste */

.about-image-slider .ui-galleria-filmstrip-wrapper {
    margin-top: 15px !important;
}


/* Pfeile größer */

.about-image-slider .ui-galleria-nav-prev,
.about-image-slider .ui-galleria-nav-next {

    transform: scale(1.4);
    transform-origin: center center;

    cursor: pointer;
}

.about-page {
    width: 80%;
    margin: 5rem auto;
    color: #5d6a72;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 580px;
    gap: 7rem;
    align-items: start;
}

.about-main {
    min-width: 0;
}

.about-sidebar {
    min-width: 0;
}

.about-main h2,
.about-sidebar h2 {
    font-size: 2.8rem;
    font-weight: normal;
    color: #5d6a72;
    margin: 3rem 0 1.5rem 0;
}

.about-main p,
.about-sidebar p {
    font-size: 1.45rem;
    line-height: 1.55;
}

.about-main .landing-more,
.about-sidebar .landing-more {
    width: 100%;
}

.about-search-box.landing-search-box {
    margin-top: 0 !important;
}

.citation-page {
    width: 80%;
    margin: 5rem auto;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 5rem;
    color: #5d6a72;
}

.citation-page h1 {
    font-size: 3.4rem;
    font-weight: normal;
    margin-bottom: 3rem;
}

.citation-page p {
    font-size: 1.65rem;
    line-height: 1.55;
}

.citation-table {
    width: 100%;
    margin: 2rem 0;
    font-size: 1.5rem;
}

.citation-table .ui-datatable-header {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #d9d9d9 !important;
    font-size: 1.6rem;
    font-weight: normal;
    text-align: left !important;
    padding: 0 0 0.8rem 0 !important;
}

.citation-table thead {
    display: none !important;
}

.sub-search-box {
    background-color: #e4f2ef;
    padding: 2rem;
    margin-bottom: 4rem;
}

.citation-side h3 {
    font-size: 2.2rem;
    font-weight: normal;
    color: #5d6a72;
}

.citation-table .ui-datatable-data > tr > td {
    border-bottom: 1px solid #d9d9d9 !important;
}

.citation-table .ui-datatable-data > tr:last-child > td {
    border-bottom: none;
}


/* Kontakt*/

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-left: 3.9rem;
    margin-right: auto;
}

.contact-address-text {
    display: block;
    white-space: pre-line;
    line-height: 1.4;
    margin-top: 8px;
}

.address {
    grid-column: 1 / 3;
    font-size: 30px;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
    margin-bottom: 2rem;
}

.ui-contact-email {
    color: rgb(24, 129, 214) !important;
}

.einzelstempel {
    grid-column: 1;
    grid-row: 2;
    font-size: 17px;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
}

.contact-grid h1 {
    font-size: 40px !important;
}

.contact-grid h2,
.contact-grid h3 {
    font-size: 25px !important;
    font-weight: 500;
}

.rollen-und-platten {
    grid-column: 1;
    grid-row: 3;
    font-size: 17px;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
}

.feedback-zu-technischen-fragen {
    grid-column: 2;
    grid-row: 2.5 / 4;
    font-size: 17px;
    align-self: start;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
    margin-left: 3rem;
}

.einzelstempel a,
.einzelstempel span {
    display: block;
}


/* impressum */
.impressum-page-content {
    margin-left: 5cm;
}

.impressum-header {
    font-size: 4rem !important;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.1;
}

.impressum-header h1 {
    font-size: 1em !important;
}

.impressum-link {
    font-size: 20px;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
}

.impressum-text,
.impressum-text-inline {
    white-space: pre-line;
    font-size: 16px;
    line-height: 1.6;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
}

.impressum-gap {
    display: block;
    margin-bottom: 0.8rem;
}

.impressum-ueberschrift {
    font-size: 17px;
    font-weight: bold;
    color: #626E74;
    margin: 1.2rem 0 2px 0;
}

.impressum-section h4 {
    font-size: 28px;
    font-weight: 500;
    color: rgb(98, 110, 116);
    font-family: FFClan, Arial, Helvetica, sans-serif;
    margin: 1.5rem 0 0.5rem 0;
}

.impressum-kontakt a,
.impressum-redaktion a {
    font-size: 16px;
    color: rgb(24, 100, 170) !important;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

/* Email auf eigener Zeile mit Abstand darüber */
.ui-contact-Email {
    display: block;
    margin-top: 0.5rem;
    color: rgb(24, 129, 214) !important;
}

.disclaimer-text {
    font-size: 20px;
    line-height: 1.6;
    max-width: 850px;
    margin-bottom: 1rem;
    margin-left: 0;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
}

.disclaimer-header {
    font-size: 36px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.1;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
}

/* Barrierfreiheit*/
.barrier-page-content {
    margin-left: 5cm;
}
.seiten-header {
    font-size: 30px;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.1;
    font-family: FFClan, Arial, Helvetica, sans-serif;
    color: rgb(98, 110, 116);
}

.fliess-text-bloecke {
    font-size: 16px;
    line-height: 1.6;
    font-family: Arial, Helvetica, sans-serif;
    color: #626E74;
    white-space: pre-line;
    max-width: 850px;
    margin-bottom: 1.5rem;
}

/* kleinerer Abstand nach dem Email-Block */
.fliess-text-eng {
    margin-bottom: 0.01em;
}

.ui-contact-Email {
    display: block;
    margin-top: 0.25rem;
    color: rgb(24, 129, 214) !important;
}

/* Links */
.static-page-content a {
    color: rgb(24, 129, 214);
    text-decoration: none;
}

.static-page-content a:hover {
    text-decoration: underline;
}


.static-page-content {
    padding-left: 15rem;
}

/* Datenschutzerklärung */
.datenschutz-erklaerung {
    margin-left: 20rem;
    margin-right: auto;
    text-align: left;
}

.datenschutz-erklaerung h1 {
    font-size: 40px;
    font-family: Arial, Helvetica, sans-serif;
    color: #626E74;
    margin-bottom: 6rem;
}

.datenschutz-erklaerung h2 {
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;
    color: #626E74;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.datenschutz-erklaerung h3 {
    font-size: 15px;
    font-weight: bold;
    color: rgb(60, 60, 60);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.datenschutz-erklaerung p {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    color: #626E74;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 850px;
}

.datenschutz-erklaerung ul {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
    max-width: 850px;
}

.datenschutz-erklaerung li {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    color: #626E74;
    line-height: 1.7;
    margin-bottom: 6px;
}

.datenschutz-erklaerung a {
    color: rgb(24, 129, 214);
    text-decoration: none;
}

.datenschutz-erklaerung a:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE ANPASSUNGEN
   Greifen ausschließlich bei kleinen Bildschirmbreiten.
   Das Desktop-Layout oberhalb von 768px bleibt unverändert.
========================================================= */

/* ===========================
   Desktop / Mobile Menü
=========================== */

.desktop-menu {
    display: block;
}

.mobile-menu {
    display: none;
}

/* =========================================================
   MOBILE – ZUSAMMENGEFÜHRTE REGELN
   Entspricht der bisherigen Darstellung bis 768px.
========================================================= */

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    .main-content-wrapper {
        margin: 0;
        padding: 1.5rem 1rem;
    }

    .site-header {
        height: auto;
        min-height: 0;
        padding-bottom: 1rem;
    }

    .header-login-panel,
    .header-content,
    .main-menu {
        width: calc(100% - 2rem) !important;
    }

    .header-content {
        gap: .75rem;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    .site-title {
        font-size: 2rem !important;
        line-height: 1.15 !important;
        margin-top: .75rem;
    }

    .header-logo-staatsbibliothek {
        max-width: 180px;
        max-height: none;
        margin: 0 !important;
    }

    .header-login-headerform {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .5rem;
    }

    .login-link,
    .header-login-user-text,
    .top-right-nav a {
        font-size: 1rem !important;
    }

    .login-logout-icon {
        font-size: 1.2rem !important;
    }

    .header-login-language {
        padding-left: .75rem;
    }

    .main-menu {
        position: static !important;
        left: auto;
        bottom: auto;
        margin: 1rem auto 0 !important;
    }

    .main-menu,
    .main-menu ul,
    .main-menu .ui-menu-list {
        padding-left: 0 !important;
    }

    .main-menu .ui-menu-list {
        display: flex;
        flex-direction: column;
    }

    .main-menu .ui-menuitem-link {
        display: block !important;
        width: 100%;
        padding: .7rem 0 !important;
    }

    .main-menu .ui-menuitem-link,
    .main-menu .ui-menuitem-text {
        font-size: 1rem !important;
        line-height: 1.3rem !important;
    }

    .landing-search-box {
        width: calc(100% - 2rem);
        margin: 2rem auto 3rem;
        padding: 1rem;
    }

    .landing-search-inner {
        width: 100%;
    }

    .search-row {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) repeat(3, 44px);
        gap: .5rem;
    }

    .landing-search-input {
        width: 100%;
        min-width: 0;
        height: 44px;
        font-size: 1rem;
    }

    .landing-search-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        margin-left: 0;
    }

    .landing-search-options {
        width: 100%;
        margin-top: .75rem;
    }

    .landing-search-options .ui-selectoneradio tbody,
    .landing-search-options .ui-selectoneradio tr {
        display: flex;
        flex-wrap: wrap;
        gap: .75rem 1rem;
    }

    .landing-search-options .ui-selectoneradio td {
        padding: 0;
    }

    .landing-intro {
        width: calc(100% - 2rem);
    }

    .landing-intro h1 {
        font-size: 1.9rem;
        line-height: 1.25;
        margin-bottom: 2rem;
    }

    .landing-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .landing-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .landing-video {
        width: 100%;
        font-size: 1rem;
    }

    .landing-video h2 {
        font-size: 1.5rem;
    }

    .landing-video a,
    .landing-video span {
        overflow-wrap: anywhere;
    }

    .landing-more {
        margin-top: 2rem !important;
    }

    .footer-panel {
        padding: 2rem 0 3rem;
    }

    .footer-content {
        width: calc(100% - 2rem);
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2.5rem;
        align-items: center;
    }

    .footer-links a {
        margin-right: 0;
        font-size: 1rem;
        line-height: 1.4;
    }

    .footer-logos {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .footer-text {
        font-size: 1rem;
    }

    .footer-partner-logos {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .cookie-banner {
        min-height: 0;
        padding: 1rem 3.5rem 1rem 1rem;
        font-size: 1rem;
    }

    .cookie-banner button {
        right: .75rem;
    }

    .collections-page,
    .about-page,
    .citation-page {
        width: calc(100% - 2rem);
        margin: 2rem auto;
    }

    .collections-top,
    .collection-content,
    .about-layout,
    .citation-page,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .address,
    .einzelstempel,
    .rollen-und-platten,
    .feedback-zu-technischen-fragen {
        grid-column: 1;
        grid-row: auto;
        margin-left: 0;
    }

    .impressum-page-content,
    .barrier-page-content,
    .datenschutz-erklaerung {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .static-page-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-image-slider .ui-galleria-item-prev {
        left: 0 !important;
    }

    .about-image-slider .ui-galleria-item-next {
        right: 0 !important;
    }

    .about-slider-playbar {
        left: 0;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu{

        display:flex;
        justify-content:center;
        align-items:center;
        width:100%;
        margin:20px 0 30px 0;
    }

    .mobile-panel-menu {
        display: inline-block;
        width: auto !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .mobile-panel-menu .ui-panelmenu-panel {
        width: auto !important;
    }

    /* ==================================================
       Burger Button
    =================================================== */

    .mobile-panel-menu .ui-panelmenu-header{

        position:relative;

        display:flex !important;
        justify-content:center;
        align-items:center;

        width:46px !important;
        height:46px !important;

        margin:0 auto !important;
        padding:0 !important;

        border:none !important;
        background:transparent !important;
        box-shadow:none !important;
    }

    .mobile-panel-menu .ui-panelmenu-content{

        position:absolute;

        top:58px;
        left:50%;

        transform:translateX(-50%);

        width:min(90vw,420px) !important;

        margin-top:0;

        background:#fff !important;

        border:1px solid #d8e2e1 !important;
    }

    .mobile-panel-menu .ui-panelmenu-header>a {
        position: absolute;
        inset: 0;
        display: block;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    /* PrimeFaces Sprite entfernen */

    .mobile-panel-menu .ui-icon-triangle-1-e,
    .mobile-panel-menu .ui-icon-triangle-1-s {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        width: 30px;
        height: 30px;
        margin: 0 !important;
        background: none !important;
        text-indent: 0;
        overflow: visible;
        transition: all .25s ease;
    }

    /* Burger */

    .mobile-panel-menu .ui-icon-triangle-1-e:before {
        content: "☰";
        display: block;
        text-align: center;
        font-size: 28px;
        line-height: 30px;
        color: #285052;
        transition: all .25s ease;
    }

    /* X */

    .mobile-panel-menu .ui-icon-triangle-1-s:before {
        content: "✕";
        display: block;
        text-align: center;
        font-size: 24px;
        line-height: 30px;
        color: #285052;
        transition: all .25s ease;
    }

    /* Menü */

    .mobile-panel-menu .ui-panelmenu-content {
        margin-top: 12px;
        border: none !important;
        box-shadow: none !important;
        background: #fff;
    }

    .mobile-panel-menu .ui-menuitem-link {
        padding: 14px 10px !important;
        font-size: 16px !important;
        background: #fff !important;
        border: none !important;
        transition: background .2s ease;
    }

    .mobile-panel-menu .ui-menuitem-link:hover {
        background: #eef5f4 !important;
        color: #d97373 !important;
    }

    .mobile-panel-menu .ui-panelmenu-header:focus,
    .mobile-panel-menu .ui-panelmenu-header:focus-visible,
    .mobile-panel-menu .ui-panelmenu-header > a:focus,
    .mobile-panel-menu .ui-panelmenu-header > a:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }

    .footer-logo-left,
    .footer-logo-right {
        align-items: center;
    }

    .logo-container {
        text-align: center !important;
        width: 100%;
    }

    .header-logo-link {
        display: flex;
        justify-content: center;
    }

    .top-right-nav {
        width: 100%;
        text-align: center !important;
        margin: 0 !important;
    }

    .search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) repeat(3, 44px);
        gap: 6px;
        width: 100%;
        align-items: center;
    }

    .landing-search-input {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        height: 44px;
        box-sizing: border-box;
    }

    .landing-search-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        margin-left: 0;
    }

    .header-content .logo-container .site-title {
        font-size: 2.6rem !important;
        line-height: 1.1 !important;
        font-weight: 500 !important;
    }

    .header-logo-staatsbibliothek {
        max-width: 230px !important;
        width: auto !important;
        height: auto !important;
    }

}

@media (max-width: 480px) {

        .landing-search-options .ui-selectoneradio tbody,
        .landing-search-options .ui-selectoneradio tr {
            flex-direction: column;
            align-items: flex-start;
        }

        .site-title {
            font-size: 1.65rem !important;
        }
    }


/* Gesamter Seiteninhalt: zentriert, begrenzte Breite */
.hilfe-seite {
    max-width: 900px;
    padding: 2rem 1rem;
    line-height: 1.6;
    color: #5e6a71;
    font-size: 16px;
    margin-left: 20rem;
}

.hilfe-seite h1 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #5e6a71;
}

.hilfe-seite h3 {
    font-weight: 500;
    margin-top: 2rem;
}

/* ---- Tabelle ---- */

.hilfe-tabelle.ui-datatable table {
    border-collapse: collapse;
    width: 100%;
}

.hilfe-tabelle.ui-datatable thead th {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #4a4a4a;
}

.hilfe-tabelle.ui-datatable tbody td {
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: left;
    padding: 0.75rem 1rem;
    color: #5e6a71;
}
/* Abstand zwischen den Tabellen */
.hilfe-tabelle {
    margin-top: 2.5rem;
}

/* Äußeren Rahmen */
.hilfe-tabelle.ui-datatable,
.hilfe-tabelle.ui-datatable table {
    border: none;
}

/* Titelzeile  */
.hilfe-tabelle.ui-datatable .ui-datatable-header {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-weight: 700;
    color: #4a4a4a;
    padding: 0.75rem 1rem;
}

/* Spaltenbeschriftungen */
.hilfe-tabelle.ui-datatable thead th {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-weight: 400;
    color: #5e6a71;
    padding: 0.75rem 1rem;
}

/* Datenzellen */
.hilfe-tabelle.ui-datatable tbody td {
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 1rem;
    color: #5e6a71;
}

.motivTooltip {
    margin-left: 10px !important;
}

/*dashboard*/
.dashboard-page {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.dashboard-page h1 {
    font-size: 3.4rem;
    font-weight: normal;
    color: #5d6a72;
    margin-bottom: 4rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 8rem;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 1rem;
}

.dashboard-tile,
.dashboard-tile:link,
.dashboard-tile:visited,
.dashboard-tile:hover,
.dashboard-tile:focus,
.dashboard-tile:active {
    color: #ffffff;
    text-decoration: none;
}

.tile-green {
    background: #2e6b62;
}

.tile-green:hover {
    background: #26594f;
}

.tile-blue {
    background: #3d456e;
}

.tile-blue:hover {
    background: #333a5c;
}

.tile-gray {
    background: #9aa5a8;
    cursor: default;
}

/* =========================================================
   NEUIGKEITEN
   ========================================================= */


.news-page {
    color: rgb(98, 110, 116);
}

.news-page h1,
.news-page h2,
.news-page h3,
.news-page h4,
.news-page p,
.news-page li,
.news-page span,
.news-page div {
    color: rgb(98, 110, 116);
}

.news-page a {
    color: rgb(24, 129, 214);
}

.news-page {
    width: 100%;
    max-width: 1210px;
    margin: 0 auto;
    padding: 65px 0 45px;
}

.news-page h1 {
    margin: 0 0 32px;
    font-size: 40px;
    font-weight: 400;
    color: #657179;
}


/* Introtext */

.news-intro {
    margin-bottom: 55px;
    font-size: 21px;
    line-height: 1.25;
    color: #657179;
}

.news-intro a {
    color: #267bc5;
}


/* =========================================================
   ZWEISPALTIGES LAYOUT
   ========================================================= */

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 70px;
    align-items: start;
}

.news-content,
.news-sidebar {
    min-width: 0;
}


/* =========================================================
   LINKE SPALTE
   ========================================================= */

.news-entry {
    margin-bottom: 33px;
    color: #657179;
    font-size: 12px;
    line-height: 1.45;
}

.news-entry p {
    margin: 0 0 10px;
}

.news-heading {
    margin-bottom: 10px !important;
}

.news-heading strong {
    font-weight: 700;
}

.news-entry ul,
.news-entry ol {
    margin-top: 7px;
    margin-bottom: 12px;
    padding-left: 28px;
}

.news-entry li {
    margin-bottom: 3px;
}


/* =========================================================
   RECHTE SPALTE
   ========================================================= */

.news-download-block {
    padding: 20px 0 25px;
}

.news-download-first {
    border-top: 1px solid #bfc3c5;
}

.news-download-last {
    border-bottom: 1px solid #bfc3c5;
}

.news-download-block h4 {
    margin: 0 0 14px;
    color: #657179;
    font-size:18px;
    font-weight: 500;
    line-height: 1.4;
}

.news-download-block a,
.news-migration a {
    color: #267bc5;
    font-size:18px;
    font-weight: 500;
    text-decoration: none;
}

.news-download-block a:hover,
.news-migration a:hover {
    text-decoration: underline;
}


/* Migration */

.news-migration {
    padding-top: 25px;
}

.news-migration h2 {
    margin: 0 0 16px;
    color: #657179;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
}

.news-download-group {
    border-top: 1px solid #c9c9c9;
    border-bottom: 1px solid #c9c9c9;
    padding: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .news-page {
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (max-width: 900px) {

    .news-layout {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .news-intro {
        font-size: 18px;
    }
}

@media (max-width: 600px) {

    .news-page {
        padding-top: 35px;
    }

    .news-page h1 {
        font-size: 25px;
    }

    .news-entry {
        font-size: 13px;
    }
}