/*
Theme Name: Viktoria Ebel
Theme URI: https://viktoriaebel.de
Author: Viktoria Ebel
Description: Portfolio-Theme in Schwarz-Weiß nach dem „Portfolio Designsystem“: sichtbares Raster, schwarze Leisten, extreme Typografie, Projekte als eigener Inhaltstyp. Inhalte der Startseite werden im Customizer gepflegt.
Version: 1.8.1
Requires at least: 6.2
Tested up to: 6.8
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: viktoria-ebel
*/

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Wix Madefor Display"; src: url("assets/fonts/WixMadeforDisplay-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Wix Madefor Text"; src: url("assets/fonts/WixMadeforText-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

/* ---------- Tokens (aus dem Designsystem) ---------- */
:root {
  --paper: #ffffff; --paper-alt: #f0f0f0; --ink: #000000; --ink-muted: #6a6a6a; --ink-ghost: #8c8c8c;
  --line: #c2c2c2; --line-strong: #000000; --band: #000000; --on-band: #ffffff; --mist: #cbdce9;
  --on-media: #ffffff; --scrim: rgba(0, 0, 0, .45); --alert: #b3261e; --focus: #000000;
  --font-display: "Wix Madefor Display", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-section: 160px; --space-section-l: 240px;
  --radius-tile: 12px; --radius-pill: 999px;
  --grid-gutter: 24px; --grid-margin: 40px; --grid-max: 1680px; --header-height: 56px;
  --ease-cut: cubic-bezier(.87, 0, .13, 1); --ease-page: cubic-bezier(.83, 0, .17, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.64, 0, .78, 0); --ease-soft: cubic-bezier(.37, 0, .63, 1);
  --dur-fast: 200ms; --dur-base: 400ms; --dur-move: 600ms; --dur-blur: 800ms;
}
@media (max-width: 1023px) { :root { --space-section: 120px; --space-section-l: 160px; } }
@media (max-width: 720px) { :root { --grid-gutter: 16px; --grid-margin: 16px; --space-section: 96px; --space-section-l: 120px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: 15px; line-height: 24px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--mist); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 1000; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 8px 16px; background: var(--ink); color: var(--paper); }
.wrap { width: 100%; max-width: var(--grid-max); margin-inline: auto; padding-left: max(var(--grid-margin), env(safe-area-inset-left, 0px)); padding-right: max(var(--grid-margin), env(safe-area-inset-right, 0px)); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); }
.num { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.micro { font-size: 10px; line-height: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.label { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: var(--radius-pill); background: currentColor; vertical-align: middle; }
.sec { padding-top: var(--space-section); }

/* ---------- Kopfzeile ---------- */
.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top, 0px); background: var(--paper); color: var(--ink); transition: background var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft); }
.site-header.is-over-media { background: transparent; color: var(--on-media); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0; text-transform: uppercase; justify-self: start; }
.brand svg { width: 22px; height: 22px; fill: currentColor; }
.brand svg path { fill: currentColor; }
.main-nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; counter-reset: nav; }
.main-nav a { display: inline-flex; gap: 4px; text-decoration: none; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; transition: opacity var(--dur-base) var(--ease-soft); }
.main-nav li { counter-increment: nav; }
.main-nav a::before { content: counter(nav); font-size: 9px; font-weight: 800; transform: translateY(-3px); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav a[aria-current] { opacity: 1; }
.menu-toggle { justify-self: end; display: inline-flex; align-items: center; gap: var(--space-1); background: none; border: 0; color: inherit; cursor: pointer; padding: var(--space-2) 0; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Vollbild-Menü */
.overlay { position: fixed; z-index: 60; inset: 0; background: var(--band); color: var(--on-band); display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: max(var(--space-6), env(safe-area-inset-bottom, 0px)); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path var(--dur-move) var(--ease-cut), visibility 0s linear var(--dur-move); }
.overlay.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--dur-move) var(--ease-cut), visibility 0s; }
.overlay :focus-visible { outline-color: var(--on-band); }
.overlay__top { display: flex; justify-content: space-between; align-items: center; height: var(--header-height); }
.overlay__nav { align-self: center; }
.overlay__nav ul { list-style: none; margin: 0; padding: 0; counter-reset: ov; }
.overlay__nav li { counter-increment: ov; border-top: 1px solid rgba(255, 255, 255, .18); }
.overlay__nav li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.overlay__nav a { display: flex; align-items: baseline; gap: var(--space-6); padding-block: var(--space-2); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 8vw, 112px); line-height: .9; text-transform: uppercase; letter-spacing: -.02em; transition: padding-left var(--dur-move) var(--ease-cut); }
.overlay__nav a::before { content: "0" counter(ov); font-family: var(--font-text); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.overlay__nav a:hover { padding-left: var(--space-8); }
.overlay__foot { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; opacity: .7; }

/* ---------- Abschnittskopf ---------- */
.sechead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; border-top: 1px solid var(--line); padding-top: var(--space-3); margin-bottom: var(--space-12); color: var(--ink-muted); }
.sechead .num { color: var(--ink); }
.sechead__tick { width: 1px; height: 8px; background: var(--ink-muted); margin-top: -12px; }
.sechead__meta { justify-self: end; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Leiste ---------- */
.band { background: var(--band); color: var(--on-band); }
.band__inner { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding-block: var(--space-3); }
.band a { text-decoration: none; }
.band a:hover { text-decoration: underline; text-underline-offset: 3px; }
.band :focus-visible { outline-color: var(--on-band); }

/* ---------- Typo-Bausteine ---------- */
.split { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.45vw, 64px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.split span { display: block; }
.split span:first-child { padding-left: calc(100% / 6); }
.split--flush span:first-child { padding-left: 0; }
.split .ghost { color: var(--ink-ghost); }
.statement-text { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; text-transform: uppercase; margin: var(--space-3) 0 0; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 var(--space-4); }

/* ---------- Tag, Button, Textlink ---------- */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: background var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft); }
button.tag { cursor: pointer; }
button.tag:hover { background: var(--mist); }
.tag--filled { border-color: transparent; background: var(--paper-alt); }
.tag.is-active, .tag[aria-pressed="true"] { background: var(--mist); border-color: var(--mist); }
.btn { display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-6); border-radius: var(--radius-pill); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid var(--line-strong); background: var(--ink); color: var(--paper); transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft); }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.tlink { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tlink::before { content: ""; width: 24px; height: 1px; background: currentColor; transition: width var(--dur-move) var(--ease-cut); }
.tlink:hover::before { width: 64px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: max(640px, 100svh); min-height: 560px; background: var(--band); color: var(--on-media); overflow: hidden; }
.hero__media, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.55) 100%); }
.hero__lines { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); pointer-events: none; }
.hero__lines span { border-right: 1px solid rgba(255, 255, 255, .16); }
.hero__lines span:last-child { border-right: 0; }
.hero__content { position: absolute; inset: 0; }
.hero__tl { position: absolute; top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + var(--space-8)); left: max(var(--grid-margin), env(safe-area-inset-left, 0px)); }
.hero__tr { position: absolute; top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + var(--space-8)); right: max(var(--grid-margin), env(safe-area-inset-right, 0px)); text-align: right; opacity: .8; }
.hero__list { position: absolute; top: 36%; left: max(var(--grid-margin), env(safe-area-inset-left, 0px)); margin: 0; padding: 0; list-style: none; font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; }
.hero__list .micro { display: block; margin-bottom: var(--space-3); opacity: .7; }
.hero__stmt { position: absolute; top: 48%; right: max(var(--grid-margin), env(safe-area-inset-right, 0px)); width: min(360px, 40vw); margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; letter-spacing: -.01em; }
.hero__copy { position: absolute; top: 66%; left: calc(100% / 6 + var(--space-3)); opacity: .8; }
.hero__name { position: absolute; left: calc(max(var(--grid-margin), env(safe-area-inset-left, 0px)) - .04em); right: 0; bottom: -.1em; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 12.4vw; line-height: .8; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.hero__name span + span { margin-left: .22em; }
@media (max-width: 720px) {
  .hero__list { top: 30%; font-size: 15px; line-height: 21px; }
  .hero__stmt { top: auto; bottom: calc(44vw + var(--space-6)); left: max(var(--grid-margin), env(safe-area-inset-left, 0px)); right: auto; width: 78%; font-size: 15px; line-height: 22px; }
  .hero__copy { display: none; }
  .hero__name { font-size: 17vw; white-space: normal; line-height: .82; bottom: -.12em; }
  .hero__name span { display: block; }
  .hero__name span + span { margin-left: 0; }
  .hero__lines { grid-template-columns: repeat(4, 1fr); }
  .hero__lines span:nth-child(n+5) { display: none; }
}

/* ---------- Über mich ---------- */
.about__media { grid-column: 1 / 6; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); transition: filter var(--dur-base) var(--ease-soft); }
.about__media:hover img { filter: grayscale(0); }
.about__txt { grid-column: 7 / 13; display: grid; gap: var(--space-6); align-content: start; }
.about__txt .prose p:last-child { margin-bottom: 0; }

/* ---------- Arbeiten ---------- */
.filters { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-8); }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16) var(--grid-gutter); }
.works .tile[hidden] { display: none; }
.works__more { margin-top: var(--space-12); }
.tile { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; min-width: 0; }
.tile__media { position: relative; overflow: hidden; background: var(--paper-alt); aspect-ratio: 4 / 5; }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform var(--dur-move) var(--ease-cut), filter var(--dur-base) var(--ease-soft); }
.tile:hover .tile__media img, .tile:focus-visible .tile__media img { transform: scale(1.04); filter: grayscale(0); }
.tile__hover { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: var(--space-3) var(--space-4); background: var(--band); color: var(--on-band); transform: translateY(100%); transition: transform var(--dur-move) var(--ease-cut); }
.tile:hover .tile__hover, .tile:focus-visible .tile__hover { transform: none; }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.tile__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 22px; letter-spacing: -.02em; }
.tile__info { color: var(--ink-muted); white-space: nowrap; }
@media (max-width: 1023px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; gap: var(--space-12); } }

/* ---------- Kunden ---------- */
.clients { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-section); }
.clients__label { margin-bottom: var(--space-4); color: var(--ink-muted); }
.client { display: grid; place-items: center; height: 120px; padding: var(--space-6); border-radius: var(--radius-tile); background: var(--band); }
.client img { max-height: 44px; max-width: 100%; width: auto; filter: brightness(0) invert(1); opacity: .9; }
@media (max-width: 720px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } .client { height: 96px; } }

/* ---------- Statement / Showreel ---------- */
.statement { padding-block: var(--space-section-l) var(--space-8); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-8); }
.statement__w { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px, 8.4vw, 120px); line-height: 1; letter-spacing: -.06em; }
.statement__w:first-child { justify-self: end; }
.statement__w:last-child { color: var(--ink-ghost); }
.statement__m { width: min(560px, 40vw); aspect-ratio: 16 / 9; background: var(--band); overflow: hidden; }
.statement__m img, .statement__m video { width: 100%; height: 100%; object-fit: cover; }
.statement__meta { display: flex; justify-content: space-between; color: var(--ink-muted); padding-bottom: var(--space-section-l); }
@media (max-width: 720px) {
  .statement { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .statement__m { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .statement__w:first-child { justify-self: start; }
  .statement__w:last-child { justify-self: end; }
}

/* ---------- Prozess ---------- */
.process__lead { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--header-height) + var(--space-8)); }
.process__steps { grid-column: 5 / 13; }
.step { display: grid; gap: var(--space-3); padding-block: var(--space-8); }
.step:first-child { padding-top: 0; }
.step__head { display: flex; align-items: baseline; gap: var(--space-8); }
.step__num { font-size: 12px; min-width: 2ch; }
.step__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; text-transform: uppercase; }
.step__rule { position: relative; height: 1px; background: var(--line-strong); }
.step__rule::before, .step__rule::after { content: ""; position: absolute; top: 6px; width: 3px; height: 3px; border-radius: var(--radius-pill); background: var(--ink); }
.step__rule::before { left: 0; } .step__rule::after { right: 0; }
.step__tags { display: flex; gap: var(--space-2); flex-wrap: wrap; padding-left: calc(2ch + var(--space-8)); }

/* ---------- FAQ ---------- */
.faq__q { grid-column: 1 / 7; font-family: var(--font-display); font-weight: 800; font-size: clamp(200px, 25vw, 360px); line-height: .78; user-select: none; }
.faq__items { grid-column: 7 / 13; align-self: end; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-2) var(--space-3) 0; cursor: pointer; list-style: none; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background var(--dur-fast) var(--ease-soft); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--mist); }
.faq-item summary::after { content: "+"; font-size: 14px; font-weight: 800; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__a { padding: 0 0 var(--space-4); font-size: 13px; line-height: 20px; color: var(--ink-muted); max-width: 62ch; }

/* ---------- Kontakt ---------- */
.contact__left { grid-column: 1 / 6; display: grid; gap: var(--space-6); align-content: start; }
.contact__left .muted { color: var(--ink-muted); }
.contact__data { display: grid; gap: var(--space-2); font-size: 15px; }
.contact__data a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__data a:hover { border-color: var(--ink); }
.contact__form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--grid-gutter); align-content: start; }
.contact__form .wide { grid-column: 1 / -1; }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: 10px; line-height: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.field label .num { color: var(--ink); }
.field input, .field textarea { font: inherit; font-size: 18px; line-height: 26px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: var(--space-2) 0; resize: vertical; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--line-strong); box-shadow: 0 1px 0 0 var(--line-strong); }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.consent input { margin-top: 3px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { grid-column: 1 / -1; padding: var(--space-3) var(--space-4); font-size: 13px; line-height: 20px; border-left: 0; background: var(--mist); }
.notice--error { background: var(--paper-alt); color: var(--alert); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-section); }
.footer { background: var(--band); color: var(--on-band); padding-block: var(--space-16) max(var(--space-6), env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer :focus-visible { outline-color: var(--on-band); }
.footer__cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--grid-gutter); }
.footer__col { display: grid; gap: var(--space-2); align-content: start; font-size: 13px; line-height: 20px; }
.footer__col .micro { opacity: .6; margin-bottom: var(--space-1); }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__mark { grid-column: 6; justify-self: end; width: 56px; height: 56px; }
.footer__mark path { fill: currentColor; }
.footer__big { margin: var(--space-16) 0 0 -.04em; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 12.4vw; line-height: .8; letter-spacing: -.03em; white-space: nowrap; }
.footer__big span + span { margin-left: .22em; }
.footer__legal { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); opacity: .6; }
.footer__legal a { text-decoration: none; }
@media (max-width: 720px) {
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: var(--space-8); }
  .footer__mark { grid-column: auto; justify-self: start; }
  .footer__big { font-size: 17vw; white-space: normal; }
  .footer__big span { display: block; } .footer__big span + span { margin-left: 0; }
}

/* ---------- Projektseite ---------- */
.project-hero { padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + var(--space-12)); }
.project-title { margin: 0 0 var(--space-12); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 9vw, 140px); line-height: .82; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.project-facts { border-top: 1px solid var(--line); padding-top: var(--space-4); row-gap: var(--space-6); }
.project-facts > div { grid-column: span 3; display: grid; gap: var(--space-2); align-content: start; }
.project-facts > div.project-facts__intro { grid-column: 7 / 13; font-size: 18px; line-height: 26px; font-weight: 500; letter-spacing: -.01em; }
.project-facts dt { color: var(--ink-muted); }
.project-facts dd { margin: 0; }
.project-cover { margin-top: var(--space-12); }
.project-cover img { width: 100%; max-height: 88vh; object-fit: cover; }
.project-body { padding-top: var(--space-section); }
.entry { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); row-gap: var(--space-6); }
.entry > * { grid-column: 4 / 10; margin: 0; }
.entry > p, .entry > ul, .entry > ol, .entry > h2, .entry > h3 { max-width: 62ch; }
.entry > h2 { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; margin-top: var(--space-12); }
.entry > h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.entry > figure, .entry > .wp-block-image, .entry > .wp-block-gallery, .entry > .wp-block-video, .entry > .wp-block-embed, .entry > .wp-block-columns, .entry > .alignwide { grid-column: 1 / -1; margin-block: var(--space-6); }
.entry > .alignfull { grid-column: 1 / -1; margin-inline: calc(-1 * max(var(--grid-margin), env(safe-area-inset-left, 0px))); }
.entry figure img { width: 100%; }
.entry figcaption { margin-top: var(--space-2); font-size: 10px; line-height: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.entry .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--grid-gutter); }
.entry .wp-block-column > * { margin: 0; }
.entry a { text-underline-offset: 3px; }
.next-project { margin-top: var(--space-section); }
.next-project a { display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); padding-block: var(--space-12); text-decoration: none; border-top: 1px solid var(--line-strong); }
.next-project__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 96px); line-height: .86; letter-spacing: -.02em; transition: padding-left var(--dur-move) var(--ease-cut); }
.next-project a:hover .next-project__title { padding-left: var(--space-8); }

/* ---------- Seiten & Blog ---------- */
.page-head { padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + var(--space-12)); }
.page-title { margin: 0 0 var(--space-12); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 7vw, 104px); line-height: .84; letter-spacing: -.02em; text-wrap: balance; }
.archive-intro { max-width: 62ch; margin-bottom: var(--space-12); color: var(--ink-muted); }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-top: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); padding-block: var(--space-6); text-decoration: none; }
.posts .t { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.pagination { margin-top: var(--space-12); display: flex; gap: var(--space-4); }

/* ---------- Bewegung ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ve-out var(--dur-move) var(--ease-page) both; }
::view-transition-new(root) { animation: ve-in var(--dur-move) var(--ease-page) both; }
@keyframes ve-out { to { transform: translateY(-8%); opacity: 0; } }
@keyframes ve-in { from { transform: translateY(8%); opacity: 0; } }
.js .reveal-pending { opacity: 0; }
.js .reveal { opacity: 1; transition: opacity var(--dur-base) var(--ease-out); }
.js .reveal-img.reveal-pending { opacity: 1; clip-path: inset(0 0 100% 0); }
.js .reveal-img.reveal { clip-path: inset(0 0 0 0); transition: clip-path var(--dur-move) var(--ease-cut); }
.js img.is-loading { filter: blur(14px); }
.js img.is-loaded { transition: filter var(--dur-blur) var(--ease-out), transform var(--dur-move) var(--ease-cut); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .js .reveal-pending { opacity: 1; clip-path: none; }
  @view-transition { navigation: none; }
}

/* ---------- Layout schmal ---------- */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .about__media { grid-column: 1 / 7; } .about__txt { grid-column: 7 / 13; }
  .process__lead { grid-column: 1 / -1; position: static; margin-bottom: var(--space-12); } .process__steps { grid-column: 1 / -1; }
  .contact__left { grid-column: 1 / -1; margin-bottom: var(--space-12); } .contact__form { grid-column: 1 / -1; }
  .entry > * { grid-column: 2 / 12; }
}
@media (max-width: 720px) {
  .about__media, .about__txt, .faq__q, .faq__items { grid-column: 1 / -1; }
  .about__txt { margin-top: var(--space-8); }
  .faq__q { font-size: 160px; margin-bottom: var(--space-6); }
  .split span:first-child { padding-left: 0; }
  .contact__form { grid-template-columns: 1fr; }
  .step__head { gap: var(--space-4); } .step__tags { padding-left: 0; }
  .project-facts > div { grid-column: span 6; } .project-facts > div.project-facts__intro { grid-column: 1 / -1; }
  .entry > * { grid-column: 1 / -1; }
  .sechead { grid-template-columns: 1fr auto; } .sechead__tick { display: none; }
}

/* ---------- Projektgalerie (Vollbild) ---------- */
:root { --stage: #141414; --on-stage: #ffffff; --on-stage-muted: rgba(255, 255, 255, .6); }
.gallery { position: fixed; z-index: 80; inset: 0; background: var(--stage); color: var(--on-stage); display: grid; grid-template-columns: minmax(0, 1fr) 140px; grid-template-rows: minmax(0, 1fr) auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.gallery[hidden] { display: none; }
.gallery.is-open { opacity: 1; }
.gallery :focus-visible { outline: 2px solid var(--on-stage); outline-offset: 2px; }
.gallery__stage { position: relative; grid-column: 1; grid-row: 1; display: grid; place-items: center; padding: 40px 40px 0 max(40px, env(safe-area-inset-left, 0px)); min-height: 0; }
.gallery__img { max-width: 100%; max-height: calc(100svh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); width: auto; height: auto; object-fit: contain; user-select: none; transition: opacity var(--dur-base) var(--ease-out); }
.gallery__img.is-swapping { opacity: 0; }
.gallery__nav { position: absolute; top: 0; bottom: 0; width: 50%; background: none; border: 0; padding: 0; margin: 0; }
.gallery__nav--prev { left: 0; cursor: w-resize; }
.gallery__nav--next { right: 0; cursor: e-resize; }
.gallery__side { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px 16px; min-height: 0; }
.gallery__close { justify-self: end; width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: var(--on-stage); font-size: 22px; line-height: 1; cursor: pointer; transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft); }
.gallery__close:hover { background: var(--on-stage); color: var(--stage); }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 2px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: none; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: #000; cursor: pointer; opacity: .55; transition: opacity var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb[aria-selected="true"] { opacity: 1; border-color: var(--on-stage); }
.gallery__caption { grid-column: 1; grid-row: 2; display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; padding: 12px 40px 16px calc(100% / 12 + 40px); }
.gallery__title { font-size: 17px; line-height: 24px; }
.gallery__count { color: var(--on-stage-muted); font-variant-numeric: tabular-nums; }
.gallery__more { margin-left: auto; color: var(--on-stage-muted); }
.gallery__more:hover { color: var(--on-stage); }
html.has-gallery, html.has-gallery body { overflow: hidden; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .gallery__side { display: contents; }
  .gallery__close { grid-row: 1; margin: 12px max(16px, env(safe-area-inset-right, 0px)) 0 0; }
  .gallery__stage { grid-row: 2; padding: 12px max(16px, env(safe-area-inset-left, 0px)) 0; }
  .gallery__img { max-height: calc(100svh - 230px); }
  .gallery__caption { grid-row: 3; padding: 12px 16px 8px; gap: 12px; }
  .gallery__more { margin-left: 0; }
  .gallery__thumbs { grid-row: 4; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 4px 16px 16px; }
  .gallery__thumb { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { .gallery, .gallery__img { transition: none; } }
.entry[data-gallery-entry] figure img { cursor: zoom-in; }

/* Projektbilder im 3er-Raster */
.entry[data-gallery-entry] > figure.wp-block-image { grid-column: span 4; margin: 0; overflow: hidden; background: var(--paper-alt); }
.entry[data-gallery-entry] > figure.wp-block-image img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; transition: transform var(--dur-move) var(--ease-cut); }
.entry[data-gallery-entry] > figure.wp-block-image:hover img { transform: scale(1.03); }
.entry[data-gallery-entry] > figure.wp-block-image figcaption { padding-top: var(--space-2); background: var(--paper); }
.entry[data-gallery-entry] { row-gap: var(--grid-gutter); }
.entry .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gutter) !important; }
.entry .wp-block-gallery figure.wp-block-image { width: 100% !important; margin: 0 !important; }
.entry .wp-block-gallery figure.wp-block-image img { aspect-ratio: 1 / 1; object-fit: cover; height: auto !important; cursor: zoom-in; }
@media (max-width: 720px) {
  .entry[data-gallery-entry] > figure.wp-block-image { grid-column: span 6; }
  .entry .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Videos ---------- */
.statement__m { position: relative; }
.reel__sound { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--on-band); color: #000; cursor: pointer; transition: opacity var(--dur-base) var(--ease-soft); }
.reel__sound:focus-visible { outline: 2px solid var(--on-band); outline-offset: 2px; }
.statement__m.is-playing .reel__sound { opacity: 0; pointer-events: none; }
.entry[data-gallery-entry] > figure.wp-block-video { grid-column: span 4; margin: 0; position: relative; overflow: hidden; background: var(--band); }
.entry[data-gallery-entry] > figure.wp-block-video video { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; display: block; cursor: zoom-in; transition: transform var(--dur-move) var(--ease-cut); }
.entry[data-gallery-entry] > figure.wp-block-video:hover video { transform: scale(1.03); }
.entry[data-gallery-entry] > figure.wp-block-video::after { content: "▶ Video"; position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, .6); color: #fff; font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.gallery__video { max-width: 100%; max-height: calc(100svh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); width: auto; height: auto; position: relative; z-index: 2; background: #000; }
.gallery__video[hidden] { display: none; }
.gallery.is-video .gallery__nav { width: 12%; }
.gallery__thumb { position: relative; }
.gallery__thumb.is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 16px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
@media (max-width: 720px) {
  .entry[data-gallery-entry] > figure.wp-block-video { grid-column: span 6; }
  .gallery__video { max-height: calc(100svh - 230px); }
}

/* ---------- Vimeo (lädt erst beim Klick) ---------- */
.ve-vimeo { position: relative; margin: 0; overflow: hidden; background: var(--band); aspect-ratio: 16 / 9; cursor: pointer; }
.ve-vimeo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-move) var(--ease-cut); }
.ve-vimeo:hover img { transform: scale(1.03); }
.ve-vimeo__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--on-band); font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
.ve-vimeo__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: var(--radius-pill); background: var(--on-band); color: #000; font-size: 18px; cursor: pointer; display: grid; place-items: center; padding-left: 4px; transition: transform var(--dur-fast) var(--ease-soft); }
.ve-vimeo:hover .ve-vimeo__play { transform: scale(1.08); }
.ve-vimeo__play:focus-visible { outline: 2px solid var(--on-band); outline-offset: 3px; }
.ve-vimeo__badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, .6); color: #fff; font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ve-vimeo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }
.ve-vimeo.is-playing .ve-vimeo__play, .ve-vimeo.is-playing .ve-vimeo__badge { display: none; }
.statement__m .ve-vimeo { width: 100%; height: 100%; }
.entry[data-gallery-entry] > figure.ve-vimeo { grid-column: span 4; aspect-ratio: 1 / 1; margin: 0; }
.entry > figure.ve-vimeo { grid-column: 1 / -1; }
.gallery__embed { position: relative; z-index: 2; aspect-ratio: var(--r, 16 / 9); width: min(100%, calc((100svh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) * var(--r, 1.7778))); max-height: calc(100svh - 96px); background: #000; }
.gallery__embed[hidden] { display: none; }
.gallery__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) {
  .entry[data-gallery-entry] > figure.ve-vimeo { grid-column: span 6; }
  .gallery__embed { width: min(100%, calc((100svh - 230px) * var(--r, 1.7778))); }
  .ve-vimeo__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 14px; }
}

/* ---------- Kachel-Video & Bearbeiten ---------- */
.tile__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform var(--dur-move) var(--ease-cut), filter var(--dur-base) var(--ease-soft); }
.tile:hover .tile__video, .tile:focus-visible .tile__video { transform: scale(1.04); filter: grayscale(0); }
.tile__edit { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--on-band); color: #000; font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; opacity: 0; transition: opacity var(--dur-fast) var(--ease-soft); }
.tile:hover .tile__edit, .tile:focus-within .tile__edit { opacity: 1; }

/* Projektraster: Videos starten erst per Klick (Vollbild mit Ton) */
.entry[data-gallery-entry] > figure.wp-block-video::before { content: "▶"; position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding-left: 4px; box-sizing: border-box; border-radius: var(--radius-pill); background: var(--on-band); color: #000; font-size: 16px; display: grid; place-items: center; pointer-events: none; transition: transform var(--dur-fast) var(--ease-soft); }
.entry[data-gallery-entry] > figure.wp-block-video:hover::before { transform: scale(1.08); }
.entry[data-gallery-entry] > figure.wp-block-video figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 13px; line-height: 1.3; pointer-events: none; }

/* 360°-Ansicht (Galerie-Block mit Klasse „ve-360“) */
.ve-360 { position: relative; margin: 0; background: #fff; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ve-360 img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; pointer-events: none; }
.ve-360:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ve-360__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity var(--dur-move) var(--ease-soft); }
.ve-360.is-used .ve-360__hint { opacity: 0; }
.entry > figure.ve-360, .entry[data-gallery-entry] > figure.ve-360 { grid-column: 1 / -1; margin: 0; }
