/* --- KEEP / BASE STYLES --- */
.toggle,
[id^=drop] {
	display: none;
}

#navlogo{
	border: none;
}

#navlogo:hover{
	background: none !important;
}

.activeNavItem {
    border-bottom: 1px solid;
    padding-bottom: 5px;
    border-bottom-color: rgb(168, 1, 1) !important;
}

.navbar{
	padding: 0px !important;
}

/* Navbar selbst bleibt immer transparent */
nav {
	z-index: 10;
	height: 100px;
	background: transparent !important;
	box-shadow: none !important;
}

nav:after {
	content:"";
	display:table;
	clear:both;
}

nav ul {
	text-align: center;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
    justify-content: center;
    align-items: center;
}
	
nav ul li {
	display: flex ;	
    list-style: none;
    font-size: 1.1em;
	border-left: 1px solid;
    color: white; /*9e1d56*/
	width: 200px;
	justify-content: center;
}

/* Styling the links */
nav a {
	display:block;
	text-decoration:none !important;
    color: white; /*9e1d56*/
    font-size: 1.3em;
    font-weight: 350 !important;
}
.dropdownItem{
    border-bottom: 1px solid;
    border-bottom-color: #DFDFDF;
}

nav ul li ul  { 
	margin-left: -1px;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

nav ul li ul li:hover { 
	background: #9e1d56; 
}

nav ul li a  {
	padding: 5px 30px;
}

nav ul li:hover  {
	background: #9e1d56; 
}

nav ul li:hover p {
	color: white;
}
nav ul li:hover i {
	color: white; 
}

/* Background color change on Hover */
nav a:hover { 
	color: white; 
}

nav a:hover i { 
	color: white; 
}

/* --- Burger-Button sichtbar & abgesetzt --- */
.navbar-toggler{
	color: rgb(231, 231, 231);
	float: right;
	margin-right: 25px;

	/* Sichtbarer Hintergrund nur für den Button */
	background-color: rgba(0,0,0,0.7);
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: .5rem;
	padding: .4rem .6rem;
}

/* Falls Styles überschrieben wurden – Icon bleibt sichtbar bei navbar-dark */
.navbar-dark .navbar-toggler-icon {
	/* Bootstrap liefert das Icon als Background-Image. 
	   Kein weiterer Code nötig, nur sicherstellen, dass navbar-dark auf <nav> sitzt. */
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "nav a" */
	top: 47px; 
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display: inherit;

}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
    width: 100%;
	float:none;
	display:list-item;
	position: relative;
}

/* Second, Third and more Tiers */
nav ul ul ul li {
	position: relative;
	top:-60px;
	left: 0; 
}

.dropdownIcon{
	font-size: 30px;
	color: rgb(231, 231, 231);
	padding-left: 10px;
	padding-right: 10px;
}

/* Media Queries
--------------------------------------------- */

@media screen and (max-width: 1300px) {
	nav ul li {
        font-size: 1em;
	} 
}

@media all and (min-width : 1200px) {
	.toggle {
		display: none !important;
	}

	/* Desktop: keine Hintergründe für Menü/Items */
	nav ul,
	nav ul li,
	nav ul li a {
		background: transparent !important;
		border-color: rgba(255,255,255,0.3);
	}
}

@media all and (max-width : 1199px) {
	nav ul li a  {
		padding: 5px 10px;
		font-size: 0.9em;
  display: flex;
  justify-content: center;   /* Text horizontal zentrieren */
  align-items: center;       /* Text vertikal zentrieren */
  text-align: center;        /* Sicherheitshalber */
  width: 100%;               /* darf bleiben */
	}
	nav ul li {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 1em;
        text-align: center;
	} 
	#toggleBox {
		flex-grow: 1;
		height: 100px;
	}

	/* Mobile: Ausgeklapptes Menü erhält dunklen Hintergrund über die Collapse */
	/* Wichtig: nav ul selbst transparent lassen, damit die Collapse-Fläche greift */
	nav ul  { 
		background-color: transparent !important;
		width: 100% !important;
	}

	/* Die Collapse-Fläche hinter den Listitems bekommt den dunklen Hintergrund */
	.navbar-collapse {
		background-color: rgba(0,0,0,0.92);
		padding: .75rem 0;
		border-radius: .5rem;
		margin-top: .5rem;
	}

	nav ul li a {
		color: #ffffff;
	}

	nav ul li ul li a {
		padding-top: 5px;
		padding-bottom: 5px;
	}

	nav ul li ul  { 
		margin-left: -1px;
		box-shadow: none;
		height: 200px;
		overflow-y: scroll;
	}

	nav ul li {
		border-left: none;
		padding: 10px;
		font-size: 20px;
		border-bottom: 1px solid;
		border-bottom-color: #d6d6d6;
		color: #ffffff;
	}

	nav ul li:hover { 
		background: #9e1d56; 
	}

	.dropdownItem{
		background-color:#9e1d56;
		border-bottom-color: #9e1d56;
	}

	.dropdownItem a{
		color: #ffffff;
	}

	#logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

	nav {
		margin: 0;
	}

	/* Hide the navigation menu by default */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Toggle label */
	.toggle {
		display: block;
		color:#212121;
		text-decoration:none;
		border:none;
		padding: 5px 10px;
		margin-left: 10px !important;
	}
	.toggle i {
		color: #cfcfcf;
	}

	.toggle i:hover {
		color: #cacaca;
	}

	.toggle:hover {
		color: #cacaca;
	}

	/* Display Dropdown when clicked on Parent Label */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
	}

	nav ul li ul li .toggle,
	nav ul ul a,
	nav ul ul ul a{
		padding:14px 20px;	
		color:#FFF;
		font-size:17px; 
	}
	nav ul li ul li .toggle,
	nav ul ul a {
		color: rgb(231, 231, 231);
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #ffffff;
	}
		
	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}
		
	/* First Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
	}
}

@media all and (max-width : 1100px) {
	.TopNaviRow a {
		font-size: 0.9em;
	}
}

@media all and (max-width :998px) {
	.TopNaviRow a p {
		display: none;
	}
}

@media all and (max-width :756px) {
	nav a img {
		height: 60px;
	}
}

@media all and (max-width : 330px) {
	nav ul li {
		display:block;
		width: 94%;
	}
}

@media all and (max-width : 991px) {
	.desktopElement  {
		text-align: center;
		justify-content: center;
	}
}

/* 1) Keine fixe Höhe für die Nav */
#navi {
  height: auto !important;
}

/* 2) Dein globales .navbar { padding: 0 !important; } wird überschrieben,
   damit py-3 aus dem HTML wirkt und die vertikale Mitte stabil bleibt */
#navi.navbar {
  padding-top: 0.75rem !important;   /* entspricht py-3 */
  padding-bottom: 0.75rem !important;
}

/* 3) Toggler immer vertikal mittig in der Navbar halten */
#navi.navbar {
  display: flex;
  align-items: center;
}
#navi .navbar-toggler {
  align-self: center;
}

/* 4) (Optional, wenn du den dunklen Button nutzt) */
#navi .navbar-toggler {
  background-color: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: .5rem;
  padding: .4rem .6rem;
}

/* 5) Mobile: Abstand zwischen Button und aufgeklapptem Menü,
   ohne den Button selbst nach oben zu ziehen */
@media (max-width: 1199px) {
  #navi .navbar-collapse {
    margin-top: .5rem;
  }
}
