/* ---------- Basis, Nav, Cursor, Footer ---------- */
:root {
  --ink: var(--wp--preset--color--ink); --paper: var(--wp--preset--color--paper); --lime: var(--wp--preset--color--lime);
  --violet: var(--wp--preset--color--violet); --pink: var(--wp--preset--color--pink); --cyan: var(--wp--preset--color--cyan);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: min(1320px, 100% - 2 * clamp(1rem, 4vw, 3rem));
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: var(--ink); }
a { color: inherit; }
.lab-main > * { margin-block: 0; }
.lab-wrap { width: var(--wrap); margin-inline: auto; }

/* Körnung über allem, gibt Tiefe */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .07; mix-blend-mode: overlay;
  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");
}

/* Glas-Navigation */
.lab-nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0;
  width: min(1100px, calc(100% - 28px)); box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgb(20 20 28 / .45); border: 1px solid rgb(255 255 255 / .12);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: var(--paper); font-size: .95rem;
}
.lab-logo { font-weight: 800; text-decoration: none; letter-spacing: -.02em; font-size: 1.15rem; margin: 0; white-space: nowrap; }
.lab-nav-links a {
  text-decoration: none; padding: .5rem .9rem; border-radius: 999px; opacity: .75;
  transition: background .3s, opacity .3s;
}
.lab-nav-links a:hover, .lab-nav-links a[aria-current] { opacity: 1; background: rgb(255 255 255 / .1); }
.lab-nav-cta {
  text-decoration: none; background: var(--lime); color: var(--ink); font-weight: 700;
  padding: .6rem 1.1rem; border-radius: 999px;
}
@media (max-width: 720px) { .lab-nav-cta { display: none; } }

/* Spotlight-Cursor */
.lab-cursor {
  position: fixed; z-index: 99; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
  opacity: 0;
}
.lab-cursor.is-on { opacity: 1; }
.lab-cursor.is-big { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
@media (hover: none) { .lab-cursor { display: none; } }

/* Buttons (Block-Styles) */
.wp-block-button .wp-block-button__link { transition: transform .3s var(--ease-out), box-shadow .3s, background .3s; }
.wp-block-button.is-style-glow .wp-block-button__link {
  background: var(--lime); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 1rem 1.8rem;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 60%, transparent), 0 10px 40px -10px color-mix(in srgb, var(--lime) 70%, transparent);
}
.wp-block-button.is-style-glow .wp-block-button__link:hover { box-shadow: 0 0 0 8px color-mix(in srgb, var(--lime) 15%, transparent), 0 10px 60px -5px color-mix(in srgb, var(--lime) 90%, transparent); }
.wp-block-button.is-style-outline .wp-block-button__link { border-radius: 999px; padding: 1rem 1.8rem; border: 1px solid rgb(255 255 255 / .3); }
.wp-block-buttons { gap: .8rem; }

/* Footer */
.lab-footer { background: var(--ink); color: var(--paper); padding: 6rem 0 2rem; overflow: hidden; }
.lab-footer-giant {
  margin: 0; text-align: center; font-weight: 800; letter-spacing: -.06em; line-height: .8;
  font-size: clamp(5rem, 24vw, 22rem); color: transparent;
  -webkit-text-stroke: 1px rgb(244 239 228 / .35);
  transition: color .6s;
}
.lab-footer-giant:hover { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
.lab-footer-row {
  width: var(--wrap); margin: 3.5rem auto 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; opacity: .55; font-family: var(--wp--preset--font-family--mono);
}

/* Reveal beim Reinscrollen (JS setzt .is-in) */
.reveal { opacity: 0; translate: 0 40px; transition: opacity 1s var(--ease-out), translate 1s var(--ease-out); }
.reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}
