@font-face {
    font-family: 'archiaregular';
    src: url('/fileadmin/templates/fonts/archia-regular-webfont.eot');
    src: url('/fileadmin/templates/fonts/archia-regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('/fileadmin/templates/fonts/archia-regular-webfont.woff2') format('woff2'),
    url('/fileadmin/templates/fonts/archia-regular-webfont.woff') format('woff'),
    url('/fileadmin/templates/fonts/archia-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GT America';
    src: url('/fileadmin/templates/fonts/GT-America-Standard-Medium.woff2') format('woff2');
url('/fileadmin/templates/fonts/GT-America-Standard-Medium.woff') format('woff'),
url('/fileadmin/templates/fonts/GT-America-Standard-Medium.ttf') format('truetype');
url('/fileadmin/templates/fonts/GT-America-Standard-Medium.otf') format('oft');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT America Mono';
    src: url('/fileadmin/templates/fonts/GT-America-Mono-Regular.woff2') format('woff2');
url('/fileadmin/templates/fonts/GT-America-Mono-Regular.woff') format('woff'),
url('/fileadmin/templates/fonts/GT-America-Mono-Regular.ttf') format('truetype');
url('/fileadmin/templates/fonts/GT-America-Mono-Regular.otf') format('oft');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Hauptfarbe (Festival-Blau) */
    --color-main: #1351aa;
    /* Hellblau fuer Hover auf blauen Buttons/Links */
    --color-main-hover: #418fff;
    /* Text, Rahmen, dunkle Hintergruende */
    --color-dark: black;
    /* Text auf blauem/dunklem Hintergrund */
    --color-light: white;
}

hidden {
    display: none;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'GT America Mono';
}

#sprachauswahl {
    position: absolute;
    top: 22px;
    right: 120px;
    z-index: 9000000;
}

#sprachauswahl ul li {
    list-style-type: none;
    float: left;
    margin-right: 8px;
}

#sprachauswahl ul li a {
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    color: var(--color-dark);
}

#sprachauswahl ul li.aktiv a {
    color: var(--color-dark);
    text-decoration: underline;
}

.frame-layout-0 header h1 {
    margin: 0 30px 20px;
    width: calc(100% - 60px);
    font-size: 30px;
    line-height: 40px;
}

div.social {
    position: absolute;
    top: 15px;
    right: 30px;
    z-index: 9000000;

}

#my-page {
    width: 100%;
}

.category-filter {
    display: flex;
    align-items: flex-end;
    width: calc(100% - 60px);
    padding-left: 30px;
}

.category-filter-form label {
    font-size: 20px;
    margin-right: 10px;
}

.category-filter-form select {
    padding: 5px 10px 5px 5px;
}

.category-filter img {
    margin-left: auto;
    width: 400px;
}

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0 auto;
    padding: 0;
    font-family: 'GT America';
    background: url(/fileadmin/templates/css/ursprung_.jpg);
    background-size: 1440px;
}

a {
    word-break: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

/* @group HEADER */
#logo-fixed a {
    display: block;
    color: var(--color-dark);
    text-decoration: none;
    transition: 0.2s;
}

#logo-fixed a:hover {
    color: var(--color-main);
    text-decoration: none;
}

div.ce-bodytext p a {
    color: var(--color-dark);
    text-decoration: underline;
}

body div.header-fixed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    height: 190px;
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
}

div#logo-fixed a img {
    width: 200px;
    height: auto;
}

div#logo-mob a img {
    display: block;
    width: 130px;
    height: auto;
}

body div.header-fixed div.header-wrapper {
    width: calc(100% - 60px);
    margin-right: 30px;
    margin-left: 30px;
    margin-top: 26px;
}

div#logo-fixed {
    font-size: 30px;
    float: left;
    width: 28%;
    line-height: 38px;
    letter-spacing: 1.2px;
}

div.navi {
    float: right;
    width: calc(100% - 34.2%);
    margin-top: 30px;
}

div.mainnavi {
    float: left;
}

div.subnavi {
    float: left;
    margin-top: 23px;
    margin-left: 7px;
}

div.social {
    float: right;
    margin-top: 4px;

}

div.fb, div.insta {
    float: left;
    width: 22px;
    margin-left: 15px;
}

div.fb img, div.insta img {
    width: 100%;
    height: auto;
}

div.mainnavi ul {
    list-style-type: none;
}

div.subnavi ul {
    list-style-type: none;
}

div.mainnavi ul li {
    float: left;
    font-size: 19.5px;
    letter-spacing: -0.5px;
    font-weight: 600;
    transition: background .3s;
}

div.mainnavi ul li:hover,
.subnavi ul li:hover {
    background: var(--color-main);
}

div.mainnavi ul li a {
    font-family: 'GT America Mono';
    text-decoration: none;
    text-transform: none;
    color: var(--color-dark);
    display: block;
    padding: 10px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

div.mainnavi ul li a:hover {
    color: var(--color-light);
}

div.subnavi ul li {
    float: left;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    margin-right: 28px;
    font-weight: 600;
    padding: 3px;
}

body div.header-fixed div.header-wrapper div.navi div.subnavi ul li.AKTIV a {
    border-bottom: 1px solid var(--color-dark);
    padding-bottom: 3px;
}

body div.header-fixed div.header-wrapper div.navi div.mainnaviwrapper div.naviwrap div.mainnavi ul li.AKTIV a {
    border-bottom: 1px solid var(--color-dark);
    padding-bottom: 6px;
}

div.subnavi ul li a {
    font-family: 'GT America Mono';
    text-decoration: none;
    text-transform: none;
    color: var(--color-dark);
}

.frame.frame-default.frame-type-textmedia.frame-layout-0 header h4 {
    margin: 0 30px 20px;
    width: calc(100% - 60px);
    font-size: 30px;
    line-height: 40px;
}

/* @group FOOTER */

.Site {
    min-height: calc(100vh - 380px);
}

.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-gallery {
    margin-right: 30px;
    margin-left: 30px;
    width: calc(100% - 60px);
    margin-bottom: 0;
}

.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image img {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    background-color: var(--color-dark);
    float: left;
}

div#c23.frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above {
    float: left;
}

#mainihalt {
    margin-top: 190px;
    margin-right: auto;
    max-width: 1400px;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}


.footer {
    height: 190px;
    width: 100%;
    background-color: var(--color-main);
    margin-top: 70px;
    float: left;
    font-size: 14px;
    line-height: 20px;
}

body div.footer div.footerwrapper {
    padding: 50px 15px;
    background-color: var(--color-main);
    max-width: 1370px;
    margin-left: auto;
    margin-right: auto;
}

.frame-type-textmedia header {
    margin-bottom: 10px;
}


div#c100.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c24.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c26.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c30.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c33.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c37.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c69.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c72.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c75.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2 {
    margin: 0 30px 20px;
    width: calc(100% - 60px);
    font-size: 30px;
}

/* div#c1.frame.frame-default.frame-layout-0 header h2 { */
.frame-default.frame-layout-0 header h2 {
    margin-bottom: 15px;
    font-size: 30px;
}

div#c843.frame.frame-default header h2,
div#c843.frame.frame-default header h3 {
    margin: 0 30px;
    font-size: 23px;
}

/* Zweispalter 66/33: wie die Inhaltselemente floaten, damit
   "Abstand davor/danach" (frame-space-*) greift */
.rows-33-66-reverse {
    float: left;
    width: 100%;
}

/* Gridelemente: "Abstand davor/danach" gegen die eigenen Margins der
   Wrapper (.rows33 { margin-top: 60px } usw.) durchsetzen. rem statt em,
   weil .rows font-size: 30px hat. */
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-before-extra-small { margin-top: 1rem; }
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-before-small { margin-top: 2rem; }
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-before-medium { margin-top: 3rem; }
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-before-large { margin-top: 4rem; }
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-before-extra-large { margin-top: 5rem; }
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-after-extra-small { margin-bottom: 1rem; }
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-after-small { margin-bottom: 2rem; }
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-after-medium { margin-bottom: 3rem; }
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-after-large { margin-bottom: 4rem; }
:is(.rows, .rows33, .rows50, .rows25, .rows-33-66-reverse).frame-space-after-extra-large { margin-bottom: 5rem; }

/* Rechte Spalte im Zweispalter 66/33: Ueberschrift buendig */
.rows-33-66-reverse .row-33 .frame.frame-default.frame-layout-0 header h2 {
    margin-left: 0;
}

/* Startseite: Zweispalter 66/33 mit News. Flex statt Float fuer
   einen klaren Spaltenabstand; News-Spalte als hellblaue Box. */
@media (min-width: 768px) {
    .rows-33-66-reverse {
        display: flex;
        align-items: flex-start;
        gap: 50px;
    }

    .rows-33-66-reverse > .row-66 {
        order: 1;
        float: none;
        flex: 1 1 auto;
        width: auto;
        margin: 0;
        /* Ueberschrift auf Hoehe von "NEWS" (Box-Padding) */
        padding-top: 28px;
    }

    .rows-33-66-reverse > .row-33 {
        order: 2;
        float: none;
        flex: 0 0 34%;
        width: auto;
        margin: 0;
    }
}

.rows-33-66-reverse .row-66 .frame {
    margin-bottom: 10px;
}

.rows-33-66-reverse .row-33 > .frame {
    background: #eef2f9;
    padding: 28px;
    box-sizing: border-box;
    width: 100%;
}

.rows-33-66-reverse .row-33 header h2 {
    margin: 0 0 6px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--color-main);
    width: auto;
}

/* News-Eintraege: Bild oben, dann Datum, Titel, Teaser */
.rows-33-66-reverse .news-list-view-7 .article {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 20px 0 26px;
}

.rows-33-66-reverse .news-list-view-7 .news-list-item-image {
    order: -1;
    margin: 0;
}

.rows-33-66-reverse .news-list-view-7 .news-img-wrap {
    background: none;
}

.rows-33-66-reverse .news-list-view-7 .news-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.rows-33-66-reverse .news-list-view-7 .news-list-date {
    display: block;
    font-family: 'GT America Mono';
    font-weight: normal;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--color-main);
    margin-bottom: 6px;
}

.rows-33-66-reverse .news-list-view-7 .header {
    margin-top: 0;
}

.rows-33-66-reverse .news-list-view-7 h3 {
    margin: 0;
    line-height: 1.35;
}

.rows-33-66-reverse .news-list-view-7 h3 a {
    padding: 2px 5px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    font-size: 19px;
    line-height: 1.45;
}

.rows-33-66-reverse .news-list-view-7 .teaser-text {
    font-size: 15px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.rows-33-66-reverse .row-33 .news-list-view-7 {
    border-bottom: 3px solid var(--color-main);
}

/* "Alle News": groesser, Abstand zur Trennlinie, kein Abstand nach unten */
.rows-33-66-reverse .row-33 .news > .btn {
    float: none;
    display: block;
    width: fit-content;
    margin: 28px 0 0;
    padding: 18px 30px;
    font-size: 17px;
}

div.footerleft {
    margin-right: 15px;
    float: left;
    width: calc((100% / 6) - 30px);
    margin-left: 15px;
}

div.footermitte {
    float: left;
    width: calc((100% / 6) - 30px);
}

div.footerrechts {
    float: left;
    width: calc((100% / 6) - 30px);
}

div.footersocial {
    float: left;
}

body div.footer div.footerwrapper div.footermitte div.footernavigation ul li a, body div.footer div.footerwrapper div.footerrechts div.footerocial ul li a {
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    color: var(--color-dark);
}

body div.footer div.footerwrapper div.footermitte div.footernavigation ul,
body div.footer div.footerwrapper div.footerrechts div.footerocial ul {
    list-style-type: none;
}

body div.footer div.footerwrapper ul li.AKTIV a {
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

body div.footer div.footerwrapper ul li a:hover {
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

/* @end */

#mainihalt .frame-layout-0 {
    width: 100%;
    float: left;
}

.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext p {
    width: calc(66% - 60px);
    margin-right: 30px;
    margin-left: 30px;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 30px;
    margin-bottom: 22px;
    -moz-hyphens: auto;
    -o-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.row-66 .frame-layout-0 .ce-textpic.ce-center.ce-above div.ce-bodytext p {
    width: calc(100% - 60px);
}

/* @group BUTTON */
#mainihalt .frame.frame-default.frame-type-textmedia.frame-layout-0 header h2 a {
    margin-bottom: 30px;
}

.btn,
.frame-layout-0 header h2 a {
    font-family: 'GT America';
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    color: var(--color-light);
    margin-left: 30px;
    margin-right: 30px;
    padding: 15px;
    background-color: var(--color-main);
    transition: 0.3s;
    float: left;
    margin-bottom: 30px;
    border: none;
    position: relative;
}

.btn:after,
.frame-layout-0 header h2 a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-dark);
    transition: width .3s;
    bottom: 0;
    position: absolute;
    left: 0;
}

.btn:hover:after,
.frame-layout-0 header h2 a:hover:after {
    width: 100%;
}

.btn:hover,
.frame-layout-0 header h2 a:hover {
    /*color: var(--color-dark) !important;*/
}

.frame-layout-0 h2 a {
    color: var(--color-main);
    background-color: var(--color-dark);
}

.btn.btn-primary {
    margin: 15px 0 30px;
    color: var(--color-light);
    background-color: var(--color-main);
    -webkit-transition: all 0.2s ease-in, all 0.5s ease-out;
    -moz-transition: all 0.2s ease-in, all 0.5s ease-out;
    -o-transition: all 0.2s ease-in, all 0.5s ease-out;
    transition: all 0.2s ease-in, all 0.5s ease-out;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
}

.frame-layout-0 header h2 a:hover,
.btn.btn-primary:hover {
    background-color: var(--color-main-hover);
}

.btn-large {
    font-size: 20px;
}

.m-0 {
    margin: 0;
}

.no-text-decoration {
    text-decoration: none !important;
}

/* @end *

/* @group GRIDELEMENTS */
.rows {
    margin-top: 30px;
    margin-right: 30px;
    margin-left: 30px;
    width: calc(100% - 60px);
    font-size: 30px;
    float: left;

}

.rowslinks {

    width: calc(33.3333333333% - 15px);

    float: left;
    margin-right: 15px;
}

.rowsrechts {
    width: calc(66.6666666666% - 15px);
    float: left;
    margin-left: 15px;
}

#mainihalt .rowsrechts div.ce-bodytext p {
    width: 90%;
    float: left;
    margin: 0 0 30px;
    font-size: 18px;
    line-height: 27px;
}

/* Aufzaehlungen in der rechten Spalte (z.B. Text mit Bild): Absaetze im li
   nicht floaten, sonst steht der Aufzaehlungspunkt rechts neben dem Text */
#mainihalt .rowsrechts div.ce-bodytext ul,
#mainihalt .rowsrechts div.ce-bodytext ol {
    float: left;
    clear: left;
    width: calc(90% - 28px);
    margin: 0 0 30px 28px;
}

#mainihalt .rowsrechts div.ce-bodytext li p {
    float: none;
    width: auto;
    margin: 0;
}

/* Absatz direkt vor einer Aufzaehlung (z.B. "Samstag 7.11.") ist deren
   Ueberschrift: kein Abstand zur Liste. !important, weil die vielen
   ".ce-bodytext p"-Regeln (bis #c59 ...) sonst spezifischer sind. */
div.ce-bodytext p:has(+ ul, + ol) {
    margin-bottom: 0 !important;
}

#mainihalt .frame-layout-1 div.ce-textpic.ce-center.ce-above div.ce-bodytext p {
    width: calc(88% - 0px);
    margin-right: 0px;
    margin-left: 0px;
    font-size: 25px;
    letter-spacing: 0;
    line-height: 32px;
    margin-bottom: 22px;
}

.frame.frame-default.frame-type-textmedia.frame-layout-1 div.ce-textpic.ce-center.ce-above div.ce-bodytext ul li {
    width: calc(88% - 0px);
    margin-right: 0px;
    margin-left: 0px;
    font-size: 25px;
    letter-spacing: 0;
    line-height: 32px;
    margin-bottom: 0px;
}

#mainihalt .frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext ul {
    float: left;
    margin-bottom: 30px;
}

#mainihalt .frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext ul li {
    font-size: 16px;
    line-height: 24px;
}

#mainihalt .rowsrechts header h2 a {
    margin: 0;
    float: left;
}

.rowslinks header h2 {
    font-size: 32px;
    line-height: 40px;
}


.frame.frame-default.frame-type-list.frame-layout-0 header h2 {
    font-size: 32px;
    line-height: 40px;

}

div#c257.frame.frame-default.frame-type-list.frame-layout-0 header h2,
div#c256.frame.frame-default.frame-type-list.frame-layout-0 header h2,
div#c255.frame.frame-default.frame-type-list.frame-layout-0 header h2 {
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 30px;
}

#mainihalt div.ce-bodytext h5 {
    margin: 0;
    float: left;
}

.rowslinks header h3, .rowslinks h3 {
    font-size: 24px;
    line-height: 34px;
    font-weight: normal;
    font-style: normal;
    margin-top: 13px;
}

/* @end */

/* @group TINY */


div#c48.frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext ul li {

    font-size: 12;
}

div.ce-bodytext ul li a {
    color: var(--color-dark);
}

.acc-section ul {

    list-style-type: disc;
    padding-left: 16px;
    padding-bottom: 0;
    width: 100%;
    float: left;
}

.acc-section header h2 {
    display: none;
}

#mainihalt .acc-section div.ce-bodytext p {
    width: 100%;
    float: left;
    margin-bottom: 12px;
    margin-top: 12px;
}

.acc-section ul li {
    font-size: 14px;
    line-height: 22px;
    list-style-type: disc;
}


.tx-tinyaccordion-pi1 {
    margin-bottom: 36px;
}

.tinyaccordion li.acc-li {
    border-bottom: 1px solid var(--color-dark);
    padding-bottom: 2px;
}


/* default styles for extension "tx_tinyaccordion" */
ul.tinyaccordion {
    background: none !important;
}

ul.tinyaccordion li {
    background: none !important;
    padding-left: 0px;
}

ul.tinyaccordion h4 {
    margin-right: 0;
    margin-left: 0;
    padding-left: 0;
    padding-top: 24px;
    padding-bottom: 24px;
    cursor: pointer;
    font-size: 24px;
    line-height: 30px;

    border-top: 0px solid var(--color-dark);
    margin-bottom: 0;
}

div#c48.frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext ul li {
    width: 100%;
    float: left;
}

/* default styles for extension "tx_tinyaccordion" */
ul.tinyaccordion {
    list-style: none;
    background: none !important;
}

ul.tinyaccordion li {
    background: none !important;
    padding-left: 0px;
}

ul.tinyaccordion h4 {
    margin: 0 0 0px 0;
    padding-left: 0;
    cursor: pointer;
    background: url('/typo3conf/ext/tinyaccordion/Resources/Public/Images/plusi.png') no-repeat 0 3px;
}

ul.tinyaccordion h4.acc-selected {
    background: url('/typo3conf/ext/tinyaccordion/Resources/Public/Images/minus1.png') no-repeat 0 7px;
}

ul.tinyaccordion h4:hover {
    text-decoration: underline;
}

ul.tinyaccordion .acc-section {
    overflow: hidden;
}

ul.tinyaccordion .csc-default,
ul.tinyaccordion ul.tinyaccordion,
ul.tinyaccordion ul.tinyaccordion .news-single-item {
    padding: 0 0 10px 21px;
}

ul.tinyaccordion li .csc-header:first-child {
    display: none;
}


ul.tinyaccordion h4:hover {
    text-decoration: underline;
}

ul.tinyaccordion .acc-section {
    overflow: hidden;
}

ul.tinyaccordion .csc-default,
ul.tinyaccordion ul.tinyaccordion,
ul.tinyaccordion ul.tinyaccordion .news-single-item {
    padding: 0 0 10px 21px;
}

ul.tinyaccordion li .csc-header:first-child {
    display: none;
}

/* Grid Gallery (EXT:gridgallery) im Accordion, siehe Media/AccordionGridGallery.html */
ul.tinyaccordion .ce-gridgallery {
    margin: 16px 0 20px;
}

/* Fallback: per main.js umgebaute .ce-gallery */
ul.tinyaccordion .ce-gallery.justified-gallery {
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    float: none;
}

ul.tinyaccordion .ce-gallery.justified-gallery > a {
    float: none;
    background: none;
}

ul.tinyaccordion .ce-gallery.justified-gallery > a > img {
    max-width: none;
    padding: 0;
    margin: 0;
    background: none;
    float: none;
}

/* @end */

/* @group ROWS */
.row-layout-centered {
    display: flex;
    align-items: center;
}

.rows33 {
    float: left;
    width: calc(100% - 30px);
    margin-right: 15px;
    margin-left: 15px;
    margin-top: 60px;
}

.rows50 {
    float: left;
    width: calc(100% - 30px);
    margin-right: 15px;
    margin-left: 15px;
    margin-top: 0px;
    margin-bottom: 50px;
}

.rows25 {
    float: left;
    width: calc(100% - 30px);
    margin-right: 15px;
    margin-left: 15px;
    margin-top: 0;
    margin-bottom: 50px;
}

.rows25 .col {
    float: left;
    width: calc((100% / 4) - 30px);
    margin-right: 15px;
    margin-left: 15px;
}

.rowslinks33 {
    float: left;
    width: calc((100% / 3) - 30px);
    margin-right: 15px;
    margin-left: 15px;
}

.rows50links {
    float: left;
    width: calc((100% / 2) - 30px);
    margin-right: 15px;
    margin-left: 15px;
}

.rowsmitte33 {
    float: left;
    width: calc((100% / 3) - 30px);
    margin-right: 15px;
    margin-left: 15px;
}

.rowsrechts33 {
    float: left;
    width: calc((100% / 3) - 30px);
    margin-right: 15px;
    margin-left: 15px;
}

.rows50rechts {
    float: left;
    width: calc((100% / 2) - 30px);
    margin-right: 15px;
    margin-left: 15px;
}

.row-66 {
    float: left;
    width: calc((100% / 3) * 2 - 30px);
    margin-right: 15px;
    margin-left: 15px;
}

.row-33 {
    float: right;
    width: calc((100% / 3) - 30px);
    margin-right: 15px;
    margin-left: 15px;
}

.row-33 h2 {
    margin-bottom: 15px;
}

.rows33 .frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-gallery {
    margin-right: 0;
    margin-left: 0;
    width: calc(100% - 0px);
}

.rows50 .frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-gallery {
    margin-right: 0;
    margin-left: 0;
    width: calc(100% - 0px);
}

.rows33 .frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext p {
    margin: 14px 0 0;
    width: 100%;
}

/* @end */

/* @group DOWNLOADS */
.frame.frame-default.frame-type-uploads.frame-layout-0 header h2 {

    float: left;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    width: 100%;
}

.frame.frame-default.frame-type-uploads.frame-layout-0 ul.ce-uploads {
    font-size: 14px;
    line-height: 20px;
}

.frame.frame-default.frame-type-uploads.frame-layout-0 ul {
    float: left;
}

.ce-uploads li {
    list-style: none outside none;
    margin: 0;
}

.frame.frame-default.frame-type-uploads.frame-layout-0 ul.ce-uploads li div a span.ce-uploads-fileName {
    text-decoration: underline;
    color: var(--color-dark);
}

.frame.frame-default.frame-type-uploads.frame-layout-0 {
    margin-bottom: 30px;
}

/* @end */

/* @group subnavigation archiv */
#my-menu #menu {
    padding-top: 5px;
}

#my-menu  #menu a {
    font-size: 18px;
    line-height: 26px;
}

#mainihalt .frame-type-menu_subpages.frame-layout-0 ul {
    list-style-type: none;
}

#mainihalt .frame-type-menu_subpages.frame-layout-0 ul li {
    float: left;
    font-size: 14px;
    line-height: 22px;
    margin-right: 30px;
}

#mainihalt .frame-type-menu_subpages.frame-layout-0 ul li a {
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    color: var(--color-dark);
}

/* @end */

/* @group SPACE */

.frame-space-after-medium {
    margin-bottom: 52px;
}

/* @end */

/* @group Archivbilder */

.frame.frame-default.frame-type-textmedia.frame-layout-2 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image img.image-embed-item {
    width: 40%;
    height: auto;
    float: left;
}

/* @end */

/* @group VIDEO */
div.padding-l-r iframe {
    margin-bottom: 30px;
    float: left;
    width: calc(100% - 60px);
}

iframe {
    border: 0;
}

.vimeoVideo {
    width: calc(100% - 60px);
    margin-right: 30px;
    margin-left: 30px;
    margin-bottom: 30px;
}

/* @end */

/* @group Galerie */
.frame.frame-layout-0 .c-gallery .col-sm-12.col-md-6.col-lg-3 {
    float: left;
    width: calc(25% - 2px);
    margin-right: 1px;
    margin-left: 1px;
    margin-bottom: 2px;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12.col-md-6.col-lg-3 figure.c-gallery__figure.figure a.lightbox img.c-gallery__image.figure-img.img-fluid {
    width: 100%;
    height: auto;
    float: left;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery {
    float: left;
    width: calc(100% - 60px);
    margin-right: 30px;
    margin-left: 30px;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12.col-md-6.col-lg-3 figure.c-gallery__figure.figure a.c-gallery__list-link img.c-gallery__image.figure-img.img-fluid {
    width: 100%;
    height: auto;
    float: left;

    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.32s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12.col-md-6.col-lg-3 figure.c-gallery__figure.figure a {
    overflow: hidden;
    width: 100%;
    height: auto;
    float: left;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12.col-md-6.col-lg-3 figure.c-gallery__figure.figure figcaption.c-gallery__figure-caption.figure-caption {
    float: left;

    width: calc(100% - 24px);
    float: left;
    margin: 24px 0 30px;
    font-size: 14px;
    line-height: 20px;
    min-height: 80px;
    padding-right: 24px;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12.col-md-6.col-lg-3 figure.c-gallery__figure.figure figcaption.c-gallery__figure-caption.figure-caption a.c-gallery__list-link {
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    color: var(--color-dark);
    font-weight: bold;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12 span.c-gallery__count {
    display: none;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12 h2.c-gallery__title {
    margin-bottom: 5px;
}

.c-gallery__description {
    display: block;
    margin-bottom: 15px;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12.col-md-6.col-lg-3 figure.c-gallery__figure.figure a.c-gallery__list-link img.c-gallery__image.figure-img.img-fluid:hover {
    opacity: 0.8;
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}


.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12.col-md-6.col-lg-3 figure.c-gallery__figure.figure a.lightbox img.c-gallery__image.figure-img.img-fluid {
    width: 100%;
    height: auto;
    float: left;

    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.32s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.frame.frame-default.frame-type-list.frame-layout-0 div.c-gallery div.row div.col-sm-12.col-md-6.col-lg-3 figure.c-gallery__figure.figure a.lightbox img.c-gallery__image.figure-img.img-fluid:hover {
    opacity: 0.8;
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

/* @end */

/* @group Open Street Maps */

.padding-l-r iframe {
    width: calc(100% - 60px);
    margin-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
}

/* @end */

/* @group STARTBOXEN 3er Reihe */
.frame.frame-default.frame-type-textmedia.frame-layout-3 {

    width: 100%;
}


.frame.frame-default.frame-type-textmedia.frame-layout-3 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image a img.image-embed-item {
    width: 100%;
    height: auto;
}


.frame.frame-default.frame-type-textmedia.frame-layout-3 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image figcaption.image-caption {
    margin-top: 38px;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 60px;
}

.frame.frame-default.frame-type-textpic.frame-layout-3 figure.image img.image-embed-item {
    float: left;
    height: auto;
    width: 100%;
}


.frame.frame-default.frame-type-textmedia.frame-layout-3 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image:hover a img.image-embed-item {
    opacity: 0.8;
}

div#c59.frame.frame-default.frame-type-textpic.frame-layout-3 div.ce-textpic.ce-center.ce-above div.ce-bodytext p {
    margin-top: 38px;
    font-size: 25px;
    font-weight: 600;
}

.frame.frame-default.frame-type-textmedia.frame-layout-3 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image figcaption.image-caption:before {
    content: "• ";
}

div#c59.frame.frame-default.frame-type-textpic.frame-layout-3 header h2 {
    position: absolute;
    bottom: 0;
}

div#c59.frame.frame-default.frame-type-textpic.frame-layout-3 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image a img.image-embed-item {
    position: relative;
    top: 0;
    width: 90%;
    height: auto;
}

/* @end */

/* @group text Aufzählung */
.frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext ul li {

    float: left;
    width: 100%;
    padding-left: 0;
}

.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext ul li p {
    margin-bottom: 0px;

}

.frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext ul {
    list-style-type: dot;
    padding-left: 0;
    margin-left: 28px;
    font-size: 14px;
}

.bm-gallery--wrapper {
    line-height: 0;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.bm-gallery--wrapper .bm-gallery--item {
    margin: 0 2px;
    width: calc(50% - 4px);
    display: flex;
}

.bm-gallery--wrapper a {
    line-height: 0;
}

.bm-gallery--wrapper .bm-gallery--item {
    margin-bottom: 4px;
}

.cookie-banner--wrapper-outer {
    display: flex;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: #11798f;
    background: color-mix(in srgb, var(--color-main) 37%, transparent);
}

.cookie-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cookie-banner--wrapper {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

.cookie-banner-text {
    padding: 0 10px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: var(--color-light);
}

.privacy-link {
    margin-top: 9px;
    display: block;
    color: var(--color-light);
    font-size: 18px
}

.cookie-buttons {
    display: flex;
    margin: 20px auto 0 auto;
}

.btn-accept {
    margin: 0;
    padding: 20px;
    font-size: 17px;
}

.btn-accept:hover {
    cursor: pointer;
}

.fancybox-inner .fancybox-close-small {
    opacity: 0.7;
}

/* @end */

@media only screen and (max-width: 1150px) {
    div.footerleft {
        float: left;
        width: calc((100% / 3) - 30px);
        margin-bottom: 15px;
    }

    div.footermitte {
        float: left;
        width: calc((100% / 3) - 30px);
        margin-bottom: 15px;
    }

    div.footerrechts {
        float: left;
        width: calc((100% / 3) - 30px);
        margin-bottom: 15px;
    }

    .footer-logos {
        clear: both;
        padding-top: 30px;
        justify-content: center;
        float: none !important;
    }
}


@media only screen and (max-width: 980px) {
    div.logo-mobil {
        position: absolute;
        top: 15px;
        float: left;
        left: 15px;
        width: 250px;
    }

    .rowslinks header h3, .rowslinks h3 {
        font-size: 24px;
        line-height: 34px;
        font-weight: normal;
        font-style: normal;
        margin-top: 13px;
        margin-bottom: 15px;
    }

    .rowslinks header h2 {
        font-size: 26px;
        line-height: 34px;
    }

    #mainihalt div.ce-bodytext h5 {
        margin: 0 0 18px;
        float: left;
        font-size: 26px;
        line-height: 34px;
    }

    body div.header-fixed {
        display: none;
    }

    body div.footer div.footerwrapper div.footermitte div.footernavigation ul li a, body div.footer div.footerwrapper div.footerrechts div.footerocial ul li a {
        font-weight: normal;
        font-style: normal;
        text-decoration: none;
        color: var(--color-dark);
        font-size: 17px;
        line-height: 22px;
    }

    div#logo-mob a {
        text-decoration: none;
        color: var(--color-dark);
        font-size: 20px;
    }

    div.Fixedicon {
        display: block;

        float: right;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 10000;
    }

    #mainihalt {
        margin-top: 120px;
    }


    #my-page {
        position: absolute;
        top: 0px;

    }

    .rows {
        margin: 30px 15px 0;
        width: calc(100% - 30px);
        font-size: 30px;
        float: left;

    }

    .rowslinks {

        width: calc(100% - 0px);

        float: left;
        margin-right: 0px;
    }

    .rowsrechts {
        width: calc(100% - 0px);

        float: left;
        margin-left: 0px;
    }

    /* Mobil (bis 980px) einheitlich 15px Abstand links/rechts */
    .flexslider {
        padding-left: 15px;
        padding-right: 15px;
    }

    #mainihalt .rowsrechts div.ce-bodytext p {
        width: 100%;
    }

    #mainihalt .rowsrechts div.ce-bodytext ul,
    #mainihalt .rowsrechts div.ce-bodytext ol {
        width: calc(100% - 28px);
    }

    .rows .rows50 {
        margin: 15px 0 0;
    }

    .rows .rows50 .rows50links {
        margin-left: 0;
    }

    .rows .rows50 .rows50rechts {
        margin-right: 0;
    }

    .rows33 .frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext p {
        margin: 14px 0;
        width: 100%;
        font-weight: normal;
        font-style: normal;
    }

    div.footerleft {
        margin-right: 0px;
        margin-left: 0;
        float: left;
        width: calc((100% / 1) - 30px);
        margin-bottom: 15px;
        font-size: 17px;
        line-height: 22px;
    }

    div.footermitte {
        float: left;
        width: calc((100% / 1) - 30px);
        margin-bottom: 15px;
    }

    div.footerrechts {
        float: left;
        width: calc((100% / 1) - 30px);
        margin-bottom: 15px;
    }

    div.footersocial {
        float: left;
    }

    body div.footer div.footerwrapper {
        padding: 30px 15px;
        float: left;
        width: calc(100% - 30px);
    }

    .footer {
        height: auto;
        width: 100%;
        margin-top: 60px;
        float: left;
        font-size: 14px;
        line-height: 20px;
    }

    .frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext p {
        width: calc(100% - 60px);
        margin-right: 30px;
        margin-left: 30px;
        font-size: 24px;
        letter-spacing: 0;
        line-height: 35px;
        margin-bottom: 22px;
    }

    #mainihalt .frame-layout-1 div.ce-textpic.ce-center.ce-above div.ce-bodytext p {
        width: calc(100% - 0px);
        margin-right: 0px;
        margin-left: 0px;
        font-size: 25px;
        letter-spacing: 0;
        line-height: 32px;
        margin-bottom: 22px;
    }

}



hr {
    display: none;
}

#mainihalt .rowsrechts header h2 {
    font-size: 16px;
    line-height: 22px;
    font-weight: bold;
}

#mainihalt .rowsrechts h3 {
    font-size: 16px;
    line-height: 24px;
    width: 100%;
}

.footer-logos {
    display: flex;
    flex-direction: row;
    float: right;
}

.marketing-logo {
    margin-right: 30px;
    max-width: 80px;
}


.sad-logo,
.marketing-logo {
    color: var(--color-dark);
    text-decoration: none;
    width: 280px;
    float: right;
}

.sad-logo .text,
.marketing-logo .text {
    margin-bottom: 15px;
    text-align: right;
}

.sad-logo img,
.marketing-logo img {
    width: 230px;
    height: auto;
    max-height: 100px;
    float: right;
    -webkit-transition: all 0.2s ease-in, all 0.2s ease-out; /* Safari / Chrome */
    -moz-transition: all 0.2s ease-in, all 0.2s ease-out; /* Firefox */
    -o-transition: all 0.2s ease-in, all 0.2s ease-out; /* Opera */
    transition: all 0.2s ease-in, all 0.2s ease-out; /* Standard */
}

.marketing-logo img {
    max-width: 55px;
}


.main-sponsor,
.main-sponsor img {
    max-width: 200px;
}

.main-sponsor .text {
    text-align: left;
}

@media only screen and (max-width: 1400px) {
    #mainihalt {
        margin-right: auto;
        margin-left: auto;
        padding-right: 0;
        padding-left: 0;
    }
}

/*.flexslider ul.slides div.slidercontent.wsflexslider-style1 img {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  filter: url(/elements/grayscale.svg#desaturate);
  filter: gray;
  -webkit-filter: grayscale(1);
}

div#flexslider-134.flexslider ul.slides div.slidercontent.wsflexslider-style1 img {
  filter: grayscale(0%);
  filter: none;
  -webkit-filter: grayscale(0);
}


.frame.frame-default.frame-type-textmedia.frame-layout-3 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image a img.image-embed-item {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  filter: url(/elements/grayscale.svg#desaturate);
  filter: gray;
  -webkit-filter: grayscale(1);
}*/


/* @group femanager */
div.tx-femanager div.femanager_new form.form-horizontal.feManagerValidation fieldset {
    font-size: 16px;
    line-height: 24px;
}

div.tx-femanager div.femanager_new form.form-horizontal.feManagerValidation fieldset legend {
    font-weight: bold;
    margin-bottom: 20px;
}

div#c297.frame.frame-default.frame-type-list.frame-layout-0 div.tx-femanager div.femanager_new form.form-horizontal.feManagerValidation fieldset {
    border-style: none;
    padding: 0;
    margin-top: 20px;
}

.form-group label.col-sm-2.control-label {
    margin-bottom: 10px;
    float: left;
    width: 100%;
}

input.form-control {
    width: 50%;
    font-size: 14px;
    line-height: 20px;
    border: 1px solid var(--color-dark);
    height: 30px;
}

.form-group div.col-sm-10 {
    margin-bottom: 30px;
}

input#femanager_field_submit.btn.btn-primary.btn-large {
    font-size: 14px;
    font-weight: normal;
    . font-style: normal;
    text-decoration: none;
    color: var(--color-dark);
    margin-left: 0;
    margin-right: 30px;
    margin-bottom: 60px;
    padding: 15px;
    background-color: var(--color-main);
    transition: 0.3s;
    float: left;
    border-style: none;
}

input#femanager_field_submit.btn.btn-primary.btn-large:hover {
    color: var(--color-main);
    background-color: var(--color-dark);
}

.frame.frame-default.frame-type-login.frame-layout-0 div.tx-felogin-pi1 form fieldset {
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    margin-top: 22px;
    margin-bottom: 22px;
    border-style: none;
    padding: 0;
}

div#c317.frame.frame-default.frame-type-login.frame-layout-0 div.tx-felogin-pi1 p a {
    font-size: 16px;
    color: var(--color-dark);
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
}

.frame.frame-default.frame-type-login.frame-layout-0 div.tx-felogin-pi1 div {
    font-size: 16px;
    line-height: 24px;
}

.frame.frame-default.frame-type-login.frame-layout-0 div.tx-felogin-pi1 form fieldset div input {
    font-size: 16px;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    color: var(--color-dark);
    margin-left: 0;
    margin-right: 30px;
    margin-bottom: 60px;
    padding: 15px;
    background-color: var(--color-main);
    transition: 0.3s;
    float: left;
    border-style: none;
}

.frame.frame-default.frame-type-login.frame-layout-0 div.tx-felogin-pi1 form fieldset div input:hover {
    color: var(--color-main);

    background-color: var(--color-dark);
}

input#user {
    width: 50%;
    font-size: 14px;
    line-height: 20px;
    border: 1px solid var(--color-dark);
    height: 30px;
}

input#pass {
    width: 50%;
    font-size: 14px;
    line-height: 20px;
    border: 1px solid var(--color-dark);
    height: 30px;
}

div#c317.frame.frame-default.frame-type-login.frame-layout-0 div.tx-felogin-pi1 form fieldset div {
    margin-bottom: 22px;
}

div#c317.frame.frame-default.frame-type-login.frame-layout-0 div.tx-felogin-pi1 form fieldset div label {
    width: 100%;
    float: left;
    margin-bottom: 10px;
}

div#c317.frame.frame-default.frame-type-login.frame-layout-0 div.tx-felogin-pi1 p {
    margin-bottom: 40px;
}

div#c317.frame.frame-default.frame-type-login.frame-layout-0 div.tx-felogin-pi1 form fieldset div input {

}

/* @end */


/* @group Anpassungen se */

.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-left.ce-below div.ce-gallery,
.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-gallery {
    width: 100%;
    margin: 0 0 40px;
    margin: 0;
}

.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-left.ce-below div.ce-gallery div.ce-row div.ce-column figure.image a img.image-embed-item,
.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column div.responsive-video figure.video div.video-embed video.video-embed-item {
    width: 100%;
    height: auto;
    float: left;
}

.frame-layout-4 {
    width: 100%;
    height: auto;
    float: left;
}

.frame-layout-4 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image img.image-embed-item {
    width: 100%;
    height: auto;
    float: left;
    margin-bottom: 20px;
}

.frame-layout-5 {
    width: 100%;
    height: auto;
    float: left;
    overflow: hidden;
    text-align: left;
}

.frame-layout-5.frame-space-after-small div.ce-textpic.ce-left.ce-above div.ce-gallery div.ce-row div.ce-column {
    margin: 0;
}

.frame-layout-5 div.ce-textpic.ce-left.ce-above div.ce-gallery div.ce-row div.ce-column figure.image {
    width: calc(100% - 40px);
    height: auto;
    float: left;
    margin-right: 40px;
}

.frame-layout-5 div.ce-textpic.ce-left.ce-above div.ce-gallery div.ce-row div.ce-column figure.image img.image-embed-item {
    width: 100%;
    height: auto;
    float: left;
    max-height: 55px;
    width: auto;
    max-width: 100%;
}

.tx-mailchimp .rows {
    margin-top: 0;
}

.tx-mailchimp label {
    font-size: 22px;
}

.tx-mailchimp .btn {
    margin: 20px 0;
    color: var(--color-dark);
}

.tx-mailchimp input[type="text"],
.tx-mailchimp input[type="email"] {
    width: 100%;
    max-width: 500px;
}

.gradient-border {
    --border-width: 3px;
    display: block;
    text-align: center;
    width: 300px;
    float: none;
    position: relative;
    background: var(--color-main);
    font-size: 20px;
    line-height: 26px;
    color: var(--color-light);
    margin: 70px auto 40px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.gradient-border:hover {
    background: color-mix(in srgb, var(--color-main) 67%, transparent);
    color: var(--color-light);
}

.gradient-border::after {
    position: absolute;
    content: "";
    top: calc(-1 * var(--border-width));
    left: calc(-1 * var(--border-width));
    z-index: -1;
    width: calc(100% + var(--border-width) * 2);
    height: calc(100% + var(--border-width) * 2);
    background: linear-gradient(60deg, #5f86f2, #a65ff2, #f25fd0, #f25f61, #f2cb5f, #abf25f, #5ff281, #5ff2f0);
    background-size: 300% 300%;
    background-position: 0 50%;
    animation: moveGradient 4s alternate infinite;
    right: calc(-1 * var(--border-width));
    width: auto !important;
}

/* @group BUTTON-REIHE (z.B. Startseite: Programmheft + Newsletter) */
.button-row {
    display: grid;
    gap: 20px;
    width: fit-content;
    max-width: calc(100% - 60px);
    margin: 50px auto 40px;
}

.button-row .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    min-width: 300px;
    max-width: 100%;
    min-height: 56px;
    margin: 0;
    float: none;
    font-size: 20px;
    line-height: 26px;
    text-align: center;
}

.button-row .gradient-border {
    width: auto;
}

.btn-icon::before {
    content: "";
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask: var(--btn-icon) center / contain no-repeat;
    mask: var(--btn-icon) center / contain no-repeat;
}

/* Datei mit Download-Pfeil */
.btn-icon-pdf {
    --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M12 12v6'/%3E%3Cpath d='m9 15 3 3 3-3'/%3E%3C/svg%3E");
}

/* Briefumschlag */
.btn-icon-newsletter {
    --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

@media only screen and (min-width: 768px) {
    .button-row {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 40px;
    }
}

@media only screen and (max-width: 400px) {
    .button-row .btn {
        min-width: 0;
        font-size: 18px;
    }
}
/* @end */

.tx-mailchimp .mailchimp-privacy {
    font-size: 16px;
    margin-top: 10px;
}

.tx-mailchimp a {
    color: var(--color-dark);
    text-decoration: underline;
}

.news .page-navigation ul li a {
    color: var(--color-dark);
}

.filmbox .news-detail-link .zentriert {
 color: var(--color-light);
}


.news-detail-link-image {
    display: block;
    margin-bottom: 30px;
    padding: 15px 0 15px 0;
}

.news .article .news-img-wrap {
    background: var(--color-main);
    width: 100%;
}

.news .article .news-img-wrap:hover {
    z-index: 2;
}

.news .article .news-img-wrap a {
    padding: 0;
    border: none;
    width: 100%;
}

.news .article .news-img-wrap img,
.news .article .news-img-wrap video {
    width: 100%;
    height: auto;
}

.news .article h3 a {
    color: var(--color-light);
    background-color: var(--color-main);
    text-decoration: none;
    font-size: 19px;
    line-height: 22px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.news .article h3 a:hover {
    background-color: var(--color-main-hover);
}

.news .news-list-view-default .teaser-text,
.news .news-list-view-1 .teaser-text,
.news .news-list-view-2 .teaser-text,
.news .news-list-view-7 .teaser-text {
    font-size: 16px;
    line-height: 20px;
    margin-top: 5px;
}

.news-list-view-default .header,
.news-list-view-1 .header,
.news-list-view-2 .header,
.news-list-view-7 .header {
    margin-top: 5px;
}

.news-list-view-default .news-img-wrap video,
.news-list-view-default .news-img-wrap img,
.news-list-view-1 .news-img-wrap video,
.news-list-view-1 .news-img-wrap img,
.news-list-view-2 .news-img-wrap video,
.news-list-view-2 .news-img-wrap img,
.news-list-view-7 .news-img-wrap video,
.news-list-view-7 .news-img-wrap img {
    max-width: 100%;
}

.news-list-view-default .news-img-wrap video,
.news-list-view-1 .news-img-wrap video,
.news-list-view-2 .news-img-wrap video,
.news-list-view-7 .news-img-wrap video {
    max-height: 300px;
}

.news-list-view-2,
.news-list-view-7 {
    font-size: 18px;
}

.news .news-list-view-2 h3,
.news .news-list-view-7 h3 {
    font-size: 20px !important;
}

.news-list-view-default .news-list-date,
.news-list-view-1 .news-list-date,
.news-list-view-2 .news-list-date,
.news-list-view-7 .news-list-date {
    font-weight: 600;
    font-size: 16px;
}

/* Listenansicht mit Vorschaubild oben */
.news-list-view-7 .article {
    margin-bottom: 30px;
}

.news-list-view-7 .news-list-item-image {
    margin-bottom: 15px;
}

.news-clear {
    margin: 0 0 20px;
}

/* News-Layout 7 (Bild oben) als Kacheln, z.B. /aktuelles/.
   Ausnahme: News-Spalte auf der Startseite (.rows-33-66-reverse). */
.news-list-view-7 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px 32px;
}

@media (max-width: 1023px) {
    .news-list-view-7 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .news-list-view-7 {
        grid-template-columns: 1fr;
    }
}

.news-list-view-7 > .page-navigation,
.news-list-view-7 > .news-clear {
    grid-column: 1 / -1;
    margin: 0;
}

.news-list-view-7 .article {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.news-list-view-7 .news-list-item-image {
    order: -1;
    margin: 0;
}

.news-list-view-7 .news-img-wrap {
    background: none;
}

.news-list-view-7 .news-img-wrap a {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.news-list-view-7 .news-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .3s ease;
}

.news-list-view-7 .article:hover .news-img-wrap img {
    transform: scale(1.03);
}

/* Platzhalter-Kachel fuer News ohne Bild (verlinkt, siehe ItemNewsImageTop.html) */
.news-list-view-7 .news-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: var(--color-main);
    color: var(--color-light);
    font-family: 'GT America Mono';
    font-size: 28px;
    letter-spacing: .06em;
    transition: background .3s ease;
}

.news-list-view-7 .article:hover .news-img-placeholder {
    background: var(--color-main-hover);
}

.news-list-view-7 .news-list-date {
    display: block;
    font-family: 'GT America Mono';
    font-weight: normal;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--color-main);
    margin-bottom: 6px;
}

.news-list-view-7 .header {
    margin-top: 0;
}

.news-list-view-7 h3 {
    margin: 0;
    line-height: 1.35;
}

.news .news-list-view-7 h3 a {
    padding: 2px 5px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    font-size: 18px;
    line-height: 1.45;
}

.news .news-list-view-7 .teaser-text {
    font-size: 15px;
    line-height: 1.45;
    margin: 8px 0 0;
}

/* Startseite: News-Spalte bleibt einspaltig, ohne Platzhalter */
.rows-33-66-reverse .news-list-view-7 {
    display: block;
}

.rows-33-66-reverse .news-list-view-7 .news-list-item-image:has(.news-img-placeholder) {
    display: none;
}

/* Paginierung (nur unten, siehe TypoScript insertAbove = 0) */
.news .page-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 0;
    padding-top: 10px;
}

.news .page-navigation p {
    order: 2;
    margin: 0;
    float: none;
    font-family: 'GT America Mono';
    font-size: 13px;
    letter-spacing: .04em;
    color: #666;
}

.news .page-navigation ul.f3-widget-paginator {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none;
}

.news .page-navigation ul.f3-widget-paginator li {
    float: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    box-sizing: border-box;
    font-family: 'GT America Mono';
    font-size: 16px;
}

.news .page-navigation ul.f3-widget-paginator li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 14px;
    box-sizing: border-box;
    border: 2px solid var(--color-main);
    color: var(--color-main);
    text-decoration: none;
    transition: background .2s, color .2s;
}

.news .page-navigation ul.f3-widget-paginator li a:hover {
    background: var(--color-main);
    color: var(--color-light);
}

.news .page-navigation ul.f3-widget-paginator li.current {
    background: var(--color-main);
    color: var(--color-light);
}

.news .page-navigation ul.f3-widget-paginator li.previous {
    margin-right: 12px;
}

.news .page-navigation ul.f3-widget-paginator li.next {
    margin-left: 12px;
}

.news .page-navigation ul.f3-widget-paginator li.previous a::before {
    content: '\2190';
    margin-right: .4em;
}

.news .page-navigation ul.f3-widget-paginator li.next a::after {
    content: '\2192';
    margin-left: .4em;
}

.news-single h2:first-child {
    margin-top: 0;
}

.news-single ul,
.news-single ol {
    margin-left: 1em;
}

.news-single h2,
.news-single h3,
.news-single h4,
.news-single h5 {
    margin: 30px 0 10px;
}

.news-single-1 .rows,
.news-single-2 .rows {
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 50px;
}

.news-single-1 h1,
.news-single-2 h1 {
    font-size: 32px;
    line-height: 40px;
    margin-top: 0;
    margin-left: 0;
}

.news-single {
    word-break: break-word;
}

.news-single .images-desktop {
    display: block;
}

.news-single .images-mobile.image-count-1 .outer,
.news-single .images-desktop.image-count-1 .outer {
    width: 100%;
}

.news-single .images-mobile {
    display: none;
}

.news-img-caption,
.image-caption {
    color: #888;
    font-size: 12px;
    line-height: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.news-detail-bild .news-img-caption {
    margin-top: 0;
    top: 5px;
}

.news-single-1 .article .news-img-wrap,
.news-single-2 .article .news-img-wrap {
    background: none;
    float: none;
    width: 100%;
    margin: 10px 0 0;
}

.news-single-1 .news-img-wrap a,
.news-single-1 .news-img-wrap img,
.news-single-2 .news-img-wrap a,
.news-single-2 .news-img-wrap img {
    width: 100% !important;
}

.news-single-1 .news-img-wrap .outer,
.news-single-2 .news-img-wrap .outer {
    display: inline-block;
    width: 50%;
    vertical-align: top;
}

.news-single-1 .news-img-wrap .outer:nth-child(odd) .mediaelement,
.news-single-2 .news-img-wrap .outer:nth-child(odd) .mediaelement {
    padding-right: 5px;
}

.news-single-1 .news-img-wrap .outer:nth-child(even) .mediaelement,
.news-single-2 .news-img-wrap .outer:nth-child(even) .mediaelement {
    padding-left: 5px;
}

.news-category-text {
    position: absolute;
    right: 0px;
    top: 15px;
    font-size: 16px;
    z-index: 1;
    text-transform: uppercase;
    color: var(--color-light);
    font-weight: bold;
    padding: 4px;
//    background: #0000009c;
}

@keyframes moveGradient {
    50% {
        background-position: 100% 50%;
    }
}

.alert {
    font-size: 18px;
}

.alert h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

@media only screen and (max-width: 400px) {
    .gradient-border {
        width: 200px;
    }

    div.logo-mobil {
        width: 200px;
    }
}

@media only screen and (max-width: 560px) {
    #sprachauswahl {
        position: absolute;
        top: 30px;
        right: 70px;
        z-index: 9000000;
    }

    #sprachauswahl ul li {
        list-style-type: none;
        float: left;
        margin-right: 15px;
    }

    #sprachauswahl ul li a {
        font-weight: normal;
        font-style: normal;
        text-decoration: none;
        color: var(--color-dark);
    }

    .footer {
        margin-top: 30px;
    }

    .footer-logos {
        flex-direction: column;
        align-items: center;
    }


    .footer-logos .main-sponsor .text {
        text-align: center;
    }



    .footer-logos .marketing-logo {
        margin-bottom: 50px;
    }

    #c56.frame.frame-default.frame-type-textmedia.frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-gallery div.ce-outer div.ce-inner div.ce-row div.ce-column figure.image figcaption.image-caption {
        padding-bottom: 0px;
    }

    .rows {
        margin: 15px 15px 0;
        width: calc(100% - 30px);
        font-size: 30px;
        float: left;

    }

    div#c257.frame.frame-default.frame-type-list.frame-layout-0 header h2,
    div#c256.frame.frame-default.frame-type-list.frame-layout-0 header h2,
    div#c255.frame.frame-default.frame-type-list.frame-layout-0 header h2 {
        margin-left: 15px;
        margin-right: 15px;
        margin-top: 15px;
        line-height: 22px;
        font-size: 19px;

    }

    .frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext p {
        width: calc(100% - 30px);
        margin-right: 15px;
        margin-bottom: 22px;
        margin-left: 15px;
        font-size: 17px;
        letter-spacing: 0;
        line-height: 22px;
    }

    /* div#c1.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2 */
    .frame.frame-default.frame-type-textmedia.frame-layout-0 header h2 {
        margin: 34px 15px 17px;
        width: calc(100% - 30px);
        font-size: 24px;
        line-height: 30px;
        letter-spacing: 0;
        font-weight: bold;
    }

    .rows33 {
        float: left;
        width: calc(100% - 0px);
        margin-right: 0px;
        margin-left: 0px;
        margin-top: 30px;
    }

    div.logo-mobil {
        position: absolute;
        top: 15px;
        float: left;
        left: 15px;

    }

    .rowslinks header h3, .rowslinks h3 {
        font-size: 20px;
        line-height: 28px;
        font-weight: normal;
        font-style: normal;
        margin-top: 13px;
        margin-bottom: 20px;
    }

    .rowslinks header h2 {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 14px;
    }

    #mainihalt div.ce-bodytext h5 {
        margin: 0;
        float: left;
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 14px;
    }


    #mainihalt .rowsrechts div.ce-bodytext p {
        width: 100%;
        float: left;
        margin: 20px 0;
        font-size: 14px;
        line-height: 20px;
    }

    #mainihalt .rowsrechts div.ce-bodytext ul,
    #mainihalt .rowsrechts div.ce-bodytext ol {
        width: calc(100% - 28px);
        margin: 0 0 20px 28px;
    }

    .rowslinks33 {
        float: left;
        width: calc((100% / 1) - 30px);
        margin-right: 15px;
        margin-left: 15px;
    }

    .rowsmitte33 {
        float: left;
        width: calc((100% / 1) - 30px);
        margin-right: 15px;
        margin-left: 15px;
    }

    .rowsrechts33 {
        float: left;
        width: calc((100% / 1) - 30px);
        margin-right: 15px;
        margin-left: 15px;
    }

    .rows50 {
        float: left;
        width: calc(100% - 30px);
        margin-right: 15px;
        margin-left: 15px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .rows50links {
        float: left;
        width: calc((100% / 1) - 0px);
        margin-right: 0px;
        margin-left: 0px;
        margin-bottom: 30px;
    }

    .rows50rechts {
        float: left;
        width: calc((100% / 1) - 0px);
        margin-right: 0px;
        margin-left: 0px;
    }

    #mainihalt .frame-type-menu_subpages.frame-layout-0 ul li {
        float: left;
        font-size: 14px;
        line-height: 22px;
        margin-right: 0px;
        width: 100%;
    }

    div#c100.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c24.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c26.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c30.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c33.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c37.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c69.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c72.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2, div#c75.frame.frame-default.frame-type-textmedia.frame-layout-0 header h2 {
        margin: 0 15px 20px;
        width: calc(100% - 30px);
        font-size: 30px;
    }

    .frame-layout-0 header h1 {
        margin: 0 15px 20px;
        width: calc(100% - 30px);
    }

    figcaption.image-caption {
        margin-top: 15px;
        line-height: 20px;
        font-size: 14px;
        margin-bottom: 30px;
    }

    .cookie-banner-text {
        font-size: 13px;
        line-height: 16px;
        padding: 0 30px;
    }

    .cookie-buttons {
        margin-top: 10px;
    }

    .privacy-link {
        font-size: 12px;
        margin-top: 5px;
    }

    .btn-accept {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Linke Spalte (.row-66): .row-66 hat schon margin-left, deshalb
   Ueberschrift und Text bis zur vollen Seitenbreite buendig. */
@media only screen and (max-width: 1441px) {
    .row-66 .frame.frame-default.frame-layout-0 header h2 {
        margin-left: 0;
    }

    .row-66 .frame-layout-0 div.ce-textpic.ce-center.ce-above div.ce-bodytext p {
        width: calc(100% - 30px);
        margin-left: 0;
    }
}

@media only screen and (max-width: 768px) {
    .row-33,
    .row-66 {
        width: calc(100% - 30px);
    }

    .row-33 {
        float: left;
        margin: 0 15px;
    }

    .row-33 .frame {
        width: calc(100% - 30px);
    }

    .rows25 .col {
        width: calc((100% / 2) - 30px);
    }

    .rows25 .col:nth-child(2n+1) {
        clear: both;
    }

    .frame.frame-layout-0 .c-gallery .col-sm-12.col-md-6.col-lg-3 {
        width: calc(50% - 2px);
    }

    .frame.frame-layout-0 .c-gallery .col-sm-12.col-md-6.col-lg-3:nth-child(2n) {
        clear: both;
    }

    .category-filter {
        width: calc(100% - 30px);
        padding-left: 15px;
        flex-direction: column-reverse;
        align-items: self-start;
    }

    .category-filter img {
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 980px) {
    div.social {
        right: 70px;
    }

    .news-single-1 .outer:nth-child(odd),
    .news-single-2 .outer:nth-child(odd) {
        clear: both;
    }

    .news-single h2:first-child {
        margin-top: 30px;
    }

    .news-single .images-desktop {
        display: none;
    }

    .news-single .images-mobile {
        display: block;
    }
}

@media only screen and (min-width: 768px) {
    .bm-gallery--wrapper .bm-gallery--item {
        width: calc(33.3% - 4px);
    }
}

@media only screen and (min-width: 981px) {
    div.logo-mobil {
        display: none;
    }

    body div.header-fixed {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 10;
    }

    div.Fixedicon {
        display: none;
    }

    #my-page {
        position: absolute;
        top: 0;

    }

    .news-single-1 .images-md-33 .outer:nth-child(odd),
    .news-single-2 .images-md-33 .outer:nth-child(odd) {
        clear: initial;
    }

    .news-single-1 .images-md-33 .outer:nth-child(3n+1),
    .news-single-2 .images-md-33 .outer:nth-child(3n+1) {
        clear: both;
    }

    .news-single-1 .news-img-wrap.images-md-33 .outer,
    .news-single-2 .news-img-wrap.images-md-33 .outer {
        width: 33.33%;
    }

    .news-single-1 .news-img-wrap.images-md-33 .outer:nth-child(odd) .mediaelement,
    .news-single-2 .news-img-wrap.images-md-33 .outer:nth-child(odd) .mediaelement {
        padding-right: 0;
    }

    .news-single-1 .news-img-wrap.images-md-33 .outer:nth-child(even) .mediaelement,
    .news-single-2 .news-img-wrap.images-md-33 .outer:nth-child(even) .mediaelement {
        padding-left: 0;
    }

    .news-single-1 .news-img-wrap.images-md-33 .outer:nth-child(3n+1) .mediaelement,
    .news-single-2 .news-img-wrap.images-md-33 .outer:nth-child(3n+1) .mediaelement {
        padding-right: 6px;
    }

    .news-single-1 .news-img-wrap.images-md-33 .outer:nth-child(3n+2) .mediaelement,
    .news-single-2 .news-img-wrap.images-md-33 .outer:nth-child(3n+2) .mediaelement {
        padding-left: 3px;
        padding-right: 3px;
    }

    .news-single-1 .news-img-wrap.images-md-33 .outer:nth-child(3n) .mediaelement,
    .news-single-2 .news-img-wrap.images-md-33 .outer:nth-child(3n) .mediaelement {
        padding-left: 6px;
    }
}

@media only screen and (min-width: 1024px) {
    .bm-gallery--wrapper .bm-gallery--item {
        width: calc(25% - 4px);
    }
}

@media only screen and (min-width: 1280px) {
    .bm-gallery--wrapper .bm-gallery--item {
        width: calc(20% - 4px);
    }
}

@media only screen and (max-width: 1300px) {
    #mainihalt {
        margin-right: auto;
        margin-left: auto;
        padding-right: 0px;
        padding-left: 0px;
    }

    div.mainnavi ul li {

        float: left;
        font-size: 20px;
        letter-spacing: -0.5px;
        margin-right: 15px;
        font-weight: 600;
    }

    div.subnavi ul li {
        float: left;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0px;
        margin-right: 12px;
        font-weight: 600;
    }

    div#logo-fixed {
        font-size: 25px;
        float: left;
        width: 23.5%;
        line-height: 30px;
        letter-spacing: 1.2px;
    }

    div.navi {
        float: right;
        width: calc(100% - 27.5%);
    }
}

@media only screen and (max-width: 1100px) {
    #mainihalt {
        margin-right: auto;
        margin-left: auto;
        padding-right: 0px;
        padding-left: 0px;
    }

    div.fb {
        float: left;
        width: 22px;
        margin-left: 0px;
    }

    div.insta {
        float: left;
        width: 22px;
        margin-left: 15px;
    }

    div.mainnavi ul li {
        float: left;
        font-size: 19px;
        letter-spacing: -0.5px;
        margin-right: 20px;
        font-weight: 600;
    }

    div#logo-fixed {
        font-size: 23px;
        float: left;
        width: 27%;
        line-height: 27px;
        letter-spacing: 1.2px;
    }

    div.navi {
        float: right;
        width: calc(100% - 30%);
    }
}

/* Video mit "Ton an"-Button (z.B. Festival-Video auf der Startseite).
   Markup: .video-container > video + button.sound-button, JS in main.js */
.video-container {
    position: relative;
    width: 100%;
    background: var(--color-main);
}

/* Hintergrund bis an den Fensterrand: Schatten nach links/rechts statt
   Breite aus 100vw (die je nach Scrollbalken nicht stimmt). Das Video
   selbst bleibt im Inhaltsbereich (max. 1320px). */
.video-container--full-width {
    box-shadow: 0 0 0 100vmax var(--color-main);
    clip-path: inset(0 -100vmax);
}

/* Offenes Mobilmenü: .mm-page schiebt sich zur Seite, der Schatten ragt
   sonst über die Seite hinaus und überdeckt das Menü. */
.mm-wrapper_opened .video-container--full-width {
    box-shadow: none;
    clip-path: none;
}

.video-container video {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: block;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
}

.sound-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--color-light);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.3s ease;
}

.sound-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.sound-button:focus-visible {
    outline: 3px solid var(--color-light);
    outline-offset: 4px;
}

.sound-button.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 600px) {
    .sound-button {
        padding: 12px 18px;
        gap: 8px;
        font-size: 15px;
    }

    .sound-button svg {
        width: 32px;
        height: 32px;
    }
}

/* Ueberschriften von Inhaltselementen buendig mit ihrem Inhalt:
   Fliesstext (ce-center ce-above) und News-Listen sind 30px (mobil 15px)
   eingerueckt, die Header bisher nicht. Spezifischere Ausnahmen
   (z.B. rechte Spalte im Zweispalter 66/33, Downloads) bleiben wirksam:
   :where() haelt die Spezifitaet bewusst niedrig (0,1,2). */
.frame-layout-0:where(.frame-type-textmedia:has(> .ce-textpic.ce-center.ce-above), .frame-type-list:has(> .news)) > header :where(h2, h3) {
    margin-left: 30px;
    margin-right: 30px;
}

@media only screen and (max-width: 560px) {
    .frame-layout-0:where(.frame-type-textmedia:has(> .ce-textpic.ce-center.ce-above), .frame-type-list:has(> .news)) > header :where(h2, h3) {
        margin-left: 15px;
        margin-right: 15px;
    }
}
