/* ========================================================================
   SiKo Albisrieden – TYPO3 Sitepackage
   Datei: Resources/Public/Css/main.css
   ======================================================================== */

/* ------------------------------------------------------------------------
   1. Schriften und Variablen
   ------------------------------------------------------------------------ */

@font-face {
    font-family: "Flama Basic";
    src:
        url("../Fonts/Flama-Basic.woff2") format("woff2"),
        url("../Fonts/Flama-Basic.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Flama Basic";
    src:
        url("../Fonts/Flama-BasicItalic.woff2") format("woff2"),
        url("../Fonts/Flama-BasicItalic.woff") format("woff");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Flama Basic";
    src:
        url("../Fonts/Flama-Semibold.woff2") format("woff2"),
        url("../Fonts/Flama-Semibold.woff") format("woff");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Flama Basic";
    src:
        url("../Fonts/Flama-BoldItalic.woff2") format("woff2"),
        url("../Fonts/Flama-BoldItalic.woff") format("woff");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

:root {
    --siko-blue: #3e7fc3;
    --siko-red: #e63323;
    --siko-orange: #ed6b08;
    --siko-green: #9acfb6;
    --siko-link: #568b29;
    --siko-link-hover: #416c20;
    --siko-yellow: #ffb500;
    --siko-dark: #222;
    --siko-text: #212529;
    --siko-muted: #6c757d;
    --siko-line: #ccc;
    --siko-white: #fff;
    --siko-container: 1210px;
    --siko-gutter: 15px;
    --siko-line-height: 1.5;
}

/* ------------------------------------------------------------------------
   2. Grundlayout und Reset
   ------------------------------------------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: var(--siko-text);
    background: var(--siko-white);
    font-family: "Flama Basic", Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

p,
ul,
ol,
dl,
blockquote,
table {
    margin-top: 0;
    margin-bottom: 19px;
}

ul,
ol {
    padding-left: 1.5em;
}

a {
    color: var(--siko-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover,
a:focus {
    color: var(--siko-link-hover);
}

:focus-visible {
    outline: 3px solid rgb(86 139 41 / 30%);
    outline-offset: 3px;
}

.site {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.siko-container {
    width: 100%;
    max-width: var(--siko-container);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--siko-gutter);
    padding-left: var(--siko-gutter);
}

/* ------------------------------------------------------------------------
   3. Typografie
   ------------------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--siko-text);
    font-family: "Flama Basic", Arial, Helvetica, sans-serif;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    margin-bottom: 9.5px;
    font-size: 66.5px;
}

h2 {
    margin-bottom: 9.5px;
    font-size: 45.6px;
}

#c38 h2.text-center {
    margin-bottom: 9.5px;
    font-size: 32px;
}

h3 {
    margin-bottom: 9.5px;
    font-size: 32px;
}

h4 {
    margin-bottom: 9.5px;
    font-size: 26px;
}

h5 {
    margin-bottom: 9.5px;
    font-size: 22px;
}

h6 {
    margin-bottom: 9.5px;
    font-size: 19px;
}

strong,
b {
    font-weight: 600;
}

small {
    font-size: 80%;
}

/* Die TYPO3-Ausrichtung bleibt im Backend steuerbar. */
.text-center,
.ce-headline-center {
    text-align: center !important;
}

.text-start,
.text-left,
.ce-headline-left {
    text-align: left !important;
}

.text-end,
.text-right,
.ce-headline-right {
    text-align: right !important;
}

/* ------------------------------------------------------------------------
   4. Header, Logo und Navigation
   ------------------------------------------------------------------------ */

.site-header {
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
    min-height: 171.21875px;
    margin-bottom: 28.5px;
    background: var(--siko-white);
}

.site-header__inner {
    display: flex;
    min-height: 171.21875px;
    align-items: center;
}

.site-logo {
    display: block;
    width: 280px;
    max-width: 280px;
    flex: 0 0 280px;
    margin-top: 19px;
    padding-bottom: 30px;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Dünne Linie direkt unter dem Header wie im Original. */
.site-header::after {
    position: absolute;
    right: var(--siko-gutter);
    bottom: 0;
    left: var(--siko-gutter);
    display: block;
    width: auto;
    max-width: 1180px;
    height: 1px;
    margin-right: auto;
    margin-left: auto;
    background: var(--siko-line);
    content: "";
}

.main-navigation {
    margin-left: auto;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    position: relative;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    padding: 0 11.4px;
    color: var(--siko-text);
    font-size: 19px;
    line-height: 28.5px;
    text-decoration: none;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .is-active > a,
.main-navigation a[aria-current="page"] {
    color: var(--siko-link);
}

/* Dropdowns für eine spätere zweite Navigationsebene. */
.main-navigation li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 230px;
    padding: 10px 0;
    background: var(--siko-white);
    box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    display: block;
}

.main-navigation li > ul a {
    padding: 8px 18px;
    white-space: normal;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 44px;
    margin-left: auto;
    padding: 7px;
    border: 0;
    background: transparent;
    color: var(--siko-dark);
    cursor: pointer;
}

.nav-toggle__line {
    display: block;
    width: 30px;
    height: 2px;
    margin: 6px auto;
    background: currentColor;
    transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ------------------------------------------------------------------------
   5. Seitenkopf und TYPO3-Content-Elemente
   ------------------------------------------------------------------------ */

.page-header {
    margin-top: 19px;
    margin-bottom: 19px;
    text-align: center;
}

.page-header:has(h1:empty) {
    display: none;
}

.page-header h1:empty {
    display: none;
}

.page-content {
    padding-top: 0;
    padding-bottom: 28.5px;
}

.frame {
    position: relative;
    margin: 0 0 28.5px;
}

.frame:last-child {
    margin-bottom: 0;
}

/*
 * Linie vor jedem weiteren TYPO3-Content-Element.
 * Vor dem ersten Element liegt bereits die Linie unter dem Header.
 */
.page-content > .frame + .frame {
    margin-top: 28.5px;
    padding-top: 28.5px;
    border-top: 1px solid var(--siko-line);
}

.frame > :last-child,
.frame > div > :last-child {
    margin-bottom: 0;
}

.frame header {
    margin-bottom: 19px;
}

/*
 * Erster Textblock als Seitentitel, beispielsweise Gemeinschaftsgarten.
 * Unterstützt sowohl H1/H2 als auch den derzeitigen H2/H3-Aufbau.
 */
.page-content > .frame:first-child.frame-type-text > header {
    width: 100%;
    max-width: 806.6667px;
    margin: 19px auto;
    padding-right: 15px;
    padding-left: 15px;
    text-align: center;
}

.page-content > .frame:first-child.frame-type-text > header > h1:first-child,
.page-content > .frame:first-child.frame-type-text > header > h2:first-child {
    margin: 0 0 9.5px;
    font-size: 66.5px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.page-content > .frame:first-child.frame-type-text > header > h1:first-child + h2,
.page-content > .frame:first-child.frame-type-text > header > h2:first-child + h3 {
    margin: 0 0 19px;
    font-size: 19px;
    font-weight: 600;
    line-height: 28.5px;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* TYPO3 Media/Text. */
.ce-textpic,
.ce-image,
.ce-gallery,
.ce-row {
    max-width: 100%;
}

.ce-gallery {
    margin-bottom: 19px;
}

.ce-gallery img {
    width: auto;
    max-width: 100%;
}

.ce-bodytext > :last-child {
    margin-bottom: 0;
}

.ce-intext.ce-left .ce-gallery {
    float: left;
    margin-right: 30px;
}

.ce-intext.ce-right .ce-gallery {
    float: right;
    margin-left: 30px;
}

.ce-textpic::after,
.ce-intext::after {
    display: table;
    clear: both;
    content: "";
}

figcaption,
.image-caption {
    margin-top: 7px;
    color: var(--siko-muted);
    font-size: 16px;
    line-height: 1.4;
}

/* ------------------------------------------------------------------------
   6. Zweispaltige Inhaltsbereiche
   ------------------------------------------------------------------------ */

.feature,
.content-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: center;
}

.feature--reverse .feature__media,
.content-row--reverse .content-row__media {
    order: 2;
}

.feature__content > :last-child,
.content-row__content > :last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------------
   7. Bildergalerie und Hero-Slider
   ------------------------------------------------------------------------ */

.hero-slider,
.big-carousel,
.js-hero-slider {
    width: 100%;
    margin-bottom: 28.5px;
    overflow: hidden;
}

.hero-slider .carousel-cell,
.big-carousel .carousel-cell,
.js-hero-slider .carousel-cell {
    width: auto;
    height: 50vw;
    max-height: 600px;
    margin-right: 10px;
    overflow: hidden;
}

.hero-slider .carousel-cell-image,
.big-carousel .carousel-cell-image,
.js-hero-slider .carousel-cell-image {
    width: auto;
    max-width: none;
    height: 100%;
    opacity: 0;
    transition: opacity 400ms ease;
}

.hero-slider .carousel-cell-image.flickity-lazyloaded,
.hero-slider .carousel-cell-image.flickity-lazyerror,
.big-carousel .carousel-cell-image.flickity-lazyloaded,
.big-carousel .carousel-cell-image.flickity-lazyerror,
.js-hero-slider .carousel-cell-image.flickity-lazyloaded,
.js-hero-slider .carousel-cell-image.flickity-lazyerror {
    opacity: 1;
}

.flickity-viewport {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.flickity-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.flickity-button {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 85%);
    color: var(--siko-dark);
    transform: translateY(-50%);
    cursor: pointer;
}

.flickity-button:hover,
.flickity-button:focus {
    background: var(--siko-white);
}

.flickity-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.flickity-prev-next-button.previous {
    left: 15px;
}

.flickity-prev-next-button.next {
    right: 15px;
}

.flickity-button-icon {
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    fill: currentColor;
}

/* ==========================================================
   Hero-Slider
   ========================================================== */

.siko-hero {
    position: relative;
    width: 100%;
    margin: 0 0 57px;
    overflow: hidden;
    background: #fff;
}

.siko-hero__viewport {
    position: relative;
    width: 100%;
    height: clamp(280px, 37.5vw, 540px);
    overflow: hidden;
}

.siko-hero__track {
    display: flex;
    width: max-content;
    align-items: stretch;
    gap: 10px;
    transition: transform 700ms ease;
    will-change: transform;
}

.siko-hero__slide {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    background: #fff;
}

/*
 * Erstes Hero-Bild bereits vor der
 * JavaScript-Initialisierung zentrieren.
 */
.siko-hero__track
    > .siko-hero__slide[data-slider-slide]:first-child {
    margin-left: 50vw;
    transform: translateX(-50%);
}

.siko-hero__image {
    display: block;
    width: auto;
    max-width: none;
    height: clamp(280px, 37.5vw, 540px);
    background: #fff;
}

.siko-hero__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 19px max(30px, calc((100% - 1180px) / 2));
    color: #fff;
    background: linear-gradient(
        to top,
        rgb(0 0 0 / 65%),
        transparent
    );
    font-size: 19px;
    line-height: 28.5px;
}

.siko-hero__control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 72px;
    padding: 0;
    border: 0;
    color: #fff;
    background: rgb(0 0 0 / 35%);
    font: inherit;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.siko-hero__control:hover,
.siko-hero__control:focus-visible {
    color: #fff;
    background: rgb(0 0 0 / 65%);
}

.siko-hero__control--previous {
    left: 0;
}

.siko-hero__control--next {
    right: 0;
}

.siko-hero__dots {
    position: absolute;
    right: 0;
    bottom: 19px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.siko-hero__caption + .siko-hero__dots {
    bottom: 10px;
}

.siko-hero__dot {
    position: relative;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.siko-hero__dot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    content: "";
    transform: translate(-50%, -50%);
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.siko-hero__dot.is-active::before,
.siko-hero__dot[aria-current="true"]::before {
    background: #fff;
}

.siko-hero__dot:hover,
.siko-hero__dot:focus,
.siko-hero__dot:focus-visible {
    border: 0;
    background: transparent;
    color: inherit;
}

.siko-hero__dot:hover::before,
.siko-hero__dot:focus-visible::before {
    transform: translate(-50%, -50%) scale(1.2);
}

.siko-hero__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

@media (max-width: 767.98px) {
    .siko-hero {
        margin-bottom: 38px;
    }

    .siko-hero__viewport,
	.siko-hero__image {
        height: 300px;
    }

    .siko-hero__control {
        width: 42px;
        height: 58px;
        font-size: 40px;
    }

    .siko-hero__caption {
        padding: 38px 20px 16px;
        font-size: 16px;
        line-height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .siko-hero__track {
        transition: none;
    }
}

/* ------------------------------------------------------------------------
   8. Buttons und Formulare
   ------------------------------------------------------------------------ */

.btn,
button,
input[type="submit"] {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid var(--siko-dark);
    border-radius: 0;
    background: transparent;
    color: var(--siko-dark);
    font: inherit;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.btn:hover,
.btn:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    background: var(--siko-dark);
    color: var(--siko-white);
}

label {
    display: block;
    margin-bottom: 6px;
}

input,
textarea,
select {
    max-width: 100%;
    font: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #999;
    border-radius: 0;
    background: var(--siko-white);
    color: var(--siko-text);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--siko-blue);
    outline: 2px solid rgb(62 127 195 / 25%);
}

.form-group,
.form-element {
    margin-bottom: 19px;
}

/* ------------------------------------------------------------------------
   9. Tabellen
   ------------------------------------------------------------------------ */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--siko-line);
    text-align: left;
    vertical-align: top;
}

th {
    font-weight: 600;
}

/* ------------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------------ */

/* ========================================================================
   Footer in den SiKo-Logo-Farben
   ======================================================================== */

.site-footer {
    margin-top: 37px;
    padding: 28.5px 0 0;
    color: #fff;
    background: #476240;
    font-size: 19px;
    line-height: 28.5px;
}

/* Oberer Footerbereich */

.site-footer__top-row {
    display: flex;
    margin-right: -15px;
    margin-bottom: 28.5px;
    margin-left: -15px;
}

.site-footer__contact,
.site-footer__empty-column {
    position: relative;
    width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

.site-footer .site-footer__contact p {
    margin: 0 0 19px;
    color: #fff;
}

/*
 * Aufgehelltes Logo-Limettengrün für ausreichenden Kontrast
 * auf dem dunklen Footer-Hintergrund.
 */
.site-footer__email,
.site-footer__email:visited {
    color: #d7e568;
    text-decoration: none;
    transition:
        color 180ms ease,
        text-decoration-color 180ms ease;
}

.site-footer__email:hover,
.site-footer__email:focus,
.site-footer__email:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

/* Untere grüne Footerleiste */

.site-footer__bar {
    padding: 19px 0;
    color: #18212b;
    background: #59ac31;
}

.site-footer__bar-inner {
    display: flex;
    min-height: 28.5px;
    align-items: flex-start;
}

.site-footer__meta {
    display: block;
    color: #18212b;
    font-size: 15.2px;
    line-height: 22.8px;
}

.site-footer__copyright {
    color: #18212b;
}

.site-footer__legal {
    display: inline;
    margin: 0;
    padding: 0;
}

.site-footer__spacing {
    display: inline;
}

.site-footer__legal a,
.site-footer__legal a:visited {
    display: inline;
    color: #18212b;
    font-size: inherit;
    line-height: inherit;
    text-decoration: none;
    transition:
        color 180ms ease,
        text-decoration-color 180ms ease;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus,
.site-footer__legal a:focus-visible,
.site-footer__legal a.is-active,
.site-footer__legal a[aria-current="page"] {
    color: #173315;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

/* Sichtbarer Tastaturfokus */

.site-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Pfeil rechts */

.site-footer a.site-footer__top-link,
.site-footer a.site-footer__top-link:visited {
    display: block;
    width: auto;
    height: 30.5px;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding: 0 14.25px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 50%;
    color: #fff;
    background: #476240;
    font-size: 19px;
    line-height: 28.5px;
    text-align: center;
    text-decoration: none;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.site-footer a.site-footer__top-link:hover,
.site-footer a.site-footer__top-link:focus,
.site-footer a.site-footer__top-link:focus-visible {
    border-color: rgb(255 255 255 / 65%);
    color: #fff;
    background: #173315;
    text-decoration: none;
}

/* Mobile Darstellung */

@media (max-width: 767.98px) {
    .site-footer {
        margin-top: 28.5px;
        padding-top: 28.5px;
    }

    .site-footer__top-row {
        display: block;
    }

    .site-footer__contact {
        width: 100%;
    }

    .site-footer__empty-column {
        display: none;
    }

    .site-footer__bar-inner {
        align-items: center;
    }

    .site-footer__meta {
        padding-right: 15px;
    }

    .site-footer__legal a,
    .site-footer__spacing {
        white-space: nowrap;
    }
}

/* ------------------------------------------------------------------------
   11. Hilfsklassen und Animationen
   ------------------------------------------------------------------------ */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.clearfix::after {
    display: table;
    clear: both;
    content: "";
}

.w-100 {
    width: 100% !important;
}

.slide-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.slide-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ohne JavaScript bleiben Inhalte immer sichtbar. */
.no-js .slide-in {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------------------
   Aufzählungen in normalen TYPO3-Textinhalten
   ------------------------------------------------------------------------ */

.site-main .frame-type-text ul,
.site-main .frame-type-textpic ul,
.site-main .frame-type-textmedia ul {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 1rem auto;
    padding: 0;
    list-style: none !important;
    text-align: left !important;
}

.site-main .frame-type-text ul > li,
.site-main .frame-type-textpic ul > li,
.site-main .frame-type-textmedia ul > li {
    position: relative;
    margin: 0.35rem 0;
    padding-left: 1.2rem;
    list-style: none !important;
    text-align: left !important;
    line-height: 1.5;
}

.site-main .frame-type-text ul > li::before,
.site-main .frame-type-textpic ul > li::before,
.site-main .frame-type-textmedia ul > li::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "-";
}

/* Absätze innerhalb der Listenpunkte zurücksetzen */

.site-main .frame-type-text ul > li > p,
.site-main .frame-type-textpic ul > li > p,
.site-main .frame-type-textmedia ul > li > p {
    display: inline;
    margin: 0;
    padding: 0;
    text-align: left !important;
}

/* ------------------------------------------------------------------------
   12. Responsive: Tablet und Mobile
   ------------------------------------------------------------------------ */

@media (max-width: 1199.98px) {
    .site-header {
        min-height: 110px;
        margin-bottom: 28.5px;
    }

    .site-header__inner {
        position: relative;
        min-height: 110px;
    }

    .site-logo {
        width: 180px;
        max-width: 180px;
        flex-basis: 180px;
        margin-top: 0;
        padding-bottom: 12px;
    }

    .nav-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        right: 15px;
        left: 15px;
        display: none;
        margin-left: 0;
        padding: 12px 0;
        border-top: 1px solid var(--siko-line);
        background: var(--siko-white);
        box-shadow: 0 12px 24px rgb(0 0 0 / 12%);
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        display: block;
    }

    .main-navigation a {
        padding: 10px 18px;
        white-space: normal;
    }

    .main-navigation li > ul {
        position: static;
        display: block;
        padding: 0 0 0 18px;
        box-shadow: none;
    }

    .page-content > .frame:first-child.frame-type-text > header > h1:first-child,
    .page-content > .frame:first-child.frame-type-text > header > h2:first-child,
    h1 {
        font-size: clamp(44px, 7vw, 56px);
    }

    h2 {
        font-size: 40px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 18px;
    }

    .site-header {
        min-height: 90px;
        margin-bottom: 20px;
    }

    .site-header__inner {
        min-height: 90px;
    }

    .site-logo {
        width: 150px;
        max-width: 150px;
        flex-basis: 150px;
    }

    .page-content {
        padding-bottom: 20px;
    }

    .page-content > .frame + .frame {
        margin-top: 20px;
        padding-top: 20px;
    }

    .frame {
        margin-bottom: 20px;
    }

    .page-content > .frame:first-child.frame-type-text > header {
        margin-top: 12px;
        margin-bottom: 16px;
        padding-right: 0;
        padding-left: 0;
    }

    .page-content > .frame:first-child.frame-type-text > header > h1:first-child,
    .page-content > .frame:first-child.frame-type-text > header > h2:first-child,
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 34px;
    }
	
    #c38 h2.text-center {
        font-size: 27px;
    }

    h3 {
        font-size: 27px;
    }

    .page-content > .frame:first-child.frame-type-text > header > h1:first-child + h2,
    .page-content > .frame:first-child.frame-type-text > header > h2:first-child + h3 {
        font-size: 18px;
        line-height: 27px;
    }

    .feature,
    .content-row {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .feature--reverse .feature__media,
    .content-row--reverse .content-row__media {
        order: initial;
    }

    .ce-intext.ce-left .ce-gallery,
    .ce-intext.ce-right .ce-gallery {
        float: none;
        margin-right: 0;
        margin-left: 0;
    }

    .hero-slider .carousel-cell,
    .big-carousel .carousel-cell,
    .js-hero-slider .carousel-cell {
        height: 65vw;
        max-height: 450px;
    }

    .site-footer {
        margin-top: 20px;
        padding: 28px 0 22px;
    }
}

@media (max-width: 420px) {
    .site-logo {
        width: 135px;
        max-width: 135px;
        flex-basis: 135px;
    }

    .page-content > .frame:first-child.frame-type-text > header > h1:first-child,
    .page-content > .frame:first-child.frame-type-text > header > h2:first-child,
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    .hero-slider .carousel-cell,
    .big-carousel .carousel-cell,
    .js-hero-slider .carousel-cell {
        height: 75vw;
    }
}

/* ------------------------------------------------------------------------
   13. Barrierefreiheit und Drucken
   ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .slide-in {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .flickity-button {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    .siko-container {
        max-width: none;
        padding: 0;
    }

    a {
        color: #000;
    }
}
/* ========================================================================
   Mitglieder / Team
   ======================================================================== */

.team {
    margin-top: 28.5px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-right: -15px;
    margin-left: -15px;
}

.team-card {
    min-width: 0;
    margin: 0 0 19px;
    padding-right: 15px;
    padding-left: 15px;
}

.team-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
}

.team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #eee 0%,
            #ddd 100%
        );
}

.team-card__text {
    margin-top: 9.5px;
    font-size: 15.2px;
    line-height: 22.8px;
}

.team-card__name {
    margin: 0 0 9.5px;
    font-size: 23.75px;
    font-weight: 500;
    line-height: 28.5px;
}

.team-card__role,
.team-card__email {
    margin: 0 0 19px;
}

.team-card__description {
    margin-bottom: 19px;
}

.team-card__description > :last-child {
    margin-bottom: 0;
}

.team-card__email a {
    color: var(--siko-link);
}

/* Drei Mitglieder pro Reihe auf Tablets */

@media (max-width: 991.98px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Zwei Mitglieder pro Reihe auf Mobilgeräten */

@media (max-width: 767.98px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-card__name {
        font-size: 21px;
        line-height: 25px;
    }
}

/* Eine Spalte auf sehr kleinen Geräten */

@media (max-width: 420px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   Navigation wie auf der ursprünglichen Website
   Tablet und Mobile
   ======================================================================== */

@media (max-width: 1199.98px) {
    .site-header {
        min-height: 171.21875px;
        margin-bottom: 28.5px;
        background: #fff;
        transition: min-height 220ms ease;
    }

    .site-header__inner {
        position: relative;
        min-height: 171.21875px;
        align-items: center;
    }

    /* Auf dem iPad bleibt das Logo so gross wie im Original. */
    .site-logo {
        position: relative;
        z-index: 3;
        width: 280px;
        max-width: 280px;
        flex: 0 0 280px;
        margin-top: 19px;
        padding-bottom: 30px;
    }

    /*
     * Überschreibt die allgemeinen button:hover- und
     * button:focus-Regeln. Dadurch entsteht kein schwarzer Kasten.
     */
    .nav-toggle,
    .nav-toggle:hover,
    .nav-toggle:focus,
    .nav-toggle:focus-visible {
        position: absolute;
        top: 50%;
        right: 15px;
        z-index: 5;
        display: block;
        width: 58px;
        height: 58px;
        min-height: 0;
        margin: 0;
        padding: 10px;
        border: 0;
        border-radius: 0;
        outline-offset: 2px;
        background: transparent;
        color: #222;
        transform: translateY(-50%);
        box-shadow: none;
    }

    .nav-toggle__line {
        display: block;
        width: 34px;
        height: 2px;
        margin: 7px auto;
        background: currentColor;
        transition:
            transform 200ms ease,
            opacity 160ms ease;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /*
     * Das Original vergrössert den weissen Header beim Öffnen.
     * Es erscheint keine schwebende Dropdown-Box.
     */
    body.navigation-open .site-header {
        min-height: 380px;
    }

    .main-navigation {
        position: absolute;
        top: 145px;
        right: 85px;
        left: 320px;
        z-index: 2;
        display: none;
        margin: 0;
        padding: 0 0 24px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation > ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .main-navigation > ul > li {
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .main-navigation > ul > li > a {
        display: inline-block;
        padding: 5px 18px;
        font-size: 30px;
        line-height: 1.18;
        white-space: normal;
    }

    /*
     * Zweite Ebene, beispielsweise Kalender.
     * Sie bleibt sichtbar, aber etwas kleiner als der Hauptpunkt.
     */
    .main-navigation li > ul {
        position: static;
        display: block;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .main-navigation li > ul li {
        width: 100%;
        text-align: center;
    }

    .main-navigation li > ul a {
        display: inline-block;
        padding: 2px 18px 5px;
        font-size: 23px;
        line-height: 1.2;
        white-space: normal;
    }
}

/* iPhone und schmale Tablets */

@media (max-width: 767.98px) {
    .site-header {
        min-height: 120px;
        margin-bottom: 20px;
    }

    .site-header__inner {
        min-height: 120px;
    }

    .site-logo {
        width: 185px;
        max-width: 185px;
        flex-basis: 185px;
        margin-top: 12px;
        padding-bottom: 18px;
    }

    .nav-toggle,
    .nav-toggle:hover,
    .nav-toggle:focus,
    .nav-toggle:focus-visible {
        right: 10px;
        width: 52px;
        height: 52px;
        padding: 8px;
    }

    body.navigation-open .site-header {
        min-height: 430px;
    }

    .main-navigation {
        top: 125px;
        right: 15px;
        left: 15px;
        padding-bottom: 25px;
    }

    .main-navigation > ul > li > a {
        padding: 7px 12px;
        font-size: 28px;
        line-height: 1.2;
    }

    .main-navigation li > ul a {
        padding: 1px 12px 6px;
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .site-header {
        min-height: 110px;
    }

    .site-header__inner {
        min-height: 110px;
    }

    .site-logo {
        width: 165px;
        max-width: 165px;
        flex-basis: 165px;
        margin-top: 8px;
        padding-bottom: 12px;
    }

    body.navigation-open .site-header {
        min-height: 400px;
    }

    .main-navigation {
        top: 112px;
    }

    .main-navigation > ul > li > a {
        font-size: 25px;
    }

    .main-navigation li > ul a {
        font-size: 20px;
    }
}

/* ========================================================================
   Korrektur Logo und Mobile-Navigation
   ======================================================================== */

.site-logo {
    overflow: visible;
}

.site-logo img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 202.99 / 88.61;
    object-fit: contain;
    object-position: left center;
}

/* iPhone */

@media (max-width: 767.98px) {
    .site-header {
        min-height: 145px;
    }

    .site-header__inner {
        min-height: 145px;
    }

    .site-logo {
        width: 170px;
        max-width: 170px;
        flex: 0 0 170px;
        margin: 0;
        padding: 0;
    }

    .nav-toggle,
    .nav-toggle:hover,
    .nav-toggle:focus,
    .nav-toggle:focus-visible {
        top: 50%;
        right: 10px;
        width: 48px;
        height: 48px;
        transform: translateY(-50%);
    }

    body.navigation-open .site-header {
        min-height: 425px;
    }

    /*
     * Navigation beginnt unterhalb der Logozeile.
     * Dadurch überlagert das Logo nicht mehr „Veranstaltungen“.
     */
    .main-navigation {
        top: 145px;
        right: 15px;
        left: 15px;
        padding: 8px 0 25px;
    }

    .main-navigation > ul > li > a {
        padding: 5px 10px;
        font-size: 25px;
        line-height: 1.2;
    }

    .main-navigation li > ul a {
        padding: 1px 10px 5px;
        font-size: 20px;
        line-height: 1.2;
    }
}

@media (max-width: 420px) {
    .site-header,
    .site-header__inner {
        min-height: 140px;
    }

    .site-logo {
        width: 165px;
        max-width: 165px;
        flex-basis: 165px;
    }

    body.navigation-open .site-header {
        min-height: 415px;
    }

    .main-navigation {
        top: 140px;
    }

    .main-navigation > ul > li > a {
        font-size: 24px;
    }

    .main-navigation li > ul a {
        font-size: 19px;
    }
}
/* Kompakter Footer auf Tablet und Smartphone */

@media (max-width: 991.98px) {
    .site-footer {
        padding-top: 20px;
        font-size: 16px;
        line-height: 1.5;
    }

    .site-footer__top-row {
        margin-bottom: 18px;
    }

    .site-footer .site-footer__contact p {
        margin-bottom: 10px;
    }

    .site-footer__bar {
        padding: 14px 0;
    }

    .site-footer__meta {
        font-size: 14px;
        line-height: 1.5;
    }

    .site-footer a.site-footer__top-link {
        height: 28px;
        padding: 0 8px;
        font-size: 16px;
        line-height: 26px;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        margin-top: 20px;
        padding: 18px 0 0;
        font-size: 15px;
        line-height: 1.45;
    }

    .site-footer__top-row {
        margin-bottom: 14px;
    }

    .site-footer__bar {
        padding: 12px 0;
    }

    .site-footer__meta {
        padding-right: 10px;
        font-size: 13px;
        line-height: 1.5;
    }
}

/* ==========================================================
   Wacon Cookie Management
   ========================================================== */

/*
 * Das eingebundene Inhaltselement erzeugt zusätzlich
 * „Cookie-Freigabe / Cookieeinstellungen“ über dem Seitenkopf.
 * Der Dialog selbst liegt ausserhalb dieses Wrappers.
 */
.frame-type-waconcookiemanagement_cookiefreigabe {
    display: none !important;
}


/* ----------------------------------------------------------
   Cookie-Dialog: Desktop
   ---------------------------------------------------------- */

#CookieBox {
    top: 50% !important;
    left: 50% !important;

    width: min(720px, calc(100% - 48px)) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 48px) !important;

    padding: 52px 32px 24px !important;

    overflow-y: auto;
    transform: translate(-50%, -50%);

    border-radius: 8px !important;
}

#CookieBox .intro p {
    width: 100% !important;
    max-width: 620px;
}

#CookieBox ul {
    padding: 12px 0 !important;
}

#CookieBox .cookie-btn {
    width: 100%;
    min-width: 0 !important;

    margin: 8px auto !important;
    padding: 12px 18px !important;

    font-size: 1rem !important;
    line-height: 1.35;
}

#CookieBox .intro .cookie-legal {
    width: 100% !important;

    margin-top: 24px !important;
    padding: 0 !important;

    text-align: center !important;
}

#CookieBox .cookie-legal a {
    margin: 4px 10px !important;
}


/* ----------------------------------------------------------
   iPad / Tablet
   ---------------------------------------------------------- */

@media (max-width: 1024px) {
    #CookieBox {
        width: min(680px, calc(100% - 40px)) !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 40px) !important;

        padding: 50px 28px 22px !important;
    }

    #CookieBox .h2 {
        font-size: 1.45rem !important;
    }

    #CookieBox p {
        font-size: 1rem !important;
    }
}


/* ----------------------------------------------------------
   iPhone / Smartphone
   ---------------------------------------------------------- */

@media (max-width: 600px) {
    #CookieBox {
        width: calc(100% - 24px) !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 24px) !important;

        padding: 48px 16px 16px !important;

        border-radius: 6px !important;
    }

    #CookieBox .h2 {
        margin-top: 0 !important;
        margin-bottom: 12px !important;

        font-size: 1.3rem !important;
        line-height: 1.25;
    }

    #CookieBox p {
        font-size: 0.95rem !important;
        line-height: 1.45;
    }

    #CookieBox ul {
        padding: 8px 0 !important;
    }

    #CookieBox .cookie-btn {
        margin: 6px auto !important;
        padding: 11px 10px !important;

        font-size: 0.9rem !important;
        line-height: 1.3;

        white-space: normal;
    }

    #CookieBox .intro .cookie-legal {
        margin-top: 16px !important;
    }

    #CookieBox .cookie-legal a {
        display: inline-block;

        margin: 4px 6px !important;

        font-size: 0.85rem !important;
    }

    #CookieBox .cookieclose {
        top: 10px !important;
        right: 10px !important;
    }
}

/* Linie direkt unter der Hauptnavigation entfernen */
.site-header::after {
    display: none;
    content: none;
}

/* ==========================================================
   Wacon – individuelle Datenschutzeinstellungen
   ========================================================== */

#CookieBox,
#CookieBox * {
    box-sizing: border-box;
}

#CookieBox.cookiemanagement {
    width: min(760px, calc(100vw - 32px)) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 32px) !important;
    padding: 48px 28px 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

#CookieBox .middle-center,
#CookieBox .box-cookie-management,
#CookieBox .box-cookie-management-in {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

#CookieBox .box-cookie-management {
    overflow: visible !important;
}

#CookieBox .box-cookie-management-in > .h2 {
    margin: 0 0 16px !important;
    text-align: center;
}

#CookieBox .box-cookie-management-in > p:not(.h2) {
    max-width: 640px;
    margin: 0 auto 20px !important;
}

#CookieBox .category {
    width: 100% !important;
    margin: 20px 0 0 !important;
    padding: 18px !important;
}

#CookieBox .category .h3 {
    margin-top: 0 !important;
}

#CookieBox .cookie-acc {
    margin-bottom: 0 !important;
}

/*
 * Einheitlicher Buttonbereich:
 * Speichern und Zurück nebeneinander,
 * „nur notwendige Cookies“ über die ganze Breite.
 */
#CookieBox .cookie-fix {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 20px 0 0 !important;
    padding: 20px 0 0 !important;

    overflow: visible !important;
}

#CookieBox .cookie-save,
#CookieBox .text-back-right {
    display: contents !important;
    float: none !important;
}

#CookieBox .cookie-fix .cookie-btn {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;

    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 11px 16px !important;

    white-space: normal !important;
    text-align: center !important;
}

#CookieBox .cookie-fix .cookie-refuse {
    grid-column: 1 / -1;
}

#CookieBox .cookie-fix .cookie-legal {
    grid-column: 1 / -1;

    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;

    text-align: center !important;
}

/* iPhone */
@media (max-width: 600px) {
    #CookieBox.cookiemanagement {
        width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 20px) !important;
        padding: 46px 14px 16px !important;
    }

    #CookieBox .box-cookie-management-in > .h2 {
        margin-bottom: 12px !important;
        font-size: 1.3rem !important;
        line-height: 1.25;
    }

    #CookieBox .box-cookie-management-in > p:not(.h2) {
        margin-bottom: 16px !important;
        font-size: 0.95rem !important;
        line-height: 1.45;
    }

    #CookieBox .category {
        margin-top: 16px !important;
        padding: 14px !important;
    }

    #CookieBox .cookie-fix {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px !important;
        padding-top: 16px !important;
    }

    #CookieBox .cookie-fix .cookie-refuse,
    #CookieBox .cookie-fix .cookie-legal {
        grid-column: 1;
    }

    #CookieBox .cookie-fix .cookie-btn {
        min-height: 46px;
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
}

/* Cookie-Aktionsbereich standardmässig ausblenden */
#CookieBox .cookie-fix {
    display: none !important;
}

/*
 * Erst anzeigen, wenn die individuellen
 * Datenschutzeinstellungen geöffnet sind.
 */
#CookieBox
.box-cookie-management[style*="display: block"]
+ .cookie-fix {
    display: grid !important;
}

/* Kompakte Abstände innerhalb der Team-Karten */
.team-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.team-card__text > .team-card__name,
.team-card__text > .team-card__role,
.team-card__text > .team-card__description,
.team-card__text > .team-card__email {
    margin: 0;
    padding: 0;
}

.team-card__description > :first-child {
    margin-top: 0;
}

.team-card__description > :last-child {
    margin-bottom: 0;
}

/* Dateidownloads kompakt und zentriert */
.site-main .ce-uploads {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-main .ce-uploads > li {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.site-main .ce-uploads > li > img {
    display: none;
}

.site-main .ce-uploads > li > div {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0;
}

/* Dateityp anhand der verlinkten Datei ergänzen */
.site-main .ce-uploads a[href$=".pdf" i] .ce-uploads-fileName::after {
    content: " · PDF";
}

.site-main .ce-uploads a[href$=".docx" i] .ce-uploads-fileName::after {
    content: " · DOCX";
}

.site-main .ce-uploads a[href$=".xlsx" i] .ce-uploads-fileName::after {
    content: " · XLSX";
}

/* Dateigrösse direkt hinter dem Link */
.site-main .ce-uploads-filesize {
    margin-left: 0.35rem;
    color: #69747c;
    font-size: 0.9em;
    white-space: nowrap;
}

/* ==========================================================
   Schwebender „Nach oben“-Button
   ========================================================== */

.site-footer a.site-footer__top-link {
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 900;

    display: flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    background: #333;
    box-shadow: 0 4px 14px rgb(0 0 0 / 25%);

    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.75rem);

    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 180ms ease,
        background-color 180ms ease;
}

.site-footer a.site-footer__top-link.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-footer a.site-footer__top-link:hover,
.site-footer a.site-footer__top-link:focus-visible {
    border-color: #fff;
    background: #568b29;
    color: #fff;
}

.site-footer a.site-footer__top-link:focus-visible {
    outline: 3px solid rgb(86 139 41 / 35%);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .site-footer a.site-footer__top-link {
        right: max(1rem, env(safe-area-inset-right));
        bottom: max(1rem, env(safe-area-inset-bottom));
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a.site-footer__top-link {
        transition: none;
    }
}
/*
 * Weblink Extension
 * Darstellung
 */
.siko-weblinks {
    width: 100%;
    max-width: none;
    margin-block: 1.5rem;
}

.siko-weblinks .siko-weblinks__heading {
    margin-bottom: 0.35rem;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.siko-weblinks .siko-weblinks__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.siko-weblinks .siko-weblinks__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e4e7df;
}

.siko-weblinks .siko-weblinks__link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding-block: 0.4rem;
    font-size: inherit;
    line-height: 1.35;
    font-weight: 500;
    text-decoration: none;
    max-width: 100%;
}

.siko-weblinks__link > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.siko-weblinks__link:hover > span:first-child,
.siko-weblinks__link:focus-visible > span:first-child {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.siko-weblinks__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

.siko-weblinks__arrow {
    font-size: 0.9rem;
}

.siko-weblinks .siko-weblinks__description {
    margin: 0;
    padding-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.35;
}

.siko-weblinks__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.siko-weblinks__description {
    margin: 0.4rem 0 0;
    line-height: 1.5;
}

.siko-weblinks .siko-weblinks__icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 20px;
    object-fit: contain;
}

/* ========================================================================
   Geöffnete Navigation – Abstände auf Tablet und Handy verkleinern
   ======================================================================== */

/* Tablet: Hoch- und Querformat */
@media (min-width: 768px) and (max-width: 1199.98px) {
    body.navigation-open .site-header {
        min-height: 370px;
    }

    body.navigation-open .main-navigation {
        top: 85px;
        padding-top: 0;
        padding-bottom: 10px;
    }
}

/* Handy */
@media (max-width: 767.98px) {
    body.navigation-open .site-header {
        min-height: 350px;
    }

    body.navigation-open .main-navigation {
        top: 95px;
        padding-top: 0;
        padding-bottom: 8px;
    }
}

/* Kleine Handys */
@media (max-width: 420px) {
    body.navigation-open .site-header {
        min-height: 345px;
    }

    body.navigation-open .main-navigation {
        top: 92px;
    }
}
/* ========================================================================
   Geschlossener Header – Abstand zum Karussell verkleinern
   ======================================================================== */

/* Desktop */
@media (min-width: 1200px) {
    .site-header {
        min-height: 160px;
        margin-bottom: 6px;
    }

    .site-header__inner {
        min-height: 160px;
    }
}

/* Tablet: Hoch- und Querformat */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .site-header {
        min-height: 160px;
        margin-bottom: 6px;
    }

    .site-header__inner {
        min-height: 160px;
    }
}

/* Handy */
@media (max-width: 767.98px) {
    .site-header {
        min-height: 130px;
        margin-bottom: 0;
    }

    .site-header__inner {
        min-height: 130px;
    }
}
/* ========================================================================
   Finale Header-Abstände
   ======================================================================== */

/* Desktop – geschlossener Header */
@media (min-width: 1200px) {
    .site-header {
        min-height: 145px;
        margin-bottom: 0;
    }

    .site-header__inner {
        min-height: 145px;
    }
}

/* Tablet – geschlossener und geöffneter Header */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .site-header {
        min-height: 145px;
        margin-bottom: 0;
    }

    .site-header__inner {
        min-height: 145px;
    }

    body.navigation-open .site-header {
        min-height: 400px;
    }

    body.navigation-open .main-navigation {
        top: 85px;
        padding-top: 0;
        padding-bottom: 10px;
    }
}

/* Handy */
@media (max-width: 767.98px) {
    .site-header {
        min-height: 115px;
        margin-bottom: 0;
    }

    .site-header__inner {
        min-height: 115px;
    }

    body.navigation-open .site-header {
        min-height: 375px;
    }

    body.navigation-open .main-navigation {
        top: 95px;
        padding-top: 0;
        padding-bottom: 8px;
    }
}

/* Kleine Handys */
@media (max-width: 420px) {
    body.navigation-open .site-header {
        min-height: 370px;
    }

    body.navigation-open .main-navigation {
        top: 92px;
    }
}

/* ========================================================================
   Animation Hamburger → vertikal → X
   ======================================================================== */

@media (max-width: 1199.98px) {

    .nav-toggle__line {
        transform-origin: center;
        transition: none;
    }

    /* Menü öffnen */

    .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
        animation: siko-menu-top-open 420ms ease forwards;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
        animation: siko-menu-middle-open 420ms ease forwards;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
        animation: siko-menu-bottom-open 420ms ease forwards;
    }

    /* Menü schliessen – erst nach dem ersten Öffnen aktiv */

    .nav-toggle.has-been-opened[aria-expanded="false"]
        .nav-toggle__line:nth-child(1) {
        animation: siko-menu-top-close 420ms ease forwards;
    }

    .nav-toggle.has-been-opened[aria-expanded="false"]
        .nav-toggle__line:nth-child(2) {
        animation: siko-menu-middle-close 420ms ease forwards;
    }

    .nav-toggle.has-been-opened[aria-expanded="false"]
        .nav-toggle__line:nth-child(3) {
        animation: siko-menu-bottom-close 420ms ease forwards;
    }
}

/* Öffnen */

@keyframes siko-menu-top-open {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(8px) rotate(90deg);
    }

    100% {
        transform: translateY(8px) rotate(45deg);
    }
}

@keyframes siko-menu-middle-open {
    0% {
        opacity: 1;
        transform: rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: rotate(90deg);
    }

    100% {
        opacity: 0;
        transform: rotate(90deg);
    }
}

@keyframes siko-menu-bottom-open {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(-90deg);
    }

    100% {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Schliessen */

@keyframes siko-menu-top-close {
    0% {
        transform: translateY(8px) rotate(45deg);
    }

    50% {
        transform: translateY(8px) rotate(90deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes siko-menu-middle-close {
    0% {
        opacity: 0;
        transform: rotate(90deg);
    }

    50% {
        opacity: 1;
        transform: rotate(90deg);
    }

    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

@keyframes siko-menu-bottom-close {
    0% {
        transform: translateY(-8px) rotate(-45deg);
    }

    50% {
        transform: translateY(-8px) rotate(-90deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Animation bei reduzierter Bewegung deaktivieren */

@media (prefers-reduced-motion: reduce) {
    .nav-toggle__line {
        animation-duration: 1ms !important;
    }
}
/* ==========================================================
   SIKO MOBILE OVERLAY – endgültige Überschreibung
   Muss ganz am Ende der main.css stehen
   ========================================================== */

@media (max-width: 1199.98px) {

    /*
     * Die Seite darf sich beim Öffnen des Menüs
     * nicht verschieben oder scrollen.
     */
    body.navigation-open {
        overflow: hidden !important;
        touch-action: none;
    }

    /*
     * Der Header behält immer seine normale Höhe.
     * Alte Regeln mit 370px oder 400px werden überschrieben.
     */
    body.navigation-open .site-header,
    body.navigation-open .site-header__inner {
        height: 145px !important;
        min-height: 145px !important;
        max-height: 145px !important;
    }

    /*
     * Das Menü liegt über der gesamten Seite.
     * Es gehört damit nicht mehr zum normalen Seitenfluss.
     */
    body.navigation-open .main-navigation.is-open {
        position: fixed !important;
        inset: 0 !important;

        display: block !important;
        visibility: visible !important;

        width: 100vw !important;
        max-width: none !important;

        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;

        margin: 0 !important;
        padding: 130px 30px 40px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        transform: none !important;

        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);

        box-sizing: border-box;
        z-index: 1000 !important;
    }

    /*
     * Logo bleibt über dem geöffneten Menü sichtbar.
     */
    body.navigation-open .site-logo {
        position: fixed !important;
        top: 18px !important;
        left: 30px !important;

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

        z-index: 1010 !important;
    }

    /*
     * Menüknopf beziehungsweise X bleibt oben rechts sichtbar.
     */
    body.navigation-open .nav-toggle,
    body.navigation-open .menu-toggle,
    body.navigation-open [data-navigation-toggle] {
        position: fixed !important;
        top: 28px !important;
        right: 24px !important;

        margin: 0 !important;
        transform: none;

        z-index: 1020 !important;
    }

    /*
     * Position der eigentlichen Menüpunkte.
     */
    body.navigation-open .main-navigation.is-open > ul {
        position: static !important;

        width: 100% !important;
        max-width: 680px !important;

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


/* Smartphone */

@media (max-width: 767.98px) {

    body.navigation-open .site-header,
    body.navigation-open .site-header__inner {
        height: 115px !important;
        min-height: 115px !important;
        max-height: 115px !important;
    }

    body.navigation-open .main-navigation.is-open {
        padding: 105px 24px 35px !important;
    }

    body.navigation-open .site-logo {
        top: 20px !important;
        left: 20px !important;

        width: 165px !important;
        max-width: 165px !important;
    }

    body.navigation-open .nav-toggle,
    body.navigation-open .menu-toggle,
    body.navigation-open [data-navigation-toggle] {
        top: 22px !important;
        right: 16px !important;
    }
}


/* Kleine Smartphones */

@media (max-width: 420px) {

    body.navigation-open .main-navigation.is-open {
        padding: 95px 20px 30px !important;
    }

    body.navigation-open .site-header,
    body.navigation-open .site-header__inner {
        height: 105px !important;
        min-height: 105px !important;
        max-height: 105px !important;
    }

    body.navigation-open .site-logo {
        width: 150px !important;
        max-width: 150px !important;
    }
}

/* Vollständiges Logo ist normalerweise sichtbar */

.site-logo__full {
    display: block;
}

.site-logo__icon {
    display: none;
}


/* Im geöffneten mobilen Menü nur das Logo-Symbol zeigen */

@media (max-width: 1199.98px) {

    body.navigation-open .site-logo {
        width: 64px !important;
        max-width: 64px !important;
        height: 64px !important;
    }

    body.navigation-open .site-logo__full {
        display: none !important;
    }

    body.navigation-open .site-logo__icon {
        display: block !important;
        width: 54px !important;
        height: 54px !important;
        object-fit: contain;
    }
}


@media (max-width: 767.98px) {

    body.navigation-open .site-logo {
        top: 20px !important;
        left: 20px !important;
        width: 52px !important;
        max-width: 52px !important;
        height: 52px !important;
    }

    body.navigation-open .site-logo__icon {
        width: 46px !important;
        height: 46px !important;
    }
}
/* ==========================================================
   Korrektur der Logo-Umschaltung
   ========================================================== */

/* Geschlossen: nur das vollständige Logo */

.site-logo .site-logo__full {
    display: block !important;
}

.site-logo .site-logo__icon {
    display: none !important;
}


/* Geöffnet: nur das kleine Symbol */

@media (max-width: 1199.98px) {

    body.navigation-open .site-logo .site-logo__full {
        display: none !important;
    }

    body.navigation-open .site-logo .site-logo__icon {
        display: block !important;

        width: 58px !important;
        max-width: 58px !important;
        height: 58px !important;
        object-fit: contain;
    }
}


/* Grösse auf dem Smartphone */

@media (max-width: 767.98px) {

    body.navigation-open .site-logo .site-logo__icon {
        width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
    }
}

/* ==========================================================
   Kompakte Navigation beim Scrollen
   ========================================================== */

.site-header,
.site-header__inner,
.site-logo {
    transition:
        min-height 220ms ease,
        width 220ms ease,
        padding 220ms ease,
        margin 220ms ease,
        box-shadow 220ms ease;
}


/* ==========================================================
   Tablet und Mobile:
   Nach dem Scrollen bleibt nur der Menüknopf sichtbar
   ========================================================== */

@media (max-width: 1199.98px) {

    /*
     * Der Header bleibt technisch fixiert, besitzt aber
     * keine sichtbare Höhe und keinen Hintergrund.
     */
    body:not(.navigation-open)
        .site-header.is-scrolled {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 1000 !important;

        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;

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

    body:not(.navigation-open)
        .site-header.is-scrolled
        .site-header__inner {
        position: static !important;

        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Logo und Trennlinie verschwinden */
    body:not(.navigation-open)
        .site-header.is-scrolled
        .site-logo {
        display: none !important;
    }

    body:not(.navigation-open)
        .site-header.is-scrolled::after {
        display: none !important;
    }

    /* Menüknopf bleibt vollständig sichtbar */
    body:not(.navigation-open)
        .site-header.is-scrolled
        .nav-toggle,
    body:not(.navigation-open)
        .site-header.is-scrolled
        .nav-toggle:hover,
    body:not(.navigation-open)
        .site-header.is-scrolled
        .nav-toggle:focus,
    body:not(.navigation-open)
        .site-header.is-scrolled
        .nav-toggle:focus-visible {
        position: fixed !important;
        top: 20px !important;
        right: 14px !important;
        left: auto !important;
        z-index: 1020 !important;

        display: block !important;
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        height: 58px !important;
        min-height: 58px !important;

        margin: 0 !important;
        padding: 10px !important;
        overflow: visible !important;

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

    body:not(.navigation-open)
        .site-header.is-scrolled
        .nav-toggle__line {
        display: block !important;
        width: 34px !important;
        height: 2px !important;
        margin: 7px auto !important;

        background: #222 !important;
    }
}


/* Smartphones: etwas näher am Rand */

@media (max-width: 767.98px) {
    body:not(.navigation-open)
        .site-header.is-scrolled
        .nav-toggle,
    body:not(.navigation-open)
        .site-header.is-scrolled
        .nav-toggle:hover,
    body:not(.navigation-open)
        .site-header.is-scrolled
        .nav-toggle:focus,
    body:not(.navigation-open)
        .site-header.is-scrolled
        .nav-toggle:focus-visible {
        top: 14px !important;
        right: 6px !important;
    }
}
/* ==========================================================
   Abstandshalter gegen springenden Seiteninhalt
   ========================================================== */

.site-header-spacer {
    display: block;
    width: 100%;
    height: 0;
    pointer-events: none;
}

/*
 * Am Desktop verändert sich die Headerhöhe animiert.
 * Der Abstandshalter verwendet dieselbe Dauer.
 */
@media (min-width: 1200px) {
    .site-header-spacer {
        transition: height 220ms ease;
    }
}

/*
 * Mobil wird der Header unmittelbar aus dem Seitenfluss
 * genommen. Deshalb darf der Abstandshalter dort nicht
 * verzögert reagieren.
 */
@media (max-width: 1199.98px) {
    .site-header-spacer {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header-spacer {
        transition: none;
    }
}
/* ==========================================================
   Desktop: kompakter Header bleibt beim Scrollen sichtbar
   ========================================================== */

@media (min-width: 1200px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #fff;
    }

    .site-header.is-scrolled {
        min-height: 86px;
        background: #fff;
        box-shadow: 0 4px 14px rgb(0 0 0 / 8%);
    }

    .site-header.is-scrolled
        .site-header__inner {
        min-height: 86px;
    }

    .site-header.is-scrolled
        .site-logo {
        width: 64px;
        max-width: 64px;
        flex: 0 0 64px;

        margin: 0;
        padding: 0;
    }

    /* Vollständiges Logo ausblenden */
    .site-header.is-scrolled
        .site-logo
        .site-logo__full {
        display: none !important;
    }

    /* Kleines Logo-Symbol anzeigen */
    .site-header.is-scrolled
        .site-logo
        .site-logo__icon {
        display: block !important;

        width: 58px;
        max-width: 58px;
        height: 58px;

        object-fit: contain;
    }

    /* Navigation bleibt vollständig sichtbar */
    .site-header.is-scrolled
        .main-navigation {
        display: block;
    }

    .site-header.is-scrolled
        .main-navigation a {
        font-size: 18px;
    }
}

/* Browser darf Header und Abstandshalter nicht
   für automatisches Scroll-Ankern verwenden. */

.site-header,
.site-header-spacer {
    overflow-anchor: none;
}

/* ==========================================================
   Desktop-Navigation: Hauptlinks deutlicher kennzeichnen
   ========================================================== */

@media (min-width: 1200px) {
    .main-navigation > ul > li > a {
        position: relative;
        cursor: pointer;
    }

    /* Unterstreichung ohne Verschieben der Menüeinträge */
    .main-navigation > ul > li > a::before {
        content: "";
        position: absolute;
        right: 0.7rem;
        bottom: -0.4rem;
        left: 0.7rem;

        height: 2px;
        background: currentColor;

        transform: scaleX(0);
        transform-origin: center;
        transition: transform 180ms ease;
    }

    .main-navigation > ul > li > a:hover::before,
    .main-navigation > ul > li > a:focus-visible::before,
    .main-navigation > ul > li:focus-within > a::before,
    .main-navigation > ul > li > a[aria-current]:not([aria-current=""])::before {
        transform: scaleX(1);
    }

    /* Pfeil nur bei Menüpunkten mit Untermenü */
    .main-navigation > ul > li:has(> ul) > a {
        padding-right: 1.8rem;
    }

    .main-navigation > ul > li:has(> ul) > a::after {
        content: "";
        position: absolute;
        top: 45%;
        right: 0.65rem;

        width: 0.4rem;
        height: 0.4rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;

        transform: translateY(-50%) rotate(45deg);
    }
}

/* ==========================================================
   Normale Content-Elemente: Listen wie im Backend ausrichten
   ========================================================== */

.frame.frame-type-text ul,
.frame.frame-type-textmedia ul,
.frame.frame-type-textpic ul {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-inline-start: 0 !important;
}

.frame.frame-type-text ul > li,
.frame.frame-type-textmedia ul > li,
.frame.frame-type-textpic ul > li {
    padding-inline-start: 0 !important;
}

/* Alten, absolut positionierten Bindestrich sicher entfernen */
.frame.frame-type-text ul > li:has(> p:first-child, > span:first-child)::before,
.frame.frame-type-textmedia ul > li:has(> p:first-child, > span:first-child)::before,
.frame.frame-type-textpic ul > li:has(> p:first-child, > span:first-child)::before {
    content: none !important;
}

/* Genau einen Bindestrich direkt beim Text ausgeben */
.frame.frame-type-text ul > li > p:first-child::before,
.frame.frame-type-text ul > li > span:first-child::before,
.frame.frame-type-textmedia ul > li > p:first-child::before,
.frame.frame-type-textmedia ul > li > span:first-child::before,
.frame.frame-type-textpic ul > li > p:first-child::before,
.frame.frame-type-textpic ul > li > span:first-child::before {
    content: "- ";
    color: inherit;
}

/* TYPO3-Ausrichtung vom Text auf den ganzen Listeneintrag übertragen */
.frame.frame-type-text ul > li:has(> .text-center),
.frame.frame-type-textmedia ul > li:has(> .text-center),
.frame.frame-type-textpic ul > li:has(> .text-center) {
    text-align: center !important;
}

.frame.frame-type-text ul > li:has(> .text-right),
.frame.frame-type-text ul > li:has(> .text-end),
.frame.frame-type-textmedia ul > li:has(> .text-right),
.frame.frame-type-textmedia ul > li:has(> .text-end),
.frame.frame-type-textpic ul > li:has(> .text-right),
.frame.frame-type-textpic ul > li:has(> .text-end) {
    text-align: right !important;
}

.frame.frame-type-text ul > li:has(> .text-left),
.frame.frame-type-text ul > li:has(> .text-start),
.frame.frame-type-textmedia ul > li:has(> .text-left),
.frame.frame-type-textmedia ul > li:has(> .text-start),
.frame.frame-type-textpic ul > li:has(> .text-left),
.frame.frame-type-textpic ul > li:has(> .text-start) {
    text-align: left !important;
}

.frame.frame-type-text ul > li > p,
.frame.frame-type-textmedia ul > li > p,
.frame.frame-type-textpic ul > li > p {
    margin-top: 0;
    margin-bottom: 0;
}