/* SPS Events · Design-System aus Variante H */
/* Logo-Schrift: auf die Buchstaben von "sps events" reduziert (4 KB). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-logo.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #1a1815;
  --bg-alt: #0d0c0a;
  --text: #f3f0ea;
  --text-2: #a8a196;
  --text-3: #8e877c;
  --unlit: #3d3933;
  --accent: #d63a20;
  --accent-text: #e1715e;
  --radius: 28px;
  --nav-h: 52px;
  --section: 160px;
  --hero-max: 780px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

@media (max-width: 720px) {
  :root { --section: 112px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

html.motion { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; overflow-wrap: break-word; }
p { hyphens: auto; }
img { display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1080px; margin-inline: auto; }

.accent { color: var(--accent-text); }
.muted { color: var(--text-3); }

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 980px;
  background: var(--text);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Typografie */

.h2 {
  font-size: clamp(44px, 5.6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.h2--small {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}
.h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lead {
  max-width: 620px;
  margin-bottom: 56px;
  font-size: 1.3125rem;
  line-height: 1.4;
  color: var(--text-2);
  hyphens: manual;
}
.lead--tight { margin-bottom: 0; }
.lead--center { max-width: 560px; margin: 24px auto 0; }

/* Buttons & Links */

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 120ms ease-out, filter 200ms ease;
}
.pill:active { transform: scale(0.97); transition-duration: 60ms; }
.pill--large { min-height: 52px; padding: 0 30px; }
.pill--small {
  position: relative;
  min-height: 30px;
  padding: 0 14px;
  font-size: 13px;
}
.pill--small::after { content: ""; position: absolute; inset: -8px -4px; }

.link-more {
  font-size: 1.1875rem;
  color: var(--accent-text);
  text-decoration: none;
}

@media (hover: hover) {
  .pill:hover { filter: brightness(1.08); }
  .link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 32px;
  margin-top: 36px;
}

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__bar {
  max-width: 1128px;
  margin-inline: auto;
  padding: 0 24px;
  min-height: var(--nav-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 32px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-family: "Bricolage Grotesque", var(--font);
  line-height: 1;
}
.logo__sps { font-weight: 800; font-size: 26px; letter-spacing: -0.05em; color: var(--text); }
.logo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.logo__events { font-weight: 500; font-size: 15px; letter-spacing: 0; color: #c9c2b6; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 13px;
}
.site-nav a {
  padding: 8px 0;
  color: #d6d0c5;
  text-decoration: none;
  transition: color 150ms ease;
}
@media (hover: hover) {
  .site-nav a:hover { color: #fff; }
}

.menu-toggle { display: none; }

@media (max-width: 720px) {
  /* Ohne JavaScript bleibt das Menü als zweite Zeile sichtbar. */
  .site-nav { order: 3; width: 100%; padding-bottom: 8px; gap: 0 20px; }

  .js .site-header__bar { flex-wrap: wrap; gap: 0 12px; }
  .js .logo { margin-right: auto; }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: #d6d0c5;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
  }
  .js .site-nav {
    display: none;
    flex-direction: column;
    padding: 8px 0 16px;
    font-size: 1.0625rem;
  }
  .js .site-nav a { padding: 11px 0; }
  .js .site-header.is-open .site-nav { display: flex; }
}

/* Hero */

.hero {
  padding: 120px 24px 0;
  text-align: center;
}
.hero__kicker {
  margin-bottom: 14px;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent-text);
}
.hero__title {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(56px, 8.4vw, 112px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__sub {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-2);
  hyphens: manual;
}
.hero__media { margin: 80px -24px 0; }
.hero__img {
  width: 100%;
  height: clamp(420px, 86vh, var(--hero-max));
  object-fit: cover;
  transform-origin: 50% 0%;
}

/* Haltung */

.stance { padding: var(--section) 24px; }
.stance__text {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  hyphens: manual;
}

/* Kennzahlen */

.stats { padding: 0 24px var(--section); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 48px 32px;
}
.stat {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat--accent { color: var(--accent-text); }
.stats p { margin-top: 12px; color: var(--text-2); }

/* Sektionen */

.section { padding: var(--section) 24px; }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section--gallery { padding-inline: 0; }

/* Leistungen */

.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  grid-auto-rows: 340px;
  gap: 20px;
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.tile--tall { grid-row: span 2; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.tile:not(.tile--text)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 52%);
}
.tile__copy {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 30px;
}
.tile__kicker {
  margin-bottom: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-text);
}
.tile h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.tile--tall .tile__copy { padding: 36px; }
.tile--tall .tile__kicker { margin-bottom: 6px; font-size: 1.0625rem; }
.tile--tall h3 { font-size: 34px; line-height: 1.12; letter-spacing: -0.025em; }
.tile__note {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  color: var(--text-2);
}
@media (hover: hover) {
  .tile:hover img { transform: scale(1.04); }
}

/* Planung: statisch untereinander, mit Animation als Sticky-Überblendung */

.plan { padding: 0 24px var(--section); }
.plan__head { max-width: 1080px; margin-inline: auto; text-align: center; }
.plan__head .lead { max-width: 640px; margin: 0 auto 40px; }
.plan__media {
  display: grid;
  gap: 32px;
  max-width: 1080px;
  margin-inline: auto;
}
.plan__fig { margin: 0; }
.plan__fig img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}
.plan__fig figcaption {
  margin-top: 18px;
  text-align: center;
  font-weight: 600;
}

@media (min-height: 561px) {
  html.motion .plan { height: 260vh; padding: 0; }
  html.motion .plan__stage {
    position: sticky;
    top: var(--nav-h);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
    padding: clamp(24px, 5vh, 64px) 24px 12px;
  }
  html.motion .plan__head .lead { margin-bottom: clamp(16px, 3vh, 40px); }
  html.motion .plan__media {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-height: 690px;
  }
  html.motion .plan__fig {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
  }
  html.motion .plan__fig img {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
  }
  html.motion .plan__fig figcaption {
    flex: 0 0 56px;
    margin-top: 12px;
  }
  html.motion .plan__fig--cad { z-index: 1; }
  html.motion .plan__fig--built img { position: relative; z-index: 0; }
  html.motion .xIn { opacity: 0; }
}

/* Galerie */

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: 1128px;
  padding-inline: 24px;
  margin-bottom: 48px;
}
.gallery-nav { display: none; gap: 12px; flex: none; }
.round-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 120ms ease-out, opacity 200ms ease, background-color 200ms ease;
}
.round-btn:active { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

@media (hover: hover) and (pointer: fine) {
  .js .gallery-nav { display: flex; }
  .round-btn:not(:disabled):hover { background: #2a2722; }
}

.gallery {
  --gutter: max(24px, calc((100% - 1080px) / 2));
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 24px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  position: relative;
  flex: 0 0 min(400px, 82%);
  height: min(560px, 75vh);
  min-height: 400px;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--surface);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 56px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Technik */

.gear {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.gear__card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: calc(var(--nav-h) + 48px);
}
.gear__card h3 {
  margin-bottom: 14px;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.gear__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.35;
  color: var(--text-2);
}
.gear__card li + li { margin-top: 8px; }
.brands {
  margin-top: 48px;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
  color: var(--text-3);
  hyphens: manual;
}

/* Team */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 40px 20px;
}
.people__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--text-3);
}
.people h3 {
  margin: 18px 0 2px;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.people p { font-size: 0.9375rem; color: var(--text-3); }

#team .h3 { margin: 96px 0 32px; }
.chronicle {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.chronicle li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2);
}
.chronicle span { font-weight: 600; color: var(--accent-text); }

/* Feed */

.feed { padding: var(--section) 24px 0; }
.feed__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  margin-bottom: 32px;
}
.feed__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 40%), 1fr));
  gap: 12px;
}
.feed__grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--surface);
}

/* Kontakt */

.contact {
  padding: 200px 24px;
  text-align: center;
}
.contact__title {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.contact .cta-row { margin-top: 40px; }

/* Footer */

.site-footer {
  padding: 24px;
  background: var(--surface);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-3);
}
.site-footer__inner {
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a {
  padding: 6px 0;
  color: var(--text-3);
  text-decoration: none;
}
@media (hover: hover) {
  .site-footer a:hover { color: var(--text); }
}

/* Anker: Überschrift landet unterhalb der Navigation */

#start { scroll-margin-top: var(--nav-h); }
#leistungen { scroll-margin-top: calc(var(--nav-h) + 48px); }
#planung { scroll-margin-top: var(--nav-h); }
#feste, #technik, #team { scroll-margin-top: calc(var(--nav-h) - var(--section) + 48px); }
#kontakt { scroll-margin-top: calc(var(--nav-h) - 200px + 48px); }

/* Einblenden beim Laden */

@keyframes intro-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
html.motion .intro { animation: intro-up 1100ms var(--ease) both; }
html.motion .intro--2 { animation-delay: 180ms; }
html.motion .intro--3 { animation-delay: 360ms; }

/* Scroll-gesteuert, nativ per CSS (Fallback: js/main.js mit GSAP ScrollTrigger) */

@keyframes rise {
  from { opacity: 0; transform: translateY(56px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { transform: scale(0.84); border-radius: 36px; }
  to { transform: scale(1); border-radius: 0; }
}
@keyframes lit {
  from { color: var(--unlit); }
  to { color: var(--text); }
}
@keyframes fade-away { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

html.native .reveal {
  animation: rise linear both;
  animation-timeline: view();
  /* Feste Distanz statt Prozent: So ist auch das letzte Element am Seitenende voll sichtbar. */
  animation-range: entry 0% cover 220px;
}
html.native .hero__img {
  animation: hero-zoom linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 45%;
}
html.native .stance__text { view-timeline-name: --stance; }
html.native .lit {
  animation: lit linear both;
  animation-timeline: --stance;
}
html.native .lit--1 { animation-range: cover 22% cover 36%; }
html.native .lit--2 { animation-range: cover 32% cover 46%; }
html.native .lit--3 { animation-range: cover 42% cover 56%; }

@media (min-height: 561px) {
  html.native .plan { view-timeline-name: --plan; }
  html.native .xOut {
    animation: fade-away linear both;
    animation-timeline: --plan;
    animation-range: contain 30% contain 55%;
  }
  html.native .xIn {
    animation: fade-in linear both;
    animation-timeline: --plan;
    animation-range: contain 30% contain 55%;
  }
}

/* Barrierefreiheit */

@media (prefers-reduced-motion: reduce) {
  .tile img, .pill, .round-btn, .site-nav a { transition: none; }
  .tile:hover img { transform: none; }
  .pill:active, .round-btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #000;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .site-header { background: #000; border-bottom-color: rgba(255, 255, 255, 0.5); }
  :root { --text-2: #d6d0c5; --text-3: #c9c2b6; }
}

/* Rechtsseiten */

.legal { padding: 96px 24px var(--section); }
.legal__inner { max-width: 720px; margin-inline: auto; }
.legal h1 {
  margin-bottom: 40px;
  font-size: clamp(44px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.legal h2 {
  margin: 48px 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.legal h3 { margin: 28px 0 8px; font-size: 1.0625rem; font-weight: 700; }
.legal p, .legal ul { margin: 0 0 14px; color: #c9c2b6; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-text); }
.legal__draft {
  margin-bottom: 40px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.9375rem;
}
.open-item {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(214, 58, 32, 0.25);
  color: var(--text);
}
