@charset "utf-8";

:root {
	--hellrot:   #F6DFD4;
	--orange:    #ca8621;
	--rot:       #CA5421;
	--hellgruen: #E2F2EE;
	--tuerkis:   #5CBAA2;
	--tuerkis2:  #448a78;
	--weiss:     #FFFFFF;
	--schwarz:   #444444;
}

.clearfix {
	clear: both;
}

html {
    height: 100%;
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
}

body {
	font-size: 15px;
	font-family: Arial, Helvetica, sans-serif;
	margin: 0;
	padding: 0;
	height: 100%;
	min-height: 100%;
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	grid-template-areas: 
	"header"
	"navi"
	"main"
	"footer";
}

#abdunkeln {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
	z-index: 10000;
}

#overlay {
	position: fixed;
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
	z-index: 10000;
	padding-top: 50px;
	text-align: center;
}

h1 {
	color: var(--schwarz);
	font-size: 180%;
	font-weight: 600;
	margin-bottom: 10px;
}

#main h1 {
	margin-left: 10px;
}

h2 {
	color: var(--schwarz);
	font-size: 150%;
	font-weight: 600;
}

p {
	line-height: 130%;
}

textarea {
	font-size: 18px;
	font-family: Arial, Helvetica, sans-serif;
	resize: none;
}

label {
	display: inline-block;
	width: 120px;
	font-size: 90%;
}

small {
	font-size: 70%;
	font-weight: normal;
}

.links {
	text-align:left;
}

.ticketlink {
	position: absolute;
	right: 0;
}

.ticketlink img {
	width: 60px;
}

.rechts,
.right {
	text-align: right;
}

.zentriert {
	text-align: center;
}

input[type='text'].short {
	width: 150px;
}

input[type='text'].medium {
	width: 300px;
}

a,
a:visited {
	color: teal;
	text-decoration: none;
}

a:hover {
	color: var(--rot);
	cursor: pointer;
}

#vlogo {
	position: relative;
	width: 300px;
	height: 300px;
}

#main {
	display: block;
}


#ichhabeeinefrage {
	display: none;
}

#land {
	text-transform: uppercase;
}

div.eventcontainer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 30px;
	row-gap: 30px;
}

article.event {
	width: 100%;
	background-color: lightcyan;
	position: relative;
	overflow: hidden;
	padding-bottom: 15px;
	z-index: 0;
}

article.event h2 {
	background-color: teal;
	color: white;
	font-size: 120%;
	font-weight: bold;
	text-align: center;
	margin: 0;
	padding: 5px 0;
}

article.event div.eventtop {
	width: 100%;
	padding: 0;
	margin: 0;
	height: 80px;
	max-height: 80px;
	overflow: hidden;
}

article.event h3.titel {
	color: teal;
	font-size: 130%;
	font-weight: bold;
	text-align: center;
	margin: 5px 0;
	overflow: hidden;
}

article.event h4 {
	text-align: center;
	margin: 5px 0;
}

article.event h4.untertitel {
	overflow: hidden;
	margin: 0;
}

article.event p {
	text-align: center;
}

article.event img.eventimg {
	width: 100%;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	background-color: lightslategray;
	object-fit: contain;
	object-position: center;
}

article.event div.readmore {
	position: absolute;
	bottom: 0;
	width: 0;
	height: 0;
	margin-left: calc(50% - 30px);
	border-top: solid 20px tomato;
	border-left: solid 30px transparent;
	border-right: solid 30px transparent;
	cursor: pointer;
}

article.event div.text {
	display: none;	
}

#eventinfo {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0,0,0,0.8);
	box-sizing: border-box;
	padding: 30px;
	color: white;
	transition: all 0.5s ease-in-out;
	z-index: 3000;
	background-image: url("/img/close.png");
	background-size: 30px;
	background-position: calc(100% - 10px) 10px;;
	background-repeat: no-repeat;
	overflow: auto;
}

#eventinfo h2, 
#eventinfo h3 {
	color: white;
}

article.event div.text.show {
	display: block;
	width: 100vw;
	height: 100vh;
}

input[type='text'],
input[type='number'],
input[type='tel'],
input[type='email'],
input[type='password'] {
	padding: 5px;
	font-size: 100%;
	width: 100%;
	max-width: 500px;
}

input[type='number'] {
	text-align: right;
}

input[type='text']:required:invalid,
input[type='number']:required:invalid,
input[type='tel']:required:invalid,
input[type='email']:required:invalid,
input[type='password']:invalid {
	background-color: lightsalmon;
}

input[type='submit'],
input[type='button'], 
button {
	box-sizing: border-box;
	padding: 8px 50px;
	cursor:pointer;
	background-color: var(--tuerkis);
	transition: all 0.3s ease-in-out;
	font-size: 120%;
	color: var(--schwarz);
	border-radius: 5px;
}

input[type='text']:focus,
input[type='tel']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='checkbox']:focus {
	background-color: var(--hellrot) !important;
}

input[type='submit']:hover,
input[type='button']:hover {
	background-color: var(--rot);
	color: var(--weiss);
}

input[type='button'].storno {
	padding: 4px 5px;
	background-color: var(--rot);
	color: var(--weiss);
}

input[type='button'].storno:hover {
	background-color: var(--hellrot);
}

#scrollup {
	position: fixed;
	width: 0;
	height: 0;
	border-bottom: solid 40px var(--orange);
	border-left: solid 20px transparent;
	border-right: solid 20px transparent;
	transition: all 0.5s ease-in-out;
	bottom: 30px;
	right: 30px;
	opacity: 0; 
	cursor: pointer;
	z-index: 2000;
	display: none;
}

#scrollup.show {
	opacity: 1.0;
}

#scrollup:hover {
	border-bottom-color: var(--rot);
}

#erforderlich {
	display:inline-block;
	background-color:var(--rot);
	padding: 4px 10px; 
	margin-left: 50px;
}

ul,
ol {
	margin-left: 10px;
	padding-left: 10px;	
}

table {
	border-collapse: collapse;
}

table thead tr {
	background-color: var(--tuerkis);
}

table thead tr th {
	padding: 5px;
}

th, td {
	vertical-align: top;
	padding: 5px 5px 5px 10px;
}

.tabelle tbody tr:nth-child(odd),
table.liste tbody tr:nth-child(even) {
	background-color: var(--hellgruen);
}

table.tabelle tbody td,
table.liste td {
	padding-top: 5px;
	padding-bottom: 5px;
}

#logout {
	float: right;
	width: 50px;
	height: auto;
	cursor: pointer;
	margin-right: 20px;
}

#logout:hover {
	-webkit-filter: hue-rotate(150deg);
	filter: hue-rotate(150deg);
}

header {
	grid-area: header;
	width: 100%;
	aspect-ratio: 3.51;
	box-sizing: border-box;
	display: block;
	position: relative;
	padding: 10px;
	background-image: url("/img/konzert.jpg");
	background-size: cover;
	background-position: center;
	border-bottom: solid 3px black;
}

header h1 {
	font-size: 10vw;
	color: turquoise;
	font-weight: bold;
	text-shadow: 3px 3px rgba(0,0,0,0.5);
	text-align: center;
	margin-bottom: 0;
}

header h2 {
	font-size: 4vw;
	color: yellow;
	text-align: center;
	margin: 0;
}

#navibutton {
	position: absolute;
	top: 75px;
	right: 40px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background-color: var(--tuerkis);
	background-image: url("/img/menu.png");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
	transition: all 0.5s ease-in-out;
}

#navibutton:hover {
	background-color: var(--rot);
}

nav {
	grid-area: navi;
}

nav ul {
	height: auto;
	max-height: 0;
	overflow: hidden;
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: turquoise;
	list-style: none;
	position: relative;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: stretch;
}


nav ul li {
	height: auto;
	list-style: none;
	flex: 1 1 auto;
	border-top: solid 2px white;
}

nav ul li.active a {
	color: white;
}

nav ul li:not(:last-child) {
	border-right-width: 2px;
	border-right-style: solid;
	border-right-color: #FFF;	
}

nav ul li a,
nav ul li a:visited {
	display: block;
	width: 100%;
	padding: 10px 0 10px 0;
	text-align: center;
	color: black;
	font-size: 120%;
	font-weight: bold;
	text-decoration: none;
	transition: all ease-in-out 0.5s;
}	

nav ul li:hover a {
	background-color: goldenrod;
}

#main {
	grid-area: main;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 10px;
	margin: 0 auto;
	position: relative;
}

#main.flex {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	column-gap: 30px;
	row-gap: 30px;
}

footer {
	grid-area: footer;
	box-sizing: border-box;
	position: relative;
	padding: 10px;
    width: 100%;
	height: auto;
	margin-top: 20px;
	background-color:#444;
	color:#fff;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 30px;
	row-gap: 30px;
}

footer article {
	flex: 1;
	min-width: 300px;
}

footer a,
footer a:visited {
	text-decoration: none;
	color: turquoise;
}

footer a:hover {
	color: rgb(130, 200, 215);
	text-decoration: underline;
}

footer h2 {
	color: white;
	font-size: 16px;
	font-weight: bold;
}

footer p {
	margin: 5px 0;
}


input[type="checkbox"] {
	transform: scale(2);
	padding: 10px;
	margin-right: 20px;
	margin-left: 15px;
	margin-top: 6px;
	cursor: pointer;
}

input[type="radio"] {
	transform: scale(2);
	padding: 10px;
	margin-right: 20px;
	margin-left: 15px;
	margin-top: 6px;
	cursor: pointer;
}

.edit,
.del {
	width: 25px;
	height: 25px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
}

.edit {
	background-image: url('/img/edit.png');
}

.del {
	background-image: url('/img/del.png');
}

.preview {
	width: 300px;
}

a.zurueck {
	display: block;
	padding: 10px 20px;
	color: white;
	background-color: teal;
	float: right;
	border-radius: 5px;
	z-index: 100;
}

@media only screen and (min-width: 800px) {

	#scrollup {
		display: block;
	}

	#navibutton {
		display: none;
	}

	nav ul {
		max-height: none;
		flex-direction: row;
		flex-wrap: wrap;
	}

	nav ul li {
		border-top: none;
	}

	article.event {
		flex: 1;
		min-width: calc((100% - 30px) / 2);
		max-width: calc((100% - 30px) / 2);
	}
	
	article.event img.eventimg {
		width: 100%;
		max-width: none;
		aspect-ratio: 1;
	}

	#registernavi {
		position: relative;
		height: 40px;
		width: calc(100% - 150px);
	}

	.registerbutton {
		color: #FFF;
		background-color: darkgrey;
		text-align: center;
		float: left;
		height: 25px;
		margin-right: 1px;
		margin-bottom: 1.5px;
		padding: 5px 10px;
		width: 120px;
		cursor: pointer;
	}

	.registerbutton:hover {
		background-color: gray;
		color: #FFF;
	}

	.registerbutton.active {
		background-color: darkslategray;
	}

	.registerbutton.save {
		background-color: orange;
		color: #FFF;
	}

	.registerbutton.save:hover {
		background-color: orangered;
	}

	.register {
		display: block;
		position: absolute;
		box-sizing: border-box;
		opacity: 0;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		padding: 0 10px 10px 10px;;
		z-index: 0;
		transition: all 0.5s ease-in-out;
	}

	.register.active {
		position: relative;
		opacity: 100;
		max-height: 3000px;
		z-index: 1;
		background-color: var(--weiss);
	}		
			
}


@media only screen and (min-width: 1200px) {

	header {
		box-sizing: border-box;
		padding-left: calc(50% - 600px);
		padding-right: calc(50% - 600px);
		max-height: 300px;
	}

	header h1 {
		font-size: 150px;
		margin-top: 70px;
	}

	header h2 {
		font-size: 40px;
	}

	nav {
		box-sizing: border-box;
		padding-left: calc(50% - 600px);
		padding-right: calc(50% - 600px);
		height: auto;
		background-color: var(--tuerkis);
	}

	#main {
		max-width: 1200px;
		margin-left: calc(50% - 600px);
		margin-right: calc(50% - 600px);
	}

	article.event {
		min-width: calc((100% - 90px) / 4);
		max-width: calc((100% - 90px) / 4);
	}
	
	article.event img.eventimg {
		width: 100%;
		max-width: 100%;
		width: auto;
	}

	footer {
		padding-left: 20px;
		padding-right: calc(50% - 600px);
	}
	
}