/* =========================================================
   BÜV NORD – FARBEN UND TYPOGRAFIE
========================================================= */

:root {
  --cassiopeia-color-primary: #54a505;
  --cassiopeia-color-hover: #009ee3;
  --cassiopeia-color-link: #009ee3;
}


/* =========================================================
   GRUNDSCHRIFT
========================================================= */

body {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #404043;
}


/* =========================================================
   ÜBERSCHRIFTEN
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", Arial, sans-serif;
  color: #55A505;
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.45rem;
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
}

h5 {
  font-size: 0.95rem;
  font-weight: 700;
}

h6 {
  font-size: 0.9rem;
  font-weight: 700;
}


/* =========================================================
   FLIESSTEXT UND LISTEN
========================================================= */

p,
li {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: #404043;
}


/* =========================================================
   LINKS
========================================================= */

a {
  color: var(--cassiopeia-color-link);
}

a:hover {
  color: var(--cassiopeia-color-hover);
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  background: #55A505;
  border: 1px solid #55A505;
  color: #fff;
}

.btn:hover,
.btn:focus {
  background: #478904;
  border-color: #478904;
  color: #fff;
}


/* =========================================================
   HEADER – CASSIOPEIA
========================================================= */

.container-header {
  background-image: none;
}


/* =========================================================
   SLIDER / BANNER
========================================================= */

#joomla5BannerSlider {
  max-width: 100%;
  margin: 0 auto;
}

#joomla5BannerSlider .carousel-item {
  height: 400px;
  background-color: #000;
}

#joomla5BannerSlider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* Slider auf Mobilgeräten */

@media (max-width: 768px) {
  #joomla5BannerSlider .carousel-item {
    height: 250px;
  }
}





/* =========================================================
   FOOTER
========================================================= */

.footer {
  color: #fff;
  background-color: #404043;
  background-image: none;
  margin-top: 1em;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer p,
.footer li,
.footer a {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer h2,
.footer h3,
.footer h4 {
  color: #55A505;
}


/* BÜV Nord – separate Copyright-Zeile */
#mod-custom103 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #54a505;
  color: #fff;
  padding: 5px 10px;
  background-image: none;
}

/* Links in der Copyright-Zeile */
#mod-custom103 a {
  color: #fff;
}

#mod-custom103 a:hover {
  color: #55A505;
}

/* Tabellenhintergrund transparent halten */
#mod-custom103 table {
  background: transparent;
}


/* =========================================================
   BÜV NORD – HEADER UND NAVIGATION
========================================================= */

/* Cassiopeia-Hintergrund entfernen */
.container-header {
  background-color: transparent !important;
  background-image: none !important;
}

/* Topbar und Navigation vorbereiten */
.container-header .container-topbar,
.container-header .container-nav {
  position: relative;
  isolation: isolate;
  background: transparent !important;
}

/* Hintergründe über die gesamte Bildschirmbreite */
.container-header .container-topbar::before,
.container-header .container-nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
}

/* Topbar bleibt grün */
.container-header .container-topbar::before {
  background-color: #54a505;
}

/* Hauptnavigation wird weiß */
.container-header .container-nav::before {
  background-color: #ffffff;
}

/* Menülinks auf weißem Hintergrund */
.container-nav a,
.container-nav .mod-menu a {
  color: #404043;
}

/* Hover und aktive Menüpunkte */
.container-nav a:hover,
.container-nav .current > a {
  color: #54a505;
}



/* Richtet die Footer-Module oben bündig aus */
footer .grid-child {
    align-items: flex-start !important;
}


/* ---------------------------------------------------
   ICON BARRIEREFREIHEIT 
--------------------------------------------------- */





i._access-icon._access {

    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
  

    background-image: url('/images/svg/barrierefrei.svg'); 
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    display: inline-block;
    width: 50px;
    height: 50px;

    transform: none !important;
}


/* ===============Container des neuen 
==========================Suchindex-Moduls im Footer */
footer .search-smart, 
footer .finder {
    width: 100% !important;
    max-width: 320px !important;
    display: block !important;
}

/* Formular-Ausrichtung auf Block umstellen */
footer .search-smart form,
footer .finder form {
    display: flex !important;
    flex-direction: column !important; /* Zwingt Feld und Button untereinander */
    align-items: flex-start !important;
}

/* Das Eingabefeld: Weiß, eckig, volle Breite, Abstand nach unten */
footer .search-smart input.search-query,
footer .finder input.mod-finder-searchword,
footer .search-smart .form-control {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #cccccc !important;
    border-radius: 0px !important; /* Eckig wie das alte AS-Template */
    padding: 10px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin-bottom: 12px !important; /* Abstand zum Button */
}

/* Der Suchen-Button: Komplett grün, vollflächig darunter, Text klein geschrieben */
footer .search-smart button.btn,
footer .finder button.button,
footer .search-smart .btn-primary {
    background-color: #61a900 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 0px !important;
    padding: 10px 20px !important;
    width: 100% !important; /* Volle Breite unter dem Feld */
    display: block !important;
    text-transform: lowercase !important; /* "suchen" klein schreiben */
    font-weight: normal !important;
}

/* Hover-Effekt für den Button */
footer .search-smart button.btn:hover,
footer .finder button.button:hover {
    background-color: #4a8200 !important;
}



/*=============================================== 
Container für die JEvents-Ansichten verkleinern
===============================================*/
#jeventselements, 
.jevbootstrap {
    font-size: 0.9rem !important; /* Macht die Basisschrift im Kalender kompakter */
}

/* Die Anzeige-Auswahl verkleinern */
.jevbootstrap label, 
.jevbootstrap select {
    font-size: 0.85rem !important;
    padding: 4px 8px !important;
}

/* Die Trefferanzeige (1-1 / 1 Einträge) rechts ausrichten und verkleinern */
.jevbootstrap .counter,
.jevbootstrap [class*="counter"] {
    font-size: 1.1rem !important;
    font-weight: bold;
}

/* Den Titel des Termins (z.B. Frischbet) hervorheben */
.jevbootstrap .jevrow a {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}


/* ============================================================
Fix für das Impressum-Modul auf der JEvents-Kalenderseite */
#debug,
.mod-custom,
footer + #debug,
[id*="debug"] {
    font-size: 0.9rem !important; /* Erzwingt die normale, kleine Schriftgröße */
    line-height: normal !important;
}

/* Gezieltes Zurücksetzen von Links in der Debug-Position */
#debug a,
.mod-custom a {
    font-size: 0.9rem !important;
    font-weight: normal !important;
    text-decoration: underline !important;
}







