/* ==========================================================
   PAGE: Verein
   Moderne Vereinsseite mit Hero, Chronik, Archivbild und Abschluss
   ========================================================== */


/* ==========================================================
   01) Grundvariablen / Seite
   ========================================================== */

#über-uns {
  scroll-margin-top: 80px;
}

.verein-main {
  --verein-width: 96vw;
  --verein-max-width: none;

  --verein-page-padding-top: 3.4rem;
  --verein-page-padding-bottom: 6rem;

  --verein-blue: #0b86f3;
  --verein-blue-soft: rgba(191, 226, 255, 0.95);
  --verein-blue-light: rgba(222, 242, 255, 0.96);

  --verein-gray-strong: rgba(210, 220, 231, 0.96);
  --verein-gray-soft: rgba(236, 242, 248, 0.94);

  --verein-dark: #172033;
  --verein-dark-soft: #233043;
  --verein-text: #506174;

  --verein-gold: #f6dd78;
  --verein-gold-dark: #6c520c;

  --verein-border: rgba(76, 113, 148, 0.20);
  --verein-shadow-soft: 0 18px 44px rgba(23, 32, 51, 0.10);
  --verein-shadow-card: 0 12px 30px rgba(23, 32, 51, 0.08);

  --verein-page-bg: var(--color-page-bg, var(--color-bg-page, var(--color-background, #eef2f6)));

  width: 100%;
  padding: var(--verein-page-padding-top) 0 var(--verein-page-padding-bottom);
  overflow: hidden;
  background: var(--verein-page-bg);
}



/* ==========================================================
   01.5) Historischer Hintergrund ab Vereinsgeschichte
   Mittig begrenztes Vereinsbild, außen bleibt Seitenhintergrund sichtbar
   ========================================================== */

.verein-history-background {
  --verein-history-bg-width: min(1360px, 94vw);
  --verein-history-bg-repeat-height: min(826px, 57vw);

  width: 100%;
  margin: 0;
  padding: clamp(3rem, 4.8vw, 5rem) 0 clamp(3.4rem, 5.4vw, 6rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.verein-history-background::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--verein-history-bg-width);
  transform: translateX(-50%);

  background-image: url("/bilder/friedersdorf1991.jpg");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;

  filter: grayscale(1) sepia(0.18) contrast(0.9) brightness(1.03);
  opacity: 0.34;

  -webkit-mask-image: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.38) 0,
    rgba(0, 0, 0, 0.72) 4.5rem,
    rgba(0, 0, 0, 1) 10rem,
    rgba(0, 0, 0, 1) calc(var(--verein-history-bg-repeat-height) - 10rem),
    rgba(0, 0, 0, 0.72) calc(var(--verein-history-bg-repeat-height) - 4.5rem),
    rgba(0, 0, 0, 0.38) var(--verein-history-bg-repeat-height)
  );
  mask-image: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.38) 0,
    rgba(0, 0, 0, 0.72) 4.5rem,
    rgba(0, 0, 0, 1) 10rem,
    rgba(0, 0, 0, 1) calc(var(--verein-history-bg-repeat-height) - 10rem),
    rgba(0, 0, 0, 0.72) calc(var(--verein-history-bg-repeat-height) - 4.5rem),
    rgba(0, 0, 0, 0.38) var(--verein-history-bg-repeat-height)
  );

  pointer-events: none;
  z-index: -2;
}

.verein-history-background::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--verein-history-bg-width);
  transform: translateX(-50%);

  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.52), transparent 32%),
    radial-gradient(circle at 86% 48%, rgba(222, 242, 255, 0.36), transparent 34%),
    repeating-linear-gradient(
      180deg,
      rgba(236, 242, 248, 0.18) 0,
      rgba(236, 242, 248, 0.08) 4.5rem,
      rgba(236, 242, 248, 0.00) 10rem,
      rgba(236, 242, 248, 0.00) calc(var(--verein-history-bg-repeat-height) - 10rem),
      rgba(236, 242, 248, 0.08) calc(var(--verein-history-bg-repeat-height) - 4.5rem),
      rgba(236, 242, 248, 0.18) var(--verein-history-bg-repeat-height)
    ),
    linear-gradient(
      180deg,
      rgba(236, 242, 248, 0.74) 0%,
      rgba(236, 242, 248, 0.66) 34%,
      rgba(236, 242, 248, 0.60) 62%,
      rgba(236, 242, 248, 0.78) 84%,
      rgba(236, 242, 248, 0.94) 100%
    );

  pointer-events: none;
  z-index: -1;
}

.verein-history-background > .verein-story,
.verein-history-background > .verein-image-section {
  position: relative;
  z-index: 1;
}

.verein-history-background .verein-story {
  margin-top: 0;
}

/* ==========================================================
   02) Hero / Einstieg
   ========================================================== */

.verein-hero {
  width: var(--verein-width);
  max-width: var(--verein-max-width);
  margin: 0 auto;
  padding: clamp(2.25rem, 3.2vw, 3.6rem) var(--site-gutter);
  box-sizing: border-box;

  color: #fff;
  text-align: center;

  background:
    radial-gradient(circle at 16% 20%, rgba(11, 134, 243, 0.28), transparent 31%),
    radial-gradient(circle at 86% 72%, rgba(246, 221, 120, 0.16), transparent 31%),
    linear-gradient(135deg, rgba(23, 32, 51, 0.98), rgba(35, 48, 67, 0.96));

  border: 1px solid rgba(246, 221, 120, 0.18);
  border-radius: 28px;
  box-shadow: none;

  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.verein-hero::before {
  content: "";
  position: absolute;
  top: -10rem;
  left: 50%;
  width: min(920px, 82vw);
  height: min(920px, 82vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 58%);
  pointer-events: none;
  z-index: -1;
}

.verein-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(860px, 86vw);
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(246, 221, 120, 0.86),
    transparent
  );
  pointer-events: none;
}

.verein-hero-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.verein-kicker,
.verein-section-kicker {
  margin: 0 0 0.85rem;
  color: var(--verein-gold-dark);
  font-size: var(--font-small);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verein-hero .verein-kicker {
  color: var(--verein-gold);
}

.verein-hero h1 {
  max-width: 1050px;
  margin: 0 auto 1.25rem;
  color: #fff;
  font-size: clamp(2.35rem, 4.15vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.verein-hero-text {
  max-width: 830px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.62;
}


/* ==========================================================
   03) Hero Buttons
   ========================================================== */

.verein-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;

  margin: 1.35rem auto 0;
}

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

  min-height: 2.55rem;
  padding: 0.5rem 0.95rem;
  box-sizing: border-box;

  border-radius: var(--radius-medium);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.verein-button::after {
  content: "›";
  margin-left: 0.45rem;
  font-size: 1.08em;
}

.verein-button-primary {
  color: #fff8dc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(246, 221, 120, 0.35);
  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

.verein-button-secondary {
  color: #fff8dc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(246, 221, 120, 0.35);
  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.10) inset;
}


/* ==========================================================
   04) Kennzahlen
   ========================================================== */

.verein-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;

  width: min(1040px, 100%);
  margin: 1.65rem auto 0;
  padding: 0;
}

.verein-fact {
  min-width: 0;
  padding: 0.82rem 0.78rem;
  box-sizing: border-box;

  background:
    radial-gradient(circle at 20% 10%, rgba(246, 221, 120, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-large);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

.verein-fact dt {
  margin: 0 0 0.35rem;
  color: var(--verein-gold);
  font-size: clamp(1.35rem, 1.85vw, 1.9rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.verein-fact dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.3;
}


/* ==========================================================
   05) Geschichte / professioneller Zeitstrahl
   Ruhige Vereinschronik mit dunkler Achse und dezenten Akzenten
   ========================================================== */

.verein-story {
  width: var(--verein-width);
  max-width: var(--verein-max-width);
  margin: clamp(3rem, 4.8vw, 5rem) auto 0;
}

.verein-story-head {
  width: min(980px, 100%);
  margin: 0 auto clamp(2.2rem, 3.8vw, 3.8rem);
  text-align: center;
}

.verein-story-head h2 {
  margin: 0 0 1rem;
  color: var(--verein-dark);
  font-size: clamp(2.2rem, 4.2vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.verein-story-head p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--verein-text);
  font-size: 1.08rem;
  line-height: 1.72;
}

.verein-timeline {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
}

.verein-timeline::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: calc(10.6rem + 1.05rem - 1.5px);
  width: 3px;
  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.08) 18%,
      rgba(255, 255, 255, 0.04) 82%,
      rgba(255, 255, 255, 0.34)
    ),
    linear-gradient(
      180deg,
      rgba(86, 107, 132, 0.72),
      rgba(30, 47, 68, 0.92) 48%,
      rgba(98, 116, 134, 0.66)
    );

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.40),
    0 16px 34px rgba(23, 32, 51, 0.08);
  pointer-events: none;
  z-index: 0;
}

.verein-timeline::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: calc(10.6rem + 1.05rem - 0.5px);
  width: 1px;
  border-radius: 999px;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(246, 221, 120, 0.34) 12%,
    rgba(11, 134, 243, 0.18) 50%,
    rgba(246, 221, 120, 0.22) 88%,
    transparent
  );

  pointer-events: none;
  z-index: 0;
}

.verein-timeline-item {
  display: grid;
  grid-template-columns: 10.6rem 2.1rem minmax(0, 1fr);
  column-gap: 1.35rem;
  align-items: start;

  min-width: 0;
  padding: 0 0 clamp(1.85rem, 3vw, 2.8rem);
  position: relative;
  z-index: 1;
}

.verein-timeline-item::before {
  content: "";
  position: absolute;
  top: 1.02rem;
  left: calc(10.6rem + 1.05rem + 0.8rem);
  width: min(3.6rem, 6vw);
  height: 1px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(246, 221, 120, 0.34),
    rgba(76, 98, 122, 0.22),
    transparent
  );

  pointer-events: none;
  z-index: 1;
}

.verein-timeline-item:last-child {
  padding-bottom: 0;
}

.verein-timeline-year {
  justify-self: end;
  min-width: 7.4rem;
  padding: 0.44rem 0.78rem;
  box-sizing: border-box;

  color: rgba(255, 248, 220, 0.95);
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.99), rgba(35, 48, 67, 0.96));

  border: 1px solid rgba(246, 221, 120, 0.24);
  border-radius: 999px;
  box-shadow:
    0 9px 18px rgba(23, 32, 51, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;

  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.12;
  text-align: center;
  letter-spacing: 0.01em;

  position: relative;
  z-index: 2;
}

.verein-timeline-dot {
  justify-self: center;
  width: 0.92rem;
  height: 0.92rem;
  margin: 0.56rem auto 0;
  box-sizing: border-box;

  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.98), rgba(47, 65, 88, 0.96));
  border: 1px solid rgba(246, 221, 120, 0.58);
  border-radius: 0.22rem;
  box-shadow:
    0 0 0 4px rgba(236, 242, 248, 0.88),
    0 7px 16px rgba(23, 32, 51, 0.15);

  transform: rotate(45deg);
  position: relative;
  z-index: 2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.verein-timeline-dot::before {
  content: "";
  position: absolute;
  inset: 0.24rem;
  border-radius: 0.12rem;
  background: linear-gradient(135deg, rgba(246, 221, 120, 0.92), rgba(246, 221, 120, 0.38));
}

.verein-timeline-content {
  min-width: 0;
  padding: 0.15rem 0 clamp(1.3rem, 2.2vw, 2rem);
  border-bottom: 1px solid rgba(76, 113, 148, 0.13);
  position: relative;
}

.verein-timeline-item:last-child .verein-timeline-content {
  border-bottom: 0;
  padding-bottom: 0;
}

.verein-timeline-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16rem;
  width: min(300px, 44%);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(246, 221, 120, 0.30),
    rgba(76, 98, 122, 0.20),
    transparent
  );
}

.verein-timeline-content h3 {
  margin: 0 0 0.62rem;
  padding-top: 0.62rem;
  color: var(--verein-dark);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.verein-timeline-content p {
  max-width: 820px;
  margin: 0;
  color: var(--verein-text);
  font-size: 1.02rem;
  line-height: 1.68;
}

/* ==========================================================
   07) Archivbild Bereich
   ========================================================== */

.verein-image-section {
  width: var(--verein-width);
  max-width: var(--verein-max-width);
  margin: clamp(3rem, 5vw, 5.4rem) auto 0;
}

.verein-image-grid {
  --verein-archive-connector-gap: clamp(1.4rem, 3vw, 3.5rem);

  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: var(--verein-archive-connector-gap);
  align-items: center;

  position: relative;
}

.verein-image-copy {
  padding: clamp(1.5rem, 2.4vw, 2.35rem);
  box-sizing: border-box;

  text-align: center;

  background:
    radial-gradient(circle at 18% 18%, rgba(246, 221, 120, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(23, 32, 51, 0.97), rgba(35, 48, 67, 0.95));

  border: 1px solid rgba(246, 221, 120, 0.20);
  border-radius: 24px;
  box-shadow: var(--verein-shadow-soft);

  position: relative;
  overflow: hidden;
  z-index: 3;
}

.verein-image-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 76%;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(246, 221, 120, 0.82),
    transparent
  );
}

.verein-image-copy::after {
  content: none;
  display: none;
}

.verein-image-copy::before {
  z-index: 5;
}

.verein-image-grid::after {
  content: none;
}


.verein-image-copy .verein-section-kicker {
  color: var(--verein-gold);
}

.verein-image-copy h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.verein-image-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 1.04rem;
  line-height: 1.68;
}

.verein-image-card {
  margin: 0;
  padding: clamp(0.75rem, 1.2vw, 1rem);
  box-sizing: border-box;

  background:
    radial-gradient(circle at 18% 18%, rgba(246, 221, 120, 0.18), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(11, 134, 243, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(23, 32, 51, 0.97), rgba(35, 48, 67, 0.95));

  border: 1px solid rgba(246, 221, 120, 0.20);
  border-radius: 24px;
  box-shadow:
    var(--verein-shadow-soft),
    0 1px 0 rgba(255, 255, 255, 0.10) inset;

  position: relative;
  overflow: visible;
  z-index: 4;
}

.verein-image-card::before {
  content: none;
}

.verein-image-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;

  border: 1px solid rgba(246, 221, 120, 0.18);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);

  object-fit: contain;
  object-position: center;
}

.verein-image-card figcaption {
  margin: 0.85rem auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.verein-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 340px;
  width: 100%;
  box-sizing: border-box;

  color: rgba(23, 32, 51, 0.54);
  background:
    linear-gradient(135deg, rgba(210, 220, 231, 0.8), rgba(236, 242, 248, 0.9));
  border: 1px dashed rgba(76, 113, 148, 0.35);
  border-radius: 18px;

  font-size: 1rem;
  font-weight: 850;
  text-align: center;
}


/* ==========================================================
   08) Abschlussbereich
   ========================================================== */

.verein-legacy {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2.2rem, 3.4vw, 3rem) var(--site-gutter);
  box-sizing: border-box;

  background:
    radial-gradient(circle at 12% 22%, rgba(246, 221, 120, 0.16), transparent 28%),
    radial-gradient(circle at 90% 82%, rgba(11, 134, 243, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(23, 32, 51, 0.93), rgba(35, 48, 67, 0.91));

  border-top: 1px solid rgba(246, 221, 120, 0.24);
  border-bottom: 1px solid rgba(246, 221, 120, 0.12);

  position: relative;
  overflow: hidden;
}

.verein-legacy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(820px, 86vw);
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(246, 221, 120, 0.82),
    transparent
  );
}

.verein-legacy::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -5.5rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(246, 221, 120, 0.07);
  pointer-events: none;
}

.verein-legacy-inner {
  width: min(1120px, 100%);
  margin: 0 auto;

  text-align: center;

  position: relative;
  z-index: 1;
}

.verein-legacy .verein-section-kicker {
  color: var(--verein-gold);
}

.verein-legacy h2 {
  margin: 0 0 0.95rem;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.verein-legacy p {
  max-width: 980px;
  margin: 0 auto 0.9rem;
  color: rgba(255, 255, 255, 0.80);
  font-size: 1.04rem;
  line-height: 1.68;
}

.verein-legacy p:last-child {
  margin-bottom: 0;
}

.verein-footnote {
  margin-top: 1.25rem !important;
  color: rgba(246, 221, 120, 0.82) !important;
  font-size: 0.9rem !important;
  font-weight: 750;
}




/* ==========================================================
   08.5) Zitate im Abschlussbereich
   Stabiler Rotator mit No-JS-Fallback
   Desktop korrekt, Smartphone zeigt nie alle Zitate gleichzeitig
   ========================================================== */

.verein-legacy {
  padding:
    clamp(2.2rem, 3.4vw, 3rem)
    var(--site-gutter);
}

.verein-legacy-inner {
  position: relative;
  z-index: 2;
}

.verein-legacy-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);

  width: min(980px, 100%);
  margin: clamp(1.4rem, 2.3vw, 2rem) auto 0;
  padding: 0;
  box-sizing: border-box;

  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.verein-legacy-quote {
  width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;

  color: #fff;
  text-align: center;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.verein-legacy-quote-kicker {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 2.15rem;
  margin: 0 auto 0.85rem !important;

  color: rgba(246, 221, 120, 0.92) !important;
  font-size: clamp(0.68rem, 0.72vw, 0.78rem) !important;
  font-weight: 900;
  line-height: 1.2 !important;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.58),
    0 0 14px rgba(246, 221, 120, 0.18);
}

.verein-legacy-quote-kicker::after {
  content: "";
  display: block;

  width: clamp(4.2rem, 5.6vw, 6.8rem);
  height: 1px;
  margin-top: 0.62rem;

  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(246, 221, 120, 0.78),
    rgba(255, 255, 255, 0.50),
    rgba(246, 221, 120, 0.78),
    transparent
  );

  box-shadow:
    0 0 10px rgba(246, 221, 120, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.35);
}

.verein-legacy-quote-rotator {
  position: relative;
  min-height: clamp(5.8rem, 5.8vw, 7.1rem);
  margin-top: 0;
}

/* Sicherer Grundzustand:
   Ohne JS oder bei Ladefehlern wird niemals die komplette Liste angezeigt. */
.verein-legacy-quote-item {
  display: none;
  margin: 0;
}

.verein-legacy-quote-item.is-active,
.verein-legacy-quote-item:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;

  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Erweiterter Zustand nach erfolgreichem JS-Start:
   Erst dann werden die Items absolut übereinandergelegt und weich gefadet. */
.verein-legacy-quote-rotator.is-ready .verein-legacy-quote-item {
  display: flex;
  flex-direction: column;
  justify-content: center;

  position: absolute;
  inset: 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);

  transition:
    opacity 1.65s ease,
    visibility 1.65s ease,
    transform 1.65s ease;
}

.verein-legacy-quote-rotator.is-ready .verein-legacy-quote-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.verein-legacy-quote blockquote {
  margin: 0 auto;

  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(0.82rem, 0.86vw, 0.96rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.46;
  letter-spacing: 0.012em;
  text-align: center;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.72),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 255, 255, 0.08);
}

.verein-legacy-quote figcaption {
  display: block;

  margin-top: 0.48rem;

  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.68rem, 0.68vw, 0.76rem);
  font-style: normal;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.015em;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.62),
    0 0 14px rgba(0, 0, 0, 0.24);
}

/* Nur wenn wirklich genug Platz vorhanden ist:
   Zitate wieder links und rechts im Balken platzieren. */
@media (min-width: 2200px) {
  .verein-legacy {
    padding:
      clamp(2.2rem, 3.4vw, 3rem)
      max(var(--site-gutter), clamp(3rem, 4vw, 5.5rem));
  }

  .verein-legacy-quotes {
    display: block;

    position: absolute;
    inset: 0;

    width: auto;
    margin: 0;
    padding: 0;

    pointer-events: none;
  }

  .verein-legacy-quote {
    position: absolute;
    top: 50%;
    bottom: auto;

    width: clamp(300px, 16vw, 370px);

    transform: translateY(-50%);
    pointer-events: auto;
  }

  .verein-legacy-quote-left {
    left: clamp(3rem, 4vw, 5.8rem);
  }

  .verein-legacy-quote-right {
    right: clamp(3rem, 4vw, 5.8rem);
  }
}

@media (max-width: 700px) {
  .verein-legacy-quotes {
    grid-template-columns: 1fr;
    gap: 1.05rem;
    margin-top: 1.25rem;
    padding: 0;
  }

  .verein-legacy-quote-kicker {
    min-height: 0;
    margin-bottom: 0.75rem !important;
    white-space: normal;
  }

  .verein-legacy-quote-rotator {
    min-height: 7.4rem;
  }

  .verein-legacy-quote blockquote {
    font-size: 0.88rem;
    line-height: 1.48;
  }
}

@media (prefers-reduced-motion: reduce) {
  .verein-legacy-quote-rotator.is-ready .verein-legacy-quote-item {
    transition: none;
  }
}


/* ==========================================================
   09) Hover / Fokus
   ========================================================== */

.verein-button:focus-visible {
  outline: 3px solid rgba(242, 212, 107, 0.72);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .verein-button:hover {
    transform: translateY(-1px);
  }

  .verein-button-primary:hover {
    color: var(--verein-dark);
    background: var(--verein-gold);
    border-color: var(--verein-gold);
    box-shadow:
      0 10px 22px rgba(0, 0, 0, 0.22),
      0 1px 0 rgba(255, 255, 255, 0.36) inset;
  }

  .verein-button-secondary:hover {
    color: var(--verein-dark);
    background: var(--verein-gold);
    border-color: var(--verein-gold);
  }

  .verein-timeline-item:hover .verein-timeline-dot {
    transform: rotate(45deg) scale(1.08);
    border-color: rgba(246, 221, 120, 0.80);
    box-shadow:
      0 0 0 4px rgba(236, 242, 248, 0.92),
      0 10px 20px rgba(23, 32, 51, 0.18),
      0 0 0 7px rgba(246, 221, 120, 0.08);
  }
}


/* ==========================================================
   10) Große / normale Desktop-Ansicht
   ========================================================== */

@media (max-width: 1800px) {
  .verein-main {
    --verein-width: min(1600px, calc(100% - (var(--site-gutter) * 2)));
  }
}


/* ==========================================================
   11) Tablet
   ========================================================== */

@media (max-width: 1100px) {
  .verein-image-grid {
    grid-template-columns: 1fr;
  }

  .verein-image-copy::after,
  .verein-image-card::before {
    display: none;
  }

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

  .verein-image-copy {
    order: 1;
  }

  .verein-image-card {
    order: 2;
  }

  .verein-image-copy::after,
  .verein-image-grid::after {
    display: none;
  }
}


/* ==========================================================
   12) Mobil
   ========================================================== */

@media (max-width: 700px) {
  .verein-main {
    --verein-width: calc(100% - (var(--site-gutter) * 2));
    --verein-page-padding-top: 2rem;
    --verein-page-padding-bottom: 4rem;
  }

  .verein-hero {
    padding: 1.85rem 1rem;
    border-radius: var(--radius-large);
  }

  .verein-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
    line-height: 1.06;
  }

  .verein-hero-text {
    font-size: 1rem;
    line-height: 1.62;
  }

  .verein-hero-actions {
    margin-top: 1.55rem;
  }

  .verein-button {
    width: 100%;
  }

  .verein-facts {
    grid-template-columns: 1fr;
    gap: 0.72rem;
    margin-top: 1.7rem;
  }

  .verein-story {
    margin-top: 2.6rem;
  }

  .verein-image-copy {
    padding: 1.35rem;
    border-radius: var(--radius-large);
  }

  .verein-story-head h2,
  .verein-image-copy h2,
  .verein-legacy h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
  }

  .verein-story-head p,
  .verein-image-copy p,
  .verein-legacy p {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .verein-story-head {
    margin-bottom: 2rem;
  }

  .verein-timeline::before {
    left: calc(1.05rem - 1.5px);
    top: 0.9rem;
    bottom: 0.9rem;
    width: 3px;
  }

  .verein-timeline::after {
    left: calc(1.05rem - 0.5px);
    top: 1.1rem;
    bottom: 1.1rem;
  }

  .verein-timeline-item::before {
    top: 0.95rem;
    left: 1.62rem;
    width: 1.35rem;
  }

  .verein-timeline-item {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    column-gap: 0.9rem;
    padding-bottom: 2rem;
  }

  .verein-timeline-year {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
    margin-bottom: 0.58rem;
    font-size: 0.86rem;
  }

  .verein-timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: center;
    width: 0.86rem;
    height: 0.86rem;
    margin-top: 0.52rem;
    border-width: 1px;
    border-radius: 0.2rem;
    box-shadow:
      0 0 0 4px rgba(236, 242, 248, 0.88),
      0 6px 12px rgba(23, 32, 51, 0.13);
  }

  .verein-timeline-dot::before {
    inset: 0.22rem;
  }

  .verein-timeline-content {
    grid-column: 2;
    grid-row: 2;
    padding-bottom: 1.45rem;
  }

  .verein-timeline-content h3 {
    font-size: 1.35rem;
    padding-top: 0.58rem;
  }

  .verein-timeline-content p {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .verein-image-section {
    margin-top: 2.6rem;
  }

  .verein-image-card {
    padding: 0.55rem;
    border-radius: var(--radius-large);
  }

  .verein-image-card img,
  .verein-image-placeholder {
    border-radius: 16px;
  }

  .verein-image-placeholder {
    min-height: 240px;
  }

  .verein-legacy {
    margin-top: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}


/* ==========================================================
   13) Querformat auf kleinen Geräten
   Keine abgeschnittenen Inhalte, keine Sticky-Probleme
   ========================================================== */

@media (orientation: landscape) and (max-width: 980px) {
  .verein-main {
    --verein-page-padding-top: 1.2rem;
  }

  .verein-hero {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
  }

  .verein-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
  }

  .verein-hero-text {
    font-size: clamp(0.88rem, 1.7vw, 1rem);
    line-height: 1.5;
  }

  .verein-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.35rem;
  }

  .verein-fact {
    padding: 0.75rem 0.55rem;
  }

  .verein-fact dt {
    font-size: clamp(1.2rem, 3vw, 1.65rem);
  }

  .verein-fact dd {
    font-size: 0.74rem;
  }

}



@media (max-width: 700px) {
  .verein-history-background {
    --verein-history-bg-width: min(1200px, 94vw);
    --verein-history-bg-repeat-height: 40rem;
    margin-top: 0;
    padding-top: 2.6rem;
    padding-bottom: 3rem;
  }

  .verein-history-background::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--verein-history-bg-width);
    transform: translateX(-50%);
    opacity: 0.24;
    background-size: 100% auto;
    background-position: center top;

    -webkit-mask-image: repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 1) 30rem,
      rgba(0, 0, 0, 0.82) 35rem,
      rgba(0, 0, 0, 0.62) 40rem
    );
    mask-image: repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 1) 30rem,
      rgba(0, 0, 0, 0.82) 35rem,
      rgba(0, 0, 0, 0.62) 40rem
    );
  }

  .verein-history-background::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--verein-history-bg-width);
    transform: translateX(-50%);
    background:
      linear-gradient(
        180deg,
        rgba(236, 242, 248, 0.88) 0%,
        rgba(236, 242, 248, 0.78) 58%,
        rgba(236, 242, 248, 0.36) 100%
      );
  }
}

/* ==========================================================
   14) Reduzierte Bewegung
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .verein-button,
  .verein-timeline-dot {
    transition: none;
  }

  .verein-button:hover,
  .verein-timeline-item:hover .verein-timeline-dot {
    transform: none;
  }
}


