@font-face {
	font-family: "Montserrat";
	src: url("/fonts/Montserrat.woff2") format("woff2"),
		url("/fonts/Montserrat.woff") format("woff"),
		url("/fonts/Montserrat.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("/fonts/Montserrat.woff2") format("woff2"),
		url("/fonts/Montserrat.woff") format("woff"),
		url("/fonts/Montserrat.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Petemoss";
	src: url("/fonts/Petemoss.woff2") format("woff2"),
		url("/fonts/Petemoss.woff") format("woff"),
		url("/fonts/Petemoss.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}

:root {
	font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
		sans-serif;
	line-height: 1.5;
	font-weight: 400;

	--color-black: #2a2a2a;
	--color-white: var(--color-white);

	--color-orange-light: #eb721f;
	--color-orange-dark: #e74124;

	--color-blue-dark-1: #334878;
	--color-blue-dark: #1a2b43;

	--container: 980px;
	--radius: 18px;
	--shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
	--shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
	--focus: rgba(255, 255, 255, 0.55);
}

html,
body {
	min-height: 100vh;
	scroll-behavior: smooth;
}

body {
	font-family: "Montserrat", sans-serif;
	color: var(--color-black);
	line-height: 1.6;

	/* WICHTIG: Original-Demo ist "auf schwarz" */
	background: #000;
}

/* Impressum */

.navigation {
	display: inline-block;
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 9999999;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: calc(var(--radius) / 2);
	padding: 12px 18px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navigation a {
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
	transition: color 0.3s ease-in-out;
	font-weight: 500;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	display: inline-block;
}

.navigation a:hover {
	color: var(--color-orange-dark);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.legal-notice {
	color: rgba(255, 255, 255, 0.95);
	margin: 6rem auto 4rem auto;
	padding: 20px;
	text-align: center;
	backdrop-filter: none;
}

.legal-notice > * {
	color: rgba(255, 255, 255, 0.95);
	backdrop-filter: none;
}

.legal-notice h1,
.legal-notice h2,
.legal-notice h3,
.legal-notice h4,
.legal-notice p {
	margin-bottom: 1rem;
}

.legal-notice h1,
.legal-notice h2 {
	color: rgba(255, 255, 255, 1);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.legal-notice p {
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.legal-notice strong {
	color: rgba(255, 255, 255, 1);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.legal-notice a {
	color: var(--color-orange-dark);
	text-decoration: none;
	transition: color 0.3s ease-in-out;
}

.legal-notice a:hover {
	color: var(--color-orange-dark);
}

/* ===========================
   LIGHT RAYS (Vanilla WebGL)
=========================== */
.light-rays-container {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;

	/* optional: minimal "soften" wie Demo */
	filter: saturate(0.95) contrast(1.05);
}

.light-rays-container canvas {
	width: 100%;
	height: 100%;
	display: block;
}

/* Optionales Vignette / Soft dark edges */
.bg-vignette {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(
			circle at 50% 30%,
			rgba(255, 255, 255, 0.06),
			transparent 55%
		),
		radial-gradient(
			circle at 50% 50%,
			rgba(0, 0, 0, 0),
			rgba(0, 0, 0, 0.55) 70%,
			rgba(0, 0, 0, 0.82) 100%
		);
}

/* ===========================
   PORTAL (über BG)
=========================== */
.portal {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: grid;
	align-content: center;
	justify-items: center;
	padding: 56px 18px 26px;
}

/* Header */
.portal-header {
	width: min(var(--container), 100%);
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 2rem;
	margin-bottom: 26px;
	z-index: 9999999 !important;
}

.portal-logo {
	width: 130px;
	height: auto;
}

.portal-header h1 {
	font-size: clamp(28px, 3.2vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: rgba(255, 255, 255, 0.9);
	cursor: default;
}

.portal-subline {
	font-family: "Petemoss";
	font-size: clamp(3rem, 6vw, 3.3rem);
	color: rgba(255, 255, 255, 0.9);
	max-width: 48ch;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	letter-spacing: 1.5px;
	margin-bottom: 2rem;
	cursor: default;
}

.portal-subline span {
	color: var(--color-orange-dark);
	font-weight: 500;
}

/* Cards */
.portal-selection {
	width: min(var(--container), 100%);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 10px;
	perspective: 1000px;
	z-index: 1000;
}

.portal-card {
	text-decoration: none;
	color: var(--color-white);

	/* Dunkler Glas-Effekt passend zum schwarzen Body-Hintergrund */
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 22px;

	padding: 32px 26px;
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(60px);
	-webkit-backdrop-filter: blur(60px);

	position: relative;
	overflow: visible;
	transition: box-shadow 300ms ease, border-color 300ms ease;
	min-height: 200px;
	display: grid;
	align-content: center;
	justify-items: center;
	text-align: center;
	gap: 16px;
	padding: 32px 26px;

	/* 3D-Effekt */
	transform-style: preserve-3d;
	transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateZ(0);
	will-change: transform;
}

/* Blur-Hintergrund für jede Card */
.portal-card::before {
	content: "";
	position: absolute;
	inset: -50%;
	z-index: 0;
	background: rgba(0, 0, 0, 0.3);
	filter: blur(40px);
	opacity: 0.8;
	transform: scale(1.2) translateZ(0);
	pointer-events: none;
	border-radius: 22px;
}

.portal-card h2 {
	font-size: 28px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--color-orange-dark);
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
	position: relative;
	z-index: 3;
	transform: translateZ(0);
	transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
	will-change: transform;
	transform-style: preserve-3d;
}

.portal-card p {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
	max-width: 52ch;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	position: relative;
	z-index: 3;
	transform: translateZ(0);
	transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
	will-change: transform;
	transform-style: preserve-3d;
}

/* subtiler Glanz */
.portal-card::after {
	content: "";
	position: absolute;
	inset: -30% -30% auto auto;
	width: 260px;
	height: 260px;
	border-radius: 999px;
	opacity: 0.15;
	transform: rotate(15deg);
	filter: blur(0px);
	z-index: 1;
}

.portal-card-hoerakustik::after {
	background: radial-gradient(
		circle at 30% 30%,
		rgba(3, 140, 178, 0.4),
		transparent 62%
	);
}

.portal-card-tonstudio::after {
	background: radial-gradient(
		circle at 30% 30%,
		rgba(235, 114, 31, 0.28),
		transparent 62%
	);
}

.portal-card:hover {
	box-shadow: var(--shadow);
	border-color: rgba(255, 255, 255, 0.55);
}

.portal-card:hover h2,
.portal-card:hover p {
	transform: translateZ(30px);
}

.portal-card:active {
	transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(0.98);
}

.portal-card:active h2,
.portal-card:active p {
	transform: translateZ(30px);
}

.portal-card:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 4px;
	border-radius: 18px;
}

/* Button in Cards */
.portal-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	margin-top: 8px;
	background: rgba(255, 255, 255, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 12px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
	transition: all 0.25s ease-in-out;
	position: relative;
	z-index: 3;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	transform: translateZ(0);
	will-change: transform;
	transform-style: preserve-3d;
}

.portal-card:hover .portal-card-button {
	background: rgba(235, 114, 31);
	border-color: rgba(255, 255, 255, 0.55);
	transform: translateZ(30px) translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	color: var(--color-black);
}

.portal-card:active .portal-card-button {
	transform: translateZ(30px) translateY(0);
}

@media (max-width: 760px) {
	.portal {
		padding-top: 44px;
	}
	.portal-logo {
		width: 155px;
	}
	.portal-selection {
		grid-template-columns: 1fr;
	}
	.portal-card {
		min-height: 140px;
	}
}

footer {
	color: var(--color-white);
	padding: 20px;
	text-align: center;
}

footer .portal-legal {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

footer .portal-legal a {
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
	transition: all 0.3s ease-in-out;
	font-weight: 500;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	padding: 8px 16px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid var(--color-orange-dark);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

footer .portal-legal a:hover {
	color: var(--color-orange-dark);
	background: rgba(0, 0, 0, 0.5);
	border-color: rgba(255, 255, 255, 0.4);
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	transform: translateY(-2px);
}
