html{
height:100%;
width:100%;	
background-attachment: fixed;
background-image: url("../img/stadion1.jpg");
background-repeat:no-repeat;
background-size:100% 100%;
background-position: center center;
background-size: cover;
}

body{
margin: 0 auto;	
width: 1000px;
min-height:80%;
text-align:center;
border-color: black;
border-style: solid;
border-width: 0px 1px 0px 1px;
font-family:sans-serif;
font-size:16px;
background-color: white;

}

p{
	hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-wrap: break-word;
}

button{
	font-weight: bold;
}

.div_news{
	width: 650px;
 	text-align:justify;	
}

.div_news p{
 -webkit-hyphens: auto; 
 hyphens: auto; 
 }


.schale_image{
	margin-left: -500px;
    margin-top: 2px;
    width: 100px;
    position: absolute;	
}

.pokal_image{
	margin-left: 142px;
	margin-top:5px;
	width:50px;
	position:absolute;	
}


.spieler_des_tages{
	width:200px;
	position:left;	
}

.spieler_des_tages_banner{
	width:300px;
	position:absolute;
	margin-left:-250px;
	margin-top:245px;
}

#tabelle{
	border: 1px solid black;
	width: 580px;
	padding: 10px;
	border-collapse: collapse;
}

#tabelle td, th{
text-align:left;
font-size: 16px;
height: 30px;
padding:5px;
}

.tabelle_news{
	border-collapse:collapse;
	margin-bottom: 20px;
	width: 650px;
}

.tabelle_news td{
	border:1px solid black;
	border-collapse:collapse;
	text-align:center;
}

.table_liveticker{
	border: 1px solid black;
	width: 700px;
	padding: 10px;
	border-collapse: collapse;
	font-size: 14px;
}

footer{
height:100px; padding-top:40px;

}

a{
	text-decoration:none;
	color: inherit;	
}

footer{
background-color:#B6B6B6;
margin-top: 30px;
border-top:1px solid black;
	
}

tr {
transition: all .2s ease-out;	
}

p{
	text-align:justify;
}

.klein-img-artikel{
width:200px;

 	
}

.bilder_header{
	width: 100%;
	text-align:center;
	font-size: 22px;
	background-color: black;
	color: white;
	padding-top:5px;
	padding-bottom:5px;
	margin-top: 10px;
	margin-bottom: 10px;	
}

.bilder_div {
    text-align: center;
}

.thumbnail-galerie {
    position: relative;
    display: inline-block;
    width: 145px;
    height: 110px;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid black;
    border-radius: 5px;
}

.thumbnail-galerie img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.thumbnail-galerie img.portrait {
  width: 100%;
  height: auto;
  
}

.border-bottom td{
	border-bottom:1px solid black;
	padding:2px;	
}

		.thumbnail-einstellungen {
  position: relative;
  width: 147px;
  height: 100px;
  overflow: hidden;
  float:left;
  margin: 15px;
border: 1px solid black;
border-radius:5px;

  
}

.thumbnail-einstellungen img {
 
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: auto;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}
.thumbnail-einstellungen img.portrait {
  width: 100%;
  height: auto;
  
}

.div_einstellungen{
	border: 1px solid black;
	padding: 20px; 
	width: 400px; 
	margin: 10px;
}

.teams_table{
	border: 1px solid black;
	width: 650px;
	padding: 10px;
	border-collapse: collapse;	
	cursor:pointer;
}

.teams_info_button{
	cursor:pointer;	
}

.team-row {
    background-color: #E1E0E0;
}

.team-logo {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.team-logo-img {
    max-width: 40px;
    width: 100%;
    height: auto;
}

.team-name {
    padding: 8px;
}

.team-button {
    width: 1%;
    white-space: nowrap;
}

#header{background:#1E262D;width:100%;position:relative}
#header:after{content:"";clear:both;display:block}

.menue{
	width: 100%;
}

nav{
	text-align:center;
}
nav ul{
	position:relative;
	padding-inline-start: 0px;
    margin-block-start: -15px;
	margin: auto;
	display: inline-block;
	padding-bottom:-2px;
}
nav li{
	list-style:none;
	float:left;
}
nav .dropdown{position:relative}
nav li a{
	float:left;
	padding: 20px;
	margin-bottom: -4px;
}
nav li a:hover{background:#2C3E50}
nav li ul{display:none}
nav li:hover ul{display:inline}
nav li li{float:none}
nav .dropdown ul{
	position:absolute;
	left:0;
	top:107%;
	background:#1E262D;
	padding:20px 0;
	border-bottom:3px solid #34495e;
	width: 150px;

}
nav .dropdown li{white-space:nowrap}

nav .dropdown li a{
	padding:10px 35px;
	font-size:13px;
	min-width:80px;
}
nav .mega-dropdown{width:100%;position:absolute;top:100%;left:0;background:#fff;overflow:hidden;padding:20px 35px;border-bottom:3px solid #34495e}
nav li li a{float:left;color:white;display:block;padding:8px 10px;border-radius:3px;font-size:13px}
nav li li a:hover{color:black;background:#FAFBFB}
.mega-col{width:25%;float:left}

nav a{
	text-decoration:none;
	color:#fff;
	text-transform:uppercase;
	font-weight: bold;
}	

#menu-icon {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -12px;
    margin-right: 30px;
    display: none;
    cursor: pointer;
}

.logo{
	background-color:white !important;
}
.logo img{
	height: 100px;
	padding:10px;
}

.div_impressum{
	width: 650px;
}

.table_spieltage{
	border: 1px solid black;
	width: 700px;
	padding: 10px;
	border-collapse: collapse;
	font-size: 14px;	
}

.table_spieltage img{
	height: 40px;
}

.table_pokal_historie{
	width: 700px; padding: 10px; border-collapse: collapse; text-align:left;
}

.table_hallenrunde_historie{
	width: 500px;
	padding: 10px;
	border-collapse: collapse;
	text-align:left;
	font-weight:bold;	
}

.table_hallenrunde_historie td{
	vertical-align: middle;	
}




.login_button{
	display:none;
}

.spieler_hinzu{
	font-size: 22px;	
}

.spieler_hinzu input{
	font-size: 22px;
	text-align:center;	
}

.spieler_hinzu button{
	font-size: 22px;
	text-align:center;	
}

.auswahl_table{
  border: 1px solid black;
  width: 700px;
  padding: 10px;
  border-collapse: collapse;
  font-size: 14px;
}

.einstellungen_spiel_table{
	width: 650px;
	padding: 10px;
	border-collapse: collapse;
	font-size: 14px;
	border: 1px solid grey;
}

.auswahl_table img{
  width: 40px;
}

.einstellungen_spiel_table_torschuetzen{
	width:650px;
	table-layout:auto;
}

.td_torschuetzen{
	width:52%;	
}

.auswahl_torschuetzen_aendern{
	font-size: 18px;
}



@media only screen and (max-width: 900px) {
	
	html{
		background-image: none;	
	}
	
	body{
		width: 100%;
		min-width: 0px;
		border: none;
	}
	
	.logo{
		float:left;
		text-align:left;
		height: auto;
		background-color:transparent !important;
	}
	
	.logo a{
		display:block;
		padding:0 0 0 45px
	}
	
	.logo img{
		height: 80px;
		padding:0;
	}


	/* ==========================================
	   MOBILES MENÜ
	   ========================================== */

	nav{
		display:none;
		width:100%;
		clear:both;
		float:none;
		max-height:calc(100vh - 100px);
		overflow-y:auto;
		padding:12px 10px 18px 10px;
		box-sizing:border-box;
	}

	#header{
		background:#878787;
		width:100%;
		position:relative;
	}
	
	#header:after{
		content:"";
		clear:both;
		display:block
	}


	/* ==========================================
	   HAMBURGER
	   ========================================== */

	#menu-icon {
		display: block;
		position: absolute;
		top: 30px;
		right: 0px;
		width: 50px;
		height: 50px;
		cursor: pointer;
		z-index: 1000;
	}

	#menu-icon span {
		display: block;
		position: absolute;
		left: 50%;
		width: 30px;
		height: 4px;
		background: white;
		border-radius: 2px;
		transition: all 0.3s ease;
		transform-origin: center;
		transform: translateX(-50%);
	}

	#menu-icon span.first { 
		top: 12px; 
	}
	
	#menu-icon span.second { 
		top: 50%; 
		transform: translate(-50%, -50%); 
	}
	
	#menu-icon span.third { 
		bottom: 12px; 
	}


	/* X Animation */

	#menu-icon.active .first {
		top: 50%;
		transform: translateX(-50%) rotate(45deg);
	}

	#menu-icon.active .second {
		opacity:0;
	}

	#menu-icon.active .third {
		bottom:auto;
		top:50%;
		transform: translateX(-50%) rotate(-45deg);
	}


	/* ==========================================
	   MENÜ-INHALT
	   ========================================== */

	nav ul{
		float:none;
		width:100%;
		margin:0;
		padding:0;
		display:block;
	}

	nav li{
		float:none;
		width:100%;
		margin:0;
		padding:0;
		text-align:left;
	}

	#header nav ul li a{
		float:none;
		display:flex;
		align-items:center;
		width:100%;
		box-sizing:border-box;

		color:white;
		background:#27292b;

		text-transform:uppercase;
		font-weight:bold;
		font-size:15px;

		padding:7px 16px;
		margin:4px 0;

		border-radius:7px;
		border:1px solid #34495e;

		transition:
			background 0.2s ease,
			transform 0.15s ease;
	}

	#header nav ul li a:hover{
		background:#2C3E50;
		color:white;
		transform:translateX(3px);
	}


	/* ==========================================
	   ICONS
	   ========================================== */

	.mobil_icon{
		display:inline-flex;
		align-items:center;
		justify-content:center;

		width:30px;
		min-width:30px;
		height:30px;

		margin-right:12px;

		font-size:17px;

		background:#34495e;
		border-radius:6px;
	}


	/* ==========================================
	   SONSTIGES / UNTERMENÜ
	   ========================================== */

	#header nav ul li.dropdown > a{
		margin-bottom:4px;
	}

	#header nav ul ul{
		display:block;
		position:static;

		width:calc(30% - 15px);

		margin:0 0 6px 15px;
		padding:2px 0 2px 10px;

		background:transparent;
		border:none;

		border-left:2px solid #34495e;
	}

	#header nav ul ul li a{
		background:#29343d;

		font-size:13px;
		font-weight:bold;

		text-transform:none;

		padding:11px 14px;

		margin:3px 0;

		border:1px solid #3a4853;
	}

	#header nav ul ul .mobil_icon{
		display:none;
	}


	/* ==========================================
	   RESTLICHE MOBILE EINSTELLUNGEN
	   ========================================== */

	.anmeldung{
		display:none;	
	}
	
	.small_header{
		display:none !important;
	}
	
	.div_news{
		width: 95%;
	}
	
	#tabelle{
		border: none;
		width:97%;
	}
	
	#tabelle td, th{
		font-size: 12px;
		padding:3px;
	}

	#tabelle img{
		width:25px;
		height: auto;
	}
	
	table{
		max-width:100%;	
	}
	
	img{
		max-width:100%;	
	}
	
	.schale_image{
		display: none;	
	}

	.pokal_image{
		display: none;
	}
	
	.small_header {
		width: 100% !important;
	}
	
	.teams_table{
		border: none;
		width:100%;
	}
	
	.teams_table img{
		height:auto;
		width: 40px;	
	}
	
	.teams_info_button{
		display:none;	
	}
	
	.tabelle_news{
		width:100%;
	}
	
	.div_impressum{
		width: 95%;
	}
	
	.table_spieltage{
		border: none;
		border-bottom: 3px solid black;
		width: 100%;
		padding: 0;	
	}
	
	.table_spieltage img{
		height:auto;
		width: 20px;
	}
	
	.li_impressum{
		margin-top: 100px;	
	}
	
	.table_pokal_historie{
		width: 100%; 
		padding: 0;
	}
	
	.table_hallenrunde_historie{
		width: 100%; 
		padding: 0;	
	}
	

	.bilder_header{
		width:100%;
		text-align:center;
		font-size: 22px;	
	}

	.thumbnail-galerie {
		position: relative;
		width: 80%;
		height: 270px;
		float:none;
		margin:10px;
		border: 1px solid black;
		border-radius:5px;
	}

	.bilder_div{
		width:100%;
		height:auto;
	}
  
	p {
		padding:5px;
	}

	.login_button{
		display:block;
	}

	.anmeldung_einstellungen{
		width:100%;
		text-align:center;
		margin-top: 20px;
	}

	.anmeldung_einstellungen table{
		width: 100%;
		max-width: 300px;
	}

	.anmeldung_einstellungen input{
		width: 80%;
		height: 30px;
		text-align:center;
	}

	.anmeldung_einstellungen button{
		width: 83%;
		font-size: 18px;
		margin-top:20px;
		max-width: 300px;
	}

	.div_einstellungen{
		width:90%;
		margin: auto;
		margin-bottom:10px;
		padding: 0px;
		padding-top: 10px;
		padding-bottom: 10px;
	}
  
	.auswahl_table{
		width: 100%;
		padding: 0px;
	}

	.auswahl_table img{
		width: 40px;
	}

	.einstellungen_spiel_table{
		width: 100%;
	}

	.einstellungen_spiel_table_torschuetzen{
		width:100%;	
	}

	.auswahl_torschuetzen_aendern{
		font-size: 12px;
		width:100%;
	}
	
	.table_liveticker{
		width: 98%;
	}

	.team-button button {
        font-size: 12px;
        padding: 6px 8px;
    }

    .team-name {
        font-size: 14px;
    }
}


/* Spielerübersicht */

.spieler_liste {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
    margin: 20px auto;
}

.spieler_karte {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease-out;
}

.spieler_karte:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.spieler_bild {
    width: 65px;
    height: 87px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ddd;
    display: block;
    margin: 0 auto 10px auto;
}

.spieler_name {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.spieler_vorname {
    font-size: 13px;
    color: #555;
}

.spieler_tore {
    margin-top: 7px;
    font-size: 13px;
    font-weight: bold;
}

.spieler_pokal {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}


/* Mobil */

@media only screen and (max-width: 900px) {

    .spieler_liste {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 95%;
    }

    .spieler_bild {
        width: 65px;
        height: 87px;
    }

}

.spieler_admin_bild {
    position: relative;
    width: 35px;
    height: 48px;
    display: inline-block;
}

.spieler_admin_bild img.spielerfoto {
    width: 35px;
    height: 48px;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 4px;
    display: block;
}

.spieler_bild_stift {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #aaa;
    background: white;
    color: #333;
    font-size: 16px;
    line-height: 21px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.spieler_bild_stift:hover {
    background: #eee;
}

.spieler_bild_modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.spieler_bild_modal_inhalt {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 320px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.spieler_bild_modal_inhalt input[type=file] {
    width: 100%;
    margin: 15px 0;
}

.spieler_bild_modal_schliessen {
    float: right;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
}

.spieler_bild_loeschen_popup {
    background: white;
    color: #c00;
    border: 1px solid #ccc;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
}

.spieler_bild_loeschen_popup:hover {
    background: #eee;
}

.spieler_loesch_button {
    width: 40px;
    height: 40px;
    padding: 8px;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spieler_loesch_icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    display: block;
}

.spieler_speicher_button {
    width: 40px;
    height: 40px;
    padding: 8px;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spieler_speicher_icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    display: block;
}

@media only screen and (max-width: 900px) {

    .spieler_admin_kopf {
        display: none;
    }

    /* Speichern */

    .spieler_speicher_button {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .spieler_speicher_icon {
        width: 20px !important;
        height: 20px !important;
        display: block !important;
    }


    /* Löschen */

    .spieler_loesch_button {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .spieler_loesch_icon {
        width: 20px !important;
        height: 20px !important;
        display: block !important;
    }


    /* Namen untereinander */

    .spieler_admin_namen {
        min-width: 0;
        width: 100%;
    }

    .spieler_admin_input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: block;
		font-size: 18px;
		border: 1px solid grey;
    }

    .spieler_admin_vorname {
        margin-top: 4px;
    }

	.spieler_admin_zeile {
        border-bottom: 1px solid #bbb;
    }

    .spieler_admin_zeile td {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}