/* ============================================================
   TTC 1951 Altenstadt — Stylesheet
   Gereinigt, flaches Design, linksbündig harmonisiert.
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

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

/* ---------- Design Tokens ---------- */
:root {
  --red:                #e31b23;
  --red-dark:           #aa0f15;
  --red-light:          #fde8e8;
  --black:              #111111;
  --bg-gray:            #f8f9fa; 
  --white:              #ffffff;
  --text:               #1f2421;
  --text-soft:          #555555;
  --border:             #e5e7eb;
  
  /* High-Contrast Colors */
  --accent-gold-bright: #ffca28;
}

/* ---------- Base ---------- */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-gray);
  color: var(--text);
  scroll-behavior: smooth;
  line-height: 1.6;
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-gray);
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

a { 
  color: var(--red); 
  transition: color 0.2s ease;
}

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

/* ---------- GEMEINSAME LAYOUT-KLASSEN ---------- */
.content-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  border-bottom: 2px solid var(--border);
  background: var(--white);
}

section:last-of-type {
  border-bottom: none;
  padding-bottom: 40px;
}
.club-intro,
.training-section,
.join-us-section,
.staff-section,
.faq-section,
.teams-section,
.gallery-section,
.news-section {
  background-color: var(--bg-gray);
}

/* ---------- ÜBERSCHRIFTEN & EINLEITUNGSTEXTE ---------- */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 0.5px;
  text-align: left;
  margin-bottom: 24px;
  padding-bottom: 8px;
  display: inline-block;
}

.section-title::after {
      content: '';
      display: block;
      width: 50px;
      height: 4px;
      background: var(--red);
      margin-top: 8px;
      border-radius: 2px;
}

.intro-text,
.faq-contact-text {
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.6;
  text-align: left;
  margin-top: 0;
  margin-bottom: 36px;
}

.faq-contact-text {
  margin-top: 32px;
  margin-bottom: 0;
}

.faq-contact-text a {
  color: var(--red);
  font-weight: 600;
}

/* ---------- NAVBAR ---------- */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 64px;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  align-items: center; /* Centers links and toggle vertically */
  justify-content: space-between;
  padding: 0 5%;
  background: var(--black);
  border-bottom: 3px solid var(--red);
  overflow: visible; /* Allows crest to extend past the bottom border */
}

.site-navbar .nav-logo {
  display: flex;
  align-items: center; /* Aligns text with the top of the crest area */
  gap: 14px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  height: 100%; /* Keeps logo block anchored to navbar height */
}

.site-navbar .nav-logo-crest {
  height: 85px; /* Adjust crest size */
  width: auto;
  display: block;
  position: relative;
  top: 12px; /* Shifts crest down so it overlaps the bottom red line */
  z-index: 10;
  filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.5)); /* Adds depth over page content */
}

.site-navbar .nav-logo span span {
  color: var(--red);
}

.site-navbar .nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.site-navbar .nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.site-navbar .nav-links a:hover,
.site-navbar .nav-links a.active {
  color: var(--accent-gold-bright);
  border-bottom-color: var(--accent-gold-bright);
}

.site-navbar .nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

@media (max-width: 1024px) {
  .site-navbar .nav-toggle { display: block; }
  .site-navbar .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--black);
    padding: 20px 5%;
    gap: 16px;
    display: none;
    border-bottom: 3px solid var(--red);
  }
  .site-navbar .nav-links.open { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  background: var(--black);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 2px, transparent 2px, transparent 40px),
    linear-gradient(135deg, #000000 0%, #1f0506 50%, var(--red-dark) 100%);
  border-bottom: 4px solid var(--red);
  position: relative;
  padding: 80px 0;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-content { 
  flex: 1;
  max-width: 700px; 
  position: relative; 
  z-index: 1; 
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 1px;
}

.hero h1 span {
  color: var(--red);
  text-shadow: 0 0 20px rgba(227, 27, 35, 0.4);
}

.hero-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-top: 12px;
  max-width: 100%;
}

/* Logo / Wappen display */
.hero-image {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-wappen {
  max-width: 250px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

/* Mobile Responsiveness — Subpage-Matched Compact Sizing */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 35px 0;
  }

  .hero-layout {
    flex-direction: row;
    gap: 16px;
    align-items: center;
  }

  .hero-wappen {
    max-width: 75px;
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  }

  .hero-description {
    font-size: 0.875rem;
    line-height: 1.35;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 28px 0;
  }

  .hero-layout {
    gap: 12px;
  }

  .hero-wappen {
    max-width: 60px;
  }
}

/* ---------- STATS (Verein) - Option 7: Dezente Box rechts ---------- */
.club-intro-layout-7 {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 60px;
  align-items: start;
}

.club-intro-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 8px;
}

.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.stack-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stack-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-right: 8px;
}

.stack-number {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 700;
}

/* Responsive: Auf Smartphones und Tablets untereinander anordnen */
@media (max-width: 850px) {
  .club-intro-layout-7 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- TRAINING & SPIELLOKALE (KOMPLETT) ---------- */

.training-section {
  padding: 40px 0;
}

.training-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Places both tables side by side in equal columns */
  gap: 24px;
  align-items: stretch;
}

.table-card {
  width: 100%;
  height: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table-card thead tr {
  height: 48px; 
}

.table-card th {
  background: var(--black);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0px 16px;
  text-align: left;
  vertical-align: middle;
}

.table-card td {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.table-card tr:last-child td {
  border-bottom: none;
}

/* Spiellokale Cell Internal Layout */
.hall-row-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2px;
}

.hall-table strong {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
}

.hall-address {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.3;
}

.hall-address svg {
  flex-shrink: 0;
  stroke: var(--red);
}

.hall-address.city-line {
  padding-left: 18px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  padding: 6px 10px;
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s ease;
  line-height: 1;
}

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

.map-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transform: translateY(-1px);
}

/* Mobile Responsiveness for Schedule Table */
@media (max-width: 768px) {
  .training-layout-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tr {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }

  .schedule-table td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: right;
    font-size: 0.85rem;
  }

  .schedule-table td:last-child {
    border-bottom: none;
  }

  .schedule-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: var(--text-soft);
    text-align: left;
  }
}
/* ---------- RESPONSIVE MOBILE OPTIMIERUNG (OHNE SCROLLEN) ---------- */
@media (max-width: 768px) {
  .training-layout-grid {
    grid-template-columns: 1fr; /* Untereinander */
    gap: 16px;
  }

  /* Verwandelt die Trainingstabelle auf dem Handy in saubere Blöcke/Karten */
  .schedule-table, 
  .schedule-table tbody, 
  .schedule-table tr, 
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table thead {
    display: none; /* Tabellen-Kopf ausblenden */
  }

  .schedule-table tr {
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 12px;
  }

  .schedule-table td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: right;
    font-size: 0.85rem;
  }

  .schedule-table td:last-child {
    border-bottom: none;
  }

  /* Labels (Tag, Uhrzeit etc.) automatisch vor den Werten anzeigen */
  .schedule-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: var(--text-soft, #555555);
    text-align: left;
  }
}
.holiday-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.holiday-note svg {
  flex-shrink: 0;
  stroke: var(--red);
}

.holiday-note strong {
  color: var(--black);
}
/* ---------- VORSTAND & TEAM ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.staff-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.staff-photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.staff-photo svg {
  width: 32px;
  height: 32px;
  color: var(--text-soft);
}

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

.staff-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 8px;
}

.staff-info h3 {
  font-size: 1.3rem;
  color: var(--black);
  margin-bottom: 10px;
}

.staff-info p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.staff-info p a {
  color: var(--red);
  text-decoration: none;
}

.staff-info p a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--black);
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item.active {
  border-color: var(--red);
}

.faq-item.active .faq-question {
  background: var(--red-light);
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--black);
  transition: all 0.25s ease;
}

.faq-icon::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.faq-icon::after  { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  background: var(--red-dark);
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer { max-height: 400px; }

.faq-answer p {
  padding: 16px 20px 20px 20px;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ============================================================
   UNTERSEITEN HERO (Header-Banner)
   ============================================================ */
/* ---------- SUBPAGE HERO ---------- */
.subpage-hero {
  background: var(--black);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 2px, transparent 2px, transparent 40px),
    linear-gradient(135deg, #000000 0%, #1f0506 50%, var(--red-dark) 100%);
  border-bottom: 4px solid var(--red);
  padding: 50px 0;
  text-align: center;
}

.subpage-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 1px;
  margin: 0;
  
  /* Enables soft hyphenation & prevents long German word overflow */
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.subpage-hero h1 span {
  color: var(--red);
  text-shadow: 0 0 20px rgba(227, 27, 35, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .subpage-hero {
    padding: 30px 16px;
  }

  .subpage-hero h1 {
    font-size: clamp(1.3rem, 5.8vw, 2.1rem);
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .subpage-hero {
    padding: 24px 12px;
  }

  .subpage-hero h1 {
    /* Scaled down specifically so "Datenschutzerklärung" fits comfortably without awkward cuts */
    font-size: clamp(1.15rem, 5.2vw, 1.55rem);
  }
}

/* ============================================================
   MANNSCHAFTEN SEKTION
   ============================================================ */
.teams-section {
  background-color: var(--bg-gray);
  padding: 60px 0;
}

.teams-intro {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 32px;
}

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

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(227, 27, 35, 0.3);
}

.team-card h3 {
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 8px;
}

.team-liga {
  display: inline-block;
  align-self: flex-start;
  background: var(--red-light);
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.team-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.team-meta strong {
  color: var(--black);
}

.team-link {
  display: inline-block;
  text-align: center;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.team-link:hover {
  background: var(--red);
  color: var(--white);
}

@media (max-width: 600px) {
  .teams-grid {
    grid-template-columns: 1fr; /* Auf Handys 1 Kachel pro Zeile */
  }
}

/* ============================================================
   DOKUMENTE SEKTION
   ============================================================ */
.documents-section {
  background-color: var(--bg-gray);
  padding: 60px 0;
}

.documents-intro {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 36px;
}

.documents-intro a {
  color: var(--red);
  font-weight: 600;
}

/* Kategorien-Abstand */
.document-category {
  margin-bottom: 40px;
}

.document-category:last-child {
  margin-bottom: 0;
}

/* Listen-Container als weiße Karte */
.document-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Einzelseile / Dokumenten-Item */
.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}

.document-item:last-child {
  border-bottom: none;
}

.document-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Text-Informationen */
.doc-name {
  font-weight: 600;
  color: var(--black);
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.doc-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* Download-Button */
.doc-download {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.doc-download:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}

/* Mobile Optimierung: Bei sehr schmalen Displays Button unter den Text packen */
@media (max-width: 550px) {
  .document-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .doc-download {
    margin-left: 0;
    align-self: flex-start;
  }
}

/* ============================================================
   GALERIE & LIGHTBOX SEKTION
   ============================================================ */
.gallery-section {
  background-color: var(--bg-gray);
  padding: 60px 0;
}

.gallery-album {
  margin-bottom: 48px;
}

.gallery-album:last-child {
  margin-bottom: 0;
}

.album-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: -12px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* Grid für die Thumbnails */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* Platzhalter 1.jpg als quadratische Kachel beschneiden */
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Lightbox Vollbild-Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
  padding: 20px;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  min-height: 50vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   NEWS SEKTION
   ============================================================ */
.news-section {
  background-color: var(--bg-gray);
  padding: 60px 0;
}

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

/* Karten-Layout & Flexbox-Ausrichtung */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(227, 27, 35, 0.3);
}

/* Meta-Zeile (Datum & Badge) */
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.news-date {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.news-tag {
  background: var(--red-light);
  color: var(--red-dark);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.72rem;
}

.news-card h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 12px;
}

.news-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Schiebt den Weiterlesen-Link an den Kartenboden */
}

/* Weiterlesen Link mit Pfeil-Animation */
.news-link {
  color: var(--red);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: color 0.2s ease;
}

.news-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.news-card:hover .news-link::after {
  transform: translateX(4px);
}

.news-backlink {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: color 0.2s ease;
}

.article-container .section-title {
  display: block;
  width: 100%;
  clear: both;
  margin-top: 0;
}

/* ---------- NEWS ARTICLE CONTENT ---------- */

.article-body {
  width: 100%;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--black);
}

.article-body h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 16px;
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.75;
}

.article-body p:last-child {
  margin-bottom: 0;
}

/* WordPress tables */
.article-body figure.wp-block-table {
  width: 100%;
  margin: 32px 0;
  overflow-x: auto;
}

.article-body figure.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

.article-body figure.wp-block-table thead {
  background: var(--red);
}

.article-body figure.wp-block-table thead td,
.article-body figure.wp-block-table thead th {
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
  border: none;
}

/* Table body */
.article-body figure.wp-block-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
  background: var(--white);
}

.article-body figure.wp-block-table tbody tr:last-child td {
  border-bottom: none;
}

.article-body figure.wp-block-table tbody td:first-child {
  font-weight: 600;
  color: var(--black);
  width: 30%;
}

.article-body figure.wp-block-table tbody tr:nth-child(even) td {
  background: var(--bg-gray);
}

/* Mobile */
@media (max-width: 768px) {
  .article-body {
    font-size: 0.95rem;
  }

  .article-body h1 {
    margin-bottom: 22px;
  }

  .article-body p {
    margin-bottom: 20px;
  }

  .article-body figure.wp-block-table {
    margin: 28px 0;
  }

  .article-body figure.wp-block-table table {
    min-width: 650px;
    font-size: 0.88rem;
  }

  .article-body figure.wp-block-table thead td,
  .article-body figure.wp-block-table thead th,
  .article-body figure.wp-block-table tbody td {
    padding: 11px 12px;
  }
}
/* ============================================================
   IMPRESSUM & DatenschutzSEKTION
   ============================================================ */

.legal-content h2 {
  margin-bottom: 8px;
}

.legal-content h3 {
  margin-bottom: 8px;
}
.legal-content p {
  margin-bottom: 12px;
}
.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  padding: 24px 5%;
  border-top: 3px solid var(--red);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer-legal {
  max-width: 900px;
  margin: 0 auto 8px;
}

.footer-legal strong { color: rgba(255,255,255,0.8); }

.footer-legal a,
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

.footer-legal a:hover,
.footer-links a:hover { color: var(--white); }

/* ---------- RESPONSIVE Anpassungen ---------- */
@media (max-width: 600px) {
  section { padding: 56px 5%; }
  .schedule-table th, 
  .schedule-table td {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}