/* ================================================================
   KG Echte Fründe Oberhausen 2009 e.V. – Frontend Styles
   Hauptfarbe: #22a7d2
   ================================================================ */

/* ─── Reset & Basis ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #22a7d2;
  --primary-dark:  #1a8ab0;
  --primary-text:  #0c7aa8;
  --primary-light: #d6f1fb;
  --accent:        #ff6b00;
  --text:          #2c2c2c;
  --text-light:    #666;
  --bg:            #f5f7fa;
  --white:         #ffffff;
  --border:        #dde3ea;
  --shadow:        0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.12);
  --radius:        10px;
  --radius-lg:     16px;
  --transition:    .25s ease;
  --nav-height:    72px;
  --font:          'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ─── Skip-Link (unsichtbar bis Tab-Fokus) ───────────────────── */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: .75rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: .5rem 1.25rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 10000;
  background: var(--primary-text);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ─── Fokus-Styles (WCAG 2.4.7) ─────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Elemente mit eigenem Hintergrund: kontrastreicheres Outline */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.page-btn:focus-visible,
.lb-close:focus-visible,
.lb-prev:focus-visible,
.lb-next:focus-visible,
.member-lb-close:focus-visible,
.ig-consent-btn:focus-visible,
.desc-expand-btn:focus-visible,
.sessionsheft-btn:focus-visible,
.sessionsorden-img-btn:focus-visible,
#pdf-modal-close:focus-visible,
#nav-toggle:focus-visible,
.mobile-sub-toggle:focus-visible,
.gallery-item:focus-visible,
.member-card--clickable:focus-visible,
.nav-logo:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(34,167,210,.2);
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ─── Navigation ─────────────────────────────────────────────── */
#site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text .name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-text);
  white-space: nowrap;
}

.nav-logo-text .subtitle {
  font-size: .72rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* Desktop-Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-links a.active {
  border-bottom: 2px solid var(--primary);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Dropdown-Menü */
.nav-links .has-dropdown {
  position: relative;
}

.nav-links .has-dropdown > a {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.dropdown-arrow {
  font-size: .75rem;
  transition: transform var(--transition);
  line-height: 1;
  flex-shrink: 0;
  opacity: .7;
}

/* Top-Level-Pfeil dreht sich beim Hover nach oben (nur direktes Kind) */
.nav-links > li.has-dropdown:hover > a > .dropdown-arrow,
.nav-links > li.has-dropdown:focus-within > a > .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  list-style: none;
  padding: .4rem 0;
  padding-top: calc(.4rem + 4px);
  z-index: 200;
  animation: fadeDown .15s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-links li.has-dropdown:hover > .dropdown-menu,
.nav-links li.has-dropdown:focus-within > .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: .45rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 0;
  white-space: nowrap;
  transition: background var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-bottom: none;
  border-radius: 0;
}

/* Multi-Level: ab 3. Ebene öffnet das Dropdown nach rechts */
.dropdown-menu li.has-dropdown {
  position: relative;
}

.dropdown-menu li.has-dropdown > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

/* Verschachtelte Items: a als Flex damit Pfeil rechtsbündig landet */
.dropdown-menu li.has-dropdown > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

/* Pfeil zeigt nach rechts und dreht sich nicht beim Hover des Elternmenüs */
.dropdown-menu li.has-dropdown > a > .dropdown-arrow {
  transform: rotate(-90deg);
  margin-left: auto;
}

/* Mobile Sub-Nav */
.mobile-sub {
  list-style: none;
  padding: 0 0 .25rem 1rem;
  border-left: 3px solid var(--primary-light);
  margin: .25rem 0 .25rem .5rem;
}

/* Spezifischer als .nav-mobile ul { display: flex } */
.nav-mobile ul.mobile-sub       { display: none; }
.nav-mobile ul.mobile-sub.open  { display: flex; }

.mobile-sub a {
  display: block;
  padding: .35rem .75rem;
  font-size: .88rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.mobile-sub a:hover,
.mobile-sub a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}


.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-toggle:hover { background: var(--primary-light); }

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile-Nav */
body.nav-open { overflow: hidden; }

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: .75rem 1rem;
  z-index: 999;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.nav-mobile a {
  display: block;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { background: var(--primary-light); color: var(--primary-dark); }

/* Mobile-Nav-Zeile (Link + Toggle-Button) */
.mobile-nav-row {
  display: flex;
  align-items: center;
}

.mobile-nav-row > a {
  flex: 1;
}

.mobile-sub-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  transition: background var(--transition), transform .25s ease;
}

.mobile-sub-toggle:hover { background: var(--primary-light); }
.mobile-sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }

/* ─── Hero-Banner ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0e6a8a 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25) url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Haupt-Content ──────────────────────────────────────────── */
#main-content {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 1.5rem 3rem;
}

/* Seiten-Karte */
.page-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem 3rem;
}

/* Inhalts-Typografie */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--primary-dark);
  margin-bottom: .75rem;
  margin-top: 1.75rem;
  line-height: 1.3;
}

.page-content h1 { font-size: 2rem; }
.page-content h2 { font-size: 1.5rem; }
.page-content h3 { font-size: 1.25rem; }

.page-content p  { margin-bottom: 1rem; }
.page-content ul,
.page-content ol { margin: 0 0 1rem 1.5rem; }
.page-content li { margin-bottom: .3rem; }

.page-content strong { color: var(--primary-dark); font-weight: 700; }

.page-content a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover { color: var(--primary-dark); }

.page-content blockquote {
  border-left: 4px solid var(--primary);
  padding: .75rem 1.25rem;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  color: var(--primary-dark);
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.page-content th,
.page-content td {
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.page-content th { background: var(--primary); color: #fff; }
.page-content tr:nth-child(even) td { background: var(--primary-light); }

.page-content img {
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

/* ─── PDF-Block ──────────────────────────────────────────────── */
.pdf-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}

.pdf-block:hover {
  background: #dbeafe;
  border-left-color: var(--primary-dark);
}

.pdf-block-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.pdf-block-body {
  flex: 1;
  min-width: 0;
}

.pdf-block-title {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .15rem;
}

.pdf-block-meta {
  font-size: .8rem;
  color: var(--text-light);
}

.pdf-block-arrow {
  flex-shrink: 0;
  color: var(--primary-text);
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .page-content img {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem auto !important;
  }
}

/* Seiten-Fehler */
.not-found {
  text-align: center;
  padding: 4rem 2rem;
}

.not-found .icon { font-size: 4rem; margin-bottom: 1rem; }
.not-found h1 { color: var(--primary-text); margin-bottom: .5rem; }
.not-found p  { color: var(--text-light); }

/* ─── Footer-Wrap (Skyline + Footer als Einheit) ─────────────── */
#footer-wrap {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ─── Skyline-Trenner ────────────────────────────────────────── */
.footer-skyline {
  line-height: 0;
  font-size: 0;
  overflow: hidden;
}

.footer-skyline svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--text);
}

/* ─── Footer ─────────────────────────────────────────────────── */
#site-footer {
  background: var(--text);
  color: #ccc;
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: .875rem;
  margin-top: -2px; /* Sub-Pixel-Spalt zwischen SVG und Footer schließen */
}

#site-footer a { color: var(--primary-light); }
#site-footer a:hover { color: var(--white); }
#site-footer .footer-links { margin-bottom: .5rem; }
#site-footer .footer-links a { margin: 0 .5rem; }

.footer-sponsors {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-sponsors-label {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: .85rem;
}

.footer-sponsors-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
}

.footer-sponsor-item {
  display: inline-flex;
  align-items: center;
  transition: opacity .2s;
}

a.footer-sponsor-item:hover { opacity: .75; }

.footer-sponsor-item img {
  height: 70px;
  max-width: 180px;
  object-fit: contain;
  transition: opacity .2s;
}

a.footer-sponsor-item:hover img { opacity: 1; }

.footer-sponsor-name {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  font-weight: 600;
}

/* ─── Brot-Krümel ────────────────────────────────────────────── */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary-text); }
.breadcrumb a:hover { text-decoration: none; }
.breadcrumb .sep { color: #bbb; }

/* ─── Mitglieder-Übersicht (Gruppen-Karten) ─────────────────── */
.members-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.members-group-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.members-group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.members-group-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  margin: -1.75rem -1.25rem 1rem;
  width: calc(100% + 2.5rem);
}

.members-group-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.members-group-card:hover .members-group-photo img {
  transform: scale(1.04);
}

.members-group-icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
}

.members-group-header-photo {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin: -2.5rem -3rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.members-group-header-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.members-group-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .4rem;
}

.members-group-desc {
  font-size: .82rem;
  color: var(--text-light);
  margin: 0 0 .6rem;
  line-height: 1.4;
}

.members-group-count {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: auto;
  padding-top: .5rem;
}

/* Beschreibungstext auf Unterseite */
.members-group-description {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.desc-collapsible {
  max-height: 160px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

.desc-collapsible::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.desc-expand-wrap {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: .25rem 0 1.75rem;
}

.desc-expand-wrap::before,
.desc-expand-wrap::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.desc-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--primary-text);
  border-radius: 20px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-text);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.desc-expand-btn:hover {
  background: var(--primary);
  color: #fff;
}

.desc-expand-arrow {
  display: inline-block;
  transition: transform .3s ease;
  font-size: .75rem;
}

.desc-expand-arrow--up {
  transform: rotate(180deg);
}

.btn-back {
  display: inline-block;
  padding: .45rem 1.1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.btn-back:hover {
  background: var(--primary);
  color: #fff;
}

/* ─── Mitglieder-Seite ──────────────────────────────────────── */
.members-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.members-nav-link {
  display: inline-block;
  padding: .4rem 1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-weight: 600;
  font-size: .88rem;
  transition: background var(--transition), color var(--transition);
}

.members-nav-link:hover {
  background: var(--primary);
  color: #fff;
}

.members-section {
  margin-bottom: 2.5rem;
}

.members-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
  padding-left: .75rem;
  margin-bottom: 1.25rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.member-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--primary-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-photo img.member-photo-logo-placeholder {
  object-fit: contain;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
}

.member-photo-placeholder {
  font-size: 3rem;
  line-height: 1;
}

.member-info {
  padding: .75rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.member-name {
  font-size: .95rem;
  line-height: 1.3;
}

.member-position {
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.3;
}

.member-card--clickable {
  cursor: pointer;
}

.member-company {
  margin-top: .35rem;
  padding-top: .35rem;
  border-top: 1px solid var(--border);
}

.member-company-link {
  display: inline-block;
  text-decoration: none;
}

.member-company-link:hover .member-company-logo {
  opacity: .75;
}

.member-company-logo {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: opacity .15s;
}

.member-company-name {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* ─── Mitglieder-Lightbox ────────────────────────────────────── */
.member-lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.member-lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.member-lb-close:hover {
  background: rgba(255,255,255,.3);
}

.member-lb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(800px, 92vw);
  width: 100%;
}

.member-lb-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.member-lb-info {
  margin-top: 1.25rem;
  text-align: center;
  color: #fff;
}

.member-lb-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.member-lb-pos {
  display: block;
  font-size: .95rem;
  opacity: .75;
  margin-top: .3rem;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .page-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius);
  }

  .members-group-header-photo {
    margin: -1.5rem -1.25rem 1.25rem;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .hero { padding: 2.5rem 1rem; }
}

@media (max-width: 480px) {
  #main-content { padding: 0 .75rem 2rem; }
  .nav-inner { padding: 0 1rem; }
  .nav-logo-text .subtitle { display: none; }
}

/* ─── Print ──────────────────────────────────────────────────── */
@media print {
  #site-header, #site-footer { display: none; }
  .page-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ─── Scroll-Reveal Animation ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Wartungsmodus-Banner (eingeloggte Admins/Editoren) ──────── */
#maintenance-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #d97706;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .6rem 1rem;
  text-align: center;
}

#maintenance-banner button {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: .85rem;
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

#maintenance-banner button:hover {
  background: rgba(0,0,0,.4);
}

/* ─── Galerie ────────────────────────────────────────────────── */
.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.gallery-card-thumb {
  height: 200px;
  background: var(--primary-light);
  overflow: hidden;
}

.gallery-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-card:hover .gallery-card-thumb img {
  transform: scale(1.04);
}

.gallery-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-text);
}

.gallery-card-info {
  padding: 1rem 1.1rem;
}

.gallery-card-info h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .25rem;
  color: var(--text);
}

.gallery-count {
  font-size: .82rem;
  color: var(--text-light);
}

/* ─── Einzel-Galerie ──────────────────────────────────────────── */
.gallery-description {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--primary-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .78rem;
  padding: .4rem .6rem;
  opacity: 0;
  transition: opacity .2s;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ─── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lb-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lb-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.lb-caption {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  margin: .5rem 0 .2rem;
}

.lb-counter {
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  margin: 0;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,.25);
}

.lb-close { top: 1rem;  right: 1rem; font-size: 1rem; }
.lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }

.btn-back {
  display: inline-block;
  color: var(--primary-text);
  text-decoration: none;
  font-weight: 600;
}

.btn-back:hover { text-decoration: none; }

@media (max-width: 600px) {
  .galleries-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .gallery-grid   { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ─── Instagram Zwei-Klick-Widget ────────────────────────────── */
.ig-widget-card {
  margin-top: 1.5rem;
}

/* Platzhalter */
#ig-placeholder {
  text-align: center;
  padding: 2.5rem 1rem;
}

.ig-placeholder-inner {
  max-width: 480px;
  margin: 0 auto;
}

.ig-logo {
  width: 48px;
  height: 48px;
  fill: #c13584;
  display: block;
  margin: 0 auto .75rem;
}

.ig-logo-sm {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ig-handle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .75rem;
}

.ig-notice {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.ig-consent-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .65rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}

.ig-consent-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* Geladener Inhalt */
.ig-content-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.ig-profile-link {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  flex: 1;
}

.ig-profile-link:hover { text-decoration: none; }

.ig-visit-btn {
  font-size: .85rem;
  color: var(--primary-text);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: .25rem .8rem;
  transition: background var(--transition), color var(--transition);
}

.ig-visit-btn:hover {
  background: var(--primary);
  color: #fff;
}

.ig-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.ig-post {
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  overflow: hidden;
}

.ig-revoke {
  text-align: center;
  margin-top: 1.25rem;
}

.ig-revoke button {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: .78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ig-revoke button:hover { color: var(--danger); }

@media (max-width: 600px) {
  .ig-posts-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   NEWS – Karten, Artikel, Startseiten-Block
   ================================================================ */

/* ─── News-Grid ─────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.news-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ─── News-Card ─────────────────────────────────────────────── */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.news-card-link { display: block; }

.news-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--primary-light);
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.news-card:hover .news-card-thumb img { transform: scale(1.04); }

.news-card-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .55rem;
  flex-wrap: wrap;
}

.news-card-date {
  font-size: .78rem;
  color: var(--text-light);
}

.news-card-author {
  font-size: .78rem;
  color: var(--primary-text);
  font-weight: 600;
}

.news-card-author::before { content: '✍ '; }

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .55rem;
}

.news-card-title a {
  color: var(--text);
  text-decoration: none;
}

.news-card-title a:hover { color: var(--primary); }

.news-card-excerpt {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-text);
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--transition);
}

.news-card-read-more:hover { gap: .6rem; color: var(--primary-dark); }

/* ─── Startseiten-News-Block ────────────────────────────────── */
.homepage-news {
  margin: 2rem 0 0;
}

.homepage-news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--primary-light);
}

.homepage-news-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.homepage-news-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-text);
  white-space: nowrap;
}

.homepage-news-more:hover { color: var(--primary-dark); }

/* ─── Einzelartikel ─────────────────────────────────────────── */
.news-article { overflow: hidden; padding: 0 !important; }

.news-article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--primary-light);
}

.news-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-article-body { padding: 2rem; }

.news-article-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text);
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-size: .88rem;
}

.news-meta-author,
.news-meta-date {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.news-meta-author { color: var(--primary-text); font-weight: 600; }

.news-article-excerpt {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.news-article-content {
  line-height: 1.8;
  font-size: 1rem;
}

.news-article-content h2 { font-size: 1.4rem; margin: 1.5rem 0 .6rem; }
.news-article-content h3 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; }
.news-article-content p  { margin-bottom: 1rem; }
.news-article-content ul,
.news-article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.news-article-content img { border-radius: var(--radius); margin: 1rem auto; }

/* ─── Paginierung ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 .6rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .news-grid,
  .news-grid--home { grid-template-columns: 1fr; }
  .news-article-body { padding: 1.25rem; }
  .news-article-title { font-size: 1.35rem; }
  .homepage-news-header { flex-direction: column; gap: .4rem; }
}

/* ─── Sessionshefte ─────────────────────────────────────────── */
.sessionshefte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.sessionsheft-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.sessionsheft-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.sessionsheft-cover {
  display: block;
  aspect-ratio: 148 / 210;
  overflow: hidden;
  background: #fff;
}

.sessionsheft-cover-btn {
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
}

.sessionsheft-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}

.sessionsheft-card:hover .sessionsheft-cover img {
  transform: scale(1.04);
}

.sessionsheft-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sessionsheft-cover-placeholder svg {
  width: 70%;
  height: auto;
}

.sessionsheft-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}

.sessionsheft-year {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary-text);
}

.sessionsheft-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--heading);
  line-height: 1.3;
}

.sessionsheft-actions {
  display: flex;
  gap: .4rem;
  margin-top: .6rem;
  flex-wrap: wrap;
}

.sessionsheft-btn {
  display: inline-block;
  padding: .3rem .65rem;
  border: none;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.sessionsheft-btn-primary {
  background: var(--primary);
  color: #fff;
}

.sessionsheft-btn-primary:hover {
  background: var(--primary-dark, #8b0000);
  color: #fff;
}

.sessionsheft-btn-secondary {
  background: var(--bg-secondary, #f3f4f6);
  color: var(--text);
}

.sessionsheft-btn-secondary:hover {
  background: var(--border);
}

@media (max-width: 500px) {
  .sessionshefte-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ─── Sessionsorden ──────────────────────────────────────────── */
.sessionsorden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.sessionsorden-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.sessionsorden-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.sessionsorden-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
}

.sessionsorden-img-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}

.sessionsorden-card:hover .sessionsorden-img-btn img {
  transform: scale(1.04);
}

.sessionsorden-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 2.5rem;
}

.sessionsorden-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}

.sessionsorden-year {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary-text);
}

.sessionsorden-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--heading);
  line-height: 1.3;
}

@media (max-width: 500px) {
  .sessionsorden-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ─── Scroll-to-top ──────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(34,167,210,.4);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
#scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34,167,210,.5);
}
#scroll-top[hidden] { display: none; }

/* ─── Social Icons (Footer) ───────────────────────────────────── */
.footer-social {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
}

.social-icon:hover {
  color: #fff;
  transform: translateY(-2px);
}

.social-icon--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-icon--facebook:hover  { background: #1877f2; }
.social-icon--tiktok:hover    { background: #010101; }
.social-icon--youtube:hover   { background: #ff0000; }
.social-icon--whatsapp:hover  { background: #25d366; }
.social-icon--x:hover         { background: #000; }
