/* ══════════════════════════════════════════════════
   ZÖIFTIGI NACHT — style.css
   Palette: midnight navy, antique gold, warm white
   Type: Khand (display) + EB Garamond (body)
══════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────── */
:root {
  --navy: #0E1523;
  --navy-mid: #1A2540;
  --navy-light: #263352;
  --gold: #C9A84C;
  --gold-light: #E2C880;
  --gold-pale: #F0E4C0;
  --cream: #F7F4EE;
  --stone: #EDE9E1;
  --text: #1A1A1A;
  --text-mid: #4A4438;
  --text-muted: #7A7060;
  --white: #FFFFFF;
  --red-accent: #8B1A2C;

  --font-display: 'Khand', 'Arial Narrow', sans-serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-util: system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 0.25s ease;

  --max-w: 1200px;
  --max-w-narrow: 760px;

  --header-h: 72px;
}

/* ─── Reset ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ─── Typography helpers ─────────────────────── */
.section-eyebrow {
  display: block;
  font-family: var(--font-util);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-eyebrow--light {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-title--light {
  color: var(--cream);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

/* ─── Layout ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--cream);
}

.section--stone {
  background: var(--stone);
}

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--dark.btn-ghost {
  color: var(--navy);
  border-color: var(--navy-light);
}

.btn--dark.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-light);
}

.btn--large {
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
}

/* ─── Header / Nav ───────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(14, 21, 35, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.15);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  margin-top: 0px;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #5f5f5fb8;
  margin-top: 10px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav a {
  font-family: var(--font-util);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.primary-nav a:hover {
  color: var(--gold-light);
}

.primary-nav .nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  margin-left: 0.5rem;
}

.primary-nav .nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://zoiftiginacht.ch/images/thumbs/25.png') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(14, 21, 35, 0.55) 0%,
      rgba(14, 21, 35, 0.72) 50%,
      rgba(14, 21, 35, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.hero-eyebrow {
  font-family: var(--font-util);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.hero-title-small {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 300;
  color: rgba(247, 244, 238, 0.85);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.hero-title-large {
  display: block;
  font-size: clamp(4rem, 14vw, 9rem);
  font-style: italic;
  color: var(--cream);
  line-height: 0.92;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(247, 244, 238, 0.75);
  margin-bottom: 2.5rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
  transition: color var(--transition);
}

.hero-scroll:hover {
  color: var(--gold);
}

.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(8px);
    opacity: 0.4;
  }
}

/* ─── Sponsors Strip ─────────────────────────── */
.sponsors-strip {
  background: var(--navy);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.sponsors-label {
  font-family: var(--font-util);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.sponsors-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.sponsors-logos a {
  opacity: 0.55;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
}

.sponsors-logos a:hover {
  opacity: 1;
}

.sponsors-logos img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

/* ─── About ──────────────────────────────────── */
.about .section-title {
  margin-bottom: 1rem;
}

.about-body {
  display: grid;
  gap: 1rem;
}

.about-body p {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 60ch;
}

/* ─── Ball / Info Cards ──────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.info-card:hover {
  box-shadow: 0 8px 30px rgba(14, 21, 35, 0.1);
  transform: translateY(-2px);
}

.info-card--highlight {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.info-card--highlight .info-card__title {
  color: var(--gold);
}

.info-card--highlight .info-card__main {
  color: var(--cream);
}

.info-card--highlight .info-card__detail {
  color: rgba(247, 244, 238, 0.75);
}

.info-card__icon {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.info-card--highlight .info-card__icon {
  color: var(--gold);
}

.info-card__title {
  font-family: var(--font-util);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-card__main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.info-card__detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-card__link {
  font-family: var(--font-util);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  margin-top: auto;
  padding-top: 0.5rem;
  transition: color var(--transition);
}

.info-card__link:hover {
  color: var(--red-accent);
}

.ball-cta {
  text-align: center;
}

/* ─── Anmeldung ──────────────────────────────── */
.anmeldung-intro {
  color: rgba(247, 244, 238, 0.75);
  margin-bottom: 2.5rem;
  font-style: italic;
  font-size: 1.05rem;
}

.anmeldung-box {
  background: var(--navy-light);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.anmeldung-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.anmeldung-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.anmeldung-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.15rem;
}

.anmeldung-step p {
  font-size: 0.9rem;
  color: rgba(247, 244, 238, 0.65);
}

.anmeldung-note {
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.55);
  font-style: italic;
}

/* ─── Komitee ────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2rem 1.5rem;
}

.team-card {
  text-align: center;
}

.team-card__img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid var(--gold-pale);
}

.team-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter var(--transition);
}

.team-card:hover .team-card__img-wrap img {
  filter: grayscale(0%);
}

.team-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.team-card__zunft {
  font-family: var(--font-util);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ─── Galerie ────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.gallery-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(14, 21, 35, 0.15);
}

.gallery-card__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-mid);
}

.gallery-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card__thumb img {
  transform: scale(1.04);
}

.gallery-card__info {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gallery-card__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}

.gallery-card__action {
  font-family: var(--font-util);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
}

.gallery-card__downloads {
  display: flex;
  gap: 0.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-util);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gold-pale);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  transition: background var(--transition);
}

.download-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

.gallery-archive-link {
  text-align: center;
  margin-bottom: 1rem;
}

/* Videos */
.videos__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.video-link {
  font-family: var(--font-util);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  border: 1.5px solid var(--navy-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), color var(--transition);
}

.video-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Kontakt ────────────────────────────────── */
.kontakt-intro {
  color: rgba(247, 244, 238, 0.75);
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 1.05rem;
}

/* ─── Footer ─────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo img {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer-nav a {
  font-family: var(--font-util);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  font-family: var(--font-util);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── Accessibility ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─── Mobile ─────────────────────────────────── */
@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 21, 35, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 99;
  }

  .primary-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .primary-nav a {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    color: var(--cream);
  }

  .primary-nav .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .hero-title-large {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sponsors-logos img {
    height: 28px;
  }

  .anmeldung-box {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
