/* ==========================================
   DESIGN SYSTEM
========================================== */
:root {
  --color-dark: #111111;
  --color-dark-soft: #1d1d1d;
  --color-light: #f7f3ec;
  --color-white: #ffffff;
  --color-gold: #d6a84f;
  --color-red: #9b1c1c;
  --color-text: #222222;

  --max-width: 1180px;
  --header-height: 78px;
  --radius-card: 22px;
  --shadow-card: 0 20px 48px rgba(0, 0, 0, 0.14);
  --mobile-page-scale: 0.8; /* Set to 1 to disable the mobile scaling trial. */
  --display-heading-scale: 1; /* Independent of page zoom; mobile override below. */
  --subpage-title-size: calc(clamp(2.6rem, 7vw, 5.8rem) * var(--display-heading-scale));
}

/* ==========================================
   RESET & BASE
========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background: var(--color-dark);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-dark);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* Keep content colors separate from the background sampled by browser chrome. */
body > main {
  background: var(--color-light);
}

/* ==========================================
   OVERLAYS
========================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 900;
}

body.menu-open::before {
  opacity: 1;
  pointer-events: auto;
}

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

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

abbr[title] {
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-dark);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.development-data-banner {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2000;
  max-width: 720px;
  margin-inline: auto;
  padding: 10px 18px;
  border: 1px solid #f2cf75;
  border-radius: 12px;
  background: #fff2bd;
  color: #3d2a00;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================
   HEADER & NAVIGATION
========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 32px;
  background: rgba(17, 17, 17, 0.32);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  transition:
    background 0.25s ease,
    height 0.25s ease,
    padding 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  height: 70px;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.site-header.scrolled .brand img {
  width: 48px;
  height: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  transform-origin: center;
  transition:
    width 0.25s ease,
    height 0.25s ease,
    transform 0.32s ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 2px;
  opacity: 0.9;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover::after {
  opacity: 0.65;
  transform: scaleX(1);
}

@media (min-width: 821px) {
  .main-nav {
    gap: clamp(28px, 2.15vw, 34px);
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .main-nav a {
    padding-inline: 3px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    letter-spacing: 0.035em;
    opacity: 1;
    transition: color 0.3s ease;
  }

  .main-nav a::after {
    left: 50%;
    bottom: 3px;
    width: calc(100% - 10px);
    background: rgba(214, 168, 79, 0.82);
    transform: translateX(-50%) scaleX(0.28);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: rgba(255, 255, 255, 0.98);
  }

  .main-nav a:hover::after,
  .main-nav a:focus-visible::after {
    opacity: 0.68;
    transform: translateX(-50%) scaleX(1);
  }

  .main-nav a:active,
  .main-nav a[aria-current="location"],
  .main-nav a.is-active {
    color: rgba(229, 199, 134, 0.98);
  }

  .main-nav a:active::after,
  .main-nav a[aria-current="location"]::after,
  .main-nav a.is-active::after {
    opacity: 0.82;
    transform: translateX(-50%) scaleX(1);
  }

  .brand span {
    transition: color 0.3s ease;
  }

  .brand[aria-current="location"] span,
  .brand.is-active span {
    color: rgba(229, 199, 134, 0.98);
  }
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(214, 168, 79, 0.38);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.52);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 168, 79, 0.7);
  background: rgba(17, 17, 17, 0.72);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   HERO
========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 960px;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.84) 0%,
      rgba(0, 0, 0, 0.58) 42%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    url("assets/img/hero-eckartsburg.jpg") center 44% / cover no-repeat;

  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 32px) 32px 112px;
  color: var(--color-white);
}

.hero-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-right: min(8vw, 120px);
}

.eyebrow {
  max-width: 680px;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 920px;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  font-size: calc(clamp(3rem, 7vw, 5.5rem) * var(--display-heading-scale));
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

.hero-subline {
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  color: #f2dfb2;
  margin-bottom: 36px;
}

.hero .eyebrow .legal-form {
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;

  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(17, 17, 17, 0.16);
  color: var(--color-white);
}

.btn-secondary:hover {
  border-color: var(--color-white);
  background: rgba(17, 17, 17, 0.34);
}

/* ==========================================
   QUICK INFO
========================================== */

.quick-info {
  max-width: var(--max-width);
  margin: -72px auto 0;
  padding: 0 32px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;

  position: relative;
  z-index: 5;
}

.sport-card {
  order: 1;
}

.featured-card {
  order: 2;
}

.quick-info > .info-card:not(.event-card):not(.sport-card) {
  order: 3;
}

.info-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  height: 100%;
  min-height: 350px;
}

.info-card h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.info-card p {
  margin-bottom: 18px;
}

.sport-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.sport-card:hover {
  transform: scale(1.015);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.2);
}

.card-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(214, 168, 79, 0.18), rgba(214, 168, 79, 0.04));
  color: var(--color-gold);
  border: 1px solid rgba(214, 168, 79, 0.3);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.sport-card:hover .card-icon {
  background: linear-gradient(145deg, rgba(214, 168, 79, 0.28), rgba(214, 168, 79, 0.08));
  border-color: rgba(214, 168, 79, 0.55);
}

.member-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.member-card:hover {
  transform: scale(1.015);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.2);
}

.member-card:hover .card-icon {
  background: linear-gradient(145deg, rgba(155, 28, 28, 0.16), rgba(214, 168, 79, 0.10));
  border-color: rgba(155, 28, 28, 0.35);
}

.member-card:hover .card-hover-link {
  opacity: 1;
  color: var(--color-gold);
}

.member-card:hover .card-icon svg {
  transform: scale(1.05);
}

.card-icon svg {
  width: 36px;
  height: 36px;
  transition: transform 0.22s ease;
}


.card-subline {
  color: #6f6558;
  font-weight: 700;
}

.card-hover-link {
  margin-top: auto;
  color: var(--color-red);
  font-weight: 700;
  opacity: 0;
  transform: none;
  transition:
    opacity 0.28s ease,
    color 0.2s ease;
}

.sport-card:hover .card-hover-link {
  opacity: 1;
  color: var(--color-gold);
}

/* ==========================================
   COUNTDOWN
========================================== */

.card-kicker {
  color: var(--color-red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-date {
  color: #6f6558;
  font-weight: 700;
}

.event-category {
  display: inline-flex;
  align-self: center;
  margin: 2px 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 79, 0.45);
  background: rgba(214, 168, 79, 0.08);
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    border-color 0.22s ease,
    background 0.22s ease;
}

.event-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-white);
  cursor: default;
  background: linear-gradient(180deg, #1d1d1d 0%, #151515 100%);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.event-card[href] {
  cursor: pointer;
}

.event-card h2 {
  color: var(--color-white);
  font-size: calc(1.35rem * var(--display-heading-scale));
}

.event-card .card-kicker {
  color: var(--color-gold);
}

.event-card .event-date {
  color: rgba(255,255,255,0.78);
}

.event-card .countdown div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.event-card .countdown strong {
  color: var(--color-gold);
}

.event-card .countdown span {
  color: rgba(255,255,255,0.72);
}


.featured-card {
  transform: scale(1.08);
  z-index: 6;
}

.featured-card[href]:hover {
  transform: scale(1.095);
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.26);
  background: linear-gradient(180deg, #232323 0%, #191919 100%);
}

.featured-card[href]:hover .event-category {
  border-color: rgba(214, 168, 79, 0.75);
  background: rgba(214, 168, 79, 0.14);
}

.featured-card[href]:hover .card-hover-link {
  opacity: 1;
  color: var(--color-gold);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.countdown div {
  background: var(--color-light);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}

.countdown strong {
  display: block;
  color: var(--color-dark);
  font-size: 1.7rem;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 5px;
  color: #6f6558;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================
   CONTENT SECTIONS
========================================== */

.section {
  padding: clamp(76px, 8vw, 112px) 32px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-light {
  background: var(--color-light);
  color: var(--color-text);
}

.section-dark {
  background: var(--color-dark-soft);
  color: var(--color-white);
}

.section-kicker {
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section h2 {
  max-width: 760px;
  font-size: calc(clamp(2rem, 5vw, 4rem) * var(--display-heading-scale));
  line-height: 1.05;
  margin-bottom: 22px;
}

.section p {
  max-width: 760px;
  font-size: 1.1rem;
}

.section-lead {
  max-width: 860px;
  color: #5f564c;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.section-lead-on-dark {
  color: rgba(255, 255, 255, 0.78);
}

.section-action,
.section-actions {
  margin-top: 32px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.section-actions .btn:disabled:hover {
  transform: none;
}

.partner-home-teaser {
  max-width: 920px;
  margin-top: 52px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.partner-home-teaser h3 {
  margin-top: 6px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.partner-home-teaser p {
  max-width: 650px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.65;
}

.partner-home-teaser .partner-home-kicker {
  margin-top: 0;
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.partner-home-link {
  min-height: 44px;
  padding: 10px 2px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--color-gold);
  font-weight: 800;
  white-space: nowrap;
}

.club-highlights {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.highlight-card {
  min-height: 190px;
  padding: 28px 22px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.highlight-card:hover {
  transform: scale(1.018);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.14);
}

.highlight-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--color-gold);
}

.highlight-icon svg {
  width: 100%;
  height: 100%;
}

.highlight-card h3 {
  margin-bottom: 8px;
  color: var(--color-dark);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.1;
}

.highlight-card p {
  color: #6f6558;
  font-size: 0.98rem;
  font-weight: 700;
}

.history-teaser-card {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 42px;
  padding: 42px;
  border-radius: 28px;
  background: transparent;
  isolation: isolate;
  color: var(--color-white);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.history-teaser-card:hover {
  transform: scale(1.015);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.2);
}

.history-teaser-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/img/history-eckartsberga.jpg") right center / cover no-repeat;
  filter: grayscale(35%) sepia(18%) contrast(1.08) brightness(0.82);
  transform: scale(1.03);
}

.history-teaser-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(10, 10, 10, 0.96) 0%,
      rgba(10, 10, 10, 0.82) 42%,
      rgba(10, 10, 10, 0.38) 100%);
}

.history-teaser-card > * {
  position: relative;
  z-index: 1;
}

.history-kicker {
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.history-teaser-card h3 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: calc(clamp(2rem, 5vw, 4.2rem) * var(--display-heading-scale));
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.history-teaser-card p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
}

.history-teaser-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--color-gold);
  font-weight: 800;
}

.history-teaser-link::after {
  content: "→";
  margin-left: 10px;
}

/* ==========================================
   GALLERY PREVIEW
========================================== */
.gallery-preview {
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  grid-template-areas: "image copy";
  gap: 28px;
  align-items: stretch;
}

.gallery-feature {
  position: relative;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.16);
  display: block;
  aspect-ratio: 16 / 10;
  grid-area: image;
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
  background: #cfc6b8;
  transition: opacity 1.1s ease;
}

.gallery-feature.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}

.gallery-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.gallery-feature-achievement img {
  object-position: var(--gallery-object-position, 50% 50%);
}


.gallery-feature.is-active img {
  animation: galleryImageZoom 6.5s ease-in-out forwards;
}

@keyframes galleryImageZoom {
  0% {
    transform: scale(1.03);
  }

  82%,
  100% {
    transform: scale(1.09);
  }
}

.gallery-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.15) 45%,
    rgba(0,0,0,0) 100%);
}

.gallery-feature-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

.gallery-feature-link:focus-visible {
  outline-offset: -5px;
}

.gallery-feature figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 82px;
  z-index: 2;
  color: var(--color-white);
  font-size: .95rem;
  font-weight: 700;
}

.gallery-preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-radius: 26px;
  background: var(--color-white);
  box-shadow: 0 20px 48px rgba(0,0,0,.10);
  grid-area: copy;
}

.gallery-kicker {
  color: var(--color-red);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gallery-preview-copy h3 {
  margin-bottom: 18px;
  color: var(--color-dark);
  font-size: calc(clamp(1.7rem, 3vw, 2.6rem) * var(--display-heading-scale));
  line-height: 1.08;
}

.gallery-preview-copy p {
  color: #61584d;
  line-height: 1.75;
}

.gallery-preview-controls {
  grid-area: image;
  align-self: end;
  justify-self: center;
  z-index: 4;
  max-width: calc(100% - 28px);
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0 14px 14px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.gallery-preview-controls > * {
  pointer-events: auto;
}

/* ==========================================
   GUESTBOOK VOICES
========================================== */

.guestbook-voices {
  padding-block: clamp(58px, 6vw, 76px);
  border-top: 1px solid rgba(126, 94, 40, 0.12);
}

.guestbook-voices h2 {
  margin-bottom: 0;
}

.guestbook-voices-panel {
  position: relative;
  width: 100%;
  margin-top: 28px;
  padding: clamp(24px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(126, 94, 40, 0.16);
  border-radius: var(--radius-card);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(244, 237, 225, 0.9)
  );
  box-shadow: 0 22px 52px rgba(65, 48, 24, 0.12);
}

.guestbook-voices-panel::before {
  content: "“";
  position: absolute;
  top: -18px;
  left: 22px;
  color: rgba(214, 168, 79, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(7rem, 14vw, 10rem);
  line-height: 1;
  pointer-events: none;
}

.guestbook-voices-panel::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(var(--color-gold), var(--color-red));
}

.guestbook-voices-slides {
  position: relative;
  z-index: 1;
  display: grid;
  margin-left: clamp(18px, 3vw, 38px);
}

.guestbook-entry blockquote p {
  white-space: pre-line;
}

.guestbook-voice {
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(14px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0s linear 0.35s;
}

.guestbook-voice.is-active,
.guestbook-voice.is-leaving {
  visibility: visible;
  transition-delay: 0s;
}

.guestbook-voice.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.guestbook-voice.is-leaving {
  transform: translateX(-14px);
}

.guestbook-voice blockquote p {
  max-width: 820px;
  white-space: normal;
  color: #403a34;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.62;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.guestbook-voice footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
}

.guestbook-voice footer strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--color-dark);
}

.guestbook-voice footer time {
  color: #766b5f;
  font-size: 0.86rem;
  font-weight: 700;
}

.guestbook-voice-read-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding-block: 8px;
  color: var(--color-red);
  font-weight: 700;
  text-underline-offset: 4px;
}

.guestbook-voices-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(126, 94, 40, 0.14);
}

.guestbook-voices-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.guestbook-voices-button,
.guestbook-voices-toggle,
.gallery-preview-button,
.gallery-preview-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(126, 94, 40, 0.24);
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.guestbook-voices-button,
.gallery-preview-button {
  border-radius: 999px;
  font-size: 1.1rem;
}

.guestbook-voices-toggle,
.gallery-preview-toggle {
  padding: 8px 16px;
  border-radius: 999px;
}

.guestbook-voices-toggle {
  width: 44px;
  padding: 0;
}

.guestbook-voices-button:hover,
.guestbook-voices-toggle:hover,
.gallery-preview-button:hover,
.gallery-preview-toggle:hover {
  border-color: rgba(155, 28, 28, 0.38);
  background: rgba(155, 28, 28, 0.08);
  color: var(--color-red);
}

.guestbook-voices-position,
.gallery-preview-position {
  min-width: 62px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(214, 168, 79, 0.1);
  color: #6f6558;
  font-size: 0.9rem !important;
  font-weight: 700;
  text-align: center;
}

.gallery-preview-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.gallery-preview-button,
.gallery-preview-toggle {
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.gallery-preview-button:hover,
.gallery-preview-toggle:hover {
  border-color: rgba(214, 168, 79, 0.76);
  background: rgba(214, 168, 79, 0.18);
  color: #f2dfb2;
}

.gallery-preview-position {
  min-width: 72px;
  padding-inline: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem !important;
  white-space: nowrap;
}

.gallery-preview-toggle-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 16px;
  margin-inline: auto;
}

.gallery-preview-toggle[data-autoplay-state="running"]
  .gallery-preview-toggle-icon::before,
.gallery-preview-toggle[data-autoplay-state="running"]
  .gallery-preview-toggle-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 4px;
  border-radius: 2px;
  background: currentColor;
}

.gallery-preview-toggle[data-autoplay-state="running"]
  .gallery-preview-toggle-icon::before {
  left: 1px;
}

.gallery-preview-toggle[data-autoplay-state="running"]
  .gallery-preview-toggle-icon::after {
  right: 1px;
}

.gallery-preview-toggle[data-autoplay-state="paused"]
  .gallery-preview-toggle-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

/* ==========================================
   EVENT TIMELINE
========================================== */

.timeline {
  margin-top: 56px;
  display: grid;
  gap: 36px;
}

.timeline-group {
  display: grid;
  gap: 24px;
}

.timeline-group-content {
  display: grid;
  gap: 24px;
}

.timeline-group + .timeline-group {
  padding-top: 8px;
  border-top: 1px solid rgba(214, 168, 79, 0.16);
}

.timeline-section-title {
  color: var(--color-white);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.timeline-month {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-month::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(214, 168, 79, 0.28);
}

.timeline-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.timeline-card-inner {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  min-height: 100%;
  padding: 26px;
  border-radius: inherit;
  color: inherit;
}

.timeline-card-link {
  cursor: pointer;
}

.timeline-card-link:focus-visible {
  outline-offset: -5px;
}

.timeline-card:hover {
  transform: scale(1.01);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(214, 168, 79, 0.22);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
}

.timeline-date {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(214, 168, 79, 0.18), rgba(214, 168, 79, 0.06));
  border: 1px solid rgba(214, 168, 79, 0.32);
  color: var(--color-white);
}

.timeline-day {
  color: var(--color-gold);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.timeline-month-short {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content {
  min-width: 0;
}

.timeline-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 79, 0.42);
  background: rgba(214, 168, 79, 0.08);
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-card h4 {
  margin-bottom: 8px;
  color: var(--color-white);
  font-size: calc(clamp(1.35rem, 3vw, 2rem) * var(--display-heading-scale));
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.timeline-location {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
}

.timeline-description {
  display: -webkit-box;
  overflow: hidden;
  max-width: 760px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.timeline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.timeline-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline-chip.available {
  background: rgba(214, 168, 79, 0.14);
  border: 1px solid rgba(214, 168, 79, 0.28);
  color: var(--color-gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.timeline-chip.disabled {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
}

.timeline-media {
  width: min(100%, 720px);
  margin: 18px 0 22px;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
}

.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-empty {
  max-width: none !important;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem !important;
}

.timeline-archive-list {
  display: grid;
  gap: 26px;
}

.timeline-year-carousel {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.timeline-year-track {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  perspective: 800px;
  overflow: hidden;
}

.timeline-year {
  border: none;
  border-radius: 18px;
  min-width: 104px;
  min-height: 76px;
  padding: 12px 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transform: scale(0.82);
  opacity: 0.58;
  transition:
    transform 0.32s ease,
    opacity 0.32s ease,
    background 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease;
}

.timeline-year[data-offset="-2"],
.timeline-year[data-offset="2"] {
  transform: scale(0.78);
  opacity: 0.42;
}

.timeline-year[data-offset="-1"],
.timeline-year[data-offset="0"],
.timeline-year[data-offset="1"] {
  transform: scale(0.9);
  opacity: 0.72;
}

.timeline-year.is-active {
  min-width: 134px;
  min-height: 94px;
  transform: scale(1.06);
  opacity: 1;
  background: linear-gradient(180deg, rgba(214, 168, 79, 0.22), rgba(214, 168, 79, 0.08));
  color: var(--color-white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.timeline-year span {
  color: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.timeline-year.is-active span {
  color: var(--color-gold);
  font-size: 1.9rem;
}

.timeline-year small {
  display: none;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-year.is-active small {
  display: block;
}

.timeline-year-arrow {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 79, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-gold);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.timeline-year-arrow:hover {
  background: rgba(214, 168, 79, 0.12);
  border-color: rgba(214, 168, 79, 0.58);
  transform: scale(1.04);
}

.timeline-year-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.32;
  transform: none;
}

.timeline-archive-panel {
  display: grid;
  gap: 24px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.timeline-archive-panel:empty {
  display: none;
}

.timeline-archive-panel .timeline-month {
  margin-top: 8px;
}

@media (max-width: 1040px) {
  .quick-info {
    gap: 20px;
  }

  .info-card {
    padding: 26px 22px;
  }

  .club-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .footer-nav {
    width: min(100%, 860px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 4px;
  }

  .footer-nav a,
  .footer-nav a + a {
    min-width: 0;
    margin-left: 0;
    padding-inline: clamp(8px, 1.5vw, 14px);
    border-left: 0;
    text-align: center;
  }

  .footer-nav a:nth-child(5n + 2),
  .footer-nav a:nth-child(5n + 3),
  .footer-nav a:nth-child(5n + 4),
  .footer-nav a:nth-child(5n + 5) {
    border-left: 1px solid rgba(214, 168, 79, 0.3);
  }
}

@media (max-width: 820px) {
  .gallery-preview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "image"
      "copy";
    gap: 22px;
  }

  .gallery-preview-copy {
    padding: 26px 22px;
  }

  .guestbook-voices-footer {
    gap: 16px;
  }

  .club-highlights {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 22px 18px;
    margin-left: -22px;
    margin-right: -22px;
    scroll-snap-type: x mandatory;
    scroll-padding: 22px;
    -webkit-overflow-scrolling: touch;
  }

  .highlight-card {
    flex: 0 0 min(82vw, 360px);
    min-height: 220px;
    scroll-snap-align: center;
    text-align: center;
    align-items: center;
  }

  .club-highlights {
    gap: 14px;
  }

  .highlight-card {
    padding: 22px 20px;
  }

  .highlight-icon {
    margin-bottom: 14px;
  }

  .highlight-card h3 {
    margin-bottom: 6px;
  }


  .history-teaser-card {
    padding: 30px 24px;
    border-radius: 24px;
  }
  .timeline {
    margin-top: 42px;
  }

  .timeline-card-inner {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 0;
    padding: 22px;
  }

  .timeline-date {
    width: 72px;
    height: 72px;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .timeline-content {
    display: contents;
  }

  .timeline-content > * {
    min-width: 0;
    grid-column: 1 / -1;
  }

  .timeline-content > .timeline-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .timeline-content > h4 {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .timeline-location {
    padding-top: 12px;
  }

  .timeline-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-chip {
    justify-content: center;
  }

  .timeline-section-title {
    margin-top: 8px;
  }

  .timeline-year-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 18px 12px;
    border-radius: 22px;
  }

  .timeline-year-track {
    min-height: 104px;
    gap: 6px;
    overflow: hidden;
  }

  .timeline-year {
    min-width: 76px;
    min-height: 62px;
    padding: 10px 12px;
  }

  .timeline-year.is-active {
    min-width: 104px;
    min-height: 82px;
  }

  .timeline-year span {
    font-size: 1.05rem;
  }

  .timeline-year.is-active span {
    font-size: 1.55rem;
  }

  .timeline-year small {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .timeline-year-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }
}

/* ==========================================
   FOOTER
========================================== */

.site-footer {
  padding: 36px 32px 34px;
  background: var(--color-dark);
  color: var(--color-white);
}

html[data-development-data="active"] .site-footer {
  padding-bottom: 140px;
}

.site-footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-main {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-legal {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(10, max-content);
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
}

.footer-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.footer-nav a + a {
  margin-left: clamp(8px, 1.2vw, 18px);
  padding-left: clamp(8px, 1.2vw, 18px);
  border-left: 1px solid rgba(214, 168, 79, 0.3);
}

.footer-signature {
  width: 100%;
  display: grid;
  grid-template-columns:
    clamp(82px, 9vw, 132px)
    clamp(124px, 14vw, 200px)
    clamp(60px, 7vw, 104px);
  align-items: center;
  justify-content: center;
  column-gap: clamp(8px, 2.2vw, 32px);
  margin-top: 0;
}

.footer-association-link {
  width: 100%;
  min-width: 44px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  opacity: 0.84;
  transition: opacity 0.2s ease;
}

.footer-association-link:hover,
.footer-association-link:focus-visible {
  opacity: 1;
}

.footer-association-link img {
  width: auto;
  height: auto;
}

.footer-association-link-dsb img {
  width: 100%;
  max-width: 132px;
}

.footer-association-link-state img {
  width: auto;
  height: clamp(70px, 7.65vw, 110px);
  max-width: 100%;
}

.footer-brand-illustration {
  width: 100%;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(214, 168, 79, 0.16);
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    rgba(214, 168, 79, 0.06),
    rgba(255, 255, 255, 0.015)
  );
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.footer-brand-illustration picture,
.footer-brand-illustration img {
  display: block;
  width: 100%;
}

.footer-brand-illustration img {
  height: auto;
  aspect-ratio: 1335 / 1178;
}

.footer-legal {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 820px) {
  .site-header {
    min-height: var(--header-height);
    height: var(--header-height);
    padding: 0 20px;
    flex-direction: row;
    align-items: center;
  }

  .site-header.scrolled {
    height: 68px;
    min-height: 68px;
  }

  .site-header.scrolled .brand img {
    width: 46px;
    height: 46px;
  }

  .site-header.scrolled .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    padding: 8px;
    background: rgba(17, 17, 17, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
    font-size: 0.95rem;
    z-index: 1001;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .main-nav a {
    position: relative;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--color-white);
    opacity: 0.92;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--color-gold);
    opacity: 1;
  }

  .main-nav a[aria-current="location"],
  .main-nav a.is-active {
    background: rgba(214, 168, 79, 0.08);
    color: var(--color-gold);
    opacity: 1;
  }

  .brand[aria-current="location"] span,
  .brand.is-active span {
    color: rgba(229, 199, 134, 0.98);
  }

  .main-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 88vh;
    min-height: 88svh;
    padding: 116px 22px 72px;
    background-position: 58% center;
  }

  .hero-content {
    padding-right: 0;
  }

  .quick-info {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 32px 22px 0;
    gap: 24px;
  }

  .featured-card {
    order: -1;
  }

  .sport-card {
    order: 0;
  }

  .quick-info > .info-card:not(.event-card):not(.sport-card) {
    order: 1;
  }

  .card-hover-link {
    opacity: 1;
    transform: none;
  }

  .event-category {
    align-self: center;
  }

  .featured-card {
    transform: none;
  }

  .featured-card[href]:hover,
  .featured-card[href]:active {
    transform: scale(1.015);
  }

  .section {
    padding: 72px 22px;
  }

  .footer-legal {
    margin-top: 12px;
  }
}

@media (max-width: 820px) {
  .partner-home-teaser {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .partner-home-link {
    width: fit-content;
  }

  .footer-nav {
    width: min(100%, 360px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 4px;
  }

  .footer-nav a,
  .footer-nav a + a {
    min-width: 0;
    margin-left: 0;
    padding-inline: clamp(8px, 3vw, 14px);
    border-left: 0;
    text-align: center;
  }

  .footer-nav a:nth-child(n) {
    border-left: 0;
  }

  .footer-nav a:nth-child(even) {
    border-left: 1px solid rgba(214, 168, 79, 0.3);
  }

  .footer-nav a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    gap: 10px;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .guestbook-voices {
    padding-block: 56px;
  }

  .guestbook-voices-panel {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .guestbook-voices-controls {
    flex-wrap: nowrap;
  }

  .main-nav {
    left: 16px;
    right: 16px;
  }

  .hero {
    padding-inline: 18px;
  }

  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.09em;
  }

  .hero h1 {
    font-size: calc(clamp(2.75rem, 15vw, 4.3rem) * var(--display-heading-scale));
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .quick-info {
    padding-inline: 18px;
  }

  .club-highlights {
    margin-inline: -18px;
    padding-inline: 18px;
    scroll-padding: 18px;
  }

  .info-card {
    min-height: 0;
  }

  .section {
    padding: 64px 18px;
  }

  .section-kicker {
    overflow-wrap: anywhere;
  }

  .timeline-card-inner {
    padding: 20px 18px;
  }

  .timeline-description {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .timeline-year-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 8px;
  }

  .timeline-year {
    min-width: 66px;
    padding-inline: 8px;
  }

  .timeline-year.is-active {
    min-width: 88px;
  }

  .gallery-feature figcaption {
    left: 18px;
    right: 18px;
  }

  .site-footer {
    padding: 32px 18px 34px;
  }

}

/* Large display headings only: preserve compact UI/card labels and body text. */
.section h2,
.event-card h2,
.timeline-card h4,
.history-teaser-card h3,
.gallery-preview-copy h3,
.history-hero h1,
.history-chronicle h2,
.history-sources h2,
.achievements-section h2,
.board-section h2,
.facility-area h2,
.guestbook-overview h2,
.service-section h2,
.contact-content h2,
.privacy-section h2,
.event-hero h1,
.event-section h2,
.event-state h1 {
  hyphens: none;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  :root {
    --display-heading-scale: 0.8; /* Set to 1 to restore previous heading sizes. */
  }
}

/* Reversible mobile scaling: one factor, with usable controls and input text. */
@supports (zoom: 1) {
  @media (max-width: 820px) {
    html {
      zoom: var(--mobile-page-scale);
    }

    html button[class],
    html .btn,
    html .guestbook-voice-read-more,
    html .footer-nav a,
    html .event-back-link,
    html .contact-field > .contact-checkbox {
      min-height: calc(44px / var(--mobile-page-scale));
    }

    html button[class] {
      min-width: calc(44px / var(--mobile-page-scale));
    }

    html .contact-field > input,
    html .contact-field > textarea {
      font-size: calc(16px / var(--mobile-page-scale));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .featured-card,
  .featured-card:hover,
  .featured-card:active,
  .info-card:hover,
  .highlight-card:hover,
  .history-teaser-card:hover,
  .timeline-card:hover,
  .timeline-year,
  .timeline-year.is-active {
    transform: none;
  }

  .gallery-feature.is-active img {
    animation: none;
    transform: scale(1.03);
  }

  .guestbook-voice,
  .guestbook-voice.is-active,
  .guestbook-voice.is-leaving {
    transform: none;
  }

  .brand:hover img,
  .brand:focus-visible img {
    transform: none;
  }
}
