/* ==========================================================
   Balzers Aktiv · Stylesheet
   Farben und Schriften gemäss CD. Bitte nur hier anpassen.
   ========================================================== */

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/gilroy-regular.woff2") format("woff2"),
       url("../fonts/gilroy-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("../fonts/gilroy-medium.woff2") format("woff2"),
       url("../fonts/gilroy-medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* Jahrmarkt-Schrift (SIL Open Font License) */
@font-face {
  font-family: "Chelsea Market";
  src: url("../fonts/chelsea-market.woff2") format("woff2"),
       url("../fonts/chelsea-market.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Einheitliches Zwei-Spalten-Raster: überall gleiche Teilung */
:root {
  /* CD-Farben */
  --main-color-1: #002f53;   /* Navy */
  --main-color-2: #fbb900;   /* Gelb */
  --main-color-3: #afbddd;   /* Hellblau */
  --main-color-white: #ffffff;

  --line: rgba(175, 189, 221, .28);
  --jm-rot: #e23416;
  --abend: linear-gradient(180deg, #002f53 0%, #002f53 20%, #fbb900 66%);
  --text-soft: rgba(255, 255, 255, .8);

  --font: "Gilroy", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --col-gap: clamp(40px, 5vw, 72px);
  --top: clamp(40px, 6vw, 80px);   /* Abstand Header bis gelber Titel, überall gleich */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--main-color-1);
  color: var(--main-color-white);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 900px) { body { font-size: 18px; } }

img { max-width: 100%; height: auto; display: block; }
main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--main-color-2); color: var(--main-color-1); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kennzeichnung im CD-Stil: gelb, mit Punkt */
.eyebrow { display: block; color: var(--main-color-2); font-weight: 500; font-size: 1.1rem; line-height: 1.4; margin: 0 0 1rem; }

.lead { color: var(--text-soft); max-width: 60ch; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--main-color-1); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
@media (min-width: 900px) { .header-inner { min-height: 104px; } }

.logo { order: 2; display: block; }
.logo img { height: 40px; width: auto; }
@media (min-width: 900px) { .logo img { height: 50px; } }

.nav { order: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav a { text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--main-color-2); }

.nav-toggle {
  display: none; order: 1; appearance: none; border: 0; background: none; color: inherit;
  width: 44px; height: 44px; margin-left: -10px; padding: 11px 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.nav-toggle span + span { margin-top: 7px; }

@media (max-width: 819px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--main-color-1);
    padding: 4px var(--gutter) 24px; box-shadow: 0 1px 0 var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 0; font-size: 1.4rem; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ==========================================================
   Gutscheine
   ========================================================== */

.g-hero { padding: var(--top) 0 clamp(56px, 8vw, 104px); }

.g-hero .wrap { position: relative; }
.g-hero-grid { display: grid; gap: 28px; align-items: center; }
.g-hero h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.1; letter-spacing: -.015em; max-width: 17ch; }
.g-hero-img { width: 78%; max-width: 360px; justify-self: center; margin: -8px 0 -16px; }
@media (min-width: 900px) {
  .g-hero-grid { grid-template-columns: 1fr; }
  .g-hero-img {
    position: absolute; right: -2%; top: -10px; z-index: 0;
    width: min(46%, 540px); max-width: none;
    filter: drop-shadow(0 30px 40px rgba(0, 20, 40, .45));
  }
  .g-hero h1, .values { position: relative; z-index: 1; }
}

/* Die Werte als grosse Ziffern, wie auf dem gedruckten Gutschein */
.values {
  display: flex; align-items: flex-start; flex-wrap: nowrap;
  gap: 0 clamp(14px, 3.4vw, 52px);
  margin: clamp(28px, 5vw, 48px) 0 0;
  color: var(--main-color-2);
  font-weight: 500;
  font-size: clamp(3.4rem, 14.5vw, 11.5rem);
  line-height: .82;
  letter-spacing: -.045em;
  font-variant-numeric: lining-nums;
}
.values-cur {
  font-size: max(.95rem, .13em); letter-spacing: .02em; line-height: 1;
  padding-top: .35em; margin-right: -.2em;
  color: var(--main-color-2);
}

.g-info {
  display: grid; gap: 32px;
  margin-top: clamp(32px, 5vw, 56px); padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .g-info { grid-template-columns: 1fr 1fr; gap: var(--col-gap); } }
.g-intro { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; margin: 0; max-width: 34ch; }

.g-facts { margin: 0; display: grid; gap: 22px; }
@media (min-width: 600px) { .g-facts { grid-template-columns: 1fr 1fr; gap: 32px; } }
.g-facts dt { color: var(--main-color-2); font-weight: 500; margin-bottom: 6px; }
.g-facts dd { margin: 0; color: var(--text-soft); line-height: 1.5; }
.g-facts a { color: var(--main-color-white); }
.g-facts a:hover { color: var(--main-color-2); }

/* ---------- Annahmestellen ---------- */

.g-places { padding: clamp(24px, 4vw, 48px) 0 0; }

.places-head { display: grid; gap: 28px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) { .places-head { grid-template-columns: 1fr 1fr; gap: var(--col-gap); } }
.places-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.12; margin-bottom: 1.1rem; }
.places-head .lead { margin: 0; }

.search { position: relative; display: block; }
.search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; color: var(--main-color-2); pointer-events: none; }
.search input {
  width: 100%; appearance: none; -webkit-appearance: none; border-radius: 0;
  font: 500 clamp(1.1rem, 2vw, 1.3rem)/1.3 var(--font); color: var(--main-color-white);
  background: transparent; border: 0; border-bottom: 2px solid var(--main-color-3);
  padding: 12px 4px 12px 38px;
}
.search input::placeholder { color: rgba(175, 189, 221, .75); font-weight: 400; }
.search input:focus { outline: none; border-bottom-color: var(--main-color-2); }
.search input::-webkit-search-cancel-button { filter: invert(1) brightness(1.4); cursor: pointer; }
.count { margin: 10px 0 0; color: var(--main-color-3); font-size: .95rem; }

.group + .group { margin-top: clamp(48px, 7vw, 80px); }
.group[hidden] { display: none; }
.group-title {
  font-size: 1.15rem; color: var(--main-color-3);
  padding-bottom: 14px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}

/* Mitglieder: gross, mit Logo */
.members {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 36px 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .members { grid-template-columns: repeat(3, 1fr); gap: 44px 24px; } }
@media (min-width: 1000px) { .members { grid-template-columns: repeat(5, 1fr); } }
.member[hidden] { display: none; }

.member-logo { background: #fff; aspect-ratio: 1; margin-bottom: 14px; overflow: hidden; }
.member-logo a { display: block; height: 100%; }
.member-logo img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.member-logo a:hover img { transform: scale(1.04); }
.member-name { font-size: 1.05rem; line-height: 1.3; }
.member-meta { margin: 4px 0 0; color: var(--main-color-3); font-size: .92rem; line-height: 1.45; }
.member-web {
  display: inline-block; margin-top: 6px; font-size: .92rem;
  color: var(--main-color-2); text-decoration: none; border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}
.member-web:hover { color: var(--main-color-white); }

/* Weitere: schlichte Textliste */
.others {
  list-style: none; margin: 0; padding: 0;
  columns: 1; column-gap: 40px;
}
@media (min-width: 640px)  { .others { columns: 2; } }
@media (min-width: 1000px) { .others { columns: 3; } }
.others li { break-inside: avoid; padding: 0 0 14px; line-height: 1.35; }
.others li[hidden] { display: none; }
.others strong { display: block; font-weight: 500; }
.others span { color: var(--main-color-3); font-size: .92rem; }

.empty { display: none; margin: 0; padding: 32px 0; color: var(--text-soft); }
.empty.is-visible { display: block; }
.empty button { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--main-color-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* Hinweis für Geschäfte: gelbe Fläche */
.join {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--main-color-2); color: var(--main-color-1);
  padding: clamp(28px, 4vw, 44px);
  display: grid; gap: 22px; align-items: center;
}
@media (min-width: 820px) { .join { grid-template-columns: 1fr auto; gap: 48px; } }
.join h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; margin-bottom: 8px; }
.join p { margin: 0; max-width: 62ch; }

.btn {
  display: inline-block; justify-self: start;
  background: var(--main-color-1); color: var(--main-color-white);
  text-decoration: none; font-weight: 500; padding: 15px 26px 14px;
}
.btn:hover { background: #00406f; }

/* ---------- Footer ---------- */

.site-footer { background: var(--main-color-1); margin-top: clamp(80px, 11vw, 150px); }
.footer-band { background: #2b3a2a; }
.footer-band img { display: block; width: 100%; height: auto; }
.footer-inner { padding-top: 36px; padding-bottom: 44px; display: grid; gap: 24px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }
.slogan { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.2; }

.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.footer-links nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: var(--main-color-2); }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--main-color-white); }
.social a:hover { border-color: var(--main-color-2); color: var(--main-color-2); }
.social svg { width: 18px; height: 18px; }

/* ==========================================================
   Allgemeine Inhaltsseiten
   ========================================================== */

.page { padding: var(--top) 0 0; }
.page-title { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1; letter-spacing: -.015em; max-width: 22ch; margin-bottom: clamp(28px, 4vw, 44px); }
.lead-big { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; max-width: 36ch; margin-bottom: 1.2em; }

.prose p { color: var(--text-soft); }
.prose.cols { max-width: none; }
@media (min-width: 900px) { .prose.cols { columns: 2; column-gap: var(--col-gap); } .prose.cols p { break-inside: avoid; } }

.band { width: 100%; height: auto; min-height: 90px; object-fit: cover; margin: clamp(48px, 7vw, 88px) 0; }

.link-arrow { color: var(--main-color-2); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.link-arrow:hover { color: var(--main-color-white); }

.btn-yellow { background: var(--main-color-2); color: var(--main-color-1); }
.btn-yellow:hover { background: #ffc61f; }

/* ---------- Startseite: Gutschein ---------- */

.home-gs { background: #00284a; padding: clamp(56px, 8vw, 104px) 0; }
.home-gs-grid { display: grid; gap: 28px; align-items: center; }
.home-gs-grid img { width: 80%; max-width: 440px; justify-self: center; filter: drop-shadow(0 30px 40px rgba(0, 20, 40, .45)); }
@media (min-width: 900px) { .home-gs-grid { grid-template-columns: 1fr 1fr; gap: var(--col-gap); } .home-gs-grid img { width: 100%; } }
.home-gs h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); line-height: 1.15; max-width: 24ch; }
.home-gs-values { color: var(--main-color-2); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.04em; line-height: 1; margin: 24px 0 28px; word-spacing: .12em; }
.home-gs-values span { font-size: .3em; letter-spacing: .02em; vertical-align: top; position: relative; top: .25em; }

/* ---------- Kontakt / 404 ---------- */

.contact { padding-bottom: clamp(24px, 4vw, 48px); }
.contact-mail {
  display: inline-block; color: var(--main-color-2); font-weight: 500; text-decoration: none;
  font-size: clamp(1.8rem, 6.4vw, 4.6rem); letter-spacing: -.03em; line-height: 1.1;
  border-bottom: 3px solid currentColor; overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--main-color-white); }
.links-404 { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.links-404 a { color: var(--main-color-2); font-weight: 500; font-size: 1.2rem; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Downloads ---------- */

.dl-list { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; max-width: 900px; border-top: 1px solid var(--line); }
.dl {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.dl svg { width: 26px; height: 26px; color: var(--main-color-2); }
.dl-title { font-weight: 500; font-size: 1.1rem; }
.dl-size { color: var(--main-color-3); font-size: .92rem; white-space: nowrap; }
.dl:hover .dl-title { color: var(--main-color-2); }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 70ch; }
.legal h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; }
.legal h3 { font-size: 1.15rem; margin: 1.8em 0 .4em; }
.legal h4 { font-size: 1rem; margin: 1.4em 0 .3em; color: var(--main-color-3); }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal a { color: var(--main-color-2); }
.legal-dl { font-size: 1.1rem; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-navy { background: var(--main-color-1); color: var(--main-color-white); }
.btn-navy:hover { background: #00406f; }
.btn-ghost-navy { background: transparent; color: var(--main-color-1); box-shadow: inset 0 0 0 2px var(--main-color-1); }
.btn-ghost-navy:hover { background: var(--main-color-1); color: var(--main-color-white); }
.btn.btn-ghost { background: transparent; color: var(--main-color-white); box-shadow: inset 0 0 0 1.5px var(--main-color-3); }
.btn.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--main-color-2); color: var(--main-color-2); }

/* ==========================================================
   Startseite
   ========================================================== */

.home .hero {
  background: var(--abend); color: var(--main-color-1);
  min-height: calc(100svh - 104px);
  display: flex; align-items: flex-start;
  padding: var(--top) 0 clamp(48px, 7vw, 96px);
  position: relative; z-index: 1;
}
@media (max-width: 899px) { .home .hero { min-height: 0; background: linear-gradient(180deg, #002f53 0%, #002f53 10%, #fbb900 58%); } }
.hero-grid { display: grid; gap: 28px; align-items: center; width: 100%; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--col-gap); } }
.hero .eyebrow { color: var(--main-color-2); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; color: var(--main-color-white); }

/* Jahrmarkt-Titel wie im Jahrmarkt-Auftritt */
h1.jm { font-family: "Chelsea Market", var(--font); font-weight: 400; letter-spacing: .01em; line-height: .95; }
h1.jm span { display: block; }
.jm-1 { color: var(--jm-rot); }
.jm-2 { color: var(--main-color-white); }
.hero h1.jm { font-size: clamp(3rem, min(7.2vw, 10.5vh), 6.2rem); }
.hero-date { margin: clamp(16px, 2.4vh, 32px) 0 0; display: flex; flex-direction: column; font-weight: 500; letter-spacing: -.045em; }
.hero-date span:first-child { font-size: clamp(4.8rem, min(14vw, 20vh), 11.5rem); line-height: .8; margin-left: -.04em; }
.hero-date span:last-child { font-size: clamp(1.8rem, min(4.2vw, 6vh), 3.2rem); line-height: 1; letter-spacing: -.02em; margin-top: .22em; }
.hero-noch { margin: clamp(16px, 2.6vh, 28px) 0 0; color: var(--main-color-1); font-weight: 500; display: flex; align-items: center; gap: 10px; }
/* Variante A: Zahl */
.v-a .hero-noch { border-top: 2px solid var(--main-color-1); padding-top: 12px; display: inline-flex; align-items: baseline; }
.v-a .noch-n { font-size: clamp(2.2rem, 4.2vw, 3.2rem); letter-spacing: -.03em; line-height: 1; }
.v-a .noch-n b { font-weight: 500; }
.v-a .noch-pre, .v-a .noch-post { font-size: 1.1rem; }
/* Variante B: Anzeigetafel */
.v-b .noch-n { display: inline-flex; gap: 4px; }
.v-b .noch-n b {
  position: relative; display: inline-grid; place-items: center;
  width: 1.15em; height: 1.45em; font-size: clamp(1.6rem, min(3vw, 4.4vh), 2.3rem); font-weight: 500;
  background: var(--main-color-1); color: var(--main-color-2); border-radius: 4px; line-height: 1;
}
.v-b .noch-n b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #001c33; transform: translateY(-1px); }
.v-b .noch-n b::before { content: ""; position: absolute; inset: 0 0 50% 0; background: rgba(255, 255, 255, .06); border-radius: 4px 4px 0 0; }
.v-b .noch-pre, .v-b .noch-post { font-size: 1.15rem; }
/* Variante C: zurückhaltend als Zeile */
.v-c .hero-noch { font-size: 1.2rem; margin-top: 18px; }
.v-c .noch-n b { font-weight: 500; }
.v-c .noch-pre::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--jm-rot); margin-right: 10px; animation: puls 2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .v-c .noch-pre::before { animation: none; } }
.hero-sub { margin: clamp(14px, 2.2vh, 22px) 0 0; max-width: 34ch; font-size: 1.1rem; line-height: 1.5; }
.hero .btn-row { margin-top: clamp(18px, 3vh, 30px); }
.hero-img { width: 100%; max-width: 600px; justify-self: center; }
@media (min-width: 900px) { .hero-img { justify-self: start; } }
@media (min-width: 900px) { .hero-img { max-width: 640px; margin-bottom: -120px; align-self: center; position: relative; z-index: 2; } }
.hero-img-gs { max-width: 520px; filter: drop-shadow(0 30px 40px rgba(0, 47, 83, .35)); }
@media (min-width: 900px) { .hero-img-gs { margin-bottom: 0; align-self: center; } }
.hero-values { margin: 22px 0 0; font-weight: 500; font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -.045em; line-height: 1; word-spacing: .1em; }
.hero-values span { font-size: .28em; letter-spacing: .02em; vertical-align: top; position: relative; top: .3em; }

/* Ohne Veranstaltung übernimmt der Gutschein die Bühne */
.hero-event, .home-gs { display: none; }
.has-event .hero-event { display: grid; }
.has-event .hero-gs { display: none; }
.has-event .home-gs { display: block; }

.home-gs { background: #00284a; padding: 64px 0; }
@media (min-width: 900px) { .home-gs { padding: clamp(150px, 15vw, 220px) 0 clamp(64px, 8vw, 104px); } }

.home-about { padding: clamp(64px, 9vw, 120px) 0 0; }
.home-about-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .home-about-grid { grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: end; } }
.home-about-big { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -.01em; font-weight: 500; max-width: 26ch; }
.home-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.home-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 1.15rem; }
.home-links a::after { content: ""; float: right; width: 10px; height: 10px; margin-top: .45em; border-top: 2px solid var(--main-color-2); border-right: 2px solid var(--main-color-2); transform: rotate(45deg); }
.home-links a:hover { color: var(--main-color-2); }

/* Mitglieder-Laufband */
.marquee-sec { padding-top: clamp(64px, 9vw, 120px); }
.marquee-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.marquee-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--main-color-2); }
.marquee-head a { color: var(--main-color-2); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }
.marquee { display: flex; overflow: hidden; gap: 12px; }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex: none; animation: laufband 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { width: clamp(110px, 12vw, 150px); aspect-ratio: 1; background: #fff; flex: none; }
.marquee-track img { width: 100%; height: 100%; object-fit: contain; }
@keyframes laufband { to { transform: translateX(calc(-100% - 12px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; padding: 0 var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; }
  .marquee-track { animation: none; flex-wrap: wrap; }
  .marquee-track[aria-hidden] { display: none; }
}

/* ==========================================================
   Veranstaltungen
   ========================================================== */

.ev-list { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; gap: 18px 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.ev:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .ev { grid-template-columns: 260px 1fr 320px; align-items: start; } }
.ev-date { color: var(--main-color-2); font-weight: 500; font-size: 1.35rem; line-height: 1.1; text-decoration: none; }
.ev-date span { display: block; font-size: clamp(3.2rem, 7vw, 4.8rem); letter-spacing: -.045em; line-height: .9; margin-bottom: 6px; }
.ev-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 8px; }
.ev-body h2 a { text-decoration: none; }
.ev-body h2 a:hover { color: var(--main-color-2); }
.ev-body p { color: var(--text-soft); max-width: 48ch; }
.ev-meta { color: var(--main-color-3); }
.ev-body .btn-row { margin-top: 18px; }
.ev-img img { width: 100%; max-width: 320px; }
.ev-empty { padding: 8px 0 24px; }
.ev-empty p:last-child { color: var(--text-soft); max-width: 56ch; }
.ev-empty a { color: var(--main-color-2); }

.back { display: inline-block; color: var(--main-color-3); text-decoration: none; margin-bottom: 28px; font-weight: 500; }
.back::before { content: ""; display: inline-block; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 10px; position: relative; top: -2px; }
.back:hover { color: var(--main-color-2); }


/* ==========================================================
   Über uns
   ========================================================== */

.members-note { margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.members-note-grid { display: grid; gap: 16px var(--col-gap); }
@media (min-width: 900px) { .members-note-grid { grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); } }
.members-note h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.25; }
.members-note p { color: var(--text-soft); margin-bottom: .8em; }

.board { margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.people { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 28px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px)  { .people { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(5, 1fr); gap: 48px 32px; } }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 10px; }
.person img { margin-bottom: 14px; }
.person h3 { font-size: 1.1rem; line-height: 1.3; }
.person p { margin: 2px 0 0; color: var(--main-color-3); }

/* ---------- Detailseite ---------- */

.evd-hero { padding: var(--top) 0 clamp(48px, 7vw, 88px); }
.evd-hero.is-jm { background: var(--abend); }
.evd-hero .back { color: var(--main-color-3); }
.evd-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .evd-grid { grid-template-columns: 1fr 1fr; gap: var(--col-gap); } }
.evd-text h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; }
.evd-text h1.jm { font-size: clamp(3rem, min(7.2vw, 10.5vh), 6.2rem); line-height: .95; }
.evd-date { margin: 22px 0 0; font-weight: 500; letter-spacing: -.035em; line-height: .95; color: var(--main-color-2); }
.evd-date span:first-child { font-size: clamp(3.6rem, 10vw, 8rem); }
.evd-date span:last-child { font-size: clamp(1.6rem, 3.6vw, 2.8rem); letter-spacing: -.02em; }
.is-jm .evd-date { color: var(--main-color-1); }
.evd-hero .btn-row { margin-top: 28px; }
.evd-hero:not(.is-jm) .btn-navy { background: var(--main-color-2); color: var(--main-color-1); }
.evd-hero:not(.is-jm) .btn-ghost-navy { color: var(--main-color-white); box-shadow: inset 0 0 0 1.5px var(--main-color-3); }
.evd-img { width: 100%; max-width: 600px; justify-self: center; }
@media (min-width: 900px) { .evd-hero.is-jm .evd-img { margin-bottom: calc(-1 * clamp(48px, 7vw, 88px) - 60px); align-self: end; position: relative; z-index: 2; } }

.evd-motto {
  margin: clamp(56px, 8vw, 104px) 0 0; padding: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.2; letter-spacing: -.01em;
  color: var(--main-color-3); max-width: 30ch; font-weight: 500;
}
.evd-foto { width: 100%; max-height: 70vh; object-fit: cover; margin-top: clamp(48px, 7vw, 88px); }

.evd-info { display: grid; gap: 40px 64px; margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 900px) { .evd-info { grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); } }
.evd-info h2 { color: var(--main-color-2); font-size: 1.35rem; margin: 0 0 12px; }
.evd-info h2 + p { color: var(--text-soft); }
.evd-side h2:not(:first-child) { margin-top: 36px; }
.evd-zeit { padding: 12px 0; border-top: 1px solid var(--line); }
.evd-zeit h3 { font-size: 1rem; margin-bottom: 4px; }
.evd-zeit ul { list-style: none; margin: 0; padding: 0; color: var(--text-soft); font-size: .98rem; }
.evd-main p { color: var(--text-soft); font-size: 1.1rem; max-width: 62ch; }

.hero-quick { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.hero-quick a { color: var(--main-color-1); font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.hero-quick a:hover { border-bottom-width: 3px; }

.evd-back { margin: clamp(40px, 6vw, 72px) 0 0; }

/* Zurück-Link oben auf der Detailseite, an der Position des gelben Titels */
a.eyebrow-back { display: block; width: fit-content; text-decoration: none; }
a.eyebrow-back::before { content: ""; display: inline-block; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 10px; position: relative; top: -2px; }
a.eyebrow-back:hover { color: var(--main-color-white); }

/* Mitglied ohne Logo */
.member-logo-leer { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12%; text-align: center; color: var(--main-color-1); font-family: "Gilroy", sans-serif; font-weight: 500; font-size: 1.1rem; line-height: 1.25; }
