/*
Theme Name: Überbelichtet
Description: Dunkles, edles Fotografie-Portfolio in Gold und Schwarz für Alex. Startseite mit großem Startbild, Galerien, Projekten, Werkzeugen und „Über mich“. Schriften lokal eingebunden, ohne Google-Server.
Author: Alex
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
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: ueberbelichtet
*/

:root {
	--ueb-accent: #c9a961;
	--ueb-bg: #0b0a08;
	--ueb-bg-2: #16140f;
	--ueb-line: #2a261d;
	--ueb-text: #e9e4d8;
	--ueb-bright: #f3eee2;
	--ueb-muted: #a39c8c;
	--ueb-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", Georgia, serif;
	--ueb-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ueb-pad: clamp(20px, 5vw, 72px);
}

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

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

body {
	margin: 0;
	background: var(--ueb-bg);
	color: var(--ueb-text);
	font-family: var(--ueb-sans);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--ueb-accent); text-decoration: none; transition: color .2s; }
a:hover { color: #e6cf94; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ueb-accent); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 12px; left: 12px;
	padding: 10px 16px; background: var(--ueb-accent); color: var(--ueb-bg);
}

.wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding-left: var(--ueb-pad); padding-right: var(--ueb-pad); }
.narrow { max-width: 860px; }
.center { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Kopf ---------- */
.site-header {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
	padding: 28px var(--ueb-pad);
	border-bottom: 1px solid var(--ueb-line);
}
.site-header.is-overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 5; border-bottom: 0; }
.admin-bar .site-header.is-overlay { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.is-overlay { top: 46px; } }

.site-brand { font-family: var(--ueb-serif); font-size: 28px; font-weight: 500; letter-spacing: .06em; color: var(--ueb-text); }
.site-brand:hover { color: var(--ueb-bright); }

.site-nav .menu, .footer-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav .menu { gap: clamp(14px, 3vw, 40px); counter-reset: ueb-nav; }
.site-nav a {
	font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ueb-text);
	display: inline-block; padding: 10px 0;
}
.site-nav a::before { counter-increment: ueb-nav; content: counter(ueb-nav, decimal-leading-zero) " "; color: var(--ueb-accent); }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--ueb-accent); }

/* ---------- Startbild ---------- */
.hero { position: relative; height: min(820px, 92vh); min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; background: var(--ueb-bg-2); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,8,.55) 0%, rgba(11,10,8,.05) 35%, rgba(11,10,8,.35) 65%, var(--ueb-bg) 100%); }
.hero-inner { position: relative; padding-bottom: clamp(56px, 9vh, 96px); }
.kicker { margin: 0 0 18px; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--ueb-accent); }
.hero-name { margin: 0; font-family: var(--ueb-serif); font-weight: 400; font-size: clamp(88px, 14vw, 200px); line-height: .9; letter-spacing: .01em; color: var(--ueb-bright); }
.hero-tag { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.hero-tag .rule { display: block; width: 64px; height: 1px; background: var(--ueb-accent); flex: none; }
.hero-tag p { margin: 0; font-family: var(--ueb-serif); font-style: italic; font-size: clamp(24px, 2.6vw, 34px); color: var(--ueb-text); }

/* ---------- Abschnitte ---------- */
.section { padding-top: 120px; padding-bottom: 40px; }
.section:last-of-type { padding-bottom: 120px; }
.page-top { padding-top: 80px; padding-bottom: 120px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.sec-num { margin: 0 0 12px; font-family: var(--ueb-serif); font-size: 22px; color: var(--ueb-accent); }
.sec-title { margin: 0 0 48px; font-family: var(--ueb-serif); font-weight: 400; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--ueb-text); }
.sec-head .sec-title { margin-bottom: 0; }
.sec-intro { margin: 0; max-width: 380px; font-size: 15px; line-height: 1.7; color: var(--ueb-muted); }
.sec-intro.lead { max-width: 640px; margin: -24px 0 48px; font-size: 17px; }
.hint { color: var(--ueb-muted); border: 1px dashed var(--ueb-line); padding: 20px 24px; }
.back { margin: 0 0 28px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Bilderraster ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tile { margin: 0; }
.tile-img { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ueb-bg-2); }
.tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile-img:hover img, .tile-img:focus-visible img { transform: scale(1.04); }
.tile-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ueb-muted); }
.tile-cap a { color: var(--ueb-text); }
.accent { color: var(--ueb-accent); }

/* ---------- Knöpfe ---------- */
.btn-outline, .btn-gold, .tool-link {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 32px;
	font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
}
.btn-outline, .tool-link { border: 1px solid var(--ueb-accent); color: var(--ueb-accent); align-self: flex-start; }
.btn-outline:hover, .tool-link:hover { background: var(--ueb-accent); color: var(--ueb-bg); }
.btn-gold { background: var(--ueb-accent); color: var(--ueb-bg); font-weight: 500; }
.btn-gold:hover { background: #e6cf94; color: var(--ueb-bg); }

/* ---------- Projekte ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--ueb-line); border: 1px solid var(--ueb-line); }
.card { background: var(--ueb-bg); display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.card-kicker { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ueb-accent); }
.card-title { margin: 0; font-family: var(--ueb-serif); font-weight: 500; font-size: 32px; line-height: 1.15; }
.card-title a { color: var(--ueb-text); }
.card-title a:hover { color: var(--ueb-accent); }
.card-text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ueb-muted); }

/* ---------- Werkzeuge ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tool { border: 1px solid var(--ueb-line); padding: 40px; display: flex; flex-direction: column; gap: 16px; color: var(--ueb-accent); }
.tool h3 { margin: 0; font-family: var(--ueb-serif); font-weight: 500; font-size: 30px; color: var(--ueb-text); }
.tool p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ueb-muted); }
.tool .tool-soon { margin-top: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ueb-accent); }

/* ---------- Über mich ---------- */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about-img { flex: 1 1 320px; max-width: 460px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ueb-bg-2); }
.about-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 999 1 420px; min-width: 0; }
.about-text .sec-title { margin-bottom: 28px; }
.about-quote { margin: 0 0 20px; font-family: var(--ueb-serif); font-style: italic; font-size: 28px; line-height: 1.35; color: var(--ueb-bright); }
.about-body { max-width: 560px; margin-bottom: 32px; font-size: 16px; line-height: 1.8; color: var(--ueb-muted); }

/* ---------- Fuß ---------- */
.site-footer { border-top: 1px solid var(--ueb-line); padding: 32px var(--ueb-pad); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ueb-muted); }
.footer-nav .menu { gap: 28px; }

/* ---------- Inhalte aus dem Editor ---------- */
.ueb-prose { font-size: 17px; line-height: 1.8; }
.ueb-prose > * { margin-top: 0; margin-bottom: 1.4em; }
.ueb-prose h2, .ueb-prose h3, .ueb-prose h4 { font-family: var(--ueb-serif); font-weight: 500; color: var(--ueb-bright); line-height: 1.2; margin-top: 1.8em; margin-bottom: .6em; }
.ueb-prose h2 { font-size: 38px; } .ueb-prose h3 { font-size: 30px; } .ueb-prose h4 { font-size: 24px; }
.ueb-prose blockquote { margin-left: 0; padding-left: 24px; border-left: 1px solid var(--ueb-accent); font-family: var(--ueb-serif); font-style: italic; font-size: 26px; color: var(--ueb-bright); }
.ueb-prose figcaption, .ueb-prose .wp-element-caption { font-size: 13px; letter-spacing: .08em; color: var(--ueb-muted); text-align: left; }
.ueb-prose hr { border: 0; border-top: 1px solid var(--ueb-line); }
.ueb-prose .alignwide { max-width: none; }
.gallery-content .wp-block-gallery.has-nested-images { gap: 20px; --wp--style--unstable-gallery-gap: 20px; }
.ueb-prose .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 0; }
.ueb-prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { background: linear-gradient(0deg, rgba(11,10,8,.75), transparent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ueb-gallery img { cursor: zoom-in; }

.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--ueb-line); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.post-list { display: grid; gap: 40px; }
.post-item h2 { margin: 0 0 8px; font-family: var(--ueb-serif); font-weight: 500; font-size: 32px; }
.post-item h2 a { color: var(--ueb-text); }
.post-item p { margin: 0; color: var(--ueb-muted); }
.nav-links { display: flex; gap: 16px; margin-top: 56px; }
.nav-links .page-numbers { padding: 6px 12px; border: 1px solid var(--ueb-line); color: var(--ueb-text); }
.nav-links .current { border-color: var(--ueb-accent); color: var(--ueb-accent); }
.notfound .btn-outline { margin-top: 8px; }

/* ---------- Großansicht (Lightbox) ---------- */
.ueb-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(6,5,4,.96); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.ueb-lb[hidden] { display: none; }
.ueb-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ueb-lb img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; cursor: default; }
.ueb-lb figcaption { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ueb-muted); text-align: center; }
.ueb-lb button { position: absolute; background: none; border: 0; color: var(--ueb-text); cursor: pointer; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.ueb-lb button:hover { color: var(--ueb-accent); }
.ueb-lb .lb-close { top: 12px; right: 12px; }
.ueb-lb .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.ueb-lb .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .ueb-lb { padding: 56px 8px; } .ueb-lb .lb-prev, .ueb-lb .lb-next { top: auto; bottom: 8px; transform: none; } }
body.ueb-lb-open { overflow: hidden; }

@media (max-width: 700px) {
	.section { padding-top: 88px; }
	.about { gap: 40px; }
	.card-body, .tool { padding: 32px 24px; }
}
