
/* format of header */

header > section > a:first-of-type,
header .title,
header > section > nav {
	position: absolute;
	left: 50%;
	width: max-content;

	-ms-transform: translate(-50%,-50%);
	-webkit-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
}

header .title {
	z-index: 48;
	text-transform: uppercase !important;
}

header .sub {
	opacity: 0.8;
	font-weight: normal !important;
	text-transform: none !important;
}

header > section > a:first-of-type {
	z-index: 47;
	top: 50%;
}

#emblem {
	opacity: 0.1;
	height: 280px;
}

#carousel {
	position: absolute;
	top: 0;
	-webkit-filter: brightness(66.66%);
	filter: brightness(66.66%);
}

#carousel img {
	position: absolute;
}

/* format of text */
body > section.toggle h2 {
	margin: 12px 0 0 0;
}

/* format of navigation elements */

header > section > nav a,
footer > section > nav a {
	font-size: 1.2em;
	height: 60px;
	padding: 0 16px;
	line-height: 60px;
	text-align: center;
	text-transform: uppercase !important;
}

header > section > nav a:not(.tooltip),
footer > section > nav a:not(.tooltip) {
	opacity: 0.75;
}

header > section > nav a {
	display: block;
}

footer > section > nav a {
	display: inline-block;
}

main > nav a img {
	border-radius: 0;
}

header > section > nav a:hover,
footer > section > nav a:hover,
main > nav a:hover {
	opacity: 1;
	text-decoration: none;
}

main > aside > nav a:hover,
body > section.toggle nav a:hover {
	background-color: rgba(255,255,255,0.2);
	text-decoration: none;
}

body > section.toggle nav ul,
main > aside > nav ul {
	list-style-type: none;
	padding: 0;
}

body > section.toggle nav ul a,
main > aside > nav ul a {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	position: relative;
	height: 3em;
	padding-top: 1em;
	padding-left: 8px;
}

body > section.toggle nav ul a::after,
main > aside > nav ul a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 0;
	color: inherit;
	border-bottom: 1px solid;
	opacity: 0.2;
}

body > section.toggle nav li ul a,
main > aside > nav li ul a {
	display: block;
	height: 2.4em;
	padding-top: 0.7em;
	padding-left: 8px;
	margin-left: 24px;
}

body > section.toggle nav img,
main > aside > nav img {
	height: 2em;
	margin-top: -0.5em;
	margin-right: 8px;
	vertical-align: middle;
}

body > section.toggle nav div {
	text-align: center;
	overflow: auto;
}

body > section.toggle nav div span {
	display: none;
}

body > section.toggle nav div img {
	height: auto;
	max-height: 4em;
	max-width: 100%;
	margin: 16px 0;
}

footer > section > nav {
	position: absolute;
}

footer > section > nav:first-of-type {
	left: 0;
}

footer > section > nav:last-of-type {
	right: 0;
}
article {
	margin: 0 16px;
}

.box .innerbox {
	margin-bottom: 16px;
}

main *:not(aside) section.box,
main article.box,
main .area > nav {
	margin: 16px 16px 32px;
}

main  *:not(aside) section.box,
main article.box {
	padding: 8px;
}

main .box .box {
	margin: 0;
}

main .smallpreview section.box {
	margin: 4px 2px;
	background-color: rgba(255,255,255,0.1);
}

main .smallpreview section.box h2 {
	font-size: 0.5em;
}

.smallpreview .tablist {
	margin: 4px 0 -4px 4px;
	font-size: 0.8em;
}

.smallpreview .tablist li {
	background-color: rgba(255,255,255,0.1);
}

main > section .box.draft {
	background: repeating-linear-gradient(-45deg, rgba(245,245,245,0), rgba(245,245,245,0) 10px, rgba(245,245,245,0.1) 10px, rgba(245,245,245,0.1) 20px);
}

aside {
	margin-top: calc(32px + 1em);
}

#popup {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	border-radius: 8px;
}

#popup > section.box {
	padding: 24px;
}

#popup .box > .tooltip:first-child {
	top: 24px;
	right: 24px;
}

/* format headings outside boxes */

.sup {
	display: inline-block;
	margin: 16px 16px 0 16px;
}

.sup + h1 {
	margin: 4px 16px 0 16px;
}

h1 {
	margin: 16px 16px 0 16px;
}

article h1,
article .sup,
article .sup + h1 {
	margin-left: 0;
	margin-right: 0;
}

/* format headings inside boxes */

main > section .box h2 {
	margin: -8px -8px 8px -8px;
	padding: 6px;
	font-size: 1.4em;
}

main > section .box h2:nth-of-type(n+2),
main > section .box * h2 {
	margin: 0 0 8px 0;
	padding: inherit !important;
}

h2 ,h3 {
	/* remove colors from clubsettings */
	background-color: transparent !important;
	color: inherit !important;
}

.box span.sup {
	margin: 2px 0;
	font-size: 0.9em;
	text-align: left !important;
}

.box span.sup.left {
	float: left;
}

.box span.sup.right {
	float: left;
}

.box span.sup.right::before {
	content: ', ';
}

article.box *:not(p) > a:hover {
	text-decoration: none;
}

/* format images and  figures */

main img,
#mapview-frame > div {
	border-radius: 8px;
}

article:not(.box) > figure {
	padding: 16px;
}

article.box > figure {
	padding: 0 0 8px 0;
}

/* format tooltips inside boxes */

.box > a.tooltip,
.innerbox > a.tooltip {
	position: absolute;
	width: 20px;
	right: 0;
}

.box > .tooltip:first-child {
	top: 8px;
}

.box > .sup + .tooltip {
	top: 34px;
}

.box > .tooltip .icon,
.innerbox > .tooltip .icon {
	height: 20px;
	width: 20px;
	margin: calc((1em - 20px) / 2) auto 0 auto;
}

/* format tabs and other actions */

.page-selector {
	display: block;
	text-align: center;
	margin-top: 16px;
}

.page-selector a,
.page-selector strong {
	display: inline-block;
	height: 28px;
	width: 28px;
	margin: 0 4px;
	padding-top: 4px;
	overflow: hidden;
	border: 1px rgba(0,0,0,0.25) solid;
	border-radius: 14px;
}

.page-selector a:hover {
	font-weight: bold;
	background-color: rgba(255,255,255,0.25);
	text-decoration: none;
}

@media (max-width: 720px) {

	.page-selector .jump,
	.page-selector .edge {
		display: none !important;
	}

}

.tablist {
	margin: 16px 16px -8px 16px;
}

.tablist li {
	position: relative;
	margin: 0 3px 1px 3px;
	border-radius: 5px 5px 0 0;
	background-color: transparent;
	border: 1px rgba(0,0,0,0.25) solid;
	border-bottom: 0;
}

.tablist li.active::after,
.tablist li.active::before {
	content: '';
	position: absolute;
	width: 100vw;
	height: 1px;
	bottom: -1px;
	background-color: rgba(0,0,0,0.25);
}

.tablist li.active::after {
	left: 100%;
}

.tablist li.active::before {
	right: 100%;
}

main .area nav a.action {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	height: 42px;
	margin: 4px;
	padding: 8px;
	border-bottom: 1px rgba(0,0,0,0.25) solid;
}

main .area nav a.action:hover {
	background-color: rgba(220,220,220,0.9);
	text-decoration: none;
}

main .area nav a.action img {
	vertical-align: middle;
	height: 24px;
	width: 24px;
	margin-right: 12px;
}

main .selectable {
	padding: 4px;
}

/* format other predefined items */

.osm-popup,
#mapview ~ .box {
	border-radius: 8px;
}
@media (min-width: 921px) {

	header {
		z-index: 1;
	}

	header,
	footer {
		min-width: 100%;
	}

	#qrcode,
	header > section > a:last-of-type {
		display: none !important;
	}

	header,
	header > section,
	#carousel {
		width: 100%;
		height: 320px;
	}

	.landing header,
	.landing header > section,
	.landing #carousel {
		width: 100%;
		height: 480px;
	}

	header .title {
		top: calc(50% - 58px);
		font-size: 3.6em;
	}

	header .sub {
		top: calc(50% - 12px);
		font-size: 1.2em;
	}

	header > section > nav {
		z-index: 49;
		top: calc(50% + 60px);
		height: 60px;
		padding: 0 60px;
		border-radius: 30px;
		max-width: 80%;
	}

	header > section > nav ul {
		list-style-type: none;
		padding-left: 0;
	}

	header > section > nav > ul > li {
		display: block;
		float: left;
	}

	header > section > nav li ul {
		display: block;
		height: auto;
		max-height: 0;
		overflow: hidden;
		position: absolute;
		width: 180px;

		-ms-transition: all 0.2s;
		-webkit-transition: all 0.2s;
		transition: all 0.2s;
	}

	header > section > nav li ul a {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		display: block;
		font-size: 0.9em;
		height: 40px;
		padding: 0 16px;
		text-align: left;
		line-height: 40px;
	}

	header > section > nav li:hover ul,
	header > section > nav li ul:hover {
		max-height: 900px;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	}

	header > section > nav form {
		display: none;
	}

	#partner,
	#shortcuts {
		position: absolute;
		top: 16px;
		z-index: 46;
	}

	#shortcuts {
		left: 16px;
	}

	#partner {
		right: 16px;
	}

	#partner span {
		display: block;
		opacity: 0.66;
		width: 100%;
		font-size: 0.7em;
	}

	#partner img,
	#shortcuts img {
		float: left;
		max-height: 54px;
		padding: 8px;
		opacity: 0.66;
	}

	main {
		width: 90%;
		max-width: 1600px;
		margin: 0 auto;
		padding: 42px;
		background-color: transparent !important;
	}

	h1,
	main > section > span {
		color: inherit;
	}

	main > nav {
		position: absolute;
		right: 48px;
		top: 0;
		height: 40px;
		border-radius: 0 0 20px 20px;
		padding: 5px 20px;
	}

	main > nav > a {
		display: block;
		padding: 2px 6px;
		margin: 0 6px;
		float: left;
	}

	main > nav > a img.icon {
		height: 20px;
	}

	main > aside {
		float: right;
		width: calc(20% - 16px);
		margin-left: 16px;
		border-left: 1px rgba(0,0,0,0.25) solid;
	}

	main > aside > section.box,
	main > aside > nav {
		padding: 16px;
		overflow: visible;
	}

	main > aside .tooltip {
		display: none !important;
	}

	main > section {
		width: 80%;
		float: right;
	}

	.sideless main > section {
		width: 100%;
	}

	footer {
		height: 240px;
	}

	footer > section {
		height: 60px;
		width: 100%;
	}

	footer > section > nav {
		position: absolute;
	}

	footer > section > nav:first-of-type {
		left: 0;
	}

	footer > section > nav:last-of-type {
		right: 0;
	}

}
input,
select,
textarea,
.input,
button,
.button,
.box[id$='emblemframe'],
input.colored {
	border-radius: 6px;
	padding: 4px;
	background-color: rgba(255,255,255,0.5);
	color: rgba(0,0,0,0.75);
}

.fieldset-toolbar img {
	border-radius: 0;
}

.fieldset-toolbar a {
	opacity: 0.5;
}

.fieldset-toolbar a:hover {
	opacity: 1;
}

button:hover, .button:hover, input[type="submit"]:hover {
	background-color: rgba(255,255,255,0.85);
}

.progress {
	background-color: rgba(220,220,220,0.75);
}
@media (max-width: 920px) {

	header,
	footer,
	header > section,
	main,
	main > section,
	footer {
		width: 100%;
		overflow-x: hidden;
	}

	#qrcode,
	header > section > nav,
	main > aside,
	#partner,
	#shortcuts {
		display: none;
	}

	header,
	header > section,
	#carousel {
		width: 100%;
		height: 260px;
	}

	#emblem {
		height: 200px;
	}

	#abbreviation {
		display: none !important;
	}

	#clubname {
		display: block !important;
	}

	header .title {
		top: calc(50% - 0.6em);
		font-size: 2.2em;
	}

	header .sub {
		top: calc(50% + 1.2em);
		font-size: 1.1em;
	}

	header > section > a:last-of-type {
		position: fixed;
		top: 8px;
		left: 8px;
		height: 48px;
		width: 64px;
		z-index: 55;
		background-color: rgba(0,0,0,0.5);
		text-align: center;
		border-radius: 8px;
	}

	header > section > a:last-of-type img {
		height: 48px;
		padding: 12px;
	}

	/* defines appearance of mobile menu */

	body > section.toggle > nav {
		height: 100vh;
		width: 240px;
		padding: 8px;
		left: -240px;
	}

	body > section.toggle.visible > nav {
		left: 0;
	}

	body > section.toggle:first-of-type ~ * {
		left: 0;
		-ms-transition: all 0.05s;
		-webkit-transition: all 0.05s;
		transition: all 0.05s;
	}

	body > section.toggle.visible:first-of-type ~ * {
		left: 240px;
		-ms-transition: all 0.4s 0.1s;
		-webkit-transition: all 0.4s 0.1s;
		transition: all 0.4s 0.1s;
	}

	main {
		padding: 24px;
	}

	main > nav,
	main > nav::after {
		-ms-transition: all 0.4s;
		-webkit-transition: all 0.4s;
		transition: all 0.4s;
	}

	main > nav {
		position: absolute;
		left: 0;
		right: 0;
		top: -40px;
		height: 40px;
		padding: 5px 20px;
		border-radius: 0 0 20px 20px;
		text-align: center;
	}

	main > nav > a {
		padding: 5px 20px;
	}

	main > nav > a > img.icon {
		width: 20px;
		height: 20px;
	}

	main > nav:hover, main > nav.hover {
		top: 0;
	}

	main > nav::after {
		content: '';
		position: absolute;
		left: calc(50% - 25px);
		top: calc(100% - 5px);
		width: 30px;
		height: 10px;
		padding: 8px;
		background-color: inherit;
		background-image: url('/images/icons/down.svg?colors=%23FFFFFF');
		background-repeat: no-repeat;
		background-position: center;
		background-size: 40%;
		border-radius: 0 0 30px 30px;
	}

	main > nav:hover::after, main > nav.hover::after {
		top: 0;
		opacity: 0;
	}

	footer {
		margin-top: 8px;
		height: 80px;
	}

	footer > section {
		height: 52px;
	}
}

@media (max-width: 720px) {

	main {
		padding: 8px;
	}
}
