/* =========================================================
   Samariterverein – styles.css (REWRITTEN / BEAUTIFIED)
   - clean structure + stable responsive behavior
   - supports .slide.active AND .slide.is-active
   - keeps Links page cards (.linksGrid / .linkGroup / .linkItem)
   - supports page header image (.pageImage)
   - BEAUTIFUL partner logos next to title (.pageHeader + .partnerLogos + .logoBadge)
   - accessibility: focus-visible + reduced-motion
   ========================================================= */

/* ---------- THEME ---------- */
:root{
  --bg: #f7f7f7;
  --card: #ffffff;
  --line: #e6e6e6;

  --text: #1f1f1f;
  --muted: #666666;

  --accent: #d40000;
  --accentSoft: rgba(212,0,0,0.10);

  --radius: 18px;
  --radiusSm: 14px;

  --shadow: 0 12px 28px rgba(0,0,0,0.10);
  --shadowSm: 0 8px 18px rgba(0,0,0,0.08);

  --container: 1100px;

  --logoH: 90px;
  --logoMaxW: 260px;
}

/* ---------- BASE / RESET ---------- */
*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Better keyboard focus */
:focus{ outline: none; }
:focus-visible{
  outline: 3px solid rgba(212,0,0,0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- LAYOUT HELPERS ---------- */
.container,
.pageContainer{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 4px solid var(--accent);
}

/* Support both class names used across pages */
.headerRow,
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.logoBox{
  display: flex;
  align-items: center;
  gap: 10px;
}

.logoBox__img{
  height: var(--logoH);
  width: auto;
  max-width: var(--logoMaxW);
  object-fit: contain;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

/* =========================================================
   NAV
   ========================================================= */
.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.navBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.navBtn:hover{
  background: #f0f0f0;
  border-color: #ededed;
}

/* Active state (both names supported) */
.navBtn.isActive,
.navBtn.active{
  color: var(--accent);
  background: var(--accentSoft);
  border-color: rgba(212,0,0,0.22);
}

/* =========================================================
   HERO (HOME SLIDESHOW)
   ========================================================= */
.teamHero{
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #000;
}

.slideshow{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 900ms ease, transform 6s ease;
  will-change: opacity, transform;
}

.slide.active,
.slide.is-active{
  opacity: 1;
  transform: scale(1.1);
}

.teamHero__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18),
    rgba(0,0,0,0.55)
  );
}

.teamHero__content{
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 46px 0;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.teamHero__content h1{
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.teamHero__content p{
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 60ch;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* =========================================================
   IMAGE SECTIONS
   ========================================================= */
.imageSection{
  padding: 60px 0;
  background: #f5f5f5;
}

.imageContainer{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.imageContainer img{
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.aboutImage{
  margin: 40px 0;
  text-align: center;
}

.aboutImage img{
  width: 100%;
  max-width: 860px;
  border-radius: 14px;
  box-shadow: var(--shadowSm);
  border: 1px solid var(--line);
}

/* =========================================================
   PAGE CONTENT
   ========================================================= */
.pageContent{ padding: 40px 0 64px; }
main.pageContent{ display: block; }

.pageContainer h1,
.pageContainer h2{
  margin: 0 0 10px;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.pageContainer p{ margin: 0 0 18px; }

.introText{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 75ch;
}

.smallMuted{
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}

/* =========================================================
   PAGE HEADER (title row + BEAUTIFUL partner logos)
   HTML example:
   <div class="pageHeader">
     <h1>...</h1>
     <div class="partnerLogos">
       <div class="logoBadge"><img ...></div>
       <div class="logoBadge"><img ...></div>
     </div>
   </div>
   ========================================================= */
.pageHeader{
  display: flex;
  align-items: flex-start;     /* nicer with big H1 */
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.pageHeader h1,
.pageHeader h2{ margin: 0; }

.partnerLogos{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 4px; /* optical alignment with H1 */
}

/* "badge" look for logos (works for <div> or <a>) */
.partnerLogos .logoBadge,
.partnerLogos a.logoBadge{
  display: grid;
  place-items: center;
  width: 92px;
  height: 72px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.partnerLogos img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (hover:hover){
  .partnerLogos .logoBadge:hover,
  .partnerLogos a.logoBadge:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.09);
    border-color: rgba(212,0,0,0.18);
  }
}

/* =========================================================
   PAGE HEADER IMAGE (e.g. Links page)
   ========================================================= */
.pageImage{
  margin: 16px 0 6px;
  text-align: center;
}

.pageImage img{
  width: 100%;
  max-width: 980px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadowSm);
  object-fit: cover;
}

/* =========================================================
   HOME: optional gallery teaser
   ========================================================= */
.galleryPreview{
  padding: 80px 0;
  background: #fff;
}

.galleryPreview h2{
  margin: 0 0 10px;
  color: var(--accent);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.galleryPreview .galleryGrid{ margin-top: 26px; }

/* =========================================================
   INFO GRID (HOME "Über uns")
   ========================================================= */
.infoGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.infoCard{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
  padding: 16px;

  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  align-items: start;
}

.infoIcon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accentSoft);
  border: 1px solid rgba(212,0,0,0.18);
  font-size: 20px;
}

.infoCard h3,
.infoCard p{ grid-column: 2 / -1; }

.infoCard h3{
  margin: 2px 0 6px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
}

.infoCard p{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

/* =========================================================
   SHARED CARD WRAPPER
   ========================================================= */
.contentCard{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
  padding: 16px;
}

/* =========================================================
   LINKS PAGE
   ========================================================= */
.linksGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.linkGroup{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
  overflow: hidden;
}

.linkGroup__head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accentSoft), rgba(255,255,255,0));
}

.linkGroup__head h2{
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
}

.linkList{
  display: grid;
  gap: 10px;
  padding: 14px 14px 16px;
}

.linkItem{
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;

  padding: 12px;
  border-radius: var(--radiusSm);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);

  transition: transform 140ms ease, background 180ms ease, border-color 180ms ease;
}

.linkIcon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accentSoft);
  border: 1px solid rgba(212,0,0,0.18);
  font-size: 20px;
}

.linkText{ min-width: 0; }

.linkTitle{
  font-weight: 900;
  color: var(--text);
  letter-spacing: .15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkUrl{
  margin-top: 2px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkArrow{
  font-weight: 950;
  color: rgba(0,0,0,0.55);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
}

@media (hover:hover){
  .linkItem:hover{
    border-color: rgba(212,0,0,0.18);
    background: rgba(212,0,0,0.06);
    transform: translateY(-1px);
  }
  .linkItem:hover .linkArrow{
    color: var(--accent);
    border-color: rgba(212,0,0,0.22);
    background: rgba(212,0,0,0.08);
  }
}

.linkItem:focus-visible{
  outline: 3px solid rgba(212,0,0,0.35);
  outline-offset: 3px;
  border-radius: var(--radiusSm);
}

/* =========================================================
   VORSTAND / NOTFALLNUMMERN
   ========================================================= */
.boardList,
.emergencyList{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.boardRow,
.emergencyRow{
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  align-items: center;

  padding: 12px 12px;
  border-radius: var(--radiusSm);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
}

.boardRole,
.emergencyName{
  font-weight: 900;
  letter-spacing: .15px;
  color: var(--text);
}

.boardName,
.emergencyNumber{
  text-align: right;
  font-weight: 700;
  color: rgba(0,0,0,0.78);
}

.emergencyNumber{ font-variant-numeric: tabular-nums; }

@media (hover:hover){
  .boardRow:hover,
  .emergencyRow:hover{
    border-color: rgba(212,0,0,0.18);
    background: rgba(212,0,0,0.06);
  }
}

/* =========================================================
   KURSE PAGE
   ========================================================= */
.hero{
  background: linear-gradient(180deg, var(--accentSoft), rgba(255,255,255,0));
  padding: 42px 0 26px;
}

.heroGrid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 16px;
  align-items: stretch;
}

.heroText h1{
  margin: 0 0 10px;
  color: var(--accent);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1.1;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.heroActions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.heroCard{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
  padding: 16px;
}

.heroCard h2{
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text);
}

.heroCard p{
  margin: 0 0 12px;
  color: var(--muted);
}

.heroImage{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadowSm);
  background: #fff;
  min-height: 100%;
}

.heroImage img{
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.checkList{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.checkList li{
  position: relative;
  padding-left: 28px;
  font-weight: 700;
  color: rgba(0,0,0,.78);
}

.checkList li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accentSoft);
  border: 1px solid rgba(212,0,0,0.18);
  font-weight: 900;
}

.section{ padding: 18px 0 56px; }

.sectionHeader{
  margin: 6px 0 18px;
  max-width: 80ch;
}

.sectionHeader h2{
  margin: 0 0 8px;
  color: var(--accent);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.sectionHeader p{
  margin: 0;
  color: var(--muted);
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  user-select: none;
}

.btn:active{ transform: translateY(1px); }

.btnPrimary{
  background: var(--accent);
  color: #fff;
  border-color: rgba(212,0,0,0.35);
  box-shadow: 0 10px 22px rgba(212,0,0,0.18);
}
.btnPrimary:hover{ filter: brightness(0.96); }

.btnGhost{
  background: #fff;
  color: var(--accent);
  border-color: rgba(212,0,0,0.28);
}
.btnGhost:hover{ background: var(--accentSoft); }

.btnLink{
  background: transparent;
  color: var(--accent);
  padding-left: 8px;
  padding-right: 8px;
}
.btnLink:hover{ text-decoration: underline; }

.scheduleCard{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
  padding: 16px;
  margin: 14px 0 18px;
}

.scheduleTitle{
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--text);
}

.prettyList{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.prettyList li{
  position: relative;
  padding-left: 28px;
  font-weight: 750;
  color: rgba(0,0,0,0.78);
}

.prettyList li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accentSoft);
  border: 1px solid rgba(212,0,0,0.18);
  font-weight: 950;
}

.miniSchedule{ display: grid; gap: 10px; }

.miniRow{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: baseline;

  padding: 12px;
  border-radius: var(--radiusSm);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.miniDate{
  font-weight: 950;
  color: var(--text);
  white-space: nowrap;
}

.miniText{
  font-weight: 750;
  color: rgba(0,0,0,0.78);
}

@media (hover:hover){
  .miniRow:hover{
    border-color: rgba(212,0,0,0.18);
    background: rgba(212,0,0,0.06);
  }
}

/* =========================================================
   JUNGSAMARITER
   ========================================================= */
.tabs{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.tabBtn{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  color: var(--text);
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease;
}

.tabBtn:hover{
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.14);
}

.tabBtn:active{ transform: translateY(1px); }

.tabBtn.isActive,
.tabBtn.active{
  color: var(--accent);
  background: var(--accentSoft);
  border-color: rgba(212,0,0,0.22);
}

.tabPanel,
.tabContent{
  display: none;
  margin-top: 10px;
}

.tabPanel.isActive,
.tabPanel.active,
.tabContent.isActive,
.tabContent.active{
  display: block;
}

.contentGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.niceList{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}
.niceList li{ margin: 6px 0; }

.tabHeading{
  margin: 6px 0 12px;
  color: var(--accent);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.programTable{
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.programRow{
  display: grid;
  grid-template-columns: 170px 120px 1fr;
  gap: 14px;
  align-items: center;

  padding: 12px;
  border-radius: var(--radiusSm);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
}

.programWhen{ font-weight: 900; }
.programWhere{ font-weight: 800; color: rgba(0,0,0,0.70); }
.programWhat{ font-weight: 700; color: rgba(0,0,0,0.82); }

.isMutedRow{
  background: rgba(212,0,0,0.06);
  border-color: rgba(212,0,0,0.14);
}

/* =========================================================
   JAHRESPROGRAMM HERO (background image)
   ========================================================= */
.yearHero{
  position: relative;
  min-height: 320px;
  background: url("images/samariter_rucksack.jpg") center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.yearHero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.20),
    rgba(0,0,0,0.60)
  );
}

.yearHero__content{
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
  color: #fff;
}

.yearHero__content h1{
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  text-shadow: 0 8px 24px rgba(0,0,0,0.40);
}

.yearHero__content p{
  margin: 0;
  opacity: .9;
  font-size: 1.1rem;
}

/* =========================================================
   JAHRESPROGRAMM TIMELINE
   ========================================================= */
.yearGrid{
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.yearBlock{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
  overflow: hidden;
}

.yearBlock__head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accentSoft), rgba(255,255,255,0));
}

.yearBlock__head h2{
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
}

.timeline{
  position: relative;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.timeline::before{
  content: "";
  position: absolute;
  left: 28px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: rgba(212,0,0,0.18);
  border-radius: 2px;
}

.eventCard{
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;

  padding: 14px 14px 14px 54px;
  border-radius: var(--radiusSm);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.eventCard::before{
  content: "";
  position: absolute;
  left: 21px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212,0,0,0.12);
}

.eventMeta{
  display: grid;
  gap: 6px;
  align-content: start;
}

.eventDate{
  font-weight: 950;
  color: var(--text);
  line-height: 1.2;
}

.eventTime{
  font-weight: 800;
  color: rgba(0,0,0,0.70);
  font-variant-numeric: tabular-nums;
}

.eventTitle{
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.eventNote{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accentSoft);
  border: 1px solid rgba(212,0,0,0.18);
}

.obligatory{
  font-weight: 950;
  color: var(--text);
}

.yearNote{ padding: 0 16px 16px; }
.yearNote p{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

@media (hover:hover){
  .eventCard:hover{
    background: rgba(212,0,0,0.06);
    border-color: rgba(212,0,0,0.18);
  }
}

/* =========================================================
   GALERIE – grid + lightbox
   ========================================================= */
.gallerySection{ margin-top: 10px; }

.galleryHeading{
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.15;
}

.galleryGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.galleryItem{
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
  overflow: hidden;
  cursor: zoom-in;
}

.galleryItem img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.galleryItem:hover img{ transform: scale(1.03); }

.galleryItem figcaption{
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}

.lightbox.isOpen{ display: flex; }

.lightboxImg{
  max-width: min(1000px, 92vw);
  max-height: 78vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background: #111;
}

.lightboxCaption{
  margin: 12px 0 0;
  color: rgba(255,255,255,0.88);
  font-weight: 650;
  text-align: center;
  max-width: min(900px, 92vw);
}

.lightboxClose{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightboxClose:hover{ background: rgba(255,255,255,0.16); }

/* =========================================================
   KONTAKT PAGE – Bild/Box seitlich
   ========================================================= */
.contactGrid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.contactImage{
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadowSm);
  margin-top: 10px;
}

.addressBox{
  margin: 0 0 12px;
  color: rgba(0,0,0,0.78);
  font-weight: 650;
}

.infoRow{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radiusSm);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  margin-top: 10px;
}

.infoLabel{
  font-weight: 900;
  color: var(--text);
}

.infoValue{
  color: rgba(0,0,0,0.78);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
}

.footerRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.muted{ color: var(--muted); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .slide{ transition: none; transform: none; }
  .slide.active,
  .slide.is-active{ transform: none; }

  .navBtn,
  .btn,
  .galleryItem img,
  .linkItem{
    transition: none;
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px){
  .infoGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teamHero{ min-height: 340px; }
  .teamHero__content{ padding: 34px 0; }
  .galleryGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root{ --logoH: 78px; --logoMaxW: 240px; }
}

@media (max-width: 900px){
  .heroGrid{ grid-template-columns: 1fr; }
  .heroImage{ order: -1; }

  .contentGrid{ grid-template-columns: 1fr; }
  .programRow{ grid-template-columns: 1fr; gap: 6px; }
  .programWhere{ opacity: .85; }

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

  .contactGrid{ grid-template-columns: 1fr; }
  .contactImage{ max-width: 420px; }
}

@media (max-width: 720px){
  .eventCard{ grid-template-columns: 1fr; }
  .timeline::before{ left: 22px; }
  .eventCard{ padding-left: 46px; }
  .eventCard::before{ left: 15px; }

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

  .partnerLogos{
    justify-content: flex-start;
  }

  .partnerLogos .logoBadge,
  .partnerLogos a.logoBadge{
    width: 78px;
    height: 62px;
    border-radius: 14px;
  }
}

@media (max-width: 640px){
  .boardRow,
  .emergencyRow{ grid-template-columns: 1fr; gap: 6px; }
  .boardName,
  .emergencyNumber{ text-align: left; }

  .miniRow{ grid-template-columns: 1fr; gap: 6px; }
  .miniDate{ white-space: normal; }
}

@media (max-width: 560px){
  .infoGrid{ grid-template-columns: 1fr; }
  .galleryGrid{ grid-template-columns: 1fr; }
  .galleryItem img{ height: 240px; }

  .headerRow,
  .header__inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .teamHero__content h1{ font-size: 2rem; }
  :root{ --logoH: 70px; --logoMaxW: 230px; }

  .nav{ justify-content: flex-start; }
  .footerRow{ flex-direction: column; align-items: flex-start; }
}
