/* Hauptfarbe */
:root {
    --main-white: #000000;
    --main-blue: #777777;
    --main-red: #FF0000;
    --main-green: #00FF00;
    --main-darkgreen: #00AA00;
	--hover-blue: #ffffff;
	--subheader-blue: #cccccc;
	
	--main-font-color: #000000;
	--main-text-shadow: #efefef;

	--main-background: #eeeeee;

	--headermenu-background: #bbbbbb;
	--footermenu-background: #aaaaaa;
	--settingsmenu-background: #777777;
	--settings-background: #cdcdcd;
	
	--matchcard-background: #cdcdcd;
	--matchcard-hover-background: #dddddd;

	--header-3-color1: #dddddd;
	--header-3-color2: #cccccc;
	--header-3-color3: #bbbbbb;

	--sidemenu-background: #cdcdcd;
	--sidemenu-item-background: #cccccc;
	--sidemenu-item-aktiv-background: #dddddd;
	--sidemenu-item-hover-background: #eeeeee;
	
	--date-yellow: #b35600;

	--score-high: #00DD00;
	--score-low: #00AA00;
	--score-live: #FF0000;
	--noscore: #FF7700;

	--game-time: #888888;
	
	--scroll-button: #FF7B00;
	--scroll-hover-button: #b35600;
}
/* Hauptfarbe Dunkler Modus */
:root.dark {
    --main-white: #FFFFFF;
    --main-blue: #007BFF;
    --main-red: #FF0000;
    --main-green: #00FF00;
    --main-darkgreen: #00AA00;
	--hover-blue: #78ffff;
	--subheader-blue: #0056b2;

	--main-font-color: #ffffff;
	--main-text-shadow: #000000;

	--main-background: #202020;

	--headermenu-background: #007BFF;
	--footermenu-background: #252525;
	--settingsmenu-background: #007BFF;
	--settings-background: #292929;
	
	--matchcard-background: #292929;
	--matchcard-hover-background: #353535;
	
	--header-3-color1: #419cff;
	--header-3-color2: #0056b2;
	--header-3-color3: #007bff;

	--sidemenu-background: #1E1E1E;
	--sidemenu-item-background: #2A2A2A;
	--sidemenu-item-aktiv-background: #3A3A3A;
	--sidemenu-item-hover-background: #4A4A4A;
	
	--date-yellow: #FFD700;

	--score-high: #00FF00;
	--score-low: #00AA00;
	--score-live: #FF0000;
	--noscore: #FF7700;

	--game-time: #BBBBBB;
	
	--scroll-button: #FF7B00;
	--scroll-hover-button: #b35600;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box; /* Sorgt für saubere Breitenberechnungen */
}


/* Gesamt-Layout */
body {
	background: url('images/background-neu-v2.png') no-repeat center center fixed;
	background-size: 300px; /* Größe anpassen */
	background-blend-mode: overlay; /* Ermöglicht Transparenz */
	background-color: var(--main-background); /* Hintergrund leicht abdunkeln */
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	font-family: 'Arial', sans-serif;
	color: var(--main-font-color);
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	overflow-x: hidden;
}

body.no-scroll {
	overflow: hidden !important; /* Verhindert Scrollen */
}

/* App-Container */
.app-container {
	display: flex;
	flex-direction: column;
	width: 100vw;
	justify-content: center; /* Zentriert den Inhalt horizontal */
	padding-top: 0px;
	padding-bottom: 20px;
	min-height: 100vh; /* Mindestens die Höhe des Viewports nutzen */
}
/* App-Container-Header */
header {
	position: sticky;
	top: 30px; /* Bleibt am oberen Rand haften */
	z-index: 1000; /* Stellt sicher, dass er über anderen Elementen liegt */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}
/* App-Container-Main */
main {
	position: relative;
	flex-grow: 1; /* Füllt den verfügbaren Platz, damit der Footer nach unten rutscht */
	top: 30px;
	padding: 10px 30px;
}
/* App-Container-Footer */
footer {
	position: relative;
	margin-top: 30px;
	margin-bottom: 80px;
}

/* Header1 */
.header1 {
	width: 100%; /* Volle Bildschirmbreite */
	background-image: linear-gradient(to bottom, #419cff, #388ef0, #2e80e1, #2373d2, #1766c3, #1063c3, #0861c3, #005ec3, #0065d2, #006ce1, #0074f0, #007bff);
	padding: 10px;
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	text-shadow: 1px 1px 2px var(--main-text-shadow);
	border-radius: 10px 10px 0px 0px;
}

/* Header2 */
.header2 {
	display: flex;
	align-items: center; /* Zentriert den Inhalt vertikal */
	justify-content: center; /* Zentriert den Inhalt horizontal */
	gap: 10px;
	width: 100%;
	background-image: linear-gradient(to bottom, var(--header-3-color1),var(--header-3-color2),var(--header-3-color3));
	padding: 5px;
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	text-shadow: 1px 1px 2px var(--main-text-shadow);
	box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.2);
	position: sticky;
	top: 0; /* Bleibt am oberen Rand haften */
	z-index: 1000; /* Stellt sicher, dass er über anderen Elementen liegt */
}

/* SubHeader1 */
.subheader1 {
	width: 95%;
	background: var(--subheader-blue);
	padding: 5px;
	text-align: center;
	font-size: 18px;
	text-shadow: 1px 1px 2px var(--main-text-shadow);
	border-radius: 0px 0px 10px 10px;
	margin-bottom: 5px;
	box-shadow: 0px 10px 20px 10px rgba(0,0,0,0.5);
	position: sticky;
	top: 40px; /* Bleibt am oberen Rand haften */
	z-index: 999; /* Stellt sicher, dass er über anderen Elementen liegt */
	display: flex;
	align-items: center; /* Zentriert den Inhalt vertikal */
	justify-content: center; /* Zentriert den Inhalt horizontal */
}

/* SubHeader2 */
.subheader2 {
	width: 100%;
	padding: 5px;
	text-align: center;
	font-size: 15px;
	top: 300px;
	margin-bottom: 20px;
	
}

/* NextMatch */
.nextmatch {
	padding: 5px;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 20px;
	justify-content: center;
	justify-items: center;
}
/* NextMatch */
.nextmatchlink {
	padding: 5px;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 20px;
	justify-content: center;
	justify-items: center;
}
/* Live Link */
.liveLink {
	padding: 5px;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 20px;
	justify-content: center;
	justify-items: center;
}
/* Live Link */
.liveLinkClick {
	padding: 5px;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 20px;
	justify-content: center;
	justify-items: center;
}

/* Hallenauswahl */
.hallenauswahl {
	width: 100%;
	background: #292929;
	padding: 5px;
	justify-content: center;
	justify-items: center;
	border-radius: 0px 0px 10px 10px;
	margin-bottom: 20px;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}

/* Formular */
.formfelder {
	font-size: 15px;
	text-align: center;
	justify-content: center;
	justify-items: center;
}

.date-box {
	margin-bottom: 20px;
	display: block;
}

.date-box h2 {
	text-align: center;
	color: var(--date-yellow);
	padding: 10px;
	border-radius: 8px;
}
.groupdate {
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	color: var(--date-yellow);
	text-shadow: 0px 0px 10px var(--main-text-shadow),0px 0px 10px var(--main-text-shadow),0px 0px 10px var(--main-text-shadow);
	padding: 10px;
	padding-top: 15px;
	margin-bottom: 20px;
	border-radius: 8px;
	backdrop-filter: blur(5.5px);
	-webkit-backdrop-filter: blur(5.5px);
	position: sticky;
	top: 90px; /* Bleibt am oberen Rand haften */
	z-index: 998; /* Stellt sicher, dass er über anderen Elementen liegt */
}

/* Spiele nebeneinander anzeigen */
.matches-container {
	display: grid;
	gap: 20px; /* Abstand zwischen den Spielen */
	justify-content: center; /* Spiele zentrieren */
	justify-items: center;
}

/* Spiele-Container */
.container {
	display: grid;
	gap: 20px;
	justify-content: center;
	justify-items: center;
}

/* Einzelnes Spiel */
.match-card {
	background: var(--matchcard-background);
	padding: 15px;
	border: 1px solid #151515;
	border-radius: 15px;
	text-align: center;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
	display: flex;
	gap: 5px;
	flex-direction: column; /* Inhalte von oben nach unten anordnen */
	justify-content: space-between;
}

.match-card:hover {
	background: var(--matchcard-hover-background);
	border: 1px solid #454545;
	box-shadow: 0px 0px 10px 5px rgba(250, 250, 250, 0.2);
	transform: scale(1.03);
}

.date {
	font-weight: bold;
	color: var(--date-yellow);
	text-shadow: 1px 1px 2px var(--main-text-shadow);
}

.liga {
	font-size: 15px;
	margin-top: 5px;
}

.teams {
	font-size: 18px;
	font-weight: bold;
	text-shadow: 1px 1px 2px var(--main-text-shadow);
	margin-top: 5px;
	display: flex;
	gap: 5px;
	flex-direction: column; /* Inhalte von oben nach unten anordnen */
	justify-content: center;
}
.team1 {
	font-size: 18px;
	font-weight: bold;
	text-shadow: 1px 1px 2px var(--main-text-shadow);
	margin-top: 5px;
	display: flex;
	gap: 10px;
	align-items: center; /* Zentriert den Inhalt vertikal */
	justify-content: center; /* Zentriert den Inhalt horizontal */
}
.team2 {
	font-size: 18px;
	font-weight: bold;
	text-shadow: 1px 1px 2px var(--main-text-shadow);
	margin-top: 5px;
	display: flex;
	gap: 10px;
	align-items: center; /* Zentriert den Inhalt vertikal */
	justify-content: center; /* Zentriert den Inhalt horizontal */
}

.score {
	font-size: 22px;
	padding: 10px;
	margin-top: 5px;
}

.scorelow {
	color: var(--score-low);
	text-shadow: 1px 1px 2px var(--main-text-shadow);
}

.scorehigh {
	color: var(--score-high);
	font-weight: bold;
	text-shadow: 1px 1px 2px var(--main-text-shadow);
}

#scoreLive {
	font-size: 22px;
	margin-top: 5px;
	padding: 10px;
	color: var(--score-live);
	font-weight: bold;
	text-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
	animation: pulse 1s infinite alternate ease-in-out;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 1;
		text-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
	}
	100% {
		transform: scale(1.2);
		opacity: 0.6;
		text-shadow: 0 0 15px rgba(255, 0, 0, 1);
	}
}

.noscore {
	font-size: 15px;
	color: var(--noscore);
	padding: 10px;
	margin-top: 5px;
}

.game-time {
	margin-top: auto; /* Schiebt den Button an den unteren Rand */
	font-size: 16px;
	color: var(--game-time);
	padding: 10px;
}

.details-link {
	display: inline-block;
	margin-top: auto; /* Schiebt den Button an den unteren Rand */
	padding: 10px;
	background: var(--main-blue);
	color: white;
	text-decoration: none;
	border-radius: 10px;
	transition: background 0.2s;
}

.details-link:hover {
	background: var(--subheader-blue);
}

/* Footer */
.footer {
	text-align: center;
	font-size: 10px;
	margin: 0px;
	padding: 0px;
	padding-top: 20px;
}


/* "Nach oben"-Button */
.scroll-button {
	position: fixed;
	bottom: 110px;
	right: 10px;
	background: var(--scroll-button);
	color: white;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 30px;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.5);
	transition: opacity 0.3s ease-in-out;
	z-index: 5000;
}

.scroll-button:hover {
	background: var(--scroll-hover-button);
}

/* "Refresh"-Button */
#refreshBtn {
	position: fixed;
	top: 10px;
	left: 10px;
	background: var(--main-blue);
	color: white;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.5);
	transition: opacity 0.3s ease-in-out;
	z-index: 5000;
}

#refreshBtn:hover {
	background: var(--subheader-blue);
}

/* Dreh-Animation */
.rotate {
	animation: spin 1s linear infinite;
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
/* Keyframes für die Drehung */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
#loadingScreen {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8); /* Dunkler Hintergrund mit Transparenz */
	z-index: 9999;
	filter: none !important; /* Kein Blur auf dem Loader */
}

#loadingScreen img {
	width: 100px; /* Größe anpassen */
	height: 100px;
	animation: rotate 2s linear infinite;
}

#loadingText {
	font-size: 15px;
	font-weight: bold;
	color: white;
	text-align: center;
}
#loadingHint {
	font-size: 12px;
	color: red;
	text-align: center;
}

.blur {
	filter: blur(5px); /* Nur der Inhalt wird unscharf */
	pointer-events: none; /* Blockiert Klicks */
	overflow: hidden; /* Verhindert Scrollen */
}

/* Seitenmenü */
#side-menu {
    position: fixed;
    top: 30px;
	bottom: 80px;
    right: -320px;
    width: 350px;
    height: calc(100vh - 130px); /* Verhindert, dass es zu groß wird */
    background: var(--sidemenu-background);
    padding: 0;
	border: 2px solid var(--main-blue);
    border-radius: 10px 0px 0px 0px;
    box-shadow: -10px 10px 25px rgba(0, 0, 0, 0.4);
    transition: right 0.3s ease-in-out;
    z-index: 2500;
    display: flex;
    flex-direction: column; /* Inhalt untereinander */
}

/* Fixierter Header */
.menu-header {
    background: var(--main-blue);
    color: white;
    font-weight: bold;
    font-size: 22px;
    text-align: center;
    padding: 10px;
    border-radius: 5px 0 0 0;
    flex-shrink: 0; /* Der Header bleibt fest */
}

/* Scrollbarer Bereich für das Menü */
.menu-text {
    height: 100%;
    max-height: calc(100vh - 180px); /* 100% minus Header-Höhe */
    overflow-y: auto; /* Macht den Bereich scrollbar */
    padding: 0px;
    flex-grow: 1; /* Wichtig für flexibles Verhalten */
}

/* Scrollbar-Styling */
.menu-text::-webkit-scrollbar {
    width: 8px;
}

.menu-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.menu-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}


/* Kategorien */
.menu-item {
    background: var(--sidemenu-item-background);
    color: var(--main-font-color);
	width: 95%;
    padding: 5px;
    margin: 5px 2px;
    border-radius: 3px;
    display: flex;
	flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}
/* Kategorien */
.menu-item > .submenu > .menu-item > .submenu > .menu-item {
    background: var(--sidemenu-item-background);
    color: var(--main-font-color);
	width: 95%;
    padding: 5px;
    margin: 5px 2px;
    border-radius: 3px;
    display: flex;
	flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.menu-item:hover {
    background: var(--sidemenu-item-hover-background);
    transform: translateY(-2px);
}
.menu-item.open {
    background: var(--sidemenu-item-aktiv-background);
}

/* Untermenüs */
.submenu {
    display: none;
	width: 95%;
	max-width: 100%;
    margin-left: 10px;
    margin-right: 5px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s;
    opacity: 0;
}
/* Untermenüs */
.menu-item > .submenu > .menu-item > .submenu > .menu-item > .submenu {
	width: 95%;
	max-width: 100%;
    margin-left: 5px;
    margin-right: 5px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s;
}

.menu-item > .submenu {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.menu-item.open > .submenu {
    display: block;
    opacity: 1;
}


/* Hover- und aktive Effekte */
.menu-toggle {
    font-weight: bold;
	font-size: 20px;
    cursor: pointer;
	padding: 5px;
	width: 100%;
}
/* Hover- und aktive Effekte */
.menu-item > .submenu > .menu-item > .submenu > .menu-item > .menu-toggle {
    font-weight: bold;
	font-size: 18px;
    cursor: pointer;
	padding: 5px;
	width: 100%;
}
/* Pfeil für .menu-toggle */
.menu-toggle::before {
    content: "▶";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s ease;
    color: var(--main-blue);
}

/* Pfeil gedreht, wenn geöffnet */
.menu-item.open > .menu-toggle::before {
    transform: rotate(90deg);
    color: var(--main-white);
}


/* Hover- und aktive Effekte */
.menupoint {
    display: flex;
    cursor: pointer;
    padding: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
    font-size: 14px;
    align-items: center;
    border-radius: 6px;
    transition: background 0.3s ease-in-out, color 0.3s;
}

.menupoint:hover {
    background: var(--subheader-blue);
    color: white;
}

.menupoint.aktiv {
    background: var(--main-blue);
    color: white;
    box-shadow: 0px 0px 2px 2px rgba(0, 123, 255, 0.5);
}

/* Pfeile für Untermenüs */
.menupoint::before {
    content: "▶";
    font-size: 14px;
    margin-right: 8px;
    color: #76C6FF;
    transition: transform 0.3s ease-in-out;
}

.menupoint.aktiv::before {
    transform: rotate(180deg);
    color: white;
}

/* HEADER-MENÜ */
#header-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
	height: 30px; /* Feste Höhe */
    background: var(--headermenu-background);
    display: flex;
    justify-content: space-between;
    align-items: center; /* Zentrierte Inhalte */
    padding: 10px 0;
    border-bottom: 2px solid var(--main-blue); /* Unterer Rahmen */
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.4); /* Schatten nach unten */
    z-index: 1500;
}

/* Menü-Elemente */
.header-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    width: 100%;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* Trennung der Elemente */
    transition: transform 0.2s ease-in-out;
}

/* Text */
.header-text {
    color: var(--main-white);
    font-size: 15px;
    font-weight: bold;
    margin-top: 5px;
	
    transition: transform 0.2s ease-in-out;
}

/* Letztes Element ohne rechte Trennlinie */
.header-item:last-child {
    border-right: none;
}

/* Bilder */
.header-item svg {
    width: 20px;
    height: 20px;
	fill: var(--main-white);
	transition: transform 0.2s ease-in-out;
}

/* Menü-Element Hover */
.header-item:hover svg {
	fill: var(--subheader-blue);
    transform: scale(1.2);
}
/* Menü-Element Hover */
.header-item:hover .header-text {
    transform: scale(1.2);
}

/* Fester Button ganz rechts */
.header-fixed-button {
    cursor: pointer;
    flex-grow: 0; /* Nicht flexibel */
    width: 60px; /* Feste Breite */
}
/* Fester Button ganz rechts */
.header-fixed-button:hover {
    background: var(--hover-blue);
}
/* Fester Button ganz rechts */
.header-fixed-button.active {
    cursor: pointer;
    flex-grow: 0; /* Nicht flexibel */
    width: 60px; /* Feste Breite */
}
/* Fester Button ganz rechts */
.header-fixed-button.active:hover {
    background: var(--hover-blue);
}
/* Fester Button ganz rechts */
.header-fixed-button.disabled {
    background: var(--headermenu-background);
    cursor: not-allowed;
    flex-grow: 0; /* Nicht flexibel */
    width: 60px; /* Feste Breite */
}
/* Fester Button ganz rechts */
.header-fixed-button.disabled:hover {
    background: var(--headermenu-background);
}
/* Menü-Element Hover */
.header-fixed-button.disabled svg {
	fill: var(--matchcard-hover-background);
    transform: scale(1.2);
}
/* Menü-Element Hover */
.header-fixed-button.disabled:hover svg {
	fill: var(--matchcard-hover-background);
    transform: scale(1.2);
}

.flash {
	fill: var(--subheader-blue);
	background: var(--hover-blue);
    animation: flashEffect 0.5s ease-in-out;
}
.flash svg {
	fill: var(--subheader-blue);
}

@keyframes flashEffect {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Fußmenü fixiert */
#footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 5px 0px;
    width: 100%;
    background: var(--footermenu-background);
    display: flex;
    justify-content: space-around;
    border-top: 2px solid var(--main-blue); /* Oberer Rahmen */
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.4); /* Schatten nach oben */
    z-index: 1000;
}

/* Menü-Elemente */
.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    width: 100%;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* Trennung der Elemente */
    transition: transform 0.2s ease-in-out;
}

/* Letztes Element ohne rechte Trennlinie */
.footer-item:last-child {
    border-right: none;
}

/* Bilder */
.footer-item svg {
    width: 30px;
    height: 30px;
	fill: var(--main-blue);
	transition: transform 0.2s ease-in-out;
}

/* Text */
.footer-text {
    color: var(--main-white);
    font-size: 20px;
	font-weight: bold;
    margin-top: 5px;
	transition: transform 0.2s ease-in-out;
}

/* Menü-Element Hover */
.footer-item:hover svg {
	
	fill: var(--hover-blue);
    transform: scale(1.2);
}
/* Menü-Element Hover */
.footer-item:hover .footer-text {
    transform: scale(1.2);
}


/* Verstecktes Menü (bis es geöffnet wird) */
#settings-menu {
    position: fixed;
    bottom: -100px;
    right: 0px;
    width: 350px;
	max-height: calc(100vh - 100px);
    background: var(--settingsmenu-background);
    color: var(--main-white);
        padding: 0 5px 5px 5px;
    border-radius: 10px 0px 0px 0px;
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
	z-index: 6000;
	display: flex;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
	}

/* Sichtbares Menü */
#settings-menu.visible {
    bottom: 80px;
    transform: translateY(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 25px;
	font-weight: bold;
	text-shadow: 1px 1px 2px var(--main-text-shadow);
	padding: 5px;
	    flex-direction: row;
    align-content: center;
    flex-wrap: wrap;
	flex-shrink: 0; /* Der Header bleibt fest */
}
.settings-header svg {
	width: 25px;
    fill: var(--main-white);
}
.settings-text {
	height: 100%;
    max-height: calc(100vh - 140px);
    background: var(--settings-background);
    display: flex;
    align-items: flex-start;
    padding: 10px;
    gap: 10px;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
}

/* Einzelne Einstellung (Text + Switch in einer Reihe) */
.setting {
    background: var(--settings-background);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
	gap: 10px;
}

.setting .setting-beschreibung {
    display: flex;
    align-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
}

.setting .setting-beschreibung span {
	font-weight: bold;
	text-shadow: 1px 1px 2px var(--main-text-shadow);
}

.setting .setting-beschreibung sup {
    font-size: 12px;
}

.setting .setting-auswahl {

}

/* Switch-Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

/* Unsichtbarer Schalter */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Der sichtbare Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--main-background);
    transition: 0.4s;
    border-radius: 20px;
}

/* Der kleine Kreis im Switch */
.slider::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--main-white);
    transition: 0.4s;
    border-radius: 50%;
}

/* Wenn angeklickt (aktiviert) */
input:checked + .slider {
    background-color: var(--main-blue);
}

input:checked + .slider::before {
    transform: translateX(20px);
}


#setting-toast {
    position: fixed;
    bottom: -60px; /* Startposition unterhalb des Bildschirms */
    left: 50%;
    transform: translateX(-50%);
    background: var(--main-background);
    color: var(--main-white);
	text-shadow: 1px 1px 2px var(--main-text-shadow);
    padding: 10px 20px;
    border-radius: 20px;
	border: 1px solid var(--main-green);
    font-weight: bold;
	white-space: nowrap;
    opacity: 0;
    transition: bottom 0.4s ease-in-out, opacity 0.3s;
    z-index: 9999;
}
#setting-toast.visible {
    opacity: 1;
    bottom: 150px; /* Zielposition sichtbar */
}
#setting-toast.deaktiviert {
	border: 1px solid var(--main-red);
}


/* 📌 Responsive Layout */
@media (max-width: 415px) {
	.container,.matches-container {
		grid-template-columns: 1fr;
	}
	.match-card {
		width: 100%;
	}
	.header1 {
		font-size: 20px;
	}
	.header2 {
		font-size: 20px;
	}
	.subheader1 {
		font-size: 15px;
	}
	.subheader2 {
		font-size: 12px;
	}
	.formfelder {
		font-size: 12px;
	}
	.hallen-link {
		font-size: 12px;
	}
	.hallen-link-active {
		font-size: 12px;
	}
	.uhrzeiten-link {
		font-size: 12px;
	}
	.uhrzeiten-link-active {
		font-size: 12px;
	}
	.uhrzeiten-hinweis {
		font-size: 10px;
	}
}

@media (min-width: 416px) {
	.container,.matches-container {
		grid-template-columns: 1fr;
	}
	.match-card {
		width: 100%;
	}
}

@media (min-width: 650px) {
	.container,.matches-container {
		grid-template-columns: repeat(2, 1fr);
	}
	.match-card {
		width: 95%;
	}
}

@media (min-width: 1200px) {
	.container,.matches-container {
		grid-template-columns: repeat(3, 1fr);
	}
	.match-card {
		width: 90%;
	}
}

@media (min-width: 1550px) {
	.container,.matches-container {
		grid-template-columns: repeat(4, 1fr);
	}
	.match-card {
		width: 90%;
	}
}

/* RESPONSIVE: Auf kleinen Geräten nur das Bild anzeigen */
@media screen and (max-width: 1000px) {
    .footer-text {
        display: none;
	}
	.scroll-button {
		bottom: 75px;
	}
	#settings-menu.visible {
		bottom: 50px;
	}
	footer {
		margin-bottom: 40px;
	}
	
	/* Seitenmenü */
	#side-menu {
		height: calc(100vh - 90px); /* Verhindert, dass es zu groß wird */
	}

	/* Scrollbarer Bereich für das Menü */
	.menu-text {
		max-height: calc(100vh - 140px); /* 100% minus Header-Höhe */
	}
}

