/* ==========================================================================
   marbledust 2026 – Haupt-Stylesheet
   Farben aus dem bereitgestellten Logo (Marbledust-Logo / logo-horizontal...)
   per Pixel-Sampling ermittelt. Bitte vor Go-live gegen das tatsächliche
   Live-CSS abgleichen, da keine automatisierte Analyse der Live-Seite
   möglich war (robots.txt).
   ========================================================================== */

:root {
	--color-primary: #eea72b;   /* Amber-Orange, exakt aus den "Was wir bieten"-Icons gemessen */
	--color-accent:  #d2a23c;   /* Gold-Ton aus dem Logo-Kreis */
	--color-dark:    #1a1a1a;
	--color-text:    #262626;
	--color-bg:      #ffffff;
	--color-bg-light:#f5f5f3;
	--color-border:  #e3e3e0;

	--font-heading: 'Raleway', sans-serif;
	--font-body:    'Raleway', sans-serif;

	--container-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
	overflow-x: clip; /* Sicherheitsnetz gegen horizontales Scrollen (erzeugt keinen Scroll-Container, Sticky-Header bleibt intakt) */
}
html { overflow-x: hidden; max-width: 100%; } /* Viewport-Ebene: verhindert, dass mobile Browser die Seite herauszoomen/verschieben */
body { max-width: 100%; position: relative; }
iframe, video, svg { max-width: 100%; }
.contact-grid > *, .service > *, .gallery-grid > *, .feature-grid > * { min-width: 0; }
.hero__word, .section__title, .cta-banner__title { overflow-wrap: anywhere; }

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

a { color: var(--color-primary); }

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}
.container--narrow { max-width: 760px; }

/* ---------- Logo ---------- */
.site-logo__img { width: 869px; max-width: 100%; height: auto; display: block; } /* ~84px hoch auf Desktop, schrumpft proportional auf schmalen Bildschirmen */

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0; /* bündig am oberen Rand, nichts scheint darüber durch */
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--color-border);
}
.admin-bar .site-header { top: 32px; } /* eingeloggt: WordPress-Admin-Leiste (32px) überdeckt sonst den Kopfbereich */
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
.site-header__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .75rem 1.5rem;
	padding: 1.6rem 1.5rem 1rem; /* oberer Innenabstand hält das Logo auch beim Scrollen vom Fensterrand weg */
}
.site-logo { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.site-nav__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}
.site-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.75rem;
	flex-wrap: wrap;
	flex: 1 1 auto;
}

/* Hamburger-Button: nur auf schmalen Bildschirmen sichtbar */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	margin-left: auto;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-dark); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 680px) {
	.site-header__inner { flex-wrap: nowrap; justify-content: space-between; padding: 1.1rem 1.2rem .75rem; }
	/* Das Logo (inkl. Claim) ist ca. 10:1 breit: am Handy darf es nur den Platz neben dem Menü-Button nutzen,
	   sonst schiebt es den Button aus dem Bild und die Seite wird breiter als der Bildschirm. */
	.site-logo { flex: 1 1 auto; min-width: 0; margin-right: 1rem; }
	.site-logo__img { height: auto; width: 100%; max-width: 420px; }
	.nav-toggle { flex: 0 0 32px; }
	.nav-toggle { display: flex; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: flex-start;
		padding: 1.2rem 1.5rem 1.5rem;
		border-bottom: 1px solid var(--color-border);
		box-shadow: 0 8px 16px rgba(0,0,0,.08);
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; }
	.lang-switch { margin-top: .5rem; }

	/* Allgemeine Mobile-Entzerrung: weniger Leerraum, Hero-Text passt sich an,
	   kein fixiertes Parallax-Bild (iOS-Bug-Prävention + bessere Performance) */
	.section { padding: 3rem 0; }
	.hero { min-height: 56vh; }
	.hero__title { font-size: clamp(1.7rem, 8vw, 2.3rem); }
	.hero__subtitle { font-size: 1rem; }
	.hero__actions .btn { padding: .7rem 1.2rem; font-size: .9rem; }
	.hero__bg { background-attachment: scroll; }
	.cta-banner { min-height: 26vh; }
	.cta-banner__title--split { font-size: 1.5rem; }
	.service { gap: 1.2rem; }
	.contact-map iframe { height: 220px; }
}
.lang-switch {
	font-weight: 700;
	font-style: italic;
	color: var(--color-primary);
	text-decoration: none;
}
.site-nav__list a {
	color: inherit;
	text-decoration: none;
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.site-nav__list a:hover { color: var(--color-primary); }

/* Anker-Ziele nicht unter dem sticky Header verschwinden lassen */
#waswirbieten, #leistungen, #projects, #contact, #showreel-banner, #animation-reel {
	scroll-margin-top: 155px;
}

/* ---------- Hero (mit Parallax) ---------- */
.hero {
	position: relative;
	min-height: 40vh; /* Loop-Höhe halbiert */
	display: flex;
	align-items: center;
	color: #fff;
	overflow: hidden;
}
.hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero__bg {
	position: absolute;
	inset: 0;
	background-image: url('../img/hero-bg.jpg'); /* Fallback/Poster, falls Video nicht lädt oder reduced-motion aktiv ist */
	background-size: cover;
	background-position: center;
	background-attachment: fixed; /* Parallax-Effekt – auf iOS Safari automatisch Fallback */
}
.hero__loop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
	.hero__loop { display: none; } /* bei reduced-motion bleibt nur das statische hero__bg-Bild sichtbar */
}
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.65));
}
.hero__content { position: relative; z-index: 1; }
.hero__title {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: clamp(2.2rem, 6vw, 4rem);
	text-transform: uppercase;
	line-height: 1.1;
	margin: 0 0 1rem;
}
.hero__subtitle { font-style: italic; font-size: 1.15rem; margin: 0 0 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Wort-Zyklus-Animation: "Kommunikation" <-> "marbledust" wechseln sich unter
   dem statischen "Sie wollen" ab. Dreh-Einstieg/-Ausblenden um die HORIZONTALE
   Achse (Drehpunkt in der Höhenmitte), nicht seitlich schwenkend. Beide Wörter
   sind über left:50%/translateX(-50%) exakt zentriert, unabhängig von ihrer
   jeweiligen Textbreite. */
.hero__cycle {
	position: relative;
	display: block;
	min-height: 1.15em;
	perspective: 800px;
}
.hero__word {
	position: absolute;
	left: 50%;
	top: 0;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-50%) rotateX(-90deg) scaleY(0.6);
	transform-origin: center center;
	animation: heroWordCycle 7s infinite;
}
.hero__word.is-active { animation-delay: 0s; }
.hero__word:not(.is-active) { animation-delay: 3.5s; }

/* Einstieg: Dreh-Flip mit Nachfedern (leichtes Überschwingen vor/zurück).
   Ausstieg (ab 44%): NUR Ausblenden, keine Drehung mehr. */
@keyframes heroWordCycle {
	0%    { opacity: 0; transform: translateX(-50%) rotateX(-90deg) scaleY(0.6); }
	9%    { opacity: 1; transform: translateX(-50%) rotateX(19deg) scaleY(1.10); }   /* Überschwingen (+20%) */
	13%   { transform: translateX(-50%) rotateX(-7deg) scaleY(0.976); }               /* Nachfedern zurück (+20%) */
	16%   { transform: translateX(-50%) rotateX(2.4deg) scaleY(1.012); }              /* kleines Ausklingen (+20%) */
	19%, 44% { opacity: 1; transform: translateX(-50%) rotateX(0deg) scaleY(1); }     /* ruhig stehen, keine Drehung */
	50%   { opacity: 0; transform: translateX(-50%) rotateX(0deg) scaleY(1); }        /* nur Fade, keine Drehung */
	100%  { opacity: 0; transform: translateX(-50%) rotateX(0deg) scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
	.hero__word { animation: none; opacity: 0; transform: translateX(-50%); }
	.hero__word.is-active { opacity: 1; }
}

.btn {
	display: inline-block;
	padding: 0.85rem 1.75rem;
	text-decoration: none;
	font-weight: 700;
	border-radius: 2px;
	border: 0;
	transition: transform .15s ease;
	cursor: pointer;
	font: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--outline { border: 2px solid #fff; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--light { background: var(--color-bg-light); }
.section__title {
	font-family: var(--font-heading);
	text-align: center;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 3rem;
	font-size: clamp(2.1rem, 4.8vw, 3.4rem); /* doppelte Größe, dann um 20% reduziert */
	line-height: 1.15;
}
.eyebrow {
	text-align: center;
	letter-spacing: .1em;
	font-size: .8rem;
	color: var(--color-primary);
	margin-bottom: .5rem;
}

/* ---------- Feature-Grid (Was wir bieten) ---------- */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2.5rem;
	text-align: center;
}
.feature__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin-bottom: .9rem;
}
/* Kreis als eigene Ebene: nur dieser wächst/wird schwarz beim Hover */
.feature__icon-circle {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--color-primary);
	transition: transform .2s ease, background-color .2s ease;
}
.feature:hover .feature__icon-circle {
	transform: scale(1.12);
	background: var(--color-dark);
}
/* Grafik bleibt fix in Größe/Position, unabhängig vom Kreis */
.feature__icon-glyph {
	position: relative;
	width: 68px;
	height: 68px;
	z-index: 1;
}
.feature h3 {
	font-size: 1rem;
	font-weight: 600; /* Semibold statt Extrabold */
	line-height: 1.35;
	margin: 0 0 .9rem;
	text-transform: uppercase; /* "hochgestellt" = Großbuchstaben */
}
.feature p { line-height: 1.6; }

/* ---------- CTA-Vollbild-Banner (Showreel / Animation Reel) ---------- */
.cta-banner {
	position: relative;
	min-height: 32vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.cta-banner__bg {
	position: absolute;
	/* Ebene ist höher als der Banner (150 %), damit sie per JS langsamer als die Seite
	   mitwandern kann (Parallax) und das Bild kleiner/weiter herausgezoomt wirkt. */
	left: 0; right: 0; top: -25%; bottom: -25%;
	background-size: cover;
	background-position: center;
	will-change: transform;
	filter: saturate(0.9);
}
.cta-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	/* Duotone-artige Abdunkelung/Tönung wie im Original (lila/dunkel je nach Banner) */
	background: linear-gradient(0deg, rgba(10,10,20,.72), rgba(40,20,60,.35));
}
.cta-banner__trigger {
	position: relative;
	z-index: 1;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.1rem;
}
.cta-banner__play {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
}
.cta-banner__eyebrow {
	letter-spacing: .15em;
	font-size: .8rem;
	text-transform: uppercase;
	opacity: .85;
}
.cta-banner__title {
	font-family: var(--font-heading);
	font-size: clamp(1.4rem, 3.5vw, 2.2rem);
	font-weight: 400;
	text-transform: uppercase;
}
.cta-banner__title strong { font-weight: 800; }
.cta-banner__title--split { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.3; }
.cta-banner__title--split em { font-style: italic; font-weight: 400; }
.cta-banner__title--split { font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
	.cta-banner__bg { transform: none !important; }
}

/* ---------- Video-Modal (schwebender Player, Seite dahinter abgedunkelt) ---------- */
.video-modal {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	z-index: 100001;
	display: flex;
	align-items: center;     /* Player immer mittig, egal wo der Klick passiert ist */
	justify-content: center;
	padding: 3.5rem 1rem 1rem; /* oben Platz für den Schließen-Button */
	box-sizing: border-box;
}
.video-modal[hidden] { display: none; }
.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.88);
}
.video-modal__box {
	position: relative;
	z-index: 1;
	/* Volle Breite, aber nie breiter als 1100px und nie höher als der Bildschirm (16:9) */
	width: min(100%, 1100px, calc((100vh - 5rem) * 16 / 9));
	width: min(100%, 1100px, calc((100dvh - 5rem) * 16 / 9));
	margin: 0;
}
.video-modal__frame { aspect-ratio: 16/9; background: #000; width: 100%; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close {
	position: absolute; /* relativ zum Overlay, immer im sichtbaren Bereich oben rechts */
	top: .8rem;
	right: .8rem;
	z-index: 2;
	width: 2.6rem;
	height: 2.6rem;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--color-dark);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}
body.video-modal-open { overflow: hidden; } /* Seite dahinter lässt sich nicht mitscrollen */
.video-modal__consent-notice {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.2rem;
	height: 100%;
	background: #111;
	color: #fff;
	text-align: center;
	padding: 2rem;
}

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	display: block;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	z-index: 100000; /* über Header, Video-Modal und allem anderen */
	background: var(--color-dark);
	color: #fff;
	padding: 1.2rem 1.5rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -4px 20px rgba(0,0,0,.35);
}
.cookie-banner[hidden] { display: none; }
@media (max-width: 680px) {
	.cookie-banner { padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
	.cookie-banner__inner { gap: 1rem; }
	.cookie-banner__text { flex: 1 1 100%; font-size: .85rem; }
	.cookie-banner__actions { width: 100%; }
	.cookie-banner__actions .btn { flex: 1 1 0; min-width: 0; }
}
.cookie-banner__inner {
	max-width: var(--container-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
}
.cookie-banner__text { flex: 1 1 420px; font-size: .9rem; margin: 0; }
.cookie-banner__text a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 1rem; flex: 0 0 auto; }
/* Gleich große, gleich gewichtete Buttons -> kein Dark Pattern */
.cookie-banner__actions .btn { min-width: 130px; text-align: center; }
.cookie-banner__actions .btn--outline { border-color: #fff; color: #fff; }

/* ---------- Kontakt-Karte: Platzhalter vor Zustimmung ---------- */
.contact-map { margin-top: 1.5rem; border-radius: 4px; overflow: hidden; }
.contact-map iframe { width: 100%; height: 280px; border: 0; display: block; }
.contact-map__placeholder {
	background: var(--color-bg-light);
	border: 1px dashed var(--color-border);
	border-radius: 4px;
	padding: 1.5rem;
	text-align: center;
}
.contact-map__placeholder p { margin: 0 0 1rem; font-size: .9rem; }

/* ---------- Footer-Link "Cookie-Einstellungen" ---------- */
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- Galerie ---------- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}
.gallery-item { margin: 0; text-align: center; }
.gallery-item__trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-item figcaption {
	margin-top: .5rem;
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .05em;
}

/* ---------- Leistungen ---------- */
.service-list { display: flex; flex-direction: column; gap: 3rem; }
.service { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: start; }
.service img { width: 180px; height: 180px; object-fit: cover; border-radius: 4px; }
@media (max-width: 640px) {
	.service { grid-template-columns: 1fr; }
}

/* ---------- Kontaktformular ---------- */
.contact-form p { margin: 0 0 1.1rem; }
.contact-form label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .35rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: .7rem .8rem;
	border: 1px solid var(--color-border);
	border-radius: 3px;
	font: inherit;
}
.contact-form__honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); opacity: 0; pointer-events: none; }
.form-notice { padding: .85rem 1rem; border-radius: 3px; margin-bottom: 1.5rem; font-size: .9rem; }
.form-notice--success { background: #e6f4ea; color: #1e4620; }
.form-notice--error { background: #fbe7e5; color: #7a2a20; }

/* ---------- Kontakt ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}
@media (max-width: 780px) {
	.contact-grid { grid-template-columns: 1fr; }
}
address { font-style: normal; margin: 1rem 0; }
.contact-info h3 { color: var(--color-primary); }
.contact-info__intro { font-weight: 800; }
.contact-info a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal-text h1 { margin-bottom: 2rem; }
.legal-text h2 { margin-top: 2.2rem; font-size: 1.15rem; }
.legal-text p { line-height: 1.7; }
.legal-text__notice {
	margin-top: 3rem;
	padding: 1rem 1.2rem;
	background: var(--color-bg-light);
	border-left: 3px solid var(--color-primary);
	font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0; text-align: center; font-size: .85rem; color: #777; }
.site-footer__legal a { color: inherit; text-decoration: none; margin: 0 .3rem; }

/* ---------- Bedienbarkeit ---------- */
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__bg { background-attachment: scroll; }
	.btn:hover { transform: none; }
}
