/* =============================================================
   THE GRAND JAM e.V. — Landing
   Self-contained design system (no external fonts / CDNs — DSGVO-safe)
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* palette — midnight stage + warm spotlight */
  --bg:        #0B0A0F;
  --bg-2:      #100E17;
  --surface:   #16131F;
  --surface-2: #1E1A2B;
  --ink:       #F5F2EC;
  --ink-soft:  #BDB6CA;
  --ink-dim:   #9A93A8;
  --amber:     #FE7C20;   /* remapped to brand orange (warm accent) */
  --amber-2:   #FF934A;
  --magenta:   #F0397E;   /* kept ONLY for semantic error/attention states */
  --violet:    #60B3D6;   /* remapped to brand blue */
  --cyan:      #60B3D6;   /* remapped to brand blue */
  --orange:      #FE7C20;  /* brand accent — warm */
  --orange-lift: #FF934A;
  --blue:        #60B3D6;  /* brand accent — cool */
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.16);

  --stage:      linear-gradient(110deg, var(--orange) 0%, var(--orange) 38%, var(--blue) 62%, var(--blue) 100%);
  --stage-warm: linear-gradient(115deg, var(--orange) 0%, var(--orange) 55%, var(--blue) 80%, var(--blue) 100%);

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step--1: clamp(.82rem, .78rem + .2vw, .9rem);
  --step-0:  clamp(1rem, .95rem + .3vw, 1.15rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4:  clamp(2.8rem, 1.9rem + 4.5vw, 6rem);
  --step-5:  clamp(3.6rem, 2rem + 8vw, 9rem);

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 { line-height: 1.02; margin: 0; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }

::selection { background: var(--amber); color: #17130a; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* skip-to-content link (visible on keyboard focus) */
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  transform: translateY(-180%);
  background: var(--amber); color: #17130a; font-weight: 700;
  padding: .7em 1.1em; border-radius: 10px;
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 9rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--amber);
  display: inline-block; border-radius: 2px;
}
.lead { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.muted { color: var(--ink-dim); }

/* gradient text */
.grad { background: var(--stage); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-warm { background: var(--stage-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .95em; --pad-x: 1.6em;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px; border: 1px solid transparent;
  font-weight: 700; font-size: var(--step-0); letter-spacing: -.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: var(--orange); color: #17130a;
  box-shadow: 0 10px 30px -10px rgba(254,124,32,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(254,124,32,.72); background: var(--orange-lift); }
.btn-ghost { border-color: rgba(96,179,214,.45); color: #8CCBE6; background: rgba(96,179,214,.05); }
.btn-ghost:hover { border-color: var(--blue); color: #AEDDF0; transform: translateY(-2px); background: rgba(96,179,214,.12); box-shadow: 0 12px 34px -14px rgba(96,179,214,.5); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11,10,15,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; letter-spacing: -.01em; }
.brand .eq { width: 22px; height: 22px; }
.brand .wm { font-weight: 800; font-size: 1.02rem; letter-spacing: .02em; }
.brand .wm b { color: var(--amber); }
.brand .ev {
  font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  border: 1px solid var(--line-2); padding: .15em .5em; border-radius: 6px;
  color: var(--ink-soft); text-transform: uppercase;
}
.nav-cta { display: inline-flex; gap: .6rem; align-items: center; }
.nav-link { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); transition: color .25s; }
.nav-link:hover { color: var(--ink); }
@media (max-width: 620px) { .nav-link.hide-sm { display: none; } .brand .ev { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg::before { /* base vignette */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(254,124,32,.30), transparent 55%),
    radial-gradient(100% 80% at 85% 20%, rgba(96,179,214,.28), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(96,179,214,.16), transparent 55%),
    var(--bg);
}
/* very faded jam photo behind the front-page hero only (not the splash/404 pages) */
.hero .hero-bg::before {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(254,124,32,.30), transparent 55%),
    radial-gradient(100% 80% at 85% 20%, rgba(96,179,214,.28), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(96,179,214,.16), transparent 55%),
    linear-gradient(rgba(11,10,15,.86), rgba(11,10,15,.93)),
    url("/assets/img/hero.jpg") center center / cover no-repeat,
    var(--bg);
}
/* spotlight beams */
.beams { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.beam {
  position: absolute; top: -30%; width: 42vw; height: 160%;
  background: linear-gradient(to bottom, rgba(254,124,32,.16), transparent 70%);
  filter: blur(30px); transform-origin: top center; mix-blend-mode: screen;
  animation: sway 9s ease-in-out infinite alternate;
}
.beam.b1 { left: 8%;  transform: rotate(14deg); }
.beam.b2 { left: 40%; transform: rotate(-8deg); background: linear-gradient(to bottom, rgba(96,179,214,.16), transparent 70%); animation-delay: -3s; }
.beam.b3 { left: 72%; transform: rotate(9deg); background: linear-gradient(to bottom, rgba(96,179,214,.18), transparent 70%); animation-delay: -6s; }
@keyframes sway { from { transform: rotate(6deg) translateX(-1%); } to { transform: rotate(-6deg) translateX(2%); } }

.hero-inner { position: relative; z-index: 1; padding-block: clamp(90px, 14vh, 120px) clamp(60px, 10vh, 90px); width: 100%; }
.hero h1 {
  font-size: var(--step-5); font-weight: 900; letter-spacing: -.035em;
  margin: .35em 0 .3em; line-height: .92;
}
.hero h1 .line { display: block; }
.hero .sub { max-width: 44ch; margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--ink-dim); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase;
}
.scroll-cue .dot { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-cue .dot::after { content:""; position:absolute; left:50%; top:7px; width:3px; height:7px; border-radius:3px; background: var(--amber); transform: translateX(-50%); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0%{opacity:0; transform:translate(-50%,-4px);} 40%{opacity:1;} 100%{opacity:0; transform:translate(-50%,10px);} }
@media (max-height: 640px) { .scroll-cue { display: none; } }

/* live equalizer bars (hero badge) */
.equalizer { display: inline-flex; align-items: flex-end; gap: 3px; height: 1em; }
.equalizer span { width: 3px; background: currentColor; border-radius: 3px; animation: eq 1.1s ease-in-out infinite; }
.equalizer span:nth-child(1){ height:40%; animation-delay:-.9s;}
.equalizer span:nth-child(2){ height:80%; animation-delay:-.6s;}
.equalizer span:nth-child(3){ height:55%; animation-delay:-.3s;}
.equalizer span:nth-child(4){ height:95%; animation-delay:-.1s;}
.equalizer span:nth-child(5){ height:65%;}
@keyframes eq { 0%,100%{ transform: scaleY(.35);} 50%{ transform: scaleY(1);} }

/* marquee ticker */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker-track { display: flex; gap: 3rem; width: max-content; padding-block: 1rem; animation: marquee 30s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); font-size: var(--step--1); white-space: nowrap; }
.ticker-item .star { color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .beam, .equalizer span, .scroll-cue .dot::after, .spinner { animation: none !important; }
}

/* ---------- Manifesto ---------- */
.manifesto { text-align: left; isolation: isolate; }
.manifesto::before {   /* carry the hero's stage light faintly into the lower page */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(96,179,214,.10), transparent 60%),
    radial-gradient(70% 50% at 85% 100%, rgba(254,124,32,.07), transparent 60%);
}
.manifesto .big {
  font-size: var(--step-3); font-weight: 800; letter-spacing: -.025em; line-height: 1.14;
  max-width: 20ch;
}
.manifesto .big em { font-style: normal; }
.manifesto p.lead { max-width: 52ch; margin-top: 1.6rem; }

/* ---------- Pillars ---------- */
.pillars-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(12, 1fr); margin-top: 3rem; }
.pillar {
  grid-column: span 6;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 0 rgba(0,0,0,.4);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.pillar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--stage); opacity: .14;   /* faint coloured hairline at rest */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.8); }
.pillar:hover::after { opacity: .9; }
.pillar .idx {
  position: absolute; top: .5rem; right: 1.1rem; margin: 0;
  font-size: var(--step-4); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.10);
  pointer-events: none;
  transition: -webkit-text-stroke-color .5s var(--ease);
}
.pillar:hover .idx { -webkit-text-stroke-color: rgba(254,124,32,.38); }
.pillar .icon {
  width: 54px; height: 54px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: rgba(254,124,32,.10); border: 1px solid var(--line-2); color: var(--amber);
  margin: 1rem 0 1.3rem;
}
.pillar .icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.pillar p { color: var(--ink-soft); font-size: var(--step-0); }
@media (max-width: 760px) { .pillar { grid-column: 1 / -1; } }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; }
.nl-card {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 100% 0%, rgba(96,179,214,.22), transparent 55%),
              radial-gradient(120% 130% at 0% 100%, rgba(254,124,32,.20), transparent 55%),
              var(--surface);
  border: 1px solid var(--line-2); border-radius: clamp(20px, 3vw, 34px);
  padding: clamp(2rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.nl-copy h2 { font-size: var(--step-3); letter-spacing: -.03em; }
.nl-copy .lead { margin-top: 1.1rem; max-width: 40ch; }
.nl-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--step--1); font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line-2); border-radius: 100px; padding: .5em 1em;
  background: rgba(255,255,255,.02);
}
.chip svg { width: 1.05em; height: 1.05em; color: var(--cyan); }

/* form */
.nl-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--amber); }
.input {
  width: 100%; padding: 1em 1.1em; border-radius: var(--radius-sm);
  background: rgba(0,0,0,.28); border: 1px solid var(--line-2); color: var(--ink);
  font: inherit; transition: border-color .25s, background .25s, box-shadow .25s;
}
.input::placeholder { color: var(--ink-dim); }
.input:focus { outline: none; border-color: var(--amber); background: rgba(0,0,0,.4); box-shadow: 0 0 0 4px rgba(254,124,32,.14); }
.input.err { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(240,57,126,.16); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.consent input { margin-top: .2em; width: 18px; height: 18px; accent-color: var(--amber); flex: none; }
.consent a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: var(--step--1); color: var(--ink-dim); }
.form-msg { font-size: var(--step-0); border-radius: 14px; padding: 1em 1.15em; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(96,179,214,.10); border: 1px solid rgba(96,179,214,.4); color: #cbe9f7; }
.form-msg.bad { background: rgba(240,57,126,.10); border: 1px solid rgba(240,57,126,.4); color: #ffc6da; }

.spinner { width: 1.05em; height: 1.05em; border: 2.5px solid rgba(23,19,10,.35); border-top-color: #17130a; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { pointer-events: none; opacity: .85; }

@media (max-width: 860px) { .nl-card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) calc(clamp(3rem, 6vw, 4.5rem) + env(safe-area-inset-bottom, 0px)); background: var(--bg-2); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { max-width: 34ch; }
.footer-brand .wm { font-size: 1.3rem; font-weight: 800; }
.footer-brand .wm b { color: var(--amber); }
.footer-brand p { color: var(--ink-dim); margin-top: .8rem; font-size: var(--step--1); }
.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-col h3 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-dim); margin-bottom: .9rem; font-weight: 700; }
.footer-col a { display: block; color: var(--ink-soft); padding: .3rem 0; font-size: var(--step-0); transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--ink-dim); font-size: var(--step--1); }
/* discreet internal login link — muted, easy to miss */
.intern-link { color: var(--ink-dim); opacity: .5; text-decoration: none; transition: opacity .2s, color .2s; }
.intern-link:hover, .intern-link:focus-visible { opacity: 1; color: var(--ink-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }   /* content stays visible without JS */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Standalone info pages (impressum / datenschutz / status) ---------- */
.doc { max-width: 760px; margin-inline: auto; padding-block: clamp(6rem, 12vw, 9rem) 4rem; }
.doc h1 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.doc h2 { font-size: var(--step-1); margin: 2.4rem 0 .8rem; }
.doc p, .doc li { color: var(--ink-soft); margin-bottom: .8rem; }
.doc a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.doc .todo { color: var(--magenta); font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 2rem; }
.back-link:hover { color: var(--amber); }

/* status / confirmation splash */
.splash { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); position: relative; isolation: isolate; }
.splash .hero-bg { position: absolute; inset: 0; z-index: -1; }
.splash-card { max-width: 560px; }
.splash .mark {
  width: 92px; height: 92px; margin: 0 auto 2rem; border-radius: 26px; display: grid; place-items: center;
  background: rgba(254,124,32,.10); border: 1px solid var(--line-2); color: var(--amber);
}
.splash .mark svg { width: 44px; height: 44px; }
.splash.state-bad .mark { background: rgba(240,57,126,.10); color: var(--magenta); }
.splash h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.splash p { color: var(--ink-soft); font-size: var(--step-1); margin-bottom: 2rem; }

/* ---------- Logo (black transparent artwork → white on dark) ---------- */
.logo { display: block; height: auto; width: auto; }
/* negative: black↔white, transparency kept; slight warmth so the white wordmark
   sits in the same cream key as the --ink headlines instead of clinical pure white */
.logo-invert { filter: invert(1) brightness(.98) sepia(.05) saturate(1.25); }
.brand-logo { height: 28px; }
@media (min-width: 640px) { .brand-logo { height: 32px; } }
.hero-logo {
  width: clamp(260px, 62vw, 600px);
  margin: .1em 0;
  border-radius: 10px;
  filter: drop-shadow(0 14px 44px rgba(0,0,0,.55));   /* white plate, shown as-is */
}
.hero-h1 { margin: .3em 0 .25em; line-height: 0; }
.footer-logo { height: 40px; margin-bottom: 1rem; border-radius: 6px; }

/* visually-hidden: available to screen readers, invisible on screen */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
