/*
Theme Name: WULF Fotografie
Theme URI: https://maximilian-wulf.de
Author: Maximilian Wulf
Description: Dunkles Block-Theme für WULF Fotografie. Logo-Einstieg mit Blur und Parallax, Projekte mit je einem Titelbild und eigener Galerie-Seite, Film-Bereich.
Version: 3.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wulf
*/

:root {
	--nacht: #121314;
	--kohle: #1c1d1f;
	--anthrazit: #4a4a49;
	--nebel: #9c9d9a;
	--licht: #eceae5;
	--petrol: #1ea3b7;
	--petrol-dunkel: #127a8a;
	--display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--text: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--rand: clamp(16px, 3vw, 40px);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--nacht);
	color: var(--licht);
	font-family: var(--text);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
.k, p.k {
	font-family: var(--text);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nebel);
	margin: 0;
}

/* ---------- Kopfzeile ---------- */
.top {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px var(--rand);
	transition: background 0.3s;
}
body.admin-bar .top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top { top: 46px; } }
.top.solid { background: color-mix(in srgb, var(--nacht) 88%, transparent); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; transition: opacity 0.4s; }
.brand img { height: 26px; width: auto; }
.brand .k { display: none; }
@media (min-width: 760px) { .brand .k { display: block; } }
.top.atstart .brand { opacity: 0; pointer-events: none; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; }
.nav a { text-decoration: none; color: var(--licht); opacity: 0.75; transition: opacity 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }

/* ---------- Einstieg: unscharfes Titelbild hinter dem Logo ---------- */
.se { position: relative; height: 240vh; height: 240svh; }
.se-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.se-frame { position: absolute; inset: 0; overflow: hidden; }
.se-frame img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: blur(26px) brightness(0.5);
	transform: scale(1.14);
	will-change: transform, filter;
}
.se-scrim { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.6)); opacity: 0; pointer-events: none; }
.se-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); will-change: transform, opacity; pointer-events: none; }
.se-mark img { height: clamp(120px, 24vh, 230px); width: auto; filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.35)); }
.se-stage .cap { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 22px; opacity: 0; }
.se-stage .cap .m, .se-stage .cap .nr { color: #c9cac6; }

/* ---------- Projekte auf der Startseite ---------- */
.frame { margin: 0; }
.frame + .frame, .se + .frame, .se + #projekte > .frame:first-child { margin-top: clamp(56px, 9vw, 140px); }
.frame.full .pm { height: min(92vh, 66vw); }
.frame.full .pm img { width: 100%; height: 100%; object-fit: cover; }
.solo { display: flex; justify-content: center; padding: 0 var(--rand); }
.solo img { max-height: 88vh; width: auto; }
.pm { overflow: hidden; height: 100%; }
.pm img { transform: translate3d(0, var(--py, 0px), 0) scale(1.1); will-change: transform; }
.cap {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px;
	padding: 16px var(--rand) 0;
	font-size: 14px;
	margin: 0;
}
.cap .nr { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--nebel); width: 2.2em; }
.cap .t { font-family: var(--display); font-weight: 600; font-stretch: 90%; font-size: 16px; }
.cap .m { color: var(--nebel); }
.cap .go { margin-left: auto; color: var(--licht); text-decoration: none; border-bottom: 1px solid var(--anthrazit); padding-bottom: 2px; transition: border-color 0.2s; }
.cap .go:hover { border-color: var(--petrol); }
.frame-end { height: clamp(56px, 9vw, 140px); }
@media (max-width: 700px) {
	.frame.full .pm { height: auto; aspect-ratio: 4 / 3; }
	.solo img { max-height: none; width: 100%; }
	.cap .go { margin-left: 0; }
}

/* ---------- Abschnitte (Film, Kontakt, Seiten) ---------- */
.wulf-block { padding: clamp(60px, 9vw, 130px) var(--rand) 0; max-width: none; }
.wulf-block h2, .wulf-page h1 {
	font-family: var(--display); font-weight: 500; font-stretch: 85%;
	font-size: clamp(28px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.02em;
	margin: 10px 0 0; color: var(--licht); text-wrap: balance;
}
.wulf-block .wp-block-video { margin: 36px 0 0; max-width: 1300px; }
.wulf-block .wp-block-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.wulf-block figcaption { color: var(--nebel); font-size: 14px; margin-top: 12px; text-align: left; }
.wulf-block p { max-width: 56ch; color: #c6c7c3; }
.wulf-block .wp-block-button__link, .wulf-btn {
	display: inline-block; background: transparent; color: var(--licht);
	border: 1px solid var(--licht); border-radius: 99px; padding: 12px 22px;
	text-decoration: none; font-weight: 500; font-size: 15px; transition: background 0.2s, color 0.2s;
}
.wulf-block .wp-block-button__link:hover, .wulf-btn:hover { background: var(--licht); color: var(--nacht); }
.wulf-leist { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: 28px; font-family: var(--display); font-stretch: 85%; font-size: clamp(24px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.01em; }
.wulf-leist span { color: var(--nebel); }
.wulf-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 40px; align-items: start; }
@media (max-width: 700px) { .wulf-cols { grid-template-columns: 1fr; } }
.wulf-mail { font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--anthrazit); }
.wulf-mail:hover { border-color: var(--petrol); }
.wulf-page { padding: calc(110px) var(--rand) 0; max-width: 820px; }
.wulf-page :where(p, li) { color: #c6c7c3; max-width: 70ch; }
.wulf-page h2, .wulf-page h3 { font-family: var(--display); font-weight: 500; font-stretch: 88%; color: var(--licht); }

/* ---------- Projektseite ---------- */
.pj { padding: calc(110px) var(--rand) 0; }
.pj-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; max-width: 1300px; margin: 0 auto 48px; }
.pj-back { grid-column: 1 / -1; font-size: 14px; }
.pj-back a { text-decoration: none; color: var(--nebel); }
.pj-back a:hover { color: var(--licht); }
.pj h1 { font-family: var(--display); font-weight: 500; font-stretch: 85%; font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; margin: 8px 0 0; color: var(--licht); }
.pj dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 16px; font-size: 14px; }
.pj dt { color: var(--nebel); }
.pj dd { margin: 0; }
.pj-txt { color: #c6c7c3; max-width: 56ch; margin: 0; }
@media (max-width: 700px) { .pj-head { grid-template-columns: 1fr; } }

.wulf-gal { padding: 0 var(--rand); }
.wulf-gal .wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: var(--rand) !important;
	max-width: 1300px;
	margin: 0 auto !important;
}
.wulf-gal .wp-block-gallery > .wp-block-image,
.wulf-gal .wp-block-gallery.has-nested-images figure.wp-block-image {
	width: 100% !important; margin: 0 !important; flex: none !important;
	background: var(--kohle); overflow: hidden; cursor: zoom-in;
}
.wulf-gal .wp-block-gallery figure.wp-block-image.ls { grid-column: 1 / -1; }
.wulf-gal .wp-block-gallery img { width: 100%; height: auto !important; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.wulf-gal .wp-block-gallery figure:hover img { transform: scale(1.015); }
@media (max-width: 700px) { .wulf-gal .wp-block-gallery { grid-template-columns: 1fr; } .wulf-gal .wp-block-gallery figure.wp-block-image.ls { grid-column: auto; } }

.pj-next { display: grid; gap: 6px; max-width: 1300px; margin: 80px auto 0; padding: 24px var(--rand) 0; text-decoration: none; border-top: 1px solid var(--anthrazit); }
.pj-next .t { font-family: var(--display); font-weight: 500; font-stretch: 85%; font-size: clamp(26px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.pj-next:hover .t { color: var(--petrol); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 85; background: rgba(10, 11, 12, 0.96); display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; font-size: 22px; display: grid; place-items: center; opacity: 0.7; transition: opacity 0.2s, background 0.2s; }
.lb button:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.lb .lx { top: 14px; right: 14px; } .lb .lp { left: 10px; top: 50%; } .lb .ln { right: 10px; top: 50%; }
@media (max-width: 700px) { .lb .lp, .lb .ln { display: none; } }

/* ---------- Fuß ---------- */
.wulf-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 80px var(--rand) 32px; font-size: 13px; color: var(--nebel); }
.wulf-foot a { text-decoration: none; }
.wulf-foot a:hover { color: var(--licht); }
.wulf-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
	.se { height: auto; }
	.se-stage { position: relative; }
	.pm img { transform: none !important; }
}

/* ---------- Edition (heller Raum) ---------- */
:root { --wand: #e9e6e0; --tinte: #1b1c1d; }
body.ed { background: var(--wand); color: var(--tinte); color-scheme: light; }
body.ed .k, body.ed p.k { color: #6e6c66; }
body.ed .top.solid { background: color-mix(in srgb, var(--wand) 90%, transparent); }
body.ed .nav a { color: var(--tinte); }
body.ed .wulf-foot { color: #6e6c66; }
body.ed .wulf-foot a:hover { color: var(--tinte); }

.ed-wrap { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto auto; padding: 76px var(--rand) 24px; }
body.admin-bar .ed-wrap { padding-top: 108px; }
.wall { display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; touch-action: pan-y; perspective: 1400px; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.print { position: relative; background: #fbfaf7; padding: clamp(14px, 2.2vw, 34px); box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 26px 50px -22px rgba(40,34,24,.42); transition: opacity .35s, transform .35s; max-width: 100%; }
.print img { max-height: min(66vh, 760px); max-width: min(78vw, 1100px); width: auto; height: auto; }
.print.out { opacity: 0; transform: translateX(var(--dx, 0px)); }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.35), transparent 55%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.tilt:hover .glare { opacity: 1; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--tinte); opacity: .55; transition: opacity .2s, background .2s; }
.arrow:hover { opacity: 1; background: rgba(0,0,0,.05); }
.arrow.l { left: 0; } .arrow.r { right: 0; }
@media (max-width: 700px) { .ed-wrap { min-height: auto; } .wall { padding: 20px 0; } .arrow { display: none; } .print img { max-width: 100%; max-height: 60vh; } }
.label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; max-width: 1100px; margin: 22px auto 0; width: 100%; }
.label .nr { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.label .t { font-family: var(--display); font-weight: 500; font-stretch: 88%; font-size: 20px; }
.label .m { color: #6e6c66; font-size: 14px; }
.label .cnt { margin-left: auto; font-variant-numeric: tabular-nums; color: #6e6c66; font-size: 14px; }
.ask { background: var(--tinte); color: var(--wand); border-radius: 99px; padding: 11px 20px; font-weight: 500; font-size: 14px; text-decoration: none; display: inline-block; transition: background .2s; }
.ask:hover { background: var(--petrol-dunkel); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 1100px; margin: 22px auto 0; width: 100%; padding-bottom: 6px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 auto; height: 52px; opacity: .45; transition: opacity .2s; outline-offset: 2px; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; }
.thumbs img { height: 52px; width: auto; }
.ed-about { max-width: 1100px; margin: 80px auto 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; padding: 0 var(--rand) 40px; }
.ed-about h2 { font-family: var(--display); font-weight: 500; font-stretch: 85%; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; margin: 8px 0 0; text-wrap: balance; color: var(--tinte); }
.ed-about p { margin: 0 0 12px; max-width: 52ch; color: #4d4b46; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; font-size: 14px; margin: 0; }
.facts dt { color: #6e6c66; } .facts dd { margin: 0; }
@media (max-width: 700px) { .ed-about { grid-template-columns: 1fr; } .label .cnt { margin-left: 0; } }

.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 80; background: #f6f4ef; color: var(--tinte); visibility: hidden; padding: 28px; overflow-y: auto; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.sheet.on { transform: none; visibility: visible; box-shadow: -30px 0 60px -30px rgba(0,0,0,.35); }
.sheet h3 { font-family: var(--display); font-weight: 500; font-stretch: 88%; font-size: 28px; line-height: 1.05; margin: 6px 0 20px; color: var(--tinte); }
.sheet .x { float: right; font-size: 14px; border: 1px solid #b9b5ac; border-radius: 99px; padding: 6px 14px; }
.sheet img { width: 100%; max-height: 220px; object-fit: contain; background: #eae7e1; margin-bottom: 20px; }
.sizes { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.sizes label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid #cfcac0; padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.sizes input { accent-color: var(--tinte); }
.sizes label:has(input:checked) { border-color: var(--tinte); background: #fbfaf7; }
.sizes .p { color: #6e6c66; font-size: 13px; font-variant-numeric: tabular-nums; }
.sheet .note { font-size: 13px; color: #6e6c66; margin: 0 0 18px; }
.sheet .k { color: #6e6c66; }
.msg { background: #fbfaf7; border: 1px solid #cfcac0; padding: 14px; font-size: 14px; white-space: pre-line; margin: 0 0 12px; user-select: all; }
.sheet .mail { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.scrim { position: fixed; inset: 0; z-index: 75; background: rgba(20,18,14,.3); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--tinte); color: var(--wand); padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; transition: all .25s; z-index: 90; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Kachel auf der Startseite */
.door { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--rand); max-width: 1300px; margin: 40px auto 0; align-items: center; background: var(--wand); color: var(--tinte); padding: clamp(20px, 4vw, 56px); text-decoration: none; }
.door img { width: 100%; aspect-ratio: 3/2; object-fit: cover; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); }
.door h3 { font-family: var(--display); font-weight: 500; font-stretch: 85%; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.05; margin: 8px 0 14px; color: var(--tinte); }
.door p { margin: 0 0 22px; max-width: 42ch; color: #4d4b46; }
.door .k { color: #6e6c66; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid currentColor; padding: 12px 20px; border-radius: 99px; font-weight: 500; transition: background .2s, color .2s; }
.door:hover .btn { background: var(--tinte); color: var(--wand); }
@media (max-width: 700px) { .door { grid-template-columns: 1fr; margin-left: var(--rand); margin-right: var(--rand); } }

/* ---------- Kontaktformular (Contact Form 7) ---------- */
.wulf-form { margin-top: 28px; max-width: 520px; }
.wulf-form label { display: block; font-size: 13px; color: var(--nebel); margin-bottom: 14px; }
.wulf-form input[type="text"], .wulf-form input[type="email"], .wulf-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; background: var(--kohle); color: var(--licht); border: 1px solid var(--anthrazit); border-radius: 0; font: inherit; font-size: 15px; }
.wulf-form textarea { min-height: 130px; resize: vertical; }
.wulf-form input:focus, .wulf-form textarea:focus { outline: 2px solid var(--petrol); outline-offset: 0; border-color: var(--petrol); }
.wulf-form .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.wulf-form .wpcf7-acceptance input { margin-top: 3px; accent-color: var(--petrol); }
.wulf-form input[type="submit"] { background: var(--licht); color: var(--nacht); border: 0; border-radius: 99px; padding: 12px 24px; font: inherit; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.wulf-form input[type="submit"]:hover { background: var(--petrol); }
.wulf-form .wpcf7-not-valid-tip, .wulf-form .wpcf7-response-output { font-size: 13px; color: #ffb4a8; }
.wulf-form .wpcf7-response-output { border: 1px solid var(--anthrazit) !important; margin: 14px 0 0 !important; padding: 10px 14px !important; }
.wulf-form .wpcf7-spinner { display: none; }
