/*
	Richard Klinkert Videoproduktion — Theme-Stylesheet.

	1:1 übernommen aus der ursprünglichen Astro-Version der Website (siehe das
	Astro-Projekt im übergeordneten Ordner). Alle Komponenten-Styles wurden hier ohne
	Namenskonflikte zusammengeführt (geprüft: keine zwei Komponenten teilen sich eine
	Klasse), bis auf eine bewusste Ausnahme: der .section-intro-Override aus dem
	Portfolio-Bereich ist unten auf #portfolio .section-intro verengt, damit er nicht
	versehentlich auch die Untertitel bei "Über mich" und "Kontakt" verbreitert (in Astro
	war das automatisch auf die Portfolio-Komponente beschränkt).
*/

:root {
	--color-bg: #040812;
	--color-bg-alt: #070e1f;
	--color-surface: #0a1228;
	--color-surface-hover: #0d172f;
	--color-primary: #040812;
	--color-border: rgba(255, 255, 255, 0.12);
	--color-text: #ffffff;
	--color-text-muted: #a9b6d6;
	--color-accent: #ffffff;
	--color-accent-hover: #d9e2f5;
	--color-on-accent: #040812;
	--color-accent-soft: rgba(255, 255, 255, 0.08);
	--color-destructive: #dc2626;
	--color-highlight: #ff8a5c;

	--font-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-accent: "Unbounded", var(--font-display);

	--max-width: 1200px;

	--space-xs: 0.25rem;
	--space-sm: 0.5rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3rem;
	--space-3xl: 6rem;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

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

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
}

p {
	margin: 0;
}

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

.section {
	padding-block: clamp(4rem, 8vw, var(--space-3xl));
}

.section-label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-accent);
	font-weight: 600;
	margin-bottom: var(--space-md);
}

.section-label::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--color-accent);
}

.section-heading {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	margin-bottom: var(--space-md);
}

.section-intro {
	color: var(--color-text-muted);
	max-width: 640px;
	font-size: 1.05rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	min-height: 44px;
	padding: 0.9rem 1.9rem;
	border-radius: 3px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 200ms var(--ease);
}

.btn-primary {
	background: var(--color-accent);
	color: var(--color-on-accent);
}

.btn-primary:hover {
	background: var(--color-accent-hover);
	transform: translateY(-1px);
}

.btn-outline {
	background: transparent;
	border-color: var(--color-border);
	color: var(--color-text);
}

.btn-outline:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/*
	Scroll-reveal utility, progressive enhancement:
	- Default (no JS, or JS fails/is disabled): [data-reveal] elements are fully visible.
	- Only once main.js confirms it's running does it add "js-reveal" to <html>, which is
	  what actually hides elements pending their IntersectionObserver hit.
	This guarantees content is never trapped at opacity:0 for no-JS users or crawlers.
*/
html.js-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

html.js-reveal [data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html.js-reveal [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

::selection {
	background: var(--color-accent);
	color: var(--color-on-accent);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	padding-block: 1.1rem;
	background: linear-gradient(to bottom, rgba(4, 8, 18, 0.85), transparent);
	transition: background 250ms var(--ease), padding 250ms var(--ease);
}

.header.scrolled {
	background: rgba(4, 8, 18, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
	padding-block: 0.8rem;
}

.header-inner {
	display: flex;
	align-items: center;
	padding-inline: clamp(1.5rem, 5vw, 3.5rem);
}

.logo {
	font-family: var(--font-display);
	font-size: clamp(1rem, 4vw, 1.5rem);
	font-weight: 600;
	color: var(--color-text);
	white-space: nowrap;
}

.logo span {
	font-weight: 400;
	opacity: 0.75;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

/* Always-present base layer: shows through whenever a slide has no video file yet */
.hero-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, 0.05), transparent 55%),
		radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, 0.04), transparent 50%),
		linear-gradient(160deg, #0a1330 0%, #040812 55%, #02040a 100%);
}

.hero-slider {
	position: absolute;
	inset: 0;
}

.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1200ms ease;
}

.hero-video.active {
	opacity: 1;
}

/* Dark overlay so headline text stays legible over any footage */
.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(2, 4, 10, 0.6) 0%, rgba(2, 4, 10, 0.4) 45%, rgba(2, 4, 10, 0.8) 100%);
	pointer-events: none;
}

/*
	Soft transition into the next section: fades the video/overlay out into the exact
	page background color instead of ending on a hard edge.
*/
.hero-fade {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: clamp(140px, 22vh, 320px);
	background: linear-gradient(to bottom, transparent, var(--color-bg) 88%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 1;
	padding-top: 6rem;
	padding-left: clamp(1.5rem, 5vw, 3.5rem);
	max-width: 620px;
}

.eyebrow {
	color: var(--color-text);
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: var(--space-lg);
}

.hero-title {
	color: var(--color-text);
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	font-weight: 300;
	letter-spacing: -0.01em;
}

.hero-title span {
	font-family: var(--font-accent);
	font-weight: 800;
	color: var(--color-highlight);
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.nowrap {
	white-space: nowrap;
}

.eproductions-link {
	color: var(--color-text);
	font-weight: 600;
	text-underline-offset: 3px;
	text-decoration: underline;
	text-decoration-color: var(--color-border);
	transition: text-decoration-color 200ms var(--ease);
}

.eproductions-link:hover {
	text-decoration-color: var(--color-accent);
}

/* Scoped to #portfolio only — the short cooperation credit should fit on one line,
   but "Über mich" and "Kontakt" must keep the normal 640px cap on .section-intro. */
#portfolio .section-intro {
	max-width: none;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-lg);
	margin-top: var(--space-xl);
}

.card {
	border: 1px solid var(--color-border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--color-surface);
	transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}

.card:hover {
	transform: translateY(-4px);
	border-color: var(--color-accent);
}

.card-trigger {
	display: block;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	text-align: left;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.card-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 300ms var(--ease);
}

.card:hover .card-thumb img {
	transform: scale(1.04);
}

.card-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(4, 8, 18, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	backdrop-filter: blur(2px);
}

.card-body {
	padding: 1.1rem 1.3rem 1.4rem;
}

.card-body h3 {
	font-family: var(--font-display);
	font-size: 1.05rem;
}

/* Lightbox: hidden by default, JS toggles .open + aria-hidden */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--space-lg);
}

.lightbox.open {
	display: flex;
}

.lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 4, 10, 0.88);
}

.lightbox-dialog {
	position: relative;
	width: 100%;
	max-width: 1040px;
}

.lightbox-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}

.lightbox-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.lightbox-close {
	position: absolute;
	top: -3rem;
	right: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	color: var(--color-text);
	cursor: pointer;
	transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.lightbox-close:hover {
	border-color: var(--color-accent);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

@media (max-width: 860px) {
	.about-grid {
		grid-template-columns: 1fr;
	}
}

.about-photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 6px;
	border: 1px solid var(--color-border);
	object-fit: cover;
	display: block;
}

.about-text {
	color: var(--color-text-muted);
	margin-top: var(--space-lg);
	max-width: 560px;
}

.about-text + .about-text {
	margin-top: var(--space-md);
}

.equipment-list {
	list-style: none;
	padding: 0;
	margin: var(--space-xl) 0 0;
	display: grid;
	gap: 0.7rem;
}

.equipment-list li {
	position: relative;
	padding-left: 1.4rem;
	color: var(--color-text-muted);
	font-size: 0.95rem;
}

.equipment-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 6px;
	height: 6px;
	background: var(--color-accent);
	border-radius: 50%;
}

.facts {
	display: flex;
	gap: var(--space-2xl);
	margin-top: var(--space-2xl);
	padding-top: var(--space-xl);
	border-top: 1px solid var(--color-border);
}

.fact {
	display: flex;
	flex-direction: column;
}

.fact-value {
	font-family: var(--font-display);
	font-size: 1.8rem;
	color: var(--color-accent);
}

.fact-label {
	font-size: 0.8rem;
	color: var(--color-text-muted);
	margin-top: 0.2rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
}

@media (max-width: 860px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

.contact-list {
	list-style: none;
	padding: 0;
	margin: var(--space-2xl) 0 0;
	display: grid;
	gap: var(--space-lg);
}

.contact-list li {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding-bottom: var(--space-lg);
	border-bottom: 1px solid var(--color-border);
}

.contact-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-text-muted);
}

.contact-list a:hover {
	color: var(--color-accent);
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	padding: clamp(1.5rem, 3vw, 2.3rem);
}

.form-row {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-row label {
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 0.75rem 0.9rem;
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 0.95rem;
	min-height: 44px;
	resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--color-accent);
}

.form-submit {
	margin-top: 0.5rem;
}

.form-note {
	font-size: 0.85rem;
	color: var(--color-text-muted);
	min-height: 1.2em;
}

.form-note.success {
	color: var(--color-accent);
}

.form-note.error {
	color: var(--color-destructive);
}

.form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
	border-top: 1px solid var(--color-border);
	padding-block: var(--space-2xl);
}

/*
	Small, unobtrusive credit block — explains who E-Productions is (linked from the
	"E-Productions" mention in the Portfolio section) without giving it the visual weight
	of a normal page section (no section-label/section-heading treatment, small type only).
*/
.e-productions {
	padding-bottom: var(--space-xl);
	scroll-margin-top: 2rem;
}

.e-productions-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-text-muted);
	margin-bottom: var(--space-sm);
}

.e-productions-team {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
}

.e-productions-team li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	font-size: 0.85rem;
}

.e-productions-name {
	color: var(--color-text);
	font-weight: 500;
}

.e-productions-role {
	color: var(--color-text-muted);
}

.e-productions-role::before {
	content: "— ";
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
}

.footer-logo {
	font-family: var(--font-display);
	font-size: 1rem;
}

.footer-logo span {
	color: var(--color-accent);
}

.footer-socials,
.footer-legal {
	display: flex;
	gap: var(--space-lg);
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

.footer-socials a:hover,
.footer-legal a:hover {
	color: var(--color-accent);
}

.footer-copy {
	font-size: 0.8rem;
	color: var(--color-text-muted);
	width: 100%;
	text-align: center;
	order: 4;
	margin-top: var(--space-sm);
}

@media (min-width: 700px) {
	.footer-copy {
		width: auto;
		order: 0;
		margin-top: 0;
		text-align: right;
	}
}

/* ==========================================================================
   Impressum / Datenschutz (legal pages)
   ========================================================================== */

.legal {
	padding-top: 8rem;
}

.legal-content {
	max-width: 720px;
}

.legal-content h1 {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	margin-bottom: 2rem;
}

.legal-content h2 {
	font-family: var(--font-display);
	font-size: 1.1rem;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
	color: var(--color-text-muted);
	line-height: 1.7;
}

.legal-content code {
	background: var(--color-surface);
	padding: 0.15em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
}

.legal-content a {
	color: var(--color-text);
	text-decoration: underline;
	text-decoration-color: var(--color-border);
	text-underline-offset: 3px;
}

.legal-content a:hover {
	text-decoration-color: var(--color-accent);
}
