/* ===============================
   Allgemeine Grundeinstellungen
   =============================== */
html {
  font-size: 100%; 
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  padding-bottom: 3rem;
  color: #000;
}

:root {
  --cassiopeia-font-family-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

::selection,
::-moz-selection {
  background: #fff;
  color: #a6a7a7;
}

/* ===============================
   Überschriften
   =============================== */
h1 { font-size: 2rem; line-height:1.5; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.2rem; letter-spacing: 0.09375rem; }
h6 { font-size: 1.1rem; }

h1, h2, h3 {
  font-weight: 500;
}

.new-h2 {
background: none repeat scroll 0% 0% #9556B0; border: 0px solid #9556B0 !important;
}

.hyph {
  hyphens: auto;
}

/* ===============================
   Skip-Link (Barrierefreiheit)
   =============================== */
.skip-link {
  position: absolute;
  top: -2.5rem;
  left: 0;
  background: #ffcc00;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.3s;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 0.1875rem solid #002b45;
  outline-offset: 0.125rem;
}

/* ===============================
   Fokus-Stile (barrierefrei)
   =============================== */
a:focus,
button:focus {
  outline: 0.1875rem solid #9ACD32 !important;
  outline-offset: 0.125rem;
}

  
/* ===============================
   Link-Stile
   =============================== */
a:link,
a:visited {
  color: #133800; /* Green */
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #68164f; /* Darkpurple */
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 240, 100, 0.5);

}

a:active {
  color: #0CAAA5; /* Türkis */
  text-decoration: none;
}


/* ===============================
   Bildstile
   =============================== */
.img-fluid {
  width: 100%;
  height: auto;
}
.img-fluid-height {
  width: auto;
  height: 100%;
  overflow: hidden;
}
.img-icon {
  width: 5.625rem;
  height: auto;
}
.img-maps {
  width: 5.625rem;
  height: auto;
}

/* ===============================
   Utility-Klassen
   =============================== */
.no-gutters {
  padding: 0 !important;
}
.float-left { float: left; }
.float-right { float: right; }
.clearfix { clear: both; }
.m-2 {
  margin: 0 !important;
  padding: 1rem !important;
}

/* ===============================
   Buttons
   =============================== */
.btn-primary {
  background: #f4f1ee;
  color: #68164f;
  font-size: 1rem;
  padding: 0.5rem 1rem;
}
/* ===============================
   Barrierefreiheit
   =============================== */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* ===============================
   Logos
   =============================== */
#logo { width: 10rem; height: auto; }
#logo-sm { width: 9.8rem; height: auto; }

/* ===============================
   Farben
   =============================== */
   
.bg-color-1  		{ background: #9556B0; }	/* basepurple */		/* von JU */
.bg-color-2  		{ background: #cb99c9; }	/* lightpurple */
.bg-color-3 		{ background: #e8d2e7; }	/* lightestpurple */	/* von JU */
.bg-color-4  		{ background: #68164f; }	/* darkpurple */
.bg-color-5  		{ background: #9ACD32; }	/* green */
.bg-color-6  		{ background: #133800; }	/* darkgreen */			/* von JU */
.bg-color-7  		{ background: #f4f1ee; }	/* beige */
.bg-color-8  		{ background: #deeaf1; }	/* lightblue */
.bg-color-9  		{ background: #ddd8d3; }	/* darkbeige */
.bg-color-10  		{ background: #ffaa4d; }	/* orange */

   
/* ===============================
   Schriftfarbe
   =============================== */
   
.text-color-1  		{ color: #9556B0; }	/* basepurple */		/* von JU */
.text-color-2  		{ color: #cb99c9; }	/* lightpurple */
.text-color-3 		{ color: #e8d2e7; }	/* lightestpurple */	/* von JU */
.text-color-4  		{ color: #68164f; }	/* darkpurple */
.text-color-5  		{ color: #9ACD32; }	/* green */
.text-color-6  		{ color: #133800; }	/* darkgreen */			/* von JU */
.text-color-7  		{ color: #f4f1ee; }	/* beige */
.text-color-8  		{ color: #deeaf1; }	/* lightblue */
   

/* ===============================
   Streifen (systematisch)
   =============================== */
/*.ju-stripe-6			{ background-color: #9ACD32; height: 0.25rem; width: 100%; }*/
.ju-stripe-6		{ background-color: #9ACD32; height: 0.25rem; width: 100%; }
.ju-stripe-8	 	{ background-color: #deeaf1;height: 10px; }



/* ===============================
   Cards
   =============================== */
.card {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  overflow: hidden;
}
.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  min-height: 3.5rem;
}
.card-text {
  flex-grow: 1;
  min-height: 3.5rem;
}
.card.teaser-card {
  margin-bottom: 1rem;
}
.editor-only {
  display: none;
}
.rounded {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

/* ===============================
   Card Effect
   =============================== */
   
.hoverEffect-light {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hoverEffect-light:hover,
.hoverEffect-light:focus-within {
  background-color: #fefefe; /* oder leicht dunkler Ton von Beige */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.hoverEffect-dark {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hoverEffect-dark:hover,
.hoverEffect-dark:focus-within {
  background-color: #49213d; /* heller als ju-lightpurple */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}


.btn-outline-secondary {
  --bs-btn-color: #6c757d;
  --bs-btn-border-color: #6c757d;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #68164f;
  --bs-btn-hover-border-color: #6c757d;
  --bs-btn-focus-shadow-rgb: 108,117,125;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #6c757d;
  --bs-btn-active-border-color: #6c757d;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #6c757d;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #6c757d;
  --bs-gradient: none;
}


/* ===============================
   Navbar Controller
   =============================== */
#font-size-controls {
  gap: 0.3rem;
}
#font-size-controls button.font-btn {
  background-color: transparent;
  border: 0.0625rem solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  border-radius: 0.1875rem;
  transition: background-color 0.2s ease;
}
#font-size-controls button.font-btn:hover,
#font-size-controls button.font-btn:focus {
  background-color: #68164f;
  color: #fff;
  outline: none;
}

/* ===============================
   Pfeilliste + Zahlen negativ Kreis
   =============================== */

.pfeilliste {
  list-style: none;
  padding-left: 0; /* Kein zusätzliches Einrücken der Liste */
}

.pfeilliste li {
  position: relative;
  padding-left: 1.5em; /* Hier wird Platz für den Pfeil geschaffen */
  margin-bottom: 0.5em;
}

.pfeilliste li::before {
  content: "→"; 
  position: absolute;
  left: 0;
  top: 0;
  color: #68164f;
}
.nummer-kreis {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  background-color: #9556B0;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
}

.nummer-light {
  background-color: #f4f1ee;
  color: #9556B0;
}


/* ===============================
   Footer
   =============================== */
.foot {
  border-top: 0.625rem solid #e2edd0;
  background-color: #fff;
  height: 18.75rem;
  padding: 1rem 2rem;
}
a.footer-link {
  color: #333;
  font-weight: 500;
  text-decoration: none;
}
a.footer-link:hover {
  color: #A51F12;
}
a.footer-link:visited {
  color: #333;
}
.img-footer {
	max-width: 16rem !important;
	height: auto;
}
.footer-links div + div {
  margin-top: 0.5rem;
}


/* ===============================
   Style Header 
   =============================== */
   
.header-flex-container {
  display: flex;
  align-items: center; 
  gap: 1rem; 
  flex-wrap: wrap;
  gap: 0.1rem;
}

/* Header Hintergrund */
.header.container-header {
  background-color: #9556B0 !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Header als Flex-Container */
.header.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* auf kleinen Screens untereinander */
  gap: 1rem;
  padding: 0.5rem 0;
}

/* Logo-Block links */
.container-logo {
	flex: 0 0 auto;
	display: flex;
    border-radius: 1rem;
	align-self: flex-start;
}

/* Logo oben */
.header-flex {
  align-items: flex-start; 
}

/* Menü nach rechts drücken */
.container-nav {
  margin-left: auto;         
  display: flex;
  align-items: center;
}

.header-logo {
  flex: 0 0 auto;
}

.header-navbar {
  flex: 0 1 auto; /* Füllt dynamisch den freien Platz */
  min-width: 0;   /* verhindert Überbreite */
}

/*.header-search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header-fontresize {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.header-search input,
.header-search .mod-search__input {
  max-width: 100px;
  min-width: 60px;
  width: 100%;
}*/

/* Burger-Button Styling */
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* style Cards auf gleiche Höhe */

.card.h-100 {
  display: flex;
  flex-direction: column;
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card .list-group {
  margin-top: auto;
}

/* Nur für Karten mit der Klasse .equal-heights */
.equal-heights .card-body {
  min-height: 150px;
}

.equal-heights .card-footer {
  min-height: 60px;
}

.container-teaser-angebote {
    padding: 0;
}
.container-teaser-angebote .row .mod-custom {
  flex: 0 0 100%;   /* default: volle Breite */
  max-width: 100%;
}


/* ===============================
	Neue Positionen in index.php
   =============================== */

.container-top-b {
  margin-top: 0;  
  padding-top: 0;   
}



/* ===============================
	Footer
   =============================== */
   
.container-footer.footer {
  background-color: transparent !important; /* oder white */
  color: #000 !important;
}

.container-footer.footer a {
  color: #000 !important;
  
}

.container-footer.footer .moduletable {
  background: none !important;
  padding: 0 !important;
}


footer.container-footer.footer {
  margin-top: 0 !important;
  padding-top: 0rem; 
  background-image: none !important;
  background-color: #fff !important; 
  color: #000 !important;
}
footer.container-footer.footer a {
  color: #000 !important;
  text-decoration: none;
}
footer.container-footer.footer a:hover {
  color: #68164f !important;
}

footer .btn,
footer .button,
footer button,
main .btn,
main .button,
main button,
.container-component .btn,
.container-component .button,
.container-component button {
  background-color: #9556B0 !important;
  color: #fff !important;
  border: none;
}

footer .btn:hover,
footer .button:hover,
footer button:hover,
main .btn:hover,
main .button:hover,
main button:hover,
.container-component .btn:hover,
.container-component .button:hover,
.container-component button:hover {
  background-color: #68164f !important;
}

/* ===============================
   Basis-Navbar
   =============================== */

.navbar {
  background-color: #9556B0; /* basepurple */
  padding: 0 0.5rem;
}

/* Einheitliches Styling für alle Hauptmenüpunkte */
.navbar a,
.navbar .mod-menu__separator {
  padding: 0.5rem 1rem;
  display: block;
  color: #68164f; /* darkpurple */
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

/* Hover-Zustand für Hauptmenü */
.navbar a:hover,
.navbar .mod-menu__separator:hover {
  background-color: #68164f;
  color: #fff;
  text-decoration: none;
}

/* Fokus-Stil für Tastatur-Navigation */
.navbar .mod-menu__separator:focus {
  outline: 2px solid #fff;
  background-color: #68164f;
  color: #fff;
}

/* ===============================
   Dropdown-Pfeil im Hauptmenü
   =============================== */

.navbar .mod-menu__separator::after {
  content: "▼";
  vertical-align: middle;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  position: relative;
  top: 1px;
  color: inherit;
}

/* Weiße Schriftfarbe für Dropdown-Köpfe oben */
.navbar .mod-menu_dropdown-metismenu > li > .mod-menu__separator {
  color: #fff;
}

/* ===============================
   Dropdown-Menü (zweite Ebene)
   =============================== */

/* Container-Styling des Dropdowns */
.mod-menu_dropdown-metismenu {
  background-color: #9556B0;
  color: #fff;
  border: 0;
  border-radius: 0;
  margin: 0;
}

/* Struktur und Reset für Dropdown-Listenelemente */
.mod-menu_dropdown-metismenu .mm-collapse li {
  margin: 0;
  padding: 0;
}

/* Styling für Links & Buttons im Dropdown */
.mod-menu_dropdown-metismenu .mm-collapse a,
.mod-menu_dropdown-metismenu .mm-collapse .mod-menu__separator {
  color: #68164f;
  background-color: white;
  padding: 0.4rem 1rem;
  display: block;
  text-decoration: none;
  border: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

/* Hover-Stil im Dropdown */
.mod-menu_dropdown-metismenu .mm-collapse a:hover,
.mod-menu_dropdown-metismenu .mm-collapse .mod-menu__separator:hover {
  background-color: #68164f !important;
  color: #fff !important;
}


/* sm/md: navbar links */
.container-nav .mod-menu.mod-list,
.container-nav .metismenu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;    /* links */
  justify-content: flex-start;
  text-align: left;          
}

.container-nav .mod-menu.mod-list > li,
.container-nav .metismenu > li {
  margin: 0;
}

.container-nav .mod-menu.mod-list a,
.container-nav .metismenu a {
  display: block;
  width: 100%;                /* volle Breite klickbar auf sm/md */
  padding: .5rem 0;
  text-decoration: none;
  white-space: nowrap;
}


/* ===============================
   Feinjustierung Dropdown-Abstände
   =============================== */

/* Abstand zwischen Dropdown-Menüpunkten minimieren */
.metismenu.mod-menu .metismenu-item {
  padding: 0.2em 0.3em;
}

/* ===== MOBILE FIX: Logo links, Burger rechts, Menü vollbreit, Dropdowns NICHT abgeschnitten ===== */
@media (max-width: 991.98px) {
  /* Header-Zeile: Logo & Burger in einer Linie */
  .container-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
	
  }
  .container-header .container-logo { order: 0; }
  .container-header .container-nav  { order: 1; position: relative; }

  /* WICHTIG: Collapsed-Menü im Dokumentfluss, nicht absolut! */
  .container-header .container-nav .navbar-collapse {
    position: static !important;   /* verhindert Clipping */
    width: 100%;
    margin-top: .5rem;
    background: #7e3f98;           /* Headerfarbe */
    border-radius: 0 0 .5rem .5rem;
    /*box-shadow: 0 8px 24px rgba(0,0,0,.15);*/
    overflow: visible;              /* Dropdowns dürfen überlaufen */
  }

  /* Links linksbündig */
  .container-header .container-nav .navbar-nav {
    align-items: stretch;
    width: 100%;
  }
  .container-header .container-nav .nav-link {
    display: block;
    width: 100%;
    padding: .65rem 1rem;
    text-align: left;
  }

  /* DROPDOWNS: im Collapsed-State inline rendern (kein Offscreen, kein Abschneiden) */
  .container-header .container-nav .dropdown-menu {
    position: static !important;   /* statt absolute */
    float: none;
    display: none;
    width: 100%;
    margin: 0;
    padding: .25rem 0;
    border: 0;
    box-shadow: none;
    transform: none !important;
    text-align: left;
  }
  /* anzeigen, wenn geöffnet (BS4 & BS5) */
  .container-header .container-nav .dropdown.show > .dropdown-menu,
  .container-header .container-nav .nav-item.show > .dropdown-menu {
    display: block;
  }

  /* Optional: bei sehr langen Menüs scrollbar machen */
  .container-header .container-nav .navbar-collapse {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}


/* small devices (phones, 576px and up)------------------------------------------------------------- YELLOW */
@media (min-width: 576px) {
.container {
    max-width: 743px;
  }
}

/* Medium devices (tablet, 768px and up)------------------------------------------------------------- YELLOW */
@media (min-width: 768px) {
.container {
    max-width: 960px;
  }
  .equal-heights .card-body {
    min-height: 220px;
  }
.equal-heights .card-footer {
    min-height: 100px;
  }
.container-teaser-angebote .row .mod-custom {
    flex: 0 0 50%;   /* 2 Spalten ab md */
    max-width: 50%;
  }
  
}


/* Large devices (desktops, 992px and up)------------------------------------------------------------- YELLOW */
@media (min-width: 992px) {	
.container {
    max-width: 1165px;
}
.img-footer {
	max-width: 12.5rem !important;
	height: auto;
}
.header-flex {
    align-items: center;
  }

/* lg: navbar center */
.container-nav .mod-menu.mod-list,
.container-nav .metismenu {
    flex-direction: row;
    align-items: center;
    justify-content: center;  /* hier erst zentrieren */
    text-align: center;
}
.container-nav .mod-menu.mod-list a,
.container-nav .metismenu a {
    width: auto;
    padding: .25rem .7rem; 
}
  
}
/* Extra large devices (large desktops, 1200px and up)------------------------------------------------------ BROWN */
@media (min-width: 1200px) {
.container {
    max-width: 1335px;
}
.equal-heights .card-body {
min-height: 200px;
}
.equal-heights .card-footer {
min-height: 110px;
}

.container-teaser-angebote .row .mod-custom {
flex: 0 0 25%;   /* 4 Spalten ab md */
max-width: 25%;
}
}

/* Extra large devices (large desktops, 1920px and up)-------------------------------------------------------------*/
@media (min-width: 1920px) {
.container {
    max-width: 1600px;
}
/* Ultra large devices (large desktops, 1920px and up)-------------------------------------------------------------*/
@media (min-width: 2560px) {
.container {
    max-width: 1900px;
}
}


