/**
 * Monbijou Portal
 */

@font-face {
	font-family: "Teko";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/teko-v20-latin-500.woff2") format("woff2");
}

:root {
	--portal-dark: #2a2a2a;
	--portal-light: #ffffff;
	--portal-header-height: 88px;
	--portal-line: 3px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body.monbijou-portal-page {
	margin: 0;
	padding: 0;
	background: var(--portal-dark);
	color: var(--portal-light);
	font-family: "Teko", "Arial Narrow", Arial, sans-serif;
}

.portal-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

/* Header ----------------------------------------------------------------- */

.portal-header {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--portal-header-height);
	padding: 12px 16px;
	background: var(--portal-dark);
}

.portal-header__title {
	margin: 0;
	line-height: 0;
}

.portal-header__logo {
	display: block;
	width: auto;
	height: calc(var(--portal-header-height) - 28px);
	max-width: 70vw;
}

/* Standard-Logo ist schwarz → weiß darstellen */
.portal-header__logo--default {
	filter: brightness(0) invert(1);
}

/* Bereiche --------------------------------------------------------------- */

.portal {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	flex: 0 0 auto;
	/* Bilder schließen mit dem unteren Bildschirmrand ab, Footer erst beim Scrollen */
	height: calc(100vh - var(--portal-header-height));
	height: calc(100svh - var(--portal-header-height));
	min-height: 480px;
	overflow: hidden;
	background: var(--portal-dark);
}

.portal-tile {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	background: var(--portal-dark);
}

/* Weiße Trennlinie zwischen den Bereichen (Desktop) */
.portal-tile--second {
	border-left: var(--portal-line) solid var(--portal-light);
}

.portal-tile__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--portal-focus, center);
	transition: transform 0.6s ease, filter 0.6s ease;
}

.portal-tile__logo-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0 8%;
	pointer-events: none;
}

.portal-tile__logo {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	max-height: 45vh;
	object-fit: contain;
	filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

/* Hover: nur das Bild zoomt, das Logo bleibt stehen */
.portal-tile:hover .portal-tile__bg,
.portal-tile:focus-visible .portal-tile__bg {
	transform: scale(1.04);
	filter: brightness(1.08);
}

.portal-tile:focus-visible {
	outline: 4px solid var(--portal-light);
	outline-offset: -8px;
}

/* Footer ----------------------------------------------------------------- */

.portal-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 40px;
	padding: 16px;
	background: var(--portal-dark);
}

.portal-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.portal-footer__menu a {
	color: var(--portal-light);
	font-size: 1.375rem;
	line-height: 1.4;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.portal-footer__menu a:hover,
.portal-footer__menu a:focus-visible {
	text-decoration: underline;
}

.portal-footer__social {
	display: flex;
	gap: 16px;
}

.portal-footer__social-link {
	display: block;
	line-height: 0;
}

.portal-footer__social-link img {
	width: 26px;
	height: 26px;
	filter: brightness(0) invert(1);
	transition: opacity 0.2s ease;
}

.portal-footer__social-link:hover img {
	opacity: 0.7;
}

/* Smartphone: diagonal geteilt, übereinander ------------------------------ */

@media (max-width: 767.98px) {
	:root {
		--portal-header-height: 64px;
	}

	/* Hintergrund scheint in der Lücke als Trennlinie durch */
	.portal {
		display: block;
		min-height: 560px;
		background: var(--portal-light);
	}

	/* Beide Bereiche überlappen sich um 20 % – dort verläuft die Diagonale */
	.portal-tile {
		position: absolute;
		left: 0;
		width: 100%;
		height: 60%;
	}

	.portal-tile--first {
		top: 0;
		align-items: flex-start;
		padding-top: 12%;
		clip-path: polygon(0 0, 100% 0, 100% calc(66.667% - var(--portal-line)), 0 calc(100% - var(--portal-line)));
	}

	.portal-tile--second {
		bottom: 0;
		border-left: 0;
		align-items: flex-end;
		padding-bottom: 14%;
		clip-path: polygon(0 calc(33.333% + var(--portal-line)), 100% var(--portal-line), 100% 100%, 0 100%);
	}

	.portal-tile__logo-wrap {
		padding: 0 7%;
	}

	.portal-tile__logo {
		max-width: 420px;
		max-height: 30vh;
	}

	.portal-footer {
		gap: 8px 24px;
	}

	.portal-footer__menu a {
		font-size: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.portal-tile__bg {
		transition: none;
	}
}
