/* ============================================================
   Unterseite „Verein" — Geschichte & Vereinsheim
   ============================================================ */

/* ============ Hero ============ */

.vhero {
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 1.5rem 5rem;
}

.vhero__bg {
  position: absolute;
  inset: -5% 0;
}
.vhero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.vhero__tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 26, 0.85) 0%, rgba(9, 20, 40, 0.62) 45%, var(--navy-900) 100%),
    radial-gradient(900px 420px at 50% 0%, rgba(27, 79, 170, 0.25), transparent 70%);
}

.vhero__inner { position: relative; z-index: 3; max-width: 52rem; }
.vhero .hero__eyebrow { justify-content: center; }

.vhero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  display: flex;
  flex-direction: column;
}
.vhero__title em {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.6rem);
  margin-top: 0.2rem;
  color: var(--gold);
  padding-right: 0.12em;
}

.vhero__sub {
  margin: 1.4rem auto 0;
  max-width: 36rem;
  color: var(--text-dim);
  font-size: 1.08rem;
}

/* — 3D-Wappen im Hero (frei schwebend) — */

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

.vhero__crest {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0.4rem auto 0;
}

.vhero__crest3d {
  width: min(420px, 80vw);
  height: 340px;
}
.vhero__crest:not(.is-3d) .vhero__crest3d { display: none; }
.vhero__crest.is-3d .vhero__fallback { display: none; }

.vhero__fallback { width: min(180px, 42vw); margin: 1rem 0 0; }

.vhero__scroll { bottom: 2.2rem; }
@media (max-height: 700px) { .vhero__scroll { display: none; } }

/* ============ Geschichte: Scroll-Story ============ */

.story {
  position: relative;
  padding: 6rem 1.5rem 7rem;
  background: var(--navy-900);
}

/* — Gründer-Intro mit historischem Foto — */

.founders {
  max-width: 1240px;
  margin: 3rem auto 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.founders__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.9rem;
}
.founders__text > p { color: var(--text-dim); font-size: 1rem; max-width: 36rem; }
.founders__text strong { color: var(--text); }

.founders__photo {
  margin: 0;
  justify-self: center;
  max-width: 480px;
  background: #f3ecdd;                 /* Fotoabzug-Rahmen */
  padding: 14px 14px 12px;
  border-radius: 6px;
  transform: rotate(1.6deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--ease-out);
}
.founders__photo:hover { transform: rotate(0deg) scale(1.02); }
.founders__photo img { border-radius: 3px; filter: sepia(0.18) contrast(1.03); }
.founders__photo figcaption {
  padding-top: 0.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: #4b4436;
}

/* — Interaktive Timeline — */

.tl { max-width: 1080px; margin: 0 auto; }

.tl__bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0 0;
}
.tl__bar::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 13px;
  height: 2px;
  background: linear-gradient(90deg, rgba(242, 201, 76, 0.15), rgba(242, 201, 76, 0.5), rgba(242, 201, 76, 0.15));
}

.tl__stop {
  position: relative;
  background: none;
  border: 0;
  padding: 0 0.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-dim);
  font-family: var(--font-body);
  min-height: 44px;
}

.tl__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid rgba(232, 237, 245, 0.35);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.tl__stop:hover .tl__dot { border-color: var(--gold); transform: scale(1.15); }
.tl__stop.is-active .tl__dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(242, 201, 76, 0.7);
}

.tl__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.tl__stop.is-active .tl__label { color: var(--gold); }

.tl__stage {
  position: relative;
  margin-top: 1.6rem;
  min-height: 300px;
  border-radius: 22px;
  border: 1px solid rgba(232, 237, 245, 0.1);
  background:
    radial-gradient(600px 260px at 8% 0%, rgba(27, 79, 170, 0.12), transparent 70%),
    rgba(13, 27, 48, 0.45);
  padding: 2.2rem 5rem 2.4rem;
  overflow: hidden;
}

.tl__panel {
  position: absolute;
  inset: 2.2rem 5rem 2.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0.45s;
}
.tl__panel.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tl__panel p { color: var(--text-dim); font-size: 0.98rem; max-width: 46rem; }
.tl__panel strong { color: var(--text); }
.tl__panel .water-card__chips { margin-top: 1rem; margin-bottom: 0; }

.tl__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232, 237, 245, 0.2);
  background: rgba(8, 17, 31, 0.6);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.tl__arrow:hover { border-color: var(--gold); background: rgba(242, 201, 76, 0.12); }
.tl__arrow:active { transform: translateY(-50%) scale(0.94); }
.tl__arrow--prev { left: 0.9rem; }
.tl__arrow--next { right: 0.9rem; }

.story__h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}
.story__h span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.story__quote {
  position: relative;
  margin: 1.4rem 0 0;
  padding: 1.4rem 1.6rem 1.4rem 3.2rem;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(242, 201, 76, 0.07), rgba(27, 79, 170, 0.08));
  border: 1px solid rgba(242, 201, 76, 0.22);
}
.story__quote::before {
  content: "\201E";
  position: absolute;
  left: 0.9rem;
  top: -0.4rem;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--gold);
}
.story__quote p { font-style: italic; color: var(--text); font-size: 1rem; }
.story__quote em { color: var(--gold); font-style: normal; font-weight: 600; }

/* ============ Vereinsheim ============ */

.heim {
  position: relative;
  padding: 6rem 1.5rem;
  background:
    radial-gradient(1100px 500px at 15% 0%, rgba(27, 79, 170, 0.12), transparent 60%),
    var(--navy-950);
  overflow: hidden;
}

.heim__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "main main card"
    "a    b    c";
  gap: 1.4rem;
}

.heim__main { grid-area: main; }
.heim__card { grid-area: card; }
.heim__tile--a { grid-area: a; }
.heim__tile--b { grid-area: b; }
.heim__tile--c { grid-area: c; }

.heim__main, .heim__tile {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(232, 237, 245, 0.1);
  box-shadow: var(--shadow-card);
  min-height: 240px;
}
.heim__main { min-height: 420px; }

.heim__main img, .heim__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.heim__main:hover img, .heim__tile:hover img { transform: scale(1.05); }

.heim__card {
  border-radius: 20px;
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(242, 201, 76, 0.3);
  background:
    radial-gradient(320px 200px at 100% 0%, rgba(242, 201, 76, 0.1), transparent 70%),
    rgba(13, 27, 48, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.heim__card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.heim__season {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.heim__hours { margin: 0 0 1.2rem; }
.heim__hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(232, 237, 245, 0.14);
}
.heim__hours dt { color: var(--text-dim); }
.heim__hours dd { font-weight: 600; font-variant-numeric: tabular-nums; }

.heim__note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.heim__address {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 237, 245, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.heim__address span { color: var(--text-dim); font-size: 0.88rem; }

.heim__rule {
  max-width: 1240px;
  margin: 2rem auto 0;
  color: var(--text-dim);
  font-size: 0.94rem;
  text-align: center;
}

/* ============ Abschluss-CTA ============ */

.visit {
  padding: 6rem 1.5rem;
  background:
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  text-align: center;
}
.visit__inner { max-width: 46rem; margin: 0 auto; }
.visit__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ============ Reduced Motion ============ */

@media (prefers-reduced-motion: reduce) {
  .vhero__title em, .story__year { animation: none; }
}

html:not(.js) .tl__bar,
html:not(.js) .tl__arrow { display: none; }

html:not(.js) .tl__stage {
  display: grid;
  gap: 1.25rem;
  min-height: 0;
  padding: 1.5rem;
  overflow: visible;
}

html:not(.js) .tl__panel,
html:not(.js) .tl__panel.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in oklch, var(--text) 10%, transparent);
}

/* ============ Responsive ============ */

@media (max-width: 1024px) {
  .heim__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main main"
      "card a"
      "b    c";
  }
}

@media (max-width: 820px) {
  .founders { grid-template-columns: 1fr; gap: 2.2rem; }
  .founders__photo { max-width: 420px; }
  .tl__bar {
    overflow-x: auto;
    gap: 1.1rem;
    justify-content: flex-start;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }
  .tl__bar::-webkit-scrollbar { display: none; }
  .tl__stage { padding: 1.6rem 1.3rem 4.4rem; min-height: 0; }
  .tl__panel { inset: 1.6rem 1.3rem 4.4rem; }
  .tl__panel.is-active { inset: auto; }
  .tl__arrow { top: auto; bottom: 0.9rem; transform: none; }
  .tl__arrow:active { transform: scale(0.94); }
  .tl__arrow--prev { left: auto; right: 4.4rem; }
}

@media (max-width: 560px) {
  .vhero { min-height: 60vh; }
  .heim__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "card" "a" "b" "c";
  }
  .heim__main { min-height: 260px; }
}
