/* lietmann.com */

/* ---------- Variables ---------- */

:root {
	--color-accent: #cc0000;
	--color-accent-dark: #a00c16;
	--color-text: #222;
	--color-grey: #555;
	--color-muted: #707070;
	--color-line: #ccc;
	--color-light: #eee;
	--color-bg: #fff;
	--color-focus: darkorange;

	--font: "Roboto", sans-serif;
	--header-height: 80px;
	--content-width: 1024px;
	--tile-gap: 5px;
	--ratio: 7 / 5;
}

/* ---------- Fonts ---------- */

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../webfonts/roboto-v20-latin-regular.woff2") format("woff2");
}

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

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../webfonts/roboto-v20-latin-700.woff2") format("woff2");
}

/* ---------- Base ---------- */

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

html {
	font-size: 16px;
	letter-spacing: 0.05em;
	overflow-x: hidden;
	overflow-y: scroll;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 20px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font);
	font-weight: 500;
	line-height: 1.5em;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4 {
	font-size: 1em;
	font-weight: inherit;
	line-height: 1.6;
}

h1 {
	margin-bottom: 10px;
	color: var(--color-accent);
	font-size: 1.6em;
	line-height: 1.2em;
	text-transform: uppercase;
}

h2 {
	margin-bottom: 20px;
	color: var(--color-grey);
	font-size: 1.1em;
	font-weight: 400;
	text-transform: uppercase;
}

p {
	margin-bottom: 20px;
}

ul,
ol {
	list-style: none;
}

strong,
b {
	font-weight: 700;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: top;
}

a {
	color: var(--color-grey);
	text-decoration: none;
	transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
	color: var(--color-accent-dark);
}

button {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Layout ---------- */

.master {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding-top: var(--header-height);
}

.maincontent {
	margin-bottom: 50px;
}

.maincontent:focus {
	outline: 0;
}

.content {
	width: 90%;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 40px 0;
}

.content img {
	width: 100%;
}

.content ul,
.content ol {
	margin-bottom: 20px;
	padding-left: 1.4em;
	list-style: disc;
}

.content ol {
	list-style: decimal;
}

.center {
	text-align: center;
}

.is_de {
	margin-top: 20px;
	color: var(--color-muted);
	font-style: italic;
	font-weight: 400;
}

.txtfallback {
	margin: 60px 0 90px;
}

.skip-link {
	position: absolute;
	top: 10px;
	left: -999px;
	z-index: 1000;
	padding: 10px 15px;
	border-radius: 5px;
	background: #000;
	color: #fff;
	text-align: center;
}

.skip-link:hover {
	color: #fff;
}

.skip-link:focus {
	left: 10px;
}

/* ---------- Header and navigation ---------- */

.header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 100;
	background: var(--color-bg);
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.menu {
	display: flex;
	align-items: center;
	width: 90%;
	max-width: var(--content-width);
	height: var(--header-height);
	margin: 0 auto;
}

.logo {
	display: block;
	width: 300px;
	min-width: 300px;
}

.menu-wrap {
	display: flex;
	flex-grow: 1;
	align-items: center;
	justify-content: flex-end;
}

.menu-item {
	height: var(--header-height);
	padding: 0 15px;
	font-weight: 700;
	line-height: var(--header-height);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.menu-item:hover,
.menu-item[aria-current="page"] {
	background: var(--color-accent);
	color: #fff;
}

.burger {
	display: none;
	position: relative;
	width: 48px;
	height: 48px;
	margin-left: auto;
	padding: 0;
}

.burger span,
.burger span::before,
.burger span::after {
	display: block;
	position: absolute;
	right: 9px;
	left: 9px;
	height: 3px;
	background: #000;
}

.burger span {
	top: 22px;
	transition: background 0.3s ease-in-out;
}

.burger span::before,
.burger span::after {
	right: 0;
	left: 0;
	content: "";
	transition: top 0.3s 0.3s, bottom 0.3s 0.3s, transform 0.3s;
}

.burger span::before {
	top: -10px;
}

.burger span::after {
	bottom: -10px;
}

.burger[aria-expanded="true"] span {
	background: none;
}

.burger[aria-expanded="true"] span::before,
.burger[aria-expanded="true"] span::after {
	transition: top 0.3s, bottom 0.3s, transform 0.3s 0.3s;
}

.burger[aria-expanded="true"] span::before {
	top: 0;
	transform: rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
	bottom: 0;
	transform: rotate(-45deg);
}

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

.footer {
	position: relative;
	margin-top: auto;
	background: var(--color-grey);
}

.footer-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 96%;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 20px 0;
	font-size: 0.9em;
}

.footer-item {
	margin: 5px 12px;
	color: #fff;
}

.footer-item:hover {
	color: var(--color-line);
}

.triangle {
	position: absolute;
	top: -30px;
	left: 50%;
	z-index: 1;
	margin-left: -30px;
	border: 30px solid transparent;
	border-top: 0;
	border-bottom-color: var(--color-grey);
}

.triangle::after {
	position: absolute;
	top: 25px;
	left: -6px;
	width: 10px;
	height: 10px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
	content: "";
	transform: rotate(45deg);
	transition: top 0.5s ease;
}

.triangle:hover::after {
	top: 20px;
}

/* ---------- Buttons ---------- */

/* One button for links and <button>s: red is the main action, grey is secondary (back, alternatives) */
.button {
	display: inline-block;
	padding: 4px 10px;
	background: var(--color-accent);
	color: #fff;
	font-size: 0.85em;
	font-weight: 500;
	line-height: 1.5rem;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 0.3s ease;
}

.button:hover {
	background: var(--color-grey);
	color: #fff;
}

.button--grey {
	background: var(--color-grey);
}

.button--grey:hover {
	background: var(--color-accent);
}

.button--block {
	display: block;
	width: 100%;
	padding: 9px 10px;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.head-actions {
	display: flex;
	gap: 10px;
	float: right;
}

/* ---------- Error page ---------- */

.error-page {
	padding: 80px 0;
}

.error-code {
	margin-bottom: 10px;
	color: var(--color-light);
	font-size: 7em;
	font-weight: 700;
	line-height: 1;
}

.button-row--center {
	justify-content: center;
	margin-top: 40px;
}

/* ---------- Image tiles ---------- */

.tiles {
	display: flex;
	flex-wrap: wrap;
	margin: 40px calc(var(--tile-gap) * -1) 0;
}

.tiles--flush {
	margin-top: 0;
}

.tile {
	position: relative;
	width: calc(25% - var(--tile-gap) * 2);
	margin: var(--tile-gap);
	aspect-ratio: var(--ratio);
	overflow: hidden;
	background: var(--color-line);
}

.tile--publication {
	aspect-ratio: 10 / 13;
}

.tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tile::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #000;
	content: "";
	opacity: 0.5;
	transition: opacity 1s ease;
}

.tile-label {
	display: flex;
	position: absolute;
	inset: 0;
	z-index: 2;
	align-items: center;
	justify-content: center;
	padding: 5px;
	color: #fff;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-align: center;
	text-shadow: 2px 2px 4px #000;
	text-transform: uppercase;
	opacity: 0.9;
	transition: opacity 1s ease, padding-top 1s ease, font-size 1s ease;
}

.tile:hover::before,
.tile:focus-visible::before {
	opacity: 0;
}

.tile:hover .tile-label,
.tile:focus-visible .tile-label {
	padding-top: 50%;
	font-size: 1.1em;
	opacity: 0.5;
}

.category {
	margin-top: 60px;
}

.category-title {
	margin-bottom: 15px;
	padding: 10px 15px;
	background: var(--color-light);
}

/* ---------- Start page ---------- */

.start-feature {
	display: flex;
	flex-direction: column;
	height: calc(100vh - 190px);
	margin: 0;
}

.start-feature-image {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #f1f1f1;
}

.start-feature-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.start-feature-caption {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	padding: 8px 0;
	border-top: 1px solid var(--color-line);
	border-bottom: 1px solid var(--color-line);
	font-size: 0.9em;
	font-weight: 400;
	text-transform: uppercase;
}

.start-intro {
	margin-top: 50px;
	text-align: center;
}

/* ---------- Two column pages (vita) ---------- */

.columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.column {
	width: 48%;
	margin-bottom: 40px;
}

/* ---------- Gallery view ---------- */

.gallery-head {
	margin-bottom: 20px;
	border-bottom: 1px solid var(--color-line);
}

.gallery-body {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.gallery-images {
	position: relative;
	width: 64%;
}

.gallery-text {
	width: 32%;
	max-height: calc(100vh - 200px);
	overflow: auto;
	font-size: 0.8em;
	line-height: 1.4em;
}

.gallery .slider {
	margin: 0;
}

.gallery .slider-track {
	max-height: calc(100vh - 260px);
	cursor: zoom-in;
}

.gallery-zoom-close {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 5;
	width: 32px;
	height: 32px;
	padding: 0;
	background: var(--color-bg);
	color: var(--color-grey);
	font-size: 2em;
	line-height: 32px;
}

.gallery-zoom-close:hover {
	color: var(--color-accent);
}

.gallery.is-zoomed .gallery-head,
.gallery.is-zoomed .gallery-text {
	display: none;
}

.gallery.is-zoomed .gallery-images {
	width: 100%;
}

.gallery.is-zoomed .gallery-zoom-close {
	display: block;
}

.gallery.is-zoomed .slider-track {
	max-height: calc(100vh - 200px);
	cursor: zoom-out;
}

/* ---------- Slider ---------- */

.slider {
	position: relative;
	margin: 20px 0 30px;
	padding-bottom: 60px;
}

.slider-track {
	display: flex;
	position: relative;
	gap: 10px;
	width: 100%;
	aspect-ratio: var(--ratio);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
	display: none;
}

/* While dragging with the mouse the track follows the pointer freely */
.slider-track.is-dragging {
	scroll-snap-type: none;
	cursor: grabbing;
	user-select: none;
}

.slider-slide {
	flex: 0 0 100%;
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.slider-slide img {
	display: block;
	width: 100%;
	max-width: 900px;
	height: 100%;
	margin: 0 auto;
	object-fit: contain;
	object-position: top;
}

.slider-controls {
	display: flex;
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	align-items: center;
	justify-content: space-between;
	height: 44px;
	color: var(--color-grey);
}

.slider-btn {
	width: 30px;
	height: 44px;
	padding: 0;
	background: url("../images/next.svg") center / contain no-repeat;
	transition: opacity 0.3s ease;
}

.slider-btn--prev {
	background-image: url("../images/prev.svg");
}

.slider-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

/* ---------- Cookie notice ---------- */

.popup {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 200;
	width: 90%;
	max-width: 450px;
	padding: 25px;
	background: #fafafa;
	box-shadow: 0 0 3px 1px rgba(25, 25, 25, 0.5);
	color: #000;
	font-size: 0.81em;
	line-height: 1.5em;
}

.popup[hidden] {
	display: none;
}

.popup-title {
	display: block;
	margin-bottom: 20px;
}

.popup .button {
	margin-top: 20px;
	font-size: 1em;
}

.popup-link {
	display: inline-block;
	margin-top: 10px;
	color: #666;
	font-weight: 700;
}

.popup-link:hover {
	color: var(--color-accent);
}

/* ---------- Fade in on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0;
		transform: translateY(20px);
		transition: opacity 0.8s ease, transform 0.8s ease;
	}

	.js .reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01s !important;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 1023px) {
	h1 {
		font-size: 1.4em;
	}

	h2 {
		font-size: 0.9em;
	}

	.logo {
		width: 220px;
		min-width: 220px;
	}

	.burger {
		display: block;
	}

	.menu-wrap {
		position: fixed;
		top: var(--header-height);
		right: 0;
		left: 0;
		flex-direction: column;
		justify-content: flex-start;
		height: 0;
		overflow: hidden;
		background: var(--color-light);
		font-size: 1.6em;
		visibility: hidden;
		transition: height 0.5s ease, visibility 0.5s;
	}

	.menu-wrap.is-open {
		height: calc(100vh - var(--header-height));
		padding-top: 10px;
		overflow: auto;
		box-shadow: inset 0 7px 9px -7px rgba(0, 0, 0, 0.4);
		visibility: visible;
	}

	.footer-wrap {
		font-size: 0.72em;
	}

	.tile {
		width: calc(50% - var(--tile-gap) * 2);
	}

	.start-feature {
		height: auto;
	}

	.start-feature-image img {
		position: static;
		height: auto;
	}

	.content--full {
		width: 100%;
		padding: 0;
	}

	.columns {
		display: block;
	}

	.column {
		width: 100%;
	}

	.column--text {
		padding: 0 5%;
	}

	.gallery-body {
		display: block;
	}

	.gallery-images,
	.gallery-text {
		width: 100%;
	}

	.gallery-text {
		max-height: none;
		margin-top: 20px;
	}

	.gallery .slider-track,
	.gallery.is-zoomed .slider-track {
		max-height: none;
		cursor: default;
	}

	.gallery-zoom {
		display: none;
	}
}
