/* RESET */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	background-color: #d6d7e3;
	min-height: 100vh;
}

body {
	min-height: 100vh;
	background-color: #d6d7e3;
	font-family: Arial, Helvetica, Verdana, Lucida Calligraphy, Comic Sans MS;
	font-size: 100%;
	overflow-x: hidden; /* global verhindern */
}

/* =======================================
Grundlayout
======================================= */
#grund {
	margin: 0 auto;
	min-width: 30em;
	max-width: 64rem;
	background-color: #fffeef;
}

/* =======================================
Kopfbereich
======================================= */
#kopf {
	text-align: center;
	position: fixed;
	width: 100vw;
	height: 6em;
	background-color: #d6d7e2;
	z-index: 92;
}

#kopf_i {
	text-align: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 4em;
	background-color: #ffd600;
	z-index: 92;
}


/* =======================================
Fusszeile
======================================= */
#footer,
#footer_i {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	background-color: #ffd600;
	z-index: 92;
}

#footer {
	background-color: #d6d7e2;
	height: 3.5em;
	bottom: 0;
}

/* =======================================
Arbeitsbereiche / Box
========================================= */
.box {
	position: relative;
	margin: 0 auto;
	width: 100%;
}

.boxmitte {
	position: relative;
	margin: 0 auto;
	padding: 0 0 3.5em 0;
	width: 100%;
	max-width: none; /* wichtig für Scrollbereiche */
	background-color: #fffeef;
	color: #000;
}

.box_mitte {
	position: relative;
	width: 100%;
	margin: 0 auto;
	background-color: #fffeef;
}

/******************************************* */
/* Bildecken links und rechts */
.boxli {
	float: left;
	padding: 0.4em;
	margin: 1em;
}

.boxre {
	float: right;
	padding: 0.4em;
	margin: 1em;
}

/* für Meldungen */
.box_msg{
	position: relative;
	text-align: center;
	z-index: 70;
}

.insta-icon {
	width: 32px;
	height: 32px;
	vertical-align: middle;
}


/* =======================================
Menü
======================================= */
#menu {
	font-family: Arial, Helvetica, Verdana, Lucida Calligraphy, Comic Sans MS;
	min-width: 50%;
	max-width: 50em;
	height: 2em;
	padding: 0.25em;
	margin: 5% auto;
	box-shadow: 0.1875em 0.25em 0.25em #000050;
	background: #ffd700;
	z-index: 94;
}

#menu a {
	color: #000;
	text-decoration: none;
	transition: all .5s ease-in-out;
}

#menu .inhalt {
	width: 70em;
	margin: 0 auto;
}

#menu .inhalt ul {
	position: absolute;
	margin: 0 auto;
	list-style: none;
	z-index: 90;
}

#menu .inhalt ul li {
	float: left;
	margin-left: 1.5em;
	font-size: 110%;
	font-weight: bold;
	line-height: 1.5em;
}

#menu .inhalt>ul>li:hover {
	height: 1.7em;
	background: #ffee00;
	border-top: 0.123em solid #ffde00;
	box-shadow: 0.25em 0.25em 0.5em #304050;
}

#menu .inhalt ul li img {
	float: left;
	width: 1em;
	height: 1em;
	margin: 0.6875em 0.3125em;
	background: #600000;
	border-radius: 1.5625em;
	box-shadow: 0.1875em 0.25em 1.25em #304050;
	transition: all .5s ease-in-out;
}

#menu .inhalt ul li ul {
	top: -999em;
	min-width: 8.75em;
	background: linear-gradient(to bottom, #eeeea0 0%, #ffee00 100%);
	padding: 0.123em;
	margin: -0.125em 0 0.5em 0;
	box-shadow: 0.25em 0.5em 0.5em #304050;
}

#menu .inhalt ul li:hover ul {
	top: 1.625em;
}

#menu .inhalt ul ul li {
	float: none;
	font-size: 110%;
	padding: 0.25em 0.375em;
	text-align: left;
	margin: 0.123em;
	border-bottom: 0.0625em solid #ffde00;
	line-height: 1.5em;
	transition: all .5s ease-in-out;
}

#menu .inhalt ul ul li:hover {
	background: #ffde00;
	color: #000;
}

#menu .inhalt ul ul li a {
	display: block;
}

#menu .inhalt ul ul li a:hover {
	background: #ffde00;
	color: #000;
	box-shadow: 0.0625em 0.1875em 0.3125em #304050;
}

/* ----------------------------------------------------------
HAMBURGER ICON
---------------------------------------------------------- */
#hamburger {
	display: none;
	font-size: 2.2em;
	cursor: pointer;
	margin: 0.38em 0 0 0;
	padding: 0.1em 0.6em;
	color: #000;
	text-align: left;
	background: #ffda00;
	border-bottom: 0.01em solid #ccc;
}

/* ----------------------------------------------------------
MOBILE MENÜ (Container)
---------------------------------------------------------- */
#mobile-menu {
	display: none;
	background: #feef00;
	border-bottom: 0.15em solid #ccc;
	padding: 0;
}

/* ----------------------------------------------------------
LISTENSTRUKTUR
---------------------------------------------------------- */
#mobile-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Hauptpunkte */
#mobile-menu li.main {
	padding: 0.6em;
	font-size: 1.2em;
	font-weight: bold;
	border-bottom: 1px solid #ddd;
}

/* Klickbarer Bereich (Text + Pfeil) */
#mobile-menu li.main .toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

/* Pfeile (geschlossen) */
#mobile-menu li.main .toggle::after {
	content: "▶";
	transition: transform 0.3s ease;
}

/* Pfeile (geöffnet) */
#mobile-menu li.main.open .toggle::after {
	content: "▼";
}

/* ----------------------------------------------------------
UNTERMENÜ (Animation)
---------------------------------------------------------- */
#mobile-menu ul.submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	background: #fffdf5;
	padding-left: 1em;
}

/* Untermenü geöffnet */
#mobile-menu ul.submenu.open {
	max-height: 500px; /* ausreichend für mehrere Einträge */
}

/* Untermenü-Einträge */
#mobile-menu ul.submenu li {
	padding: 0.5em 0;
	border-bottom: 1px solid #eee;
}

/* Links */
#mobile-menu a {
	text-decoration: none;
	color: #000;
	font-size: 1.1em;
}

/* ----------------------------------------------------------
RESPONSIVE UMSCHALTUNG
---------------------------------------------------------- */
@media (max-width: 720px) {

	/* Desktop-Menü ausblenden */
	#menu {
		display: none;
	}

	/* Hamburger anzeigen */
	#hamburger {
		display: block;
	}
}
/* =======================================
E N D E  Hamburger
======================================= */

/* =======================================
Meldungen
======================================= */
#meldung {
	min-width: 1%;
	max-width: 2%;
	height: 1.5em;
	padding: 2%;
	margin: 2% auto;
	background: #d01;
	z-index: 94;
}

#meldung a {
	color: #000;
	text-decoration: none;
	transition: all .5s ease-in-out;
}

#meldung .inhalt {
	width: 100%;
	margin: 0 auto;
}

#meldung .inhalt ul {
	position: absolute;
	margin: 0 auto;
	list-style: none;
	z-index: 90;
}

#meldung .inhalt ul li {
	float: left;
	margin-right: 1.2em;
	font-size: 100%;
	font-weight: bold;
	line-height: 1em;
}

#meldung .inhalt>ul>li:hover {
	height: 1.7em;
	background: #fffe00;
	border-top: 0.123em solid #fde;
	box-shadow: 0.25em 0.25em 0.5em #304050;
}

#meldung .inhalt ul li img {
	float: left;
	width: 1em;
	height: 1em;
	margin: 0.6875em 0.3125em;
	background: #600000;
	border-radius: 1.5625em;
	box-shadow: 0.1875em 0.25em 1.25em #304050;
	transition: all .5s ease-in-out;
}

#meldung .inhalt ul li ul {
	top: -999em;
	min-width: 25em;
	max-width: 50% auto;
	background: #fffe00;
	padding: 0.123em;
	margin: -0.125em 0 0.5em 0;
	box-shadow: 0.25em 0.5em 0.5em #304050;
}

#meldung .inhalt ul li:hover ul {
	top: 1.625em;
}

#meldung .inhalt ul ul li {
	float: none;
	font-size: 100%;
	padding: 0.25em 0.375em;
	text-align: left;
	margin: 0.123em;
	border-bottom: 0.0625em solid #fde;
	line-height: 1.5em;
	transition: all .5s ease-in-out;
}

#meldung .inhalt ul ul li:hover {
	background: #ffffee;
	color: #000;
}

#meldung .inhalt ul ul li a {
	display: block;
}

#meldung .inhalt ul ul li a:hover {
	background: #ffffee;
	color: #000;
	box-shadow: 0.0625em 0.1875em 0.3125em #304050;
}

/* =======================================
Farben
======================================= */
.grau { background-color: #d6d7e3; }
.blaugrau { background-color: #b6c4da; }
.hintergrund { background-color: #fffeef; }
.hintergrund_0 { background-image: linear-gradient(#fcecdd, #fffeef); }
.hintergrund_1 { background-image: linear-gradient(#ecefef, #e1e1e1); }
.overx { background-color: #fffeef; }
.kalender { background-color: #fffeef; }
.kalender_alt { background-image: linear-gradient(#ffeedd, #fffeef); }

/* =======================================
Links
======================================= */
a:link { color: #00f; }
a:visited { color: #c00; }
a:hover, a:focus { color: #ff00bb; text-decoration: none; }
a:active { color: #f0f; text-decoration: none; }

a.schwarzlink:link { color: #000; text-decoration: none; }
a.schwarzlink:visited { color: #550000; }
a.schwarzlink:hover { color: #ff00bb; }

/* =======================================
Typografie
======================================= */
.unterstrich { text-decoration: underline; }
.ueberstrich { text-decoration: overline; }
.durchstrich { text-decoration: line-through; }
.tmitte { text-align: center; }
.fett { font-weight: bold; }

h1, h2, h3 {
	text-align: center;
	padding: 0.5em 0;
}
h5 {
	text-align: right;
	padding: 0.5em 0;
	font-size: 80%;
}
p {
	padding: 0.5em 0;
}

/* =======================================
Ergebnislisten
======================================= */
.ergebnisse-wrapper {
	display: flex;
	justify-content: center;
	overflow-x: auto; /* verhindert Abschneiden */
}

.ergebnisse {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	background-color: #ededed;
	border: 2px solid #C0C0C0;
	padding: 0.3em 0.15em;
	border-radius: 6px;
	max-width: 100%; /* statt width: fit-content; */
}

.zeile {
	display: flex;
	gap: 0.25em;
}

.feld {
	font-size: 1em;
	text-align: center;
}

.name {
	width: 12em;
	text-align: left;
	padding-left: 0.1em;
}

.trenner {
	width: 0.25em;
}

.gleich {
	width: 1.5em;
}

.ergebnis {
	width: 3.5em;
}

/* =======================================
PDF-ANZEIGE
======================================= */
iframe {
	width: 80%;
	height: 77vh;
	border: 0.1em ridge #ffd600;
}

/* =======================================
Smartphone-Anzeige  overflow in X
======================================= */
.boxmitte.overx,
.boxmitte.kalender,
.boxmitte.kalender_alt {
	overflow-x: auto;
	overflow-y: visible;
	white-space: nowrap;
}

/* =======================================
Responsive Media Queries
======================================= */

/* Hauptüberschrift */
.kopf-titel {
	font-size: 270%;   /* Desktop größer */
	font-weight: 420;  /* etwas dünner als bold */
}

/* Untertitel */
.kopf-untertitel {
	font-size: 60%;
}

/* Tablet */
@media only screen and (max-width: 1024px) {
	body { font-size: 95%; }
	.kopf-titel { font-size: 265%; font-weight: 420; }
	.kopf-untertitel { font-size: 68%; }
}

/* Smartphone quer */
@media only screen and (max-width: 768px) {
	body { font-size: 85%; }
	.kopf-titel { font-size: 225%; font-weight: 400; }
	.kopf-untertitel { font-size: 68%; }
}

/* Smartphone hochkant */
@media only screen and (max-width: 480px){
	body {font-size: 70%;}
	.kopf-titel {font-size: 215%;}
	.kopf-untertitel {font-size: 110;}
}

@media screen and (max-width: 720px) {
	.inhalt > ul > li.hide-mobile {
		display: none;
	}
}

@media (max-width: 720px) {
	#menu {
		display: none;
	}
}

@media (max-width: 720px) {
	#hamburger {
		display: block;
	}
}

/* Sanftes Einblenden */
@keyframes fadeIn {
	from { opacity: 0.3; }
	to   { opacity: 1.5; }
}

/* Sanftes Ausblenden (hast du schon, aber hier vollständig) */
@keyframes fadeOut {
	from { opacity: 1; }
	to   { opacity: 0; }
}

/* Overlay mit Fade-In */
#intro-overlay {
	position: fixed;
	inset: 0;
	background: rgba(185, 185, 180, 0.75); /* deine Farbe */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 0; /* Start unsichtbar */
	animation: fadeIn 1.5s ease forwards; /* Fade-In */
}

#intro-overlay img {
	width: 50vh;       /* deine Anpassung 60vH */
	max-width: 80%;    /* deine Anpassung */
	height: auto;
	opacity: 1.0;
}


/* =======================================
 Zum Kalender Tabellenpspalte Breite
======================================= */
<style>
  .col-gap {
    min-width: 30px;
  }
  .col-month {
    min-width: 120px;
    font-size: 25px;
    color: #222;
  }
  thead tr {
    background-color: #EEDAAA;
    text-align: center;
  }
</style>
/* =======================================
E N D E
======================================= */