/* ══════════════════════════════════════════════════════════════
   MFC-Noris Website — Responsive CSS
   Design: Primary #0284c7, Accent #0369a1, BG #f5f7fa
   ══════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

/* ── Scroll-Fade-In ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #2c3e50;
}

a { color: #0284c7; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0369a1; }

img { max-width: 100%; height: auto; display: block; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(2,132,199,0.10);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-gradient-line {
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #0369a1);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: #0284c7; }

.logo-icon {
  font-size: 32px;
  color: #0284c7;
  transform: rotate(-30deg);
}

.logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 1.2rem; }
.logo-sub { font-size: 0.65rem; color: #666; letter-spacing: 0.5px; }

/* Navigation */
.main-nav { display: flex; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-item > a {
  display: block;
  padding: 8px 14px;
  color: #555;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item.active > a {
  background: rgba(2,132,199,0.08);
  color: #0284c7;
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  list-style: none;
  min-width: 220px;
  padding: 8px 0;
  z-index: 100;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: #555;
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}

.dropdown li a:hover {
  background: rgba(2,132,199,0.06);
  color: #0284c7;
}

/* Hamburger */
.hamburger {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}
.hamburger:hover { background: rgba(2,132,199,0.08); }
.hamburger .material-icons { font-size: 28px; color: #555; }

/* ── Mobile Nav Overlay ───────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav-content {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 280px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  padding: 20px 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav-overlay.open .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 12px; right: 12px;
  border: none; background: none; cursor: pointer;
  padding: 8px; border-radius: 50%;
}
.mobile-nav-close:hover { background: #f0f0f0; }
.mobile-nav-close .material-icons { font-size: 24px; color: #666; }

.mobile-nav-list {
  list-style: none;
  padding: 40px 0 0;
}

.mobile-nav-list li a {
  display: block;
  padding: 12px 24px;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav-list li a:hover { background: rgba(2,132,199,0.06); color: #0284c7; }

.mobile-section {
  padding: 16px 24px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Main ─────────────────────────────────────────────────── */
.site-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── Page Loading ─────────────────────────────────────────── */
.page-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.spinner {
  width: 40px; height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero Banner ──────────────────────────────────────────── */
.hero-banner {
  position: relative;
  height: 380px;
  border-radius: 16px;
  margin-bottom: 32px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #60a5fa 0%, #e0f2fe 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 22px 44px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  text-align: center;
  max-width: calc(100% - 48px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-banner h1 {
  font-size: 2.4rem;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-logo { display: none; }

.hero-video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity 0.2s, background 0.2s, transform 0.15s;
}

.hero-video-toggle:hover {
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.45);
  transform: scale(1.05);
}

.hero-video-toggle .material-icons {
  font-size: 16px;
}

/* ── Card Grid (Dashboard Style) ──────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(2,132,199,0.10);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.card-header .material-icons {
  color: #0284c7;
  font-size: 22px;
}

.card-header h3 {
  font-size: 1rem;
  color: #2c3e50;
  font-weight: 700;
}

.card-body { padding: 20px; }

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
}

.card-footer a {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Card spanning 2 cols */
.card-wide { grid-column: span 2; }

/* ── News Items in Card ───────────────────────────────────── */
.news-item {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.news-item:last-child { border-bottom: none; }

.news-item.has-thumb {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.news-item-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 66px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  background: #eef2f7;
}
.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.news-item-thumb:hover img { transform: scale(1.05); }
.news-item-body { min-width: 0; flex: 1; }

.news-item-date {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 4px;
}

.news-item-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c3e50;
  margin-bottom: 4px;
}
.news-item-title a { color: inherit; }
.news-item-title a:hover { color: #0284c7; }

.news-item-teaser {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* ── Weather Card ─────────────────────────────────────────── */
.weather-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.weather-temp {
  font-family: 'Roboto', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.weather-temp-unit { font-size: 1.5rem; color: #999; }

.weather-desc {
  font-size: 0.95rem;
  color: #666;
}

.weather-icon-large {
  font-size: 48px;
  color: #0284c7;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.weather-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #666;
}

.weather-detail .material-icons {
  font-size: 18px;
  color: #999;
}

/* ── Event Items ──────────────────────────────────────────── */
.event-next {
  text-align: center;
  padding: 8px 0;
}

.event-next-date {
  display: inline-block;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  min-width: 80px;
}

.event-next-day {
  font-family: 'Roboto', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.event-next-month {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-next-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
}

.event-next-location {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.event-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.event-compact:last-child { border-bottom: none; }

.event-compact-date {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}

.event-compact-day {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0284c7;
  display: block;
}

.event-compact-mon {
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
}

.event-compact-info { flex: 1; min-width: 0; }

.event-compact-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-compact-loc {
  font-size: 0.78rem;
  color: #999;
}

/* ── Photo Thumbnails Grid ────────────────────────────────── */
.photo-grid-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.photo-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #e0e0e0;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-thumb:hover img { transform: scale(1.08); }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-card {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  text-align: center;
  padding: 32px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.cta-card p { opacity: 0.9; margin-bottom: 16px; font-size: 0.95rem; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0284c7;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  color: #0369a1;
}

/* ── Page Content ─────────────────────────────────────────── */
.page-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 32px;
}

.content-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(2,132,199,0.10);
  padding: 32px;
  margin-bottom: 24px;
}

.content-card h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.content-card p { margin-bottom: 12px; color: #555; }

.content-card ul, .content-card ol {
  margin: 12px 0;
  padding-left: 24px;
  color: #555;
}

.content-card li { margin-bottom: 6px; }

/* ── Vorstand Grid ────────────────────────────────────────── */
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vorstand-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(2,132,199,0.10);
  padding: 24px;
  text-align: center;
}

.vorstand-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  overflow: hidden;
}

.vorstand-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.vorstand-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 4px;
}

.vorstand-funktion {
  font-size: 0.85rem;
  color: #0284c7;
  font-weight: 600;
  margin-bottom: 8px;
}

.vorstand-email {
  font-size: 0.82rem;
  color: #999;
}

/* ── Event List Page ──────────────────────────────────────── */
.event-list-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(2,132,199,0.10);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s;
}

.event-list-item:hover { transform: translateY(-1px); }

.event-list-date {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  min-width: 70px;
  flex-shrink: 0;
}

.event-list-day {
  font-family: 'Roboto', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.event-list-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.event-list-info { flex: 1; }

.event-list-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
}

.event-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.event-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-list-meta .material-icons { font-size: 16px; color: #999; }

.event-list-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* ── Photo Gallery Page ───────────────────────────────────── */
.album-section {
  margin-bottom: 32px;
}

.album-title {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0284c7;
  display: inline-block;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.gallery-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #e8e8e8;
  position: relative;
}

.gallery-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-photo:hover img { transform: scale(1.06); }

.gallery-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 8px 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-photo:hover .gallery-photo-overlay { opacity: 1; }

.gallery-photo-overlay span {
  color: #fff;
  font-size: 0.78rem;
}

/* ── Lightbox (mit Touch-Zoom & Swipe) ───────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 3000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: #fff;
  cursor: pointer; padding: 10px; border-radius: 50%;
  transition: background 0.2s; z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); }
.lightbox-close .material-icons { font-size: 28px; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.35); border: none; color: #fff;
  cursor: pointer; padding: 12px; border-radius: 50%;
  transition: background 0.2s; z-index: 10;
  backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.15); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-nav .material-icons { font-size: 36px; }

.lightbox-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none;
  -webkit-user-select: none; user-select: none;
}

.lightbox-media {
  display: flex; align-items: center; justify-content: center;
  max-width: 100%; max-height: 100%;
}

.lightbox-media img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center;
  gap: 16px; padding: 16px 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  z-index: 10; pointer-events: none;
}

.lightbox-caption {
  color: rgba(255,255,255,0.85); font-size: 0.88rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  margin: 0;
}

.lightbox-counter {
  color: rgba(255,255,255,0.5); font-size: 0.78rem;
  white-space: nowrap;
}

/* ── Diashow ─────────────────────────────────────────────── */
.slideshow-overlay {
  position: fixed; inset: 0; z-index: 3500;
  background: #000; display: none;
  flex-direction: column; align-items: center; justify-content: center;
}
.slideshow-overlay.open { display: flex; }

.slideshow-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ss-img {
  position: absolute;
  max-width: 100%; max-height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .8s ease;
}
.ss-img.ss-visible { opacity: 1; }
.ss-img.ss-entering { opacity: 0; }
.ss-img.ss-leaving { opacity: 0; }

.slideshow-progress {
  position: absolute; bottom: 0; left: 0;
  height: 3px; background: #0284c7;
  width: 0; z-index: 10;
}

.slideshow-controls {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); z-index: 10;
  display: flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 28px;
  transition: opacity .4s ease;
}
.slideshow-overlay.ss-hide-ui { cursor: none; }
.slideshow-overlay.ss-hide-ui .slideshow-controls,
.slideshow-overlay.ss-hide-ui .slideshow-info,
.slideshow-overlay.ss-hide-ui .slideshow-counter,
.slideshow-overlay.ss-hide-ui .slideshow-progress {
  opacity: 0; pointer-events: none;
}
.slideshow-btn {
  background: none; border: none; color: rgba(255,255,255,.8);
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.slideshow-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.slideshow-playpause { width: 48px; height: 48px; }
.slideshow-playpause .material-icons { font-size: 32px; }

.slideshow-info {
  position: absolute; bottom: 82px; left: 50%;
  transform: translateX(-50%); z-index: 10;
  color: rgba(255,255,255,.7); font-size: .8rem;
  text-align: center; white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  transition: opacity .4s ease;
}

.slideshow-counter {
  position: absolute; top: 14px; right: 16px; z-index: 10;
  color: rgba(255,255,255,.5); font-size: .75rem;
  transition: opacity .4s ease;
}

.btn-slideshow {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff; border: none; border-radius: 8px;
  padding: 8px 18px; font-size: .9rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: opacity .15s;
}
.btn-slideshow:hover { opacity: .85; }
.btn-slideshow .material-icons { font-size: 18px; }

/* ── Forms (Aufnahmeantrag, Kontakt) ──────────────────────── */
.form-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(2,132,199,0.10);
  padding: 32px;
  max-width: 700px;
}

.form-steps {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.form-step {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: #f5f7fa;
  font-weight: 600;
  font-size: 0.88rem;
  color: #999;
  transition: all 0.3s;
}

.form-step.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
}

.form-step-number {
  display: inline-block;
  width: 28px; height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  font-weight: 700;
  margin-right: 8px;
}

.form-step.active .form-step-number {
  background: rgba(255,255,255,0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 6px;
}

.form-group label .req { color: #f44336; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #333;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #0284c7;
}

.form-checkbox label {
  font-size: 0.88rem;
  color: #555;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

.form-section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-hint {
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(2,132,199,0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f5f7fa;
  color: #555;
  border: 1.5px solid #ddd;
}
.btn-secondary:hover { background: #eee; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Alert / Toast ────────────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #333;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 5000;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state .material-icons {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 12px;
}

.empty-state p { font-size: 0.95rem; }

/* ── Weather Page ─────────────────────────────────────────── */
.weather-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.weather-big-temp {
  font-family: 'Roboto', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.weather-big-unit { font-size: 2rem; color: #999; }

.weather-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.weather-detail-row:last-child { border-bottom: none; }

.weather-detail-row .material-icons {
  font-size: 24px;
  color: #0284c7;
}

.weather-detail-label {
  font-size: 0.85rem;
  color: #999;
}

.weather-detail-value {
  font-weight: 600;
  color: #2c3e50;
}

/* ── Beitraege Table ──────────────────────────────────────── */
.beitraege-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.beitraege-table th,
.beitraege-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.beitraege-table th {
  background: #f5f7fa;
  font-weight: 700;
  font-size: 0.85rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.beitraege-table td {
  font-size: 0.9rem;
  color: #555;
}

.beitraege-table tr:hover td {
  background: rgba(2,132,199,0.03);
}

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(2,132,199,0.1);
  color: #0284c7;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: #999;
  flex-wrap: wrap;
}

.breadcrumb a { color: #0284c7; }
.breadcrumb .sep { color: #ccc; }

/* ── News Detail Page ─────────────────────────────────────── */
.news-detail-header {
  margin-bottom: 24px;
}

.news-detail-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #999;
  margin-top: 8px;
  flex-wrap: wrap;
}

.news-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-detail-meta .material-icons { font-size: 16px; }

.news-detail-body {
  font-size: 1rem;
  line-height: 1.3;
  color: #444;
}

.news-detail-body p { margin: 0; }

.news-detail-body a {
  color: #0284c7;
  text-decoration: underline;
  cursor: pointer;
}

.news-detail-body a:hover {
  color: #0369a1;
}

.news-detail-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 24px;
  max-height: 400px;
  object-fit: cover;
}

/* ── Info Box ─────────────────────────────────────────────── */
.info-box {
  background: #e3f2fd;
  border-left: 4px solid #0284c7;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.info-box p { color: #333; margin: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #2c3e50;
  color: #ccc;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: #aaa;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: #0284c7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet (max 1024px) ──────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .vorstand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .weather-page-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 300px; }
}

/* ── Mobile (max 768px) ───────────────────────────────────── */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: block; }

  .header-inner { height: 56px; padding: 0 16px; }

  .site-main { padding: 20px 16px; }

  .hero-banner { height: 220px; border-radius: 12px; padding-top: 16px; }
  .hero-content { padding: 14px 20px; border-radius: 10px; }
  .hero-banner h1 { font-size: 1.45rem; }

  .card-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }

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

  .event-list-item { flex-direction: column; gap: 12px; }
  .event-list-date { flex-direction: row; gap: 8px; display: flex; align-items: center; min-width: auto; }
  .event-list-day { font-size: 1.3rem; }

  .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .form-card { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    padding: 20px 16px 16px;
  }
  .footer-col h4 { font-size: 0.85rem; margin-bottom: 8px; }
  .footer-col p,
  .footer-col ul li a { font-size: 0.78rem; line-height: 1.5; }
  .footer-col ul li { margin-bottom: 4px; }
  .footer-bottom { padding: 10px 16px; }
  .footer-bottom p { font-size: 0.72rem; }

  .page-title { font-size: 1.4rem; }

  .content-card { padding: 20px; }

  .beitraege-table th,
  .beitraege-table td { padding: 8px 10px; font-size: 0.82rem; }

  .form-steps { flex-direction: column; gap: 8px; }

  .lightbox-nav { padding: 8px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-nav .material-icons { font-size: 28px; }
  .lightbox-bottom { padding: 12px 16px; }
}

/* ── Small Mobile (max 480px) ─────────────────────────────── */
@media (max-width: 480px) {
  .logo-sub { display: none; }
  .weather-temp { font-size: 2.4rem; }
  .weather-big-temp { font-size: 3.5rem; }
  .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .event-list-meta { flex-direction: column; gap: 6px; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .lightbox, .slideshow-overlay, .mobile-nav-overlay { display: none; }
  .site-main { max-width: 100%; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* Event-Karten mit Titelbild */
.event-list-item.has-thumb { align-items: stretch; }
.event-list-thumb {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}
.event-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .event-list-thumb { width: 100px; }
}

/* Event-Detail Titelbild */
.event-detail-img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}
