:root {
  --color-bg: #0a0a0a;
  --color-bg-elevated: #141414;
  --color-text: #f2ece0;
  --color-text-muted: #9a9488;
  --color-border: rgba(242, 236, 224, 0.12);
  --color-border-hover: rgba(242, 236, 224, 0.28);
  --color-accent: #d4c4a0;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Encode Sans Expanded", var(--font-body);
  --max-width: 52rem;
  --max-width-wide: 56rem;
  --space-section: clamp(4rem, 12vw, 7rem);
  --header-height: 3.5rem;
  --stage-height: calc(100svh - var(--header-height));
}

@font-face {
  font-family: "Encode Sans Expanded";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/encode-sans-expanded-400.woff2") format("woff2");
}

@font-face {
  font-family: "Encode Sans Expanded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/encode-sans-expanded-500.woff2") format("woff2");
}

@font-face {
  font-family: "Encode Sans Expanded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/encode-sans-expanded-600.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -8vh 0;
  z-index: -1;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(
      to bottom,
      rgba(8, 10, 8, 0.46) 0%,
      rgba(8, 10, 8, 0.58) 45%,
      rgba(10, 10, 10, 0.7) 100%
    ),
    url("../assets/background.png");
  background-repeat: no-repeat;
  background-position: center var(--parallax-bg-position, 0%);
  background-size: var(--parallax-bg-width, cover) var(--parallax-bg-height, auto);
  pointer-events: none;
  will-change: background-position;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Hero */

.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
}

.hero__logo {
  width: min(30rem, 90vw);
  margin: 0 auto;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.hero__scroll-cue.is-hidden {
  opacity: 0;
}

.hero__scroll-cue-arrow {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--color-text-muted);
  border-bottom: 1.5px solid var(--color-text-muted);
  transform: rotate(45deg);
  animation: scroll-cue-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-cue-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: rotate(45deg) translateY(0);
  }

  50% {
    opacity: 0.95;
    transform: rotate(45deg) translateY(2px);
  }
}

/* Top navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.section-nav {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.section-nav__link {
  display: block;
  flex: 1;
  padding: 1.05rem 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(0.8125rem, 2.2vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  border-right: 1px solid var(--color-border);
  transition: background 0.2s ease, color 0.2s ease;
}

.section-nav__link:last-child {
  border-right: none;
}

.section-nav__link:hover {
  opacity: 1;
  background: rgba(20, 20, 20, 0.72);
  color: var(--color-accent);
}

/* Scroll scenes */

.page-main {
  position: relative;
}

.scroll-stage {
  position: relative;
  scroll-margin-top: var(--header-height);
}

.scroll-stage__frame {
  position: sticky;
  top: var(--header-height);
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--stage-height);
  overflow: hidden;
}

.scroll-stage__panel {
  width: 100%;
  max-height: var(--stage-height);
  overflow: hidden;
}

.scroll-stage--hero .scroll-stage__frame {
  justify-content: center;
}

.scroll-stage--about .scroll-stage__frame,
.scroll-stage--news .scroll-stage__frame,
.scroll-stage--membership .scroll-stage__frame {
  align-items: flex-start;
  padding-top: clamp(1rem, 3.5vh, 2.25rem);
}

.scroll-stage--legal .scroll-stage__frame {
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.scroll-stage--legal .scroll-stage__panel {
  max-height: none;
  overflow: visible;
}

.scroll-stage--about .scroll-stage__panel {
  display: flex;
  flex-direction: column;
}

.scroll-reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

body.is-scroll-story .scroll-stage__frame,
body.is-scroll-story .scroll-reveal {
  will-change: opacity, transform;
}

/* Content sections */

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-section) 1.5rem;
  scroll-margin-top: 3.5rem;
}

.section-headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 2.5vw, 1.375rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-headline--in-card {
  margin-bottom: 1rem;
}

.content-section__label {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
}

.content-section__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
}

.content-section p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* Über uns */

.about-section {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: visible;
}

.about-section__glow {
  position: absolute;
  inset: 5% -10%;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 45% 40% at 12% 25%,
      rgba(212, 196, 160, 0.07),
      transparent 68%
    ),
    radial-gradient(
      ellipse 40% 35% at 55% 75%,
      rgba(212, 196, 160, 0.04),
      transparent 70%
    );
  pointer-events: none;
}

.about-section__inner {
  position: relative;
  z-index: 1;
  width: min(92vw, 76rem);
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.about-intro {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  max-width: none;
}

.about-intro .section-headline {
  margin-bottom: 1.25rem;
}

.about-intro__lead {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.about-item {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  text-align: left;
}

.about-item__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about-item p {
  margin: 0;
  max-width: none;
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}

@media (max-width: 47.99rem) {
  .scroll-stage--about .about-grid {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .scroll-stage--about .about-item:nth-child(1),
  .scroll-stage--about .about-item:nth-child(3) {
    grid-row: 1;
  }

  .scroll-stage--about .about-item:nth-child(2),
  .scroll-stage--about .about-item:nth-child(4) {
    grid-row: 2;
  }

  .scroll-stage--about .about-grid.is-swapping .about-item {
    grid-column: 1;
  }
}

@media (min-width: 48rem) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 3rem;
  }
}

@media (min-width: 72rem) {
  .about-grid {
    gap: 1.75rem 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .membership-card__cta {
    max-height: none;
    margin-top: 1.75rem;
    opacity: 1;
    visibility: visible;
  }

  .membership-card__btn {
    opacity: 1;
    transform: none;
  }
}

.news-section {
  width: min(92vw, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.news-section .section-headline {
  margin-bottom: 2rem;
}

.news-timeline.news-list {
  gap: 0;
}

.news-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 34rem;
}

.news-timeline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 0.6875rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(212, 196, 160, 0.55),
    rgba(212, 196, 160, 0.18) 55%,
    rgba(212, 196, 160, 0.08)
  );
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 0;
  border-bottom: none;
}

.news-timeline .news-item:not(:last-child) {
  padding-bottom: 2.75rem;
}

.news-timeline__marker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 0.2rem;
}

.news-timeline__dot {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.55);
}

.news-item__body {
  min-width: 0;
}

.news-item__date {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.news-item__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
}

.news-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Membership */

.membership-section {
  width: min(92vw, var(--max-width-wide));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.membership-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.membership-card {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--color-border);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.membership-card--secondary {
  padding-top: 1.75rem;
  border-style: dashed;
  border-color: rgba(242, 236, 224, 0.18);
  background: rgba(8, 8, 8, 0.45);
}

.membership-card p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.membership-card p:last-of-type {
  margin-bottom: 0;
}

.membership-card--primary {
  border-color: rgba(212, 196, 160, 0.45);
  background: rgba(14, 14, 12, 0.72);
}

.membership-card__cta {
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  text-align: center;
}

.membership-card__btn {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

.membership-card__lead {
  margin: 0 0 1rem !important;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
}

.membership-card__meta {
  margin: 1rem 0 0 !important;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.membership-card__hint {
  margin: 0 0 1.5rem !important;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-border);
  background: rgba(0, 0, 0, 0.22);
}

.membership-card .membership-form {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.membership-card .btn {
  width: auto;
  min-width: 14rem;
}

.membership-card .btn--primary {
  display: inline-block;
  margin-top: 0;
}

.membership-card .btn--secondary {
  width: 100%;
}

/* Form */

.form-panel {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem var(--space-section);
  scroll-margin-top: 3.5rem;
}

.form-panel__note {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.form-panel__note strong {
  color: var(--color-text);
  font-weight: 500;
}

.membership-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-field input[type="text"],
.form-field input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-border-hover);
}

.form-field--checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-field--checkbox input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.form-field--checkbox label {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-bg);
  background: var(--color-text);
  border: 1px solid var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--color-text);
}

.btn--primary {
  color: var(--color-bg);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-accent);
}

.btn--secondary {
  color: var(--color-text);
  background: transparent;
  border-color: var(--color-border-hover);
}

.btn--secondary:hover {
  background: rgba(242, 236, 224, 0.08);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.form-message {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message--success {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.form-message--demo {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-style: italic;
}

/* Legal section (Impressum at page end) */

.legal-section {
  width: min(92vw, var(--max-width-wide));
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}

.legal-impressum {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.legal-impressum .section-headline {
  margin-bottom: 1.5rem;
}

.legal-impressum__content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 32rem;
  margin: 0 auto;
}

.legal-impressum__content p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.legal-footer {
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.legal-footer__address {
  margin: 0 0 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.legal-footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}

.legal-footer__links a {
  color: var(--color-accent);
}

.legal-footer__links a:hover {
  opacity: 0.8;
}

/* Legal pages */

.page-legal main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-legal h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
}

.page-legal h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
}

.page-legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.page-legal p,
.page-legal li {
  color: var(--color-text-muted);
}

.page-legal ul {
  padding-left: 1.25rem;
}

.page-legal .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.page-legal .back-link:hover {
  color: var(--color-accent);
}
