/* ==========================================================================
   1. GRUNDLAYOUT & GLOBALE ABSTÄNDE
   ========================================================================== */

body {
  padding-top: 7rem;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #222;
  background-color: #f4f4f4;
}

body.layout-pagets__1colslider {
  padding-top: 76px;
  margin-top: 20px;
}

@media (min-width: 992px) {
  body {
    padding-top: 8rem;
  }
}

p {
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.4;
  text-align: left;
}

p.adresse {
  font-family: "Calibri", Arial, sans-serif;
  color: #fff;
  font-size: 16px;
  text-align: center;
}

li {
  font-family: "Raleway", Arial, sans-serif;
}

td {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 18px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #843b2a;
}

/*img {
  max-width: 100%;
  height: auto;
}*/


/* ==========================================================================
   2. REINE ÜBERSCHRIFTEN (BASIS & GRÖSSEN)
   ========================================================================== */


h2.mb-0 { padding: 0px; margin: 0; }
h3.leerelinie { padding-top: 10px; padding-bottom: 15px; }

h4.kardinal {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 19px;
  padding-top: 4px;
}

.kardinal { margin: 0; }



/* ==========================================================================
   3. NAVIGATION & HEADER (NAVBAR) - muss überprüft und abgegleichen Werden
   ========================================================================== */

/*.navbar {
  background-color: rgba(137, 201, 81, 1) !important;
  padding: 14px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar>.container, .navbar>.container-fluid {
  flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  -webkit-flex-wrap: nowrap;
  color: #000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-nav .nav-link {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #000 !important;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(0,0,0,0.08);
  border-radius: 6px;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .dropdown-item {
  color: #000 !important;
}

.dropdown-menu {
  border-radius: 8px;
  border: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  padding: 8px 0;
}

.dropdown-item {
  padding: 8px 16px;
  transition: background 0.2s ease;
}

.dropdown-item:focus, .dropdown-item:hover {
  background-color: #e6ecd7;
  color: #000;
}

#navbarNavDropdown li a.current {
  color: #000;
}

#navbarNavDropdown li a.active {
  font-style: normal;
  color: #000;
  border-bottom: 2px solid #843b2a;
}

.bg-dark,
.bg-dark .dropdown-menu {
  background-color: rgba(137, 201, 81, 1) !important;
  color: #000 !important;
}

ul.metaMenu {
  list-style-type: none;
  margin: 0;
  color: #000;
}

ul.metaMenu li {
  display: inline-block;
  color: #000;
}

ul.metaMenu a, ul.metaMenu a:visited {
  color: #000;
}

ul.metaMenu a:hover {
  color: #000;
}

header.slider {
  margin-bottom: 2rem;
}*/


/* ==========================================================================
   4. ROOTLINE (BREADCRUMB) & SPRACHMENÜ - ebenfalls überprüfen und abgleichen
   ========================================================================== */



ul.languageMenu {
  margin: 0;
  padding: 0;
  list-style-type: none;
  font-size: 90%;
}

ul.languageMenu li {
  display: inline-block;
  margin: 0 .5rem 0 0;
}

ul.languageMenu a, ul.languageMenu a:visited {
  color: #fff;
}

ul.languageMenu a:hover {
  color: rgba(255,255,255,.75);
}


/* ==========================================================================
   5. LINKS & BUTTONS
   ========================================================================== */


.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-top: 6px;
}

.more-link::before {
  content: "▶";
  font-size: 12px;
}

div.morelink a {
  font-family: "Raleway", Arial, sans-serif;
}

.btn1 { font-size: 12px; margin-top: 0px; }
.btn1-link { font-size: 12px; color: #000; text-decoration: none; }

button.btn.btn-primary {
  background: #424632;
}

span.resetbutt { float: left; margin-top: 20px; margin-right: 50px; }
span.submitbutt { float: left; margin-top: 20px; }


/* ==========================================================================
   6. BOOTSTRAP CARDS & MODERN CARDS - ebenfalls abgleichen
   ========================================================================== */

/*.card {
  background: #fff;
  border-style: solid;
  border-width: 2px;
  border-color: rgba(137, 201, 81, 1);
}

.card-header {
  padding: 0;
  margin: 0;
  background: #fff;
  border-style: solid;
  border-color: #fff;
  border-width: 4px;
}

.card-modern {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-modern img {
  border-radius: 6px;
}

.box, .card {
  border-radius: 6px;
}
*/

/* ==========================================================================
   7. FOOTER - ebenfalls ob doppelt
   ========================================================================== */

.footercontent {
  border: 3px solid #424631;
  background-color: #E0E0E0 !important;
  padding: 5px 0;
  margin-top: 0;
  color: #000 !important;
}

.footercontent p {
  color: #000 !important;
  padding: 0;
  margin: 0;
}

.footergeo {
  padding-bottom: 0.5rem;
  margin: 0;
  color: #000 !important;
  background-color: rgba(137, 201, 81, 1) !important;
}


/* ==========================================================================
   8. BILDER, FIGCAPTION & COPYRIGHT - ebenfalls ob übernehmen oder weg
   ========================================================================== */




/* ==========================================================================
   9. FLUID_STYLED_CONTENT (TYPO3 CORE-WRAPPERS & GRIDS) - ebenfalls
   ========================================================================== */

/*.frame, .frame-default, .frame-layout-0 {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.frame {
  margin-bottom: 10px !important;
  margin-top: 0 !important;
}

/*.container .row {
  margin-bottom: 10px !important;
}*/

.frame-padding {
  padding: 2rem;
  background: #eee;
}

.ce-intext [data-ce-columns="1"] { width: 100%; }

@media screen and (min-width: 768px){
  .ce-intext [data-ce-columns="1"] { width: 50%; }
}

@media screen and (min-width: 991px){
  .ce-intext [data-ce-columns="1"] { width: 33.3333%; }
}

/*.ce-center [data-ce-columns="3"] .ce-column,
.ce-right [data-ce-columns="3"] .ce-column,
.ce-left [data-ce-columns="3"] .ce-column { margin-right: 1%; width: 32.33333%; }

.ce-center [data-ce-columns="2"] .ce-column,
.ce-right [data-ce-columns="2"] .ce-column,
.ce-left [data-ce-columns="2"] .ce-column { margin-right: 1%; width: 49%; }

.ce-center [data-ce-columns="4"] .ce-column,
.ce-right [data-ce-columns="4"] .ce-column,
.ce-left [data-ce-columns="4"] .ce-column { margin-right: 1%; width: 24%; }

.ce-center [data-ce-columns="5"] .ce-column,
.ce-right [data-ce-columns="5"] .ce-column,
.ce-left [data-ce-columns="5"] .ce-column { margin-right: 1%; width: 19%; }

.ce-center [data-ce-columns="6"] .ce-column,
.ce-right [data-ce-columns="6"] .ce-column,
.ce-left [data-ce-columns="6"] .ce-column { margin-right: 1%; width: 15.666667%; }
*/

.ce-gallery figure.video { display: block; }

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  width: 100% !important;
  height: 100% !important;
}

/*.frame-layout-5 .ce-center .ce-inner { position: relative; float: none; right: -50%; }
.frame-layout-5 .ce-textpic, .frame-layout-5 .ce-image, .frame-layout-5 .ce-nowrap .ce-bodytext, .frame-layout-5 .ce-gallery, .frame-layout-5 .ce-row, .ce-uploads li, .frame-layout-5 .ce-uploads div { overflow: visible; }
.frame-layout-5 .ce-left .ce-gallery, .frame-layout-5 .ce-column { float: none; }
.frame-layout-5 .ce-gallery figure { display: block; margin: 0; }
.frame-layout-5 .ce-center .ce-outer { position: relative; float: none; right: 50%; }
*/

/* Spezifischer Inhaltselement-Fix (#c3) */
#c3 .ce-gallery,
#c3 .ce-outer,
#c3 .ce-inner,
#c3 .ce-row,
#c3 .ce-column,
#c3 figure {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

#c3 img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
}


/* ==========================================================================
   10. EXTENSIONS (NEWS / FELOGIN / KE_SEARCH / ACCORDION) - Frage ob noch gebraucht
   felogin gelöscht wird nicht gebraucht - Extension ?
   ========================================================================== */

/* News Extension */
h5.teaser-text a {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 19px;
  font-style: italic;
  font-weight: bold;
  color: #000;
  background-color: transparent;
}

h5.teaser-text {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
  margin: 0;
  padding: 3px;
  color: #000;
}

h6.news-text {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 17px;
  font-weight: normal;
  padding: 0;
  margin: 0;
  color: #000;
}

p.lead {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
}

li.list-group-item {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  position: relative;
  display: block;
  padding: 10px 15px; /* Padding hinzugefügt, da 0 den Inhalt quetscht */
  margin-bottom: -1px;
  background-color: #fff;
  border: 1px solid transparent; 
  border-bottom: 2px solid #843b2a; /* Korrigierte Kurzschreibweise */
}

span.news-list-date {
  color: #000;
  font-size: 15px;
}


/* ke_search (Indexierte Suche) */
.tx-kesearch-pi1 #kesearch_results .result-list-item .hit {
  color: #000 !important;
  font-weight: bold;
}

#kesearch_results .result-list-item .result-teaser {
  color: #707070;
}

/* JQuery UI Accordion */
.ui-accordion-header a { text-decoration: none; }

.ui-accordion .ui-accordion-header {
  display: block;
  cursor: pointer;
  position: relative;
  margin: 2px 0 0 0;
  padding: .5em .5em .5em .7em;
  font-size: 100%;
  background-color: #fff !important;
  text-decoration: none;
}

.ui-accordion .ui-accordion-content {
  border: 1px solid #843b2a;
  padding: 1em 2.2em;
  border-top: 0;
  color: #000;
  background-color: #fff !important;
  overflow: auto;
}

.ui-accordion .ui-accordion-header :active { border: 1px solid #843b2a; }
.ui-helper { background-color: #fff; }
.ui-icon { visibility: hidden !important; } 

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
  border: 1px solid #843b2a;
  background: #fff;
  font-weight: normal;
  color: #000;
}

.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited,
a.ui-button,
a:link.ui-button,
a:visited.ui-button,
.ui-button {
  color: #000;
  text-decoration: none;
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-button:hover,
.ui-button:focus {
  border: 1px solid #843b2a;
  background: #fff;
  font-weight: normal;
  color: #000;
}

.ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited,
.ui-state-focus a, .ui-state-focus a:hover, .ui-state-focus a:link, .ui-state-focus a:visited,
a.ui-button:hover, a.ui-button:focus {
  color: #000;
  text-decoration: none;
}

.ui-visual-focus { box-shadow: 0 0 3px 1px rgb(94, 158, 214); }

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
  border: 1px solid #843b2a;
  background: #ffffff;
  font-weight: normal;
  color: #000;
}

.ui-icon-background, .ui-state-active .ui-icon-background { border: #fff; background-color: #fff; }
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; }
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #843b2a; text-decoration: none; }
.ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited { color: #843b2a; text-decoration: none; }


/* ==========================================================================
   11. EIGENE KUSTOM-KOMPONENTEN (KGS CARDS & BOOTSTRAP OVERRIDES) KGS-Card ??
   ========================================================================== */

div.borderkgs { border: 0; padding: 0px; margin-bottom: 10px; }
div.headerkgs { background-color: #424632; color: #fff; text-align: center; padding: 0px; margin-bottom: 0px; }
div.infoheaderkgs { background-color: #843b2a; color: #fff; text-align: center; padding: 0px; }
div.kgscardimage { text-align: center; width: 100%; }
h3.infocard { font-size: 18px; margin-top: 0px; border-bottom: 0; }

div.textkgs {
  color: #000;
  margin-top: -12px;
  padding: 0 5px 0 0;
  font-size: 14px;
  font-family: "Calibri", Arial, sans-serif;
  text-align: right;
}

/* Bootstrap Hilfsklassen Überschreibungen */
.text-white { color: #fff !important; }
.text-kgsgreen { color: #000 !important; }




@media (max-width: 600px) {
    body {
        font-size: 16px; /* Oft ist eine etwas größere Grundschrift auf dem Handy lesbarer */
        line-height: 1.7;
    }
    h3.greenbackcenter {
        font-size: 1.2rem; /* Überschriften auf dem Handy etwas kleiner anpassen */
    }
}

/* Beispiel-Klasse für deine Navigation */
.nav-menu a {
    font-size: 0.9rem;      /* Etwas kleiner als Standard (statt z.B. 1rem) */
    font-weight: 600;       /* Hier etwas leichter als die 800er Überschriften */
    letter-spacing: 0.2px;  /* Minimal angepasst an die kleinere Schrift */
    text-decoration: none;
    /* Deine restlichen Styles wie padding, color etc. */
}

/* Wende dies auf deinen grünen Navigations-Container an */
/* Sprich die Bootstrap-Klasse direkt an */
.navbar {
    background-color: #8bc34a !important; /* !important erzwingt deine Farbe */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Wende diese Klasse auf deine Link-Elemente in den Boxen an */
.box-link {
    display: block;
    white-space: nowrap;      /* Text darf nicht umbrechen */
    overflow: hidden;         /* Alles, was übersteht, wird versteckt */
    text-overflow: ellipsis;  /* Fügt die ... hinzu */
    max-width: 100%;          /* Stellt sicher, dass er nicht über den Rand geht */
    padding: 10px;            /* Optional: Etwas Luft zum Rand */
}

/* Nur anwenden, wenn der Platz knapp wird (z. B. unter 1200px) */
@media (max-width: 1200px) {
    .box-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.box-link {
    /* WICHTIG: Damit die Kürzung funktioniert */
    display: inline-block; 
    max-width: 100%;       /* Oder ein fester Wert wie 200px */
    vertical-align: bottom;
    
    /* Kürzen */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header komplett entkernen */
.navbar {
  background-color: #ffffff; /* Weißer Hintergrund lässt die Seite atmen */
  border-bottom: 1px solid #ededed; /* Nur eine hauchdünne Linie zur Abgrenzung */
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Die Navigations-Links */
.navbar a {
  color: #333;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

/* Grün als "Auftritt" nur beim Hovern */
.navbar a:hover {
  color: #8cc63f; /* Dein schönes Schulfarben-Grün */
}

/* Das Dropdown: Jetzt dezent und schwebend */
.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #ededed;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05); /* Ein sanfter Schatten lässt es "schweben" */
  padding: 15px;
}

.dropdown-menu a {
  color: #555;
  padding: 8px 0;
  display: block;
}

.dropdown-menu a:hover {
  color: #8cc63f;
  background: none;
}

/* Für den "Schweb-Effekt" des Dropdowns */
.dropdown-menu {
  box-shadow: 0 8px 16px rgba(0,0,0,0.15); /* Zarter Schatten */
  border-radius: 0 0 4px 4px;              /* Abgerundete Ecken unten wirken weicher */
}

/* Footer-Container - Schrift anpassen */
.footer {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;      /* Etwas kleiner und dezenter */
  line-height: 1.8;       /* Mehr Luft zwischen den Zeilen */
  color: #444;            /* Ein angenehmes Dunkelgrau */
  padding: 20px;
  text-align: center;
}

/* Die untere grüne Leiste (Links) */
.footer-links {
  background-color: #8cc63f; /* Deine Schulfarbe */
  color: #fff;               /* Weißer Text für den Kontrast */
  padding: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Links im Footer schicker machen */
.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8; /* Dezentes Highlight beim Hover */
}

/* Bildunterschriften-Design */
/* Styling für Bildunterschriften, die aus dem CMS-Feld kommen */
figcaption, 
.image-caption {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 20px;
  display: block;
}