/* 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%; }


/* main20260923.css */
/* Grundschule am Schloßplatz — Projekt-CSS, Basis vorlage_main.css
   1) Typografie  2) Section  3) outer_box  4) Seitengerüst  5) Navigation
   6) Projektspezifisches */


/* --- Projektfarben -------------------------------------------------------- */
:root {
    --color-main:         #151515;
    --color-link:         #006633;
    --color-link-hover:   #00ad57;
    --color-headline:     #006633;
    --color-subheadline:  #006633;

    --color-bg:           #ffffff;
    --color-bg-alt:       #deff7c;
    --color-border:       #5f4744;
    --color-focus:        #0000ff;

    --color-green:        #00ad57;
    --color-green-dark:   #589069;
    --color-green-dark-rgb: 88, 144, 105;
    --color-orange:       #cc6600;
    --color-brown:        #5f4744;
    --color-grey-dark:    #333333;
    --color-grey:         #999999;
    --color-nav-hover:    #ca9961;
    --color-footer-hover: #909bb7;

    /* Stiftfarben je Hauptkategorie (Artikel-ID) in Navigation und Sidebar */
    --color-cat-1:        #eb5b9c;
    --color-cat-2:        #ec7603;
    --color-cat-3:        #8a82bd;
    --color-cat-4:        #1fa958;
    --color-cat-7:        #f4e72e;
    --color-cat-38:       #254a98;

    /* Farbleiste über dem Footer */
    --color-bar-1:        #9d5884;
    --color-bar-2:        #482c67;
    --color-bar-3:        #d12135;
    --color-bar-4:        #e26c3c;
    --color-bar-5:        #efde36;
    --color-bar-6:        #8db751;
    --color-bar-7:        #009059;
    --color-bar-8:        #009ee8;
    --color-bar-9:        #254a98;
    --color-bar-10:       #7e6a6b;

    /* Tabellen, Ferienkalender, Linkboxen (module20260923.css) */
    --color-table-cell:   #f9f9f9;
    --color-table-pause:  #e6e6e6;
    --color-table-light:  #f0f0f0;
    --color-cal-light:    #eeeeee;
    --color-cal-empty:    #dddddd;
    --color-cal-day:      #eedc8a;
    --color-cal-today:    #d36500;
    --color-cal-holiday:  #009900;
    --color-cal-active:   #006600;
    --color-link-box:     #ea7a38;

    /* Menü-Button (Block aus main_nav_2_ebene.css) */
    --mh-nav-button-bar:        #000000;
    --mh-nav-button-bar-active: #000000;
    --mh-nav-focus-outline:     var(--color-focus);
}


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

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

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

a { color: var(--color-link); text-decoration: underline; }
a:hover { color: var(--color-link-hover); }
/* MH:FIX 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; }
/* MH:/FIX */

/* MH:FIX Link als Button */
a.link_as_button { display: inline-block; margin: 0; padding: 0.5rem 1.25rem; border-radius: 4px;
  background-color: var(--color-link); color: #fff; text-decoration: none; }
a.link_as_button:hover { background-color: var(--color-link-hover); color: #fff; }
/* Kontrast des generischen Fokusrings (var(--color-focus)) gegen diesen Button-
   Hintergrund (var(--color-link)) liegt nur bei ~1,6:1 (WCAG SC 1.4.11 verlangt
   3:1) - gleiches Muster wie beim Footer weiter unten, deshalb hier ebenfalls
   auf Weiss umgestellt. */
a.link_as_button:focus-visible { outline-color: #fff; }
/* MH:/FIX */

h1, h2, h3, h4, h5, h6,
.like_h1, .like_h2, .like_h3, .like_h4, .like_h5, .like_h6
{ margin: 0 0 1.25rem 0; font-weight: 500; font-style: normal; line-height: 1.25; color: var(--color-headline); }

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

h1 br, .like_h1 br,
h2 br, .like_h2 br { display: none; }

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

/* MH:FIX 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; }
/* MH:/FIX */

/* MH:FIX 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; }
/* MH:/FIX */

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

ul { margin: 0 0 1.25rem 0; padding: 0; }
ul li { list-style-type: disc; list-style-position: outside; margin: 0 0 0.625rem 0.9375rem; padding: 0; }

table { margin: 0 0 1.25rem 0; padding: 0; }
th, td { padding: 0.3125rem 0.9375rem 0.3125rem 0; vertical-align: top; text-align: left; }

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

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

/* MH:FIX 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; }
/* MH:/FIX */


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

.section_bg_none,
.section_bg_white,
.section_bg_green
{ clear: both; display: block; position: relative; width: 100%; margin: 0; z-index: 1; }

.section_bg_none  { background-color: transparent; }
.section_bg_white { background-color: var(--color-bg); }
.section_bg_green { background-color: var(--color-green); }

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

.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; }
}

/* MH:FIX 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; }
/* MH:/FIX */

/* MH:FIX 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; }
/* MH:/FIX */


/* =============================================================================
   3) outer_box
   ============================================================================= */

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

.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_bg_white { background-color: var(--color-bg); padding: 20px 20px 1px 20px; }
.box_bg_green { background-color: var(--color-green); padding: 20px 20px 1px 20px; }

/* MH:FIX 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; }
/* MH:/FIX */

/* MH:FIX 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; }
/* MH:/FIX */

@media all and (max-width: 480px) {
    .outer_box { width: auto; margin: 0 10px 20px 10px; }
    .box_width_full { width: 100%; margin: 0 0 20px 0; }

    .text_bild .flLeft,
    .text_bild .flRight { float: none; width: auto; max-width: none; margin: 0 0 15px 0; }

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


/* =============================================================================
   4) Seitengerüst
   Kopf und Inhalt als zweispaltiges Grid: links Logo bzw. Sidebar,
   rechts Navigation bzw. Inhalt.
   ============================================================================= */

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

#main_nav_bg { z-index: 1000; overflow: hidden; }

/* Schräge Farbkanten oben und unten am Kopf */
#main_nav_bg::before,
#main_nav_bg::after { content: ''; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 20px; margin: 0; padding: 0; z-index: 200;
  background-color: var(--color-green); transform: skew(0deg, -0.5deg); transform-origin: top left; }
#main_nav_bg::after { top: auto; bottom: 0; background-color: var(--color-orange); transform-origin: bottom right; }

#main_nav_content,
#content_grid { display: grid; grid-template-columns: clamp(240px, 22.5vw, 360px) auto; grid-template-rows: 1fr; gap: 0; }

#logo,
#sidebar_nav_bg { grid-area: 1 / 1 / 2 / 2; }
#main_nav,
#content_column { grid-area: 1 / 2 / 2 / 3; }

#logo { display: block; justify-self: center; align-self: center; width: 100%; max-width: 260px; padding: 30px 10px; text-decoration: none; }
#logo img { display: block; width: 100%; height: auto; }
#logo:hover img,
#logo:focus-visible img { opacity: 0.75; }

/* main füllt die Spalte, dadurch sitzen Adresse und Breadcrumb auch bei wenig Inhalt unten */
#content_column { display: flex; flex-direction: column; background-color: var(--color-bg-alt); }
#content_bg { flex: 1 1 auto; }

#content { min-height: 50vh; overflow: hidden; }

#sidebar_nav_bg { display: flex; flex-direction: column; justify-content: space-between; width: 100%; margin: 0; padding: 0; background-color: var(--color-green); }
#sidebar_nav { display: block; position: relative; width: 100%; margin: 0; padding: 40px 10px 20px 20px; z-index: 100; text-align: left; }

#sidebar_nav ul { list-style: none; display: block; margin: 0; padding: 0; }
#sidebar_nav li { list-style-type: none; display: block; position: relative; margin: 0 0 20px 0; padding: 0; }
#sidebar_nav li a { display: block; margin: 0 0 10px 0; padding: 5px 10px 5px 42px; font-size: 1rem; line-height: 1.25; color: #000; font-weight: bold; text-decoration: none; transition: color 0.25s ease-in; }
#sidebar_nav li a:hover,
#sidebar_nav li a:focus-visible,
#sidebar_nav li a.rex-current,
#sidebar_nav li a.rex-active { color: #fff; }
/* --color-focus hat auf dem Grün zu wenig Kontrast (WCAG 1.4.11) */
#sidebar_nav li a:focus-visible { outline-color: #000; }

#sidebar_nav li a::before { content: ''; display: block; position: absolute; top: 8px; left: -10px; width: 50px; height: 28px; margin: 0; padding: 0; z-index: 1;
  background-image: url("stift_sidebar.png"); background-position: center; background-repeat: no-repeat; background-size: cover; background-color: transparent; }

.sidebar_1 #sidebar_nav li a::before  { background-color: var(--color-cat-1); }
.sidebar_2 #sidebar_nav li a::before  { background-color: var(--color-cat-2); }
.sidebar_3 #sidebar_nav li a::before  { background-color: var(--color-cat-3); }
.sidebar_4 #sidebar_nav li a::before  { background-color: var(--color-cat-4); }
.sidebar_7 #sidebar_nav li a::before  { background-color: var(--color-cat-7); }
.sidebar_38 #sidebar_nav li a::before { background-color: var(--color-cat-38); }

#sidebar_nav ul.rex-navi2 { display: none; }

#sidebar_image { display: block; width: 100%; margin: 0; }
#sidebar_image img { display: block; width: 100%; height: auto; }

#adresse_auf_bogen { display: block; width: 100%; margin: 0; padding: 80px 2.5% 10px 2.5%; color: #fff; text-align: right;
  background-image: url("bg_adresse_auf_bogen.png"); background-position: bottom right; background-repeat: no-repeat; background-size: cover; }
#adresse_auf_bogen a { color: #fff; text-decoration: none; }
#adresse_auf_bogen a:hover,
#adresse_auf_bogen a:focus-visible { color: var(--color-bg-alt); }
#adresse_auf_bogen a:focus-visible { outline-color: #fff; }

#footer_bg { clear: both; padding: 0; background-color: var(--color-link); }
#footer_bg::before { content: ''; display: block; width: 100%; height: 20px; border-bottom: 2px solid #fff;
  background-image: linear-gradient(to right,
    var(--color-bar-1) 0 10%, var(--color-bar-2) 10% 20%, var(--color-bar-3) 20% 30%, var(--color-bar-4) 30% 40%, var(--color-bar-5) 40% 50%,
    var(--color-bar-6) 50% 60%, var(--color-bar-7) 60% 70%, var(--color-bar-8) 70% 80%, var(--color-bar-9) 80% 90%, var(--color-bar-10) 90% 100%); }

#footer { display: flex; flex-flow: row wrap; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 20px 2.5% 10px 2.5%;
  color: #fff; font-size: 0.9rem; text-align: center; }
#footer a { display: inline-block; margin: 0 10px 10px 10px; color: #fff; text-decoration: none; }
#footer a:hover,
#footer a:focus-visible { color: var(--color-footer-hover); }
/* Footer ist dunkel, deshalb heller Fokusring (WCAG 1.4.11) */
#footer a:focus-visible { outline-color: #fff; }

@media all and (max-width: 980px) {
    #main_nav_content,
    #content_grid { display: block; }

    #content_grid { padding-top: 195px; }
    #content { scroll-margin-top: 195px; }

    #main_nav_bg { position: fixed; top: 0; left: 0; background-color: var(--color-bg); }
    #main_nav_bg::after { position: relative; }

    #logo { max-width: 170px; padding: 30px 10px 10px 10px; }

    #sidebar_nav_bg,
    #skiplink_sidebar_nav { display: none; }
}


/* =============================================================================
   5) Navigation
   Basis main_nav_2_ebene.css. Desktop nur Ebene 1 (Ebene 2 per
   main_nav_deactivate_level_2_for_desktop im Template abgeschaltet), mobil
   Ebene 1 und 2. Die Zeilenumbrüche der Menüpunkte setzt das Template per
   str_replace, mobil werden <br> und .dektop_minus ausgeblendet.
   ============================================================================= */

/* --- Menue-Button --- */
#main_nav_button { display: none; position: fixed; top: 10px; right: 20px; width: 32px; height: auto; margin: 0 0 0 -16px; padding: 0; z-index: 1002; border: none; background-color: transparent; transition: all 200ms ease-in-out; cursor: pointer; }
#main_nav_button:before,
#main_nav_button:after { content: ''; display: block; height: 3px; background-color: var(--mh-nav-button-bar); transition: all 200ms ease-in-out; }
#main_nav_button:before { margin-bottom: 15px; box-shadow: 0 9px 0 var(--mh-nav-button-bar); }
/* Hover + Focus: nur skalieren, Farbe bleibt gleich */
#main_nav_button:hover,
#main_nav_button:focus-visible { transform: scale(1.1); }
/* Geoeffnet: X-Form + eigene Farbe */
#main_nav_button.active:before,
#main_nav_button.active:after { background-color: var(--mh-nav-button-bar-active); }
#main_nav_button.active:before { box-shadow: none; transform: translateY(9px) rotate(45deg); }
#main_nav_button.active:after  { transform: translateY(-9px) rotate(-45deg); }
/* Geoeffnet + Hover/Focus: nur skalieren */
#main_nav_button.active:hover,
#main_nav_button.active:focus-visible { transform: scale(1.1); }
/* Fokusring fuer Tastaturnavigation */
#main_nav_button:focus-visible { outline: 2px solid var(--mh-nav-focus-outline); outline-offset: 3px; }

#main_nav { margin: 0; padding: 25px 10px 0 10px; z-index: 100; overflow: hidden; }

#main_nav ul { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, auto); column-gap: 5px; row-gap: 0; margin: 0; padding: 0; }
#main_nav li { list-style-type: none; display: block; position: relative; width: auto; margin: 0 auto; padding: 0; }

#main_nav .rex-navi1 > li.rex-article-1  { grid-area: 1 / 1 / 3 / 2; --pen-color: var(--color-cat-1);  --pen-transform: rotate(18deg) translateX(-12px); }
#main_nav .rex-navi1 > li.rex-article-2  { grid-area: 2 / 2 / 4 / 3; --pen-color: var(--color-cat-2);  --pen-transform: rotate(-18deg) translateX(12px); }
#main_nav .rex-navi1 > li.rex-article-4  { grid-area: 1 / 3 / 3 / 4; --pen-color: var(--color-cat-4);  --pen-transform: rotate(-9deg) translateX(6px); }
#main_nav .rex-navi1 > li.rex-article-3  { grid-area: 2 / 4 / 4 / 5; --pen-color: var(--color-cat-3);  --pen-transform: rotate(9deg) translateX(-6px); }
#main_nav .rex-navi1 > li.rex-article-7  { grid-area: 1 / 5 / 3 / 6; --pen-color: var(--color-cat-7);  --pen-transform: rotate(-18deg) translateX(12px); }
#main_nav .rex-navi1 > li.rex-article-38 { grid-area: 2 / 6 / 4 / 7; --pen-color: var(--color-cat-38); --pen-transform: rotate(18deg) translateX(-12px); }

#main_nav li a { display: block; position: relative; width: 100%; min-width: 100px; margin: 0; padding: 10px 4px 118px 4px;
  font-size: 1.375rem; line-height: 1.25; font-weight: bold; color: #000; text-decoration: none; transition: color 0.25s ease-in; }

#main_nav .rex-navi1 > li > a:hover,
#main_nav .rex-navi1 > li > a:focus-visible,
#main_nav .rex-navi1 > li > a.rex-current,
#main_nav .rex-navi1 > li > a.rex-active { color: var(--pen-color, var(--color-nav-hover)); }

/* Stift unter dem Menüpunkt: PNG-Kontur über der Kategoriefarbe, Farbfläche 2px eingerückt */
#main_nav .rex-navi1 > li > a::before { content: ''; display: block; position: absolute; left: 50%; bottom: 1px; width: 40px; height: 112px; margin: 0 0 0 -20px; padding: 2px; z-index: 1;
  transform: var(--pen-transform, none);
  background-image: url("stift_main_nav.png"), linear-gradient(var(--pen-color, transparent), var(--pen-color, transparent));
  background-position: center; background-repeat: no-repeat; background-size: cover, auto;
  background-origin: border-box, content-box; background-clip: border-box, content-box; }

#main_nav ul.rex-navi2,
#main_nav ul.rex-navi3,
#main_nav ul.rex-navi4 { display: none; }

@media all and (max-width: 1600px) {
    #main_nav li a { font-size: 1.325rem; white-space: nowrap; }
}

@media all and (max-width: 1400px) {
    #main_nav li a { font-size: 1.25rem; }
}

@media all and (max-width: 1200px) {
    #main_nav li a { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
    #main_nav li a,
    #sidebar_nav li a { transition: none; }
}

@media all and (max-width: 980px) {
    #main_nav_button { display: block; }
    #main_nav_button { top: 40px; }

    #main_nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 80px 10px 10px 10px; z-index: 300;
      overflow-y: auto; overflow-x: hidden; background-color: var(--color-bg); }
    #main_nav_bg.active #main_nav { display: block; }

    #main_nav ul { display: block; }
    #main_nav li { display: block; width: auto; margin: 0; }

    #main_nav li a br,
    #main_nav li a span.dektop_minus { display: none; }

    #main_nav li a { min-width: 0; margin: 0 0 5px 0; padding: 10px 50px 10px 70px; font-size: 1.375rem; white-space: normal; }

    #main_nav .rex-navi1 > li > a::before { top: 0; left: 0; bottom: auto; width: 60px; height: 34px; margin: 0; padding: 0; transform: none;
      background-image: url("stift_main_nav_mobile.png"), linear-gradient(var(--pen-color, transparent), var(--pen-color, transparent));
      background-origin: border-box, border-box; background-clip: border-box, border-box; }

    /* Auf-/Zu-Schalter an Punkten mit Unterpunkten */
    #main_nav .rex-navi1 > li > a.has-children-a::after { content: ''; display: block; position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; margin: 0; padding: 0; z-index: 10;
      border-radius: 6px; background-color: #fff; background-image: url("mobile_menue_arrow_down.png"); background-position: center center; background-repeat: no-repeat; }
    #main_nav .rex-navi1 > li > a.has-children-a[aria-expanded="true"]::after,
    #main_nav .rex-navi1 > li.rex-current > a.has-children-a::after { background-image: url("mobile_menue_arrow_up.png"); }

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

    #main_nav ul.rex-navi2 { position: relative; margin: 0; }
    #main_nav ul.rex-navi2 li a { margin: 0 0 2px 0; padding: 8px 5px 8px 70px; font-size: 0.9rem; line-height: 1.5; color: #000; }
    #main_nav ul.rex-navi2 li a:hover,
    #main_nav ul.rex-navi2 li a:focus-visible,
    #main_nav ul.rex-navi2 li a.rex-current,
    #main_nav ul.rex-navi2 li a.rex-active { color: var(--color-grey-dark); }
}


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

/* Verlinkte Bilder: Fokus liegt um das Bild, nicht nur um die Zeilenhöhe */
a:has(img) { display: inline-block; overflow: hidden; transition: all 0.25s ease-in; }
a:has(img):hover,
a:has(img):focus-visible { opacity: 0.9; transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
    a:has(img) { transition: none; }
    a:has(img):hover,
    a:has(img):focus-visible { transform: none; }
}


/* 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; }

/* breadcrumb.css */
#breadcrumb_bg { clear: both; display: block; }
#breadcrumb { display: block; width: 100%; max-width: 1200px; padding: 10px 2.5%; margin: 0 auto; }
#breadcrumb ul, #breadcrumb li { list-style: none; list-style-type: none; background-image: none; }
#breadcrumb ul { display: block; margin: 0; padding: 0; }
#breadcrumb li { display: inline-block; margin: 0; padding: 0; color: #222; font-size: 0.8rem; }
#breadcrumb li::after { content: '>'; display: inline-block; margin: 0 5px 0 8px; padding: 0; }
#breadcrumb li:last-child::after { content: ''; display: none; }
#breadcrumb li a { display: inline-block; margin: 0; padding: 0; color: #444; text-decoration: none; }
#breadcrumb li a:hover,
#breadcrumb li a:focus {  color: #222; text-decoration: underline; }

/* 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; }
}


/* cookie_hinweis.css */
#cookie_hinweis { clear: both; display: block; width: 100%; height: auto; margin: 0; padding: 15px 10px; background-color: #333; font-size: 0.8rem; color: #fff; text-align: center; }
#cookie_hinweis a { color: #fff; text-decoration: underline; }
#cookie_hinweis a:hover,
#cookie_hinweis a:focus { color: #fff; text-decoration: none; }

/* 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; }
}

/* 021_bildergalerie_masonry.css */
.m021_bildergalerie_masonry .bildergalerie_masonry { column-count: 3; column-gap: 20px; }

.m021_bildergalerie_masonry .bildergalerie_masonry a { display: inline-block; width: 100%; margin: 0 0 20px 0; padding: 0; box-shadow: 0 0 2px 0 #333; }

@media screen and (max-width:768px){
.m021_bildergalerie_masonry .bildergalerie_masonry { column-count: 2; }
}
@media screen and (max-width:480px){
.m021_bildergalerie_masonry .bildergalerie_masonry { column-count: 1; column-gap: 0; }
}


/* 040_html_tabellen.css */
.m040_html_tabellen .table-scroll { display: block; width: 100%; overflow-x: auto; margin: 0 0 1.25rem 0; }
.m040_html_tabellen .table-scroll table { width: 100%; min-width: 480px; border-collapse: collapse; }


/* 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; }


/* module20260923.css */
/* Grundschule am Schloßplatz — Feinanpassung der Module, Basis vorlage_module.css.
   Lädt als letzte Datei. Reihenfolge: Template-CSS-Overrides, Fremd-Addons,
   Poolmodule, eigene Module. */


/* =============================================================================
   Template-CSS-Overrides (breadcrumb.css, accessibility_toggle_box.css)
   ============================================================================= */

#breadcrumb_bg { margin: 0 0 10px 0; }
#breadcrumb li { color: var(--color-grey-dark); line-height: 1.5; }
#breadcrumb li a { color: var(--color-link); }
#breadcrumb li a:hover,
#breadcrumb li a:focus-visible { color: var(--color-link-hover); text-decoration: none; }
#breadcrumb li a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

#accessibility_toggle_box { display: inline-block; margin: 0 10px 10px 10px; text-align: center; }


/* =============================================================================
   Fremd-Addon-Overrides
   ============================================================================= */

/* --- yForm (extras_010_formular_yform) ------------------------------------ */
.yform textarea.form-control { height: 286px; }
.yform .form_left, .yform .form_right { min-width: 200px; }

.yform .btn-primary { background-color: var(--color-green-dark); color: #fff; }
.yform .btn-primary:hover { background-color: var(--color-brown); color: #fff; }
.yform .btn-primary:focus,
.yform .btn-primary:focus-visible { box-shadow: 0 0 0 3px var(--color-focus); background-color: var(--color-brown); }


/* =============================================================================
   Poolmodule
   ============================================================================= */

/* --- 040_html_tabellen: Projekt-Klasse .unterrichtszeiten ----------------- */
.unterrichtszeiten table { width: 100%; margin: 0 0 20px 0; border-collapse: collapse; }
.unterrichtszeiten th,
.unterrichtszeiten td { padding: 10px; border: 1px solid var(--color-grey); background-color: var(--color-table-cell); text-align: center; }
.unterrichtszeiten th { background-color: var(--color-link); color: #fff; font-weight: bold; }
.unterrichtszeiten .pause { background-color: var(--color-table-pause); font-weight: bold; }
.unterrichtszeiten .mittagessen { background-color: var(--color-table-light); }


/* --- extras_021_artikel_kategorie_vor_zurueck ----------------------------- */
.extras_021_artikel_kategorie_vor_zurueck { padding: 40px 0 20px 0; }
.extras_021_artikel_kategorie_vor_zurueck .article_nav_back { justify-self: start; }
.extras_021_artikel_kategorie_vor_zurueck .article_nav_home { justify-self: center; }
.extras_021_artikel_kategorie_vor_zurueck .article_nav_next { justify-self: end; }
.extras_021_artikel_kategorie_vor_zurueck a { display: block; width: 90px; padding: 5px 0; border-radius: 5px; color: #fff; background-color: var(--color-green-dark); text-align: center; }
.extras_021_artikel_kategorie_vor_zurueck a:hover { color: #fff; background-color: var(--color-grey-dark); }
.extras_021_artikel_kategorie_vor_zurueck a:focus,
.extras_021_artikel_kategorie_vor_zurueck a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }


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

/* --- Ferienkalender ------------------------------------------------------- */
.kalender_jahr_flexbox { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; row-gap: 0; justify-content: start; align-items: stretch; width: 95%; margin: 0 2.5%; padding: 0; }
/* Sieben Spalten Mo-So, jede Woche eine Zeile */
.kalender_monat_flexbox { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; margin: 0; padding: 0; }

.kalender_link_box { clear: both; display: block; text-align: center; }
.kalender_link { display: inline-block; margin: 0 20px; }

.kalender .kalender_headline { display: block; margin: 0 0 10px 0; padding: 0; text-align: center; font-size: 1.25rem; line-height: 1.1; color: var(--color-main); font-weight: 700; }
.kalender .kalender_headline .kalender_last_month { position: absolute; top: 0; left: 15px; }
.kalender .kalender_headline .kalender_next_month { position: absolute; top: 0; right: 15px; }
.kalender .kalender_headline .kalender_last_month a,
.kalender .kalender_headline .kalender_next_month a { text-shadow: none; }

.month_box { display: flex; flex-direction: column; width: auto; min-width: 0; }
.monat { display: block; flex: 1 1 auto; margin: 0 0 20px 0; padding: 8px 7px 7px 8px; border: 2px solid var(--color-cal-light); background-color: #fff; }
.monat_headline { padding: 0 0 0 8px; font-size: 1.2rem; line-height: 1.25; }

.monat .th,
.monat .td_empty,
.monat .td_tag { display: flex; align-items: center; justify-content: center; width: auto; height: 36px; margin: 0; padding: 3px;
  color: var(--color-main); font-size: 0.9rem; line-height: 1; text-align: center; }
.monat .td_empty { color: var(--color-cal-empty); }
.monat .td_tag { background-color: var(--color-cal-day); }
.monat .td_tag.heute { background-color: var(--color-cal-today); font-weight: 700; font-size: 1.25rem; }
.monat .td_tag.wochenende { background-color: var(--color-table-light); }

.monat .td_tag.ferien { position: relative; background-color: var(--color-cal-holiday); }
.monat .td_tag.ferien span { display: none; position: absolute; top: -10px; left: -50px; margin: 0; padding: 5px; z-index: 2; background-color: #fff; cursor: pointer; }
.monat .td_tag.ferien:hover span,
.monat .td_tag.ferien:focus-visible span { display: block; }
.monat .td_tag.ferien:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.month_active .monat { border: 2px solid var(--color-cal-active); background-color: var(--color-cal-light); }
.month_old .monat { opacity: 0.33; }

@media all and (max-width: 1200px) {
    .kalender_jahr_flexbox { grid-template-columns: repeat(2, 1fr); }
}

@media all and (max-width: 640px) {
    .kalender_jahr_flexbox { grid-template-columns: 1fr; }
}


/* --- Unser Team ----------------------------------------------------------- */
.unser_team_flexbox { clear: both; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; width: 100%; margin: 0 0 20px 0; padding: 0; }

.unser_team_box { display: block; position: relative; width: 30%; margin: 0 0 20px 2.5%; padding: 0; z-index: 1;
  border: 1px solid var(--color-brown); background-color: var(--color-green-dark); }

.unser_team_image { display: block; position: relative; width: 100%; height: 100%; margin: 0; padding: 0; z-index: 1; }
.unser_team_image img { width: 100%; max-width: none; }

.unser_team_box a { display: block; position: relative; width: 100%; height: 100%; margin: 0; padding: 0; z-index: 1; text-decoration: none; transition: all 0.25s ease-in; }

.unser_team_text { display: block; position: relative; width: 100%; margin: 0; padding: 5px; z-index: 1; text-align: center; background-color: var(--color-green-dark); transition: all 0.25s ease-in; }

.unser_team_box a:hover,
.unser_team_box a:focus-visible { box-shadow: 0 0 10px 0 var(--color-grey-dark); }
.unser_team_box a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.unser_team_box a:hover img,
.unser_team_box a:focus-visible img { opacity: 0.75; }

.unser_team_box h3 { margin: 0 0 5px 0; color: #fff; }
.unser_team_box p { margin: 0; color: #fff; }

.unser_team_anzahl_bilder { display: block; position: absolute; top: 0; right: 0; width: 40px; height: 40px; margin: 0; padding: 8px 10px 0 0; z-index: 1;
  text-align: right; color: #fff; font-size: 0.9rem; line-height: 1; border-radius: 0 0 0 40px; background-color: rgba(var(--color-green-dark-rgb), 0.75); }

/* Weitere Bilder nur in der GLightbox, nicht als eigene Links anzeigen */
.unser_team_box a.only_glightbox { display: none; }

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

@media all and (max-width: 480px) {
    .unser_team_flexbox { display: block; }
    .unser_team_box { width: 95%; }
}


/* --- Lehrkräfte Detailseite ----------------------------------------------- */
.lehrkraefte_detailseite_flexbox { clear: both; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; width: 100%; margin: 0 0 20px 0; padding: 0; }
.lehrkraefte_detailseite_box { display: block; position: relative; width: 30%; margin: 0 0 20px 2.5%; padding: 0; z-index: 1; }

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

@media all and (max-width: 480px) {
    .lehrkraefte_detailseite_flexbox { display: block; }
    .lehrkraefte_detailseite_box { width: 95%; }
}


/* --- Linkboxen ------------------------------------------------------------ */
.link_box_flexbox { clear: both; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; width: 100%; margin: 0 0 20px 0; padding: 0; }

.link_box { display: block; position: relative; width: 46.25%; margin: 0 0 20px 2.5%; padding: 20px 15px 1px 15px; z-index: 1;
  border-radius: 15px; background-color: var(--color-link-box); text-decoration: none; transition: all 0.25s ease-in; }
.link_box:hover,
.link_box:focus-visible { background-color: var(--color-brown); box-shadow: 0 0 10px 0 var(--color-grey-dark); }
.link_box:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

h3.link_box_title { margin: 0 0 5px 0; color: #fff; }
.link_box_text p { color: #fff; }

@media all and (max-width: 768px) {
    .link_box_flexbox { display: block; }
    .link_box { width: 95%; }
}


