/* ===== CSS Variables & Reset ===== */
:root {
  --red: #C8102E;
  --red-dark: #9B0A1E;
  --red-light: #E8394A;
  --white: #FFFFFF;
  --off-white: #FAF5F5;
  --gray-light: #F2E8E8;
  --gray: #6B6B6B;
  --gray-dark: #333333;
  --black: #1A1A1A;
  --shadow: 0 4px 20px rgba(200, 16, 46, 0.12);
  --shadow-hover: 0 8px 32px rgba(200, 16, 46, 0.2);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--black);
  line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--red-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar i {
  margin-right: 4px;
}

/* Facebook / Instagram oben rechts */
.top-bar-right a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.top-bar-right a:hover {
  background: var(--white);
  color: var(--red-dark);
}

.top-bar-right i { margin-right: 0; }

/* Facebook / Instagram im Ausklapp-Menue (nur mobil sichtbar) */
.nav-social { display: none; }

/* ===== Soziale Netzwerke (Kontaktseite) ===== */
.social-bereich {
  max-width: 680px;
  margin: 48px auto 0;
  text-align: center;
}

.social-bereich h3 { margin-bottom: 8px; }

.social-bereich > p {
  color: var(--gray);
  margin-bottom: 24px;
}

.social-karten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.social-karte {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  border: 2px solid transparent;
}

.social-karte:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.social-facebook:hover { border-color: #1877F2; }
.social-instagram:hover { border-color: #D62976; }

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.social-facebook .social-icon { background: #1877F2; }
.social-instagram .social-icon { background: linear-gradient(45deg, #FEDA75, #FA7E1E 25%, #D62976 50%, #962FBF 75%, #4F5BD5); }

.social-text { display: flex; flex-direction: column; min-width: 0; }
.social-text strong { color: var(--black); }
.social-text span { font-size: 0.85rem; color: var(--gray); overflow-wrap: break-word; }

.social-pfeil { margin-left: auto; color: var(--gray); font-size: 0.85rem; }

@media (max-width: 560px) {
  .social-karten { grid-template-columns: 1fr; }
}

/* ===== Navbar ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--red);
}

.nav-brand img {
  height: 55px;
  width: auto;
}

.nav-brand span {
  line-height: 1.2;
}

.nav-brand .brand-sub {
  display: block;
  font-size: 0.7rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-dark);
  border-radius: 8px;
  position: relative;
  letter-spacing: 0.2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: rgba(200, 16, 46, 0.06);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="80" r="1.5" fill="rgba(255,255,255,0.04)"/></svg>');
  background-size: 100px 100px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 24px 52px;
  max-width: 1000px;
}

.hero-content {
  text-align: center;
}

.hero-motto-wrapper {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hero-springer {
  width: 130px;
  height: 130px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero p {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  opacity: 0.92;
  margin-bottom: 0;
  line-height: 1.7;
}

.hero-motto {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  margin-top: 0;
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  border-left: 4px solid rgba(255,255,255,0.5);
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--white);
  color: var(--red);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-cta .btn {
  padding: 11px 26px;
  font-size: 0.95rem;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  display: none; /* Header ist jetzt kompakt, Pfeil nicht mehr noetig */
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Section Styles ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 24px auto 0;
}

/* ===== Welcome / About Cards ===== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 56px;
  align-items: center;
}

.welcome-text h2 {
  margin-bottom: 20px;
}

.welcome-text p {
  margin-bottom: 16px;
  color: var(--gray);
}

.welcome-signature {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.welcome-signature-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.welcome-signature-info strong {
  display: block;
  color: var(--black);
}

.welcome-signature-info span {
  font-size: 0.9rem;
  color: var(--gray);
}

.welcome-image {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.welcome-image-main {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.welcome-image::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  background: var(--off-white);
  border: 2px solid var(--red);
  opacity: 0.5;
  border-radius: var(--radius);
  z-index: 0;
}

/* ===== Events Table ===== */
.events-section {
  background: var(--off-white);
}

.events-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--red);
}

.event-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.event-date {
  text-align: center;
  background: var(--red);
  color: var(--white);
  padding: 12px 8px;
  border-radius: 10px;
  line-height: 1.2;
}

.event-date .day {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.event-date .month {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.event-date .year {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-top: 2px;
}

.event-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.event-info p {
  font-size: 0.9rem;
  color: var(--gray);
}

.event-info p i {
  margin-right: 6px;
  color: var(--red);
}

.event-time {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

/* ===== News Cards ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

.news-card-body {
  padding: 28px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.news-card-meta i {
  color: var(--red);
}

.news-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.news-card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.news-card-tag {
  display: inline-block;
  background: rgba(200, 16, 46, 0.08);
  color: var(--red);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
}

/* ===== History / Timeline ===== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), var(--red-light));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 18px;
  height: 18px;
  background: var(--red);
  border: 4px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.2);
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 500px;
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.timeline-content h3 {
  color: var(--red);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--gray);
  font-size: 0.95rem;
}

.timeline-content img {
  border-radius: 8px;
  margin-top: 16px;
}

.timeline-content img.foto {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 460px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-gallery-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin: 20px 0 10px;
}

.timeline-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.timeline-gallery a {
  display: block;
}

.timeline-gallery img {
  margin-top: 0;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}

.timeline-gallery a:hover img {
  transform: scale(1.03);
}

.timeline-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.timeline-images img {
  margin-top: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
}

.timeline-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.timeline-quote span {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--gray);
}

/* ===== Vorstand / Board ===== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* Variante mit mittig ausgerichteten Karten (z.B. Kontaktseite) */
.board-grid-zentriert {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.board-grid-zentriert > * {
  flex: 0 1 260px;
}

/* Startseite: alle 5 Vorstandsmitglieder passen am Rechner in eine Reihe */
#vorstand .board-grid-zentriert > * { flex-basis: 205px; }

@media (max-width: 480px) {
  .board-grid-zentriert > * { flex-basis: 100%; }
}

.board-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.board-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.board-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
}

.board-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 4px;
}

.board-card .role {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 500;
}

.board-card .email {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
  word-break: break-all;
}

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-cards {
  display: grid;
  gap: 20px;
  align-content: start;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.contact-info-card i {
  font-size: 1.4rem;
  color: var(--red);
  background: rgba(200, 16, 46, 0.08);
  padding: 14px;
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

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

.contact-topics li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray);
}

.contact-info-card .contact-topics i {
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
  padding: 0;
  background: none;
  border-radius: 0;
}

.contact-info-card a {
  color: var(--red);
}

.contact-info-card a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

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

/* ===== Group Cards (Über uns) ===== */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}

.group-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.group-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.group-card-image {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--gray-light);
}

/* weichgezeichnete Kopie des Bildes fuellt die Raender, das Bild selbst wird ganz gezeigt */
.group-card-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--bild) center / cover no-repeat;
  filter: blur(16px) saturate(1.1);
  opacity: 0.55;
}

.group-card-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.group-card:hover .group-card-image img {
  transform: scale(1.05);
}

.group-card-image.no-image {
  background: linear-gradient(135deg, var(--red-dark), var(--red-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-card-placeholder {
  font-size: 4rem;
  color: rgba(255,255,255,0.3);
}

.group-card-badge {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.group-card-body {
  padding: 24px;
}

.group-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--black);
}

.group-card-details {
  display: grid;
  gap: 12px;
}

.group-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.group-detail i {
  color: var(--red);
  margin-top: 3px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.group-detail strong {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.group-detail span {
  font-size: 0.95rem;
  color: var(--gray-dark);
}

@media (max-width: 480px) {
  .groups-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Gallery ===== */
.gallery-section-title {
  font-size: 1.3rem;
  color: var(--red);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-item-label {
  padding: 16px 20px;
  font-weight: 500;
  font-size: 0.95rem;
  border-top: 3px solid var(--red);
}

/* ===== Guestbook ===== */
.guestbook-entries {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.guestbook-entry {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
}

.guestbook-entry h4 {
  font-family: 'Inter', sans-serif;
  margin-bottom: 6px;
}

.guestbook-entry .meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 12px;
}

/* ===== Legal Pages ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--red);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--gray);
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  color: var(--gray);
  margin-bottom: 8px;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  padding: 40px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
}

/* ===== Song Page (Unser Lied) ===== */
.lied-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(200, 16, 46, 0.05) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(200, 16, 46, 0.05) 0, transparent 40%),
    var(--off-white);
}

.lied-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

/* Seitenleiste */
.lied-info { position: sticky; top: 110px; }

.lied-info-karte {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
  border-top: 5px solid var(--red);
}

.lied-springer {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  background: var(--red);
  -webkit-mask: url('../bilder/startpage/Springer.svg') center / contain no-repeat;
  mask: url('../bilder/startpage/Springer.svg') center / contain no-repeat;
}

.lied-info-karte h2 {
  font-size: 1.6rem;
  color: var(--red);
  font-style: italic;
  margin-bottom: 10px;
}

.lied-info-karte > p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.lied-ablauf {
  text-align: left;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  padding: 14px 4px;
  margin-bottom: 22px;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.lied-ablauf li { display: flex; align-items: center; gap: 12px; }

.lied-marke {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lied-marke-refrain { background: var(--red); color: var(--white); font-size: 0.75rem; }

.lied-drucken { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.95rem; }

/* Liedblatt */
.lied-blatt {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 56px 40px;
  overflow: hidden;
}

/* dezente Notenlinien oben im Liedblatt */
.lied-blatt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: repeating-linear-gradient(to bottom,
    transparent 0, transparent 13px,
    rgba(200, 16, 46, 0.07) 13px, rgba(200, 16, 46, 0.07) 14px);
  -webkit-mask: linear-gradient(to bottom, #000, transparent);
  mask: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}

.lied-kopf {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

.lied-noten {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.lied-kopf h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 4px; }
.lied-kopf p { color: var(--gray); font-size: 0.9rem; letter-spacing: 0.5px; }

.lied-strophe {
  position: relative;
  padding-left: 64px;
  margin-bottom: 32px;
}

.lied-nummer {
  position: absolute;
  left: 0;
  top: -4px;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  opacity: 0.85;
}

.lied-strophe p,
.lied-refrain p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--gray-dark);
}

.lied-refrain {
  position: relative;
  margin: 0 0 32px 64px;
  padding: 22px 28px 20px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.06), rgba(200, 16, 46, 0.02));
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.lied-refrain-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.lied-refrain p { font-style: italic; color: var(--red-dark); }

.lied-schluss {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.lied-schluss-linie {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
}

.lied-schluss-ruf {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--red);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .lied-layout { grid-template-columns: 1fr; gap: 28px; }
  .lied-info { position: static; order: 2; } /* auf kleinen Bildschirmen zuerst der Liedtext */
  .lied-info-karte {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 4px 20px;
    text-align: left;
    align-items: center;
  }
  .lied-springer { width: 96px; height: 96px; margin: 0; grid-row: span 2; }
  .lied-info-karte > p { margin-bottom: 0; }
  .lied-ablauf { display: none; }
  .lied-drucken { grid-column: 1 / -1; margin-top: 16px; }
}

@media (max-width: 560px) {
  .lied-info-karte { grid-template-columns: 64px 1fr; padding: 22px 20px; }
  .lied-springer { width: 64px; height: 64px; }
  .lied-info-karte h2 { font-size: 1.3rem; margin-bottom: 4px; }
  .lied-info-karte > p { font-size: 0.88rem; }
  .lied-blatt { padding: 32px 20px 28px; }
  .lied-kopf { margin-bottom: 28px; }
  .lied-strophe { padding-left: 40px; }
  .lied-nummer { font-size: 2rem; }
  .lied-refrain { margin-left: 0; padding: 18px 18px 16px; }
  .lied-strophe p,
  .lied-refrain p { font-size: 1.05rem; line-height: 1.8; }
}

/* Drucken: nur das Liedblatt */
/* Kompakt, damit das ganze Lied auf eine A4-Seite passt */
@page { size: A4; margin: 14mm 16mm; }

@media print {
  .top-bar, .navbar, .page-header, .footer, .back-to-top, .lied-info { display: none !important; }
  html, body { background: #fff; font-size: 11pt; }
  .lied-section { background: none; padding: 0; }
  .lied-section .container { padding: 0; max-width: none; }
  .lied-layout { display: block; max-width: none; }
  .lied-blatt { box-shadow: none; padding: 0; border-radius: 0; overflow: visible; }
  .lied-blatt::before { display: none; }

  .lied-kopf { margin-bottom: 7mm; }
  .lied-noten { width: 34px; height: 34px; font-size: 0.95rem; margin-bottom: 6px; box-shadow: none; }
  .lied-kopf h2 { font-size: 20pt; }
  .lied-kopf p { font-size: 9pt; }

  .lied-strophe { padding-left: 13mm; margin-bottom: 5mm; }
  .lied-nummer { font-size: 22pt; top: 0; }
  .lied-strophe p,
  .lied-refrain p { font-size: 12.5pt; line-height: 1.5; }

  .lied-refrain { margin: 0 0 5mm 13mm; padding: 3mm 5mm; }
  .lied-refrain-label { font-size: 7pt; padding: 2px 8px; margin-bottom: 4px; }

  .lied-schluss { margin-top: 7mm; }
  .lied-schluss-ruf { font-size: 14pt; }

  .lied-strophe, .lied-refrain { break-inside: avoid; }
  .lied-blatt { break-inside: avoid; }
  .lied-noten, .lied-refrain-label, .lied-marke-refrain {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 8px;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--red);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-bottom a {
  color: rgba(255,255,255,0.8);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-4px);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.loading-hint {
  text-align: center;
  color: var(--gray);
  padding: 40px 20px;
  font-size: 1rem;
}

.loading-hint i {
  color: var(--red);
  margin-right: 8px;
}

/* ===== Navigation als Ausklapp-Menue, sobald die Links nicht mehr in eine Zeile passen ===== */
@media (max-width: 1100px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 20px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .hamburger { display: flex; }

  .nav-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-light);
  }

  .nav-links .nav-social a {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.08);
    color: var(--red);
    font-size: 1.1rem;
  }

  .nav-links .nav-social a:hover { background: var(--red); color: var(--white); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before { left: 24px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot {
    left: 24px;
  }
}

@media (max-width: 768px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .top-bar { display: none; }
  
  .hero-inner { padding: 32px 16px 36px; }

  .hero-motto-wrapper { gap: 12px; }

  .hero-motto { padding: 10px 14px; }

  .hero-springer {
    width: 76px;
    height: 76px;
  }
  
  .navbar .container { height: 70px; }
  
  
  .section { padding: 56px 0; }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .event-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 16px;
  }

  .event-info { min-width: 0; }
  .event-info h4 { overflow-wrap: break-word; hyphens: auto; }
  
  .event-time {
    grid-column: 2;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .board-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta { gap: 10px; margin-top: 20px; }

  .hero-cta .btn {
    padding: 9px 16px;
    font-size: 0.88rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.contact-single {
  max-width: 560px;
  margin: 0 auto;
}



/* ===== Slideshow & Popup (Geschichte) ===== */
.slideshow {
  position: relative;
  margin-top: 4px;
  user-select: none;
  -webkit-user-select: none;
}

.slideshow-stage {
  position: relative;
  height: 300px;
  background: #f4efef;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
}

.slideshow-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.slideshow-stage img.aktiv {
  opacity: 1;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--red);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.slideshow-btn:hover {
  background: var(--red);
  color: #fff;
}

.slideshow-btn.zurueck { left: 10px; }
.slideshow-btn.weiter { right: 10px; }

.slideshow-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--gray);
}

.slideshow-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slideshow-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d9c9cb;
  cursor: pointer;
}

.slideshow-dots button.aktiv {
  background: var(--red);
}

.timeline .zoombar {
  cursor: zoom-in;
}

.timeline img,
.lightbox img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Popup */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 10, 10, 0.92);
}

.lightbox.offen {
  display: flex;
}

.lightbox-bild {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-bild img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 6px;
  pointer-events: none;
}

/* unsichtbare Schicht über dem Bild (gegen Rechtsklick / Speichern) */
.lightbox-schutz {
  position: absolute;
  inset: 0;
}

.lightbox-btn {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: var(--red);
}

.lightbox-btn.schliessen { top: 18px; right: 18px; }
.lightbox-btn.zurueck { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-btn.weiter { right: 18px; top: 50%; transform: translateY(-50%); }

.lightbox-zaehler {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .slideshow-stage { height: 220px; }
  .lightbox-btn.zurueck { left: 6px; }
  .lightbox-btn.weiter { right: 6px; }
  .lightbox-btn { width: 40px; height: 40px; }
}

.timeline-gallery-leer {
  padding: 18px;
  border: 2px dashed #e3d3d5;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
}

.timeline-gallery-leer i {
  color: var(--red);
  margin-right: 6px;
}

.timeline-content p + .slideshow {
  margin-top: 16px;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.news-card-link:hover {
  text-decoration: underline;
}

.news-card-link i {
  font-size: 0.75rem;
}
