/* Allgemein */
@font-face {
	font-family: 'classyfont';
	src: url('../font/comsc.ttf') format('truetype');
}

@media screen and (prefers-reduced-motion: no-preference) {
	html, body {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0 auto;
	background: rgb(150,150,150);
	max-width: 70em;
}

/* Rules for icon sizes: */
.material-icons.md-36 { font-size: 36px; }

/* Schatten */
footer, #shadow {
	box-shadow: 5px 5px 12px 9px grey;
}

#shadow {
	margin: 0 0 1em;
}

/* "Splashscreen"-Bild */
#titlebar {
	position:relative;
	overflow: hidden;
	display: flex;
	justify-content: center;
	height: calc(99.5vh - 5em);
	min-height: 35em;
}

#titlebar img {
	display: block;
	padding-left: 50%;
	height: 100%;
}

@media all and (min-width: 30em) {
	#titlebar img {
		padding-left: 5%;
	}
}

@media all and (min-width: 60em) {
	#titlebar img {
		padding-left: 0;
		height: 130%;
	}
}

#titlebarcaption {
	position: absolute;
	top: 20vh;
	left: 0;
	padding: 0.5em;
	margin: 0;
	background-color: rgba(250,250,250,0.7);
	color:	black;
	font-family: sans-serif;
	font-size: xx-large;
	font-weight: bold;
}

/*******************************************************************************
* Header/Menu
*******************************************************************************/
header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	height: 5em;
	display: flex;
	justify-content: center;
	flex-direction: column;
	background-color: gainsboro;
	padding: 0;
	border-color: white;
	border-style: solid;
	border-width: 1em 1em 0;
	box-shadow: inset 3px 3px 6px 2px grey, 0 1.4em 0.5em -1.2em grey;
	z-index: 1000;
}

header a {
	display: flex;
	width: 4em;
	height: 4em;
	justify-content: center;
	align-items: center;
	background-color: rgb(61, 61, 61);
	border-radius: 4em;
	border-style: solid;
	border-width: 0;
	border-color: black;
	box-shadow: inset 1px 1px 10px 5px black, 0 0 2px 1px white;
	color: black;
	text-decoration: none;
	text-shadow: 0 0 6px gray;
}

header a:hover {
	color: rgb(61, 61, 61);
	background-color: white;
	transition: .2s;
}

header h1 {
	display: flex;
	justify-content: center;
	font-size: 3em;
	margin: 0;
	font-family: 'classyfont';
}

@media all and (max-width: 30em) {
	header {
		height: 4em;
	}
	header a {
		width: 3em;
		height: 3em;
		border-radius: 3em;
	}
	header h1 {
		font-size: 2.5em;
	}
}

#linktop {
	position: absolute;
	right: 0.5em;
}

#linkback {
	position: absolute;
	left: 0.5em;
}

/*******************************************************************************
* Main content
*******************************************************************************/
main {
	background-color: rgb(241, 210, 190);
	font-family:Arial, Helvetica, sans-serif;
	padding: 1em 1em 0;
	border-color: white;
	border-style: solid;
	border-width: 0 1em 1em;
	box-shadow: inset 3px 3px 6px 2px grey;
}

main > * {
	margin: 0 0 1em;
}

section,
nav,
figure {
	box-shadow: 3px 3px 6px 2px grey;
}

section,
nav {
	background: rgba(255, 255, 255, 0.7);
	scroll-margin-top: 7em;
	color:black;
	padding: .5em 1em;
}

h1, h2, h3, p , ul{
	margin: 0.2em 0 0.6em
}

h1 {
	font-size: large;
}

h2 {
	font-size: medium;
}

a {
	color: dodgerblue;
}

/* Images with caption */
figure {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 0;
}

figure img {
	width: 100%;
	display: block;
	padding: 0;
	margin: 0;
}

figure > figcaption {
	padding: 0 1em 0;
	position: absolute;
	bottom: 0;
	width: 100%;
	line-height: 3em;
	color: white;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	bottom: -3em;
	transition: all 1s ease;
	overflow: hidden;
}

figure:hover > figcaption {
	opacity: 1;
	bottom: 0;
}

/* Image gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 1em;
	padding: 0;
}

@media all and (min-width: 40em) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

.gallery figure {
	margin: 0;
	background-color: darkgrey;
	display: block;
}

/*******************************************************************************
* Footer
*******************************************************************************/
footer {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 3em;
	background-image: linear-gradient(rgb(187, 187, 187), rgb(197, 197, 197));
	font-family:Arial, Helvetica, sans-serif;
}

@media all and (min-width: 40em) {
	footer {
		grid-template-columns: repeat(3, 1fr);
	}
}

footer div {
	width: 100%;
	text-align: center;
}

footer h1 {
	font-size: medium;
}
