/*
------------------------------------------------
Grundschule Mahlberg
Modernisierte IONOS MyWebsite Version
MIT Smooth Header Slideshow + Modern Footer
------------------------------------------------
*/


/* ========================================
   RESET
======================================== */

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}


/* ========================================
   BODY
======================================== */

body {
	background: #f5f7fa;
	font-family: Arial, Helvetica, sans-serif;
	color: #333333;
	line-height: 1.7;
}


/* ========================================
   CONTAINER
======================================== */

#container {
	width: 100%;
	margin: 0;
	background: #ffffff;
}

#wrapper {
	width: 100%;
	background: #ffffff;
}


/* ========================================
   TOPBAR
======================================== */

#topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: #ffffff;
	border-bottom: 4px solid #f3c300;
}


/* ========================================
   LOGO
======================================== */

.logo-area img {
	max-height: 120px;
	width: auto;
	display: block;
}


/* ========================================
   HEADER SLIDESHOW
======================================== */

#header {
	position: relative;
	width: 100%;
	height: 480px;
	overflow: hidden;
	background: #ffffff;
}


/* Slideshow */

.slideshow {
	position: relative;
	width: 100%;
	height: 100%;
}


/* Slides */

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	animation: slideshow 36s infinite;
}


/* Verzögerungen */

.slide:nth-child(1) {
	animation-delay: 0s;
}

.slide:nth-child(2) {
	animation-delay: 6s;
}

.slide:nth-child(3) {
	animation-delay: 12s;
}

.slide:nth-child(4) {
	animation-delay: 18s;
}

.slide:nth-child(5) {
	animation-delay: 24s;
}

.slide:nth-child(6) {
	animation-delay: 30s;
}


/* Bilder */

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transform: scale(1);
	image-rendering: auto;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	filter: contrast(1.02) saturate(1.02);
}


/* Animation */

@keyframes slideshow {

	0% {
		opacity: 0;
	}

	5% {
		opacity: 1;
	}

	25% {
		opacity: 1;
	}

	30% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}


/* ========================================
   IONOS NAV FIX KOMPLETT
======================================== */

#navigation {
	position: relative !important;
	z-index: 999999999 !important;
	background: #ffffff;
	border-bottom: 4px solid #f3c300;
	overflow: visible !important;
}


/* WICHTIG */

#navigation *,
#wrapper,
#container,
body,
html {
	overflow: visible !important;
}


/* ========================================
   HAUPTMENÜ
======================================== */

#navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#navigation .mainNav1 {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	padding: 14px 20px;
	background: #ffffff;
}


/* Menüpunkte */

#navigation .mainNav1 > li {
	position: relative !important;
	margin: 0 5px;
}


/* Hauptlinks */

#navigation .mainNav1 > li > a {
	display: block;
	padding: 14px 24px;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 8px;
	color: #065ba8;
	transition: all 0.25s ease;
}


/* ========================================
   BUTTON FARBEN
======================================== */

#navigation .mainNav1 > li:nth-child(1) > a:hover,
#navigation .mainNav1 > li:nth-child(1) > a.current {
	background: #065ba8;
	color: #fff;
}

#navigation .mainNav1 > li:nth-child(2) > a:hover,
#navigation .mainNav1 > li:nth-child(2) > a.current {
	background: #8cc63f;
	color: #fff;
}

#navigation .mainNav1 > li:nth-child(3) > a:hover,
#navigation .mainNav1 > li:nth-child(3) > a.current {
	background: #e6332a;
	color: #fff;
}

#navigation .mainNav1 > li:nth-child(4) > a:hover,
#navigation .mainNav1 > li:nth-child(4) > a.current {
	background: #f3c300;
	color: #333;
}

#navigation .mainNav1 > li:nth-child(5) > a:hover,
#navigation .mainNav1 > li:nth-child(5) > a.current {
	background: #065ba8;
	color: #fff;
}

#navigation .mainNav1 > li:nth-child(6) > a:hover,
#navigation .mainNav1 > li:nth-child(6) > a.current {
	background: #8cc63f;
	color: #fff;
}

#navigation .mainNav1 > li:nth-child(7) > a:hover,
#navigation .mainNav1 > li:nth-child(7) > a.current {
	background: #e6332a;
	color: #fff;
}

#navigation .mainNav1 > li:nth-child(8) > a:hover,
#navigation .mainNav1 > li:nth-child(8) > a.current {
	background: #f3c300;
	color: #333;
}

#navigation .mainNav1 > li:nth-child(9) > a:hover,
#navigation .mainNav1 > li:nth-child(9) > a.current {
	background: #065ba8;
	color: #fff;
}


/* ========================================
   ALLE SUBMENÜS
======================================== */

/* EXTREM wichtig:
   nicht nur mainNav2/mainNav3
*/

#navigation li ul {
	display: none !important;

	position: absolute !important;

	top: 100% !important;
	left: 0 !important;

	min-width: 260px !important;

	background: #ffffff !important;

	border-radius: 10px !important;

	box-shadow: 0 15px 40px rgba(0,0,0,0.18) !important;

	padding: 10px 0 !important;

	z-index: 999999999 !important;
}


/* Anzeigen */

#navigation li:hover > ul {
	display: block !important;
}


/* 3. Ebene */

#navigation li ul li {
	position: relative !important;
}

#navigation li ul li ul {
	top: 0 !important;
	left: 100% !important;
}


/* Dropdown Links */

#navigation li ul li a {
	display: block !important;
	padding: 13px 20px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #333333 !important;
	background: #ffffff !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}


/* Hover */

#navigation li ul li a:hover {
	background: #065ba8 !important;
	color: #ffffff !important;
}


/* ========================================
   MOBILE
======================================== */

@media screen and (max-width: 768px) {

	#navigation .mainNav1 {
		flex-direction: column;
		align-items: stretch;
		padding: 0;
	}

	#navigation .mainNav1 > li {
		width: 100%;
		margin: 0;
	}

	#navigation .mainNav1 > li > a {
		border-radius: 0;
		border-bottom: 1px solid #eeeeee;
		padding: 15px 20px;
	}

	#navigation li ul,
	#navigation li ul li ul {
		position: static !important;
		width: 100% !important;
		min-width: 100% !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		background: #fafafa !important;
	}

	#navigation li ul li a {
		padding-left: 35px !important;
		background: #fafafa !important;
	}

	#navigation li ul li ul li a {
		padding-left: 50px !important;
	}

}


/* ========================================
   CONTENT
======================================== */

#content {
	width: 100%;
	background: #ffffff;
}

#content .gutter {
	max-width: 1400px;
	margin: 0 auto;
	padding: 50px 60px 80px;
}


/* ========================================
   SIDEBAR AUSBLENDEN
======================================== */

#sidebar,
#sidebar_content {
	display: none;
}


/* ========================================
   TYPOGRAFIE
======================================== */

h1 {
	font-size: 42px;
	color: #065ba8;
	margin-bottom: 20px;
	line-height: 1.2;
}

h2 {
	font-size: 32px;
	color: #065ba8;
	margin-top: 50px;
	margin-bottom: 20px;
	line-height: 1.3;
}

h3 {
	font-size: 24px;
	color: #8cc63f;
	margin-top: 30px;
	margin-bottom: 15px;
}

p {
	font-size: 17px;
	margin-bottom: 20px;
}


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

a {
	color: #065ba8;
	text-decoration: none;
	transition: all 0.2s ease;
}

a:hover {
	text-decoration: underline;
}


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

#footer {
	background: linear-gradient(135deg, #065ba8 0%, #0b4d87 100%);
	color: #ffffff;
	margin-top: 60px;
	border-top: 6px solid #f3c300;
}

#footer .gutter {
	max-width: 1400px;
	margin: 0 auto;
	padding: 50px 60px 30px;
}


/* Footer Grid */

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 40px;
	align-items: start;
}


/* Footer Box */

.footer-box h3 {
	color: #f3c300;
	font-size: 22px;
	margin-top: 0;
	margin-bottom: 18px;
	font-weight: 700;
}

.footer-box p,
.footer-box a {
	font-size: 16px;
	line-height: 1.8;
	color: rgba(255,255,255,0.92);
	text-decoration: none;
}


/* Footer Links */

.footer-box a:hover {
	color: #f3c300;
	text-decoration: none;
}


/* Footer Bottom */

.footer-bottom {
	margin-top: 40px;
	padding-top: 25px;
	border-top: 1px solid rgba(255,255,255,0.2);
	text-align: center;
	font-size: 14px;
	color: rgba(255,255,255,0.75);
}


/* ========================================
   MOBILE
======================================== */

@media screen and (max-width: 768px) {

	.logo-area img {
		max-height: 80px;
	}

	#header {
		height: 240px;
	}

	.slide img {
		transform: scale(1.01);
	}

	ul.mainNav1 {
		flex-direction: column;
		align-items: stretch;
		padding: 0;
	}

	ul.mainNav1 > li {
		width: 100%;
		margin: 0;
	}

	ul.mainNav1 > li > a {
		border-bottom: 1px solid #eeeeee;
		border-radius: 0;
		padding: 14px 20px;
		text-align: left;
	}

	ul.mainNav2,
	ul.mainNav3 {
		position: static;
		display: none;
		width: 100%;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
	}

	ul.mainNav1 > li:hover > ul.mainNav2,
	ul.mainNav2 li:hover > ul.mainNav3 {
		display: block;
	}

	ul.mainNav2 li a,
	ul.mainNav3 li a {
		padding-left: 35px;
		background: #fafafa;
	}

	#content .gutter {
		padding: 30px 25px 50px;
	}

	h1 {
		font-size: 30px;
	}

	h2 {
		font-size: 24px;
	}

	h3 {
		font-size: 20px;
	}

	p {
		font-size: 16px;
	}

	#footer .gutter {
		padding: 40px 25px 25px;
	}

	.footer-grid {
		gap: 30px;
	}

	.footer-box h3 {
		font-size: 20px;
	}

}                            



/* Druck + Sitemap komplett entfernen */

div[id*="print"],
div[class*="print"],
a[href*="print"],
div[id*="sitemap"],
div[class*="sitemap"],
a[href*="sitemap"] {
	display: none !important;
}