/* Cantus Planus CSS Code 
=================================================*/


/* EVENT BANNER */
.event-banner {
    background: linear-gradient(135deg, #a47934 0%, #c7ad7c 100%);
    border-bottom: 3px solid #732822;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.event-banner-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.event-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.event-main-text {
    color: white;
    font-size: 1.1em;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.event-main-text strong {
    font-weight: bold;
}

.event-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    font-style: italic;
    margin-left: 30px;
}

.event-banner-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-details-btn {
    background: #732822;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.event-details-btn:hover {
    background: white;
    color: #732822 !important;
    border-color: #732822;
    transform: translateY(-1px);
}

.event-close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.event-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive Design für Banner */
@media (min-width: 481px) and (max-width: 767px) {
    .event-banner-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .event-banner-text {
        align-items: center;
    }
    
    .event-subtitle {
        margin-left: 0;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    .event-banner {
        padding: 12px 0;
    }
    
    .event-banner-content {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
        text-align: center;
    }
    
    .event-banner-text {
        align-items: center;
    }
    
    .event-main-text {
        font-size: 1em;
        line-height: 1.3;
    }
    
    .event-subtitle {
        margin-left: 0;
        font-size: 0.85em;
    }
    
    .event-details-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Animation beim Schließen */
.event-banner.banner-hidden {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.5s ease;
    max-height: 0;
    overflow: hidden;
    padding: 0;
}

/* Banner Ende

a:hover {
    color: #732822;
}


/* HEADER */

.navigation ul li.active a,
.navigation ul li a:hover,
.navigation ul li a.selected,
.navigation ul li.active a {
    /*border-top: 4px solid #732822;*/
    border-top: 4px solid #cccccc;
}

.navigation ul li.active a {
    background: rgba(255, 255, 255, 0.7);
}

#nav,
#nav li ul,
#nav li ul li ul,
.navigation ul li ul,
.navigation ul li ul li ul {
    z-index: 9999 !important;
}

.logo {
    margin: 30px 0 0px 0px;
    /*width: 340px;*/
    width: 305px;
}

.lang-switcher {
    display: flex;
}

.lang-switcher-divider {
    padding: 0px 5px;
}

.lang-active {
    color: #ed786a;
}

.logo img {
    width: 405px;
    height: auto;
}

.vortragende li {
    padding-bottom: 10px;
    list-style: inside;
    line-height: 1.2em;
}

header .main-header {
    background: #fff!important;
    /*background: #e0daba !important;*/
    /*border-bottom: 5px solid #732822;*/
}

.button2 {
    padding: 12px !important;
    letter-spacing: 0.25em;
    background: #c7ad7c !important;
    color: #fff;
    display: inline-block;
    margin: 5px 5px 5px 0;
    border: none;
    cursor: pointer;
    text-shadow: none !important;
    border-radius: 4px;
}


/*MIRADOR*/

.mirador-viewer h2,
.mirador-viewer h3 {
    font-size: 1.2em;
    line-height: 1.1em;
}

.mirador-container .plus {
    font-size: 5em !important;
    font-weight: bold;
    margin-bottom: 20px;
}

.mirador-container .slot h1 {
    color: gray;
    text-align: center;
    font-weight: normal;
    font-size: 1.8em;
}

#viewer-container {
    position: fixed !important;
    top: 155px !important;
    left: 0px !important;
    width: 100%;
    height: 100%;
    z-index: 70 !important;
    background: #000 !important;
}

.mirador-container .slot {
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 5px #000;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
}

.mirador-container .mirador-viewer ul.listing-thumbs li img {
    background-color: #eee;
    min-height: 150px !important;
    min-width: 43px !important;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
    max-width: 100px !important;
    max-height: 85px !important;
}

.mirador-container .items-listing li:last-child,
.mirador-container .toc li:last-child,
.mirador-container .mirador-viewer ul.listing-thumbs li:last-child {
    padding-bottom: 200px;
}

#header-wrapper {
    /* min-height: 144px; */
    min-height: 110px;
}

.navigation ul li a {
    text-transform: none;
}

.page-title h3 {
    font-size: 1.3em;
    line-height: 1.3em;
    max-width: 80%;
}

.content-block {
    padding-bottom: 20px;
}

.content-block h5 {
    padding-bottom: 10px;
}

.line {
    /* margin-top: 20px !important;
    margin-bottom: 25px !important; */
    margin-top: 10px !important;
    margin-bottom: 35px !important;
}


/*#wrap.boxed {

    background: #e0daba;

}*/

.top-bar {
    /*background: #732822;*/
    background: #404041;
    min-height: 20px;
    display: none;
}


/* .slides {   
    border-bottom: 6px solid #732822;
} */

.float-left {
    float: left;
}


/* SLIDER */

.slider-1 .slides li h2,
.slider-1 .slides li p {
    /* background: rgba(0,0,0, 0.3);  */
    background: rgba(139, 64, 51, 0.8);
    padding: 10px 15px;
    text-align: left;
    border-radius: 4px;
    line-height: 1.2em;
}

.slide .item h4 {
    color: #a47934;
}

.latest-blog .item img.pic {
    margin-bottom: 15px;
    /* border: 2px solid #c7ad7c;   */
    /* -webkit-box-shadow: 5px 5px 5px 0px rgba(209,205,209,0.7);
    -moz-box-shadow: 5px 5px 5px 0px rgba(209,205,209,0.7);
    box-shadow: 5px 5px 5px 0px rgba(209,205,209,0.7); */
}

.blog-padding {
    padding-top: 45px;
}

.content-block,
.container .columns {
    line-height: 1.3em;
    text-align: justify;
}

.quarter-width {
    width: 80%;
}

.mirador-container {
    position: relative !important;
    height: 85% !important;
    width: 100% !important;
}

.is-embedded {
    display: none;
}

.btn-show-viewer {
    cursor: pointer;
}


/* CONTENT */

.alert {
    color: darkred !important;
    padding: 20px 0px 10px 0px;
}

#wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.bottom-3 {
    margin-bottom: 0px !important;
}

.page-title {
    padding: 10px 0 0px 0;
    margin-bottom: 30px;
    /* background: #732822; */
    background: #c7ad7c;
}

.flexslider {
    border-top: 3px solid #a47934;
    border-bottom: 3px solid #a47934;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 106px;
    left: 0px;
    /* border-top: 3px solid #732822; */
    border-top: 3px solid #a47934;
    width: 100%;
    height: 10px;
}

.page-title::after {
    content: '';
    position: absolute;
    top: 153px;
    left: 0px;
    border-top: 3px solid #a47934;
    width: 100%;
    height: 10px;
}

.full-width {
    width: 100%;
}

.noten {
    font-size: 28px;
    font-family: "volpianoregular";
    font-style: normal;
}

.imageviewer {
    position: fixed !important;
}

table td a,
p a {
    font-weight: 500;
    color: #732822;
}

.link-list {
    margin-top: 10px;
}

.link-list li {
    padding-bottom: 10px;
    line-height: 1.4em;
}

.link-list li .link-icon {
    padding-right: 15px;
}

select {
    margin-right: 7px;
}

select,
input[type="text"] {
    padding: 5px;
    border-radius: 4px;
}

input[type="submit"],
input[type="BUTTON"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 4px;
    padding: 5px;
}

input[type="reset"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-right: 7px;
}


/* FOOTER */

.footer-links li {
    padding-bottom: 10px;
}

/* Footer links should be white, not theme color */
footer .footer-links a,
.footer-links a,
.footer-links a:link,
.footer-links a:visited {
    color: #fff !important;
}

footer .footer-links a:hover,
.footer-links a:hover {
    color: #ddd !important;
}

.footer-down {
    padding: 10px 0;
}

.footer-text {
    font-size: 0.8em;
    line-height: 1.3em;
    padding-right: 30px;
}

/*.footer-top {
     border-top: 5px solid #732822; 
} */

/* LISTS IN CONTENT */
/* Restore bullets/numbers hidden by base reset (ul, li {list-style:none}) */
/* IMPORTANT: Use shorthand syntax to prevent double bullets */
.main-content article ul {
    list-style: disc;
    list-style-position: outside;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

.main-content article ol {
    list-style: decimal;
    list-style-position: outside;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

/* Explicitly prevent double bullets on li elements */
.main-content article ul li {
    list-style: inherit;
}

.main-content article ol li {
    list-style: inherit;
}

/* Fix: Remove default bullets from styled lists (circle-list, etc.) that use :before icons */
.main-content article ul.circle-list,
.main-content article ul.square-list,
.main-content article ul.check-list,
.main-content article ul.plus-list,
.main-content article ul.arrow-list,
.main-content article ul.cross-list,
.main-content article ul.star-list,
.main-content article ul.minus-list,
.main-content article ul.heart-list,
.main-content article ul.asterisk-list {
    list-style: none;
}

.main-content article ul.circle-list li,
.main-content article ul.square-list li,
.main-content article ul.check-list li,
.main-content article ul.plus-list li,
.main-content article ul.arrow-list li,
.main-content article ul.cross-list li,
.main-content article ul.star-list li,
.main-content article ul.minus-list li,
.main-content article ul.heart-list li,
.main-content article ul.asterisk-list li {
    list-style: none;
}

.footer-center-image {
    width: 330px;
    background: url(../images/wappen.gif) left top no-repeat;
    background-size: auto;
    background-size: auto;
    background-size: 300px auto;
    height: 207px;
    position: relative;
    top: 85px;
    left: 61%;
    /* z-index: 40; */
}

.oeaw-logo {
    width: 85px;
    height: 73px;
    background: url(../images/oeaw_logo_white.png) left top no-repeat;
    background-size: auto;
    background-size: 85px 73px;
    margin-right: 55px;
    float: left;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
    -moz-opacity: 0.9;
    -khtml-opacity: 0.9;
    opacity: 0.9;
    padding-bottom: 0px;
    margin-top: 30px;
}

.acdh-logo {
    width: 85px;
    height: 73px;
    background: url(../images/acdh-ch-logo96.png) left top no-repeat;
    background-size: auto;
    background-size: 70px 73px;
    margin-right: 55px;
    float: left;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
    -moz-opacity: 0.9;
    -khtml-opacity: 0.9;
    opacity: 0.9;
    padding-bottom: 0px;
    margin-top: 30px;
}

.oeaw-colors {
    width: 380px;
    float: left;
    padding-bottom: 30px;
    font-size: 13px;
    margin-right: 40px;
    background: url(../images/oeaw_colors.png) left top no-repeat;
    background-size: auto;
    background-size: 240px 10px;
}

.fwf {
    padding-top: 30px;
}

.fwf-logo {
    width: 200px;
    height: 24px;
    background: url(../images/fwf_logo_white_200px.png) left top no-repeat;
    background-size: auto;
    background-size: 200px 24px;
    float: left;
}

.oenb-logo {
    width: 167px;
    height: 54px;
    background: url(../images/oenb_logo.png) left top no-repeat;
    background-size: auto;
    background-size: 167px 54px;
    float: left;
    margin-bottom: 20px;
    margin-top: -22px;
}


/*DATA TABLE*/

.custom-table-margin {
    margin-bottom: 30px;
}

.data-table {
    margin-top: 30px;
    width: 100%;
}

.data-table td {
    border: 1px solid #ddd;
    padding: 14px;
    line-height: 1.3em;
    vertical-align: top;
}

.data-table th {
    border: 1px solid #ddd;
    padding: 14px;
    line-height: 1.3em;
    vertical-align: top;
}

.data-table-head,
.data-table thead {
    background: #474747;
    color: #fff;
}

.data-table tr:nth-child(even),
.data-table-scroll tr:nth-child(even) {
    background-color: #f2f2f2;
}

.data-table-head td {
    padding: 15px;
}


/* SCROLL Table */

.data-table-scroll {
    margin-top: 30px;
    width: 100%;
    border-collapse: separate;
}

.data-table-scroll td {
    border: 0.1px solid #ddd;
    padding: 9px;
    line-height: 1.3em;
    vertical-align: top;
    font-size: 12px;
}

.data-table-scroll thead th,
.data-table-scroll tbody th {
    border: 0.1px solid #ddd;
    padding: 14px;
    line-height: 1.3em;
    vertical-align: middle;
    font-size: 12px;
    font-weight: bold;
    position: sticky;
    color: black;
}

.data-table-scroll thead th {
    top: 0;
    background: darkgrey;
}

.data-table-scroll tbody th {
    left: 0;
    background: white;
}


/* div um Tabelle mit max-height wichtig, sonst keine Funktion */

#max_height {
    max-height: 700px;
    overflow: auto;
}


/*Accordion */

.accordion h4 {
    background: #F5F5F5;
    font-size: 1em;
    line-height: 1.3em;
}

.accordion h4 a,
.accordion .icon-plus,
.accordion .icon-minus {
    color: #000;
}

.accordion h4.ui-state-active {
    background: #F5F5F5;
    border: 2px solid darkgrey;
}

.accordion h4.ui-state-active a {
    color: #000 !important;
}

@media (min-width: 481px) and (max-width: 767px) {
    .footer-center-image {
        display: none;
    }
    .page-title::after {
        display: none;
    }
    .page-title::before {
        display: none;
    }
    #menu {
        top: 25px;
    }
    #menu>a {
        background: #404041;
    }
    .slider-1,
    .slider-2 {
        display: none;
    }
    .page-title h3 {
        font-size: 1.3em;
        line-height: 1.2em;
        max-width: 100%;
        text-align: left;
    }
    /* .main-content {
        flex: 1;
        padding: 0px 15px !important;
        margin: 0px !important;
        width: 90% !important;
    } */
}


/* 
     ##Device = Most of the Smartphones Mobiles (Portrait)
     ##Screen = B/w 320px to 479px
   */

@media (min-width: 320px) and (max-width: 480px) {
    .footer-center-image {
        display: none;
    }
    .page-title::after {
        display: none;
    }
    .page-title::before {
        display: none;
    }
    #menu>a {
        background: #404041;
    }
    #menu {
        top: 25px;
    }
    .slider-1,
    .slider-2 {
        display: none;
    }
    .page-title h3 {
        font-size: 1.3em;
        line-height: 1.2em;
        max-width: 100%;
        text-align: left;
    }
}

#vertical-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

#vertical-tabs .tabs.chapter-nav {
    flex: 0 0 20%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#vertical-tabs ul.tabs li {
    font-size: 15px;
    text-align: left;
}

#vertical-tabs .tabs.chapter-nav li {
    margin-bottom: 0px;
}

#vertical-tabs .tabs.chapter-nav li a {
    display: block;
    padding: 3px 3px;
    border-left: 2px solid transparent;
}

#vertical-tabs .tabs.chapter-nav li.current a {
    font-weight: 700;
    border-left-color: #732822;
}

#vertical-tabs .chapter-content {
    flex: 1 1 0;
    min-width: 0;
}

#vertical-tabs .custom-tabs-text {
    width: 100%;
    float: none;
    padding-right: 20px;
}

#vertical-tabs .custom-tabs-images {
    width: 100%;
    float: none;
    margin-top: 20px;
}

#vertical-tabs.kirche-layout .chapter-content {
    display: block;
}

#vertical-tabs.kirche-layout .custom-tabs-text {
    width: auto;
    flex: 1 1 0;
    max-width: 100%;
    padding-right: 20px;
    font-size: 15px;
}

#vertical-tabs.kirche-layout .custom-tabs-images {
    width: auto;
    flex: 0 0 220px;
    max-width: 220px;
    margin-top: 0;
}

@media only screen and (max-width: 768px) {
    #vertical-tabs {
        flex-direction: column;
    }
    #vertical-tabs .tabs.chapter-nav {
        flex: 0 0 auto;
        width: 100%;
    }
    #vertical-tabs.kirche-layout .chapter-content {
        display: block;
    }
    #vertical-tabs.kirche-layout .custom-tabs-text {
        max-width: 100%;
    }
    #vertical-tabs.kirche-layout .custom-tabs-images {
        flex: 1 1 auto;
        max-width: 100%;
        margin-top: 20px;
    }
}
.gelehrte-overview-list li {
    margin-bottom: 0.6rem;
}


/* ===========================================
   API Content Styles - für Grav CMS gerenderte Inhalte
   =========================================== */

/* Horizontale Linien (hr) */
#page-content hr,
.main-content hr {
    border: none;
    border-top: 1px solid #e6e6e6;
    clear: both;
    height: 0;
    margin: 25px 0;
}

/* Tabellen - Basis-Styles für API-Content */
#page-content table,
.main-content article table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

#page-content table td,
#page-content table th,
.main-content article table td,
.main-content article table th {
    border: 1px solid #ddd;
    padding: 10px 14px;
    line-height: 1.3em;
    vertical-align: top;
    text-align: left;
}

#page-content table thead,
#page-content table th,
.main-content article table thead,
.main-content article table th {
    background: #474747;
    color: #fff;
    font-weight: bold;
}

#page-content table tr:nth-child(even),
.main-content article table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Links im API-Content */
#page-content a {
    color: #732822;
    font-weight: 500;
}

#page-content a:hover {
    color: #a47934;
    text-decoration: underline;
}
/* Fix: Force navigation to be visible on desktop */
@media screen and (min-width: 960px) {
    #nav {
        display: block !important;
    }
}

/* KAD page - details/summary styling */
details p {
    background-color: #ededed;
    margin-left: 1em;
    font-size: smaller;
    padding: 0.3em;
}

/* Heimatforschung pages - floating images */
.right {
    float: right;
    padding-left: 35px;
    padding-top: 7px;
}

/* Also apply float to images within .right links */
a.right img {
    float: right;
    padding-left: 35px;
    padding-top: 7px;
}

/* Grabsteinbuch - floating images with text wrap */
.pic_flow {
    float: left;
    padding-right: 35px;
    padding-bottom: 7px;
    max-width: 300px;
    height: auto;
}
/* Fix: Remove list markers from home page tiles */
.latest-blog .slidewrap2 ul,
.latest-blog .slidewrap2 li {
    list-style: none;
    list-style-type: none;
}

/* Fix: Remove list markers from home page tiles */
.latest-blog .slidewrap2 ul,
.latest-blog .slidewrap2 li {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.latest-blog .slidewrap2 li::marker {
    display: none !important;
    content: none !important;
}
