/* Culture Ventures – Portfolio. Ein Screen, alle Marken. */

@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #0b0b0b;
  --paper: #f4f1ea;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 15px/1.55 var(--mono);
  overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hintergrund: Video + Korn ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #222; }
.bg video, .bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.5) brightness(.68);
  transform: scale(1.04);
}
.bg::after { /* Filmkorn */
  content: ''; position: absolute; inset: -50%;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .22; mix-blend-mode: overlay;
  animation: grain .6s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }

/* ---------- Kopfzeile ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  font-size: 13px; letter-spacing: .02em;
  mix-blend-mode: difference; color: #fff; pointer-events: none;
}
.top a, .top button { pointer-events: auto; text-decoration: none; }
.top .clock { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Logo-Wolke ---------- */
main { position: relative; } /* bewusst ohne z-index: sonst blendet die Wolke nicht mit dem Video */
.cloud {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 6vw, 120px); row-gap: clamp(36px, 7vw, 110px);
  padding: clamp(84px, 10vw, 130px) var(--gutter) clamp(60px, 8vw, 120px);
  max-width: 1500px; margin: 0 auto;
}
.brand {
  position: relative; display: block; width: 100%;
  justify-self: var(--j, start);
  max-width: var(--w, 420px);
  margin-top: var(--mt, 0);
  transform: rotate(var(--r, 0deg));
  color: #fff; text-decoration: none;
  animation: float var(--d, 9s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  transition: opacity .35s, filter .35s;
  cursor: none;
  mix-blend-mode: difference; /* weiße Logos invertieren das Video */
}
.brand > * { transition: transform .35s cubic-bezier(.2,.9,.3,1.4); }
.brand:hover > *, .brand:focus-visible > * { transform: scale(1.07) rotate(calc(var(--r, 0deg) * -2)); }
.cloud:has(.brand:hover) .brand:not(:hover) { opacity: .18; filter: blur(2px); }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 8px; } }

.brand img { width: 100%; height: auto; }
.brand .invert { filter: invert(1); }

/* Schriftmarken für Marken ohne Bildlogo */
.wm { display: block; line-height: .9; text-transform: uppercase; }
.wm-residents { font: 900 clamp(34px, 6.2vw, 92px)/.86 'Unbounded', sans-serif; letter-spacing: -.02em; }
.wm-residents small { display: block; font: 700 clamp(11px, 1.1vw, 15px)/1.2 var(--mono); letter-spacing: .4em; margin-bottom: .6em; }
.wm-residents span { display: block; transform: skewX(-14deg); transform-origin: left; letter-spacing: .06em; padding-left: .5em; }
.wm-wine { position: relative; text-transform: none; text-align: center; padding: 1.2em 0; }
.wm-wine::before { /* der „Leuchtkreis“ vom Label */
  content: ''; position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0 18%, rgba(255,255,255,.35) 38%, transparent 68%);
  filter: blur(6px); z-index: -1;
}
.wm-wine b { display: block; font: 700 clamp(30px, 4.6vw, 66px)/1 'Montserrat', sans-serif; letter-spacing: -.01em; }
.wm-wine i { display: block; font: italic 400 clamp(18px, 2.4vw, 32px)/1.2 'Montserrat', sans-serif; margin-top: .25em; }
.wm-wine em { display: block; font: 400 12px/1.4 var(--mono); font-style: normal; letter-spacing: .3em; margin-top: 1em; }
/* kleines Label unter jedem Logo */
.brand .tag {
  display: block; margin-top: 12px;
  font: 400 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: lowercase;
  opacity: 0; translate: 0 -4px; transition: opacity .3s, translate .3s;
}
.brand:hover .tag, .brand:focus-visible .tag { opacity: 1; translate: 0 0; transform: none; }
@media (hover: none) { .brand .tag { opacity: .85; translate: 0 0; } }

/* ---------- „Das sind wir“-Box ---------- */
.about {
  position: relative; z-index: 2;
  justify-self: start; align-self: start;
  width: min(100%, 360px);
  background: var(--paper); color: var(--ink);
  padding: 16px 18px 18px; font-size: 14.5px; line-height: 1.5;
  mix-blend-mode: normal;
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
  transform: rotate(-.6deg);
}
.about p { margin: 0 0 .9em; }
.about p:last-child { margin: 0; }
.about ol { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: k; }
.about li { counter-increment: k; display: grid; grid-template-columns: 2.4em 1fr; }
.about li::before { content: counter(k, decimal-leading-zero); opacity: .5; }
.about .more { text-decoration: underline; text-underline-offset: 3px; }
.about [hidden] { display: none; }

/* ---------- Laufband + Footer ---------- */
.ticker {
  position: relative; z-index: 1; overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(255,255,255,.5);
  padding: 10px 0; font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  mix-blend-mode: difference; color: #fff;
}
.ticker div { display: inline-block; animation: tick 40s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }

.foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  padding: 18px var(--gutter) 28px; font-size: 13px;
  mix-blend-mode: difference; color: #fff;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Cursor + Bildvorschau ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  transition: width .25s, height .25s, margin .25s;
  display: grid; place-items: center;
}
.cursor span { font: 700 11px/1 var(--mono); color: #000; opacity: 0; letter-spacing: .05em; transition: opacity .2s; }
.cursor.is-on { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-on span { opacity: 1; }
.peek {
  position: fixed; left: 0; top: 0; z-index: 0; /* liegt über dem Video, unter den Logos */ pointer-events: none;
  width: clamp(180px, 20vw, 300px); aspect-ratio: 4/5; object-fit: cover;
  opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg);
  transition: opacity .25s, transform .35s;
}
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(3deg); }
@media (hover: none), (pointer: coarse) { .cursor, .peek { display: none; } .brand { cursor: pointer; } }

/* ---------- Marken-Overlay ---------- */
.panel {
  position: fixed; inset: 0; z-index: 40;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--fg);
  clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%));
  visibility: hidden;
  transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s .7s;
}
.panel.is-open { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); visibility: visible; transition: clip-path .8s cubic-bezier(.7,0,.2,1), visibility 0s; }
.panel-in {
  max-width: 1400px; margin: 0 auto;
  padding: 70px var(--gutter) 60px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(24px, 5vw, 80px);
}
.panel .close {
  position: sticky; top: 0; z-index: 2; grid-column: 1 / -1; justify-self: end;
  margin: -54px 0 0; padding: 10px 0; font-size: 14px; letter-spacing: .05em;
}
.panel .close:hover { text-decoration: line-through; }
.panel .kicker { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; opacity: .7; margin: 0 0 16px; }
.panel h2 { margin: 0 0 18px; font: 700 clamp(38px, 7vw, 104px)/.9 var(--mono); letter-spacing: -.06em; text-transform: uppercase; overflow-wrap: anywhere; }
.panel .logo { max-width: min(100%, 420px); margin-bottom: 22px; }
.panel .lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; margin: 0 0 18px; }
.panel p { margin: 0 0 1em; max-width: 60ch; }
.panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 22px 0; font-size: 14px; }
.panel dt { opacity: .6; }
.panel dd { margin: 0; }
.panel .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.panel .links a {
  display: inline-block; padding: 9px 14px; border: 1.5px solid currentColor; border-radius: 999px;
  text-decoration: none; font-size: 14px; transition: background .2s, color .2s;
}
.panel .links a:hover { background: var(--fg); color: var(--bg); }
.panel .links a.primary { background: var(--fg); color: var(--bg); }
.panel .links a.primary:hover { background: var(--accent, var(--fg)); color: var(--bg); }
.panel .media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.panel .media figure { margin: 0; overflow: hidden; background: rgba(0,0,0,.08); }
.panel .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .6s; }
.panel .media figure:first-child { grid-column: 1 / -1; }
.panel .media figure:first-child img { aspect-ratio: 3/2; }
.panel .media figure:hover img { transform: scale(1.04); }

/* Residents-Liste im Overlay */
.artists { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 26px 18px; margin-top: 10px; }
.artist img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .4s; }
.artist:hover img { filter: none; }
.artist .noimg { aspect-ratio: 4/5; display: grid; place-items: center; border: 1.5px dashed currentColor; font: 900 40px/1 'Unbounded', sans-serif; opacity: .6; }
.artist h3 { margin: 12px 0 4px; font: 900 20px/1.1 'Unbounded', sans-serif; text-transform: uppercase; }
.artist p { margin: 0; font-size: 13px; opacity: .85; }

/* Farbwelten je Marke */
#escon     { --bg: #070707; --fg: #f2f2f2; --accent: #c8ff2e; }
#residents { --bg: #5b25d6; --fg: #f6f0ff; --accent: #c8ff2e; }
#vinominga { --bg: #ffde59; --fg: #2b2c28; --accent: #ef8a17; }
#biocuvee  { --bg: #bfd5df; --fg: #1d3a48; --accent: #f3dd4a; }
#gkm       { --bg: #efe8dc; --fg: #2a211b; --accent: #b4462f; }
#swr       { --bg: #e05a2b; --fg: #141414; --accent: #10b8b0; }
#swr .logo { mix-blend-mode: multiply; }
#escon .lede em, #residents .lede em { font-style: normal; color: var(--accent); }
#biocuvee { background: var(--bg) radial-gradient(circle at 70% 30%, rgba(243,221,74,.75), rgba(243,221,74,0) 32%) fixed; }

body.is-locked { overflow: hidden; }

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.legal { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 90px var(--gutter) 60px; background: var(--paper); color: var(--ink); min-height: 100vh; }
.legal h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; margin: 0 0 24px; }
.legal h2 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 14.5px; }
.legal .back { display: inline-block; margin-bottom: 28px; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .cloud { grid-template-columns: 1fr; row-gap: 56px; padding-top: 72px; }
  .brand { --mt: 0 !important; max-width: min(var(--w, 420px), 86vw); }
  .about { width: 100%; }
  .panel-in { grid-template-columns: 1fr; padding-top: 64px; }
  .panel .close { margin-top: -50px; }
  .top { font-size: 12px; }
  .top .where { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .panel { clip-path: none; }
}
.panel .logo { height: auto; }
body.is-locked .cursor { display: none; }
.panel .close { padding: 7px 14px; margin-top: -50px; border: 1.5px solid currentColor; border-radius: 999px; background: var(--bg); }
.panel .close:focus-visible { outline: none; background: var(--fg); color: var(--bg); }

/* ---------- Handy: Scroll-Fokus statt Maus ----------
   Das Logo in der Bildschirmmitte wird „gehovert“: Foto dahinter, Rest blurrt,
   beim schnellen Scrollen kippen die Logos und das Video zieht an. */
.brand { transform: rotate(var(--r, 0deg)) skewY(var(--skew, 0deg)); }
@media (hover: none), (pointer: coarse) {
  .peek { display: block; width: min(64vw, 320px); transition: opacity .35s, transform .55s cubic-bezier(.2,.9,.3,1.3); }
  .peek.is-on { transform: translate(-50%, -50%) scale(1) rotate(var(--tilt, 3deg)); }
  .cloud.has-focus .brand:not(.is-focus) { opacity: .28; filter: blur(1.5px); }
  .brand.is-focus > * { transform: scale(1.06) rotate(calc(var(--r, 0deg) * -2)); }
  .brand .tag { opacity: .45; translate: 0 0; }
  .brand.is-focus .tag { opacity: 1; }
  .tap {
    position: fixed; z-index: 60; pointer-events: none; width: 120px; height: 120px; margin: -60px 0 0 -60px;
    border-radius: 50%; background: #fff; mix-blend-mode: difference;
    animation: tap .55s cubic-bezier(.2,.8,.3,1) forwards;
  }
  @keyframes tap { from { transform: scale(.15); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
}
body.is-locked .peek { opacity: 0; }
html, body { overflow-x: clip; }
.ticker, .foot { position: relative; z-index: 1; } /* über der Bildvorschau */
@media (max-width: 760px) {
  .about br { display: none; }
  .about { font-size: 15px; }
}

/* ---------- Leistungen + FAQ (SEO-Text, sichtbar) ---------- */
.services {
  position: relative; z-index: 2;
  width: min(100% - 2 * var(--gutter), 980px); margin: 0 auto clamp(60px, 8vw, 110px);
  background: var(--paper); color: var(--ink);
  padding: clamp(18px, 3vw, 34px); font-size: 14.5px; line-height: 1.55;
  box-shadow: 8px 8px 0 rgba(0,0,0,.35); transform: rotate(.4deg);
}
.services .kicker { margin: 0 0 .6em; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.services h2 { margin: 0 0 .6em; font: 900 clamp(24px, 3.6vw, 42px)/1.05 'Unbounded', sans-serif; letter-spacing: -.01em; text-transform: uppercase; }
.services .lead { max-width: 70ch; margin: 0 0 1.6em; }
.svc { list-style: none; padding: 0; margin: 0 0 1.8em; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 28px; counter-reset: s; }
.svc li { counter-increment: s; border-top: 1.5px solid currentColor; padding-top: 10px; }
.svc li::before { content: counter(s, decimal-leading-zero); font-size: 12px; opacity: .5; }
.svc h3 { margin: 2px 0 4px; font-size: 15px; font-weight: 700; }
.svc p { margin: 0; opacity: .8; }
.faq h3 { margin: 0 0 .5em; font-size: 15px; font-weight: 700; }
.faq details { border-top: 1px solid rgba(0,0,0,.2); padding: 8px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(0,0,0,.2); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+ '; }
.faq details[open] summary::before { content: '– '; }
.faq details p { margin: .4em 0 .2em 1.2em; }
.services .cta { display: inline-block; margin-top: 1.4em; padding: 8px 16px; border: 1.5px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 700; }
.services .cta:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .services { transform: none; } }
