/*  (c) by www.wyss4web.ch – bereinigt fuer .NET-Version
    (Inline-Styles/Style-Bloecke der CMS-Templates hierher verschoben, Tippfehler korrigiert) */

:root {
    --text-base: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    --text-size-xxs: 12px;
    --text-size-xs: 14px;
    --text-size-sm: 16px;
    --text-size-base: 18px;
    --text-nav-base: 20px;
    --text-sub-nav: 30px;

    --text-color-base: #414141;
    --text-color-header: #1b1b1b;
    --text-color-navigation: #f7f7f7;
    --text-color-navigation-item: #414141;
    --text-color-sub-navigation-item1: #282828;
    --text-color-sub-navigation-item2: #282828;
    --text-color-sub-navigation-item3: #282828;
    --text-color-content: #1b1b1b;
    --text-color-footer: #ffffff;
    --text-color-footer-socialmedia: #010000;

    --bg-color-base: #ffffff;
    --bg-color-header: #ffffff;
    --bg-color-navigation: #414141;
    --bg-color-navigation-item: #ededed;
    --bg-color-sub-navigation-item1: #A8EA64;
    --bg-color-sub-navigation-item2: #6D90F8;
    --bg-color-sub-navigation-item3: #f69e68;
    --bg-color-sub-navigation-item1-light: hsl(90deg 76% 65% / 70%);
    --bg-color-sub-navigation-item2-light: hsl(225deg 91% 70% / 70%);
    --bg-color-sub-navigation-item3-light: hsl(23deg 99% 67% / 70%);
    --bg-color-content: #ffffff;
    --bg-color-subcontent: #F5F3F6;
    --bg-color-footer: #414141;
    --bg-color-footer-light: hsl(327deg 63% 30% / 10%);
    --bg-color-transition: hsl(89.55deg 76.14% 65.49% / 8%);
    --bg-color-slider: #F4F2F3;

    --4px: 4px;
    --8px: 8px;
    --12px: 12px;
    --16px: 16px;
    --32px: 32px;
    --64px: 64px;
    --main-padding: 75px;
}

/*  BEGIN CSS RESET */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text-color-base);
    background-color: var(--bg-color-base);
    text-align: center;
    font-family: var(--text-base);
    font-size: var(--text-size-base);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

img, picture, video, canvas, svg {
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

strong {
    font-weight: 500;
}

/* --------------- END CSS RESET -------------- */


/* --------------- GENERIC STYLES -------------- */
h1 {
    font-size: 2rem;
    font-weight: 400;
    padding: var(--4px) 0 var(--4px) 0;
}

h2 {
    font-size: var(--text-nav-base);
    font-weight: 500;
    padding: var(--16px) 0 var(--8px) 0;
}

h3 {
    font-weight: 500;
    padding: var(--16px) 0 var(--8px) 0;
}

ul {
    list-style-type: square;
}

li {
    padding-top: var(--8px);
}

a {
    position: relative;
    text-decoration: none;
    display: inline-block;
    color: black;
    padding: 0 3px;
    transition: color ease 0.3s;
}

a::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 0.5px;
    left: 0;
    bottom: 0;
    background-color: var(--bg-color-sub-navigation-item2);
    transition: all ease 0.4s;
    border-radius: var(--4px);
}

a:hover {
    color: white;
}

a:hover::after {
    height: 100%;
}

.footer-a:hover {
    border-bottom-style: solid;
}

hr {
    height: 0.5px;
    color: var(--bg-color-footer);
}

.clear {
    clear: both;
}

.text-bold {
    font-weight: 600;
}

.font-xxs { font-size: var(--text-size-xxs); }
.font-xs  { font-size: var(--text-size-xs); }
.font-sm  { font-size: var(--text-size-sm); }
.font-base { font-size: var(--text-size-base); }
.font-nav-base { font-size: var(--text-nav-base); }
.font-sub-nav { font-size: var(--text-sub-nav); }

.pb-xs { padding-bottom: var(--4px); }
.pb-sm { padding-bottom: var(--8px); }
.pb-md { padding-bottom: var(--16px); }
.pb-lg { padding-bottom: var(--32px); }
.pb-xl { padding-bottom: var(--64px); }

.pt-xs { padding-top: var(--4px); }
.pt-sm { padding-top: var(--8px); }
.pt-md { padding-top: var(--16px); }
.pt-lg { padding-top: var(--32px); }
.pt-xl { padding-top: var(--64px); }

.pl-xs { padding-left: var(--4px); }
.pl-sm { padding-left: var(--8px); }
.pl-md { padding-left: var(--16px); }
.pl-lg { padding-left: var(--32px); }
.pl-xl { padding-left: var(--64px); }

.pr-xs { padding-right: var(--4px); }
.pr-sm { padding-right: var(--8px); }
.pr-md { padding-right: var(--16px); }
.pr-lg { padding-right: var(--32px); }
.pr-xl { padding-right: var(--64px); }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.textwrap-balance {
    text-wrap: balance;
}

.border-radius-md { border-radius: var(--4px); }
.border-radius-lg { border-radius: var(--8px); }
.border-radius-xl { border-radius: var(--16px); }

/* ---- Hilfsklassen (vorher style="…" im CMS-Inhalt) ---- */
.va-m        { vertical-align: middle; }
.img-fit     { object-fit: scale-down; }
.img-rounded { border-radius: var(--4px); }
.color-blue  { color: #3366ff; }
.p-0         { padding: 0; }
.h-100       { height: 100%; }
.w-100       { width: 100%; }
.hp-field    { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error  { color: #b00020; padding-bottom: var(--16px); }


/* --------------- FORM STYLES -------------- */
form {
    text-align: left;
}

.form-label {
    color: gray;
}

.form-field {
    display: flex;
}

.form-field>input, .form-field>textarea {
    height: 100%;
    width: clamp(300px, 70%, 100%);
    display: block;
    background: white;
    border: 1px solid rgba(233, 189, 186, 1);
    border-radius: 5px;
    padding: 8px 15px;
    margin-bottom: 0.7rem;
    text-align: left;
    position: relative;
    font-size: 1.2rem;
}

.form-field>input:focus, .form-field>textarea:focus {
    box-shadow: inset 0px 3px 8px -2px rgba(161, 170, 166, 0.5);
    outline: 1px solid lightgray;
}

.form-field>textarea {
    height: 200px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 1em;
    height: 100%;
    display: block;
    background: white;
    border: 1px solid rgba(233, 189, 186, 1);
    border-radius: 5px;
    padding: 6px 30px 6px 15px;
    margin-bottom: 0.7rem;
    text-align: left;
    box-shadow: 0px 3px 10px -2px rgba(161, 170, 166, 0.5);
    position: relative;
}

button {
    background: var(--bg-color-sub-navigation-item1-light);
    color: var(--text-color-sub-navigation-item1);
    border: 0;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0px 3px 10px -2px rgba(161, 170, 166, 0.5);
}

button:hover {
    border: 1px solid #cbd9bf;
    box-shadow: 0px 3px 10px -2px rgba(161, 170, 166, 0.8);
    cursor: pointer;
}

button:disabled {
    background-color: #efefef;
    color: #969696;
    cursor: not-allowed;
}

button:disabled:hover {
    box-shadow: none;
}

/* Formularfeld mit fehlender/ungültiger Eingabe (vorher per JS-Inline-Style) */
.form-field>.is-invalid {
    border: 2px solid red;
    background-color: #F5F6CE;
}


/* --------------- LAYOUT STYLES -------------- */
article {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr);   /* nie breiter als der Bildschirm (kein seitliches Scrollen auf dem Handy) */
}

/* lange Links (z. B. ausgeschriebene URLs) im Inhalt umbrechen statt über den Rand ragen */
main a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

header {
    top: 0;
    background-color: var(--bg-color-header);
    z-index: 10000;
}

.header-addr {
    display: block;
}

.header-content {
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 300px;
}

main {
    margin: 0 auto;
    width: 100%;
    max-width: 1260px;
    text-align: left;
    padding: var(--64px) var(--main-padding);
}

footer {
    color: var(--text-color-footer);
    background-color: var(--bg-color-footer);
}

.footer-content {
    display: grid;
    grid-template-columns: auto 180px 180px;
    text-align: left;
    margin: 0 auto;
    max-width: 1260px;
    padding-left: var(--64px);
    padding-right: var(--64px);
}

.footer-a {
    border-bottom: 1px dotted var(--text-color-footer);
    color: var(--text-color-footer);
}

/* -------- Content styles ----------- */
.home-topic--buttons {
    margin: 0 auto;
    max-width: 1260px;
    padding: var(--32px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--32px);
}

.home-topic--button {
    position: relative;
    border: 1px solid var(--bg-color-navigation);
    width: calc(100% - var(--12px));
    border-radius: var(--8px);
}

.home-topic--button-img {
    border-radius: var(--8px) var(--8px) 0 0;
}

.home-topic--button-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    width: 100%;
    transition: .5s ease;
    background-color: var(--bg-color-sub-navigation-item1);
    color: var(--text-color-footer);
}

.home-topic--button:hover .home-topic--button-overlay {
    height: 100%;
    cursor: pointer;
    background-color: var(--bg-color-transition);
}

.home-topic--button>a {
    color: var(--text-color-base);
    padding: 0;
    height: 100%;
}

.home-link>a::after,
.home-topic--button>a::after {
    height: 0;
}

.col3-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--32px);
}

.det-content-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 60px;
}

.det-content-slider-container {
    padding: var(--16px) var(--64px);
}

.det-content-slider-container-gray {
    padding: var(--16px) var(--64px);
    background-color: var(--bg-color-transition);
}

/* ---- Aufklappbare Liste (Jahresprogramm, Projekte) ---- */
.faq-collapsible {
    cursor: pointer;
    padding: var(--16px);
    width: 100%;
    text-align: left;
    outline: none;
    background: var(--bg-color-base);
    border: 1px solid var(--bg-color-navigation);
    border-bottom: 0;
}

.faq-collapsible:focus-visible {
    outline: 2px solid var(--bg-color-sub-navigation-item2);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out, padding 0.2s ease-out;
    border: 1px solid var(--bg-color-navigation);
    border-top: 0;
    padding: 0 16px;
}

.faq-content.is-open {
    padding: 16px;
}

.faq-active {
    border-bottom: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--16px);
}

/* Beitrag ohne Bild: Text über die ganze Breite */
.faq-grid.faq-grid--text {
    grid-template-columns: 1fr;
}

.faq-active:hover, .faq-collapsible:hover {
    transition: 0.7s ease;
    background-color: var(--bg-color-transition);
}

/* -------- Navi ----------- */
/* https://moderncss.dev/css-only-accessible-dropdown-navigation-menu/ */

nav {
    background-color: var(--bg-color-navigation);
    padding: 0 0.7rem;
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    z-index: 1000;
}

nav>ul {
    grid-auto-flow: column;
}

nav>ul>li {
    margin: 10px 2rem;
}

nav>ul>li a,
nav>ul>li .dropdown__title {
    text-decoration: none;
    text-align: left;
    display: inline-block;
    color: var(--text-color-navigation);
    border: 1px solid transparent;
}

nav>ul>li a:focus,
nav>ul>li .dropdown__title:focus {
    outline: none;
}

nav>ul>li>a:hover,
nav>ul>li>a:focus,
nav>ul>li .dropdown__title:hover,
nav>ul>li .dropdown__title:focus {
    color: var(--text-color-navigation-item);
    background-color: var(--text-color-navigation);
    border-radius: 4px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

nav ul li {
    padding: 0;
    text-indent: 0px;
}

.nav-link {
    background-color: transparent;
    font-size: var(--text-nav-base);
    padding: 0 10px;
}

.dropdown {
    position: relative;
}

.dropdown .dropdown__title {
    display: inline-flex;
    align-items: center;
    pointer-events: none;
    font-size: var(--text-nav-base);
    padding: 0 10px;
}

.dropdown .dropdown__menu {
    position: absolute;
    min-width: 13vw;
    left: 50%;
    top: calc(100% + 16px);
    transition: 280ms all 120ms ease-out;
    transform: rotateX(-90deg) translateX(-50%);
    transform-origin: top center;
    opacity: 0.3;
    padding: 20px 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0.5em 1em rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.dropdown .dropdown__menu a {
    color: var(--text-color-navigation-item);
    display: block;
    padding: 0.4em 1.2em;
    opacity: 0;
    transition: 280ms all 120ms ease-out;
    white-space: nowrap;
}

.dropdown .dropdown__menu a:hover {
    background-color: var(--bg-color-navigation-item);
    border-radius: 4px;
}

.dropdown .dropdown__menu a:focus {
    outline: none;
}

.dropdown:hover .dropdown__title,
.dropdown:focus-within .dropdown__title,
.dropdown.is-open .dropdown__title {
    color: var(--text-color-navigation-item);
    background-color: var(--text-color-navigation);
    border-radius: 4px;
}

.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu,
.dropdown.is-open .dropdown__menu {
    opacity: 1;
    transform: rotateX(0) translateX(-50%);
}

.dropdown:hover .dropdown__menu a,
.dropdown:focus-within .dropdown__menu a,
.dropdown.is-open .dropdown__menu a {
    opacity: 1;
}

/* navi overwrites */
a.dropdown__item::after,
a.nav-link::after {
    height: 0;
}

/* ----------- Navigation Handy: Menü-Knopf + Panel von rechts (<dialog id="mnav">) ----------- */
.top-nav { display: none; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: center;
    justify-self: end;
    margin: 0 var(--16px) var(--16px) 0;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    background: #fff;
    color: var(--text-color-header);
    box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
    font: 600 15px/1 var(--text-base);
    letter-spacing: .01em;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.nav-toggle:hover {
    background: #f5faef;
    border: 1px solid #bfe08f;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.nav-toggle:focus-visible,
.mnav :focus-visible {
    outline: 3px solid var(--bg-color-sub-navigation-item2);
    outline-offset: 2px;
}

.nav-toggle__icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 14px;
}

.nav-toggle__icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 6px; width: 70%; }
.nav-toggle__icon span:nth-child(3) { top: 12px; }

/* Panel */
.mnav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 380px);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--text-color-base);
    font-family: var(--text-base);
    box-shadow: -16px 0 48px rgb(0 0 0 / 18%);
    overscroll-behavior: contain;
}

.mnav[open] {
    display: flex;
    flex-direction: column;
    animation: mnav-in .32s cubic-bezier(.22, .8, .24, 1);
}

.mnav::backdrop {
    background: rgb(20 24 18 / 45%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.mnav[open]::backdrop { animation: mnav-fade .32s ease; }
.mnav.is-closing { animation: mnav-out .22s ease-in forwards; }
.mnav.is-closing::backdrop { animation: mnav-fade .22s ease-in reverse forwards; }

@keyframes mnav-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes mnav-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes mnav-fade { from { opacity: 0; } to { opacity: 1; } }

html.nav-open { overflow: hidden; }   /* Seite dahinter scrollt nicht mit */

.mnav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid #ececec;
}

.mnav a { color: inherit; }
.mnav a::after { content: none; }

.mnav__logo { padding: 0; }
.mnav__logo img { display: block; height: 42px; width: auto; }

.mnav__close {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    box-shadow: none;
    color: var(--text-color-header);
}

.mnav__close:hover { border: 0; background: #e6e6e6; box-shadow: none; }

.mnav__close span::before,
.mnav__close span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.mnav__close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.mnav__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* .mnav__body ist ein <nav>: die globalen nav-Styles der Desktop-Navigation hier aufheben */
.mnav__body {
    display: block;
    place-items: normal;
    position: static;
    z-index: auto;
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    background: none;
    text-align: left;
}

/* Hauptpunkte (Link oder aufklappbare Gruppe) */
.mnav__link,
.mnav__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color-header);
    cursor: pointer;
    list-style: none;
    transition: background-color .15s;
}

.mnav__summary::-webkit-details-marker { display: none; }

.mnav__summary::after {
    content: '';
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
    opacity: .6;
}

.mnav__group[open] > .mnav__summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.mnav__link:hover,
.mnav__summary:hover { background: #f6f6f6; color: var(--text-color-header); }

.mnav__group { border-top: 1px solid #f1f1f1; }
.mnav__group[open] { background: #fafafa; }
.mnav__summary.is-active { color: #2f6b12; }

/* Unterpunkte */
.mnav__list {
    display: block;
    margin: 0;
    padding: 0 0 8px;
    list-style: none;
}

.mnav__list li { padding: 0; }

.mnav__sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 20px 10px 36px;
    font-size: 16px;
    color: #4a4a4a;
    transition: background-color .15s, color .15s;
}

.mnav__sublink:hover { background: #f0f0f0; color: var(--text-color-header); }

/* aktuelle Seite */
.mnav a[aria-current="page"] {
    color: #1b1b1b;
    font-weight: 700;
    background: #f1f8e8;
    box-shadow: inset 4px 0 0 #8cc84b;
}

/* Hinweis "öffnet in neuem Fenster" (PDF, Bild) */
.mnav__ext {
    width: 10px;
    height: 10px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    opacity: .45;
    transform: rotate(45deg) scale(.8);
}

.mnav__foot {
    display: grid;
    gap: 10px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid #ececec;
}

.mnav__cta {
    display: block;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--bg-color-sub-navigation-item1);
    color: #1b1b1b;
    font-weight: 700;
    text-align: center;
    transition: filter .2s;
}

.mnav__cta:hover { color: #1b1b1b; filter: brightness(.95); }

.mnav__mail {
    display: block;
    padding: 4px;
    font-size: 14px;
    text-align: center;
    color: #666;
}

.mnav__mail:hover { color: var(--text-color-header); }

@media (prefers-reduced-motion: reduce) {
    .mnav[open], .mnav[open]::backdrop, .mnav.is-closing, .mnav.is-closing::backdrop { animation: none; }
}

@media only screen and (min-width: 768px) {
    .nav-toggle, .mnav { display: none !important; }
    .top-nav {
        display: grid;
        top: 0;
        position: sticky;
    }
}

/* ----------- Sub Navigation ----------- */
.sub-navi {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: -7px;
    height: 105px;
}

.sub-navi .item1,
.sub-navi .item2,
.sub-navi .item3 {
    color: var(--text-color-sub-navigation-item1);
    display: grid;
    align-items: center;
}

.sub-navi .item1 { background: var(--bg-color-sub-navigation-item1); }
.sub-navi .item2 { background: var(--bg-color-sub-navigation-item2); }
.sub-navi .item3 { background: var(--bg-color-sub-navigation-item3); }

.sub-navi .item1:hover { background: var(--bg-color-sub-navigation-item1-light); cursor: pointer; }
.sub-navi .item2:hover { background: var(--bg-color-sub-navigation-item2-light); cursor: pointer; }
.sub-navi .item3:hover { background: var(--bg-color-sub-navigation-item3-light); cursor: pointer; }

.sub-navi .item1>a::after,
.sub-navi .item2>a::after,
.sub-navi .item3>a::after {
    background-color: transparent;
    transition: none;
    border-radius: 0;
}

.sub-navi .item1>a:hover,
.sub-navi .item2>a:hover,
.sub-navi .item3>a:hover {
    color: var(--text-color-sub-navigation-item1);
}

/* ----------- Bildergalerie (Splide) – vorher Style-Block pro Galerie ----------- */
.splide__pagination {
    display: none; /* keine Punkte */
}

.splide__slide {
    padding: 10px;
}

.splide__slide__container {
    border-radius: var(--8px);
    height: 100%;          /* Splide 4 "cover": Hintergrundbild füllt die ganze Slide-Höhe */
}

.galerie .det-content-slider {
    max-width: 800px;
    padding: 0;
}


/* ----------- Vereinschronik (Zeitstrahl) – vorher Style-Block auf der Seite ----------- */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    background-color: var(--bg-color-sub-navigation-item2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline .container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline .container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -10px;
    background-color: white;
    border: 4px solid #FF9F55;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline .left  { left: 0; }
.timeline .right { left: 50%; }

.timeline .left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--bg-color-sub-navigation-item2);
}

.timeline .right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--bg-color-sub-navigation-item2) transparent transparent;
}

.timeline .right::after {
    left: -16px;
}

.timeline .year-left {
    text-align: right;
    position: relative;
    right: -108px;
    top: 5px;
    font-weight: 600;
}

.timeline .year-right {
    position: relative;
    left: -108px;
    top: 5px;
    font-weight: 600;
}

.timeline .content {
    padding: var(--8px);
    background-color: white;
    position: relative;
    border-radius: var(--8px);
    border: 1px solid var(--bg-color-sub-navigation-item2);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--12px);
    top: -30px;
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline .container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline .left::after,
    .timeline .right::after {
        left: 15px;
    }

    .timeline .right {
        left: 0%;
    }

    .timeline .content {
        top: 15px;
    }

    .timeline .year-left,
    .timeline .year-right {
        text-align: left;
        right: 0px;
        left: 0px;
    }
}


/* DEVICE SETTINGS */
@media screen and (max-width: 767px) {

    :root {
        --text-size-xs: 12px;
        --text-size-sm: 14px;
        --text-size-base: 16px;
        --text-nav-base: 18px;

        --4px: 2px;
        --8px: 4px;
        --16px: 12px;
        --32px: 16px;
        --40px: 22px;
        --64px: 28px;
    }

    h1 {
        line-height: 1.3;
        font-size: 1.6rem;
    }

    main {
        padding: 40px var(--40px) var(--40px) var(--40px);
    }

    header {
        position: sticky;
        border-bottom: 1px solid var(--bg-color-navigation);
    }

    .header-addr {
        display: none;
    }

    .sub-navi {
        height: 45px;
        margin-left: 0;
        margin-right: 0;
    }

    /* bisher var(--text-size-md), die nie definiert war -> Browser erbte die Schriftgrösse */
    .font-sub-nav {
        font-size: inherit;
    }

    .font-sub-nav--desc {
        display: none;
    }

    .home-topic--button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 0 minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--16px);
        padding-left: var(--16px);
        padding-right: var(--16px);
    }

    .footer-a {
        margin-bottom: var(--8px);
        margin-top: var(--4px);
    }

    /* Logo + Menü-Knopf; minmax(0,1fr) verhindert, dass die Kopfzeile die Seite breiter als den Bildschirm macht */
    .header-content {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        font-size: 0.9rem;
    }

    .home-link {
        padding-left: var(--16px);
        padding-right: var(--16px);
    }

    .home-link img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .faq-grid {
        grid-template-columns: 80px auto;
    }

    .faq-grid.faq-grid--text {
        grid-template-columns: 1fr;
    }

    .footer-media {
        grid-template-columns: 1fr;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-topic--buttons {
        grid-template-columns: 1fr 1fr;
        gap: var(--32px);
    }

    .det-content-slider {
        width: 350px;
        padding: 0;
    }

    .det-content-slider-container-gray,
    .det-content-slider-container {
        padding: var(--16px) 0;
    }
}
