/* ==========================================================
   Luzie Kurth – Hauptstil
   Mobil: eine lange Seite von oben nach unten (Film → Art & Sound → Info).
   Ab 900px: drei Spalten nebeneinander, jede scrollt einzeln.
   ========================================================== */

/* Schrift: Standard ist Barlow Semi Condensed (frei, SIL OFL), liegt im Theme.
   Hast du eine lizenzierte DIN, lege din.woff2 / din-bold.woff2 in assets/fonts/ –
   sie wird dann automatisch bevorzugt (erste verfügbare Quelle gewinnt). */
/* @font-face für „LK DIN“ wird in functions.php direkt im <head> ausgegeben und vorab geladen. */

:root {
	--bg: #f9f0f0;
	--ink: #000;
	--accent: #d11d14;      /* das Rot vom "HOME" – leicht abgedunkelt für guten Kontrast (≥ 4,5 : 1 auf Rosa) */
	--line: rgba(0, 0, 0, 0.18);
	--tint: rgba(0, 0, 0, 0.045);
	--pad: 16px;
	--font: "LK DIN", "DIN 1451 Std", "DIN Alternate", "Bahnschrift", "Arial Narrow", Arial, sans-serif;
	--font-ui: var(--font);
	color-scheme: only light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

img, iframe, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a { transition: color 0.12s ease; }
a:hover, a:focus-visible { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 400; margin: 0; }

/* Beschriftungen in Großbuchstaben: schmale Variante */
.lk-site, .lk-langs, .lk-anchors, .lk-colhead, .lk-bar, .lk-back, .lk-pager, .lk-work-meta,
.lk-h-small, .lk-footer, .lk-info .wp-block-column:first-child, .entry-content h2, .entry-content h3 {
	font-family: var(--font-ui);
}

/* ---------- Sprachumschalter ---------- */

.lk-langs { display: flex; gap: 12px; font-size: 13px; text-transform: uppercase; }
.lk-langs a { padding: 6px 2px; opacity: 0.7; }
.lk-langs a:hover { opacity: 1; }
.lk-langs a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Startseite: Handy (Standard) ---------- */

.lk-mtop {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px var(--pad) 4px;
	text-transform: uppercase;
}
.lk-site { font-size: 20px; line-height: 1; letter-spacing: 0.02em; }
.lk-site:hover { text-decoration: none; }

.lk-anchors {
	position: sticky; top: 0; z-index: 20;
	display: flex; gap: 22px;
	padding: 6px var(--pad) 8px;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	text-transform: uppercase; font-size: 14px;
}
.lk-anchors a { padding: 10px 0; }

/* Handy: Info + C.V. zuerst, danach die Projekte */
.lk-cols { display: flex; flex-direction: column; }
.lk-col-info { order: -1; }

.lk-col { scroll-margin-top: 52px; }
.lk-colhead {
	display: flex; justify-content: space-between; align-items: center;
	padding: 22px var(--pad) 10px;
	text-transform: uppercase; font-size: 13px; letter-spacing: 0.03em;
	border-bottom: 1px solid var(--line);
}
.lk-colhead h2 { font-size: inherit; }
.lk-colhead .lk-langs { display: none; }

/* Einträge */

.lk-item { border-bottom: 1px solid var(--line); }

.lk-item-img { display: block; padding: var(--pad); background: var(--tint); margin: 14px var(--pad) 0; }
.lk-item-img img { width: 100%; }
.lk-item-ph { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.lk-item-img:hover { text-decoration: none; color: inherit; }
.lk-item-img:hover img { opacity: 0.88; }

.lk-item-cap {
	display: grid; grid-template-columns: 1fr; gap: 12px var(--pad);
	padding: 12px var(--pad) 26px;
	font-size: 14px;
}
.lk-item-title { font-size: 14px; line-height: 1.3; margin: 0 0 4px; overflow-wrap: break-word; }
.lk-item-title a:hover { color: var(--accent); text-decoration: underline; }
.lk-item-detail p { margin: 0 0 10px; }
.lk-item-detail > :first-child { margin-top: 0; }
.lk-item-meta { opacity: 0.65; }
.lk-more { display: inline-block; padding: 6px 0; }
.lk-more:hover { color: var(--accent); text-decoration: none; }

/* Info-Spalte */

.lk-only-mobile { display: inline; }
.lk-only-desktop { display: none; }
.lk-info { padding: 16px var(--pad) 0; font-size: 15px; }

.lk-info .wp-block-columns {
	gap: 4px var(--pad); margin: 0 0 18px; padding-top: 10px;
	border-top: 1px solid var(--line);
}
.lk-info .wp-block-column:first-child {
	font-size: 13px; text-transform: uppercase; opacity: 0.65;
}
.lk-info .wp-block-column p { margin: 0 0 0.6em; }

.lk-footer-in { margin-top: 32px; padding: 18px 0 40px; border-top: 1px solid var(--line); }

/* ---------- Startseite: Desktop – drei Spalten ---------- */

@media (min-width: 900px) {
	:root { --pad: 14px; }

	body.lk-front { overflow: hidden; }

	.lk-mtop, .lk-anchors, .lk-only-mobile { display: none; }
	.lk-only-desktop { display: inline; }
	.lk-col-info { order: 0; }

	.lk-cols {
		display: grid;
		grid-template-columns: 1fr 1fr 1.15fr;
		height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
		height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
	}

	.lk-col {
		min-width: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-right: 1px solid var(--line);
		scroll-margin-top: 0;
	}
	.lk-col:last-child { border-right: 0; }

	.lk-colhead {
		position: sticky; top: 0; z-index: 5;
		background: var(--bg);
		padding: 10px var(--pad);
	}
	.lk-colhead .lk-langs { display: flex; }
	.lk-colhead a:hover { text-decoration: none; }

	.lk-item-img { margin: 12px 12px 0; }
	.lk-item-cap { grid-template-columns: minmax(0, 38%) 1fr; }

	.lk-info { padding-top: 18px; }
}

/* ---------- Unterseiten: Kopfleiste ---------- */

.lk-bar {
	position: sticky; top: 0; z-index: 20;
	display: flex; justify-content: space-between; align-items: center;
	padding: 12px var(--pad);
	background: var(--bg); border-bottom: 1px solid var(--line);
	text-transform: uppercase;
}

.lk-main { min-height: 70vh; padding-bottom: 60px; }

/* ---------- Projektseite ---------- */

.lk-work { padding: 8px var(--pad) 0; max-width: 1400px; margin: 0 auto; }
.lk-back { display: inline-block; padding: 10px 0; font-size: 14px; text-transform: uppercase; }

.lk-work-media { margin: 6px 0 18px; }
.lk-work-media img { width: auto; max-width: 100%; max-height: 82vh; }

.lk-video { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 14px; }
.lk-video.lk-gate { background: rgba(0,0,0,.06); }
.lk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lk-work-info h1 { font-size: 26px; line-height: 1.15; }
.lk-work-meta { margin: 6px 0 18px; font-size: 14px; opacity: 0.65; text-transform: uppercase; }

.lk-work-text { max-width: 62ch; min-width: 0; }

.lk-h-small { font-size: 14px; text-transform: uppercase; opacity: 0.65; margin: 28px 0 6px; }

.lk-extlinks { list-style: none; padding: 0; margin: 0; }
.lk-extlinks li { border-top: 1px solid var(--line); }
.lk-extlinks li:last-child { border-bottom: 1px solid var(--line); }
.lk-extlinks a { display: block; padding: 12px 0; }
.lk-extlinks a:hover { text-decoration: none; }

.lk-pager {
	display: flex; justify-content: space-between; gap: 16px;
	margin-top: 40px; padding: 14px 0; border-top: 1px solid var(--line);
	font-size: 14px; text-transform: uppercase;
}

@media (min-width: 900px) {
	.lk-work { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
	.lk-back { grid-column: 1 / -1; }
	.lk-work-media { grid-column: 1 / -1; }
	.lk-work-info { grid-column: 1; }
	.lk-work-text { grid-column: 2; }
	.lk-pager { grid-column: 1 / -1; }
}

/* ---------- Seiten (Impressum, Datenschutz …) ---------- */

.lk-page { padding: 12px var(--pad) 0; max-width: 1400px; margin: 0 auto; }
.lk-page-title { margin: 0 0 18px; font-size: 14px; text-transform: uppercase; }
.lk-page-body { max-width: 68ch; }

@media (min-width: 900px) {
	.lk-page { display: grid; grid-template-columns: 1fr 2fr; column-gap: 40px; }
}

/* Inhalte aus dem Editor */
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1em; }
.entry-content h2, .entry-content h3 {
	font-size: 14px; text-transform: uppercase;
	margin: 2em 0 0.6em; padding-top: 12px; border-top: 1px solid var(--line);
}
.entry-content a { text-decoration: none; }
.entry-content a:hover, .entry-content a:focus-visible { color: var(--accent); }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: 14px; opacity: 0.65; margin-top: 6px; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content .wp-block-embed iframe { width: 100%; }

/* Weitere Bilder in Projekten (Galerie- und Bild-Blöcke) */
.entry-content img { width: 100%; height: auto; }
.entry-content .wp-block-gallery {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
	margin: 1.4em 0; padding: 0; list-style: none;
}
.entry-content .wp-block-gallery.columns-1 { grid-template-columns: 1fr; }
.entry-content .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-content .wp-block-gallery .wp-block-image { margin: 0; }
.entry-content .wp-block-gallery img { height: 100%; object-fit: cover; }
.entry-content .wp-block-gallery figcaption { font-size: 13px; }
/* Im Projekt dürfen breite Bilder über die Textspalte hinausgehen */
@media (min-width: 900px) {
	.lk-work-text { max-width: none; }
	.lk-work-text > p, .lk-work-text > h2, .lk-work-text > ul, .lk-extlinks { max-width: 62ch; }
}

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

.lk-footer {
	border-top: 1px solid var(--line);
	padding: 18px var(--pad) 28px;
	font-size: 13px;
	text-transform: uppercase;
}
.lk-home { display: inline-block; color: var(--accent); padding: 8px 0 14px; }
.lk-footer p { margin: 0 0 8px; }
.lk-social, .lk-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.lk-footer a { padding: 4px 0; }
.lk-copy { opacity: 0.7; text-transform: none; }

.lk-footer-in .lk-footer-cols { display: block; }

@media (min-width: 900px) {
	.lk-footer:not(.lk-footer-in) .lk-footer-cols { display: flex; gap: 48px; flex-wrap: wrap; align-items: baseline; }
	.lk-footer:not(.lk-footer-in) .lk-footer-cols p { margin: 0; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

.lk-pager a[rel="next"] { margin-left: auto; }

/* Links im Info- und C.V.-Teil: nicht unterstrichen, beim Darüberfahren rot */
.lk-info.entry-content a { text-decoration: none; }
.lk-info.entry-content a:hover, .lk-info.entry-content a:focus-visible { color: var(--accent); text-decoration: none; }

/* Projektgalerie: ein Bild, Klick links/rechts blättert */
.lk-gallery { grid-column: 1 / -1; margin: 36px 0 0; }
.lk-slide { margin: 0; }
.lk-slide img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: var(--tint); }
.lk-slide figcaption { margin-top: 8px; font-size: 14px; opacity: 0.7; }
.lk-gallery:not(.is-slider) .lk-slide { margin-bottom: 12px; }
.lk-gallery.is-slider .lk-slides { cursor: pointer; }
.lk-g-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-family: var(--font-ui); text-transform: uppercase; font-size: 14px; }
.lk-g-bar button { background: none; border: 0; padding: 10px 14px; font-size: 22px; line-height: 1; font: inherit; color: var(--ink); text-transform: uppercase; cursor: pointer; }
.lk-g-bar button:hover, .lk-g-bar button:focus-visible { color: var(--accent); }
.lk-g-count { margin: 0; opacity: 0.7; }

/* „More info“-Link in Projekttexten: rot */
.entry-content a.lk-moreinfo { color: var(--accent); text-decoration: none; }
.entry-content a.lk-moreinfo:hover, .entry-content a.lk-moreinfo:focus-visible { color: var(--accent); text-decoration: none; }
.lk-extlinks li:not(:has(a)) { list-style: none; }

/* SoundCloud-Player, rote Linklisten, kein Fettdruck in Projekttexten */
.lk-audio { margin-bottom: 14px; }
.lk-audio iframe { width: 100%; height: 166px; border: 0; display: block; }
.lk-extlinks a { color: inherit; text-decoration: none; }
.lk-extlinks a:hover, .lk-extlinks a:focus-visible { color: var(--accent); text-decoration: none; }
.lk-work-text strong, .lk-work-text b { font-weight: 400; }

/* 404-Seite */
.lk-404 { padding: 12px var(--pad) 40px; max-width: 1400px; margin: 0 auto; }
.lk-404-code { margin: 0; font-size: clamp(88px, 22vw, 240px); line-height: 0.95; color: var(--accent); }
.lk-404-title { margin: 12px 0 8px; font-size: 14px; text-transform: uppercase; }
.lk-404-text { margin: 0 0 18px; max-width: 48ch; }
.lk-404-home { color: var(--accent); }
.lk-404-home:hover, .lk-404-home:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Cookie-Banner (Complianz): lesbare Links, keine Animation, die Layout-Verschiebungen auslöst */
.cmplz-cookiebanner { animation: none !important; transition: none !important; }
.cmplz-cookiebanner .cmplz-link,
.cmplz-cookiebanner .cmplz-documents a { color: #111 !important; text-decoration: underline !important; }

/* Zwei-Klick-Einbettung (YouTube/SoundCloud) */
.lk-gate { display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.06); }
.lk-video.lk-gate { aspect-ratio: 16 / 9; position: relative; }
.lk-audio.lk-gate { min-height: 166px; }
.lk-gate-in { padding: 16px; text-align: center; max-width: 34em; }
.lk-gate-in p { margin: 0 0 10px; font-size: .9em; }
.lk-gate-btn { font: inherit; color: #111; background: transparent; border: 1px solid #111; padding: 6px 14px; cursor: pointer; }
.lk-gate-btn:hover, .lk-gate-btn:focus-visible { color: var(--accent); border-color: var(--accent); }
