/*
Theme Name: c/off
Theme URI: https://coffspace.de
Author: c/off – Entwurf mit Claude
Description: Block-Theme für den Ausstellungsraum c/off, München. Hausschrift ABC Diatype Expanded Bold, Menü oben links, Landingpage ohne Scrollen, alles linksbündig an einer Kante.
Version: 1.2.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: coff
*/

:root {
	--gut: clamp(1rem, 1.8vw, 1.6rem);  /* die eine linke Kante: Menü, Texte, Bilder */
	--top: 10.5rem;                      /* Platz für das Menü über Textseiten */
	--gap: 4px;                         /* Abstand zwischen Bildern einer Galerie */
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--accent); color: #000; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, h4, ul, figure { margin-top: 0; }
a { transition: color .15s; }

/* ---------- Menü oben links: transparent, nur schwarze Schrift ---------- */
.coff-header { position: absolute; top: 0; left: 0; z-index: 100; padding: var(--gut); background: transparent; }
body.home .coff-header { position: fixed; }
/* Home-Button "c/off": gleiche Schriftgröße wie die Menüpunkte auf der Startseite */
.coff-header .wp-block-site-title { margin: 0 0 .7rem; font-size: clamp(2rem, 4.2vw, 3rem); line-height: .98; letter-spacing: -.02em; font-weight: 700; }
.coff-header .wp-block-site-title a { color: #000; text-decoration: none; }
.coff-header .wp-block-site-title a:hover { color: #000; text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .1em; }
.coff-header .wp-block-navigation__container { gap: 0 !important; align-items: flex-start; }
.coff-header .wp-block-navigation-item { margin: 0; }
.coff-header .wp-block-navigation a { color: #000; padding: 0; }
.coff-header .wp-block-navigation a:hover,
.coff-header .wp-block-navigation a[aria-current="page"] { color: #000; text-decoration: underline; text-decoration-thickness: .14em; text-underline-offset: .12em; }

/* ---------- Landingpage: eine Bildschirmseite, kein Scrollen ---------- */
html:has(body.home), body.home { overflow: hidden; height: 100%; }
body.home .coff-header { position: fixed; padding: clamp(.1rem, .3vw, .3rem) clamp(.45rem, .9vw, .8rem); }
body.home .coff-header .wp-block-site-title { display: none; }
body.home .coff-header .wp-block-navigation { font-size: clamp(2rem, 4.2vw, 3rem); line-height: .98; letter-spacing: -.02em; }
.coff-landing { position: fixed; inset: 0; overflow: hidden; background: #fff; margin: 0 !important; }
.coff-landing .entry-content, .coff-landing .wp-block-post-content { position: absolute; inset: 0; margin: 0; }

/* Startbilder: jede Gruppe "coff-start" ist ein mögliches Startbild; bei jedem Aufruf wird zufällig eines gezeigt (assets/js/start.js). */
.coff-start { position: absolute; inset: 0; margin: 0 !important; display: none; align-items: center; justify-content: center; overflow: hidden; }
.coff-landing:not(.is-ready) .coff-start:first-child, .coff-start.is-active { display: flex; }
.coff-start > .wp-block-image { margin: 0; }
.coff-start > .wp-block-image img { width: min(76vw, 150vh); height: auto; }                      /* Standard: Motiv mittig, vollständig sichtbar */
.coff-start > .wp-block-image.is-style-fill, .coff-start > .wp-block-video, .coff-start > .wp-block-cover { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.coff-start > .wp-block-image.is-style-fill img, .coff-start > .wp-block-video video { width: 100%; height: 100%; object-fit: cover; } /* Stil "Bildschirmfüllend" */
.coff-start > .wp-block-image.is-style-fill, .coff-start > .wp-block-video { z-index: 1; overflow: hidden; margin: 0; }
.coff-start > .wp-block-image.is-style-fill img { animation: coff-breathe 16s ease-in-out infinite alternate; will-change: transform; } /* Standbilder schwimmen ganz leicht */
@keyframes coff-breathe { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.045) translate(.4%, -.5%); } }
/* weicher, unscharfer Hintergrund aus demselben Motiv (setzt start.js) */
.coff-start-bg { position: absolute; inset: -6% -30%; z-index: 0; background-size: 100% 100%; background-position: center; filter: blur(60px) saturate(1.05); }
/* Ist das Fenster schmaler als das Motiv, wird es vollständig gezeigt statt beschnitten (Klasse setzt start.js);
   oben und unten läuft es weich in den unscharfen Hintergrund aus. */
.coff-start.is-contain > .wp-block-image.is-style-fill, .coff-start.is-contain > .wp-block-video { display: flex; align-items: center; overflow: visible; }
.coff-start.is-contain > .wp-block-image.is-style-fill img, .coff-start.is-contain > .wp-block-video video { height: auto; object-fit: contain;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 20%), #000 calc(100% - var(--fade, 20%)), transparent 100%);
	        mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 20%), #000 calc(100% - var(--fade, 20%)), transparent 100%); }
/* dunkles Startbild: Gruppe zusätzlich mit CSS-Klasse "is-dark" versehen, dann werden Menü und Fußzeile hell */
body.coff-dark .coff-header .wp-block-navigation a { color: #fff; }
body.coff-dark.home .coff-footer a { color: rgba(255,255,255,.55); }
body.coff-dark.home .coff-footer .wp-social-link svg { fill: rgba(255,255,255,.55); }

}

/* schwirrende Objekte: prallen an den Rändern ab und drehen sich */
.wp-block-image[class*="is-style-float"] { position: absolute; left: 0; top: 0; z-index: 2; margin: 0; width: var(--w); will-change: left, top; }
.wp-block-image[class*="is-style-float"] img { width: 100%; height: auto; filter: drop-shadow(0 1rem 1.4rem rgba(0,0,0,.28)); transition: scale .4s cubic-bezier(.2,.8,.2,1); }
.wp-block-image[class*="is-style-float"]:hover img { scale: 1.15; }
.wp-block-image.is-style-float { --w: clamp(180px, 30vw, 460px); --r: .62; animation: coff-x 9s linear infinite alternate, coff-y 6.3s linear infinite alternate; }
.wp-block-image.is-style-float img { animation: coff-spin 11s linear infinite; }
.wp-block-image.is-style-float-2 { --w: clamp(120px, 17vw, 260px); --r: 1.43; z-index: 3; animation: coff-x 6.1s linear -2.5s infinite alternate-reverse, coff-y 8.7s linear -5s infinite alternate; }
.wp-block-image.is-style-float-2 img { animation: coff-spin 7s linear infinite reverse; }
@keyframes coff-x { from { left: -2vw; } to { left: calc(102vw - var(--w)); } }
@keyframes coff-y { from { top: 0vh; } to { top: calc(100vh - var(--w) * var(--r)); } }
@keyframes coff-spin { from { rotate: 0deg; } to { rotate: 360deg; } }

/* ---------- Innenseiten: alles beginnt an derselben linken Kante ---------- */
.coff-main { padding-bottom: clamp(4rem, 10vw, 9rem); min-height: 70vh; }
.coff-main > *, .coff-main .wp-block-post-content > * { margin-left: var(--gut); margin-right: var(--gut); max-width: 46rem; }
.coff-main > .wp-block-post-content { margin: 0; max-width: none; }
.coff-main .alignfull, .coff-main > .wp-block-post-featured-image { margin-left: 0; margin-right: 0; max-width: none; }
.coff-main .alignwide { max-width: none; }
.coff-main > :first-child:not(.wp-block-post-featured-image):not(.wp-block-post-content),
.coff-main > .wp-block-post-content:first-child > :first-child { margin-top: 0; padding-top: var(--top); }
.coff-small { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin-bottom: .35rem; }
.coff-main ul.wp-block-list { padding-left: 0; list-style: none; }
.coff-main .wp-block-list li + li { margin-top: .5em; }

/* ---------- Projekte ---------- */
.coff-main .coff-projects.alignfull, .coff-main .coff-upcoming.alignfull { margin-left: var(--gut); margin-right: var(--gut); }
.coff-projects .wp-block-post-template, .coff-upcoming .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.coff-projects .wp-block-post-template { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: clamp(1.75rem, 3.5vw, 3rem) var(--gut) !important; }
.coff-projects .wp-block-post, .coff-upcoming .wp-block-post { margin: 0; min-width: 0; }
:is(.coff-projects, .coff-upcoming) .wp-block-post-featured-image { margin: 0; overflow: hidden; background: #eee; }
:is(.coff-projects, .coff-upcoming) .wp-block-post-featured-image a, :is(.coff-projects, .coff-upcoming) .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; }
:is(.coff-projects, .coff-upcoming) .wp-block-post-featured-image img { object-fit: cover; transition: scale .7s cubic-bezier(.2,.7,.2,1); }
:is(.coff-projects, .coff-upcoming) .wp-block-post:hover .wp-block-post-featured-image img { scale: 1.03; }
.coff-projects .wp-block-post-featured-image { aspect-ratio: 4 / 5; }
.coff-projects .wp-block-post-title { font-size: clamp(1.25rem, 2.6vw, 2.25rem); margin: .7rem 0 0; letter-spacing: -.02em; line-height: 1; overflow-wrap: anywhere; }
/* upcoming: einzeln oben, großes Bild links, Titel und Angaben rechts unten */
.coff-upcoming { margin-bottom: clamp(2.5rem, 6vw, 5rem) !important; }
.coff-upcoming .wp-block-columns { margin: 0; gap: var(--gut) clamp(1.25rem, 3vw, 3rem); align-items: flex-end; }
.coff-upcoming .wp-block-post-featured-image { aspect-ratio: 4 / 3; }
.coff-upcoming .wp-block-post-title { font-size: clamp(2.2rem, 5.2vw, 4.75rem); line-height: .92; letter-spacing: -.03em; margin: 0 0 .9rem; overflow-wrap: anywhere; }
.coff-upcoming .wp-block-post-excerpt { margin: 0; font-size: var(--wp--preset--font-size--large); line-height: 1.12; }
.coff-upcoming .wp-block-post-excerpt p { margin: 0; }
.coff-upcoming .wp-block-post-excerpt__more-text { display: none; }

/* ---------- Einzelnes Projekt ---------- */
.coff-single > .coff-hero { margin: 0 0 clamp(1.25rem, 3vw, 2.5rem); height: 100vh; overflow: hidden; }
.coff-single > .coff-hero img { width: 100%; height: 100%; object-fit: cover; }
.coff-single > .wp-block-post-title { max-width: none; margin-bottom: clamp(1rem, 2.4vw, 2rem); overflow-wrap: anywhere; }
.coff-single .coff-dates, .coff-single .coff-artists { font-size: var(--wp--preset--font-size--large); line-height: 1.1; max-width: none; }
.coff-single .coff-dates { margin-bottom: .2rem; }
.coff-single .coff-artists { margin-bottom: clamp(1.25rem, 3vw, 2.5rem); }
.coff-single .coff-text { font-size: 1.1rem; }
.coff-single .wp-block-gallery { margin-top: clamp(2rem, 6vw, 5rem); gap: var(--gap) !important; }
.coff-single .wp-block-gallery.columns-2 > figure:last-child:nth-child(odd) { width: 100% !important; }
.coff-single .coff-credits { font-size: 1.1rem; }
.coff-single .wp-block-post-content > .wp-block-image:not(.alignfull) { max-width: none; }
.coff-single .wp-block-post-content > .wp-block-image img { width: 100%; }
/* Seitenende: zurück, alle, weiter in einer Reihe */
.coff-postnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; max-width: none !important; margin-top: clamp(3rem, 8vw, 7rem) !important; }
.coff-postnav > * { margin: 0 !important; }
.coff-postnav > .post-navigation-link-previous { grid-column: 1; justify-self: start; }
.coff-postnav > .coff-all { grid-column: 2; justify-self: center; }
.coff-postnav > .post-navigation-link-next { grid-column: 3; justify-self: end; }
.coff-postnav a { display: inline-flex; align-items: center; gap: .55em; color: #000; }
.coff-postnav .wp-block-post-navigation-link a { font-size: 0; }
.coff-postnav .wp-block-post-navigation-link a::before, .coff-all a::before { content: ""; display: block; background: currentColor; transition: translate .25s cubic-bezier(.2,.8,.2,1); }
.coff-postnav .wp-block-post-navigation-link a::before { width: clamp(3rem, 7vw, 5.5rem); height: 1.5rem;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 24' preserveAspectRatio='xMaxYMid meet'%3E%3Cpath d='M0 12h84M73 2l11 10-11 10' fill='none' stroke='%23000' stroke-width='3.2'/%3E%3C/svg%3E") right center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 24' preserveAspectRatio='xMaxYMid meet'%3E%3Cpath d='M0 12h84M73 2l11 10-11 10' fill='none' stroke='%23000' stroke-width='3.2'/%3E%3C/svg%3E") right center / contain no-repeat; }
.coff-postnav .post-navigation-link-previous a::before { scale: -1 1; }
.coff-postnav .post-navigation-link-next a:hover::before { translate: .5rem 0; }
.coff-postnav .post-navigation-link-previous a:hover::before { translate: -.5rem 0; }
.coff-all a::before { width: 1.25rem; height: 1rem;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M0 1.6h20M0 8h20M0 14.4h20' stroke='%23000' stroke-width='3.2'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M0 1.6h20M0 8h20M0 14.4h20' stroke='%23000' stroke-width='3.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.coff-all a:hover { color: #000; text-decoration: underline; text-decoration-thickness: .14em; text-underline-offset: .12em; }

/* ---------- Mood: drei dichte Spalten, Bild wächst unter dem Mauszeiger ---------- */
.coff-main, .coff-footer { overflow-x: clip; }
.coff-mood.wp-block-columns { margin: 0; padding: var(--top) var(--gut) 0; gap: 8px !important; flex-wrap: nowrap !important; max-width: none; align-items: flex-start; }
.coff-mood > .wp-block-column { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0 !important; min-width: 0; }
.coff-mood .wp-block-image { margin: 0 !important; max-width: none; position: relative; z-index: 1; transition: scale .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.coff-mood .wp-block-image img { width: 100%; height: auto; }
.coff-mood .wp-block-image:hover { scale: 1.28; z-index: 5; box-shadow: 0 1.2rem 3rem rgba(0,0,0,.35); }
.coff-mood > .wp-block-column:first-child .wp-block-image { transform-origin: 0 50%; }
.coff-mood > .wp-block-column:last-child .wp-block-image { transform-origin: 100% 50%; }
.coff-main .coff-credits-page { margin-top: clamp(2rem, 5vw, 4rem); }

/* ---------- About ---------- */
.coff-portrait img { width: clamp(120px, 14vw, 190px); border-radius: 50%; }
.coff-about-head { max-width: 22em !important; line-height: 1.02; }

/* Karte: pinke Markierung als atmende, sich verformende Fläche über der c/off-Nadel.
   --px / --py = Position der Nadel in Prozent des Bildes. */
.wp-block-image.coff-map { --px: 63.7%; --py: 9.5%; position: relative; overflow: hidden; max-width: 72rem !important; background: #f3f3f3; }
.wp-block-image.coff-map img { width: 100%; height: auto; }
.wp-block-image.coff-map::after { content: ""; position: absolute; left: var(--px); top: var(--py); pointer-events: none; z-index: 2; translate: -50% -50%; width: 17%; aspect-ratio: 1; background: var(--wp--preset--color--accent); mix-blend-mode: multiply; opacity: .9; animation: coff-morph 9s ease-in-out infinite, coff-turn 23s linear infinite; }
@keyframes coff-morph {
	0%, 100% { border-radius: 62% 38% 34% 66% / 57% 44% 56% 43%; scale: 1; }
	20% { border-radius: 38% 62% 63% 37% / 41% 67% 33% 59%; scale: 1.12 .9; }
	40% { border-radius: 71% 29% 44% 56% / 30% 53% 47% 70%; scale: .82 1.08; }
	60% { border-radius: 33% 67% 70% 30% / 62% 28% 72% 38%; scale: 1.18; }
	80% { border-radius: 55% 45% 28% 72% / 70% 60% 40% 30%; scale: .9 1.15; }
}
@keyframes coff-turn { to { rotate: 360deg; } }
.coff-main .coff-founded { margin-top: clamp(1.25rem, 3vw, 2.5rem); }

/* ---------- Imprint: Deutsch links, Englisch rechts ---------- */
.coff-main .coff-legal { max-width: 78rem; gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: clamp(1.75rem, 4vw, 3rem); font-size: .8rem; line-height: 1.32; }
.coff-legal h2 { font-size: var(--wp--preset--font-size--large); margin: 0 0 .6rem; }
.coff-legal h3 { font-size: var(--wp--preset--font-size--medium); line-height: 1.1; margin: 1.3rem 0 .4rem; letter-spacing: 0; }
.coff-legal p, .coff-legal ul { margin: 0 0 .7rem; }
.coff-legal ul { padding-left: 1.1em; }
.coff-legal a { text-decoration: underline; text-underline-offset: .12em; }
.coff-legal mark { background: var(--wp--preset--color--accent); color: #000; padding: 0 .2em; }

/* ---------- Fußzeile: links Instagram-Symbol, rechts Imprint ---------- */
.coff-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(3rem, 8vw, 6rem) var(--gut) var(--gut); font-size: var(--wp--preset--font-size--small); }
.coff-footer p { margin: 0; }
.coff-footer a:hover { color: #000; text-decoration: underline; }
.coff-footer .wp-block-social-links { margin: 0; padding: 0; gap: 0; }
.coff-footer .wp-social-link { margin: 0; padding: 0; background: none !important; }
.coff-footer .wp-social-link a { padding: 0; display: block; line-height: 0; }
.coff-footer .wp-social-link svg { width: 1.35rem; height: 1.35rem; fill: #000; transition: fill .15s; }
/* Startseite: fest am unteren Rand, blass, damit es sich ins Startbild einfügt */
body.home .coff-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: clamp(.5rem, 1vw, .9rem) clamp(.6rem, 1.1vw, 1rem); }
body.home .coff-footer a { color: rgba(0,0,0,.34); }
body.home .coff-footer .wp-social-link svg { fill: rgba(0,0,0,.34); }
body.home .coff-footer a:hover { color: rgba(0,0,0,.7); text-decoration: none; }
body.home .coff-footer .wp-social-link a:hover svg { fill: rgba(0,0,0,.7); }

/* ---------- Mauszeiger: pinker Tropfen, der nachzieht, sich in Bewegungsrichtung streckt und verformt ---------- */
.coff-cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: 0; transition: opacity .25s; }
.coff-cursor.is-on { opacity: 1; }
.coff-cursor i { display: block; width: 100%; height: 100%; background: var(--wp--preset--color--accent); mix-blend-mode: multiply; animation: coff-morph 3.5s ease-in-out infinite; transition: scale .25s cubic-bezier(.2,1.5,.4,1); }
.coff-cursor.is-link i { scale: 2.3; }
.coff-cursor.is-image i { scale: 1.6; }
.coff-cursor.is-down i { scale: .5; }
.coff-drop { position: fixed; z-index: 9998; pointer-events: none; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--wp--preset--color--accent); mix-blend-mode: multiply; border-radius: 58% 42% 40% 60% / 55% 45% 55% 45%; animation: coff-drop .9s ease-out forwards; }
@keyframes coff-drop { from { opacity: .8; scale: 1; } to { opacity: 0; scale: .1; translate: 0 18px; } }
@media (hover: none) { .coff-cursor, .coff-drop { display: none; } }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	:root { --top: 9rem; }
	.coff-single > .coff-hero { height: 78vh; }
	.coff-mood.wp-block-columns, .coff-mood > .wp-block-column { gap: 5px !important; }
	.coff-mood .wp-block-image:hover { scale: 1.12; }
	.wp-block-image.is-style-float { --w: 58vw; }
	.wp-block-image.is-style-float-2 { --w: 34vw; }
	.coff-start > .wp-block-image:not(.is-style-fill) img { width: 84vw; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.wp-block-image.is-style-float { left: 55vw; top: 55vh; }
	.wp-block-image.is-style-float-2 { left: 12vw; top: 30vh; }
	.coff-cursor, .coff-drop { display: none; }
}

/* ---------- Nachträge Version 6 ---------- */
.coff-footer .wp-block-social-links .wp-social-link, .coff-footer .wp-block-social-links .wp-social-link a { color: inherit !important; }
.coff-footer .wp-block-social-links .wp-social-link svg { fill: #000 !important; }
body.home .coff-footer .wp-block-social-links .wp-social-link svg { fill: rgba(0,0,0,.34) !important; }
body.home .coff-footer .wp-block-social-links .wp-social-link a:hover svg { fill: rgba(0,0,0,.7) !important; }
body.coff-dark.home .coff-footer .wp-block-social-links .wp-social-link svg { fill: rgba(255,255,255,.55) !important; }
.coff-plain > .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }


/* =====================================================================
   Version 10
   ===================================================================== */
/* Menü auf allen Seiten in derselben Größe. Unterseiten: c/off, projects, mood, about. Startseite: projects, mood, about. */
:root { --nav: clamp(2rem, 4.2vw, 3rem); --top: calc(var(--nav) * .98 * 4 + var(--gut) * 2.4); }
.coff-header .wp-block-site-title, .coff-header .wp-block-navigation { font-size: var(--nav); line-height: .98; letter-spacing: -.02em; font-weight: 700; }
.coff-header .wp-block-site-title { margin: 0; }
.coff-header > * { margin-block: 0 !important; }
.wp-site-blocks > main.coff-main { margin-top: 0 !important; }

/* Fußzeile: Imprint 16 px, Instagram-Symbol im selben Verhältnis größer (auch Startseite) */
.coff-footer { font-size: 1rem; }
.coff-footer .wp-social-link svg { width: 1.875rem; height: 1.875rem; }


/* Startbilder: eigene Hochformat-Fassung fürs Handy (Video mit Stil "Hochformat") */
.coff-start > .wp-block-image.is-style-portrait { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; margin: 0; }
.coff-start > .wp-block-image.is-style-portrait img { width: 100%; height: 100%; object-fit: cover; animation: coff-breathe 16s ease-in-out infinite alternate; will-change: transform; }
.coff-start.is-contain > .wp-block-image.is-style-portrait { display: flex; align-items: center; overflow: visible; }
.coff-start.is-contain > .wp-block-image.is-style-portrait img { height: auto; object-fit: contain; }
.coff-start > .is-style-portrait { display: none !important; }
.coff-start.use-portrait > .is-style-portrait { display: block !important; }
.coff-start.use-portrait > .wp-block-video:not(.is-style-portrait), .coff-start.use-portrait > .wp-block-image:not(.is-style-portrait) { display: none !important; }
/* Mit JavaScript bleibt die Startfläche leer, bis das zufällige Startbild gewählt ist (kein kurzes Aufblitzen des ersten). */
.js .coff-landing:not(.is-ready) .coff-start { display: none !important; }
.coff-start.is-active { animation: coff-appear .6s ease-out 1; }
@keyframes coff-appear { from { opacity: 0; } to { opacity: 1; } }

/* projects: Ankündigung oben */
.coff-upcoming .coff-x { margin: 0; font-size: 17px; line-height: 1.2; }
.coff-upcoming .wp-block-post-title { font-size: 35px; line-height: 1; letter-spacing: -.02em; margin: .35rem 0 .45rem; }
/* projects: Raster mit drei Kacheln (Handy: zwei), überall derselbe Abstand; Titel erscheint beim Überfahren */
.coff-projects .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: var(--gut) !important; }
.coff-projects .wp-block-post { position: relative; overflow: hidden; }
.coff-projects .wp-block-post-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: .5em .55em .55em; background: rgba(217, 217, 217, .82); /* Hellgrau #D9D9D9, halbtransparent */
	opacity: 0; translate: 0 100%; transition: opacity .25s ease, translate .3s cubic-bezier(.2,.8,.2,1); }
.coff-projects .wp-block-post-title a { color: #000; display: block; }
.coff-projects .wp-block-post-title a:hover { color: #000; }
.coff-projects .wp-block-post:hover .wp-block-post-title, .coff-projects .wp-block-post:focus-within .wp-block-post-title { opacity: 1; translate: 0 0; }
@media (hover: none) { .coff-projects .wp-block-post-title { opacity: 1; translate: 0 0; } } /* Touch-Geräte kennen kein Überfahren: Titel immer sichtbar */

/* Projektseite: Bild beginnt unter dem Menü; Künstler*innen 17, Titel 35, Laufzeit 17, Text und Photos 17 */
.coff-single { padding-top: var(--top); }
.coff-single > .coff-hero { height: calc(100vh - var(--top)); min-height: 22rem; }
.coff-single > .coff-artists, .coff-single .coff-dates, .coff-single .coff-text, .coff-single .coff-credits { font-size: 17px; line-height: 1.2; }
.coff-single > .coff-artists { margin-bottom: 0; max-width: none; }
.coff-single > .wp-block-post-title { font-size: 35px; line-height: 1; letter-spacing: -.02em; margin: .35rem var(--gut) .45rem; }
.coff-single .coff-dates { margin-bottom: clamp(1.25rem, 3vw, 2.5rem); }
.coff-single .coff-text, .coff-single .coff-credits { line-height: 1.25; }
/* Seitenende: schlichte Pfeile aus der Hausschrift, in der Mitte nur das Wort "all" */
.coff-postnav a { display: inline-block; gap: 0; }
.coff-postnav a::before { display: none !important; }
.coff-postnav .wp-block-post-navigation-link a { font-size: 35px; line-height: 1; transition: translate .25s cubic-bezier(.2,.8,.2,1); }
.coff-postnav .wp-block-post-navigation-link a:hover { color: #000; }
.coff-postnav .post-navigation-link-next a:hover { translate: .4rem 0; }
.coff-postnav .post-navigation-link-previous a:hover { translate: -.4rem 0; }
.coff-all a { font-size: 1rem; }

@media (max-width: 781px) {
	.coff-projects .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.coff-single > .coff-hero { height: 62vh; }
}

/* Version 11 – dunkles Startbild (Klasse is-dark): Menü oben links bleibt auch über hellen Stellen lesbar */
.coff-start.is-dark::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: radial-gradient(ellipse 70vmax 46vmax at 0 0, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 70%); }
body.coff-dark.home .coff-header .wp-block-navigation a { text-shadow: 0 0 .5em rgba(0, 0, 0, .35); }

/* Version 12 – Kacheltitel auf "projects": Die Schriftgröße wird im Editor am Block "Titel" eingestellt
   (Seite "projects" > einen Kachel-Titel anklicken > Typografie > Größe; gilt für alle Kacheln).
   Vorgabe: clamp(20px, 2.24vw, 31px) = 31 px auf dem Desktop, auf schmaleren Fenstern entsprechend kleiner.
   Es kann auch einfach eine feste Zahl wie 28px eingetragen werden. Auf dem Handy kommt der Faktor unten dazu. */
.coff-projects .wp-block-post-title { padding: 0; line-height: 1; }
.coff-projects .wp-block-post-title a { font-size: 1em; line-height: 1; padding: .5em .55em .55em; }
@media (max-width: 781px) { .coff-projects .wp-block-post-title a { font-size: .72em; } }

/* Version 12a – Fußzeile der Unterseiten: kleine Zeile "Copyright c/off" mittig zwischen Instagram und Imprint.
   Text ändern: Design > Website-Editor > Vorlagen > Template-Teile > Fußzeile. Auf der Startseite ausgeblendet. */
.coff-footer .coff-copy { flex: 1; text-align: center; font-size: 10px; line-height: 1.2; color: rgba(0, 0, 0, .34); margin: 0; }
body.home .coff-footer .coff-copy { display: none; }

/* Version 12d – Projektseiten: Galerien und Einzelfotos im Inhalt laufen immer über die volle Breite,
   auch wenn im Editor keine Ausrichtung „Volle Breite“ gewählt ist (bei neuen Galerien bietet der Editor sie hier nicht an). */
.coff-single .wp-block-post-content > .wp-block-gallery,
.coff-single .wp-block-post-content > .wp-block-image { margin-left: 0; margin-right: 0; max-width: none; width: auto; }
/* im Editor genauso anzeigen: assets/css/editor.css */
