/** 
 * Tage der digitalen Freiheit
 * Handcrafted with ♥ by x~alotl
 */


/**
 * Variables
 **/

:root {

	/* Colors */
	--plum: #17395e;
	--sage: #f0fff1;

	--box: #f0fff1;
	--text: #17395e;
	--button: #52ffdc;
	--active: #2b8b8d;
	--link: #3203dd;
	--shadowRgb: 125, 112, 122;
	--boxShadow: 0 0 12px rgba(var(--shadowRgb), 0.3);

	/* Animated Title */
	--weightMin: 200;
	--weightMax: 900;
	--duration: 2200ms;
	--step: 70ms;

	/* Box Clipping */
	--boxEdge: 40px;
}


/**
 * Font Faces
 */

@font-face {
	font-family: 'TitilliumWeb-Regular';
	src: url('font/TitilliumWeb-Regular.ttf');
}

@font-face {
	font-family: 'TitilliumWeb-Bold';
	src: url('font/TitilliumWeb-Bold.ttf');
}

@font-face {
	font-family: "aglet-mono-variable";
	src: url('font/aglet-mono-variable.woff2') format("woff");
	font-display: auto;
	font-weight: 200 900;
	font-stretch: normal;
}

@font-face {
	font-family: "p22-cusp-square";
	src: url('font/p22-cusp-square.woff2');
	font-display: auto;
	font-style: normal;
	font-weight: 400;
	font-stretch: normal;
}




/**
 * Base
 **/

body {
	background: #c6d0c8;
	padding: 0;
	margin: 0;
}

.background {
	background-image: url("image/head-web.webp");
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: fixed;
	background-size: auto;
	min-height: 100vh;
	padding-top: 20px;
	margin: 0;
}

/* Enhance background size for very large screens */
@media (min-width: 1920px) {
	.background {
		background-size: 100% auto;
	}
}

/* Scale background proportionally on smaller screens */
@media (max-width: 1150px) {
	.background {
		background-size: 167% auto;
	}
}

/* The main content area is 1000px wide, unless the screen is smaller than 1150px */
#content {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 75px;
	position: relative;
	/* Important for the animated title width calculation */
	container-type: inline-size;
}



/**
 * Text Styles
 **/

p,
h2,
h3,
a,
li {
	font-family: "TitilliumWeb-Regular";
	font-size: 1.2em;
	color: var(--text);
}

h2 {
	font-family: "TitilliumWeb-Bold";
	text-transform: uppercase;
	font-size: 2.5em;
	margin-top: 0.5em;
	margin-block-end: 0em;
	line-height: 1;
}

h2 small {
	font-size: 0.6em;
}

.times-days {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	column-gap: 1.5em;
	row-gap: 0;
}

h3,
.big {
	font-family: "TitilliumWeb-Bold";
	font-size: 1.5em;
	margin-block-end: 0;
}

h2 em {
	display: inline-block;
	font-style: normal;
	background-color: #cc673f;
	color: #fff;
	font-size: 0.45em;
	font-family: "TitilliumWeb-Bold";
	letter-spacing: 0.05em;
	padding: 0.15em 0.4em 0.1em;
	border-radius: 0.25em;
	vertical-align: middle;
	transform: rotate(-5deg);
	transform-origin: center center;
	line-height: 1.2;
	position: relative;
	top: -0.15em;
	margin-right: 0.3em;
}

a {
	color: var(--link);
	text-decoration: none;
	font-size: 1em;
}

a:hover {
	text-decoration: underline;
}

ul {
	list-style-type: none;
	padding-left: 0;
	margin-block-start: 0;
	margin-block-end: 0;
}

ul li {
	padding-left: 20px;
	margin-top: 0px;
	margin-bottom: 0px;
	position: relative;
}

ul li:before {
	content: "";
	width: 8px;
	height: 8px;
	background-color: var(--text);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

b {
	font-family: "TitilliumWeb-Bold";
}



/**
 * Boxes
 **/

.box {
	background: var(--box);
	margin-bottom: 2em;
	padding: 0.5em 2em 1.4em 2em;
	border: none;
	box-shadow: var(--boxShadow);
	clip-path: polygon(var(--boxEdge) 0%,
			100% 0%,
			100% calc(100% - var(--boxEdge)),
			calc(100% - var(--boxEdge)) 100%,
			0% 100%,
			0% var(--boxEdge));
}

.box-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2em;
}

.box-grid .box {
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
}

.box-grid .box .button-container {
	margin-top: auto;
}

@media (max-width: 800px) {
	.box-grid {
		grid-template-columns: 1fr;
	}
}

#map {
	background-image: url("image/map.webp");
}

#sponsor {
	margin-top: 2em;
}

#imprint {
	margin-bottom: 4em;
	text-align: center;
}

/**
 * Button
 **/

.button-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.button {
	display: inline-block;
	padding: 20px 40px;
	font-size: 24px;
	font-weight: bold;
	text-decoration: none;
	color: #000;
	background-color: var(--button);
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
	border-radius: 0;
	margin: 0 auto;
	box-shadow: var(--boxShadow);
}

.button:hover {
	background-color: var(--active);
	color: white;
	text-decoration: none;
}

.button.disabled {
	background-color: #cccccc;
	color: #666666;
	cursor: not-allowed;
	pointer-events: none;
}

.buttons-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin: 20px auto;
}



/**
 * Sponsor Logos
 **/
.sponsor-logos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2em;
	padding: 1.5em 0;
	margin: 0;
	align-items: center;
	justify-items: center;
}

.sponsor-logos img {
	max-width: 100%;
	max-height: 70px;
	width: auto;
	height: auto;
}

@media (max-width: 800px) {
	.sponsor-logos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/**
 * Navigation Bar
 **/

.navigationbar {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	max-width: 1000px;
	z-index: 1000;
	padding: 0;
	background-color: transparent;
}

.navigationbar>div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.navigationbar img {
	height: 16px;
	vertical-align: middle;
}

.navigationbar a {
	display: inline-block;
	padding: 5px 10px;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
	color: #000;
	background-color: var(--button);
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
	text-align: center;
	margin: 0 5px;
	box-shadow: var(--boxShadow);
}

.navigationbar a:hover {
	transform: scale(1.1);
	box-shadow: 0 0 16px rgba(var(--shadowRgb), 0.5);
}

.navigationbar a.active {
	background-color: var(--active);
	cursor: not-allowed;
	pointer-events: none;
	color: white;
}

#languages {
	position: fixed;
	top: 19px;
	right: 10%;
	transform: translateY(-50%);
	background-color: #401E13;
	padding: 10px;
	padding-bottom: 3px;
	z-index: 9999;
}



/**
 * Animated Title
 **/

.title {
	font-family: "aglet-mono-variable";
	text-transform: uppercase;
	font-size: 6cqw;
	text-align: center;
	white-space: nowrap;
	color: var(--plum);
	width: 100%;
	margin-top: calc(45cqw + 50px);
	margin-bottom: 1cqw;
}


.title.en {
	font-size: 7cqw;
}

/* Animates the weight of each character with the offset of their index */
.title .ch {
	display: inline-block;
	will-change: font-variation-settings;
	font-variation-settings: "wght" var(--weightMin);
	animation: wghtWave var(--duration) cubic-bezier(.45, 0, .1, 1) infinite alternate;
	animation-delay: calc(var(--i) * var(--step));
}

/* Fix the width of spaces */
.title .sp {
	width: 1ch;
}

@keyframes wghtWave {
	from {
		font-variation-settings: "wght" var(--weightMin);
	}

	to {
		font-variation-settings: "wght" var(--weightMax);
	}
}

@media (prefers-reduced-motion: reduce) {
	.title .ch {
		animation: none;
		font-variation-settings: "wght" 600;
	}
}

/* Increases the margin-top of the animated title when the screen width is 1920px or wider. */
@media (min-width: 1920px) {
	.title {
		margin-top: calc(28.82vw - 53.3px);
	}
}



/**
 * Images Gallery
 **/

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	padding: 20px 0;
}

.gallery img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
	transform: scale(1.10);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	z-index: 1000;
	cursor: pointer;
}

.lightbox img {
	max-width: 90%;
	max-height: 90%;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


/**
 * Floor Plan
 **/

.floor-plan {
	padding: 0;
	overflow: hidden;
	position: relative;
}

.floor-plan-image {
	width: 100%;
	height: 100%;
	display: block;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

.location-marker {
	position: absolute;
	width: 72px;
	height: 72px;
	display: none;
	z-index: 10;
	transform: translate(-50%, -50%);
	background: transparent;
	animation: crosshair-pulse 2s infinite;
	filter: drop-shadow(0 0 5px #ff00cc) drop-shadow(0 0 12px #ff00cc);
}

.location-marker.active {
	display: block;
}

/* Two rotated bars with a gap in the middle form a diagonal crosshair */
.location-marker::before,
.location-marker::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 3px;
	margin-top: -1.5px;
	background: linear-gradient(to right,
		#ff00cc 0%,   #ff00cc 33%,
		transparent 33%, transparent 67%,
		#ff00cc 67%,  #ff00cc 100%
	);
}

.location-marker::before { transform: rotate(45deg); }
.location-marker::after  { transform: rotate(-45deg); }

@keyframes crosshair-pulse {
	0%   { opacity: 1;   transform: translate(-50%, -50%) scale(1); }
	50%  { opacity: 0.6; transform: translate(-50%, -50%) scale(1.3); }
	100% { opacity: 1;   transform: translate(-50%, -50%) scale(1); }
}


/**
 * Font Awesome
 */

.fas {
	font-family: "Font Awesome 6 Free"
}

@font-face {
	font-family: "Font Awesome 6 Free";
	font-style: normal;
	font-weight: 900;
	font-display: block;
	src: url(font/fa-solid-900.woff2) format("woff2");
}