:root {
	/* SEASON COLORS ARE SET IN index.html  */
	/*
	--season-color-top
	--season-color-bottom
	*/
}

@font-face {
	font-family: 'BBCC';
	src: url('../fonts/SourceSans3VF-Roman.ttf.woff2') format('woff2-variations');
	font-weight: 200 900;
}

html {
	font-size: 100%;
	font-family: "BBCC", system-ui, Helvetica, Arial, sans-serif;
	font-style: normal;
	font-weight: 500;
	line-height: 1.45;
	background: black;
	color: #fff;
}

@supports (color: hsl(from white h s l)) {
	/* safe to use hsl() relative color syntax */
}

body {
	padding-bottom: 8rem;
	margin: 0;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

a[href^="tel"] { /* disable iOS data detector styling */
	color: inherit;
	text-decoration: none;
}

hr {
	height: 0;
	border: 0;
	border-top: 3px solid #000;
	transition: border-color 2s ease;
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.hidden {
	display: none;
}

.wrapper {
	outline: 0px solid #f0f;
	width: 97%;
	max-width: 42em;
	margin: 0 auto 8rem;
}

.wrapper header {
	user-select: none;

	display: grid;
	grid-template-columns: 1fr;
	grid-auto-rows: min-content;
}

.wrapper header span {
	display: block;
	font-size: 1.4em;
}

.wrapper header img {
	width: 100%;
	height: auto;
}

.wrapper header .logo-container {
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	z-index: 0;
}

.wrapper header .logo-container #canvas {
	width: 100%;
	aspect-ratio: 1 / 1;
	outline: 0px solid #0ff;
}

.wrapper header canvas {
	display: block;
	width: 100%;
	height: auto;
	margin-block-start: -60px;
}

.wrapper header svg {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	margin-block-start: -7vw;
}

.wrapper header path {
	opacity: 0.9;
}

.wrapper header path:hover {
	opacity: 1.0;
}

.wrapper header > span.intro {
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	align-self: self-start; /* don't prevent clicking on background */
	text-transform: uppercase; 
	text-align: center; 
	letter-spacing: 0.2em; 
	margin-block-start: 2rem;
	z-index: 1;
}

.wrapper header > span.subtitle {
	grid-column: 1 / 2;
	grid-row-start: 2;
	text-transform: uppercase;
	text-align: center;
	letter-spacing: 0.2em;
	color: var(--season-color-bottom); 
	font-size: 2.4em;
	line-height: 1.1;
	display: block;
	margin-block-start: 0.5rem;
}

.wrapper main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.wrapper main p:first-of-type {
	/* width: 100%; */
}

.wrapper main .left {
	grid-column: 1 / 3;
}

.wrapper main .right {
	grid-column: 1 / 3;
}

.intro {
	font-size: 1.5rem;
	margin-block: 1rem;
	grid-column: 1 / 3;
}

.intro[open] .fake-button {
	display: none;
}

.description {
	font-size: 1.2em;
}

.termine { grid-column: 1 / 3; }

.termine .termin {
	width: 100%;
	outline: 0px solid #00f;

	padding-top: 0.5rem;
	margin-bottom: 1rem;
	border-top: 3px solid #000;
	transition: border-color 2s ease;
}

.termine .termin :is(summary, .detail) {
	display: grid;
	grid-template-columns: 8rem 1fr 4rem;
}

.termin summary {
	font-size: 1.5rem;
}

.termin h2 {
	font-size: 1.5rem;
	font-weight: normal;
	font-style: normal;
	cursor: pointer;
	margin: 0;
}

.termin h2:hover {
	text-decoration: underline;
}

.termin h2 span { /* subtitle  */
	font-size: 1rem;
	display: block;
	text-decoration: none !important;
}

.termin h2:hover span {
	
}

.termin.disabled :is(summary, .detail) {
	color: color-mix(in srgb, currentColor 30%, black);
}

.termin .disabled h2::after {
	display: inline-block;
	content: 'Entfällt leider!';
	background: #ff6f6f;
	color: #fff;
	font-size: 0.9rem;
	text-transform: uppercase;
	border-radius: 0.2em;
	padding: 0.1em 0.4em;
	margin-inline-start: 0.5em;
	vertical-align: 20%;
}

.termin button,
.fake-button {
	-webkit-appearance: none;
	appearance: none;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 650;
	border: 0;
	text-decoration: none;
	background: #fff;
	padding: 0.3em 0.6em;
	color: #000;
	margin: 0 0 0 0.25em;
	cursor: pointer;
}

.termin button:hover,
.termin button:focus { background-color: #ddd; }

.termin .detail /* figure element */ {
	margin: 0;
	margin-top: 1rem;
	font-size: 1rem;
	outline: 0px solid #0f0;
}

.termin[open] .fake-button {
	opacity: 0.3;
}

.termin .detail picture {
	grid-column: 1 / 4;
}

.termin .detail figcaption {
	grid-column: 1 / 4;
	padding: 0.5em 0;
}

.left dl,
.right dl {
	display: flex;
	flex-wrap: wrap;
}

.left dt,
.left dd,
.right dt,
.right dd {
	width: 50%;
	margin-left: 0;
}

footer {
	border-top: 3px solid #333;
	padding-top: 1em;
	display: flex;
	justify-content: space-between;
}

footer nav p {
	display: inline;
	padding: 0;
}

footer nav ul {
	display: flex;
	padding: 0;
	margin-block: 0.25em;
	gap: 1ch;
	flex-flow: column;
}

footer nav li {
	list-style: none;
}

footer nav li a {
	color: #000;
	background-color: #333;
	padding: 0.2em 0.5em;
	text-decoration: none;
	font-weight: 650;
}

footer nav li a.active,
footer nav li a:hover,
footer nav li a:focus {
	color: #000;
	background-color: #fff;
}

@media only screen and (min-width: 45em) {
	.wrapper {
		width: 80%;
	}

	.wrapper main {
		
	}

	.termin .detail picture {
		grid-column: 2 / 4;
	}

	.termin .detail figcaption {
		grid-column: 2 / 4;
	}

	.wrapper main .left {
		grid-column: 1 / 2;
	}

	.wrapper main .right {
		grid-column: 2 / 3;
	}

	footer nav ul {
		gap: 0.5ch;
		flex-flow: row wrap;
	}
}
