body {
	font-family: Arial, Helvetica, Sans-Serif;
	color: #000;

	line-height: 130%;

	margin: 0px auto;
	text-align: center;
	background: url(HIntergrund.jpg) top center no-repeat;
	background-size: cover;
	/* Skaliert das Hintergrundbild, um den gesamten Bildschirm zu bedecken */
	background-attachment: fixed;
	min-height: 100vh;


}





#webseitewrapper {
	text-align: left;
}

p,
ul,
td {

	color: white;
	font-style: normal;
	line-height: 130%;
	margin: 10px auto;
	text-align: left;
}

h3,
h4 {
	margin: 0 auto;
	text-align: left;
	padding: 0;
}

#nav {
	font-weight: bold;

	text-decoration: none;
	background-color: #3e3e42;
	color: white;
	padding-bottom: 5px;
	min-height: 50vh;
}

a.nav {
	font-weight: bold;

	text-decoration: none;
}

a.nav:active {
	font-weight: bold;

	text-decoration: none;
	color: white;
}

a.nav:visited {
	font-weight: bold;

	text-decoration: none;
	color: white;
}

a.nav:hover {
	font-weight: bold;

	text-decoration: none;
}

.schwarz {
	background: #D6D6D6;
}

.rot {
	background: #FFD6D6;
}

.gold {
	background: #FFF8D6;
}



/* Tunke 2024 */
div.container {
	font-family: Raleway;
	margin: 0 auto;
	padding: 1em 3em;
	text-align: center;
}

div.container a {
	color: #FFF;
	text-decoration: none;
	font: 20px Raleway;
	margin: 0px 10px;
	padding: 10px 10px;
	position: relative;
	z-index: 0;
	cursor: pointer;
}

.teal {
	background: #89b915;
}

/* Border from Y to X  */
div.borderYtoX a:before,
div.borderYtoX a:after {
	position: absolute;
	opacity: 0.5;
	height: 100%;
	width: 2px;
	content: '';
	background: #FFF;
	transition: all 0.3s;
}

div.borderYtoX a:before {
	left: 0px;
	top: 0px;
}

div.borderYtoX a:after {
	right: 0px;
	bottom: 0px;
}

div.borderYtoX a:hover:before,
div.borderYtoX a:hover:after {
	opacity: 1;
	height: 2px;
	width: 100%;
}



/* Dropdown Container */
.dropdown {
	display: inline-block;
	position: relative;
}

/* Dropdown Button */
.dropbtn {
	background-color: #89b915;
	color: white;
	padding: 16px;

	border: none;
	cursor: pointer;
}

/* Dropdown Content (hidden by default) */
.dropdown-content {
	display: none;
	position: absolute;
	background-color: #89b915;
	margin: 5px 13px;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
	background-color: #89b915;
	opacity: 0.7;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
	display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
	background-color: #89b915;
}

div#nav div.borderYtoX.container.teal div.dropdown div.dropdown-content a {

	margin: 0 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
.sregeln li,
.imp,
b {
	color: white !important;
	font-family: Raleway;
}

.imp,

#textbausteine_5 {
	margin: 0 10% 5% 10%;
}

.sregeln {
	margin: 10% 10% 5% 10%;
}

#textbausteine_4,
.aktuell1,
.ranking {
	margin: 0 10%;
}

#webseite,
.sign {
	margin: 5% 15%;
}


.save input,
td[align='left'][valign='top'] input[type='submit'][value='Eintragen'],
td[align='left'][valign='top'] input[type='submit'][value='Login'] {
	width: 100%;
	height: 30px;
	background-color: #89b915;
}

.save input:hover,
td[align='left'][valign='top'] input[type='submit'][value='Eintragen']:hover,
td[align='left'][valign='top'] input[type='submit'][value='Login']:hover {
	opacity: 0.7;
}

.save {
	display: flex;
	justify-content: center;
	margin: 10px;
}

.sqlakt,
.spielregeln {
	display: flex;
	justify-content: center;
}

a {
	text-decoration: none;
	text-transform: none;
}

a:link {
	color: #007acc;
	/* Farbe für normale Links */
}

a:visited {
	color: #007acc;
	/* Gleiche Farbe für besuchte Links */
}

a:hover {
	color: red;
}



#FormLogin td[colspan="2"] b {

	color: black;
}

table tr:first-child td[colspan="2"] b,
tr.schwarz td,
tr.rot td,
tr.gold td,
table tr:first-child td[colspan="2"] b {
	color: black !important;
}

table tr:first-child td[colspan="2"] b {
	font-size: 16px;
	font-weight: bold;
	display: flex;
	justify-content: center;
	padding: 1%;
}


#save-message {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 150px;
	border-radius: 10px;
	text-align: center;
	z-index: 1000;
	/* Stellt sicher, dass es vor anderen Elementen angezeigt wird */
}

/* Optional: Versteckt die Meldung nach x Sekunden */
#save-message {
	animation: fadeOut 10s forwards;
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		display: none;
	}
}


@media (max-width:520px) {
	#nav {
		height: 70vh;
	}

	div#nav div.sign {
		transform: scale(1.3);
		margin: 17% 15%;
	}
}

.hintergrund {
	background-color: #3e3e42;

}

img[src='images/WM_2024.jpg'] {
	width: 100%;
}

div#webseite div#webseitewrapper h3 {
	text-align: center;
	width: 100%;
}


@media (max-width: 775px) {
	body {
		/* width: 100%; */
		margin: 0;
		overflow-x: hidden;
	}

	/* #backcon {
		height: 100%;
	} */
}

@media (min-width:700px) {
	.sign {
		margin: 5%;
	}
}

@media (max-width:600px) {
	.hintergrund {
		width: 100%;
	}

	.sign {
		margin: 5%;
	}

	#FormAnmelden[action='/anmelden.php'] tbody tr td input {
		width: 80%;
	}
}

@media (max-width:500px) {
	div#backcon div.borderYtoX.container.teal {
		width: 100%;
		padding: 1em 0em;
	}

	div.borderYtoX.container.teal a {
		margin: 0px 0px;
	}

	select[name='tgid'] {
		width: 80%;
	}
}

@media (max-width:380px) {
	div.borderYtoX.container.teal a {
		padding: 0px 0px;
	}
}

body {
	height: 100%;
}

@media (min-width:900px) {
	body {
		width: 60%;
	}
}


[action='spielplan.php?tgid=1'] table tbody tr td:first-child {
	width: 4px;
}

[action='spielplan.php?tgid=1'] table tbody tr td:nth-child(2) {
	width: 200px;
}

[action='spielplan.php?tgid=1'] table tbody tr td:nth-child(3) {
	width: 200px;
}

div#backcon[style='text-align: left;'] table[cellpadding='5'][cellspacing='0'][style='width:750px;align-items: center;margin: auto;'],
div#backcon[style='text-align: left;'] table[cellpadding='5'][cellspacing='0'][style='width:750px;'] {
	margin: auto;
}

input[name='submit'][onclick='showSaveMessage()'][type='submit'][value='Speichern'] {
	height: 70px;
	border-radius: 15px 15px 15px 15px;
}

div.hintergrund[style='text-align:center;'] div#backcon[style='text-align: left;'] form[action='spielplan.php?tgid=1'][method='post'] {
	margin: 10px
}

div.sign form#FormAnmelden[action='/anmelden.php'][method='post'][name='FormAnmelden'],
div#webseitewrapper form#FormLogin[action='/index.php'][method='post'][name='FormLogin'] {
	display: flex;
	justify-content: center;
}


div#backcon[style='text-align: left;'] table[cellpadding='5'][cellspacing='0'][style='background: black;'] {
	width: 100%;
}

@media (max-width:1000px) {

	div.borderYtoX a:before,
	div.borderYtoX a:after {
		opacity: -0.5;
	}
}

.tipp1,
.tipp3 {
	width: 100px;
}

.tipp2,
.tipp4 {
	width: 275px;
}

@media (max-width:1000px) {

	.tipp2 {
		display: none;
	}

}

@media (max-width:750px) {
	.tipp1 {
		width: 10%;
	}

	.tipp2 {
		width: 27%;
	}
}


body[cz-shortcut-listen='true'] div.hintergrund[style='text-align:center;'] div#backcon[style='text-align: left;'] table[cellpadding='5'][cellspacing='0'],
body[cz-shortcut-listen='true'] div.hintergrund[style='text-align:center;'] div#backcon[style='text-align: left;'] table[cellpadding='5'][cellspacing='0'] {
	display: flex;
	justify-content: center;
}


div#backcon[style='text-align: left;'] table[cellpadding='5'][cellspacing='0'][style='background: black;'] {
	min-height: 200px;
}

.dropdown-content {
	margin: 5px 0px;
}

@media (max-width:551px) {
	div#backcon[style='text-align: left;'] form[action='spielplan.php?tgid=1'][method='post'] table[cellpadding='5'][cellspacing='0'][style='width:100%;'] tbody tr.schwarz td:nth-child(3) {
		width: 210px;
	}

	form[action='spielplan.php?tgid=1'][method='post'] table tbody tr td:nth-child(6) {
		display: none;
	}
}

body {
	font-family: Arial, Helvetica, Sans-Serif !important;
}

@media (max-width:520px) {

	table.rangliste1 tbody tr td:nth-child(3),
	table.rangliste1 tbody tr td:nth-child(4),
	table.rangliste1 tbody tr td:nth-child(5) {
		display: none;
	}
}

@media (max-width:520px) {

	.ranking2 tbody tr td:nth-child(3),
	.ranking2 tbody tr td:nth-child(4),
	.ranking2 tbody tr td:nth-child(5) {
		display: none;
	}
}

@media (max-width:475px) {
	.spielpplan > tbody > tr > td:nth-child(1) {
	/*.spielpplan tbody tr td:nth-child(1) {*/
		display: none;
	}
}

@media (max-width:400px) {

	.spielpplan tbody tr td:nth-child(6) {
		display: none;
	}
}

div.hintergrund[style='text-align:center;'] div#backcon[style='text-align: left;'] p {
	display: flex;
	justify-content: center;
}