/* =========================================================
   Meng Krea-Lounge – Desktop-Redesign
   Stil des Originals (dunkel, Lila, handschriftliche Titel)
   + Interaktionen & Animationen
   ========================================================= */

/* ---------- Schriften (lokal, DSGVO-freundlich) ---------- */
@font-face { font-family: "Patrick Hand"; src: url(../fonts/patrick-hand-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Patrick Hand"; src: url(../fonts/patrick-hand-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Quicksand"; src: url(../fonts/quicksand-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url(../fonts/quicksand-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url(../fonts/quicksand-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url(../fonts/quicksand-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url(../fonts/comic-neue-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #151217;
  --bg-2: #1d1820;
  --bg-3: #261f2a;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .10);
  --text: #f2eef4;
  --muted: #bdb3c2;
  --purple: #b07fbd;        /* Titel-Lila des Originals, etwas aufgehellt */
  --purple-deep: #9b6fa6;
  --pink: #c950b4;          /* Button-Magenta des Originals */
  --pink-2: #e06ccb;
  /* Logo-Farben */
  --c-magenta: #e6007e;
  --c-yellow: #ffcc00;
  --c-green: #95c11f;
  --c-orange: #f39200;
  --c-cyan: #1fb5d0;
  --c-violet: #6a2c91;
  --grad: linear-gradient(90deg, var(--c-cyan), var(--c-violet), var(--c-magenta), var(--c-orange), var(--c-yellow), var(--c-green));

  --f-hand: "Patrick Hand", "Comic Neue", cursive;
  --f-body: "Quicksand", system-ui, sans-serif;
  --f-bold: "Comic Neue", "Quicksand", sans-serif;

  --sidebar: 210px;
  --gutter: clamp(24px, 5vw, 90px);   /* seitlicher Rand des Inhalts */
  --head: 0px;                        /* Höhe der Kopfleiste (nur Handy/Tablet) */
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, #2a2030 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font: 400 17px/1.75 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
strong { font-weight: 700; color: #fff; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px dashed var(--pink-2); outline-offset: 4px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--pink); color: #fff; padding: 8px 16px; border-radius: 999px; transition: top .3s; }
.skip:focus { top: 12px; }

main { position: relative; z-index: 2; margin-left: var(--sidebar); padding: 0 var(--gutter); overflow-x: clip; }
section { position: relative; }

/* ---------- Ambient-Hintergrund ---------- */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06;
  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%) } }

/* ---------- Scroll-Fortschritt ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Funken ---------- */
.sparkle-particle {
  position: fixed; z-index: 9998; pointer-events: none; font-size: 12px; line-height: 1;
  animation: sparkle-fly .9s var(--ease) forwards;
}
@keyframes sparkle-fly { from { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); } to { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.2) rotate(180deg); } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: var(--bg);
  transition: clip-path 1s var(--ease) .1s, visibility 0s linear 1.2s;
  clip-path: inset(0 0 0 0);
}
.loader-inner { position: relative; width: 220px; aspect-ratio: 350 / 245; display: grid; place-items: center; }
.loader-inner img { width: 100%; animation: loader-pop 1.1s var(--ease-back) both; }
.loader-ring {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--c-cyan), var(--c-violet), var(--c-magenta), var(--c-orange), var(--c-yellow), var(--c-green), var(--c-cyan));
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 66%, transparent 67%);
          mask: radial-gradient(circle, transparent 64%, #000 65%, #000 66%, transparent 67%);
  animation: spin 2.2s linear infinite; opacity: .8;
}
.loader-count { position: absolute; bottom: 48px; right: 56px; font: 400 64px/1 var(--f-hand); color: var(--purple); }
.loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
html.seen .loader { display: none; }
@keyframes loader-pop { from { opacity: 0; transform: scale(.4) rotate(-25deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- Seitenwechsel-Vorhang ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  background: linear-gradient(160deg, #3a2442, var(--bg) 70%);
  display: grid; place-items: center;
  clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%));
  transition: clip-path .7s var(--ease);
}
.curtain img { width: 70px; opacity: 0; transform: scale(.6) rotate(-20deg); transition: .5s var(--ease-back) .15s; }
.curtain.is-active { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); pointer-events: all; }
.curtain.is-active img { opacity: 1; transform: none; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 50;
  display: flex; flex-direction: column; padding: 26px 0 26px 0;
}
.logo { display: block; width: 140px; margin: 0 0 0 30px; transition: transform .6s var(--ease-back); }
.logo:hover { transform: rotate(-6deg) scale(1.06); }
.logo img { width: 100%; }
.nav { position: relative; margin-top: 11vh; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 22px; margin-right: 20px;
  font: 400 21px/1.3 var(--f-hand); letter-spacing: .02em; color: #fff;
  border-bottom: 2px solid transparent; transition: color .25s;
}
.nav a:hover { color: var(--pink-2); }
.nav a.active { color: var(--purple); border-bottom-color: var(--purple); }
.sidebar-foot { margin-top: auto; display: flex; gap: 10px; padding-left: 26px; }
.sidebar-foot .social { width: 40px; height: 40px; }

.social {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.social svg { width: 20px; height: 20px; fill: #fff; transition: transform .4s var(--ease-back); }
.social:hover { background: var(--pink); border-color: var(--pink); }
.social:hover svg { transform: scale(1.15) rotate(-8deg); }

.burger { display: none; }

/* ---------- Topbar ---------- */
.topbar { position: fixed; top: 22px; right: 28px; z-index: 55; display: flex; align-items: center; gap: 10px; }
.mlogo, .mmenu, .world-thumb { display: none; }

/* Sprachwahl (auf PC, Tablet und Handy gleich): vier Kürzel, die aktive Sprache ist hervorgehoben – ohne Flaggen */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 14px; padding: 3px; height: 48px; border-radius: 999px; background: rgba(21, 18, 23, .6); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lang-switch a, .lang-switch span { display: grid; place-items: center; min-width: 44px; height: 40px; padding: 0 8px; border-radius: 999px; font: 700 15px/1 var(--f-body); letter-spacing: .06em; color: var(--muted); transition: background .25s, color .25s; }
.lang-switch a:hover { color: #fff; background: var(--surface-2); }
.lang-switch .current { background: rgba(201, 80, 180, .3); color: #fff; box-shadow: inset 0 0 0 1px rgba(224, 108, 203, .55); }

/* ---------- Titel mit Schwung-Linie ---------- */
.swoosh-title {
  position: relative; display: inline-block; margin: 0 0 .6em; padding-bottom: .22em;
  font: 400 clamp(34px, 3.6vw, 54px)/1.1 var(--f-hand); color: var(--purple); letter-spacing: .01em;
}
h1.swoosh-title { font-size: clamp(46px, 5.4vw, 86px); }
h1.hero-title { font-size: clamp(40px, 4.6vw, 86px); }
.swoosh { position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .42em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--purple-deep); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.3s var(--ease) .35s; }
.swoosh path + path { stroke-width: 2; opacity: .55; transition-delay: .6s; }
.swoosh-title.in .swoosh path, .card:hover .swoosh path, .card.in .swoosh path { stroke-dashoffset: 0; }
html:not(.js) .swoosh path { stroke-dashoffset: 0; }

.split .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(8deg); filter: blur(6px); transition: transform .8s var(--ease-back), opacity .6s, filter .6s; transition-delay: calc(var(--i) * 28ms); }
.split .w { display: inline-block; white-space: nowrap; }
.in .split .ch { opacity: 1; transform: none; filter: none; }
.split .ch:hover { color: var(--pink-2); transform: translateY(-.12em) rotate(-6deg); transition-delay: 0s; transition-duration: .25s; }

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
  padding: 12px 14px 12px 26px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .85);
  background: var(--pink); color: #fff; font: 400 21px/1 var(--f-hand); letter-spacing: .02em;
  box-shadow: 0 10px 30px -10px rgba(201, 80, 180, .7);
  transition: box-shadow .4s, border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--grad); background-size: 200% 100%;
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .6s var(--ease);
  animation: grad-move 4s linear infinite;
}
.btn:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.btn:hover { box-shadow: 0 18px 40px -12px rgba(230, 0, 126, .75); }
.btn-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .2); overflow: hidden; }
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn:hover .btn-icon svg { animation: arrow-loop .55s var(--ease); }
.btn-sm { font-size: 18px; padding: 8px 10px 8px 18px; }
.btn-sm .btn-icon { width: 26px; height: 26px; }
@keyframes grad-move { to { background-position: 200% 0; } }
@keyframes arrow-loop { 0% { transform: none; } 49% { transform: translateX(140%); } 50% { transform: translateX(-140%); } 100% { transform: none; } }

.link-underline { position: relative; font: 400 21px/1 var(--f-hand); color: var(--text); padding-bottom: 4px; }
.link-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(.3); transform-origin: left; transition: transform .5s var(--ease); }
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- HOME: Hero ---------- */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 4vw, 70px);
  padding: 110px 0 80px;
}
.hero-title { margin-bottom: .45em; }
.hero-lead { font: 400 clamp(24px, 2.1vw, 32px)/1.35 var(--f-hand); color: #fff; max-width: 30ch; margin-bottom: .7em; }
.hero-sub { color: var(--muted); max-width: 56ch; font-size: 18px; }
.hero-cta { display: flex; align-items: center; gap: 30px; margin-top: 34px; }

.hero-collage { position: relative; height: min(78vh, 720px); }
.hc { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.08); will-change: transform; }
.hc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hc:hover img { transform: scale(1.08); }
.hc-1 { width: 42%; aspect-ratio: 3/4; left: 4%; top: 6%; rotate: -6deg; animation: bob 7s ease-in-out infinite; }
.hc-2 { width: 38%; aspect-ratio: 3/4; right: 4%; top: 0; rotate: 5deg; animation: bob 8s ease-in-out infinite -2s; }
.hc-3 { width: 36%; aspect-ratio: 3/4; left: 18%; bottom: 0; rotate: 4deg; animation: bob 9s ease-in-out infinite -4s; }
.hc-4 { width: 34%; aspect-ratio: 3/4; right: 10%; bottom: 6%; rotate: -4deg; animation: bob 7.5s ease-in-out infinite -1s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
html.js .hc { opacity: 0; scale: .7; filter: blur(8px); transition: opacity 1s var(--ease), scale 1.2s var(--ease-back), filter 1s; }
html.js .ready .hc { opacity: 1; scale: 1; filter: none; }
html.js .ready .hc-2 { transition-delay: .12s; } html.js .ready .hc-3 { transition-delay: .24s; } html.js .ready .hc-4 { transition-delay: .36s; }

.petal { position: absolute; width: 26px; height: 40px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; filter: blur(.3px); opacity: .9; animation: float 10s ease-in-out infinite; }
.p1 { background: var(--c-magenta); left: 50%; top: 2%; rotate: 30deg; }
.p2 { background: var(--c-yellow); left: -2%; top: 52%; rotate: -40deg; animation-delay: -3s; width: 18px; height: 28px; }
.p3 { background: var(--c-green); right: 0; top: 50%; rotate: 70deg; animation-delay: -6s; }
.p4 { background: var(--c-cyan); left: 56%; bottom: -2%; rotate: -10deg; animation-delay: -2s; width: 16px; height: 24px; }
.p5 { background: var(--c-orange); left: 44%; top: 46%; rotate: 120deg; animation-delay: -5s; width: 14px; height: 22px; }
@keyframes float { 0%,100% { transform: translate(0,0) rotate(0); } 33% { transform: translate(10px,-18px) rotate(25deg); } 66% { transform: translate(-12px,10px) rotate(-15deg); } }

.scroll-hint { position: absolute; left: 0; bottom: 34px; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--pink-2); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- HOME: Intro mit Wort-für-Wort-Highlight ---------- */
.intro { padding: 12vh 0 14vh; max-width: 1100px; margin: 0 auto; text-align: center; }
.scrub-text { font: 400 clamp(26px, 2.4vw, 38px)/1.35 var(--f-hand); margin: 0 auto .8em; max-width: 30ch; }
.scrub-text .sw { color: rgba(255, 255, 255, .14); transition: color .4s; }
.scrub-text .sw.on { color: #fff; }
.scrub-text .sw.on.hl { color: var(--purple); }
.magic { font: 400 clamp(20px, 1.6vw, 26px)/1.3 var(--f-hand); color: var(--purple); }
.sparkle { display: inline-block; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.35) rotate(20deg); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; margin: 0 calc(-1 * var(--gutter)); padding: 26px 0; overflow: hidden; border-block: 1px solid var(--line); rotate: -2deg; background: rgba(21, 18, 23, .6); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { flex: none; font: 400 clamp(48px, 6vw, 96px)/1 var(--f-hand); color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .55); white-space: nowrap; padding-right: .3em; }
.marquee-track i { font-style: normal; color: var(--pink); -webkit-text-stroke: 0; display: inline-block; animation: spin 6s linear infinite; }

/* ---------- HOME: Welten-Liste mit Vorschaubild ---------- */
.worlds { padding: 16vh 0 10vh; max-width: 1180px; margin: 0 auto; }
.world-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.world { border-bottom: 1px solid var(--line); }
.world a { position: relative; display: grid; grid-template-columns: 90px 1fr 70px; align-items: center; gap: 20px; padding: 26px 10px; overflow: hidden; }
.world a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.world a:hover::before { transform: scaleY(1); }
.world-no { font: 400 22px/1 var(--f-hand); color: var(--c); }
.world-main { display: grid; gap: 4px; }
.world-name { font: 400 clamp(34px, 3.5vw, 56px)/1.05 var(--f-hand); color: #fff; transition: transform .6s var(--ease), color .4s; }
.world a:hover .world-name { transform: translateX(24px); color: var(--c); }
.world-tag { font: 400 clamp(18px, 1.4vw, 21px)/1.3 var(--f-hand); color: var(--purple); transition: transform .6s var(--ease) .04s; }
.world-desc { color: var(--muted); max-width: 46ch; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease), opacity .5s, transform .6s var(--ease) .08s; opacity: 0; overflow: hidden; }
.world a:hover .world-tag, .world a:hover .world-desc { transform: translateX(24px); }
.world a:hover .world-desc, .world a:focus-visible .world-desc { opacity: 1; }
.world-desc { max-height: 0; transition: max-height .6s var(--ease), opacity .5s, transform .6s var(--ease) .08s; }
.world a:hover .world-desc, .world a:focus-visible .world-desc { max-height: 6em; }
.world-arrow { justify-self: end; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .4s, border-color .4s, transform .6s var(--ease); }
.world-arrow svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.world a:hover .world-arrow { background: var(--c); border-color: var(--c); transform: rotate(-45deg); }
.world-preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 260px; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; pointer-events: none;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,.8); opacity: 0; scale: .6; transition: opacity .35s, scale .5s var(--ease-back);
}
.world-preview.show { opacity: 1; scale: 1; }
.world-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- HOME: Bento-Karten ---------- */
.cards-section { padding: 8vh 0 14vh; max-width: 1240px; margin: 0 auto; }
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, minmax(340px, 42vh)); gap: 22px; }
.card-1 { grid-row: span 2; }
.card { position: relative; border-radius: var(--radius); perspective: 900px; }
.card-link { position: relative; display: block; height: 100%; border-radius: inherit; overflow: hidden; transform-style: preserve-3d; transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .6s var(--ease), box-shadow .5s; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.card:hover .card-link { box-shadow: 0 40px 70px -25px rgba(0,0,0,.9), 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 0 50px -10px color-mix(in srgb, var(--c) 50%, transparent); transition: transform .15s linear, box-shadow .5s; }
.card-media { position: absolute; inset: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92) brightness(.92); }
.card:hover .card-media img { transform: scale(1.14); filter: saturate(1.1) brightness(1); }
.card-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,18,23,0) 30%, rgba(21,18,23,.75) 62%, rgba(21,18,23,.96)); }
.card-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 45%); opacity: 0; transition: opacity .4s; mix-blend-mode: overlay; }
.card:hover .card-glare { opacity: 1; }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 26px 28px 26px; transform: translateZ(40px); }
.card-title { position: relative; display: inline-block; margin: 0 0 10px; font: 400 36px/1.1 var(--f-hand); color: #fff; padding-bottom: 6px; }
.card-title .swoosh { height: 12px; bottom: -4px; }
.card-title .swoosh path { stroke: var(--c); }
.card-body p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-bottom: 16px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s, margin .5s; margin-bottom: 0; }
.card:hover .card-body p, .card-link:focus-visible .card-body p { max-height: 10em; opacity: 1; margin-bottom: 16px; }
.card-1 .card-body p { max-height: 10em; opacity: 1; margin-bottom: 16px; }
.card-1 .card-title { font-size: 52px; }
.card .btn-sm { box-shadow: none; }

/* ---------- HOME: Hanner Meng Krea-Lounge ---------- */
.behind { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; padding: 6vh 0 18vh; max-width: 1180px; margin: 0 auto; }
.behind-media { position: relative; }
.blob-mask { aspect-ratio: 1; overflow: hidden; border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; animation: blob 12s ease-in-out infinite; box-shadow: 0 0 0 10px rgba(176, 127, 189, .12), 0 40px 80px -30px #000; }
.blob-mask img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; }
@keyframes blob { 0%,100% { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; } 33% { border-radius: 42% 58% 38% 62% / 58% 40% 60% 42%; } 66% { border-radius: 50% 50% 62% 38% / 38% 62% 40% 60%; } }
.behind-doodle { position: absolute; width: 46%; right: -12%; top: -14%; overflow: visible; }
.behind-doodle path { fill: none; stroke: var(--c-yellow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2.2s var(--ease) .4s; }
.behind-media.in .behind-doodle path { stroke-dashoffset: 0; }
.behind-text p { font: 400 clamp(22px, 2vw, 30px)/1.4 var(--f-hand); color: #fff; margin-bottom: 1.2em; }

/* ---------- Unterseiten: Hero ---------- */
.page-hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 5vw; min-height: 78vh; padding: 120px 0 40px; max-width: 1240px; margin: 0 auto; }
.page-hero:not(:has(.page-hero-media)) { grid-template-columns: 1fr; min-height: 44vh; text-align: center; justify-items: center; padding-bottom: 20px; }
.page-sub { font: 400 clamp(24px, 2.2vw, 34px)/1.3 var(--f-hand); color: #fff; }
.page-hero-media { position: relative; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4/5; max-height: 68vh; justify-self: center; width: min(100%, 460px); box-shadow: 0 40px 80px -30px #000, 0 0 0 1px var(--line); }
.page-hero-media img { width: 100%; height: 115%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(21,18,23,.5)); }

/* ---------- Unterseiten: Textblöcke ---------- */
.block { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6vw; align-items: center; max-width: 1180px; margin: 0 auto; padding: 9vh 0; }
.block.flip { grid-template-columns: .9fr 1.1fr; }
.block.flip .block-text { order: 2; }
.block.no-media { grid-template-columns: 1fr; max-width: 820px; text-align: center; padding: 6vh 0; }
.block.no-media p { font-size: 20px; color: #fff; }
.block-title { font: 700 clamp(22px, 1.8vw, 28px)/1.3 var(--f-bold); color: #fff; margin: 0 0 .8em; position: relative; padding-left: 26px; }
.block-title::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--pink); rotate: -45deg; }
.block.no-media .block-title, .big-quote .block-title, .world-end .block-title { padding-left: 0; }
.block.no-media .block-title::before, .big-quote .block-title::before { display: none; }
.block-text p { color: var(--muted); }
.block-media .frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 80px -30px #000, 0 0 0 1px var(--line); }
.block-media .frame img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.block-media { position: relative; }
.block-media::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border: 2px dashed rgba(176, 127, 189, .35); border-radius: var(--radius); z-index: -1; transition: transform 1s var(--ease); }
.block-media:hover::before { transform: translate(-10px, -10px) rotate(-2deg); }
.heart { color: var(--c-magenta); display: inline-block; }
.heart.beat, .heart { animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

/* ---------- Galerien ---------- */
.gallery-section { max-width: 1240px; margin: 0 auto; padding: 9vh 0; text-align: center; }
.gallery-intro { max-width: 640px; margin: 0 auto 50px; color: var(--muted); }
.center { text-align: center; }

.masonry { columns: 3 280px; column-gap: 22px; text-align: left; }
.m-item { margin: 0 0 22px; break-inside: avoid; }
.zoom { position: relative; display: block; width: 100%; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.zoom img { width: 100%; transition: transform 1s var(--ease), filter .6s; }
.zoom::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 48%, transparent 66%); transform: translateX(-120%); transition: transform 1s var(--ease); pointer-events: none; }
.zoom:hover img { transform: scale(1.07); }
.zoom:hover::after { transform: translateX(120%); }
.masonry:hover .zoom:not(:hover) img { filter: brightness(.55) saturate(.6); }

.rail-wrap { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.rail { display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; padding: 20px var(--gutter) 30px; scroll-padding: 0 var(--gutter); scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; }
.rail.dragging .zoom { pointer-events: none; }
.rail-item { flex: 0 0 clamp(220px, 21vw, 300px); margin: 0; transition: transform .6s var(--ease); }
.rail-item .zoom img { aspect-ratio: 3/4; object-fit: cover; }
.rail-item:nth-child(even) { transform: translateY(26px); }
.rail.dragging .rail-item { transform: scale(.96); }
.rail.dragging .rail-item:nth-child(even) { transform: translateY(26px) scale(.96); }
.rail-ui { display: flex; align-items: center; gap: 18px; max-width: 520px; margin: 26px auto 0; padding: 0 20px; }
.rail-btn { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); transition: background .3s, border-color .3s; }
.rail-btn:hover { background: var(--pink); border-color: var(--pink); }
.rail-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rail-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(.1); transition: transform .2s; }

.season { border-radius: 40px; padding: 9vh 0 10vh; margin-top: 4vh; overflow: hidden; }
.season .swoosh-title { position: relative; z-index: 2; }
.season-halloween { background: radial-gradient(70% 60% at 50% 0%, rgba(243, 146, 0, .16), transparent 70%); }
.season-halloween .swoosh path { stroke: var(--c-orange); }
.season-halloween .zoom:hover { box-shadow: 0 0 0 2px var(--c-orange), 0 0 40px -6px var(--c-orange); }
.season-xmas { background: radial-gradient(70% 60% at 50% 0%, rgba(31, 181, 208, .14), transparent 70%); }
.season-xmas .swoosh path { stroke: var(--c-cyan); }
.season-xmas .zoom:hover { box-shadow: 0 0 0 2px #fff, 0 0 40px -6px #bfe9ff; }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.season .rail-wrap { z-index: 2; }

.ext-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font: 400 22px/1 var(--f-hand); color: var(--purple); border-bottom: 2px solid currentColor; padding-bottom: 4px; transition: color .3s, gap .4s var(--ease); }
.ext-link:hover { color: var(--pink-2); gap: 14px; }
.ext-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* Gravur: Glas-Schimmer */
.glass .page-hero-media::before, .glass .zoom::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); background-size: 250% 100%; animation: sheen 5s ease-in-out infinite; mix-blend-mode: overlay; }
@keyframes sheen { 0% { background-position: 150% 0; } 60%,100% { background-position: -100% 0; } }

/* Zendoodle: zeichnende Linie */
.doodle-path { position: absolute; left: var(--sidebar); right: 0; top: 0; width: calc(100% - var(--sidebar)); height: 100%; z-index: 0; pointer-events: none; opacity: .5; }
body[data-page="zendoodle"] main { position: relative; }
body[data-page="zendoodle"] .doodle-path { left: 0; width: 100%; }
.doodle-path path { fill: none; stroke: var(--c-green); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Iwwert mech ---------- */
.story { max-width: 980px; margin: 0 auto; padding: 2vh 0 8vh; text-align: center; }
.timeline { position: relative; margin-top: 50px; text-align: left; padding-left: 90px; }
.timeline-line { position: absolute; left: 30px; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.timeline-line span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--c-cyan), var(--c-violet), var(--c-magenta), var(--c-orange)); transform-origin: top; transform: scaleY(0); }
.chapter { position: relative; padding: 0 0 70px; }
.chapter-dot { position: absolute; left: -84px; top: -6px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--line); font: 400 19px/1 var(--f-hand); color: var(--muted); transition: background .5s, border-color .5s, color .5s, transform .6s var(--ease-back); }
.chapter.active .chapter-dot { background: var(--pink); border-color: var(--pink); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(201, 80, 180, .18); }
.chapter-date { display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 204, 0, .12); color: var(--c-yellow); font: 400 17px/1.4 var(--f-hand); }
.chapter p { color: var(--muted); }

.big-quote { max-width: 980px; margin: 0 auto; padding: 10vh 0; text-align: center; }
.quote { font-size: clamp(36px, 4.2vw, 64px); max-width: 22ch; margin: .5em auto .8em; position: relative; }
.quote::before { content: "“"; position: absolute; left: -.5em; top: -.35em; font-size: 2.4em; color: var(--pink); opacity: .35; line-height: 1; }
.big-quote p { color: var(--muted); max-width: 70ch; margin-inline: auto; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 1180px; margin: 0 auto; padding: 4vh 0 10vh; }
.duo-card { padding: 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease), border-color .4s; }
.duo-card:hover { border-color: rgba(176, 127, 189, .5); }
.duo-card p { color: var(--muted); }
.duo-card a strong { color: var(--pink-2); border-bottom: 1px solid currentColor; }
.thanks strong { color: #fff; }

.world-end { max-width: 820px; margin: 0 auto; padding: 6vh 0; text-align: center; }
.world-end p { font-size: 19px; color: var(--muted); }
.world-end .welcome { font: 400 clamp(28px, 2.6vw, 40px)/1.3 var(--f-hand); margin-top: 1em; }
.world-end .welcome strong { color: var(--purple); font-weight: 400; }

.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; padding: 4vh 0 14vh; }
.partner { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 34px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease), border-color .3s, background .3s; }
.partner:hover { border-color: var(--purple); background: var(--surface-2); }
.partner-emoji { font-size: 40px; transition: transform .6s var(--ease-back); }
.partner:hover .partner-emoji { transform: scale(1.3) rotate(-12deg); }
.partner strong { font-size: 19px; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 2vh 0 16vh; }
.contact-form { padding: 46px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.form-title { font: 400 34px/1.1 var(--f-hand); color: var(--purple); margin: 0 0 30px; }
.field { position: relative; margin-bottom: 26px; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25);
  color: #fff; font: 500 17px/1.5 var(--f-body); outline: none; resize: vertical; transition: border-color .3s, background .3s, box-shadow .3s;
}
.field label { position: absolute; left: 19px; top: 18px; color: var(--muted); font-size: 17px; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.field input:focus + label, .field textarea:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.74); color: var(--pink-2); }
.field input:focus, .field textarea:focus { border-color: var(--pink); background: rgba(0,0,0,.35); box-shadow: 0 0 0 4px rgba(201, 80, 180, .18), 0 0 40px -10px rgba(201, 80, 180, .6); }
.field.invalid input, .field.invalid textarea { border-color: #ff5d7a; animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.btn-send.sent .btn-icon svg { animation: fly 1s var(--ease) forwards; }

/* Versteckter Spam-Schutz (nur Bots füllen das Feld aus) */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Zustände: Fehler · wird gesendet · gesendet */
.form-status { margin: -4px 0 20px; font-size: 15.5px; line-height: 1.55; }
.form-status:empty { display: none; }
.form-status.err { color: #ff9db0; }
.form-status a { color: #fff; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.form-tech { display: inline-block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .55); overflow-wrap: anywhere; }
.contact-form.is-sending .btn-send { opacity: .8; cursor: progress; }
.contact-form.is-sending .btn-send .btn-icon svg { animation: send-wiggle .9s ease-in-out infinite; }
@keyframes send-wiggle { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(3px, -3px) rotate(8deg); } }
.contact-form.is-sent .form-fields { display: none; }
.form-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 6px 18px; outline: none; }
.form-done[hidden] { display: none; }
.form-done .form-title { margin: 14px 0 4px; }
.form-done p { color: var(--muted); max-width: 34ch; margin: 0 0 22px; }
.done-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--c-violet)); box-shadow: 0 0 0 10px rgba(201, 80, 180, .16), 0 20px 40px -12px rgba(201, 80, 180, .7); animation: done-pop .7s var(--ease-back) both; }
.done-icon svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.done-icon svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: done-check .6s var(--ease) .35s forwards; }
@keyframes done-pop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes done-check { to { stroke-dashoffset: 0; } }
@keyframes fly { 40% { transform: translate(-4px, 4px); } 100% { transform: translate(60px, -60px) rotate(20deg); opacity: 0; } }
.contact-info { display: flex; flex-direction: column; gap: 18px; padding-top: 46px; }
.info-card { display: flex; align-items: center; gap: 18px; padding: 22px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease), border-color .3s; }
.info-card:hover { border-color: var(--purple); }
.info-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--c-violet)); }
.info-icon.wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.info-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.info-icon.wa svg { fill: #fff; stroke: none; }
.info-text { display: grid; flex: 1; min-width: 0; font-weight: 600; }
.info-text small { font: 400 16px/1.2 var(--f-hand); color: var(--purple); }
.info-text a, .info-text span { overflow-wrap: anywhere; }
.copy { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s; }
.copy:hover { background: var(--pink); }
.copy svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-social { display: flex; gap: 12px; margin-top: 10px; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 0 0 14vh; }
.legal h2 { font: 400 32px/1.2 var(--f-hand); color: var(--purple); }
.legal h3 { font: 700 20px/1.3 var(--f-bold); margin: 1.8em 0 .5em; }
.legal p { color: var(--muted); }
.legal a { color: var(--pink-2); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; margin-left: var(--sidebar); border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 48px; max-width: 1180px; margin: 0 auto; padding: 64px clamp(24px, 5vw, 90px) 52px; }
.footer-logo { display: inline-block; width: 120px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social .social { width: 42px; height: 42px; border-radius: 12px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col h4 { margin: 0 0 8px; font: 700 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #8d8393; }
.footer-col a { color: var(--muted); font-size: 16px; line-height: 1.4; transition: color .25s; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 22px clamp(24px, 5vw, 90px) 30px; border-top: 1px solid var(--line); font-size: 14.5px; color: #8d8393; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(12, 10, 14, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .45s; }
.lightbox.open .lb-backdrop { opacity: 1; }
.lb-stage { position: relative; margin: 0 0 60px; z-index: 1; }
.lb-stage img { max-width: 80vw; max-height: 72vh; width: auto; border-radius: 16px; box-shadow: 0 40px 100px -20px #000; transition: opacity .3s, transform .45s var(--ease); }
.lb-stage img.swap-l { opacity: 0; transform: translateX(-40px) scale(.97); }
.lb-stage img.swap-r { opacity: 0; transform: translateX(40px) scale(.97); }
.lb-btn { position: absolute; z-index: 2; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--line); opacity: 0; transition: opacity .4s .15s, background .3s; }
.lightbox.open .lb-btn { opacity: 1; }
.lb-btn:hover { background: var(--pink); }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 4vw; top: 50%; translate: 0 -50%; }
.lb-next { right: 4vw; top: 50%; translate: 0 -50%; }
.lb-close { right: 30px; top: 26px; }
.lb-count { position: absolute; z-index: 2; left: 34px; top: 34px; font: 400 22px/1 var(--f-hand); color: var(--muted); }
.lb-count .lb-i { color: #fff; font-size: 30px; }
.lb-thumbs { position: absolute; z-index: 2; bottom: 22px; left: 50%; translate: -50% 0; display: flex; gap: 8px; max-width: 90vw; overflow-x: auto; padding: 6px; scrollbar-width: none; }
.lb-thumbs button { flex: none; width: 52px; height: 64px; border-radius: 8px; overflow: hidden; opacity: .4; transition: opacity .3s, transform .3s var(--ease); outline-offset: 2px; }
.lb-thumbs button.active { opacity: 1; transform: translateY(-4px); box-shadow: 0 0 0 2px var(--pink); }
.lb-thumbs button:hover { opacity: .9; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-fly { position: fixed; z-index: 9600; border-radius: 16px; object-fit: cover; pointer-events: none; transition: all .55s var(--ease); }

/* ---------- Nach-oben-Button & Toast ---------- */
.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 18, 23, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .5s var(--ease-back), background .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--pink); }
.to-top > svg:last-child { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.to-top .ring circle { fill: none; stroke: var(--pink-2); stroke-width: 2.5; stroke-dasharray: 132; stroke-dashoffset: var(--off, 132); stroke-linecap: round; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 9700; translate: -50% 0; padding: 14px 24px; border-radius: 999px; background: var(--pink); color: #fff; font: 400 20px/1 var(--f-hand); box-shadow: 0 20px 40px -10px rgba(201, 80, 180, .7); opacity: 0; transform: translateY(30px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease-back); }
.toast.show { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE: Laptop klein · Tablet · Handy
   ≥1101px  Desktop mit Seitenleiste
   ≤1100px  Tablet: Kopfleiste + Vollbild-Menü
   ≤767px   Handy
   ≤380px   kleine Handys
   ========================================================= */

/* ---------- Kleinere Laptops (Seitenleiste bleibt) ---------- */
@media (min-width: 1101px) and (max-width: 1280px) {
  :root { --sidebar: 190px; --gutter: 40px; }
  .nav a { font-size: 20px; padding-left: 20px; }
  .hero { gap: 30px; }
  .bento { grid-template-rows: repeat(2, minmax(320px, 40vh)); gap: 18px; }
  .card-1 .card-title { font-size: 44px; }
  .footer-inner { gap: 32px; grid-template-columns: 1.3fr 1fr 1fr 1.35fr; }
}

/* ---------- Große Tablets quer (Seitenleiste, aber Touch): Karten mit Text unter dem Bild ---------- */
@media (hover: none) and (min-width: 1101px) {
  .bento { grid-template-rows: none; grid-auto-rows: auto; }
  .card-link { display: flex; flex-direction: column; }
  .card-link::after { display: none; }
  .card-media { position: relative; inset: auto; aspect-ratio: 4 / 3; overflow: hidden; }
  .card-1 .card-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .card-body { position: relative; transform: none; padding: 20px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
  .card-1 .card-body { flex: none; }
  .card-title, .card-1 .card-title { font-size: 32px; }
  .card-body .btn { margin-top: auto; }
}

/* ---------- Tablet & Handy: Kopfleiste und Menü ---------- */
@media (max-width: 1100px) {
  :root { --sidebar: 0px; --head: 72px; --gutter: clamp(18px, 5vw, 44px); }
  .sidebar { display: none; }

  .topbar {
    top: 0; left: 0; right: 0; gap: 8px;
    height: calc(var(--head) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) calc(var(--gutter) - 2px) 0;
    transition: transform .45s var(--ease), background-color .3s, box-shadow .3s;
  }
  .topbar.is-solid { background: rgba(21, 18, 23, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
  .topbar.is-hidden { transform: translateY(-105%); }
  body.menu-open .topbar { transform: none; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mlogo { display: block; width: 100px; margin-right: auto; }
  .mlogo img { width: 100%; }
  .topbar .social { display: none; }
  .lang-switch { margin-left: 0; height: 46px; }
  .lang-switch a, .lang-switch span { min-width: 42px; height: 38px; }

  .burger { display: grid; place-content: center; gap: 5px; flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(21, 18, 23, .6); border: 1px solid var(--line); }
  .burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease), opacity .3s; }
  body.menu-open .burger { background: var(--pink); border-color: var(--pink); }
  body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mmenu {
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    position: fixed; inset: 0; z-index: 54; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--head) + env(safe-area-inset-top) + 18px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: radial-gradient(120% 70% at 100% 0%, #3a2442 0%, rgba(21, 18, 23, .98) 62%), var(--bg);
    clip-path: circle(0% at calc(100% - var(--gutter) - 21px) calc(env(safe-area-inset-top) + 36px));
    visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s linear .7s;
  }
  body.menu-open .mmenu { clip-path: circle(150% at calc(100% - var(--gutter) - 21px) calc(env(safe-area-inset-top) + 36px)); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .mmenu-nav { display: flex; flex-direction: column; }
  .mmenu-nav a {
    display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line);
    font: 400 clamp(30px, 8vw, 46px)/1.15 var(--f-hand); color: #fff;
    opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease), color .25s;
    transition-delay: calc(var(--i) * 45ms + .15s);
  }
  body.menu-open .mmenu-nav a { opacity: 1; transform: none; }
  .mmenu-nav a.active { color: var(--purple); }
  .mm-no { flex: none; width: 28px; font-size: 16px; color: var(--pink-2); }
  .mmenu-foot { display: grid; gap: 16px; opacity: 0; transition: opacity .5s .45s; }
  body.menu-open .mmenu-foot { opacity: 1; }
  .mm-heading { margin: 0; font: 700 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #8d8393; }
  /* Sprachen im Vollbild-Menü: nur zwei Buchstaben, ohne Flagge */
  .mm-langs { display: flex; flex-wrap: wrap; gap: 8px; }
  .mm-langs a { display: inline-grid; place-items: center; min-width: 58px; min-height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 700 16px/1 var(--f-body); letter-spacing: .06em; color: var(--muted); transition: background .25s, color .25s, border-color .25s; }
  .mm-langs a.current { background: rgba(201, 80, 180, .28); border-color: rgba(224, 108, 203, .55); color: #fff; }
  .mm-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .mm-mail { margin-left: 4px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }

  /* Startseite */
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 44px; padding: calc(var(--head) + 48px) 0 40px; }
  .hero-collage { height: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
  .hc { position: relative; inset: auto; width: auto; }
  .hc-2, .hc-4 { margin-top: 36px; }
  .petal { display: none; }
  .scroll-hint { display: none; }
  .intro { padding: 8vh 0 10vh; }
  .worlds { padding: 10vh 0 6vh; }
  .world a { grid-template-columns: 84px 1fr 50px; gap: 18px; padding: 22px 0; }
  .world-no { display: none; }
  .world-thumb { display: block; width: 84px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
  .world-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .world-name { font-size: clamp(32px, 6.5vw, 56px); }
  .world-tag { font-size: 20px; }
  .world-desc { max-height: none; opacity: 1; font-size: 15.5px; line-height: 1.6; margin-top: 4px; }
  .world-arrow { width: 50px; height: 50px; }
  .world-preview { display: none; }
  .cards-section { padding: 4vh 0 10vh; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 18px; }
  .card-1 { grid-row: auto; grid-column: 1 / -1; }
  .card-link { display: flex; flex-direction: column; }
  .card-link::after { display: none; }
  .card-media { position: relative; inset: auto; aspect-ratio: 4 / 3; overflow: hidden; }
  .card-1 .card-media { aspect-ratio: 16 / 9; }
  .card-body { position: relative; transform: none; padding: 20px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
  .card-body p, .card-1 .card-body p { max-height: none; opacity: 1; margin-bottom: 16px; }
  .card-body .btn { margin-top: auto; }
  .card-title, .card-1 .card-title { font-size: 34px; }
  .behind { grid-template-columns: 1fr; gap: 36px; padding: 4vh 0 12vh; }
  .behind-media { width: min(100%, 420px); margin: 0 auto; }
  .behind-doodle { right: -4%; }

  /* Unterseiten */
  .page-hero { grid-template-columns: 1fr; gap: 36px; min-height: auto; padding: calc(var(--head) + 44px) 0 24px; text-align: center; justify-items: center; }
  .page-hero:not(:has(.page-hero-media)) { min-height: auto; padding-bottom: 8px; }
  .page-hero-media { width: min(100%, 420px); max-height: none; }
  .block, .block.flip { grid-template-columns: 1fr; gap: 32px; padding: 6vh 0; }
  .block.flip .block-text { order: 0; }
  .block-media { width: min(100%, 520px); margin: 0 auto; }
  .block-media::before { inset: 6% -3% -3% 6%; }
  .block.no-media { padding: 4vh 0; }
  .gallery-section { padding: 7vh 0; }
  .masonry { columns: 3 200px; column-gap: 16px; }
  .m-item { margin-bottom: 16px; }
  .rail-item { flex-basis: clamp(200px, 36vw, 300px); }
  .season { border-radius: 30px; padding: 7vh 0 8vh; }
  .story { padding-top: 0; }
  .timeline { padding-left: 70px; }
  .timeline-line { left: 23px; }
  .chapter-dot { left: -70px; width: 44px; height: 44px; font-size: 17px; }
  .duo { grid-template-columns: 1fr; }
  .partners { gap: 16px; }
  .contact { grid-template-columns: 1fr; gap: 28px; padding-bottom: 12vh; }
  .contact-info { padding-top: 0; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 28px; padding: 48px var(--gutter) 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }

  /* Lightbox */
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .lb-close { right: calc(14px + env(safe-area-inset-right)); top: calc(14px + env(safe-area-inset-top)); }
  .lb-count { left: 20px; top: calc(28px + env(safe-area-inset-top)); }

  .to-top { right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
}

/* ---------- Handy ---------- */
@media (max-width: 767px) {
  :root { --head: 64px; --radius: 18px; }
  body { font-size: 16px; line-height: 1.7; }
  .mlogo { width: 86px; }
  .burger { width: 44px; height: 44px; }

  /* Sprachwahl am Handy: etwas kompakter */
  .lang-switch a, .lang-switch span { min-width: 40px; padding: 0 6px; font-size: 14px; letter-spacing: .05em; }

  .swoosh-title { font-size: clamp(28px, 8vw, 40px); }
  h1.swoosh-title { font-size: clamp(36px, 10.5vw, 54px); }
  h1.hero-title { font-size: clamp(36px, 11vw, 56px); }
  .hero { gap: 36px; padding-top: calc(var(--head) + 36px); }
  .hero-lead { font-size: clamp(21px, 5.8vw, 26px); }
  .hero-sub { font-size: 16px; }
  .hero-cta { flex-wrap: wrap; gap: 18px 24px; margin-top: 26px; }
  .hero-collage { grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 4px; }
  .hc-2, .hc-4 { margin-top: 28px; }
  .hc-3 { margin-top: -14px; }
  .btn { font-size: 19px; padding: 11px 12px 11px 22px; }
  .link-underline { font-size: 19px; }

  .scrub-text { font-size: clamp(26px, 7.4vw, 34px); }
  .magic { font-size: 22px; }
  .marquee { padding: 18px 0; }
  .marquee-track span { font-size: clamp(38px, 11vw, 56px); }
  .world a { grid-template-columns: 64px 1fr 40px; gap: 14px; padding: 18px 0; }
  .world-thumb { width: 64px; border-radius: 12px; }
  .world-name { font-size: clamp(28px, 8.4vw, 38px); }
  .world-tag { font-size: 18px; }
  .world-desc { font-size: 14.5px; }
  .world-arrow { width: 40px; height: 40px; }
  .world-arrow svg { width: 18px; height: 18px; }
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .card-1 .card-media { aspect-ratio: 4 / 3; }
  .card-title, .card-1 .card-title { font-size: 30px; }
  .behind-text p { font-size: 21px; }

  .page-hero { gap: 28px; padding-top: calc(var(--head) + 34px); }
  .page-sub { font-size: clamp(20px, 5.6vw, 26px); }
  .page-hero-media { width: min(100%, 340px); border-radius: 160px 160px var(--radius) var(--radius); }
  .block, .block.flip { gap: 26px; padding: 5vh 0; }
  .block.no-media p { font-size: 17px; }
  .block-title { font-size: 20px; padding-left: 22px; }
  .gallery-intro { margin-bottom: 30px; }
  .masonry { columns: 2; column-gap: 12px; }
  .m-item { margin-bottom: 12px; }
  .zoom { border-radius: 14px; }
  .rail { gap: 14px; padding-top: 14px; padding-bottom: 22px; }
  .rail-item { flex-basis: 68vw; max-width: 300px; }
  .rail-item:nth-child(even) { transform: translateY(16px); }
  .rail-ui { margin-top: 18px; gap: 14px; }
  .rail-btn { width: 46px; height: 46px; }
  .season { border-radius: 24px; margin-left: calc(-1 * var(--gutter) / 2); margin-right: calc(-1 * var(--gutter) / 2); padding-left: calc(var(--gutter) / 2); padding-right: calc(var(--gutter) / 2); }
  .ext-link { font-size: 20px; }

  .timeline { padding-left: 54px; margin-top: 30px; }
  .timeline-line { left: 17px; }
  .chapter { padding-bottom: 48px; }
  .chapter-dot { left: -55px; width: 38px; height: 38px; font-size: 15px; }
  .big-quote { padding: 7vh 0; }
  .quote { font-size: clamp(28px, 8vw, 40px); }
  .quote::before { left: -.15em; top: -.55em; font-size: 2em; }
  .duo-card { padding: 26px 22px; }
  .world-end p { font-size: 17px; }
  .partners { grid-template-columns: 1fr; }
  .partner { padding: 24px 18px; }

  .contact-form { padding: 26px 20px; border-radius: 22px; }
  .form-title { font-size: 30px; margin-bottom: 22px; }
  .info-card { padding: 16px; gap: 14px; }
  .info-icon { width: 46px; height: 46px; border-radius: 14px; }
  .legal { padding-bottom: 10vh; }
  .legal h3 { font-size: 18px; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .footer-col { gap: 10px; }

  .lb-stage { margin-bottom: 70px; }
  .lb-stage img { max-width: calc(100vw - 24px); max-height: 64vh; max-height: 64svh; border-radius: 12px; }
  .lb-btn { width: 46px; height: 46px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); translate: none; }
  .lb-prev { left: calc(50% - 58px); } .lb-next { right: calc(50% - 58px); }
  .lb-thumbs { bottom: calc(14px + env(safe-area-inset-bottom)); gap: 6px; }
  .lb-thumbs button { width: 40px; height: 50px; }

  .loader-inner { width: 170px; }
  .loader-ring { width: 240px; height: 240px; }
  .loader-count { right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); font-size: 44px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; white-space: normal; line-height: 1.2; }
}

/* ---------- Kleine Handys ---------- */
@media (max-width: 380px) {
  .mlogo { width: 70px; }
  .topbar { gap: 6px; }
  .lang-switch a, .lang-switch span { min-width: 36px; padding: 0 4px; font-size: 13px; }
  .burger { width: 42px; height: 42px; }
  h1.hero-title { font-size: 34px; }
  .hero-collage { gap: 10px; }
  .world a { grid-template-columns: 54px 1fr 36px; gap: 12px; }
  .world-thumb { width: 54px; }
  .masonry { column-gap: 10px; }
}

/* ---------- Querformat-Handys (wenig Höhe) ---------- */
@media (max-width: 1100px) and (max-height: 500px) and (orientation: landscape) {
  :root { --head: 60px; }
  .hero-collage { grid-template-columns: repeat(4, 1fr); max-width: 640px; }
  .lb-stage img { max-height: 70vh; }
  .lb-thumbs { display: none; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; translate: 0 -50%; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .lb-stage { margin-bottom: 0; }
  .mmenu-nav a { font-size: 28px; padding: 6px 0; }
}

/* ---------- Touch-Geräte (kein Maus-Hover) ---------- */
@media (hover: none) {
  .card-body p { max-height: none; opacity: 1; margin-bottom: 16px; }
  .world-desc { max-height: none; opacity: 1; }
  .world a:hover .world-name, .world a:hover .world-tag, .world a:hover .world-desc { transform: none; }
  .world a:hover .world-arrow { transform: none; }
  .zoom:hover img, .hc:hover img { transform: none; }
  .zoom:hover::after { transform: translateX(-120%); }
  .masonry:hover .zoom:not(:hover) img { filter: none; }
  .card:hover .card-media img { transform: scale(1.04); }
  .rail { scroll-snap-type: x mandatory; cursor: auto; }
  .rail-item { scroll-snap-align: start; }
  .grain { animation: none; }
  .lightbox { touch-action: pan-y; }
  .link-underline { padding: 12px 0; }
  .info-text a { display: inline-block; padding: 8px 0; }
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js .reveal, html.js .hc, .split .ch { opacity: 1 !important; transform: none !important; filter: none !important; scale: 1 !important; }
  .swoosh path { stroke-dashoffset: 0 !important; }
  .scrub-text .sw { color: #fff !important; }
  .loader { display: none; }
}
