/* default.css */
/* --- undo --- */
html, body, div, span, a, h1, h2, h3, h4, h5, h6, p, blockquote, img,
ol, ul, li, form, input, textarea, label, select, table, tbody, thead, tfoot, tr, th,
td, footer, header, menu, nav, section, video { padding: 0; margin: 0; box-sizing: border-box; }

img, a img, :link img, :visited img, fieldset, button { border: none; outline: none; }
a:visited { text-decoration: none; }
img { vertical-align: bottom; }
table, tr, th, td { border: none; border-spacing: 0; }
th, td { vertical-align: top; }
hr { clear: both; }
address { font-style: normal; }

ul, ol { list-style-image: none; margin: 0 0 1.25rem 0; padding: 0 0 0 1.25rem; list-style-position: outside; }
ol { padding: 0 0 0 1.875rem; }
ul li, ol li { margin: 0 0 0.625rem 0; padding: 0; }
ul, ul li { list-style-type: disc; }
ol, ol li { list-style-type: decimal; }
li > ul, li > ol { margin: 0.625rem 0; }
li > ul > li { list-style-type: circle; }
li > ol > li { list-style-type: decimal; }

html, body {
    height: 100%; /* Vertikalen Scrollbalken immer einblenden */
    word-wrap:break-word; /* Woerter in die naechste Zeile umbrechen, wenn sie das umschliessende Element verlassen */
    min-width: 300px;
}
html { overflow: scroll; overflow-x: auto; }

/* fuer responsive Webseiten */
img, object, iframe { max-width: 100%; height: auto; }

/*  Clearfix, um das Floating innerhalb der Container aufzuheben */
.clearfix:after { content: ""; display: block; height: 0; clear: both; visibility: hidden; }

/* CSS-Formatierungen interne Module */
.flLeft, .float_left { float: left; }
.flRight, .float_right { float: right; }
.flClear, .float_clear { clear: both; }
.center { text-align: center; }
.small { font-size: small; }
.bold { font-weight: 700; }
.hide { display: none; }
.text_left { text-align: left; }
.text_center { text-align: center; }
.text_right { text-align: right; }

/* Flex-Ausrichtung innerhalb der Section - display:flex kommt direkt von der
   Breiten-Klasse (.section_full/.section_1200/... in main<datum>.css), nicht
   mehr von einer eigenen .section_flex-Klasse (bis 02.09.2026 - war ein
   Kaskade-Bug: die Breiten-Klasse lud NACH dieser Datei und ueberschrieb
   display:flex mit ihrem eigenen display:block). */
.justify_content_flex_start    { justify-content: flex-start; }
.justify_content_center        { justify-content: center; }
.justify_content_flex_end      { justify-content: flex-end; }
.justify_content_space_between { justify-content: space-between; }
.justify_content_space_around  { justify-content: space-around; }
.justify_content_space_evenly  { justify-content: space-evenly; }
.align_items_stretch    { align-items: stretch; }
.align_items_flex_start { align-items: flex-start; }
.align_items_center     { align-items: center; }
.align_items_flex_end   { align-items: flex-end; }
.align_items_baseline   { align-items: baseline; }

/* Erzwungener Zeilenumbruch in einer Flex-Section (z. B. 003_absaetze mit
   leerem Value als Umbruch zwischen zwei Box-Reihen): clear:both wirkt bei
   Flex-Items nicht mehr, flex-basis: 100% erzwingt stattdessen die volle
   Zeilenbreite und damit den Umbruch. Eigene Klasse statt .flClear, da die
   Bedeutung eine andere ist (Zeilenumbruch statt Float aufheben) - .flClear
   bleibt unveraendert fuer echte clear:both-Faelle (z. B. BwYFormHelper). */
.flex_break { flex-basis: 100%; width: 100%; }


/* main20261111.css */
/* --- Projektfarben ------------------------------------------------------- */
:root {
    --color-main:          #333333;   /* Grundtext */
    --color-link:          #0D5A40;
    --color-headline:      #0D5A40;
    --color-subheadline:   #2a7a44;
    --color-button:        #2a7a44;
    --color-button-hover:  #236237;
    --color-green-bright:  #68c287;   /* Verlauf Footer */
    --color-green-nav:     #138B5E;   /* mobile Nav, 2. Ebene */

    --color-bg:            #ffffff;
    --color-bg-alt:        #dee9de;   /* hellgruen */
    --color-bg-gray:       #f9f9f9;
    --color-border:        #555555;

    --color-nav:           #555555;
    --color-nav-hover:     #222222;
    --color-black:         #000000;
    --color-dark:          #333333;
    --color-dark-alt:      #404040;
    --color-link-dark:     #073925;   /* FAQ offen, hover */
    --color-cta-bg:        #f5faff;   /* modul41 */
    --color-profile-text:  #10375c;   /* modul45 */
    --color-highlight:     #cc0000;   /* Suchtreffer */
    --color-highlight-bg:  #f0f0f0;

    --color-focus:         #0D5A40;   /* Fokusring, auf dunkelgruenen Flaechen weiss (siehe unten) */
}

/* Schriften self-hosted */
@font-face {
    font-family: 'Mona Sans';
    src: url('fonts/mona-sans-v4-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mona Sans';
    src: url('fonts/mona-sans-v4-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mona Sans';
    src: url('fonts/mona-sans-v4-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =============================================================================
   1) Typografie
   ============================================================================= */

html { background-color: var(--color-bg); }

body {
    font-family: "Mona Sans", Verdana, Geneva, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--color-main);
    background-color: var(--color-bg);
}

a { color: var(--color-link); text-decoration: none; }
a:hover,
a:focus-visible { color: var(--color-link); text-decoration: underline; }
/* BFSG: Fokusring nicht entfernen */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* Nur Links mit Bild, damit der Fokusring um das Bild liegt und nicht nur um die line-height */
a:has(img) { display: inline-block; overflow: hidden; }
a img { transition: all 0.25s ease-in; }
a:hover img,
a:focus-visible img { opacity: 0.8; transform: scale(1.1); }

/* Link als Button - Fokusring liegt durch outline-offset auf dem Seitenhintergrund,
   deshalb die Standard-Fokusfarbe statt Weiss */
a.link_as_button { display: inline-block; margin: 0 20px 20px 0; padding: 14px 40px; border-radius: 12px;
  background-color: var(--color-button); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 20px rgba(42, 122, 68, 0.5); transition: background-color 0.3s ease; }
a.link_as_button:hover,
a.link_as_button:focus-visible { background-color: var(--color-button-hover); color: #fff; text-decoration: none; box-shadow: 0 12px 30px rgba(35, 98, 55, 0.7); }

h1, h2, h3, h4, h5, h6,
.like_h1, .like_h2, .like_h3, .like_h4, .like_h5, .like_h6
{ margin: 0 0 20px 0; line-height: 1.25; color: var(--color-headline); font-size: 1rem; }

h1, .like_h1 { font-size: 1.875rem; }
h2, .like_h2 { font-size: 1.5rem; }
h3, .like_h3 { font-size: 1.25rem; }
h4, .like_h4 { font-size: 1rem; }
h5, .like_h5 { font-size: 0.9rem; }
h6, .like_h6 { font-size: 0.8rem; }

@media all and (max-width: 480px) {
    h1, .like_h1 { font-size: 1.75rem; }
    h2, .like_h2 { font-size: 1.4rem; }
}

@media all and (max-width: 360px) {
    h1, .like_h1 { font-size: 1.5rem; hyphens: auto; }
    h2, .like_h2 { font-size: 1.25rem; hyphens: auto; }
}

/* Overline: eigenständiges Element vor der Überschrift (p.headline_overline
   in 001_headline/001_headline_mit_text/002_text_bild), nie Teil des
   Heading-Tags. */
.headline_overline { display: block; margin: 0 0 0.5rem 0; color: var(--color-subheadline);
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

/* Subline: das AddOn schreibt sie als <span class="headline_subline"> in
   den Überschriften-Tag (h1-h6/.like_h1-.like_h6, nicht nur h1-h3). */
.headline_subline { display: block; color: var(--color-subheadline); font-size: 0.6em; line-height: 1.4; }

p { margin: 0 0 20px 0; padding: 0; }
em { font-style: italic; }
strong { font-weight: 700; }

/* 004_trennlinie */
hr, hr.trennlinie { width: 100%; height: 1px; margin: 0 0 1.25rem 0; border: none; background-color: var(--color-border); }

/* Bildunterschriften */
.small { display: block; margin: 0; padding-top: 5px; font-size: 0.8125rem; line-height: 1.5; font-style: italic; }

/* Textfarbe auf dunklen Flächen */
.text_color_white,
.text_color_white h1, .text_color_white h2, .text_color_white h3,
.text_color_white p,  .text_color_white li, .text_color_white a { color: #fff; }


/* =============================================================================
   2) Section
   ============================================================================= */

.section_bg_none,
.section_bg_green_dark,
.section_bg_green_light,
.section_bg_gray_light
{ clear: both; display: block; position: relative; width: 100%; margin: 0; padding: 50px 0 10px 0; z-index: 1; }

.section_bg_none        { background-color: transparent; }
.section_bg_green_dark  { background-color: var(--color-link); color: #fff; }
.section_bg_green_light { background-color: var(--color-bg-alt); }
.section_bg_gray_light  { background-color: var(--color-bg-gray); }

.section_bg_green_dark p, .section_bg_green_dark h1, .section_bg_green_dark h2, .section_bg_green_dark h3 { color: #fff; }

/* display:flex direkt hier (nicht ueber eine separate .section_flex-Klasse aus
   default.css) - die laedt vor main<datum>.css und wuerde bei gleicher
   Spezifitaet von einem spaeter geladenen display:block ueberschrieben werden. */
.section_full,
.section_1600,
.section_1200,
.section_980
{ display: flex; flex-flow: row wrap; position: relative; width: 100%; margin: 0 auto; padding: 0; z-index: 1; }

.section_full { width: 100%; margin: 0; }
.section_1600 { max-width: 1600px; margin: 0 auto; }
.section_1200 { max-width: 1200px; margin: 0 auto; }
.section_980 { max-width: 980px; margin: 0 auto; }

@media all and (max-width: 480px) {
    .section_full,
    .section_1600,
    .section_1200,
    .section_980
    { flex-direction: column; flex-wrap: nowrap; }
}

/* Section mit Hintergrundbild */
.section_bg_image { display: block; position: static; width: 100%; min-height: 100px; margin: 0; z-index: 1;
  background-color: var(--color-bg); background-position: center center; background-attachment: scroll;
  background-repeat: no-repeat; background-size: cover; }
.section_bg_image.parallax { background-attachment: fixed; min-height: 500px; }

/* Section-Padding, feste Auswahl im Backend (BwModulhelperSection.php,
   kein rex_config-Eintrag noetig). section_padding_normal entspricht exakt den
   frueher fest einprogrammierten Werten, keine optische Aenderung fuer
   Bestandsseiten. Bei section_bg_image groesser, damit ein Hintergrundbild
   genug Luft hat. */
.section_padding_normal { padding: 50px 0 10px 0; }
.section_padding_small  { padding: 25px 0 5px 0; }
.section_padding_big    { padding: 100px 0 40px 0; }
.section_padding_none   { padding: 0; }

.section_bg_image.section_padding_normal { padding: 100px 0 80px 0; }
.section_bg_image.section_padding_small  { padding: 50px 0 30px 0; }
.section_bg_image.section_padding_big    { padding: 150px 0 100px 0; }
.section_bg_image.section_padding_none   { padding: 0; }

@media all and (max-width: 480px) {
    .section_padding_normal { padding: 30px 0 10px 0; }
}


/* =============================================================================
   3) outer_box — Seitenbreite 1600px, Abstand 40px
   ============================================================================= */

.outer_box { display: block; width: 95%; margin: 0 0 20px 2.5%; padding: 0; }

.box_width_full { width: 100%; margin: 0 0 20px 0; }
.box_width_1_2  { width: 46.25%; }
.box_width_1_3  { width: 30%; }
.box_width_2_3  { width: 62.5%; }
.box_width_1_4  { width: 21.88%; }
.box_width_3_4  { width: 70.64%; }

/* box_class: Padding direkt auf der outer_box (box-sizing: border-box aus default.css) */
.box_bg_green_dark  { background-color: var(--color-link); color: #fff; padding: 20px 20px 1px 20px; }
.box_bg_green_light { background-color: var(--color-bg-alt); padding: 20px 20px 1px 20px; }
.box_bg_white       { background-color: var(--color-bg); padding: 20px 20px 1px 20px; }
.box_bg_gray_light  { background-color: var(--color-bg-gray); padding: 20px 20px 1px 20px; }

.box_bg_green_dark p, .box_bg_green_dark h1, .box_bg_green_dark h2, .box_bg_green_dark h3 { color: #fff; }

/* Gruener Fokusring waere auf dunkelgruenen Flaechen unsichtbar (WCAG 1.4.11) - dort weiss */
.section_bg_green_dark a:focus-visible, .section_bg_green_dark button:focus-visible, .section_bg_green_dark input:focus-visible, .section_bg_green_dark select:focus-visible, .section_bg_green_dark textarea:focus-visible,
.box_bg_green_dark a:focus-visible, .box_bg_green_dark button:focus-visible, .box_bg_green_dark input:focus-visible, .box_bg_green_dark select:focus-visible, .box_bg_green_dark textarea:focus-visible { outline-color: #fff; }

/* Bilder in der outer_box */
.outer_box .image { margin: 0 0 25px 0; }
.outer_box .image a { text-decoration: none; border-bottom: none; }
.outer_box .image a:hover { opacity: 0.8; }
.outer_box .image a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* 002_text_bild — text_img_left/right: Text fließt um das Bild.
   max-width (30%) und margin (15px) zusammen ergeben den Abstand zwischen
   Bild und Text - fuer mehr/weniger Abstand beide Werte gemeinsam anpassen,
   nicht nur den margin-Wert. */
.text_bild .flLeft  { float: left;  display: block; width: auto; max-width: 30%; margin: 0 15px 0 0; overflow: hidden; }
.text_bild .flRight { float: right; display: block; width: auto; max-width: 30%; margin: 0 0 0 15px; overflow: hidden; }
.text_bild .image span.small { display: block; }

/* 002_text_bild — two_column_*: zwei getrennte Spalten, per Flex (kein Float,
   kein Clearfix nötig). Der Abstand zwischen den Spalten kommt aus gap - für
   mehr/weniger Abstand gap und beide width-Werte gemeinsam anpassen. */
.zweispalter { display: flex; flex-wrap: wrap; gap: 7.5%; }
.zweispalter .flLeft,
.zweispalter .flRight { display: block; width: 46.25%; margin: 0; overflow: hidden; }

/* Clearfix für .text_bild - bekommt im Modul-Markup kein eigenes .clearfix,
   ohne das hier hätte der Wrapper Höhe 0, da beide Kinder floaten. */
.text_bild::after { content: ''; display: table; clear: both; }

@media all and (max-width: 980px) {
    .box_width_1_4 { width: 46.25%; }
}

@media all and (max-width: 640px) {
    .outer_box { width: 95%; margin: 0 0 20px 2.5%; }
    .box_width_full { width: 100%; margin: 0 0 20px 0; }

    .zweispalter { flex-direction: column; gap: 15px; }
    .zweispalter .flLeft,
    .zweispalter .flRight { width: auto; }
}

@media all and (max-width: 480px) {
    .text_bild .flLeft,
    .text_bild .flRight { float: none; width: auto; max-width: none; margin: 0 0 15px 0; }
}


/* =============================================================================
   4) Seitengerüst
   ============================================================================= */

#page, #header_bg, #header, #content_bg, #content, #footer_bg, #footer
{ display: block; position: relative; width: 100%; margin: 0; padding: 0; z-index: 1; }

#header_bg { position: fixed; top: 0; left: 0; z-index: 999; }

#no_header_image { display: block; height: 140px; background-color: var(--color-link); }

body { scroll-margin-top: 150px; }
#content { min-height: 50vh; scroll-margin-top: 150px; }
div[id] { scroll-margin-top: 150px; }
#search_it_form { scroll-margin-top: 150px; }

@media all and (max-width: 980px) {
    #no_header_image { height: 70px; }
}

/* Footer-Logos */
#footer_logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin: 0; padding: 30px 0; }
#footer_logos > div { display: block; width: auto; min-width: 270px; margin: 0; padding: 10px; text-align: center; }
#footer_logos a { display: inline-block; overflow: visible; }
#footer_logos img { display: block; width: auto; max-width: none; }
#footer_logos .footer_logo_break { display: block; width: 100%; height: 0; padding: 0; }
#footer_logos .footer_logo_break_1200 { display: none; width: 0; height: 0; padding: 0; }

/* 1200px: Logos brechen vor dem Nav-Breakpoint in zwei Reihen um */
@media all and (max-width: 1200px) {
    #footer_logos .footer_logo_break_1200 { display: block; width: 100%; height: 0; }
}

/* Footer */
#footer_bg { clear: both; background-color: var(--color-button); background: linear-gradient(135deg, var(--color-button), var(--color-green-bright)); color: #fff; }
#footer { display: grid; grid-template-columns: 240px auto auto 180px; justify-content: space-between; gap: 30px;
  max-width: 1200px; margin: 0 auto; padding: 40px 2.78%; }

#footer_bg a { color: #fff; text-decoration: none; overflow: visible; }
#footer_bg a:hover,
#footer_bg a:focus-visible { color: #fff; text-decoration: underline; }
/* Footer ist dunkel - heller Fokusring statt --color-focus (WCAG 1.4.11) */
#footer_bg a:focus-visible { outline-color: #fff; }

#footer_1 { padding-top: 5px; }
#footer_1 img { max-width: 240px; }
#footer_subline { display: block; padding: 20px 0 0 0; font-size: 0.75rem; }
#footer #accessibility_toggle_box { text-align: left; }

#footer_bottom { display: block; max-width: 1200px; margin: 0 auto; padding: 0 2.78% 20px 2.78%; text-align: center; }
#footer_bottom a { display: inline-block; margin: 0 5px; }
#footer_copright { display: inline-block; margin: 10px 0 0 0; font-size: 0.75rem; }

@media all and (max-width: 980px) {
    #footer { grid-template-columns: auto auto 180px; grid-template-rows: repeat(2, auto); }
    #footer_1 { grid-area: 1 / 1 / 2 / 4; padding-top: 0; }
    #footer_2 { grid-area: 2 / 1 / 3 / 2; }
    #footer_3 { grid-area: 2 / 2 / 3 / 3; }
    #footer_4 { grid-area: 2 / 3 / 3 / 4; }
}

@media all and (max-width: 768px) {
    #footer { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, auto); }
    #footer_1 { grid-area: 1 / 1 / 2 / 3; }
    #footer_2 { grid-area: 2 / 1 / 3 / 2; }
    #footer_3 { grid-area: 2 / 2 / 3 / 3; }
    #footer_4 { grid-area: 3 / 1 / 4 / 3; }
}

@media all and (max-width: 480px) {
    #footer { display: block; }
    #footer_1 { margin-bottom: 20px; }
    #footer_2, #footer_3 { margin-bottom: 20px; border-bottom: 1px solid #fff; }
}


/* =============================================================================
   5) Navigation
   ============================================================================= */

/* --- Menue-Button --- */
#main_nav_button { display: none; position: fixed; top: 25px; left: auto; right: 25px; width: 32px; height: auto; margin: 0 0 0 -16px; padding: 0; z-index: 1001;
  color: var(--color-black); border: none; background-color: transparent; transition: all 200ms ease-in-out; cursor: pointer; }
#main_nav_button:before,
#main_nav_button:after { content: ''; display: block; width: auto; height: 3px; margin: 0; padding: 0; background-color: var(--color-black); transition: all 200ms ease-in-out; }
#main_nav_button:before { margin-bottom: 15px; box-shadow: 0 9px 0 var(--color-black); }

#main_nav_button:hover,
#main_nav_button:focus-visible { transform: scale(1.1); }

#main_nav_button.active:before { box-shadow: none; transform: translateY(9px) rotate(45deg); }
#main_nav_button.active:after { transform: translateY(-9px) rotate(-45deg); }

/* --- Menue --- */
#main_nav_bg { display: block; position: fixed; top: 0; left: 0; width: 100%; height: auto; margin: 0; padding: 30px 0 0 0; z-index: 1000; }

#main_nav_content { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: nowrap;
  position: relative; width: 100%; max-width: 1600px; margin: 0 auto; background-color: rgba(255, 255, 255, 0.9); border-radius: 16px; }

#logo { flex-shrink: 0; width: auto; max-width: 360px; margin: 5px 5px 5px 2.5%; padding: 0; }
#logo a { overflow: visible; }

#main_nav { flex: 1; display: block; position: relative; width: 100%; height: auto; margin: 0; padding: 15px 2% 15px 1px; z-index: 100; text-align: right; }

/* erste Ebene */
#main_nav ul { list-style: none; display: block; position: relative; margin: 0; padding: 0; }
#main_nav li { list-style-type: none; display: inline-block; position: relative; margin: 0; padding: 5px; }
#main_nav li a { display: block; width: auto; height: auto; margin: 0; padding: 5px 12px;
  font-size: 1.1rem; color: var(--color-nav); text-decoration: none; text-align: center; transition: all 0.25s; }
#main_nav li a:hover,
#main_nav li a:focus-visible { text-decoration: none; color: var(--color-nav-hover); transform: scale(1.05); }
#main_nav li a.rex-current,
#main_nav li a.rex-active { text-decoration: none; color: var(--color-black); }

/* Pfeil fuer auf- und zugeklappte Menues */
#main_nav ul li.has-children > a::after { content: ">"; display: inline-block; margin-left: 5px; transform: rotate(90deg); font-size: 0.9rem; }
#main_nav ul li.has-children > a[aria-expanded="true"]::after,
#main_nav ul li.has-children > a:hover::after,
#main_nav ul li.rex-active > a::after { transform: rotate(-90deg); }

/* zweite Ebene: Anzeigen bei hover und bei Fokus auf den Link */
#main_nav .rex-navi1 li.has-children:hover > ul,
#main_nav .rex-navi1 li.has-children > a:hover ~ ul,
#main_nav .rex-navi1 li.has-children > a:focus ~ ul,
#main_nav .rex-navi1 li.has-children > a[aria-expanded="true"] ~ ul { display: block; transition: all 500ms ease-in-out; }

#main_nav li ul { display: none; position: absolute; top: 40px; left: 0; width: auto; height: auto; margin: 0; padding: 20px 0 0 0; z-index: 100; background-color: var(--color-bg); }

#main_nav li ul li { display: block; float: none; width: 100%; height: auto; margin: 0; padding: 0; border-left: none; }
#main_nav li ul li a { display: block; width: auto; margin: 0; padding: 5px 15px; color: var(--color-link); white-space: nowrap; font-size: 1rem; text-align: left; }
#main_nav li ul li a:hover,
#main_nav li ul li a:focus-visible { text-decoration: none; color: var(--color-black); }
#main_nav li ul li a.rex-current,
#main_nav li ul li a.rex-active { color: var(--color-black); }

/* dritte Ebene */
#main_nav ul.rex-navi3 { display: none !important; }

/* 1200px: Logo und Linkabstand verkleinern, damit die Nav bis zum 980er-Breakpoint in eine Zeile passt */
@media all and (max-width: 1200px) {
    #logo { max-width: 300px; margin: 10px 5px 10px 2.5%; }
    #main_nav li a { padding: 5px 8px; }
}

@media all and (max-width: 980px) {
    #main_nav_content { display: block; min-width: 300px; min-height: 70px; border-radius: 0; }

    #logo { max-width: none; margin: 0; padding: 15px 80px 15px 10px; }
    #logo img { display: block; width: 100%; max-width: 300px; }

    #main_nav_button { display: block; }

    #main_nav_bg { position: fixed; height: auto; margin: 0; padding: 0; overflow: hidden; }
    #main_nav_bg.active { height: 100%; overflow-y: auto; }

    #main_nav { display: none; clear: both; width: 100%; min-width: 300px; margin: 0; padding: 0 0 20px 0; text-align: left; }
    #main_nav_bg.active #main_nav { display: block; }

    #main_nav li { display: block; padding: 0; }
    #main_nav li a { margin: 12px 15px; padding: 6px 10px; color: #fff; background-color: var(--color-link); }
    #main_nav li a:hover,
    #main_nav li a:focus-visible { color: #fff; background-color: var(--color-dark); transform: scale(1); }
    #main_nav li a.rex-active { color: #fff; background-color: var(--color-link); transform: scale(1); }
    #main_nav li a.rex-current { color: #fff; background-color: var(--color-dark); transform: scale(1); }

    #main_nav ul li.has-children a { position: relative; padding: 6px 32px 6px 10px; }
    #main_nav ul li.has-children > a::after { display: block; position: absolute; top: 7px; left: auto; right: 12px; margin: 0; transform: rotate(90deg); }
    #main_nav ul li.has-children > a[aria-expanded="true"]::after,
    #main_nav ul li.has-children > a:hover::after,
    #main_nav ul li.rex-active > a::after { transform: rotate(-90deg); }

    /* Mobil KEINE Anzeige bei Hover + Sonderfall: Fokus, aber nicht expanded */
    #main_nav .rex-navi1 li.has-children:hover > ul,
    #main_nav .rex-navi1 li.has-children > a:hover ~ ul,
    #main_nav .rex-navi1 li.has-children > a:focus[aria-expanded="false"] ~ ul { display: none; }

    /* Zusaetzlich zum Hover expanded oder aktiv: doch anzeigen (hoehere Spezifitaet) */
    #main_nav .rex-navi1 li.has-children.rex-active:hover > ul,
    #main_nav .rex-navi1 li.has-children:hover > a[aria-expanded="true"] ~ ul,
    #main_nav .rex-navi1 li.has-children > a:focus[aria-expanded="true"] ~ ul { display: block; }

    #main_nav li.rex-active > ul.rex-navi2,
    #main_nav li.has-children > a[aria-expanded="true"] ~ ul.rex-navi2 { display: block; }

    #main_nav ul.rex-navi2 { display: none; position: relative; top: 0; left: 0; width: 100%; margin: -6px 0 0 0; padding: 0; }
    #main_nav ul.rex-navi2 li { width: 100%; min-width: 0; }
    #main_nav ul.rex-navi2 li a { width: auto; margin: 6px 15px; padding: 4px 10px; color: #fff; background-color: var(--color-green-nav); font-size: 0.9rem; text-align: center; }
    #main_nav ul.rex-navi2 li a:hover,
    #main_nav ul.rex-navi2 li a:focus-visible { text-decoration: none; color: #fff; background-color: var(--color-dark-alt); }
    #main_nav ul.rex-navi2 li a.rex-active { color: #fff; background-color: var(--color-green-nav); }
    #main_nav ul.rex-navi2 li a.rex-current { color: #fff; background-color: var(--color-dark-alt); }
}


/* =============================================================================
   6) Projektspezifisches
   ============================================================================= */


/* skiplinks.css */
/* Skip-Link - ausserhalb des sichtbaren Bereichs */
.skiplinks { position: absolute; top: -300px; left: 0; width: 100%; min-width: 300px; display: flex; justify-content: center; z-index: 2000; transition: top 0.3s ease-in-out; }
.skiplinks a { margin: 0 0.5rem; padding: 0.5rem 1rem; text-decoration: none; color: #fff; background-color: #333; border-radius: 0 0 4px 4px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
.skiplinks a:hover, .skiplinks a:focus { background-color: blue; }
/* Wenn ein Skip-Link den Fokus bekommt, wird die Skip-Link-Leiste sichtbar */
.skiplinks:focus-within { top: 0; }

/* accessibility_toggle_box.css */
#accessibility_toggle_box { display: block; margin: 10px 0; text-align: right; }

.accessibility-toggle {
    display: inline-block;
    padding: 8px 12px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
}
.accessibility-toggle:hover { background: #e0e0e0; }

/* Icon fuer den Kontrast-Button */
.icon-contrast {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM8 1v14A7 7 0 0 1 8 1z'/%3E%3C/svg%3E");
    background-size: contain;
    margin: 0;
    vertical-align: middle;
}
/* Schwarz/Weiss-Modus Styles */
.black-white-mode {
    filter: grayscale(100%) contrast(120%);
}
.black-white-mode * {
    color: #000 !important;
    background-color: #fff !important;
    border-color: #000 !important;
}
.black-white-mode svg.svg_icon { fill: #000 !important; }
/* Ausnahmen fuer wichtige UI-Elemente */
.black-white-mode a:focus,
.black-white-mode button:focus,
.black-white-mode input:focus {
    outline: 3px solid #000 !important;
}
.black-white-mode img,
.black-white-mode svg,
.black-white-mode video {
    filter: grayscale(100%) contrast(120%) !important;
}
.black-white-mode #content > div {
    border-bottom: 1px solid #ccc;
}
.black-white-mode #content > div:first-child {
    border-top: 1px solid #ccc;
}
/* Status des Buttons anzeigen */
.black-white-mode #black-white-toggle {
    background-color: #333 !important;
    color: white !important;
}

@media all and (max-width:768px) {
    #accessibility_toggle_box {
        margin: 20px 0 10px 0;
        text-align: center;
    }
}
@media all and (max-width:480px) {
    #accessibility_toggle_box {
        text-align: left;
    }
}


/* scroll_to_top_button.css */
:root {
	--mh-scroll-top-bg: #2a406e;
	--mh-scroll-top-bg-hover: #58698d;
	--mh-scroll-top-color: #fff;
}

#scroll_to_top { display: flex; align-items: center; justify-content: center; position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%; background-color: var(--mh-scroll-top-bg); color: var(--mh-scroll-top-color); cursor: pointer; z-index: 500; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 200ms ease-in-out, background-color 200ms ease-in-out; }

#scroll_to_top.visible { opacity: 1; visibility: visible; pointer-events: auto; }

#scroll_to_top:hover,
#scroll_to_top:focus-visible { background-color: var(--mh-scroll-top-bg-hover); }

#scroll_to_top:focus-visible { outline: 2px solid blue; outline-offset: 3px; }

#scroll_to_top .icon-arrow-up { display: block; width: 12px; height: 12px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(-45deg) translate(-2px, 2px); }

@media (prefers-reduced-motion: reduce) {
	#scroll_to_top { transition: none; }
}

@media all and (max-width: 480px) {
	#scroll_to_top { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}


/* andresmedia_link.css */
#andresmedia { clear: both; display: block; position: relative; top: 0; left: 0; width: 100%; height: auto; margin: 0; padding: 10px; z-index: 1; background-color: #444; font-size: 0.8rem; color: #fff; text-align: center; }
#andresmedia a { color: #fff; text-decoration: none; }
#andresmedia a:hover,
#andresmedia a:focus { color: #fff; text-decoration: underline; }

/* wow_effekte.css */
/* ------ wow Effekte ------ */
.wow {
    animation-delay: 0.5s;
    animation-duration:2s;
    animation-fill-mode:both;
}
.wow.hide { visibility: hidden; }
.wow.animate { visibility: visible; }

@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
.wow.animate.effect_fadeIn{animation-name:fadeIn}

@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}
.wow.animate.effect_fadeInDown{animation-name:fadeInDown}

@keyframes rollInLeft{0%{opacity:0;transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;transform:translateZ(0)}}
.wow.animate.effect_rollInLeft{animation-name:rollInLeft}

@keyframes rollInRight{0%{opacity:0;transform:translate3d(100%,0,0) rotate(-120deg)}to{opacity:1;transform:translateZ(0)}}
.wow.animate.effect_rollInRight{animation-name:rollInRight}

@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}
.wow.animate.effect_zoomIn{animation-name:zoomIn}

@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}
.wow.animate.effect_zoomInDown{animation-name:zoomInDown}

@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}
.wow.animate.effect_zoomInLeft{animation-name:zoomInLeft}

@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}
.wow.animate.effect_zoomInRight{animation-name:zoomInRight}

@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}
.wow.animate.effect_zoomInUp{animation-name:zoomInUp}

@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}
.wow.animate.effect_slideInDown{animation-name:slideInDown}

@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}
.wow.animate.effect_slideInLeft{animation-name:slideInLeft}

@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}
.wow.animate.effect_slideInRight{animation-name:slideInRight}

@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}
.wow.animate.effect_slideInUp{animation-name:slideInUp}

/* Reduzierte Bewegung: Animation ueberspringen, Inhalt sofort und vollstaendig sichtbar */
@media (prefers-reduced-motion: reduce) {
    .wow { animation: none !important; }
    .wow.hide { visibility: visible; opacity: 1; }
}


/* 005_download.css */
.m005_download .download_item { display: block; position: relative; width: auto; margin: 0 0 1.0rem 0; padding: 0; border: 1px solid #e0e0e0; border-radius: 4px; transition: all 0.25s ease-in-out; }
.m005_download .download_link { text-decoration: none; display: block; padding: 12px; color: inherit; outline: none; background-color: #f9f9f9; border-radius: 3px; transition: all 0.25s ease-in-out; }
.m005_download .download_link:hover { text-decoration: none; }
.m005_download .download_item:hover { background-color: #e5effa; border-color: #3d87cf; box-shadow: 0 2px 6px rgba(61, 135, 207, 0.15); }
.m005_download .download_item:hover .download_title { color: #1a6cbf; }
.m005_download .download_item:hover .download_info { text-decoration: underline; }
.m005_download .download_item:active { background-color: #d8e7f7; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); transition-duration: 0.1s; }
.m005_download .download_link:focus, .m005_download .download_link:focus-visible { outline: none; }
.m005_download .download_item:focus-within .download_title { color: #1a6cbf; }
.m005_download .download_item:focus-within .download_info { text-decoration: underline; }
.m005_download .download_item:focus-within { border-color: #1a6cbf; box-shadow: 0 0 0 3px rgba(61, 135, 207, 0.5); background-color: #e5effa; }
.m005_download .download_item:focus-within::after { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 6px; box-shadow: 0 0 0 1px #1a6cbf; pointer-events: none; }
.m005_download .download_content { display: flex; align-items: center; }
.m005_download .download_icon { flex: 0 0 auto; margin-right: 15px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.m005_download .download_item:hover .download_icon { transform: scale(1.1); }
.m005_download .download_item:focus-within .download_icon { transform: scale(1.1); }
.m005_download .download_text { flex: 1; display: flex; flex-direction: column; }
.m005_download .download_title { font-size: 1rem; font-weight: bold; margin-bottom: 0.3rem; color: #333; transition: color 0.2s ease-in-out; }
.m005_download .download_info { font-size: 0.85rem; display: block; margin-bottom: 0.2rem; color: #555; }
.m005_download .download_description { color: #777; margin: 0; font-size: 0.7rem; display: block; }

@media (prefers-reduced-motion: reduce) {
.m005_download .download_item,
.m005_download .download_link,
.m005_download .download_title,
.m005_download .download_icon { transition: none; }
.m005_download .download_item:hover .download_icon,
.m005_download .download_item:focus-within .download_icon { transform: none; }
}

/* 030_faq_accordion.css */
.m030_faq_accordion .faq_accordions { margin: 0 0 20px 0; }

.m030_faq_accordion .faq_accordions .faq_accordion { border: 1px solid #ddd; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.m030_faq_accordion .faq_accordions .faq_question { margin: 0; }

.m030_faq_accordion .faq_accordions .faq_toggle { width: 100%; background: #f8f9fa; border: none; padding: 10px 20px; text-align: left; font-size: 1.125rem; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s ease; color: #333; }
.m030_faq_accordion .faq_accordions .faq_toggle:hover { background: #dee2e6; }
.m030_faq_accordion .faq_accordions .faq_toggle:focus-visible { outline: 2px solid blue; outline-offset: -3px; background: #dee2e6; }

.m030_faq_accordion .faq_accordions .faq_accordion.open .faq_toggle { background: #333; color: #fff; }
.m030_faq_accordion .faq_accordions .faq_accordion.open .faq_toggle:hover { background: #222; color: #fff; }

.m030_faq_accordion .faq_accordions .faq_icon { font-size: 1.5rem; font-weight: bold; flex-shrink: 0; margin-left: 15px; }
.m030_faq_accordion .faq_accordions .faq_answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #fff; }
/* max-height muss ein fester Wert sein, damit der Übergang animiert - großzügig
   gewählt, weil die Antwort TinyMCE-HTML mit Absätzen und Listen sein kann */
.m030_faq_accordion .faq_accordions .faq_accordion.open .faq_answer { max-height: 3000px; transition: max-height 0.5s ease-in; }
.m030_faq_accordion .faq_accordions .faq_answer_content { padding: 10px 20px; border-top: 1px solid #eee; line-height: 1.6; color: #555; }

.m030_faq_accordion .faq_accordions .faq_answer_content > :first-child { margin-top: 0; }
.m030_faq_accordion .faq_accordions .faq_answer_content > :last-child { margin-bottom: 0; }
.m030_faq_accordion .faq_accordions .faq_answer_content p { margin: 0 0 10px 0; }
.m030_faq_accordion .faq_accordions .faq_answer_content ul, .m030_faq_accordion .faq_accordions .faq_answer_content ol { margin: 0 0 10px 0; padding-left: 20px; }
.m030_faq_accordion .faq_accordions .faq_answer_content li { margin-bottom: 5px; }

/* Responsive Design */
@media (max-width: 768px) {
.m030_faq_accordion .faq_accordions .faq_toggle { padding: 8px 15px; font-size: 1rem; }
.m030_faq_accordion .faq_accordions .faq_answer_content { padding: 8px 15px; }
.m030_faq_accordion .faq_accordions .faq_icon { font-size: 1.25rem; margin-left: 10px; }
}

/* Hochkontrast-Modus Support */
@media (prefers-contrast: more) {
.m030_faq_accordion .faq_accordions .faq_accordion { border: 2px solid #000; }
.m030_faq_accordion .faq_accordions .faq_toggle { border-bottom: 2px solid #000; }
}

/* Bewegung / Animationen reduzieren bzw. abschalten */
@media (prefers-reduced-motion: reduce) {
.m030_faq_accordion .faq_accordions .faq_toggle, .m030_faq_accordion .faq_accordions .faq_answer { transition: none; }
}


/* 050_openstreetmap.css */
.m050_openstreetmap .openstreetmap { display: block; width: 100%; height: 500px; border: 1px solid #ccc; }

.m050_openstreetmap .openstreetmap_info { display: block; margin: 20px 0 40px 0; padding: 0 15px; text-align: center; }
.m050_openstreetmap .openstreetmap_info button { display: inline-block; margin: 0 10px 10px 10px; padding: 5px 20px; text-decoration: none; color: #fff; background-color: #000; border: none; border-radius: 0; cursor: pointer; transition: all 0.2s ease; }
.m050_openstreetmap .openstreetmap_info button:hover,
.m050_openstreetmap .openstreetmap_info button:active,
.m050_openstreetmap .openstreetmap_info button:focus { text-decoration: none; color: #fff; background-color: #999; }

.m050_openstreetmap .openstreetmap.blocked { display: flex; align-items: center; justify-content: center; background: #f9f9f9; border: 2px dashed #ddd; border-radius: 8px; }
.m050_openstreetmap .openstreetmap-cookie-notice { text-align: center; color: #666; padding: 30px 20px 10px 20px; }
.m050_openstreetmap .openstreetmap-cookie-notice h3 { color: #666; }
.m050_openstreetmap .openstreetmap-cookie-notice button { padding: 10px 20px; background: #007cba; color: #fff; border: none; cursor: pointer; }
.m050_openstreetmap .openstreetmap-cookie-notice button:hover,
.m050_openstreetmap .openstreetmap-cookie-notice button:focus { background: #005a87; }

@media (prefers-reduced-motion: reduce) {
.m050_openstreetmap .openstreetmap_info button { transition: none; }
}


/* extras_010_formular_yform.css */
/* ==========================================================================
   ACHTUNG: CSS von extras_010_formular_yform und extras_011_formular_yform_flex IMMER exakt GLEICH halten !!!
   (Wichtig: Im Template daher nur eine der beiden CSS einbinden.)
   ========================================================================== */

.yform form { display: flex; flex-wrap: wrap; column-gap: 4%; margin: 0 0 20px 0; padding: 0; }
.yform form > * { flex-basis: 100%; }

/* .form-group ist ein Flex-Item, kollabiert sein margin-bottom deshalb nicht
   mit dem der Kinder - eigenes margin-bottom hier wuerde sich zum
   margin-bottom von .form-control (unten) addieren (40px statt 20px). */
.yform .form-group { margin-bottom: 0; }

/* Label-Styling für bessere Barrierefreiheit */
.yform label { display: block; margin-bottom: 6px; font-weight: 500; color: #333; }

/* Hervorhebung von Pflichtfeldern im Label */
.yform label .required { color: #a94442; margin-left: 3px; }

.yform .form-control { box-sizing: border-box; display: block; width: 100%; height: auto; margin: 0 0 20px 0; padding: 8px 10px; font-family: inherit; font-size: 0.8rem; color: #001f40; background-color: #fff; border: solid 1px #dfe6e7; border-radius: 5px; box-shadow: none; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.yform select.form-control { height: 36px; }
.yform .form-control:hover { border-color: #a8aeb5; }
.yform .form-control:focus, .yform .form-control:focus-visible { border-color: #37434f; outline: none; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); }

.yform textarea.form-control { height: 284px; }

.yform .form-check-group { clear: both; margin: 0 0 20px 0; }
.yform .form-check-group .control-label { clear: both; display: block; margin: 0 0 10px 0; }

/* Generelle Formatierung für Checkboxen und Radiobuttons */
.yform .checkbox,
.yform .radio { clear: both; position: relative; margin-bottom: 10px; }

.yform .checkbox label,
.yform .radio label { position: relative; cursor: pointer; margin-left: 0; padding: 0 0 0 30px; }

.yform .checkbox label input,
.yform .radio label input { position: absolute; top: 0; left: 0; width: 20px; height: 20px; margin: 0; padding: 0; }

.yform .checkbox input:focus,
.yform .checkbox input:focus-visible,
.yform .radio input:focus,
.yform .radio input:focus-visible { outline: 2px solid #0078d7; outline-offset: 2px; }

.yform .radio i.form-helper,
.yform .checkbox i.form-helper { display: none; }


/* Hilfetext-Stil */
.yform .help-text { display: block; font-size: 0.85rem; color: #666; margin-top: -15px; margin-bottom: 15px; }

/* Verbesserter Button für Barrierefreiheit */
.yform .btn-primary { clear: both; display: block; flex-basis: auto; width: fit-content; min-width: 40px; height: auto; margin: 0 0 10px 0; padding: 10px; border: none; border-radius: 5px; text-align: center; font-weight: bold; background-color: #58698d; color: #FFF; cursor: pointer; transition: background-color 0.2s, transform 0.1s; }
.yform .btn-primary:hover { background-color: #001f40; color: #FFF; }
.yform .btn-primary:focus, .yform .btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); background-color: #001f40; }
.yform .btn-primary:active { transform: translateY(1px); }

/* Besser sichtbare Pflichtfeld-Markierung */
.yform .pflichtfelder { font-size: 0.9rem; margin-top: 15px; margin-bottom: 20px; color: #555; }

/* Fehlerhinweisbox, überm Formular */
.yform div.alert { padding: 15px 20px 5px 20px; margin-bottom: 20px; border-radius: 4px; }
.yform div.alert span { margin-right: 15px; }
.yform div.alert-danger { border: 2px solid #a94442; background-color: #FBF6F6; color: #a94442; }
.yform .alert ul { list-style-type: none; margin: 0; padding: 0; }
.yform .alert li { list-style-type: none; margin: 0 0 10px 0; padding: 0; color: #a94442; }

/* Grundlegende Fehlermarkierung für alle Formularelemente */
.yform .has-error { margin-bottom: 20px; }
.yform .has-error .control-label { color: #a94442; font-weight: 500; }
.yform .has-error label { color: #a94442; }
.yform .has-error .form-control { border-color: #a94442; box-shadow: 0 0 0 2px rgba(169, 68, 66, 0.25); }

/* Fehlermarkierung für reguläre Eingabefelder */
.yform .has-error .form-control { border-color: #a94442; box-shadow: 0 0 0 1px #EAD0D0; background-color: #FBF6F6; }
/* Spezielle Fehlermarkierung für die Checkbox */
.yform .formcheckbox.has-error label { color: #a94442; }
.yform .formcheckbox.has-error .form-helper { border-color: #a94442; box-shadow: 0 0 0 1px #EAD0D0; }

/* Optionale visuelle Verstärkung für die Checkbox */
.yform .formcheckbox.has-error { padding: 10px; border-radius: 4px; background-color: #FBF6F6; }

/* Fokus-Zustand für fehlerhafte Checkboxen verstärken */
.yform .formcheckbox.has-error input[type="checkbox"]:focus + .form-helper,
.yform .formcheckbox.has-error input[type="checkbox"]:focus-visible + .form-helper { border-color: #a94442; box-shadow: 0 0 0 3px rgba(169, 68, 66, 0.3); }

/* Verbesserte Fokusdarstellung für Tastaturbedienung */
.yform a:focus, .yform a:focus-visible { outline: 2px solid #0078d7; outline-offset: 2px; }

/* High-contrast mode Unterstützung */
@media (forced-colors: active) {
.yform .form-control:focus { outline: 2px solid CanvasText; }
.yform .btn-primary { border: 1px solid CanvasText; }
}


/* Honeypot gegen SPAM */
.yform .honeypot_box div.form-group { display: block; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; opacity: 0.1; }
/* Wird sichtbar, wenn das Feld den Fokus bekommt oder .has-error hat*/
.yform .honeypot_box div.form-group:focus-within,
.yform .honeypot_box div.form-group.has-error { display: block; width: auto; height: auto; margin: 0 0 20px 0; padding: 15px 20px 5px 20px; overflow: visible; opacity: 1; background-color: #f8f8f8; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 0 5px rgba(0,0,0,0.1); }
.yform .honeypot_box div.form-group.has-error { border-color: #a94442; }


/* Datenschutz Hinweis */
.yform .privacy_box { clear: both; position: relative; margin-bottom: 25px; padding: 5px 0; }
.yform .privacy_box a { color: #58698d; text-decoration: underline; font-weight: 500; }
.yform .privacy_box a:hover { color: #001f40; }
.yform .privacy_box a:focus, .yform .privacy_box a:focus-visible { outline: 2px solid #0078d7; outline-offset: 2px; }
/* Fehlerzustand für die Checkbox */
.yform .privacy_box.has-error label { color: #a94442; }
.yform .privacy_box.has-error .form-helper { border-color: #a94442; box-shadow: 0 0 0 1px rgba(169, 68, 66, 0.25); }
.yform .privacy_box.has-error { background-color: rgba(169, 68, 66, 0.05); padding: 10px; border-radius: 4px; }

/* hier ohne .yForm !!! */
.hinweis_email_erfolgreich_versendet { display: block; margin: 20px 0; padding: 20px; background-color: #5bb585; color: #fff; font-size: 1.5rem; text-align: center; }

/* ALTCHA-Widget (bw_altcha_captcha). Kommt als <altcha-widget> ins Formular. */
.yform altcha-widget { display: block; margin: 0 0 20px 0; }

/* Formular mit 2 Spalten: 48% + 4% column-gap (am form) + 48% = 100% */
.yform .form_left, .yform .form_right { flex-basis: 48%; min-width: 250px; margin: 0 0 20px 0; }
.yform .form_clear { flex-basis: 100%; }

@media all and (max-width:768px) {
.yform .form_left, .yform .form_right { flex-basis: 100%; }
}

/* Upload-Felder als Drop-Zone (Markup: yForm 5 value.upload.tpl.php). Natives
   <input type="file"> liegt unsichtbar über der ganzen Box - Klick und
   Drag-and-drop funktionieren dadurch ohne JS. styles_js.inc ergänzt nur
   Komfort (Dateiname, Dragover-Optik, Entfernen-Button); .has_file/.is_dragover
   kommen von dort. */
.yform .upload_felder { flex-basis: 100%; margin: 0 0 20px 0; }

/* Optionale Überschrift über den Upload-Boxen (im Formular-Code als html-Feld) */
.yform .upload_felder .upload_titel { display: block; margin: 0 0 10px 0; font-weight: 600; font-size: 1.1rem; color: #333; }

/* Box */
.yform .upload_felder .form-group { position: relative; display: block; margin: 0 0 15px 0; padding: 20px 56px 20px 64px; min-height: 72px; border: 2px dashed #b9c2cc; border-radius: 6px; background-color: #f7f9fb; transition: border-color 0.2s, background-color 0.2s; }
.yform .upload_felder .form-group:hover,
.yform .upload_felder .form-group.is_dragover { border-color: #37434f; background-color: #eef3f8; }
.yform .upload_felder .form-group:focus-within { outline: 2px solid #0078d7; outline-offset: 2px; }
.yform .upload_felder .form-group.is_dragover { border-style: solid; }

/* Upload-Icon (Pfeil nach oben), Farbe im Projekt-CSS über fill anpassen */
.yform .upload_felder .form-group::before { content: ""; position: absolute; top: 50%; left: 22px; width: 24px; height: 24px; transform: translateY(-50%); background-repeat: no-repeat; background-size: contain; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 19V6'/><path d='M6 12l6-6 6 6'/><path d='M5 21h14'/></svg>"); pointer-events: none; }

/* Label = sichtbarer Text der Box; Hinweis in Klammern über .upload_hint */
.yform .upload_felder .control-label { display: block; margin: 0; font-weight: 600; color: #333; cursor: pointer; }
.yform .upload_felder .upload_hint { display: block; margin: 4px 0 0 0; font-weight: 400; font-size: 0.85rem; color: #666; }

/* Natives Input unsichtbar über die ganze Box legen (klick- und drop-fähig) */
.yform .upload_felder .input-group { display: block; position: static; }
.yform .upload_felder .input-group input[type="file"] { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; z-index: 1; }

/* Ausgewählte Datei (wird vom JS gefüllt) */
.yform .upload_felder .upload_filename { display: none; margin: 6px 0 0 0; font-size: 0.85rem; color: #333; word-break: break-all; }
.yform .upload_felder .form-group.has_file .upload_filename { display: block; }

/* Entfernen-Button (×) aus dem yForm-Template: nur mit Datei sichtbar, über dem Input */
.yform .upload_felder .input-group-btn { display: none; position: absolute; top: 10px; right: 10px; z-index: 2; }
.yform .upload_felder .form-group.has_file .input-group-btn { display: block; }
.yform .upload_felder .input-group-btn .btn-default { width: 32px; height: 32px; margin: 0; padding: 0; border: 1px solid #b9c2cc; border-radius: 50%; background-color: #fff; color: #333; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.yform .upload_felder .input-group-btn .btn-default:hover { background-color: #a94442; border-color: #a94442; color: #fff; }
.yform .upload_felder .input-group-btn .btn-default:focus-visible { outline: 2px solid #0078d7; outline-offset: 2px; }

/* Hinweis-/Fehlertext unter dem Label (liegt unter dem transparenten Input, ist nur lesbar) */
.yform .upload_felder .help-block { position: relative; margin: 6px 0 0 0; font-size: 0.85rem; color: #666; }
.yform .upload_felder .help-block .text-warning { color: #a94442; }

/* Fehlerzustand */
.yform .upload_felder .form-group.has-error { border-color: #a94442; background-color: #FBF6F6; }
.yform .upload_felder .form-group.has-error .control-label { color: #a94442; }

/* Bereits hochgeladene Datei (nach fehlgeschlagener Validierung): yForm zeigt eine
   Checkbox "Häkchen setzen um die Datei zu entfernen" - normale Checkbox-Optik */
.yform .upload_felder .checkbox { margin: -5px 0 15px 0; }

@media (forced-colors: active) {
.yform .upload_felder .form-group { border-color: CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
.yform .form-control,
.yform .btn-primary,
.yform .upload_felder .form-group { transition: none; }
}


/* extras_021_artikel_kategorie_vor_zurueck.css */
.extras_021_artikel_kategorie_vor_zurueck { display: grid; grid-template-columns: 20% 1fr 20%; grid-template-areas: "back home next"; align-items: center; }
.extras_021_artikel_kategorie_vor_zurueck a { display: inline-block; padding: 5px 10px; text-decoration: none; color: #FFF; background-color: #000; white-space: nowrap; font-size: 0.8rem; }
.extras_021_artikel_kategorie_vor_zurueck a:hover { text-decoration: none; color: #FFF; background-color: #999; }
.extras_021_artikel_kategorie_vor_zurueck a:focus, .extras_021_artikel_kategorie_vor_zurueck a:focus-visible { outline: 2px solid #0078d7; outline-offset: 2px; }
.extras_021_artikel_kategorie_vor_zurueck .article_nav_back { grid-area: back; }
.extras_021_artikel_kategorie_vor_zurueck .article_nav_next { grid-area: next; text-align: right; }
.extras_021_artikel_kategorie_vor_zurueck .article_nav_home { grid-area: home; text-align: center; }


/* extras_030_suche_formular.css */
.extras_030_suche_formular { padding: 20px 30px; background-color: #333; color: #fff; }

.extras_030_suche_formular .search_it_form { display: block; width: 100%; height: auto; margin: 0; padding: 0; }
.extras_030_suche_formular .search_it_form fieldset { margin: 0; padding: 0; }

.extras_030_suche_formular .search_it_flex { display: flex; flex-flow: row wrap; justify-content: center; align-items: center; }

.extras_030_suche_formular .search_it_form input.search_it_text { display: block; width: 180px; height: auto; margin: 0 10px; padding: 5px 10px; color: #000; font-size: 15px; line-height: 25px; background-color: #fff; outline: none; border: 1px solid #666; transition: border-color 0.3s; }
.extras_030_suche_formular .search_it_form input.search_it_text:focus { border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); }

.extras_030_suche_formular .search_it_form .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.extras_030_suche_formular .search_it_form input.hidden { display: none; }

.extras_030_suche_formular .search_it_form .search_it_button { display: block; width: 25px; height: 25px; margin: 0; padding: 0; z-index: 10; border: 1px solid transparent; color: #fff;
background-color: transparent;
/* background-image: url('/assets/addons/bw_modulhelper/icon_suchlupe_weiss.png'); */
/* oder inline mit %23fff für weiss oder %23000 fuer schwarz, (das %23 ist das # Zeichen) */
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45.4 45.4"><path fill="%23fff" d="M27.9.3C19,.3,11.7,7.5,11.7,16.4s1.4,7.5,3.7,10.3l-13.2,13.2c-1,1-1,2.7,0,3.7l.9.9c1,1,2.7,1,3.7,0l13.2-13.2c.2-.2.3-.3.4-.5,2.2,1.2,4.8,1.9,7.5,1.9,8.9,0,16.1-7.2,16.1-16.1S36.8.3,27.9.3ZM27.9,29.5c-7.2,0-13.1-5.9-13.1-13.1S20.6,3.3,27.9,3.3s13.1,5.9,13.1,13.1-5.9,13.1-13.1,13.1Z"/></svg>');
background-repeat: no-repeat; background-position: center center; background-size: contain;
cursor: pointer; text-indent: -9999px; overflow: hidden; transition: opacity 0.3s, border-color 0.3s; }
.extras_030_suche_formular .search_it_form .search_it_button:hover { opacity: 0.5; }
.extras_030_suche_formular .search_it_form .search_it_button:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); }

@media (prefers-reduced-motion: reduce) {
.extras_030_suche_formular .search_it_form input.search_it_text,
.extras_030_suche_formular .search_it_form .search_it_button { transition: none; }
}


/* extras_031_suche_ergebnis.css */
.search_highlighter { background-color: #F0F0f0; color: #000; }

.extras_031_suche_ergebnis { display: flex; flex-wrap: wrap; gap: 5%; }
.extras_031_suche_ergebnis_inhaltsseiten { width: 63%; }
.extras_031_suche_ergebnis_dateien { width: 32%; }

.extras_031_suche_ergebnis .download_box { display: flex; align-items: center; }
.extras_031_suche_ergebnis .download_icon { flex: 0 0 auto; margin-right: 15px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.extras_031_suche_ergebnis .download_text { flex: 1; display: flex; flex-direction: column; }

@media all and (max-width: 480px) {
.extras_031_suche_ergebnis { flex-direction: column; gap: 20px; }
.extras_031_suche_ergebnis_inhaltsseiten,
.extras_031_suche_ergebnis_dateien { width: auto; }
}

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


/* header_001_einfaches_bild.css */
/* Default ("automatisch" + feste vh-Werte, NICHT "normal" s.u.): Text
   bestimmt per min-height die Hoehe (waechst bei Bedarf), Bild deckt per
   object-fit:cover ab. align-items/justify-content (Text-Position, Standard
   zentriert) in moduleYYYYMMDD.css frei ueberschreibbar. */
.header_image_simple { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; min-height: 400px; margin: 0; padding: 0; z-index: 1; overflow: hidden; }
.header_image_simple img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.header_image_simple_text { position: relative; z-index: 1; display: block; width: auto; height: auto; margin: 0; padding: 20px; color: #fff; font-size: 3rem; text-align: center; }
/* TinyMCEs <p>-margin-bottom kollabiert wegen des paddings nicht nach aussen
   und verschiebt die zentrierte Box optisch nach oben - deshalb nur beim
   letzten Absatz kappen. */
.header_image_simple_text > *:last-child { margin-bottom: 0; }

/* Feste Hoehen ueberschreiben nur die Basis-min-height von oben - Bild/Text-Mechanik
   bleibt sonst wie im Default-Fall (Automatisch). */
.header_image_simple.height_25vh { min-height: 25vh; }
.header_image_simple.height_33vh { min-height: 33vh; }
.header_image_simple.height_50vh { min-height: 50vh; }
.header_image_simple.height_66vh { min-height: 66vh; }
.header_image_simple.height_75vh { min-height: 75vh; }
.header_image_simple.height_100vh { min-height: 100vh; }

/* "normal" (Bestandsverhalten vor der Automatisch/vh-Umstellung): Bild in
   Original-Proportion ohne Zuschnitt, Text liegt position:absolute drueber
   (kann bei langem Text ueberdecken - sonst "Automatisch" waehlen). */
.header_image_simple.normal { display: block; min-height: 0; overflow: visible; }
.header_image_simple.normal img { position: static; width: 100%; height: auto; object-fit: unset; inset: auto; }
.header_image_simple.normal .header_image_simple_text { position: absolute; top: 30px; left: 30px; width: auto; padding: 0; }

#arrow_slide_down_to_content { position: absolute; display: flex; align-items: center; justify-content: center; top: auto; bottom: 20px; left: 50%; width: 40px; height: 40px; margin: 0 0 0 -20px; padding: 0; z-index: 10; background-color: rgba(0, 0, 0, 0.1); border: none; animation: arrow_slide_down_to_content_jump 2s infinite; cursor: pointer; font-size: 24px; color: #fff; }
#arrow_slide_down_to_content span { transform: rotate(90deg) translateY(-1px); }
#arrow_slide_down_to_content:hover,
#arrow_slide_down_to_content:focus { background-color: rgba(0, 0, 0, 0.5); }
#arrow_slide_down_to_content:focus, #arrow_slide_down_to_content:focus-visible { outline: 2px solid #0078d7; outline-offset: 2px; }

@keyframes arrow_slide_down_to_content_jump {
25% { transform: translate(0, 0) scale(1); }
50% { transform: translate(0, -10px) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
#arrow_slide_down_to_content { animation: none; }
}

/* module20261103.css */
/* =============================================================================
   Poolmodule und Fremd-Addons
   ============================================================================= */


/* --- yForm (extras_010_formular_yform) ------------------------------------
   Label und Eingabefeld nebeneinander, auf schmalen Breiten untereinander. */
.yform .form-group { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.yform label { display: block; flex-shrink: 0; min-width: 100px; margin: 0; padding-top: 8px; font-size: 0.8rem; }
/* margin 0, weil der Abstand vom .form-group kommt */
.yform .form-control { flex: 1; margin: 0; }
.yform textarea.form-control { height: 316px; }
/* ALTCHA hat kein Label - Einrueckung = Label-Breite (100px) + gap (15px), damit es unter den Eingabefeldern steht */
.yform .altcha { margin-left: 115px; }

.yform .btn-primary { background-color: var(--color-link); color: #fff; }
.yform .btn-primary:hover,
.yform .btn-primary:focus-visible { background-color: var(--color-black); color: #fff; }

/* Fokus in Projektfarbe statt Blau aus dem Skelett */
.yform .checkbox input:focus, .yform .checkbox input:focus-visible,
.yform .radio input:focus, .yform .radio input:focus-visible,
.yform a:focus, .yform a:focus-visible,
.yform .privacy_box a:focus, .yform .privacy_box a:focus-visible,
.yform .upload_felder .form-group:focus-within,
.yform .upload_felder .input-group-btn .btn-default:focus-visible { outline-color: var(--color-focus); }
.yform .form-control:focus, .yform .form-control:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus) 25%, transparent); }
.yform .btn-primary:focus, .yform .btn-primary:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus) 50%, transparent); }

@media all and (max-width: 980px) and (min-width: 769px), all and (max-width: 480px) {
    .yform .form-group { display: block; }
    .yform label { min-width: auto; margin-bottom: 6px; padding-top: 0; }
    .yform .altcha { margin-left: 0; }
}


/* --- header_001_einfaches_bild ----------------------------------------------
   Text unten im Bild auf 1600px-Breite. Ab 768px Bild in Original-Proportion,
   Text liegt darueber, ab 480px darunter. */
.header_image_simple { align-items: flex-end; }
.header_image_simple_text { width: 100%; max-width: 1600px; margin-bottom: 100px; padding: 0 30px; font-size: 2rem; }
.header_image_simple_text a.link_as_button { font-size: 1rem; }
/* Fokusring auf dem Bild weiss, gruen waere auf dunklen Bildstellen nicht sichtbar */
.header_image_simple_text a:focus-visible { outline-color: #fff; }
#arrow_slide_down_to_content:focus, #arrow_slide_down_to_content:focus-visible { outline-color: #fff; }

@media all and (max-width: 980px) {
    .header_image_simple_text { font-size: 1.5rem; }
}

@media all and (max-width: 768px) {
    .header_image_simple,
    .header_image_simple.height_25vh,
    .header_image_simple.height_33vh,
    .header_image_simple.height_50vh,
    .header_image_simple.height_66vh,
    .header_image_simple.height_75vh,
    .header_image_simple.height_100vh { display: block; min-height: 0; }
    .header_image_simple img { display: block; position: static; height: auto; object-fit: unset; inset: auto; }

    #arrow_slide_down_to_content { display: none; }

    .header_image_simple_text { position: absolute; bottom: 0; left: 0; margin-bottom: 0; padding: 5px 15px; font-size: 1.25rem; }
    .header_image_simple_text p { margin: 0 0 10px 0; }
}

@media all and (max-width: 480px) {
    .header_image_simple_text { position: relative; bottom: auto; padding: 15px 15px 5px 15px; font-size: 1.125rem; color: #fff; background-color: var(--color-link); }
    /* !important gegen Inline-Farben aus dem TinyMCE */
    .header_image_simple_text p, .header_image_simple_text span, .header_image_simple_text strong { color: #fff !important; }
}


/* --- 030_faq_accordion -----------------------------------------------------
   Voller Selektor aus styles_css.inc, sonst greift die Regel nicht. */
.m030_faq_accordion .faq_accordions .faq_accordion.open .faq_toggle { background: var(--color-link); color: #fff; }
.m030_faq_accordion .faq_accordions .faq_accordion.open .faq_toggle:hover,
.m030_faq_accordion .faq_accordions .faq_accordion.open .faq_toggle:focus-visible { background: var(--color-link-dark); color: #fff; }
.m030_faq_accordion .faq_accordions .faq_answer_content { border-top: none; }
/* Fokusring liegt innen (outline-offset -3px aus dem Skelett) - bei offener Frage auf Gruen, dort weiss */
.m030_faq_accordion .faq_accordions .faq_toggle:focus-visible { outline-color: var(--color-focus); }
.m030_faq_accordion .faq_accordions .faq_accordion.open .faq_toggle:focus-visible { outline-color: #fff; }


/* --- extras_021_artikel_kategorie_vor_zurueck -----------------------------
   Buttons in Projektfarben statt Schwarz/Grau aus dem Skelett */
.extras_021_artikel_kategorie_vor_zurueck a { padding: 8px 20px; border-radius: 12px; background-color: var(--color-button); color: #fff; font-size: 1rem; font-weight: 600; transition: background-color 0.3s ease; }
.extras_021_artikel_kategorie_vor_zurueck a:hover,
.extras_021_artikel_kategorie_vor_zurueck a:focus-visible { background-color: var(--color-button-hover); color: #fff; }
.extras_021_artikel_kategorie_vor_zurueck a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* Schmal: Spalten nach Inhalt, damit die nowrap-Buttons nicht aus 20% herausragen */
@media all and (max-width: 480px) {
    .extras_021_artikel_kategorie_vor_zurueck { grid-template-columns: auto 1fr auto; column-gap: 10px; }
    .extras_021_artikel_kategorie_vor_zurueck a { padding: 6px 12px; font-size: 0.9rem; }
}

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


/* --- extras_031_suche_ergebnis --------------------------------------------- */
.search_highlighter { display: inline !important; background-color: var(--color-highlight-bg); color: var(--color-highlight); }


/* --- Scroll-to-Top-Button (AddOn: scroll_to_top_button.css) ---------------
   Farben ueber die Variablen des AddOns auf das Grün der Website */
:root {
    --mh-scroll-top-bg: var(--color-button);
    --mh-scroll-top-bg-hover: var(--color-button-hover);
}
#scroll_to_top { bottom: 40px; }
#scroll_to_top:focus-visible { outline-color: var(--color-focus); }


/* --- Skiplinks (AddOn: skiplinks.css) - Grün der Website statt Grau/Blau ---- */
.skiplinks a { background-color: var(--color-button); }
.skiplinks a:hover,
.skiplinks a:focus { background-color: var(--color-button-hover); }


/* =============================================================================
   Eigene Module
   ============================================================================= */


/* --- Ansprechpartner ------------------------------------------------------- */
.ansprechpartner { display: block; position: relative; width: auto; height: auto; margin: 0; padding: 0; background-color: var(--color-bg); }
.ansprechpartner_text { display: block; width: auto; height: auto; margin: 0; padding: 10px; }
.ansprechpartner_image { display: block; width: auto; height: auto; margin: 0; padding: 0; }

.section_bg_none .ansprechpartner { background-color: var(--color-bg-alt); }

.flex_container,
.flex_ansprechpartner { display: flex; flex-wrap: wrap; flex-direction: row; justify-content: flex-start; width: 100%; margin: 0; }

.flex_ansprechpartner .ansprechpartner { height: 100%; }

@media all and (max-width: 1200px) {
    .flex_ansprechpartner .outer_box { width: 29.63%; }
}

@media all and (max-width: 768px) {
    .flex_container { display: block; }
    .flex_ansprechpartner .outer_box { width: 45.83%; margin: 0 0 2.78% 20px; }
}

@media all and (max-width: 480px) {
    .flex_ansprechpartner { display: block; }
    .flex_ansprechpartner .outer_box { width: auto; margin: 0 10px 20px 10px; }
}


/* =============================================================================
   500er-Module
   ============================================================================= */


/* --- m500_linkbox: Linkbox (Bild oben, Text unten) ------------------------ */
.m500_linkbox .m500_linkbox_container { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-bottom: 20px; }

.m500_linkbox .m500_linkbox_box { flex: 1 1 300px; display: flex; flex-direction: column; padding: 0 0 40px 0; background: var(--color-bg); border-radius: 12px; box-shadow: 0 8px 25px rgba(42, 122, 68, 0.15); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.m500_linkbox .m500_linkbox_spalten_1 .m500_linkbox_box { flex: 0 0 400px; max-width: 400px; }
.m500_linkbox .m500_linkbox_spalten_2 .m500_linkbox_box { flex: 0 0 calc(50% - 15px); }
.m500_linkbox .m500_linkbox_spalten_3 .m500_linkbox_box { flex: 0 0 calc(33.333% - 20px); }
.m500_linkbox .m500_linkbox_spalten_4 .m500_linkbox_box { flex: 0 0 calc(25% - 22.5px); }

.m500_linkbox .m500_linkbox_box:hover,
.m500_linkbox .m500_linkbox_box:focus-within { box-shadow: 0 12px 35px rgba(42, 122, 68, 0.35); transform: translateY(-8px); }

.m500_linkbox .m500_linkbox_bild { margin-bottom: 20px; }
.m500_linkbox .m500_linkbox_bild img { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 12px 12px 0 0; }

.m500_linkbox .m500_linkbox_titel { margin: 0 25px 15px 25px; font-size: 1.5rem; font-weight: 700; text-align: center; }
.m500_linkbox .m500_linkbox_text { flex-grow: 1; margin: 0 25px 25px 25px; font-size: 1.1rem; line-height: 1.5; text-align: center; }
.m500_linkbox .m500_linkbox_link { padding: 0 25px; text-align: center; }
.m500_linkbox .m500_linkbox_link a.link_as_button { margin: 0; }

@media all and (max-width:980px) {
	.m500_linkbox .m500_linkbox_spalten_3 .m500_linkbox_box,
	.m500_linkbox .m500_linkbox_spalten_4 .m500_linkbox_box { flex: 0 0 calc(50% - 15px); }

	.m500_linkbox .m500_linkbox_titel,
	.m500_linkbox .m500_linkbox_text { margin-left: 20px; margin-right: 20px; }
}

@media all and (max-width:640px) {
	.m500_linkbox .m500_linkbox_container { display: block; }
	.m500_linkbox .m500_linkbox_box { margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.m500_linkbox .m500_linkbox_box { transition: none; }
	.m500_linkbox .m500_linkbox_box:hover,
	.m500_linkbox .m500_linkbox_box:focus-within { transform: none; }
}


/* --- m501_cta_bild: Call to Action, Text + Bild mit Button ------------------ */
.m501_cta_bild .m501_cta_bild_section { display: flex; flex-wrap: wrap; max-width: 900px; margin: 0 auto 20px auto; overflow: hidden;
  background: var(--color-cta-bg); border-radius: 15px; box-shadow: 0 10px 30px rgba(34, 49, 120, 0.1); }
.m501_cta_bild .m501_cta_bild_section.text_right_image_left { flex-direction: row-reverse; }

.m501_cta_bild .m501_cta_bild_text { display: flex; flex-direction: column; justify-content: center; flex: 1 1 300px; padding: 40px 30px 20px 30px;
  color: #fff; background: linear-gradient(135deg, var(--color-button), var(--color-green-bright)); }
.m501_cta_bild .m501_cta_bild_titel { margin: 0 0 20px 0; font-size: 2rem; font-weight: bold; color: #fff; }
.m501_cta_bild .m501_cta_bild_text p { font-size: 1.1rem; color: #fff; }

/* Bild als echtes <img> (Alt-Text) statt background-image, deckt per object-fit die Flaeche ab */
.m501_cta_bild .m501_cta_bild_bild { display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; flex: 1 1 300px; padding: 40px 30px;
  text-align: center; border-top-right-radius: 15px; border-bottom-right-radius: 15px; overflow: hidden; }
.m501_cta_bild .m501_cta_bild_bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.m501_cta_bild .m501_cta_bild_overlay { position: absolute; inset: 0; z-index: 1; background-color: rgba(0, 0, 0, 0.4); }
.m501_cta_bild .m501_cta_bild_bild a { display: block; position: relative; width: fit-content; z-index: 10; }
/* Button liegt auf dem abgedunkelten Bild - Fokusring weiss */
.m501_cta_bild .m501_cta_bild_bild a:focus-visible { outline-color: #fff; }

@media all and (max-width: 768px) {
    .m501_cta_bild .m501_cta_bild_section { flex-direction: column; }
    .m501_cta_bild .m501_cta_bild_text,
    .m501_cta_bild .m501_cta_bild_bild { flex: 1 1 100%; padding: 30px 20px; text-align: center; }
    .m501_cta_bild .m501_cta_bild_bild { min-height: 320px; border-top-right-radius: 0; border-bottom-right-radius: 15px; }
    .m501_cta_bild .m501_cta_bild_titel { font-size: 1.6rem; }
}


/* --- m502_profil: Profil, Bild + Text --------------------------------------- */
.m502_profil .m502_profil_box { display: flex; width: 100%; margin: 0 0 40px 0; overflow: hidden; border-radius: 15px; box-shadow: 0 14px 40px rgba(34, 49, 120, 0.12); }
/* Bild als echtes <img> (Alt-Text) statt background-image, deckt per object-fit die Flaeche ab */
.m502_profil .m502_profil_bild { position: relative; flex: 0 0 33.33%; min-height: 400px; }
.m502_profil .m502_profil_bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m502_profil .m502_profil_text { display: flex; flex-direction: column; justify-content: center; flex: 1 1 66.67%; padding: 40px 30px; background: var(--color-bg); color: var(--color-profile-text); }
.m502_profil .m502_profil_titel { font-size: 1.125rem; }
.m502_profil .m502_profil_cta_bar { align-self: center; margin: 20px 0 0 0; padding: 25px 25px 5px 25px; border-radius: 8px;
  background-color: var(--color-button); color: #fff; font-size: 1.125rem; font-weight: 600; text-align: center; box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.25); }

@media all and (max-width: 980px) {
    .m502_profil .m502_profil_box { flex-direction: column; }
    .m502_profil .m502_profil_bild { flex: none; width: 100%; min-height: 0; height: 300px; }
    .m502_profil .m502_profil_text { flex: none; width: 100%; padding: 30px 20px; }
}


