/* ==========================================================================
   Design System & Styling - Schützenverein St. Wendel Germaringen e.V.
   ========================================================================== */

/*@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');*/


/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/outfit-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/outfit-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/outfit-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/outfit-v15-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* plus-jakarta-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* plus-jakarta-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* plus-jakarta-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* plus-jakarta-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root {
  /* Color Palette */
  --primary-red: #C8102E;
  --primary-red-dark: #9E0012;
  --primary-red-light: #E52E4D;
  --primary-red-glow: rgba(200, 16, 46, 0.2);
  --primary-red-soft: rgba(200, 16, 46, 0.06);

  --dark-bg: #121316;
  --dark-surface: #1A1C23;
  --dark-card: #222530;
  
  --light-bg: #F8F9FB;
  --light-surface: #FFFFFF;
  --light-card-subtle: #F3F4F8;
  
  --text-dark: #1E232A;
  --text-muted: #5A6474;
  --text-light: #FFFFFF;
  --text-light-muted: #A0AAB8;

  --gold-accent: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-title: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Elevational Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 12px 35px rgba(200, 16, 46, 0.28);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

.text-red {
  color: var(--primary-red);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: var(--primary-red-soft);
  color: var(--primary-red);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(200, 16, 46, 0.15);
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 650px;
  margin: 0.75rem auto 0;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Brand / Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon-wrap {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
  position: relative;
  overflow: hidden;
}

.brand-icon-wrap::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.target-symbol {
  width: 28px;
  height: 28px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-subname {
  font-size: 0.75rem;
  color: var(--primary-red);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  color: var(--text-dark);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-red);
  background-color: var(--primary-red-soft);
}

.nav-link.active {
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

.hamburger {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav-toggle.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  color: var(--text-light);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(200, 16, 46, 0.38);
  color: var(--text-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-light);
}

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

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #121316 0%, #1A1C23 100%);
  color: var(--text-light);
  overflow: hidden;
  padding: 5rem 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: contrast(1.1) brightness(0.9);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(200, 16, 46, 0.35) 0%, transparent 60%),
              linear-gradient(to right, #121316 0%, rgba(18, 19, 22, 0.8) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(200, 16, 46, 0.2);
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: var(--radius-full);
  color: #FF5A70;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, #FF4D6D, var(--primary-red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.2rem;
  color: var(--text-light-muted);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.quick-stats-strip {
  background-color: var(--light-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-red-soft);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-info h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.stat-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Page Banner (For secondary pages) */
.page-header {
  position: relative;
  background: linear-gradient(135deg, #121316 0%, #1A1C23 100%);
  padding: 4.5rem 0;
  color: var(--text-light);
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.page-header-title {
  font-size: 2.75rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.page-header-desc {
  font-size: 1.15rem;
  color: var(--text-light-muted);
}

/* Feature & Content Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--light-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.2);
}

.card-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--gold-accent));
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-red-soft), rgba(200, 16, 46, 0.12));
  color: var(--primary-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;

}

.card-text {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* Vorstandschaft Section */
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .vorstand-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vorstand-card {
  background: var(--light-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.vorstand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.25);
}

.vorstand-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.25);
}

.vorstand-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.vorstand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Schedule & Events Styling */
.schedule-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .schedule-container {
    grid-template-columns: 1fr 1fr;
  }
}

.schedule-card {
  background: var(--light-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.schedule-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-red-soft);
}

.schedule-card-header h3 {
  font-size: 1.5rem;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--light-card-subtle);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-red);
}

.schedule-day {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-red);
  min-width: 100px;
}

.schedule-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.schedule-time {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0,0,0,0.05);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

.event-item {
  background: var(--light-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.event-item:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.event-date-badge {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.2);
}

.event-date-day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.event-date-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.event-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.event-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Discipline Card */
.discipline-card {
  background: var(--light-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.discipline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.discipline-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.discipline-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.discipline-tag {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.discipline-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.discipline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.discipline-specs {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Gallery Styling */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  background: var(--light-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.filter-btn.active {
  background: var(--primary-red);
  color: var(--text-light);
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 19, 22, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

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

.gallery-title {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
}

.gallery-category {
  color: var(--primary-red-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 13, 16, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  position: relative;
  text-align: center;
}

.lightbox-img {
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  margin: 0 auto 1rem;
}

.lightbox-caption {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red-dark), var(--primary-red), var(--gold-accent));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-about p {
  color: var(--text-light-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-gau-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

.footer-title {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-red-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-light-muted);
  font-size: 0.875rem;
}

/* Sections Spacer */
.section-padding {
  padding: 5rem 0;
}

.bg-white {
  background-color: var(--light-surface);
}


/* ==========================================================================
   Vereinschronik / Zeitstrahl (horizontal)
   ========================================================================== */
.chronik-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
 
.chronik-scroll::-webkit-scrollbar {
  height: 8px;
}
 
.chronik-scroll::-webkit-scrollbar-track {
  background: var(--light-card-subtle);
  border-radius: var(--radius-full);
}
 
.chronik-scroll::-webkit-scrollbar-thumb {
  background: rgba(200, 16, 46, 0.35);
  border-radius: var(--radius-full);
}
 
.chronik-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 100%;
  padding: 14.5rem 3.5rem 14.5rem 1.5rem;
}
 
.chronik-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 28px;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--primary-red), var(--primary-red-light));
  border-radius: var(--radius-full);
}
 
.chronik-track::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid var(--primary-red-light);
}
 
.chronik-item {
  position: relative;
  flex: 0 0 auto;
  width: 210px;
  display: flex;
  justify-content: center;
}
 
.chronik-dot {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-red);
  border: 4px solid var(--light-surface);
  box-shadow: 0 0 0 3px var(--primary-red-glow);
}
 
.chronik-item.is-jubilaeum .chronik-dot {
  width: 22px;
  height: 22px;
  background: var(--gold-accent);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
 
.chronik-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  background: var(--light-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
  text-align: center;
  transition: all var(--transition-normal);
}
 
.chronik-card::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  background: rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
}
 
.chronik-item:hover .chronik-card {
  transform: translateX(-50%) translateY(-3px);
  border-color: rgba(200, 16, 46, 0.25);
  box-shadow: var(--shadow-md);
}
 
/* Karten wechseln ober-/unterhalb der Linie */
.chronik-item:nth-child(odd) .chronik-card {
  bottom: calc(50% + 26px);
}
 
.chronik-item:nth-child(odd) .chronik-card::before {
  bottom: -22px;
  height: 22px;
}
 
.chronik-item:nth-child(even) .chronik-card {
  top: calc(50% + 26px);
}
 
.chronik-item:nth-child(even) .chronik-card::before {
  top: -22px;
  height: 22px;
}
 
.chronik-year {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--primary-red);
  background-color: var(--primary-red-soft);
  border: 1px solid rgba(200, 16, 46, 0.15);
  border-radius: var(--radius-full);
  padding: 0.1rem 0.7rem;
  margin-bottom: 0.5rem;
}
 
.chronik-title {
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
 
.chronik-text {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
 
/* Jubilaeen in Gold hervorheben */
.chronik-item.is-jubilaeum .chronik-card {
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), var(--light-surface) 65%);
}
 
.chronik-item.is-jubilaeum .chronik-card::before {
  background: rgba(212, 175, 55, 0.45);
}
 
.chronik-item.is-jubilaeum .chronik-year {
  color: #8A6D12;
  background-color: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.35);
}
 
.chronik-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
 
.chronik-hint i {
  color: var(--primary-red);
}
 
.chronik-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
 
@media (max-width: 576px) {
  .chronik-track {
    padding: 16.5rem 2.75rem 16.5rem 1.25rem;
  }
 
  .chronik-item {
    width: 165px;
  }
 
  .chronik-card {
    width: 150px;
    padding: 0.85rem 0.9rem;
  }
 
  .chronik-title {
    font-size: 0.9rem;
  }
 
  .chronik-text {
    font-size: 0.78rem;
  }
}



/* Responsive Styles */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--light-surface);
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}



/* ==========================================================================
   Ergebnisse: Layout Desktop + Mobil (Karten untereinander in einer Box)
   ========================================================================== */
.result-item { align-items: flex-start; }
.result-body { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.result-grid > div { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 576px) {
  .result-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1.1rem;
  }
  .result-item .event-date-badge {
    align-self: flex-start;
    min-width: 0;
    padding: 0.5rem 1rem;
  }
  .result-item .event-title { font-size: 1.05rem; }
  .result-grid { grid-template-columns: 1fr; }
}


/* Bildschutz: Drag & Drop, Markieren und iOS-Langtipp-Menü unterbinden */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}