/* ==========================================================
   tamatesch – Theme
   Dunkle „Darkroom“-Galerie · Cormorant Garamond + Manrope
   Farben zentral in :root – im CMS unter Code → style.css änderbar
   ========================================================== */

:root {
    --bg: #0e0d0b;
    --bg-2: #161512;
    --bg-3: #1f1d19;
    --paper: #ece6dc;
    --muted: #9c958a;
    --line: rgba(236, 230, 220, .12);
    --accent: #4db7ae;          /* Türkis aus dem tamatesch-Logo */
    --accent-2: #c9a46a;        /* warmes Messing für Details */
    --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.22, .9, .25, 1);
    --ease-in-out: cubic-bezier(.7, 0, .2, 1);
    --gutter: clamp(16px, 4vw, 56px);
    --maxw: 1440px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--paper);
    font-family: var(--sans);
    font-weight: 400;
    font-size: var(--fs, 16px);
    line-height: var(--lh, 1.7);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* Feines Filmkorn über allem */
body::after {
    content: ""; position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

.eyebrow {
    font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .28em;
    text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
}
.display {
    font-family: var(--serif); font-weight: var(--title-w, 300); font-size: calc(clamp(2.6rem, 6vw, 5.5rem) * var(--title-scale, 1) * var(--hs, .68));
    line-height: 1; letter-spacing: var(--title-ls, -.01em); margin: 0;
}
.prose { max-width: 62ch; font-size: 1.06rem; color: #d7d0c4; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-family: var(--serif); letter-spacing: var(--title-ls, normal); font-weight: 400; font-size: calc(clamp(1.8rem, 3vw, 2.6rem) * var(--title-scale, 1) * var(--hs, .68)); line-height: 1.1; color: var(--paper); margin: 0 0 .8em; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose .credit { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--paper); }

.link-arrow {
    display: inline-flex; align-items: center; gap: .7em; font-size: 12px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: var(--paper); border: 0 !important; padding: .4em 0;
}
.link-arrow::after { content: "→"; font-size: 1.3em; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(8px); }

/* ---------- Seitenübergang ---------- */
.curtain {
    position: fixed; inset: 0; z-index: 9999; background: var(--bg); pointer-events: none;
    transform-origin: top; animation: curtain-out .9s var(--ease-in-out) .05s forwards;
}
.curtain.is-in { animation: curtain-in .55s var(--ease-in-out) forwards; transform-origin: bottom; }
@keyframes curtain-out { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes curtain-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.clip-reveal { clip-path: inset(12% 12% 12% 12%); transition: clip-path 1.4s var(--ease); }
.clip-reveal img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.clip-reveal.is-in { clip-path: inset(0 0 0 0); }
.clip-reveal.is-in img { transform: scale(1); }

/* Buchstaben-Animation für Überschriften */
.split .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); filter: blur(6px);
    transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--ci) * 45ms + .35s); }
.split.is-in .ch { opacity: 1; transform: none; filter: none; }
.split .sp { display: inline-block; width: .28em; }

/* ---------- Admin-Leiste ---------- */
.adminbar {
    position: fixed; top: 0; left: 0; right: 0; height: 34px; z-index: 1000; display: flex; align-items: center; gap: 18px;
    padding: 0 16px; background: #000; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.adminbar a:hover { color: var(--paper); }
.adminbar__brand { color: var(--accent) !important; font-weight: 600; }
.adminbar__user { margin-left: auto; }
.has-adminbar .site-header { top: 34px; }

/* ---------- Header & Navigation ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--header-h);
    display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
    transition: background .5s var(--ease), backdrop-filter .5s, height .4s var(--ease), transform .5s var(--ease), border-color .5s;
    border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(14, 13, 11, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); border-color: var(--line); height: 64px; }
.site-header.is-hidden { transform: translateY(-110%); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; transition: transform 1.1s var(--ease); animation: brand-in 1.6s var(--ease) .2s both; }
.brand:hover img { transform: rotate(60deg); }
@keyframes brand-in { from { transform: rotate(-120deg) scale(.6); opacity: 0; } }
.brand__word { font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: .02em; display: flex; flex-direction: column; }
.brand__word em { font-family: var(--sans); font-style: normal; font-size: 9px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { margin-left: auto; height: 100%; }
.nav__list { list-style: none; display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; height: 100%; }
.nav__item { height: 100%; }
.nav__item > a {
    position: relative; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    height: 100%; display: flex; align-items: center; color: #cfc8bc; transition: color .3s;
}
.nav__item > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__item:hover > a, .nav__item.is-active > a { color: var(--paper); }
.nav__item:hover > a::after, .nav__item.is-active > a::after { transform: scaleX(1); transform-origin: left; }
.site-header.is-solid .nav__item > a::after { bottom: 16px; }

.nav__panel {
    position: absolute; left: 0; right: 0; top: 100%; padding: 32px var(--gutter) 40px;
    background: rgba(14, 13, 11, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
}
.nav__item:hover .nav__panel, .nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__panel-inner { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 28px; justify-content: flex-end; }
.nav__col { display: flex; flex-direction: column; gap: 6px; width: 220px; }
.nav__sub { display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-size: 1.35rem; }
.nav__thumb { display: block; aspect-ratio: 4/3; background-size: cover; background-position: center; filter: grayscale(.6) brightness(.8); transition: filter .5s, transform .7s var(--ease); }
.nav__sub:hover .nav__thumb { filter: none; transform: scale(1.03); }
.nav__subsub { font-size: 13px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); transition: color .3s, padding .3s; }
.nav__subsub:hover { color: var(--paper); padding-left: 18px; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--paper); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 850; background: var(--bg); padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    overflow-y: auto; clip-path: circle(0 at calc(100% - 40px) 38px); transition: clip-path .8s var(--ease-in-out);
    display: flex; flex-direction: column;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mm__link { display: block; font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.15; opacity: 0; transform: translateY(20px); transition: .6s var(--ease); }
.mm__group { border-bottom: 1px solid var(--line); padding: 10px 0; }
.mm__subs { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 6px 0 4px; font-size: 14px; color: var(--muted); opacity: 0; transition: opacity .6s .3s; }
.mm__deep { font-size: 12px; opacity: .7; }
.menu-open .mm__link, .menu-open .mm__subs { opacity: 1; transform: none; }
.menu-open .mm__group:nth-child(2) .mm__link { transition-delay: .1s; } .menu-open .mm__group:nth-child(3) .mm__link { transition-delay: .15s; }
.menu-open .mm__group:nth-child(4) .mm__link { transition-delay: .2s; } .menu-open .mm__group:nth-child(5) .mm__link { transition-delay: .25s; }
.menu-open .mm__group:nth-child(6) .mm__link { transition-delay: .3s; } .menu-open .mm__group:nth-child(7) .mm__link { transition-delay: .35s; }
.mm__mail { margin-top: auto; padding-top: 30px; color: var(--accent); }

/* ---------- Suche ---------- */
.search-overlay {
    position: fixed; inset: 0; z-index: 950; background: rgba(8, 8, 7, .94); backdrop-filter: blur(10px);
    display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-form { width: min(820px, 90vw); display: flex; border-bottom: 1px solid var(--paper); transform: translateY(20px); transition: transform .6s var(--ease); }
.search-overlay.is-open .search-form { transform: none; }
.search-form input { flex: 1; background: none; border: 0; outline: 0; color: var(--paper); font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3.6rem); padding: 10px 0; min-width: 0; }
.search-form button { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.search-close { position: absolute; top: 24px; right: var(--gutter); font-size: 2.4rem; line-height: 1; width: 48px; height: 48px; }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.8s var(--ease), transform 9s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,11,.55) 0%, rgba(14,13,11,.05) 35%, rgba(14,13,11,.25) 60%, var(--bg) 100%); }
.hero__content { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(90px, 14vh, 150px); max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero__title { font-family: var(--serif); font-weight: var(--title-w, 300); font-size: clamp(3rem, 11.5vw, 12.5rem); line-height: .85; letter-spacing: .03em; margin: 0; white-space: nowrap; }
.hero__claim { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.7rem); max-width: 34ch; margin: 1.2rem 0 0; color: #e2dbcf;
    opacity: 0; transform: translateY(20px); animation: fade-up 1.2s var(--ease) 1.2s forwards; }
.hero__eyebrow { opacity: 0; animation: fade-up 1s var(--ease) .3s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero__dots { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(90px, 14vh, 150px); display: flex; flex-direction: column; gap: 10px; }
.hero__dots button { width: 2px; height: 26px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__dots button::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleY(0); transform-origin: top; }
.hero__dots button.is-active::after { animation: dot-fill 6.5s linear forwards; }
@keyframes dot-fill { to { transform: scaleY(1); } }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll span { width: 1px; height: 46px; background: linear-gradient(var(--paper), transparent); animation: scroll-line 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes scroll-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Über mich ---------- */
.about { padding: clamp(80px, 14vw, 180px) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.about__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.about__quote { font-family: var(--serif); letter-spacing: var(--title-ls, normal); font-style: italic; font-weight: var(--title-w, 300); font-size: calc(clamp(1.8rem, 3.4vw, 3rem) * var(--title-scale, 1) * var(--hs, .68)); line-height: 1.15; margin: 0; color: var(--paper); position: sticky; top: 120px; }
.about__quote::before { content: "“"; display: block; font-size: 4em; line-height: .6; color: var(--accent); opacity: .6; }

/* ---------- Bereiche auf der Startseite ---------- */
.works { padding: 0 var(--gutter) clamp(60px, 10vw, 140px); max-width: var(--maxw); margin: 0 auto; }
.section-head { margin-bottom: clamp(48px, 8vw, 110px); }
.work { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 6vw, 100px); align-items: center; margin-bottom: clamp(70px, 12vw, 170px); }
.work--flip { grid-template-columns: 1fr 1.35fr; }
.work--flip .work__media { order: 2; }
.work__media { display: block; aspect-ratio: 5/4; overflow: hidden; background: var(--bg-2); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__media:hover img { transform: scale(1.05) !important; transition-duration: 1.2s; }
.work__num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); }
.work__title { font-family: var(--serif); letter-spacing: var(--title-ls, normal); font-weight: var(--title-w, 300); font-size: calc(clamp(2.6rem, 5.5vw, 5rem) * var(--title-scale, 1) * var(--hs, .68)); line-height: 1; margin: .2em 0 .3em; }
.work__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.work__title a:hover { background-size: 100% 1px; }
.work__sub { color: var(--muted); margin: 0 0 1.6rem; font-size: 1.05rem; }
.work__links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.work__links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: padding .4s var(--ease), color .3s; }
.work__links a::after { content: "→"; opacity: 0; transform: translateX(-10px); transition: .4s var(--ease); }
.work__links a:hover { padding-left: 10px; color: var(--accent); }
.work__links a:hover::after { opacity: 1; transform: none; }

/* Laufband */
.marquee { overflow: hidden; padding: 30px 0 clamp(60px, 9vw, 120px); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track a { flex-shrink: 0; height: clamp(160px, 22vw, 280px); overflow: hidden; }
.marquee__track img { height: 100%; width: auto; filter: grayscale(1) brightness(.75); transition: filter .6s, transform .8s var(--ease); }
.marquee__track a:hover img { filter: none; transform: scale(1.04); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seitenkopf Unterseiten ---------- */
.pagehead { position: relative; padding: calc(var(--header-h) + clamp(60px, 10vw, 140px)) var(--gutter) clamp(40px, 6vw, 80px); overflow: hidden; }
.pagehead--image { min-height: 72vh; display: flex; align-items: flex-end; }
.pagehead__bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; will-change: transform; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.15); } to { transform: scale(1); } }
.pagehead__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,11,.5), rgba(14,13,11,.15) 40%, var(--bg)); }
.pagehead__inner { position: relative; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.pagehead__title { font-family: var(--serif); font-weight: var(--title-w, 300); font-size: calc(clamp(3rem, 9vw, 8.5rem) * var(--title-scale, 1) * var(--hs, .68)); line-height: .95; margin: .15em 0 0; letter-spacing: var(--title-ls, -.01em); overflow-wrap: anywhere; }
.pagehead__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.8rem); color: #d9d2c6; margin: .6em 0 0; max-width: 40ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--paper); }
.crumbs [aria-current] { color: var(--accent); }

.gallery-intro { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 80px); }
.gallery-intro__meta { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 18px; }
.counter { font-family: var(--serif); font-weight: 300; font-size: 4.2rem; line-height: 1; }
.gallery-intro .prose { border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Tabs ---------- */
.tabs__bar { position: relative; display: flex; gap: 4px; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto 36px; padding: 0 var(--gutter); }
.tabs__tab { position: relative; z-index: 1; padding: 12px 22px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.tabs__tab sup { font-size: 9px; color: var(--accent); margin-left: 2px; }
.tabs__tab.is-active { color: var(--bg); }
.tabs__tab.is-active sup { color: var(--bg); }
.tabs__ink { position: absolute; z-index: 0; top: 0; height: 100%; left: 0; width: 0; background: var(--paper); border-radius: 999px; transition: transform .6s var(--ease), width .6s var(--ease); }

/* ---------- Masonry-Galerie ---------- */
.masonry { columns: 3 320px; column-gap: 14px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 9vw, 120px); }
.masonry.is-hidden { display: none; }
.tile { margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: var(--bg-2); position: relative;
    opacity: 0; transform: translateY(50px) scale(.97); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.tile.is-in { opacity: 1; transform: none; }
.tile a { display: block; position: relative; }
.tile img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.tile img.is-loading { filter: blur(14px); }
.tile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); opacity: 0; transition: opacity .5s; }
.tile:hover img { transform: scale(1.06); }
.tile:hover a::after { opacity: 1; }

/* ---------- Karten (Übersicht) ---------- */
.cards { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { display: block; position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.card__media { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease), filter .6s; filter: brightness(.85); }
.card:hover .card__media img { transform: scale(1.1); filter: none; }
.card__body { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.card__num { grid-row: span 2; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; padding-top: 6px; }
.card__title { font-family: var(--serif); letter-spacing: var(--title-ls, normal); font-size: calc(clamp(1.8rem, 3vw, 2.4rem) * var(--title-scale, 1) * var(--hs, .68)); line-height: 1.05; }
.card__count { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Komposition ---------- */
.layers { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.layer { margin: 0; position: relative; }
.layer img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: grayscale(.5); }
.layer:hover img { filter: none; transform: scale(1.04); }
.layer a { display: block; overflow: hidden; }
.layer figcaption { position: absolute; top: 8px; left: 10px; font-family: var(--serif); font-style: italic; font-size: 1rem; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.layers__arrow { text-align: center; font-family: var(--serif); font-size: 3rem; color: var(--accent); padding: 40px 0 0; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(10px); } }
.finished { max-width: 1100px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 140px); text-align: center; }
.finished__frame { margin: 0; padding: clamp(10px, 1.6vw, 22px); background: var(--bg-3); box-shadow: 0 40px 120px -40px rgba(0,0,0,.9); }
.finished__frame img { width: 100%; }
[data-assemble] img { clip-path: inset(50% 50% 50% 50%); filter: saturate(0) contrast(1.4) brightness(.6); transition: clip-path 1.8s var(--ease-in-out), filter 2.4s var(--ease) 1s; }
[data-assemble].is-in img { clip-path: inset(0); filter: none; }

/* ---------- Nächste Seite ---------- */
.next-page { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: clamp(280px, 45vw, 520px); overflow: hidden; text-align: center; }
.next-page__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.38) grayscale(.4); transform: scale(1.08); transition: transform 1.6s var(--ease), filter .8s; }
.next-page:hover .next-page__bg { transform: scale(1); filter: brightness(.55) grayscale(0); }
.next-page__label, .next-page__title { position: relative; }
.next-page__title { font-family: var(--serif); letter-spacing: var(--title-ls, normal); font-weight: var(--title-w, 300); font-size: calc(clamp(2.8rem, 8vw, 7rem) * var(--title-scale, 1) * var(--hs, .68)); line-height: 1; }

/* ---------- Text, Suche, 404 ---------- */
.textpage { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.search-inline { display: flex; border-bottom: 1px solid var(--paper); margin-bottom: 40px; }
.search-inline input { flex: 1; background: none; border: 0; outline: 0; color: var(--paper); font-family: var(--serif); font-size: 1.8rem; padding: 8px 0; min-width: 0; }
.search-inline button { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.results { display: grid; gap: 4px; }
.result { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.result:hover { padding-left: 10px; }
.result img { width: 120px; aspect-ratio: 4/3; object-fit: cover; }
.result strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.result small { color: var(--muted); }
.notfound { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter); max-width: var(--maxw); margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(60px, 9vw, 120px) var(--gutter) 30px; background: var(--bg-2); }
.footer__cta { max-width: var(--maxw); margin: 0 auto clamp(50px, 8vw, 100px); }
.footer__mail { font-family: var(--serif); letter-spacing: var(--title-ls, normal); font-weight: var(--title-w, 300); font-size: calc(clamp(2.2rem, 7.5vw, 7rem) * var(--title-scale, 1) * var(--hs, .68)); line-height: 1; word-break: break-word;
    background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .8s var(--ease), color .5s; }
.footer__mail:hover { background-size: 100% 2px; color: var(--accent); }
.footer__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer__logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 18px; }
.footer__claim { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); max-width: 30ch; margin: 0; }
.footer__col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.footer__col a:hover { color: var(--paper); }
.footer__head { color: var(--paper) !important; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.footer__bottom { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 24px; justify-content: space-between; padding-top: 24px; font-size: 12px; color: var(--muted); }
.footer__bottom a:hover { color: var(--paper); }
.footer__login { opacity: .5; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9500; background: rgba(6, 6, 5, .97); display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb__stage { display: grid; place-items: center; padding: 60px 80px 10px; min-height: 0; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; box-shadow: 0 30px 100px rgba(0,0,0,.7); transition: opacity .35s var(--ease), transform .55s var(--ease); }
.lb__img.is-swap { opacity: 0; transform: scale(.96); }
.lb__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.3rem; transition: background .3s, border-color .3s; }
.lb__btn:hover { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.lb__prev { left: 18px; } .lb__next { right: 18px; }
.lb__close { position: absolute; top: 14px; right: 18px; font-size: 2.4rem; width: 52px; height: 52px; line-height: 1; transition: transform .4s var(--ease); }
.lb__close:hover { transform: rotate(90deg); }
.lb__meta { position: absolute; top: 24px; left: 26px; display: flex; gap: 18px; align-items: baseline; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lb__count { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0; color: var(--paper); }
.lb__thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 20px 18px; scrollbar-width: none; justify-content: safe center; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex-shrink: 0; width: 64px; height: 48px; opacity: .35; transition: opacity .3s, transform .3s; }
.lb__thumbs button.is-active { opacity: 1; transform: translateY(-3px); outline: 1px solid var(--accent); outline-offset: 2px; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9400; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--paper); color: var(--bg);
    display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    pointer-events: none; transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform .45s var(--ease); mix-blend-mode: difference; }
.cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav { display: none; }
    .burger { display: block; }
    .header-actions { margin-left: auto; }
    .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .about__grid, .work, .work--flip, .gallery-intro { grid-template-columns: 1fr; }
    .work--flip .work__media { order: 0; }
    .about__quote { position: static; }
    .gallery-intro__meta { flex-direction: row; align-items: baseline; gap: 12px; }
    .counter { font-size: 3rem; }
    .masonry { columns: 2 140px; column-gap: 8px; }
    .tile { margin-bottom: 8px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__bottom { flex-direction: column; gap: 10px; }
    .lb__stage { padding: 60px 8px 10px; }
    .lb__btn { width: 44px; height: 44px; top: auto; bottom: 90px; transform: none; background: rgba(0,0,0,.5); }
    .hero__dots { display: none; }
    .brand__word em { display: none; }
    .tabs__bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .tabs__tab { white-space: nowrap; padding: 10px 16px; }
    .result { grid-template-columns: 80px 1fr; }
    .result img { width: 80px; }
    .adminbar a:not(.adminbar__brand):not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    /* Sanfte Einblendungen bleiben, nur große Bewegungen und Endlosschleifen werden gedämpft */
    body::after { display: none; }
    .reveal, .tile { transform: none; }
    .split .ch { transform: none; filter: none; }
    .marquee__track { animation-duration: 200s; }
    .hero__scroll span, .layers__arrow { animation: none; }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.prose h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 2.4em 0 .8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .6em; }
.prose em { color: var(--muted); }
.prose .note { font-size: .9rem; color: var(--muted); border-left: 2px solid var(--line); padding-left: 14px; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Cookie-Hinweis ---------- */
.consent { position: fixed; z-index: 9600; left: var(--gutter); right: var(--gutter); bottom: 20px; display: flex; justify-content: flex-start; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box {
    pointer-events: auto; width: min(560px, 100%); background: rgba(22, 21, 18, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); padding: 22px 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
    animation: consent-in .9s var(--ease) .6s both;
}
.consent.is-leaving .consent__box { animation: consent-out .5s var(--ease-in-out) forwards; }
@keyframes consent-in { from { opacity: 0; transform: translateY(30px); } }
@keyframes consent-out { to { opacity: 0; transform: translateY(30px); } }
.consent__text { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #d7d0c4; }
.consent__text a { color: var(--paper); border-bottom: 1px solid var(--line); }
.consent__opts { display: grid; gap: 8px; margin-bottom: 16px; }
.consent__opts[hidden] { display: none; }
.consent__opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.consent__opt.is-fixed { opacity: .7; cursor: default; }
.consent__opt input { margin-top: 3px; accent-color: var(--accent); }
.consent__opt small { display: block; color: var(--muted); }
.consent__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.consent__btn { flex: 1 1 auto; padding: 11px 16px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: var(--paper); color: var(--bg); border: 1px solid var(--paper); transition: background .3s, color .3s; }
.consent__btn:hover { background: transparent; color: var(--paper); }
.consent__btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.consent__btn--ghost:hover { border-color: var(--paper); }
.consent__btn.is-hidden { display: none; }
@media (max-width: 760px) { .consent { left: 10px; right: 10px; bottom: 10px; } .consent__box { padding: 18px; } }

/* ---------- Suche ---------- */
.search-overlay { align-items: start; padding-top: 16vh; overflow-y: auto; }
.search-wrap { width: min(820px, 90vw); }
.search-form { width: 100%; }
.search-hint { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.search-hint em { color: var(--paper); font-style: normal; }
.search-live { margin-top: 26px; display: grid; gap: 4px; padding-bottom: 60px; transition: opacity .2s; }
.search-live.is-loading { opacity: .5; }
.search-live__item { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; padding: 10px; border-radius: 2px; outline: 0;
    opacity: 0; transform: translateY(10px); animation: fade-up .5s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); transition: background .25s; }
.search-live__item:hover, .search-live__item:focus { background: rgba(255,255,255,.06); }
.search-live__item img { width: 84px; aspect-ratio: 4/3; object-fit: cover; }
.search-live__item strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.search-live__item em, .result strong em { font-style: italic; color: var(--accent); }
.search-live__item small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-live__empty { color: var(--muted); }
.search-live__all { margin-top: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
mark { background: none; color: var(--paper); border-bottom: 1px solid var(--accent); }
.textpage--wide { max-width: 1100px; }
.result { align-items: start; }
.result__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.result__url { color: var(--accent) !important; font-size: 12px; letter-spacing: .04em; }
.result__snip { color: var(--muted); line-height: 1.55; }
.result__thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.result__thumbs img { width: 64px !important; aspect-ratio: 1 !important; object-fit: cover; }
.chips-front { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chips-front a { border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--muted); transition: border-color .3s, color .3s; }
.chips-front a:hover { border-color: var(--paper); color: var(--paper); }

/* ---------- 404 ---------- */
.e404 { position: relative; min-height: 100vh; padding: calc(var(--header-h) + 60px) var(--gutter) 100px; overflow: hidden; display: flex; align-items: center; }
.e404__bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); opacity: .16; filter: grayscale(1); }
.e404__bg span { background: center/cover; animation: e404-fade 1.6s var(--ease) both; animation-delay: calc(var(--i) * 120ms); }
.e404::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, transparent, var(--bg) 75%); z-index: 1; }
@keyframes e404-fade { from { opacity: 0; transform: scale(1.1); } }
.e404__inner { position: relative; z-index: 2; max-width: 900px; width: 100%; margin: 0 auto; }
.e404__code { font-family: var(--serif); font-weight: 300; font-size: clamp(7rem, 26vw, 18rem); line-height: .8; margin: 0; display: flex; align-items: center; gap: .05em; }
.e404__code span:not(.e404__lens) { animation: fade-up 1s var(--ease) both; }
.e404__code span:last-child { animation-delay: .2s; }
/* Die „0“ als Kameraobjektiv, das scharf stellt */
.e404__lens { width: .62em; height: .62em; border-radius: 50%; border: .045em solid var(--paper); position: relative; display: inline-block; margin: 0 .04em;
    background: radial-gradient(circle, #23324a 0 22%, #0e0d0b 24% 38%, transparent 40%); animation: lens 3.2s var(--ease-in-out) infinite; }
.e404__lens::after { content: ""; position: absolute; width: 14%; height: 14%; top: 26%; left: 28%; border-radius: 50%; background: rgba(255,255,255,.75); }
@keyframes lens { 0%, 100% { filter: blur(6px); transform: scale(.94); } 45%, 60% { filter: blur(0); transform: scale(1); } }
.e404__text { color: #d7d0c4; font-size: 1.1rem; max-width: 52ch; margin: 1.2rem 0 2rem; }
.e404__text code { color: var(--accent); font-size: .9em; }
.e404__search { max-width: 640px; }
.e404__suggest { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.e404__card { display: block; }
.e404__card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease); }
.e404__card:hover img { transform: scale(1.04); }
.e404__card span { display: block; font-family: var(--serif); font-size: 1.3rem; margin-top: 8px; }
.e404__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); align-items: center; }
.e404__links a:hover { color: var(--paper); }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.e404__bg { filter: grayscale(1) blur(3px); }
/* Lesbarkeit auf hellen Fotos */
.hero__content { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero__eyebrow { color: #cfe0f5; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.hero__shade { background: linear-gradient(180deg, rgba(14,13,11,.55) 0%, rgba(14,13,11,.08) 32%, rgba(14,13,11,.42) 62%, var(--bg) 100%); }
.tile picture, .layer picture { display: block; }

/* ---------- Sprachumschalter ---------- */
.lang-switch { display: flex; gap: 2px; margin-right: 4px; }
.lang-switch a { font-size: 11px; font-weight: 600; letter-spacing: .14em; padding: 6px 7px; color: var(--muted); border-radius: 4px; transition: color .3s, background .3s; }
.lang-switch a:hover { color: var(--paper); }
.lang-switch a.is-active { color: var(--paper); background: rgba(255,255,255,.08); }
.mm__lang { display: flex; gap: 18px; margin-top: 26px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mm__lang a.is-active { color: var(--paper); border-bottom: 1px solid var(--accent); }
@media (max-width: 760px) { .lang-switch { display: none; } }

/* ---------- Kontakt ---------- */
.contact { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 100px); }
.contact__direct { margin-top: 30px; color: var(--muted); }
.contact__direct a { font-family: var(--serif); font-size: 1.6rem; color: var(--paper); border-bottom: 1px solid var(--line); }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fl { position: relative; display: block; margin-bottom: 26px; }
.fl input, .fl textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--paper); font: 400 1.05rem var(--sans); padding: 22px 0 10px; outline: 0; resize: vertical; transition: border-color .4s; border-radius: 0; }
.fl span { position: absolute; left: 0; top: 22px; color: var(--muted); font-size: 1rem; pointer-events: none; transform-origin: left; transition: transform .4s var(--ease), color .4s; }
.fl input:focus, .fl textarea:focus { border-color: var(--accent); }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span,
.fl textarea:focus + span, .fl textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(.72); color: var(--accent); letter-spacing: .08em; }
.contact__privacy { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 28px; cursor: pointer; }
.contact__privacy input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.contact__privacy a { color: var(--paper); border-bottom: 1px solid var(--line); }
.contact__send { display: inline-flex; align-items: center; gap: 18px; padding: 16px 30px; border: 1px solid var(--paper); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; position: relative; overflow: hidden; }
.contact__send::before { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateY(101%); transition: transform .5s var(--ease); }
.contact__send:hover::before { transform: none; }
.contact__send span, .contact__send i { position: relative; transition: color .4s; font-style: normal; }
.contact__send:hover span, .contact__send:hover i { color: var(--bg); }
.contact__send i { transition: transform .5s var(--ease), color .4s; }
.contact__send:hover i { transform: translateX(6px); }
.contact__error { color: #e9a99f; border-left: 2px solid #c0392b; padding-left: 14px; }
.contact__done { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-family: var(--serif); font-size: 1.8rem; }
.contact__check { width: 64px; height: 64px; border: 1px solid var(--accent); border-radius: 50%; position: relative; animation: fade-up .8s var(--ease) both; }
.contact__check::after { content: ""; position: absolute; left: 22px; top: 17px; width: 14px; height: 24px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); animation: check-draw .6s var(--ease) .4s both; }
@keyframes check-draw { from { opacity: 0; transform: rotate(45deg) scale(.4); } }

/* ---------- Geschichten ---------- */
.journal { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); display: grid; gap: clamp(40px, 6vw, 90px); }
.entry { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.entry:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.entry:nth-child(even) .entry__media { order: 2; }
.entry__media { display: block; overflow: hidden; aspect-ratio: 3/2; background: var(--bg-2); }
.entry__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.entry:hover .entry__media img { transform: scale(1.05); }
.entry__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.entry__date { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.entry__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.02; }
.entry__sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.story { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 8vw, 110px); }
.story__text { font-size: 1.15rem; margin: 0 auto 60px; max-width: 64ch; }
.story__text p:first-child::first-letter { font-family: var(--serif); font-size: 4.2em; float: left; line-height: .8; margin: .06em .1em 0 0; color: var(--accent); }
.story__images { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.story__fig { margin: 0; overflow: hidden; }
.story__fig--0 { grid-column: 1 / -1; }
.story__fig--1 { grid-column: 1 / 4; }
.story__fig--2 { grid-column: 4 / -1; margin-top: 60px; }
.story__fig img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.story__fig:hover img { transform: scale(1.03); }
.story__fig figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
    .contact, .contact__row, .entry, .entry:nth-child(even) { grid-template-columns: 1fr; }
    .entry:nth-child(even) .entry__media { order: 0; }
    .story__images { grid-template-columns: 1fr; }
    .story__fig--0, .story__fig--1, .story__fig--2 { grid-column: auto; margin-top: 0; }
}
.footer__credit a { color: var(--paper); border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.footer__credit a:hover { color: var(--accent); border-color: var(--accent); }
.footer__bottom { flex-wrap: wrap; }

/* ---------- Diashow in der Bildansicht ---------- */
.lb__tools { position: absolute; top: 18px; right: 84px; display: flex; gap: 6px; }
.lb__tool { height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.lb__tool:hover, .lb__tool.is-on { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.lb__playicon { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.lb__tool.is-on .lb__playicon { width: 9px; height: 11px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.lb__progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.lb__progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.lb__progress.is-running span { animation: lb-progress var(--dur, 4.5s) linear forwards; }
@keyframes lb-progress { to { width: 100%; } }
.lightbox.is-playing .lb__img { transition-duration: .9s; }
.lightbox:fullscreen { background: #000; }
@media (max-width: 760px) {
    .lb__toollbl { display: none; }
    .lb__tools { right: 70px; z-index: 3; }
    .lb__close { z-index: 3; top: 8px; right: 8px; }
    /* Titel darf die Knöpfe nicht verdecken (Fotobox ließ sich sonst nicht bedienen) */
    .lb__meta { top: 22px; left: 16px; max-width: calc(100% - 196px); gap: 10px; pointer-events: none; }
    .lb__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
.lb__meta { max-width: calc(100% - 340px); pointer-events: none; }
.lb__close, .lb__tools, .lb__btn { z-index: 3; }

/* ---------- Kompositions-Aufbau beim Scrollen ---------- */
.assemble { position: relative; height: 320vh; }
.assemble__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.assemble__hint { position: absolute; top: calc(var(--header-h) + 16px); transition: opacity .4s; }
.assemble__stage { position: relative; width: min(860px, 82vw); aspect-ratio: 3/2; }
.assemble__final { position: absolute; inset: 0; box-shadow: 0 40px 120px -40px rgba(0,0,0,.9); clip-path: inset(calc(var(--p-final, 0) * 0%)); }
.assemble__final img { width: 100%; height: 100%; object-fit: cover; opacity: var(--fo, 0); filter: grayscale(var(--fg, 1)) contrast(1.05); transform: scale(var(--fs, 1.08)); }
.assemble__layer { position: absolute; left: 50%; top: 50%; width: 28%; aspect-ratio: 1; margin: -14% 0 0 -14%; will-change: transform, opacity;
    transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1)); opacity: var(--o, 1); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); border: 4px solid var(--paper); }
.assemble__layer img { width: 100%; height: 100%; object-fit: cover; }

.assemble ~ .finished { display: none; }


/* ==========================================================
   v2.1 · Schärfe: Fotos nie über ihre echte Auflösung vergrößern.
   Große Flächen = bewusst weichgezeichneter „Ambient“-Hintergrund,
   davor das Foto gestochen scharf in Originalgröße.
   ========================================================== */

/* Startseite */
.hero { align-items: stretch; }
.hero__slide { filter: blur(46px) saturate(1.25) brightness(.5); transform: scale(1.25); transition: opacity 1.8s var(--ease); }
.hero__slide.is-active { transform: scale(1.25); }
.hero__shade { background: radial-gradient(ellipse at 70% 40%, transparent 20%, rgba(14,13,11,.55) 75%), linear-gradient(180deg, rgba(14,13,11,.35), transparent 30%, transparent 60%, var(--bg)); }
.hero__frame { position: absolute; z-index: 1; right: var(--gutter); top: calc(var(--header-h) + 6vh); width: min(800px, 52vw); aspect-ratio: 800 / 531; }
.hero__photo { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); box-shadow: 0 50px 120px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); background: var(--bg-2); }
.hero__photo.is-active { opacity: 1; transform: none; }
.hero__photo picture, .hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__content { align-self: flex-end; position: relative; z-index: 2; }
.hero__dots { z-index: 3; }

/* Unterseiten-Kopf */
.pagehead--image { min-height: 0; display: block; }
.pagehead__bg { inset: -15%; animation: none; filter: blur(42px) saturate(1.2) brightness(.42); transform: none !important; }
.pagehead__shade { background: linear-gradient(180deg, rgba(14,13,11,.25), rgba(14,13,11,.1) 50%, var(--bg)); }
.pagehead--image .pagehead__inner { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(560px, 52vh); padding-right: min(520px, 38vw); }
.pagehead__photo { position: absolute; right: var(--gutter); bottom: clamp(30px, 4vw, 60px); width: min(560px, 36vw); margin: 0; z-index: 1;
    box-shadow: 0 40px 100px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); animation: photo-in 1.4s var(--ease) .2s both; }
.pagehead__photo img { display: block; width: 100%; height: auto; }
@keyframes photo-in { from { opacity: 0; transform: translateY(26px); } }

/* Galerie-/Übersichtskacheln ohne Hochskalierung */
.tile:hover img { transform: scale(1.03); }
.card__media { aspect-ratio: 3/2; }
.card__media picture { display: block; width: 100%; height: 100%; }
.work__media { aspect-ratio: 800 / 531; max-width: 800px; }
.work--flip .work__media { justify-self: end; }
.work__media picture { display: block; width: 100%; height: 100%; }
.marquee__track picture { display: block; height: 100%; }
.next-page__bg { filter: blur(16px) brightness(.38) grayscale(.4); transform: scale(1.15); }
.next-page:hover .next-page__bg { filter: blur(10px) brightness(.5) grayscale(0); transform: scale(1.1); }

/* Kompositionen & Geschichten: Originalbreite als Obergrenze */
.assemble__stage { width: min(800px, 82vw); aspect-ratio: 800 / 531; }
.finished { max-width: 900px; }
.finished__frame { display: inline-block; max-width: 100%; }
.finished__frame img { width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.story__fig picture { display: block; }
.story__fig img { width: auto; max-width: 100%; margin: 0 auto; }
.story__fig--0 { text-align: center; }

/* Seitenübergang: Blende dreht sich, wenn das Laden etwas dauert */
.curtain::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 0;
    background: url("../brand/logo-mark.svg") center / contain no-repeat; }
.curtain.is-in::after { animation: curtain-loader 1.6s linear .6s infinite, fade-in .4s ease .6s forwards; }
@keyframes curtain-loader { to { transform: rotate(360deg); } }
@keyframes fade-in { to { opacity: .9; } }

@media (max-width: 760px) {
    .hero { flex-direction: column; justify-content: flex-start; }
    .hero__frame { position: relative; right: auto; top: auto; width: auto; margin: calc(var(--header-h) + 18px) var(--gutter) 0; }
    .hero__content { padding-top: 34px; padding-bottom: 90px; }
    .pagehead--image .pagehead__inner { padding-right: 0; min-height: 0; }
    .pagehead__photo { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 28px; }
    .work--flip .work__media { justify-self: stretch; }
}

/* v2.1 · Startseite: Text links, Foto rechts – nichts überlappt */
@media (min-width: 761px) {
    .hero { align-items: center; }
    .hero__frame { top: 50%; transform: translateY(-46%); width: min(800px, 50vw); }
    .hero__content { align-self: center; max-width: none; margin: 0; padding: var(--header-h) 0 0 var(--gutter); width: calc(100% - min(800px, 50vw) - var(--gutter) * 2.2); }
    .hero__title { font-size: clamp(3rem, 6.4vw, 7.6rem); line-height: .9; white-space: normal; letter-spacing: .02em; }
    .hero__claim { font-size: clamp(1.1rem, 1.6vw, 1.5rem); max-width: 30ch; }
    .hero__dots { flex-direction: row; right: var(--gutter); bottom: auto; top: calc(50% + min(800px, 50vw) * 0.664 * 0.54 + 22px); }
    .hero__dots button { width: 28px; height: 2px; }
    .hero__dots button::after { transform: scaleX(0); transform-origin: left; }
    .hero__dots button.is-active::after { animation: dot-fill-x 6.5s linear forwards; }
}
@keyframes dot-fill-x { to { transform: scaleX(1); } }
.pagehead--image .pagehead__inner { min-height: min(440px, 42vh); }
@media (max-width: 760px) {
    .hero { height: auto; min-height: 0; }
    .hero__scroll { display: none; }
    .hero__content { padding-bottom: 60px; }
}
@media (min-width: 761px) {
    /* Größe passt sich der Textspalte an, das Wort bricht nie um */
    .hero__title { white-space: nowrap; font-size: clamp(2.4rem, calc((100vw - min(800px, 50vw) - var(--gutter) * 2.2) / 6.7), 7.6rem); }
}


/* ==========================================================
   v2.2 · Bewegung zurück – ohne die Fotos hochzuskalieren
   ========================================================== */

/* Fortschrittslinie beim Scrollen */
.scrollbar { position: fixed; z-index: 950; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0)); pointer-events: none; }
.has-adminbar .scrollbar { top: 34px; }

/* Weichgezeichnete Hintergründe treiben langsam (Unschärfe ist hier gewollt, Zoom schadet nicht) */
.hero__slide.is-active { animation: ambient-drift 24s ease-in-out infinite alternate; }
.pagehead__bg { animation: ambient-drift 28s ease-in-out infinite alternate !important; }
@keyframes ambient-drift {
    0%   { transform: scale(1.25) translate3d(0, 0, 0); }
    50%  { transform: scale(1.38) translate3d(-2%, 1.5%, 0); }
    100% { transform: scale(1.3) translate3d(2%, -1%, 0); }
}

/* Startseite: Fotos wischen sich herein, Endzustand = Originalgröße (scharf) */
.hero__photo { clip-path: inset(0 0 0 100%); opacity: 1; transform: none;
    transition: clip-path 1.5s var(--ease-in-out), opacity 1s var(--ease) .5s; overflow: hidden; }
.hero__photo.is-active { clip-path: inset(0 0 0 0); z-index: 1; }
.hero__photo:not(.is-active) { opacity: 0; transition: opacity 1.2s var(--ease) .6s, clip-path 0s 1.8s; }
.hero__photo img { transform: scale(1.06); transition: transform 2.2s var(--ease); }
.hero__photo.is-active img { transform: scale(1); }
.hero__frame { transform-style: preserve-3d; transition: transform .8s var(--ease); }
@media (min-width: 761px) {
    .hero__frame { transform: translateY(calc(-46% + var(--py, 0px))) perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
    .hero__content { transform: translateY(var(--py2, 0px)); }
}
.hero__frame::after { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(236,230,220,.14); pointer-events: none; z-index: 2;
    animation: frame-in 1.6s var(--ease) .9s both; }
@keyframes frame-in { from { opacity: 0; inset: 0; } }
.hero__eyebrow, .hero__claim { will-change: opacity, transform; }

/* Unterseiten: Foto schwebt beim Scrollen leicht nach oben */
.pagehead__photo { transform: translateY(var(--py, 0px)); transition: transform .1s linear; }
.pagehead--image .pagehead__inner { transform: translateY(var(--py2, 0px)); }

/* Überschriften erscheinen erst, wenn sie ins Bild scrollen */
.section-head .display .ch { transition-delay: calc(var(--ci) * 35ms); }
.e404__noimg { display: block; aspect-ratio: 4/3; background: var(--bg-3) url("../brand/logo-mark.svg") center / 34px no-repeat; opacity: .6; }
.hero__photo.is-active { transition: clip-path 1.5s var(--ease-in-out), opacity 0s; }

/* v2.2.1 Fotobox: Zähler nie umbrechen, Lightbox über allem, deckender Hintergrund */
.lb__count { white-space: nowrap; flex-shrink: 0; }
.lightbox { z-index: 9700; background: rgb(6, 6, 5); }
/* Bildschutz: Fotos nicht markier- oder ziehbar, kein „Bild sichern“-Menü auf iOS */
picture img, .lb img, .tile img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* ==========================================================
   v2.3 Baukasten-Abschnitte (CMS → Seite → Abschnitte)
   ========================================================== */
.blocks { display: block; }
.blk { max-width: var(--maxw); margin: 0 auto; padding: clamp(50px, 8vw, 110px) var(--gutter); }
.blk + .blk { padding-top: 0; }
.blk-title { margin-bottom: .6em; }
.blk img, .blk-image img, .blk-slides img { border-radius: var(--radius, 0); }

/* Titelbild: unscharfer Farbraum + scharfes Foto in Originalgröße (nie hochskaliert) */
.blk-nat { display: block; max-width: min(100%, var(--nw, 800px)); margin: 0 auto; }
.blk-nat picture, .blk-nat img { display: block; width: 100%; height: auto; }
.blk-hero { position: relative; display: flex; align-items: center; overflow: hidden; padding: calc(var(--header-h) + 30px) var(--gutter) clamp(50px, 7vw, 100px); isolation: isolate; }
.blk-hero--full { min-height: 100svh; }
.blk-hero--large { min-height: 80svh; }
.blk-hero--medium { min-height: 58svh; }
.blk-hero__bg { position: absolute; inset: -14% -6%; background-size: cover; background-position: center; filter: blur(34px) saturate(1.15); opacity: .5; z-index: -2; transform: translateY(var(--bp, 0px)) scale(1.08); }
.blk-hero__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 60%, rgba(10,9,8,.25), rgba(10,9,8,.75)); }
.blk-hero--shade-s .blk-hero__shade { opacity: .55; }
.blk-hero--shade-l .blk-hero__shade { background: rgba(10,9,8,.72); }
.blk-hero__inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.blk-hero--right .blk-hero__photo { order: -1; }
.blk-hero--center .blk-hero__inner, .blk-hero--noimg .blk-hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
.blk-hero--center .blk-hero__photo { order: -1; }
.blk-hero--center .blk-hero__photo .blk-nat { max-width: min(100%, var(--nw, 800px), 640px); }
.blk-hero__photo { margin: 0; transform: translateY(var(--bp, 0px)); }
.blk-hero__photo a { display: block; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: blk-rise 1.6s var(--ease) both .15s; }
.blk-hero__photo img { max-height: 76svh; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.blk-hero--medium .blk-hero__photo img { max-height: 52svh; }
@keyframes blk-rise { from { opacity: 0; transform: translateY(40px) scale(.97); clip-path: inset(10% 0 10% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
.blk-hero__content { text-shadow: 0 2px 30px rgba(0,0,0,.35); min-width: 0; }
.blk-hero__title { font-family: var(--serif); font-weight: var(--title-w, 300); letter-spacing: var(--title-ls, -.01em); font-size: calc(clamp(2.8rem, 6.6vw, 7.2rem) * var(--title-scale, 1) * var(--hs, .68)); line-height: .95; margin: 0; overflow-wrap: anywhere; }
.blk-hero--center .blk-hero__title, .blk-hero--noimg .blk-hero__title { font-size: calc(clamp(3rem, 9vw, 8.5rem) * var(--title-scale, 1) * var(--hs, .68)); }
.blk-hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.8rem); color: #e2dbcf; margin: .6em 0 1.4em; max-width: 40ch; }
.blk-hero--center .blk-hero__sub, .blk-hero--noimg .blk-hero__sub { margin-left: auto; margin-right: auto; }
.blk-hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 56px; background: linear-gradient(var(--paper), transparent); opacity: .6; animation: blk-scroll 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes blk-scroll { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) {
    .blk-hero { align-items: center; padding-top: calc(var(--header-h) + 16px); }
    .blk-hero--full { min-height: 92svh; }
    .blk-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .blk-hero__photo { order: -1; }
    .blk-hero__photo img { max-height: 46svh; }
}

/* Knopf */
.blk-btn { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; padding: 16px 0; border-bottom: 1px solid var(--accent-2); color: var(--paper); transition: gap .4s var(--ease), color .3s; }
.blk-btn i { font-style: normal; color: var(--accent-2); transition: transform .4s var(--ease); }
.blk-btn:hover { gap: 22px; color: var(--accent-2); }
.blk-btn--solid { background: var(--paper); color: var(--bg); border: 0; padding: 16px 28px; border-radius: var(--radius, 0); }
.blk-btn--solid i { color: var(--bg); }
.blk-btn--solid:hover { background: var(--accent-2); color: var(--bg); }
.blk-buttonrow { display: flex; padding-top: 0; }
.blk-buttonrow--center { justify-content: center; }

/* Text */
.blk-text--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.blk-text--split .blk-text__head { position: sticky; top: 110px; }
.blk-text--center { text-align: center; }
.blk-text--center .prose, .blk-text--stack .prose { margin-left: auto; margin-right: auto; }
.blk-text--center .prose { text-align: center; }
.blk-text--stack .blk-text__head { max-width: 62ch; margin: 0 auto; }

/* Bild & Text */
.blk-it { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.blk-it--right .blk-it__media { order: 2; }
.blk-it--noimg { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.blk-it__media { margin: 0; overflow: hidden; background: var(--bg-2); border-radius: var(--radius, 0); }
.blk-it__media a { display: block; height: 100%; }
.blk-it__media picture, .blk-it__media img { width: 100%; height: 100%; object-fit: cover; }
.blk-ratio--landscape { aspect-ratio: 5/4; }
.blk-ratio--portrait { aspect-ratio: 4/5; }
.blk-ratio--square { aspect-ratio: 1; }
.blk-ratio--auto img { height: auto; }
.blk-it__body .prose { margin-bottom: 1.6rem; }

/* Galerie */
.blk-gallery { padding-left: 0; padding-right: 0; }
.blk-gallery__title, .blk-cards__title { padding: 0 var(--gutter); }
.blk-gallery .masonry { columns: var(--cols, 3) 260px; padding-bottom: 0; }
.blk-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; padding: 0 var(--gutter); }
.blk-grid .tile { margin: 0; aspect-ratio: 1; }
.blk-grid .tile a, .blk-grid picture { height: 100%; }
.blk-grid .tile img { height: 100%; object-fit: cover; }
.blk-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blk-grid--wide .tile { aspect-ratio: 4/3; }

/* Diashow */
.blk-slides { position: relative; overflow: hidden; background: var(--bg-2); }
.blk-slides--large { height: 82svh; }
.blk-slides--full { height: 100svh; }
.blk-slides--medium { height: 60svh; }
.blk-slides--medium .blk-slides__item img { max-height: 52svh; }
.blk-slides--full .blk-slides__item img { max-height: 86svh; }
.blk-slides__item { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.blk-slides__item.is-active { opacity: 1; z-index: 1; }
.blk-slides__bg { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: blur(30px) brightness(.55); }
.blk-slides__item .blk-nat { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.blk-slides__item .blk-nat picture { height: auto; }
.blk-slides__item img { width: auto; max-width: 100%; max-height: 74svh; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.4); transform: scale(1.04); transition: transform 7s linear; }
.blk-slides__item.is-active img { transform: scale(1); }
.blk-slides__caption { position: absolute; left: var(--gutter); bottom: 26px; z-index: 2; margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.blk-slides__dots { position: absolute; right: var(--gutter); bottom: 30px; z-index: 2; display: flex; gap: 8px; }
.blk-slides__dots button { width: 26px; height: 2px; background: rgba(236,230,220,.35); padding: 0; transition: background .3s, width .4s var(--ease); }
.blk-slides__dots button.is-active { background: var(--paper); width: 44px; }

/* Großes Foto: Farbraum über die ganze Breite, Foto scharf in Originalgröße */
.blk-image { margin: 0; padding: clamp(40px, 6vw, 90px) 0; }
.blk-image__band { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 110px) var(--gutter); isolation: isolate; }
.blk-image--contained .blk-image__band { padding-top: 0; padding-bottom: 0; }
.blk-image__bg { position: absolute; inset: -20% -5%; z-index: -1; background-size: cover; background-position: center; filter: blur(40px) brightness(.6) saturate(1.1); transform: translateY(var(--bp, 0px)) scale(1.1); }
.blk-image__frame { display: block; width: fit-content; max-width: 100%; margin: 0 auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); border-radius: var(--radius, 0); overflow: hidden; }
.blk-image__frame img { max-height: 86svh; width: auto; max-width: 100%; }
.blk-image figcaption { text-align: center; padding: 16px var(--gutter) 0; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.1rem; }

/* Zitat */
.blk-quote { max-width: 980px; text-align: center; }
.blk-quote .about__quote { position: static; }
.blk-quote__by { margin: 1.4rem 0 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* Kacheln, Laufband, Abstand */
.blk-cards { padding-left: 0; padding-right: 0; }
.blk-cards .cards { padding-top: 0; }
.blk-strip { padding-top: 0; }
.blk-spacer--s { height: 30px; } .blk-spacer--m { height: 70px; } .blk-spacer--l { height: 140px; }
.blk-spacer--line { position: relative; }
.blk-spacer--line::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; height: 1px; background: var(--line); max-width: calc(var(--maxw) - 2 * var(--gutter)); margin: 0 auto; }
.blk-html { overflow-wrap: anywhere; }

@media (max-width: 860px) {
    .blk-text--split, .blk-it { grid-template-columns: 1fr; }
    .blk-text--split .blk-text__head { position: static; }
    .blk-it--right .blk-it__media { order: 0; }
    .blk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .blk-grid--wide { grid-template-columns: 1fr; }
    .blk-slides--large, .blk-slides--full { height: 70svh; }
    .blk-slides__dots { right: 50%; transform: translateX(50%); bottom: 16px; }
    .blk-slides__caption { bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .blk-hero__photo img, .blk-hero__scroll { animation: none; }
    .blk-slides__item img { transition: none; transform: none; }
}

/* ==========================================================
   v2.4 · Startseiten-Slider: Effekte & Layout (CMS → Übersicht → Startseite & Slider)
   ========================================================== */
.hero--fx-fade .hero__photo, .hero--fx-zoom .hero__photo, .hero--fx-slide .hero__photo { clip-path: none; }
.hero--fx-fade .hero__photo { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero--fx-fade .hero__photo.is-active { opacity: 1; }
.hero--fx-fade .hero__photo img { transform: none; }
.hero--fx-zoom .hero__photo { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero--fx-zoom .hero__photo.is-active { opacity: 1; }
.hero--fx-zoom .hero__photo img { transform: scale(1.14); transition: transform 7s var(--ease); }
.hero--fx-zoom .hero__photo.is-active img { transform: scale(1); }
.hero--fx-slide .hero__photo { opacity: 0; transform: translateX(8%); transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
.hero--fx-slide .hero__photo.is-active { opacity: 1; transform: none; }
.hero--fx-slide .hero__photo img { transform: none; }
.hero__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 10px; font-size: 12px; letter-spacing: .04em; color: #ece6dc;
    background: linear-gradient(transparent, rgba(0,0,0,.55)); z-index: 2; }
/* Vollbild statt Rahmen */
@media (min-width: 761px) {
    .hero--full .hero__frame { inset: 0; top: 0; right: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none !important; }
}
.hero--full .hero__frame { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; top: 0; right: 0; }
.hero--full .hero__frame::after { display: none; }
.hero--full .hero__photo { box-shadow: none; }
.hero--full .hero__shade { z-index: 2; background: linear-gradient(180deg, rgba(14,13,11,.45), transparent 35%, transparent 55%, rgba(14,13,11,.8) 88%, var(--bg)); }
.hero--full .hero__content, .hero--full .hero__dots, .hero--full .hero__scroll { z-index: 3; }
.hero__dots[hidden] { display: none; }

/* v2.4.1 · Bilder nie verzerren: Höhe immer aus der Breite (width/height-Attribute nur fürs Platzhalten) */
img { height: auto; }
/* Komposition: Ebenen-Format & Spalten (Seite bearbeiten → Darstellung) */
.layers .layer img { height: auto; }
.layers--original { align-items: start; }
.layers--original .layer img { aspect-ratio: auto; object-fit: contain; }
.layers--square .layer img { aspect-ratio: 1; object-fit: cover; }
.layers--landscape .layer img { aspect-ratio: 3 / 2; object-fit: cover; }
.layers--portrait .layer img { aspect-ratio: 3 / 4; object-fit: cover; }
.layers--cols { grid-template-columns: repeat(var(--cols, 4), 1fr); }
@media (max-width: 760px) { .layers--cols { grid-template-columns: repeat(2, 1fr); } }
/* Titelfoto im Seitenkopf: nie höher als der Kopf (Hochformate werden schmaler statt oben abgeschnitten) */
@media (min-width: 761px) {
    .pagehead__photo { width: auto; max-width: min(560px, 36vw); }
    .pagehead__photo img { width: auto; max-width: 100%; max-height: calc(min(560px, 52vh) + clamp(20px, 5vw, 80px)); }
    .pagehead--image .pagehead__inner { padding-right: min(600px, 40vw); }
}
.pagehead--bgonly .pagehead__inner { padding-right: 0 !important; }
.split .wd { display: inline-block; white-space: nowrap; }
.split .sp { display: inline; width: auto; }
/* Titelfoto unterhalb der Navigation halten */
@media (min-width: 761px) { .pagehead__photo { top: auto; } .pagehead--image { padding-top: calc(var(--header-h) + clamp(70px, 11vw, 150px)); } }

/* ==========================================================
   v2.5 · Photo-Art: Ebenen fliegen nacheinander ins Bild (wie auf der alten Seite)
   ========================================================== */
.photoart { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
    width: min(1280px, calc(100% - 2 * var(--gutter, 24px))); margin: 0 auto clamp(60px, 8vw, 110px); }
.photoart__stage { position: relative; overflow: hidden; background: #111; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.photoart__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photoart__layer { position: absolute; height: auto; opacity: 0; transform: translateX(-160%); will-change: transform, opacity;
    transition: transform 1.1s cubic-bezier(.22, 1, .36, 1), opacity .5s ease; }
.photoart__stage.is-playing .photoart__layer.is-on { opacity: 1; transform: none; }
.photoart__stage.is-fading .photoart__layer { opacity: 0; transform: none; transition: opacity 1s ease; }
.photoart__text .prose { text-align: left; }
.photoart__final { margin: 10px 0 0; }
.photoart__final img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .photoart { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .photoart__layer { opacity: 1; transform: none; transition: none; } }

/* v2.5 · Alle Texte linksbündig */
.finished, .next-page, .story__fig--0, .blk-text--center, .blk-text--center .prose, .blk-image figcaption, .blk-quote,
.blk-hero--center .blk-hero__inner, .blk-hero--noimg .blk-hero__inner { text-align: left; }
.next-page { align-items: flex-start; padding-left: max(var(--gutter, 24px), calc((100% - 1280px) / 2)); }
.blk-hero--center .blk-hero__inner, .blk-hero--noimg .blk-hero__inner { justify-items: start; }
.prose, .prose p, .about__text, .hero__content, .gallery-intro { text-align: left; }

/* v2.5 · Kopfzeile hell wie auf der alten Website (Farbe unter Design & Schriften änderbar) */
:root { --header-bg: #dadad8; --header-fg: #333333; --header-accent: var(--accent); }
.site-header, .site-header.is-solid { background: var(--header-bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(0,0,0,.08); color: var(--header-fg); }
.site-header .brand__word { color: var(--header-accent); }
.site-header .brand__word em { color: var(--header-fg); opacity: .75; }
.site-header .nav__item > a { color: var(--header-fg); }
.site-header .nav__item:hover > a, .site-header .nav__item.is-active > a { color: var(--header-accent); }
.site-header .nav__item > a::after { background: var(--header-accent); }
.site-header .icon-btn, .site-header .lang a, .site-header .lang, .site-header .burger, .site-header button { color: var(--header-fg); }
.site-header .icon-btn:hover { background: rgba(0,0,0,.06); }
.site-header .nav__panel { background: rgba(218, 218, 216, .98); color: var(--header-fg); border-color: rgba(0,0,0,.08); }
.site-header .nav__sub, .site-header .nav__subsub { color: var(--header-fg); }
.site-header .nav__subsub:hover, .site-header .nav__sub:hover { color: var(--header-accent); }
.site-header .nav__thumb { filter: none; }
.site-header .burger span { background: var(--header-fg); }
.site-header .lang-switch a { color: var(--header-fg); opacity: .7; }
.site-header .lang-switch a:hover, .site-header .lang-switch a.is-active { color: var(--header-accent); opacity: 1; background: rgba(0,0,0,.05); }
.menu-open .site-header .nav { background: var(--header-bg); }

/* v2.5 · Startseite: „TAMATESCH“ kleiner, Parallax im Slider (Foto wandert beim Scrollen nach unten) */
.hero .hero__title { font-size: clamp(2.2rem, 5.2vw, 5.4rem); line-height: .95; letter-spacing: .06em; }
@media (min-width: 761px) and (max-width: 1100px) { .hero .hero__title { font-size: clamp(2rem, 4.6vw, 4rem); } }
.hero__photo { overflow: hidden; }
.hero__photo picture { position: absolute; left: 0; right: 0; top: -14%; height: 128%; transform: translateY(min(var(--hy, 0px), 13%)); will-change: transform; }
.hero__photo picture img { height: 100%; }
.hero__slides { transform: translateY(calc(var(--hy, 0px) * 1.6)); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero__photo picture, .hero__slides { transform: none; } }

/* v2.5.4 · Galerie: Fotos erscheinen sofort statt nacheinander verzögert */
.tile { transform: translateY(14px); transition: opacity .45s ease, transform .55s var(--ease); transition-delay: calc(min(var(--i), 3) * 40ms); }
.tile img.is-loading { filter: blur(6px); }
.tile img { transition: transform 1.2s var(--ease), filter .3s; }

/* ==========================================================
   v2.6 · Kopfzeile oben weiß, beim Scrollen leicht durchsichtiges Schwarz
          (alle Farben unter Design & Schriften einstellbar)
   ========================================================== */
:root {
    --header-bg: #ffffff; --header-fg: #111111;
    --header-scroll-bg: rgba(0, 0, 0, .38); --header-scroll-fg: #f4f1ea;
    --brand-color: #111111;
    --hero-size: 3.2rem;       /* großes „TAMATESCH“ auf der Startseite */
    --text-indent: clamp(0px, 7vw, 120px);   /* Texte weiter nach rechts eingerückt */
}
.site-header, .site-header.is-solid { transition: background .45s ease, color .45s ease, height .4s var(--ease), transform .5s var(--ease), border-color .45s; }
.site-header { background: var(--header-bg); color: var(--header-fg); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header .brand__word { color: var(--brand-color); }
.site-header .brand__word em { color: var(--header-fg); opacity: .6; }
.site-header.is-solid { background: var(--header-scroll-bg); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: rgba(255,255,255,.06); }
.site-header.is-solid, .site-header.is-solid .nav__item > a, .site-header.is-solid .brand__word, .site-header.is-solid .brand__word em,
.site-header.is-solid .icon-btn, .site-header.is-solid .lang-switch a { color: var(--header-scroll-fg); }
.site-header.is-solid .burger span { background: var(--header-scroll-fg); }
.site-header.is-solid .nav__item:hover > a, .site-header.is-solid .nav__item.is-active > a { color: var(--accent); }
.site-header.is-solid .icon-btn:hover { background: rgba(255,255,255,.08); }
.site-header.is-solid .nav__panel { background: rgba(14,13,11,.94); color: var(--paper); }
.site-header.is-solid .nav__sub, .site-header.is-solid .nav__subsub { color: var(--paper); }

/* Startseite: ohne Parallax, „TAMATESCH“ deutlich kleiner */
.hero__photo picture { position: static; height: 100%; transform: none; }
.hero__slides { transform: none; }
.hero .hero__title { font-size: clamp(1.9rem, 3.4vw, var(--hero-size)); letter-spacing: .08em; line-height: 1.05; }
@media (min-width: 761px) and (max-width: 1100px) { .hero .hero__title { font-size: clamp(1.8rem, 3.2vw, var(--hero-size)); } }
.hero__claim { font-size: clamp(1rem, 1.5vw, 1.25rem); }
.pagehead__sub, .blk-hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.3rem); }

/* Fließtext: linksbündig, weiter eingerückt, ruhiger rechter Rand (Flattersatz mit Silbentrennung) */
.prose, .about__text, .gallery-intro .prose, .photoart__text .prose, .entry .prose, .blk-text .prose {
    text-align: left; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3;
    text-wrap: pretty; overflow-wrap: break-word; max-width: 64ch;
}
.text-justify .prose, .text-justify .about__text { text-align: justify; text-align-last: left; }
.gallery-intro, .about__grid, .blk-text, .entry__body, .legal, .contact__grid { padding-left: var(--text-indent); }
@media (max-width: 760px) { .gallery-intro, .about__grid, .blk-text, .entry__body, .legal, .contact__grid { padding-left: 0; } }
h1, h2, h3, .pagehead__title, .work__title, .entry__title, .card__title { text-align: left; }
.entry__title { font-size: calc(clamp(1.8rem, 3.2vw, 2.8rem) * var(--title-scale, 1)); }

/* ==========================================================
   v2.6 · Vorlage „Bildstrecke“ – wie die alte Tango-Argentino-Seite
   ========================================================== */
.sc { background: #1a1a1a; }
.sc-hero { margin-top: var(--header-h); }
.sc-hero__img, .sc-full__img, .sc-pair__img, .sc-row__img { display: block; position: relative; overflow: hidden; background: #111; }
.sc-hero__img { height: min(76vh, 820px); }
.sc picture { display: block; height: 100%; }
.sc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.2s var(--ease); }
.sc a:hover img { transform: scale(1.02); }
.sc-text { background: #1a1a1a; text-align: center; }
.sc-text__inner { max-width: 1320px; margin: 0 auto; padding: clamp(44px, 6.5vw, 96px) var(--gutter) clamp(40px, 6vw, 86px); }
.sc-text__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-text__sub { font-family: var(--sans); font-size: clamp(1.05rem, 1.35vw, 1.3rem); letter-spacing: .02em; color: #e6e1d8; margin: 0 0 1.1em; }
.sc-text__body { font-size: clamp(.86rem, .95vw, .95rem); line-height: 1.75; color: #bdb8ae; }
.sc-text__body p { margin: 0 auto 1.1em; max-width: 1180px; text-align: center; hyphens: manual; }
.sc-text__body p:last-child { margin-bottom: 0; }
.sc-text__body .credit { display: none; }
.sc-pair { display: grid; grid-template-columns: 1fr 1fr; }
.sc-pair__cell { position: relative; }
.sc-pair__img { height: 30.9vw; max-height: 760px; }
.sc-full__img { height: min(78vh, 820px); }
.sc-cap { position: absolute; right: 7%; bottom: 7%; margin: 0; text-align: right; font-size: 10px; line-height: 1.5; color: #555; pointer-events: none; }
.sc-cap strong { display: block; color: #333; } .sc-cap span { text-transform: uppercase; letter-spacing: .04em; }
.sc-row { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 8px; padding: clamp(50px, 5vw, 96px) clamp(12px, 1.6vw, 30px) clamp(16px, 1.6vw, 30px); background: #2a2a2a; }
.sc-row__img { aspect-ratio: 361 / 544; }
@media (max-width: 760px) {
    .sc-hero__img { height: 64vh; } .sc-full__img { height: 56vh; }
    .sc-pair { grid-template-columns: 1fr; } .sc-pair__img { height: 62vw; }
    .sc-row { grid-template-columns: 1fr 1fr; gap: 6px; padding: 40px 6px 6px; }
    .sc-text__body p { text-align: left; }
}
.adminbar__draft { background: #b8860b; color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 11px; letter-spacing: .04em; }
.draft-pill { font-style: normal; background: #b8860b; color: #fff; padding: 1px 7px; border-radius: 3px; font-size: 10px; margin-left: .6em; letter-spacing: .06em; text-transform: uppercase; }
/* Parallax in der Vorlage „Bildstrecke“ – nur das Foto oben */
.sc-parallax .sc-hero__img picture { position: absolute; left: 0; right: 0; top: calc(-1 * var(--header-h, 76px)); height: calc(100% + var(--header-h, 76px));
    transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.sc-parallax .sc-hero__img:hover img { transform: none; }

/* ==========================================================
   v2.6.5 · Weniger Abstand überall (Design & Schriften → „Abstände“, Standard 55 %)
   ========================================================== */
:root { --sp: .55; }
.hero__content { padding-bottom: calc(clamp(90px, 14vh, 150px) * var(--sp) + 20px); }
.about { padding: calc(clamp(80px, 14vw, 180px) * var(--sp)) var(--gutter); }
.works { padding-bottom: calc(clamp(60px, 10vw, 140px) * var(--sp)); }
.marquee { padding-bottom: calc(clamp(60px, 9vw, 120px) * var(--sp)); }
.pagehead { padding-top: calc(var(--header-h) + clamp(60px, 10vw, 140px) * var(--sp)); padding-bottom: calc(clamp(40px, 6vw, 80px) * var(--sp)); }
.gallery-intro { padding-bottom: calc(clamp(40px, 6vw, 80px) * var(--sp)); gap: calc(clamp(24px, 5vw, 80px) * var(--sp)); }
.masonry { padding-bottom: calc(clamp(60px, 9vw, 120px) * var(--sp)); }
.cards, .textpage, .contact, .journal { padding-bottom: calc(clamp(80px, 10vw, 140px) * var(--sp)); }
.journal { gap: calc(clamp(40px, 6vw, 90px) * var(--sp)); }
.contact { gap: calc(clamp(30px, 6vw, 100px) * var(--sp)); }
.finished { padding: calc(clamp(40px, 6vw, 80px) * var(--sp)) var(--gutter) calc(clamp(80px, 10vw, 140px) * var(--sp)); }
.story { padding-bottom: calc(clamp(60px, 8vw, 110px) * var(--sp)); }
.site-footer { padding-top: calc(clamp(60px, 9vw, 120px) * var(--sp)); }
.blk { padding: calc(clamp(50px, 8vw, 110px) * var(--sp)) var(--gutter); }
.blk-hero { padding-bottom: calc(clamp(50px, 7vw, 100px) * var(--sp)); }
.blk-image { padding: calc(clamp(40px, 6vw, 90px) * var(--sp)) 0; }
.blk-image__band { padding: calc(clamp(40px, 7vw, 110px) * var(--sp)) var(--gutter); }
.sc-text__inner { padding: calc(clamp(44px, 6.5vw, 96px) * var(--sp) + 10px) var(--gutter) calc(clamp(40px, 6vw, 86px) * var(--sp) + 10px); }
.sc-row { padding-top: calc(clamp(50px, 5vw, 96px) * var(--sp)); }
.footer__mail { font-size: calc(clamp(1.8rem, 5vw, 4.4rem) * var(--title-scale, 1) * var(--hs, .68)); }
.footer__cta { margin-bottom: calc(clamp(50px, 8vw, 100px) * var(--sp)); }
.footer__grid { padding-bottom: calc(50px * var(--sp) + 10px); }
.work { margin-bottom: calc(clamp(70px, 12vw, 170px) * var(--sp)); gap: calc(clamp(28px, 6vw, 100px) * var(--sp) + 12px); }
.hero { height: calc(100svh - (1 - var(--sp)) * 30vh); min-height: 480px; }
.hero__content { padding-bottom: calc(clamp(60px, 10vh, 120px) * var(--sp)); }
