/* GEVEZ – main.css
   Weißer Grund, schwarze Schrift, graue Bildunterschriften.
   Keine Schatten, keine Verläufe, keine runden Ecken. */

/* ---------- Schrift (selbst gehostet, SIL OFL) ---------- */
@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/inter-tight-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	--bg: #ffffff;
	--ink: #0a0a0a;
	--muted: #767676;
	--line: #e6e6e6;
	--placeholder: #d9d9d9;
	--on-media: #ffffff;
	--cover-bg: #0a0a0a;

	--font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--gutter: clamp(16px, 4.5vw, 72px);
	--max: 1440px;
	--header-h: 56px;
	--row-gap: clamp(56px, 9vw, 144px);
	--pair-gap: clamp(16px, 3vw, 48px);
	--ease: cubic-bezier(.25, .1, .25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(html, body, h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd, address) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
:where(img, video, iframe) { display: block; max-width: 100%; }
:where(img) { height: auto; }
:where(a) { color: inherit; text-decoration: none; }
:where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
:where(address) { font-style: normal; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--bg);
}
body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.site-main { flex: 1 0 auto; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: fixed; top: 8px; left: 8px; z-index: 200;
	padding: 8px 12px; background: var(--bg);
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Typo-Bausteine ---------- */
.label {
	font-size: 12px;
	line-height: 1.3;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: var(--header-h);
	background: var(--bg);
	transition: opacity .4s var(--ease), visibility .4s;
}
.site-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.site-nav a,
.site-header__brand,
.site-footer a { transition: opacity .2s var(--ease); }
.site-nav a:hover,
.site-header__brand:hover,
.site-footer a:hover { opacity: .55; }
.site-nav .current-menu-item > a,
.site-nav a[aria-current] {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}
.menu-toggle { display: none; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { position: absolute; } }

/* Startseite: Navigation erst nach dem Cover */
.js .has-cover .site-header:not(.is-visible) {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.site-main { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 96px)); }
.has-cover .site-main { padding-top: 0; }

/* ---------- Mobiles Menü ---------- */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: var(--bg);
	display: flex;
	flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
}
.mobile-menu__list {
	padding-top: 12vh;
	display: grid;
	gap: 18px;
}
.mobile-menu__list a {
	font-size: 30px;
	line-height: 1.1;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Drei Striche */
.menu-toggle {
	width: 44px;
	height: 44px;
	margin-right: -10px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.menu-toggle span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--ink);
}
.menu-toggle:hover span { opacity: .55; }

@media (max-width: 767px) {
	.site-nav { display: none; }
	.menu-toggle { display: flex; }
}

/* ---------- Cover ---------- */
.cover {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 420px;
	overflow: hidden;
	background: var(--cover-bg);
	display: grid;
	place-items: center;
}
.cover__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.cover__title {
	position: relative;
	z-index: 1;
	color: var(--on-media);
	font-size: clamp(64px, 15vw, 248px);
	line-height: 1;
	font-weight: 700;
	letter-spacing: -.035em;
	text-transform: uppercase;
	user-select: none;
}

/* Sanftes Einrasten vom Cover in die Übersicht */
html:has(body.has-cover) { scroll-snap-type: y proximity; }
.cover { scroll-snap-align: start; }
.has-cover .overview { scroll-snap-align: start; scroll-margin-top: 0; }
.has-cover .overview { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 80px)); }

/* ---------- Übersicht ---------- */
.overview {
	display: grid;
	gap: var(--row-gap);
	padding-bottom: var(--row-gap);
}
.row { display: grid; gap: var(--pair-gap); }
.row--pair { grid-template-columns: 1fr 1fr; align-items: start; }
.row--single { grid-template-columns: 1fr; }
.row--single .tile { width: calc((100% - var(--pair-gap)) / 2); margin-inline: auto; }

.tile { display: block; }
.tile__media {
	display: block;
	position: relative;
	overflow: hidden;
	background: var(--placeholder);
	aspect-ratio: 16 / 9;
}
.tile--portrait .tile__media { aspect-ratio: 4 / 5; }
.tile__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .35s var(--ease);
}
.tile:hover .tile__media img,
.tile:focus-visible .tile__media img { opacity: .82; }
.tile__caption {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--muted);
}
.overview__empty { color: var(--muted); }

@media (max-width: 767px) {
	.row--pair { grid-template-columns: 1fr; gap: var(--row-gap); }
	.row--single .tile { width: 100%; }
}

/* ---------- About ---------- */
.about {
	display: grid;
	grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 112px);
	align-items: end;
	padding-bottom: var(--row-gap);
}
.about__portrait {
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--placeholder);
	overflow: hidden;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--muted);
}
.about__text {
	max-width: 34em;
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.45;
}
.about__text p + p { margin-top: 1em; }
@media (max-width: 1023px) {
	.about { grid-template-columns: 1fr; align-items: start; }
	.about__portrait { max-width: 480px; }
}

/* ---------- Contact ---------- */
.contact { padding-top: clamp(24px, 8vh, 120px); padding-bottom: var(--row-gap); }
.contact__list {
	display: grid;
	gap: .25em;
	font-size: clamp(30px, 5.4vw, 80px);
	line-height: 1.1;
	font-weight: 500;
	letter-spacing: -.02em;
}
.contact__list a { transition: opacity .2s var(--ease); overflow-wrap: anywhere; }
.contact__list a:hover { opacity: .55; }

/* ---------- Textseiten ---------- */
.text-page { padding-bottom: var(--row-gap); }
.text-page__title { margin-bottom: 32px; }
.text-page__body { max-width: 40em; }
.text-page__body > * + * { margin-top: 1em; }
.text-page__body h2 { font-size: 17px; font-weight: 600; margin-top: 2em; }
.text-page__body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 32px; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
.site-footer__list { display: flex; flex-wrap: wrap; }
.site-footer__inner > span::after,
.site-footer__list li:not(:last-child)::after { content: "·"; margin-inline: 10px; }

/* ---------- Projekt-Fenster ---------- */
.viewer {
	--bar: 64px;
	position: fixed;
	inset: 0;
	z-index: 100;
	background: var(--bg);
	opacity: 0;
	transition: opacity .25s var(--ease);
}
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; }
html.viewer-open { overflow: hidden; }
.admin-bar .viewer { top: 32px; }
@media (max-width: 782px) { .admin-bar .viewer { top: 46px; } }

.viewer__close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	height: var(--bar);
	padding-inline: var(--gutter);
}
.viewer__close:hover { opacity: .55; }

.viewer__stage {
	position: absolute;
	top: var(--bar);
	bottom: var(--bar);
	left: var(--gutter);
	right: var(--gutter);
	container-type: size;
}
.viewer__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: opacity .2s var(--ease);
}
.viewer__slide.is-fading { opacity: 0; }
.viewer__slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}
.viewer__video {
	position: relative;
	width: min(100cqw, calc(100cqh * var(--ratio, 1.7778)));
	aspect-ratio: var(--ratio, 1.7778);
	background: var(--ink);
	pointer-events: auto;
}
.viewer__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--ink);
}
.viewer__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Linke / rechte Hälfte zum Blättern */
.viewer__zone {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50%;
	z-index: 0;
}
.viewer__zone--prev {
	left: 0;
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M20 8l-8 8 8 8' fill='none' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, w-resize;
}
.viewer__zone--next {
	right: 0;
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M12 8l8 8-8 8' fill='none' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, e-resize;
}
.viewer__zone:disabled { cursor: default; }
.viewer__zone:focus-visible { outline-offset: -4px; }

.viewer__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--bar);
	padding-inline: var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	pointer-events: none;
}
.viewer__title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: .02em;
	font-size: 13px;
	font-weight: 400;
}
.viewer__count { flex: none; font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
	.viewer { --bar: 56px; }
	.viewer__stage { left: 0; right: 0; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
	html:has(body.has-cover) { scroll-snap-type: none; }
}
