/* Frontend member login */
.mod_login {
    box-sizing: border-box;
    width: 100%;
    max-width: 340px;
    margin: 16px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ded8d2;
    border-radius: 6px;
    color: #302b27;
}

.mod_login :is(h1, h2, h3) {
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.3;
}

.mod_login .formbody {
    display: grid;
    gap: 12px;
}

.mod_login .widget {
    margin: 0;
}

.mod_login .widget > label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: normal;
    color: #625a54;
}

.mod_login input.text {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #b7ada5;
    border-radius: 6px;
    background: #faf9f7;
    color: #302b27;
    font: inherit;
    font-size: 16px;
}

.mod_login button.submit {
    width: auto;
    min-height: 36px;
    padding: 7px 16px;
    border: 1px solid #b7ada5;
    border-radius: 6px;
    background: #f5f2ef;
    color: #803203;
    font: inherit;
    font-size: 12px;
    font-weight: normal;
    cursor: pointer;
}

.mod_login button.submit:hover {
    background: #eae4de;
}

.mod_login :is(input, button, a):focus-visible {
    outline: 3px solid #a84204;
    outline-offset: 3px;
}

.mod_login .checkbox_container {
    margin: 0;
    padding: 0;
    border: 0;
}

.mod_login .error {
    margin: 0;
    padding: 12px;
    border: 1px solid #dcb4af;
    border-radius: 6px;
    background: #fff0ee;
    color: #852d25;
}

.mod_login .login_info {
    margin: 0;
    line-height: 1.6;
}

.mod_login .password-reset {
    text-align: center;
}

@media (max-width: 480px) {
    .mod_login {
        padding: 20px;
        margin: 16px auto;
    }
}

/* ==========================================================================
   1. GLOBALE BASIS- & TYPOGRAFIE-REGELN (html, body, *, Globale HTML-Tags)
   ========================================================================== */
html {
    height: 101%;
    background-color: #e3e1e1;
}

body {
    margin: 24px;
    padding: 0;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
    font-size: 12px;
    color: #000000;
}

* {
    font-family: Helvetica, Verdana, sans-serif;
}

/* Standard-Text- und Inhaltselemente */
a, body, div, em, input, label, li, ol, p, select, span, strong, td, th, textarea, u, ul {
    font-family: Verdana, sans-serif;
}

a, body, div, input, label, li, ol, p, select, td, th, textarea, u, ul {
    font-size: 12px;
    line-height: 1.5em;
}

p, pre, form {
    margin: 0;
    padding: 0;
}

p {
    margin: 0.5em;
}

strong {
    color: #6B6B6B;
}

img {
    vertical-align: middle;
    border-width: 0px;
}

:focus {
    outline: 0;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 12px;
}

h1 {
    margin: 0px 0px 12px;
    padding: 0;
    font-size: 16px;
    line-height: 1.3em;
    font-weight: bold;
}

h2 {
    margin: 0 0 1.5em;
    padding: 0;
    font-size: 13px;
    font-weight: bold;
}

h3 {
    margin: 0 0 1.5em;
    padding: 0;
    font-size: 11px;
    font-weight: bold;
}

/* Allgemeine Link-Formatierungen */
a {
    color: #a84204;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: #a84204;
    text-decoration: underline;
}

/* Listen-Grundwerte */
li, li li {
    list-style-type: disc;
    margin: 5px 0 10px 18px;
    padding: 0 0 0 5px;
}

li li {
    list-style-type: circle;
}

li ul {
    list-style-type: circle;
    margin: 6px 0 8px;
}

ol li {
    list-style-type: decimal;
    margin: 15px 0 5px 20px;
    font-size: 110%;
}


/* ==========================================================================
   2. SEITEN-WRAPPER & HAUPT-LAYOUTSTEUERUNG (Contao 5 Flexbox-Struktur)
   ========================================================================== */
#wrapper {
    width: 870px;
    max-width: 100%;
    margin: 10px auto;
}

#header {
    background-color: #ffffff;
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    padding-left: 0;
    margin: 0 auto;
}

#header > .inside {
    width: 100%;
}

#container {
    background-color: #ffffff;
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    padding-left: 0;
    margin-top: 35px; /* Abstandhalter fuer absolute Metanavigation */
}


/* ==========================================================================
   3. HEADER-BEREICH (Logo & Metanavigation)
   ========================================================================== */
#header {
    background-color: #FFFFFF;
    border-width: 0 0 1px;
    border-style: solid;
    border-color: #d1cfcf;
    position: relative;
    height: auto !important;
    text-align: center;
}

#headerlogo {
    display: inline-block;
    float: none !important;
    margin: 0 auto;
}

#headerlogo img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Metanavigation (Top-Links wie Impressum, Datenschutz...) */
#header .mod_customnav {
    position: absolute !important;
    bottom: -35px;
    right: 0px !important;
    font-size: 11px;
    text-decoration: underline;
    z-index: 5;
}

#header .mod_customnav ul {
    list-style-type: none;
    margin: 0 12px 0 0;
}

#header .mod_customnav li {
    width: auto;
    float: left;
    list-style-type: none;
    padding: 0 5px;
}


/* ==========================================================================
   4. MAIN-BEREICH (Hauptspalte für Inhaltselemente)
   ========================================================================== */
#main {
    order: 2;
    flex: 1;
    min-width: 0;
    background-color: #ffffff;
    border-width: 0 0 0 1px;
    border-style: dotted;
    border-color: #adacac;
}

#main .inside {
    padding: 30px 30px 20px 25px;
}

/* Inhaltselemente (Artikel & Texte) */
.mod_article {
    padding: 18px;
}

.mod_article.first {
    padding: 0;
}

.mod_article .back {
    margin: 18px;
}

.mod_article .more {
    display: inline;
}

.ce_text, .teaser {
    margin: 0 0 12px;
    line-height: 1.4;
}

.ce_text h2 {
    margin: 10px 0 5px;
    font-size: 13px;
    line-height: 1.2;
}

.ce_text .image_container,
.ce_image {
    margin: 12px 10px 12px 5px;
}

.ce_toplink {
    padding: 10px 0;
}

.ce_toplink a {
    padding: 5px;
}

div.error, p.error {
    margin: 0;
    padding: 2px 0px 0px;
    font-size: 9px;
    color: #ff0000;
}


/* ==========================================================================
   5. ASIDE-BEREICH (Linke Spalte & Hauptnavigation)
   ========================================================================== */
#left {
    order: 1;
    flex: 0 0 250px;
    margin: 5px;
    position: relative !important;
    right: auto !important;
}

#left .inside {
    margin: 25px;
}

/* Hauptnavigation */
.mod_navigation {
    display: block !important;
    width: 100%;
}

.mod_navigation ul {
    list-style-type: none;
    margin: 0px 5px;
    padding: 0;
    border: 0;
}

.mod_navigation li {
    list-style-type: none;
    margin: 0;
    padding: 8px 0px 8px 25px;
    border: 0;
}

.mod_navigation a, .mod_navigation li, .mod_navigation span {
    padding: 0 0 0 5px;
    font-size: 13px;
    font-weight: bold;
}

/* Hauptnavigation Level 2 (Untermenüs) */
.mod_navigation .level_2 {
    padding: 3px 0px 0px 9px;
    border-width: 0 0 0px;
}

.mod_navigation .level_2 li {
    padding: 0px 0px 3px;
    border-width: 0px;
}

.mod_navigation .level_2 a, .mod_navigation .level_2 li, .mod_navigation .level_2 span {
    font-size: 11px;
    font-weight: bold;
}

/* Menüsteuerung über Navigations-Trails */
.mod_navigation .level_1 .level_2 {
    display: none;
}

.mod_navigation .active .level_2, .mod_navigation .trail .level_2 {
    display: block;
}

.level_1 li.trail, .trail .level_2 li {
    color: #000000;
}

/* Responsive Menü-Anker (Mobile Layouts) */
.showNav, .hideNav {
    display: none;
}


/* ==========================================================================
   6. FOOTER-BEREICH (Fusszeile)
   ========================================================================== */
#footer {
    background-color: #ffffff;
    border-width: 1px;
    border-style: solid;
    border-color: #cfcaca;
}

#footer h2 {
    text-align: center;
    padding: 30px;
    font-size: 14px;
    font-weight: bold;
}

#footer .mod_customnav {
    float: right;
}

#footer .mod_customnav ul {
    margin: 0 12px 0 0;
}

#footer .mod_customnav li {
    display: inline;
    list-style-type: none;
}

#footer .mod_customnav li a {
    padding: 0 5px;
}


/* ==========================================================================
   7. SPEZIELLE COMPONENTEN (Events, Formulare, Kalender, Module)
   ========================================================================== */
/* Events & Eventlisten */
.cap_outside {
    background-color: #f5f2f2;
}

#home .mod_eventlist {
    margin: 20px;
    background-color: #F5F2F2;
    border-width: 0px;
}

#home .mod_eventlist .event {
    border-width: 0px;
}

#home .mod_eventlist .event p.subtitle {
    font-size: 100%;
    font-weight: bold;
}

#home .mod_eventlist .event a {
    font-weight: bold;
}

#home .mod_eventlist .event a.readmore {
    font-size: 80%;
    font-weight: bold;
}

#home .mod_eventlist h2 {
    margin: 5px 0 6px;
    padding: 0 0 0 3px;
}

#home .ce_text .image_container {
    margin: 0px 10px;
}

p#artistspage {
    text-align: right;
    margin: 8px;
    padding: 0 55px 0 0;
}

.image_container .caption {
    margin: 0;
    padding: 3px;
    font-size: 90%;
    font-style: italic;
}

.mod_eventlist .header h2, .mod_eventlist .header a {
    margin: 0;
    padding: 3px 0px 4px 6px;
    font-size: 12px;
    font-weight: bold;
}

.event .image_container {
    margin: 20px 0;
}

.event.layout_full h2.subtitle {
    margin: 25px 0 10px;
}

.mod_eventlist .event.layout_upcoming .subtitle {
    font-size: 100%;
    font-weight: bold;
}

.event.layout_full .eintrittspreise p {
    margin: 0 0 4px;
}

.event .ce_text {
    margin: 0 30px 0 0;
}

.mod_eventlist .header {
    margin: 8px;
    background-color: #e6e6e6;
    border-width: 1px;
    border-style: solid;
    border-color: #cccccc;
}

.mod_eventlist .header.first {
    border-width: 1px;
    border-style: solid;
    border-color: #cccccc;
}

.mod_eventlist .event {
    padding: 10px 6px 12px;
    border-width: 0 1px 0 0;
    border-style: solid;
    border-color: #cccccc;
    border-bottom: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
}

.mod_eventlist .event .ce_text {
    padding: 5px 0px 0px;
}

.mod_eventlist .event .ce_text a {
    white-space: nowrap;
    padding: 0 0 0 8px;
    font-size: 80%;
    font-weight: bold;
}

.mod_eventlist .event .image_container {
    float: right;
    margin: 0;
    padding: 20px 20px 5px 10px;
}

.mod_eventlist .event .time, .mod_eventlist .event .date, .mod_eventlist .event .day {
    margin: -6px 0 6px;
    color: #4d4d4d;
    font-weight: bold;
}

/* Event-Reader */
.mod_eventreader .info {
    margin: -12px;
    font-size: 10px;
    color: #999999;
}

.mod_eventreader .recurring {
    margin: 2px;
    font-size: 10px;
    color: #009900;
}

.mod_eventreader .ce_text {
    margin: 25px;
}

.mod_eventreader .back {
    margin: 18px;
}

.mod_eventreader .date, .mod_eventreader .genre, .mod_eventreader .subtitle, .mod_eventreader .eintritt {
    margin: 8px 0;
    color: #6b6b6b;
    font-weight: bold;
}

.mod_eventreader .date {
    margin: 12px 0 8px;
}

.mod_eventreader .eintritt {
    margin: 14px 0 4px;
}

.mod_eventreader .datetime_hinweis {
    margin: 8px;
}

.mod_eventreader .subtitle {
    margin: -5px;
    font-size: 12px;
}

.mod_eventreader .vvk_ab, .mod_eventreader .einlass {
    margin: 10px 0 4px 4px;
}

/* Formulare allgemein */

/* Gallery Creator: Bildkacheln innerhalb eines Albums */
.content-gallery-creator .gc-album-detail-picture-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
    gap: 12px;
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.content-gallery-creator .gc-album-detail-picture-list-item {
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-gallery-creator .gc-album-detail-picture-list-item figure {
    margin: 0;
}

.content-gallery-creator .gc-album-detail-picture-list-item figure > a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    background-color: #f5f2f2;
}

.content-gallery-creator .gc-album-detail-picture-list-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.content-gallery-creator .gc-album-detail-picture-list-item a:hover {
    background-color: #e3e1e1;
}

.content-gallery-creator .gc-album-detail-picture-list-item a:focus-visible {
    outline: 2px solid #a84204;
    outline-offset: -2px;
}

.content-gallery-creator nav[data-pagination] {
    margin: 24px 0 8px;
}

.content-gallery-creator nav[data-pagination] ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-gallery-creator nav[data-pagination] li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-gallery-creator nav[data-pagination] a[data-page] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f5f2f2;
    color: #a84204;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.content-gallery-creator nav[data-pagination] a[data-page]:hover {
    background-color: #e3e1e1;
    color: #4f301e;
}

.content-gallery-creator nav[data-pagination] a[data-page].active {
    background-color: #6b432b;
    color: #ffffff;
    font-weight: bold;
}

.content-gallery-creator nav[data-pagination] a[data-page]:focus-visible {
    outline: 2px solid #a84204;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .content-gallery-creator nav[data-pagination] a[data-page] {
        transition: none;
    }
}

/* Gallery Creator: kompakte Albumauswahl ohne Vorschaubilder */
.content-gallery-creator .gc-album-list,
.content-gallery-creator .gc-album-list-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-gallery-creator .gc-album-list .gc-album-list-figure,
.content-gallery-creator .gc-album-list .gc-album-list-date,
.content-gallery-creator .gc-album-list .gc-album-list-location,
.content-gallery-creator .gc-album-list .gc-album-list-photographer,
.content-gallery-creator .gc-album-list .gc-album-list-teaser,
.content-gallery-creator .gc-album-list .gc-album-list-visitors,
.content-gallery-creator .gc-album-list .gc-album-list-child-album-count {
    display: none;
}

.content-gallery-creator .gc-album-list .gc-album-list-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 12px;
    padding: 2px 0;
    overflow-wrap: anywhere;
}

.content-gallery-creator .gc-album-list .gc-album-list-link {
    display: block;
    min-width: 0;
    padding: 6px 0;
}

.content-gallery-creator .gc-album-list .gc-album-list-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.content-gallery-creator .gc-album-list .gc-album-list-picture-count {
    color: #6b6b6b;
    font-size: 12px;
    white-space: nowrap;
}

.content-gallery-creator .gc-album-detail-back-link {
    margin: 16px 0;
}

.content-gallery-creator .gc-album-detail-back-link a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f5f2f2;
    border-radius: 4px;
}

.content-gallery-creator .gc-album-list .gc-album-list-link:hover,
.content-gallery-creator .gc-album-detail-back-link a:hover {
    color: #6b432b;
    text-decoration: underline;
}

.content-gallery-creator .gc-album-list .gc-album-list-link:focus-visible,
.content-gallery-creator .gc-album-detail-back-link a:focus-visible {
    outline: 2px solid #a84204;
    outline-offset: -2px;
}


#footer #activeuserlink {
    display: block;
    margin: 0 auto;
    padding: 8px 15px 50px 0;
    text-align: right;
}


/* ==========================================================================
   8. RESPONSIVE LAYOUTS (Tablets, Smartphones & kleine Displays)
   ========================================================================== */
@media screen and (max-width: 960px) {
    body {
        margin: 16px;
    }

    #left {
        width: 210px;
        flex-basis: 210px;
    }

    #left .inside {
        margin: 20px 12px;
    }

    #main .inside {
        padding: 24px 20px;
    }

    .mod_article {
        padding: 12px;
    }
}

@media screen and (max-width: 767px) {
    body {
        margin: 12px;
    }

    #header .mod_customnav {
        position: static !important;
    }

    #header .mod_customnav ul,
    #footer .mod_customnav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    #header .mod_customnav li,
    #footer .mod_customnav li {
        float: none;
        margin: 0;
        padding: 0;
    }

    #header .mod_customnav li a,
    #footer .mod_customnav li a {
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 44px;
        padding: 8px 12px;
    }

    #container {
        flex-direction: column;
        align-items: stretch;
        margin-top: 16px;
    }

    #left,
    #main {
        float: none;
        box-sizing: border-box;
        width: 100%;
        flex: 0 0 auto;
        margin: 0;
    }

    #left .inside {
        margin: 0;
    }

    /* :target steuert das Menue ohne JavaScript, auch beim Skip-Link. */
    #mod_navigationMain {
        display: none !important;
        width: auto;
        margin: 12px;
    }

    #mod_navigationMain:target,
    #mod_navigationMain:has(:target) {
        display: block !important;
    }

    #main > .showNav,
    #mod_navigationMain > .hideNav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        min-height: 44px;
        padding: 10px 16px;
        color: #a84204;
        background-color: #f5f2f2;
        border: 0;
        font-size: 14px;
    }

    #mod_navigationMain > .hideNav {
        color: #ffffff;
        background-color: #6b432b;
        border-radius: 4px;
    }

    #mod_navigationMain > .hideNav:hover {
        background-color: #4f301e;
    }

    #container:has(#mod_navigationMain:target) #main > .showNav,
    #container:has(#mod_navigationMain :target) #main > .showNav {
        display: none;
    }

    #main > .showNav:focus-visible,
    #mod_navigationMain a:focus-visible {
        outline: 2px solid #a84204;
        outline-offset: -2px;
    }

    #mod_navigationMain > .hideNav:focus-visible {
        outline-color: #ffffff;
        outline-offset: -4px;
    }

    #main {
        border-width: 1px 0 0;
        overflow-wrap: anywhere;
    }

    #main .inside {
        padding: 20px 16px;
    }

    #main :is(p, a, li, strong, span, em, label, input, select, textarea),
    #footer h2 {
        font-size: 14px;
    }

    #main :is(input, select, textarea, iframe, video) {
        box-sizing: border-box;
        max-width: 100%;
    }

    #main table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    #main .float_left,
    #main .float_right,
    .mod_eventlist .event .image_container {
        float: none;
        margin: 12px 0;
        padding: 0;
    }

    .mod_navigation .level_1 > li > a,
    .mod_navigation .level_1 > li > strong,
    .mod_navigation .level_2 a,
    .mod_navigation .level_2 strong {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 36px;
        padding: 4px 12px;
        font-size: 14px;
    }

    .event .ce_text,
    .mod_eventreader .ce_text {
        margin: 12px 0;
    }

    .mod_eventlist .event .ce_text a {
        white-space: normal;
    }

    #footer {
        box-sizing: border-box;
        height: auto;
    }

    #footer .mod_customnav {
        float: none;
    }

    #footer h2 {
        margin: 0;
        padding: 16px;
    }

}

@media screen and (max-width: 480px) {
    body {
        margin: 8px;
    }

    #wrapper {
        margin: 0 auto;
    }

    #container {
        margin-top: 12px;
    }

    #mod_navigationMain {
        margin: 8px;
    }

    #main .inside {
        padding: 16px 10px;
    }

    .mod_article {
        padding: 8px 0;
    }

    #main h1 {
        font-size: 18px;
    }

    #main h2 {
        font-size: 16px;
    }

    p#artistspage {
        padding-right: 0;
    }

    #footer h2 {
        padding: 12px;
    }
}
