/* ═══════════════════════════════════════════════════════════════════════════
   layout.css – Fotokreis Südliche Weinstraße
   Designgetreue Layout-Stile aus design/startseite-entwurf.html
   Header, Hero, Filmstrip, Jubiläum, Galerie-Mosaik, Termine, Team, Footer
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 4vw;
  background: rgba(234, 230, 218, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.logo-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.logo-mark .lg-top {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.logo-mark .lg-bottom {
  font-size: 0.6rem;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
}

nav.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav.main-nav a {
  font-size: 0.92rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  color: var(--ink);
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a:focus-visible::after,
nav.main-nav a.active::after {
  width: 100%;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed;
    inset: 0;
    top: 60px;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 6vw;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--line);
    z-index: 99;
  }
  nav.main-nav.open {
    transform: translateY(0);
  }
  nav.main-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    width: 100%;
  }
  .burger {
    display: block;
  }
}

/* ---------- Buttons & Typo ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border-radius: 2px;
}
.btn-solid {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
}
.btn-solid:hover {
  background: #D4A047;
}
.btn-outline {
  border-color: rgba(234, 230, 218, 0.6);
  color: var(--paper);
}
.btn-outline:hover {
  border-color: var(--paper);
  background: rgba(234, 230, 218, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #1C1B18;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  z-index: 1;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 27, 24, 0.12) 0%, rgba(28, 27, 24, 0.82) 100%);
  pointer-events: none;
  z-index: 3;
  transition: background 0.8s ease;
}
.hero.hero-has-light-bg::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.68) 100%);
}
.hero-content {
  position: relative;
  z-index: 4;
  color: var(--paper);
  padding: 0 4vw 3rem;
  max-width: 760px;
  transition: color 0.4s ease;
}
.hero-content .eyebrow {
  color: var(--amber);
  transition: color 0.4s ease;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  margin: 0.4rem 0 1rem;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.hero-content p {
  font-size: 1.05rem;
  max-width: 52ch;
  color: #EDE9DD;
  margin: 0 0 1.6rem;
  line-height: 1.6;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* Dynamische Kontrastmodi für "Licht einfangen, seit 45 Jahren." */
.hero-content.is-light-bg h1 {
  color: #1C1B18 !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
.hero-content.is-light-bg p {
  color: #2C2B28 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}
.hero-content.is-light-bg .eyebrow {
  color: #8C531B !important;
  font-weight: 700;
}
.hero-content.is-light-bg .btn-outline {
  color: #1C1B18;
  border-color: #1C1B18;
  background: rgba(255, 255, 255, 0.65);
}
.hero-content.is-light-bg .btn-outline:hover {
  background: #1C1B18;
  color: #FFFFFF;
}

.hero-content.is-dark-bg h1 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-content.is-dark-bg p {
  color: #EDE9DD !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Filmstrip (signature element) ---------- */
.filmstrip-wrap {
  background: var(--film);
  padding: 0.9rem 0;
  position: relative;
  z-index: 3;
}
.filmstrip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0 4vw;
}
.frame {
  flex: 0 0 auto;
  width: 150px;
  margin-right: 10px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--paper);
  position: relative;
}
.frame-sprockets {
  display: flex;
  justify-content: space-between;
  padding: 0 6px 4px;
}
.frame-sprockets span {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--paper);
  opacity: 0.35;
}
.frame img {
  height: 84px;
  width: 100%;
  object-fit: cover;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
  display: block;
}
.frame.active img {
  opacity: 1;
  border-color: var(--amber);
}
.frame:hover img {
  opacity: 0.9;
}
.frame-cap {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: #B9C2AC;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame.active .frame-cap {
  color: var(--paper);
}

/* ---------- Section Shell & Reveal ---------- */
section {
  padding: 5.5rem 4vw;
}
.section-head {
  max-width: 640px;
  margin-bottom: 2.6rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0.3rem 0 0.6rem;
  color: var(--ink);
}
.section-head p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Anniversary Band ---------- */
.anniversary {
  background: var(--film);
  color: var(--paper);
  padding: 4.5rem 4vw;
  position: relative;
}
.anniversary-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.anniversary-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(4.5rem, 11vw, 8rem);
  line-height: 0.85;
  color: var(--amber);
}
.anniversary-text h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 0.8rem;
  color: var(--paper);
}
.anniversary-text p {
  color: #D8D3C4;
  max-width: 60ch;
  margin: 0 0 1.4rem;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .anniversary-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* ---------- Gallery Mosaic ---------- */
.gallery-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.95rem;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.2s ease;
  border-radius: 2px;
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- Galerie-Ansichts-Umschalter (Alben vs. Mitglieder) ---------- */
.gallery-view-switcher {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 2.25rem;
  max-width: 540px;
  background: var(--paper-deep);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.view-switch-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.view-switch-btn:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}
.view-switch-btn.active {
  background: var(--ink);
  color: var(--amber);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 580px) {
  .gallery-view-switcher {
    border-radius: 8px;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.4rem;
  }
  .view-switch-btn {
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }
}

.year-filter-bar .filter-tab.active,
.year-filter-bar .filter-tab.is-selected,
.year-filter-bar .filter-tab[aria-selected="true"] {
  background: var(--ink) !important;
  color: var(--amber) !important;
  border-color: var(--amber) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 2px var(--amber) !important;
  position: relative;
  z-index: 2;
}

#monthFilterBar,
.month-filter-bar {
  display: none !important;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
#monthFilterBar.is-open,
.month-filter-bar.is-open {
  display: flex !important;
}
.month-filter-bar .filter-tab {
  font-size: 0.74rem;
  padding: 0.35rem 0.75rem;
  border-color: rgba(196, 90, 60, 0.3);
  background: var(--paper-deep);
}
.month-filter-bar .filter-tab.active,
.month-filter-bar .filter-tab:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

/* ---------- Alben-Abschnitte & Trennstriche in der Galerie ---------- */
.album-section {
  margin-top: 2.2rem;
}
.album-section-head {
  margin-bottom: 1.1rem;
  padding-bottom: 0.4rem;
}
.album-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--film);
  margin: 0;
}
.album-section-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-deep);
  font-weight: 600;
}
.album-section-desc {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.3rem 0 0;
  max-width: 75ch;
}
.album-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3.5rem 0 1.5rem;
  position: relative;
}
.album-divider::after {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 0.8rem;
  color: var(--amber-deep);
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALERIE & WETTBEWERBSARCHIV (Startseite-Layout)
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.gallery-search-input {
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.5rem 1rem;
  width: 280px;
  max-width: 100%;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.gallery-search-input:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 2px rgba(184, 115, 51, 0.2);
}
.gallery-search-bar .btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.gallery-search-bar .btn:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: #fff;
  transform: translateY(-1px);
}
.member-filter-bar .filter-tab.is-selected,
.member-filter-bar .filter-tab.active {
  background: var(--ink) !important;
  color: var(--amber) !important;
  border-color: var(--ink) !important;
  font-weight: 700 !important;
}

/* ---------- Mitglieder-Galerie Abschnitte & Banner ---------- */
.member-section {
  margin-top: 2.2rem;
}
.member-section-head {
  margin-bottom: 1.25rem;
}
.member-profile-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber-deep);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}
.member-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--amber);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-light, #f4e8cf);
  color: var(--amber-deep, #9e5b0e);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}
.member-info {
  flex: 1;
  min-width: 0;
}
.member-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--film);
  margin: 0;
  line-height: 1.2;
}
.member-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.member-meta .badge {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  color: var(--amber-deep);
  font-weight: 600;
}
.member-bio {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.4rem 0 0;
  max-width: 75ch;
}

@media (max-width: 600px) {
  .member-profile-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  grid-auto-rows: 190px;
}
.g-item {
  position: relative;
  overflow: hidden;
  grid-column: span 1;
  grid-row: span 1;
  border-radius: 2px;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background-color: var(--sand-soft, #ece8de);
}
.g-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  z-index: 2;
}
.g-item.tall {
  grid-row: span 2;
}
.g-item.wide {
  grid-column: span 2;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.g-item:hover img,
.g-item:focus-visible img {
  transform: scale(1.05);
}
.g-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.7rem;
  background: linear-gradient(0deg, rgba(28, 27, 24, 0.85), transparent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.g-item:hover .g-cap,
.g-item:focus-visible .g-cap,
.g-item:focus-within .g-cap {
  opacity: 1;
}
.g-item[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .g-item.wide {
    grid-column: span 2;
  }
}

.archive-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  color: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.archive-link:hover {
  color: var(--amber-deep);
  border-color: var(--amber-deep);
}

/* ---------- Termine Teaser ---------- */
.termine {
  background: var(--paper-deep);
}
.termine-card {
  display: flex;
  gap: 2.2rem;
  max-width: 900px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2.2rem;
  border-radius: 2px;
}
.termine-date {
  font-family: var(--font-mono);
  text-align: center;
  flex: 0 0 auto;
  border-right: 1px solid var(--line);
  padding-right: 2.2rem;
}
.termine-date .d-num {
  font-size: 2.6rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  color: var(--ink);
}
.termine-date .d-mon {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.termine-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.termine-body p {
  margin: 0 0 0.3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.termine-body .loc {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber-deep);
}
@media (max-width: 640px) {
  .termine-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .termine-date {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1.2rem;
    width: 100%;
  }
}

/* ---------- Team / Wir über uns ---------- */
.team-row {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scrollbar-width: thin;
}
.member-card {
  flex: 0 0 auto;
  width: 170px;
}
.member-card img,
.member-card .m-avatar {
  width: 170px;
  height: 170px;
  object-fit: cover;
  margin-bottom: 0.7rem;
  filter: grayscale(0.15);
  border-radius: 2px;
}
.member-card .m-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--film);
  border: 1px solid var(--line);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}
.member-card .m-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  color: var(--ink);
}
.member-card .m-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-deep);
  margin: 0.2rem 0 0;
}

/* ---------- Team-Grid (Kachelform mind. 2 nebeneinander) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 580px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 1.5rem;
  }
}
.member-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(0.65rem, 1.8vw, 1rem);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.member-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--amber-deep);
}
.member-tile-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 0.65rem;
  background: var(--film);
}
.member-tile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member-tile-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.member-tile .m-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: var(--ink);
  margin: 0 0 0.2rem;
  line-height: 1.25;
}
.member-tile .m-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.76rem);
  color: var(--amber-deep);
  margin: 0;
  line-height: 1.4;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 4vw 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.9rem;
}
.footer-grid p,
.footer-grid a {
  font-size: 0.9rem;
  color: #CFCABC;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}
.footer-grid a:hover {
  color: var(--paper);
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid #3A382F;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8B8779;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* ---------- Auth & Formulare (Login, 2FA, Passwort-Reset) ---------- */
.auth-wrapper {
  padding: 4rem 4vw;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 220px);
}
.auth-card,
.auth-container {
  max-width: 480px;
  width: 100%;
  margin: 3rem auto;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(28, 27, 24, 0.04);
}
.auth-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--film);
  margin: 0 0 0.5rem;
  text-align: center;
}
.auth-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 2rem;
  line-height: 1.5;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber-deep);
}
.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.form-check input[type="checkbox"] {
  accent-color: var(--film);
  width: 17px;
  height: 17px;
}
.form-check label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.btn-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--film);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-submit:hover {
  background: var(--film-soft);
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.alert-success {
  background: #E8F5E9;
  border: 1px solid #C8E6C9;
  color: #2E7D32;
}
.alert-error {
  background: #FFEBEE;
  border: 1px solid #FFCDD2;
  color: #C62828;
}
.alert-info {
  background: #E3F2FD;
  border: 1px solid #BBDEFB;
  color: #1565C0;
}
.alert-warning {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  color: #F57F17;
}
.auth-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Mitgliederbereich (Dashboard) ---------- */
.member-wrapper {
  max-width: 1080px;
  margin: 2rem auto 4rem;
  padding: 0 4vw;
}

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.member-header__info .eyebrow {
  margin-bottom: 0.35rem;
  display: block;
}

.member-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  color: var(--film);
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.member-header__subtitle {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

.member-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.badge--admin {
  background: var(--film);
  color: var(--paper);
}
.badge--trusted {
  background: #2E7D32;
  color: #FFFFFF;
}
.badge--member {
  background: var(--paper-deep);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  border: 1px solid transparent;
}
.btn-sm--admin {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
}
.btn-sm--admin:hover {
  background: #D4A047;
}
.btn-sm--outline {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--ink);
}
.btn-sm--outline:hover {
  background: var(--paper-deep);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}
@media (max-width: 900px) {
  .member-grid {
    grid-template-columns: 1fr;
  }
}

.member-card-action {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.member-card-action__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--film);
  margin: 0 0 0.4rem;
}
.member-card-action__text {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.member-card-action__footer {
  margin-top: 0.4rem;
}

.member-settings {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.member-settings__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--film);
  margin: 0 0 0.35rem;
}
.member-settings__subtitle {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.member-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .member-settings-grid {
    grid-template-columns: 1fr;
  }
}
.consent-box {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

/* ---------- Member Photo Grid (Pure Preview Overview) ---------- */
.member-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.member-photo-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #1C1B18;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.member-photo-tile:hover,
.member-photo-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--amber);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  outline: none;
}
.member-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member-photo-tile__empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.member-photo-tile__status {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
.status-indicator--approved {
  background: #2E7D32;
  color: #fff;
}
.status-indicator--pending {
  background: #F57F17;
  color: #fff;
}
.status-indicator--rejected {
  background: #C62828;
  color: #fff;
}
.member-photo-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 27, 24, 0.92) 0%, rgba(28, 27, 24, 0.3) 50%, transparent 100%);
  color: #fff;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}
.member-photo-tile:hover .member-photo-tile__overlay,
.member-photo-tile:focus-visible .member-photo-tile__overlay {
  opacity: 1;
}
.member-photo-tile__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-photo-tile__hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
  margin-top: 0.25rem;
}

/* ── 15. Lightbox / Galerie-Overlay ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 11, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  box-sizing: border-box;
  pointer-events: none;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 10;
  pointer-events: auto;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
  background: rgba(30, 28, 25, 0.65);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-btn {
  background: rgba(30, 28, 25, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  pointer-events: auto;
  padding: 0;
}

.lightbox-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.lightbox-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  pointer-events: auto;
}

.lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(85vh - 120px);
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(85vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-img.loading {
  opacity: 0.25;
  transform: scale(0.98);
}

.lightbox-meta {
  margin-top: 1rem;
  text-align: center;
  max-width: 800px;
  color: #ffffff;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.3rem 0;
  color: #ffffff;
}

.lightbox-details {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  letter-spacing: 0.04em;
}

.lightbox-caption {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0.5rem 0 0 0;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .lightbox-dialog {
    padding: 0.75rem 0.5rem;
  }
  .lightbox-prev {
    left: 0.4rem;
  }
  .lightbox-next {
    right: 0.4rem;
  }
  .lightbox-btn {
    width: 40px;
    height: 40px;
  }
  .lightbox-img-wrap {
    max-height: calc(75vh - 100px);
  }
  .lightbox-img {
    max-height: calc(75vh - 100px);
  }
  .lightbox-title {
    font-size: 1.15rem;
  }
  .lightbox-details {
    font-size: 0.75rem;
  }
}

/* ── 16. Unterseiten-Layout (Subpage) ───────────────────────────────────────── */
.subpage {
  padding: 3.5rem 4vw 5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.subpage-head {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
}

.subpage-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0.3rem 0 0.8rem;
  line-height: 1.15;
}

.subpage-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .subpage {
    padding: 2.5rem 4vw 3.5rem;
  }
  .subpage-head {
    margin-bottom: 2rem;
  }
}

/* ---------- Startseite: Aktueller Wettbewerb ---------- */
.current-contest-section {
  padding: 4.5rem 4vw 4.5rem;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.current-contest-section .section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.current-contest-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--film);
  margin: 0.2rem 0 0.5rem;
  line-height: 1.2;
}

.current-contest-meta {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--amber-deep);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.current-contest-desc {
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 720px;
}

@media (max-width: 768px) {
  .current-contest-section {
    padding: 3rem 4vw 3rem;
  }
}





