/* =========================================
   1. VARIABLEN & GRUNDLAGEN
   ========================================= */
:root {
  --primary: #DA291C;    /* Judo Rot */
  --tkd-blue: #004080;   /* TKD Blau */
  --kumdo-green: #2d5a27; /* Kumdo Grün */
  --kungfu-orange: #c05000; /* Kung Fu Orange */
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #333333;
  --font-main: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================
   2. NAVIGATION & DROPDOWN
   ========================================= */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  width: 90%;
  max-width: 900px; /* <-- Geändert von 1100px auf 900px */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo-link { display: flex; align-items: center; text-decoration: none; color: var(--dark); }
.logo { height: 55px; margin-right: 12px; }
.logo-text { font-weight: 700; font-size: 1.1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px; /* OPTIMIERT: Kompakterer Abstand zwischen den Menüpunkten */
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  margin-left: 0;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap; /* LÖSUNG 1: Hält Text und Dropdown-Pfeil zwingend in einer Linie! */
}

.nav-links a:hover {
  background-color: var(--light);
  color: var(--primary);
}

.dropdown { position: relative; }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 4px;
  top: 100%;
  left: 0;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
  display: block;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-transform: none;
}

/* =========================================
   3. LAYOUT SYSTEM (Zentrierter Korridor)
   ========================================= */
.content-wrapper {
  padding-top: 130px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.narrow-container {
  width: 90%;
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
}

.section-header { margin-bottom: 2rem; }
.divider { height: 4px; width: 50px; background-color: var(--primary); margin: 15px 0; }
.highlight { color: var(--primary); }

/* =========================================
   4. HOME SEITE (Hero, Disziplinen, CTA, News)
   ========================================= */

/* --- HERO BANNER MIT HINTERGRUNDBILD --- */
.hero-banner {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: -130px;
  padding-top: 200px;
  padding-bottom: 120px;
  text-align: left; /* GEÄNDERT: Zwingt den Text und Button nach links */
  color: white;
}

.hero-banner h1 {
  color: white;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-banner p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 0 30px 0; /* GEÄNDERT: Die automatische Zentrierung (auto) wurde entfernt */
  color: #f8f9fa;
}

.hero-banner .highlight {
  color: var(--primary);
}

/* --- NEWS TEASER --- */
.news-teaser {
  background: var(--light);
  padding: 30px;
  border-radius: 8px;
  border-left: 5px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 30px;
  transition: all 0.3s ease-in-out; /* NEU: Bereitet die weiche Animation vor */
}

/* NEU: Der Hover-Effekt für den Teaser */
.news-teaser:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  background: var(--white);
}

.news-teaser .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- DISZIPLINEN-GRID & KREIS-STYLING --- */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.discipline-card {
  background: var(--white);
  border: 1px solid #eee;
  padding: 45px 25px; /* OPTIMIERT: Mehr Abstand nach oben */
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  border-top-width: 5px;
  border-top-style: solid;
  position: relative;
}

.discipline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.judo-border { border-top-color: var(--primary); }
.tkd-border { border-top-color: var(--tkd-blue); }
.kumdo-border { border-top-color: var(--kumdo-green); }
.kungfu-border { border-top-color: var(--kungfu-orange); }

.discipline-image-placeholder {
  width: 90px;
  height: 90px;
  background-color: var(--light);
  border-radius: 50%;
  margin-bottom: 25px; /* OPTIMIERT: Mehr Abstand zum Text */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 2px solid #eee;
  color: #ccc;
  transition: all 0.3s ease;
}

.judo-border:hover .discipline-image-placeholder { border-color: var(--primary); color: var(--primary); }
.tkd-border:hover .discipline-image-placeholder { border-color: var(--tkd-blue); color: var(--tkd-blue); }
.kumdo-border:hover .discipline-image-placeholder { border-color: var(--kumdo-green); color: var(--kumdo-green); }
.kungfu-border:hover .discipline-image-placeholder { border-color: var(--kungfu-orange); color: var(--kungfu-orange); }

.discipline-card h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
}

.discipline-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.card-footer-link {
  margin-top: auto;
  padding-top: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.judo-border .card-footer-link { color: var(--primary); }
.tkd-border .card-footer-link { color: var(--tkd-blue); }
.kumdo-border .card-footer-link { color: var(--kumdo-green); }
.kungfu-border .card-footer-link { color: var(--kungfu-orange); }

/* --- CTA BANNER (Schwarz & Modern) --- */
.cta-banner {
  background: var(--dark); /* Edles Schwarz */
  color: white;
  text-align: center;
  padding: 60px 40px;
  border-radius: 12px;
  margin: 80px auto;
  max-width: 850px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 15px 45px rgba(0,0,0,0.2);
}

.cta-banner:hover {
  transform: translateY(-3px);
}

.cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: white;
  margin-top: 0;
}

.cta-banner p {
  font-size: 1.05rem;
  color: #ddd;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cta-banner .btn {
  width: auto;
  min-width: 250px;
  margin-top: 0;
}

/* =========================================
   5. AKKORDEON & KACHELN
   ========================================= */
.accordion-container { width: 100%; margin-bottom: 50px; }
.accordion-item { margin-bottom: 15px; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.accordion-header {
  width: 100%; padding: 20px 25px; display: flex; justify-content: space-between;
  align-items: center; background: var(--light); border: none; border-left: 6px solid #ccc;
  cursor: pointer; font-weight: 600; font-size: 1.1rem; font-family: inherit;
}

.accordion-header.judo-bg { border-left-color: var(--primary); }
.accordion-header.tkd-bg { border-left-color: var(--tkd-blue); }
.accordion-header.kumdo-bg { border-left-color: var(--kumdo-green); }
.accordion-header.kungfu-bg { border-left-color: var(--kungfu-orange); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: white; }
.inner-content { padding: 25px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.card { border: 1px solid #eee; border-radius: 4px; padding: 20px; background: white; }

/* =========================================
   6. BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 18px 40px;
  margin-top: 25px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  line-height: 1.2;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
  margin-top: 25px;
  border-radius: 4px;
}

.btn-outline:hover { background: var(--dark); color: var(--white); }

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: 4px;
}

.btn-primary:hover {
  background-color: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer { background: var(--dark); color: white; padding: 50px 0 0; }
.footer-content { width: 90%; max-width: 850px; margin: 0 auto; display: flex; justify-content: space-between; padding-bottom: 40px; }
.footer-info a { color: white; text-decoration: underline; }
.footer-bottom { background: #000; text-align: center; padding: 20px; font-size: 0.8rem; color: #777; }

.site-footer {
  background-color: #fcfcfc;
  border-top: 1px solid #eee;
  padding: 30px 0;
  margin-top: 60px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  max-width: 900px; /* <-- Geändert von 1100px auf 900px */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease; /* Bringt die weiche Animation zurück */
}

/* Hover für PC und Active für den "Tap" auf dem Smartphone */
.footer-logo:hover,
.footer-logo:active {
  filter: grayscale(0%);
  opacity: 1;
}

.footer-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

.footer-legal a {
  text-decoration: none;
  color: #888;
  font-size: 0.85rem;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.75rem;
  color: #bbb;
  letter-spacing: 0.5px;
}

/* =========================================
   8. MOBIL-OPTIMIERUNG
   ========================================= */
.mobile-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; }

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 75px; left: 0; width: 100%; background: white;
    flex-direction: column; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  .nav-links.active { display: flex; }
  .nav-links a { margin: 8px 0; width: 100%; text-align: left; margin-left: 0; }
  .dropdown-content { position: static; box-shadow: none; padding-left: 20px; display: block; }
  .disciplines-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 30px; }
  .news-teaser { flex-direction: column; text-align: center; gap: 20px; }
  /* Mobile Fix für die schwarze Box */
  .cta-banner {
    padding: 40px 20px;
    margin: 40px auto;
    border: none !important; /* Kein roter Rand oben auf dem Handy */
  }
  .footer-container { flex-direction: column; gap: 15px; text-align: center; }
  .footer-legal a { margin: 0 10px; }
  /* News-Kachel Mobile Fix */
  .news-teaser {
    flex-direction: column !important;
    text-align: center !important;
    padding: 25px !important;
    border-left: none !important;
    border-top: 5px solid var(--primary) !important;
  }

  .news-teaser .btn {
    width: 100% !important;
  }
}

/* =========================================
   9. ANIMATIONEN
   ========================================= */
.fade-in {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* =========================================
   10. ERFOLGE & TIMELINE
   ========================================= */

/* --- OBERER BEREICH: PRESSEBERICHTE KACHELN --- */
.erfolge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  width: 100%;
}

.erfolg-card-link {
  text-decoration: none !important; /* Verhindert das Standard-Blau von Links */
  color: inherit !important;
  display: block;
}

.erfolg-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #eee;
  border-top: 4px solid var(--primary);
  height: 100%;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

/* Hover-Effekte für die Kachel */
.erfolg-card-link:hover .erfolg-card {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.erfolg-card-link:hover .erfolg-icon-wrapper {
  transform: scale(1.1);
}

.erfolg-card-link:hover .erfolg-read-more .arrow {
  transform: translateX(5px);
}

/* Kachel-Inhalte */
.erfolg-icon-wrapper {
  height: 160px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.3s ease;
}

.erfolg-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.erfolg-date {
  color: var(--primary);
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.erfolg-title {
  margin: 12px 0;
  font-size: 1.25rem;
  color: var(--dark);
  line-height: 1.3;
}

.erfolg-read-more {
  margin-top: auto; /* Drückt den Link immer nach ganz unten */
  color: var(--primary);
  font-weight: bold;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.erfolg-read-more .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.no-reports-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  background: var(--light);
  border-radius: 8px;
}

.no-reports-msg p {
  color: #777;
  font-style: italic;
  margin: 0;
}

/* --- UNTERER BEREICH: TIMELINE (Unverändert) --- */
.timeline-path {
  position: relative;
  padding-left: 40px;
  border-left: 3px solid #eee;
  margin-top: 30px;
  width: 100%;
}

.timeline-year-section {
  position: relative;
  margin-bottom: 40px;
}

.timeline-year-badge {
  position: absolute;
  left: -65px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.9rem;
}

.timeline-results-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  background: var(--light);
  padding: 25px;
  border-radius: 8px;
}

.res-group h4 {
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.res-list { list-style: none; font-size: 0.9rem; }
.res-list li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #eee; }

.m-badge {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
}

.m-1 { background: #FFD700; color: #5c4d00; }
.m-2 { background: #C0C0C0; color: #333; }
.m-3 { background: #CD7F32; color: #fff; }
.m-other { background: #eee; color: #777; }

@media (max-width: 768px) {
  .timeline-path {
    padding-left: 15px;
  }
  .timeline-year-badge {
    left: -10px;
    top: -35px;
  }
  .timeline-results-box {
    grid-template-columns: 1fr;
    padding: 20px 15px;
  }
}

/* =========================================
   11. ÜBER UNS (VEREIN)
   ========================================= */

/* --- HEADER BEREICH --- */
.page-header {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 80px 20px 60px;
  border-radius: 8px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--tkd-blue), var(--kumdo-green), var(--kungfu-orange));
}

.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 15px; color: white; }
.page-header p { font-size: 1.1rem; color: #ddd; max-width: 600px; margin: 0 auto; }

/* --- TEXT BEREICH --- */
.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
}

.about-text p { margin-bottom: 20px; }

/* --- HIGHLIGHT ZITAT --- */
.highlight-quote {
  background: #fdfdfd;
  border-left: 6px solid #FDD017;
  padding: 40px 50px;
  margin: 60px 0;
  border-radius: 8px;
  font-style: italic;
  font-size: 1.3rem;
  color: #555;
  text-align: left;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  position: relative;
  line-height: 1.7;
  transition: all 0.3s ease-in-out;
}

.highlight-quote:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.07);
  background: var(--white);
  color: var(--dark);
  border-left-width: 10px;
}

@media (max-width: 768px) {
  .highlight-quote {
    padding: 30px 20px;
    font-size: 1.15rem;
    margin: 40px 0;
  }
}

/* --- WERTE KACHELN --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin: 50px 0;
}

.value-card {
  background: var(--light);
  padding: 45px 20px; /* OPTIMIERT: Mehr Abstand nach oben */
  border-radius: 8px;
  text-align: center;
  border-bottom: 4px solid var(--primary);
  transition: transform 0.3s ease;
}

.value-card:hover { transform: translateY(-5px); }
.value-icon { font-size: 2.5rem; margin-top: 5px; margin-bottom: 25px; display: block; } /* OPTIMIERT */
.value-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--dark); }
.value-card p { font-size: 0.9rem; color: #666; margin: 0; }

/* --- STATISTIKEN --- */
.stats-wrapper {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
  margin: 60px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.stat-item h4 { font-size: 3rem; color: var(--primary); margin-bottom: 5px; line-height: 1; }
.stat-item p { font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; color: #555; margin: 0; }

/* --- STANDORTE --- */
.location-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.location-card {
  background: white;
  border: 1px solid #eee;
  padding: 25px 20px;
  border-radius: 8px;
  text-align: center;
  border-left: 5px solid var(--dark);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  transition: all 0.3s ease;
}

.location-card:hover {
  background: var(--dark);
  color: white;
  border-left-color: var(--primary);
}

/* =========================================
   12. VORSTAND
   ========================================= */

/* --- VORSTANDS-KACHELN --- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 60px;
}

.board-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 45px 25px; /* OPTIMIERT: Mehr Abstand nach oben */
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 5px solid var(--primary);
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

/* Dezentes Styling für Herrn Hupke */
.memorial-card {
  border-top-color: #777;
  background: #fafafa;
}

.memorial-card .board-role-label {
  color: #777;
}

.board-header { text-align: center; }

.board-img {
  width: 90px; height: 90px;
  background-color: var(--light);
  border-radius: 50%;
  margin: 0 auto 25px; /* OPTIMIERT: Mehr Abstand zum Text */
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; border: 2px solid #eee; color: #ccc;
  transition: all 0.3s ease;
}

.board-card:hover .board-img {
  border-color: var(--primary);
  color: var(--primary);
}

.memorial-card:hover .board-img {
  border-color: #777;
  color: #777;
}

.board-role-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.board-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark);
}

.board-status {
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
}

/* --- SONDERPOSTEN & KONTAKT --- */
.extra-positions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
  align-items: start;
}

.extra-positions-content h3 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.intro-text {
  color: #666;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pos-item {
  background: #fcfcfc;
  border: 1px solid #eee;
  padding: 20px 25px;
  border-radius: 6px;
  border-left: 4px solid var(--tkd-blue);
  transition: all 0.3s ease;
}

.pos-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border-left-color: var(--primary);
  background: var(--white);
}

.pos-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 5px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Die Kontakt-Box --- */
.contact-highlight-box {
  background: var(--light);
  border-top: 5px solid var(--primary);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.contact-highlight-box h4 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.contact-highlight-box p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.contact-highlight-box .btn {
  width: 100%;
  padding: 15px 10px;
  font-size: 0.85rem;
}

@media (max-width: 850px) {
  .extra-positions { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================
   13. TRAINER
   ========================================= */

.trainer-section { margin-bottom: 70px; }

.discipline-title {
  border-left: 5px solid var(--primary);
  padding-left: 15px;
  margin-bottom: 30px;
  font-size: 1.6rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.judo-title { border-color: var(--primary); }
.tkd-title { border-color: var(--tkd-blue); }
.mixed-title { border-color: var(--kungfu-orange); }

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.trainer-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 45px 25px 30px; /* OPTIMIERT: Mehr Abstand nach oben */
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 5px solid var(--primary);
}

.trainer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.judo-trainer { border-top-color: var(--primary); }
.tkd-trainer { border-top-color: var(--tkd-blue); }
.mixed-trainer { border-top-color: var(--kungfu-orange); }

.trainer-header {
  text-align: center;
  margin-bottom: 20px;
}

.trainer-img {
  width: 80px; height: 80px;
  background-color: var(--light);
  border-radius: 50%;
  margin: 0 auto 25px; /* OPTIMIERT: Mehr Abstand zum Text */
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; border: 2px solid #eee; color: #ccc;
  transition: all 0.3s ease;
}

.judo-trainer:hover .trainer-img { border-color: var(--primary); color: var(--primary); }
.tkd-trainer:hover .trainer-img { border-color: var(--tkd-blue); color: var(--tkd-blue); }
.mixed-trainer:hover .trainer-img { border-color: var(--kungfu-orange); color: var(--kungfu-orange); }

.trainer-rank {
  display: block;
  color: #777;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trainer-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark);
}

.trainer-details {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  margin-top: auto;
}

.trainer-details p { margin: 0; }
.trainer-details ul { list-style: none; padding: 0; margin: 0; }
.trainer-details li { margin-bottom: 8px; padding-left: 22px; position: relative; }

.trainer-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: bold;
}
.judo-trainer .trainer-details li::before { color: var(--primary); }
.tkd-trainer .trainer-details li::before { color: var(--tkd-blue); }
.mixed-trainer .trainer-details li::before { color: var(--kungfu-orange); }

/* =========================================
   14. KONTAKT
   ========================================= */

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: start;
}

.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-card {
  background: var(--light);
  padding: 25px 30px; /* HIER GEÄNDERT: Abstand oben und unten von 45px auf 25px reduziert */
  border-radius: 8px;
  border-left: 4px solid var(--tkd-blue);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06); /* Einheitlicher Schatten */
  background: var(--white);
  /* Der Rahmen-Farbwechsel wurde entfernt, damit die Farben bleiben, wie sie sind */
}

.info-card.highlight-card {
  border-left-color: var(--primary);
  background: #fdfdfd;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid #eee;
  border-left: 4px solid var(--primary);
}

.info-card.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06); /* Einheitlicher Schatten */
  background: var(--white);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  border-top: 5px solid var(--primary);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.contact-form-wrapper h3 {
  font-size: 1.6rem;
  margin-bottom: 25px;
  color: var(--dark);
}

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

.modern-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.modern-form input,
.modern-form select,
.modern-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 1rem;
  background: #fafafa;
  transition: all 0.3s ease;
  color: var(--text);
}

.modern-form input:hover,
.modern-form select:hover,
.modern-form textarea:hover {
  border-color: #ccc;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1);
}

.modern-form textarea {
  height: 150px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: #888;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

.modern-form input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin-right: 15px;
  margin-top: 4px;
  transform: scale(1.2);
  cursor: pointer;
}

.privacy-wrapper {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-top: 25px;
  margin-bottom: 25px;
  text-align: left;
}

.privacy-wrapper label {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

.privacy-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}

@media (max-width: 768px) {
  .contact-page-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-form-wrapper { padding: 30px 20px; }
}

/* =========================================
   15. TRAININGSZEITEN & AKKORDEON UPDATE
   ========================================= */

.training-accordion {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
  background: var(--white);
  transition: all 0.3s ease;
}

.training-accordion:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.accordion-header {
  width: 100%;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: none;
  border-left: 6px solid #ccc;
  cursor: pointer;
  font-size: 1.3rem;
  font-family: inherit;
  color: var(--dark);
  transition: all 0.3s ease;
  border-radius: 8px;
  text-align: left; /* NEU: Zwingt den Text immer sauber nach links */
  gap: 20px; /* NEU: Hält einen festen Sicherheitsabstand zum Plus-Icon */
}

.accordion-icon {
  font-size: 1.8rem;
  font-weight: 400;
  color: #888;
  transition: transform 0.4s ease, color 0.3s ease;
  line-height: 1;
  flex-shrink: 0; /* NEU: Verhindert, dass das Icon bei langem Text gequetscht wird */
}

.accordion-item.active .accordion-header,
.accordion-header.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #fdfdfd;
}

.accordion-item.active .accordion-icon,
.accordion-header.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.training-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.training-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.training-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.06);
  border-color: #ddd;
}

.training-day {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.training-time-block {
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 3px solid #ccc;
}

.judo-time { border-left-color: var(--primary); }
.tkd-time { border-left-color: var(--tkd-blue); }
.kumdo-time { border-left-color: var(--kumdo-green); }
.kungfu-time { border-left-color: var(--kungfu-orange); }

.training-time-block strong { display: block; color: var(--dark); font-size: 1.05rem; }
.training-time-block small { color: #666; font-size: 0.9rem; }

.training-location {
  margin-top: auto;
  font-size: 0.85rem;
  color: #555;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  line-height: 1.6;
}

.training-location strong { color: var(--dark); }

/* =========================================
   16. MITTEILUNGEN (NEWS FEED)
   ========================================= */
/* =========================================
   16. MITTEILUNGEN (NEWS FEED)
   ========================================= */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.news-item {
  display: flex;
  gap: 25px;
  background: var(--white);
  padding: 25px; /* HIER GEÄNDERT: Padding hinzugefügt für echten Kachel-Look */
  border-radius: 8px;
  border: 1px solid #eee; /* NEU: Dezenter Rahmen um die ganze Kachel */
  transition: all 0.3s ease;
}

/* NEU: Der Hover-Effekt für die News */
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-color: transparent;
}

.news-date {
  background: var(--dark);
  color: white;
  min-width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-align: center;
}

.news-date .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.news-date .month { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }

.news-content-box {
  flex: 1;
  /* HIER GEÄNDERT: border-bottom entfernt, da die Kachel jetzt als Ganzes wirkt */
}

.news-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
}

.news-content-box h3 { margin: 5px 0 10px; color: var(--dark); }
.text-link { color: var(--primary); font-weight: 600; text-decoration: none; font-size: 0.9rem; }

@media (max-width: 600px) {
  .news-item { flex-direction: column; gap: 15px; padding: 20px; }
  .news-date { width: 60px; height: 60px; }
}

/* =========================================
   17. BILDER-SLIDER (GALERIE)
   ========================================= */
.slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background-color: var(--light);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Erforderlich für die Galerie-Filterung */
.hide-slide {
  display: none !important;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 600px;
  object-fit: contain;
  object-position: center;
  background-color: var(--dark);
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(26, 26, 26, 0.5);
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  font-size: 20px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slider-btn:hover { background-color: var(--primary); }
.prev { left: 15px; }
.next { right: 15px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dot.active, .dot:hover {
  background-color: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .slider-btn { padding: 8px 12px; font-size: 16px; }
  .prev { left: 10px; }
  .next { right: 10px; }
  .dot { width: 10px; height: 10px; }
}

/* =========================================
   20. MOBILE NAVIGATION (SMARTPHONE & TABLET)
   ========================================= */

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark, #333);
  padding: 5px;
  z-index: 2001;
}

.nav-container { position: relative; }

@media (max-width: 1100px) {
  .mobile-toggle { display: block !important; }
  /* Haupt-Mobile-Menü weich einblenden */
  .navbar .nav-links {
    display: flex !important; /* Bleibt an, damit es animiert werden kann */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: none;
    padding-bottom: 150px;
    background-color: #ffffff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    z-index: 2000;

    /* NEU: Verstecken und nach oben schieben */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .navbar .nav-links.active {
    /* NEU: Sichtbar machen und auf Ursprungsposition gleiten */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar .nav-links > a,
  .navbar .dropdown-trigger {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    display: block;
    color: #333;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 16px !important;
  }

  .navbar .dropdown { width: 100%; position: relative; }

  /* Animiertes Dropdown Menü (Mobile) */
  .navbar .dropdown-content {
    display: flex !important;
    flex-direction: column !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out; /* Hier passiert die Ma gie: Weiche Animation */
    background-color: #f9f9f9;
  }

  .navbar .dropdown.active .dropdown-content {
    border-bottom: 1px solid #f0f0f0;
  }

  /* Verhindert, dass Desktop-Hover-Regeln auf dem Smartphone dazwischenfunken */
  .navbar .dropdown:hover .dropdown-content,
  .navbar .dropdown:focus-within .dropdown-content {
    /* JS übernimmt die Kontrolle, kein CSS-Zwang mehr */
  }

  .navbar .dropdown-content a {
    padding: 12px 20px 12px 40px;
    font-weight: 400 !important;
    text-transform: none !important;
    font-size: 15px !important;
    border-bottom: 1px solid #eee;
  }

  .navbar .dropdown-content a:last-child { border-bottom: none; }
}

/* =========================================
   18. LIGHTBOX (BILDER GROSSANSICHT)
   ========================================= */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 35px rgba(0,0,0,0.5);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: 0.3s;
}

.lightbox-close:hover { color: var(--primary); }

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10000;
  transition: all 0.3s ease;
}

.lightbox-btn:hover { background: var(--primary); }
.lightbox-btn.prev { left: 30px; }
.lightbox-btn.next { right: 30px; }

@media (max-width: 768px) {
  .lightbox-btn { padding: 10px 15px; font-size: 18px; }
  .lightbox-btn.prev { left: 10px; }
  .lightbox-btn.next { right: 10px; }
  .lightbox-close { top: 10px; right: 20px; font-size: 35px; }
}

/* =========================================
   COOKIE BANNER PRO
========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1a1a1a; /* Das dunkle Grau vom Screenshot */
  color: white;
  padding: 20px 30px;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cookie-banner.show { display: block; opacity: 1; }

.cookie-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cookie-text { font-size: 0.95rem; line-height: 1.6; margin: 0; }
.cookie-text a { color: white; text-decoration: underline; transition: color 0.3s; }
.cookie-text a:hover { color: var(--primary); }

/* --- BUTTON LAYOUT (Nebeneinander) --- */
.cookie-buttons {
  display: flex;
  flex-direction: row; /* Zwingt die Buttons nebeneinander! */
  gap: 15px; /* Abstand zwischen den beiden Buttons */
  flex-shrink: 0;
}

.cookie-buttons .btn {
  margin-top: 0;
  padding: 12px 25px;
  width: auto;
  min-width: 160px; /* Sorgt dafür, dass beide ungefähr gleich breit sind */
  text-align: center;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.cookie-buttons .btn-outline {
  background: transparent;
  border: 2px solid white !important;
  color: white !important;
}

.cookie-buttons .btn-outline:hover {
  background: white;
  color: var(--dark) !important;
}

/* Auf dem Smartphone stapeln wir sie weiterhin, damit sie auf kleinen Displays nicht aus dem Bildschirm ragen */
@media (max-width:768px){
  .cookie-inner { flex-direction: column; text-align: left; gap: 20px; }
  .cookie-buttons { flex-direction: column; width: 100%; }
  .cookie-buttons .btn { width: 100%; }
}

/* =========================================
   21. TOAST NOTIFICATION (ERFOLGS-BANNER)
   ========================================= */
.toast-notification {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99999;
  animation: slideDownFade 0.5s ease forwards, fadeOutToast 0.5s ease 5s forwards;
}

.toast-success { background-color: #2d5a27; color: white; border-left: 6px solid #1a3a16; }
.toast-error { background-color: var(--primary); color: white; border-left: 6px solid #8b1810; }

.toast-content { display: flex; align-items: center; gap: 15px; }
.toast-icon { font-size: 1.5rem; font-weight: bold; }
.toast-content p { margin: 0; font-size: 1.05rem; font-weight: 600; color: white; }

.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  margin-left: 20px;
  padding: 0;
  line-height: 1;
}

.toast-close:hover { opacity: 1; }

@keyframes slideDownFade {
  0% { top: -80px; opacity: 0; }
  100% { top: 30px; opacity: 1; }
}

@keyframes fadeOutToast {
  0% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; margin-top: -100px; }
}

@media (max-width: 768px) {
  .toast-notification { width: 90%; left: 5%; transform: none; }
}

/* =========================================
   COOKIE TOGGLE SCHALTER
   ========================================= */
.switch { position: relative; display: inline-block; width: 46px; height: 24px; margin: 0; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
  position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px;
  background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: var(--primary); }
input:focus + .slider { box-shadow: 0 0 1px var(--primary); }
input:checked + .slider:before { transform: translateX(22px); }

/* =========================================
   22. FERIEN & FEIERTAGS AUTOMATIK
   ========================================= */
.holiday-banner {
  position: fixed;
  top: 75px;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), #b31e13);
  color: white;
  z-index: 998;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  padding: 12px 0;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

.holiday-banner.show { transform: translateY(0); }

.holiday-inner {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.holiday-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-right: 35px; /* NEU: Schützt den Text davor, unter das X zu rutschen */
}

.holiday-icon {
  font-size: 1.4rem;
  flex-shrink: 0; /* NEU: Verhindert, dass das Icon auf dem Handy gequetscht wird */
}

.holiday-close {
  position: absolute;
  right: 0;
  top: 50%; /* NEU: Schiebt das X exakt in die Mitte */
  transform: translateY(-50%); /* NEU: Korrigiert die Höhe perfekt */
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.8;
  padding: 5px;
  line-height: 1; /* NEU: Repariert die verschobenen Ränder oben/unten */
}

.holiday-close:hover { opacity: 1; }

@media (max-width: 900px) {
  .holiday-banner {
    top: 75px; /* <-- HIER: Geändert von 65px auf 75px */
    padding: 15px 0;
  }
  .holiday-text {
    text-align: left;
    font-size: 0.9rem;
  }
}

/* --- OPTIMIERTE HOVER-KACHELN & ICONS FÜR DATENSCHUTZ, PARTNER ETC. --- */
.legal-card {
  padding: 45px 30px; /* OPTIMIERT: Mehr Abstand nach oben */
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 3px 10px rgba(0,0,0,0.02);
  cursor: default;
}

.legal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  background: var(--white) !important;
}

/* Die Icon Positionierung für rechtliche / Info Kacheln */
.legal-icon {
  margin-top: 0; /* HIER GEÄNDERT: Extra-Abstand nach oben entfernt */
  margin-bottom: 15px; /* Etwas kompakterer Abstand zur Überschrift */
  display: block;
  font-size: 2.5rem;
  line-height: 1;
}

.legal-card:hover .legal-icon {
  animation: iconWiggle 0.5s ease-in-out;
}

@keyframes iconWiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}
/* =========================================
   23. MOBILE-OPTIMIERUNG (Zentriert & App-Look)
   ========================================= */

@media (max-width: 768px) {

  /* --- 1. Hero Banner zentrieren --- */
  .hero-banner,
  .hero-banner .narrow-container {
    text-align: center !important;
    display: flex !important;
    flex-direction: column;
    align-items: center; /* Zwingt alle inneren Elemente (auch den Button) in die Mitte */
  }

  .hero-banner {
    padding-top: 150px;
    padding-bottom: 70px;
  }

  .hero-banner h1,
  .hero-banner p {
    text-align: center !important;
  }

  .hero-banner p {
    margin: 0 auto 30px auto !important;
  }

  /* --- 2. Bildschirmbreite besser nutzen --- */
  .narrow-container, .nav-container, .footer-container {
    width: 92%; /* Gibt dem Inhalt links und rechts etwas mehr Platz */
  }

  /* --- 3. Überschriften & rote Trennlinien zentrieren --- */
  .section-header {
    text-align: center !important;
  }
  .divider {
    margin: 15px auto 30px auto !important; /* Zentriert den roten Strich unter Überschriften */
  }

  /* --- 4. Kacheln (Cards) entschlacken --- */
  /* Weniger seitlicher Abstand (20px statt 30px), damit der Text auf Handys nicht als schmale Wurst erscheint */
  .discipline-card,
  .board-card,
  .trainer-card,
  .info-card,
  .value-card,
  .training-card,
  .legal-card {
    padding: 35px 20px !important;
  }

  /* --- 5. Zitate & News Teaser zentrieren --- */
  .highlight-quote {
    text-align: center;
    padding: 30px 15px;
    border-left: none; /* Entfernt den dicken Rand links */
    border-top: 6px solid #FDD017; /* Setzt den Rand nach oben für bessere Symmetrie */
  }

  .news-teaser {
    text-align: center;
    flex-direction: column;
    padding: 25px 15px;
  }

  .news-teaser .btn {
    width: 100%; /* Macht den Button über die volle Breite klickbar (App-Feeling) */
  }

  /* --- 6. Akkordeons (Trainingszeiten) anpassen --- */
  .accordion-header {
    padding: 18px 20px;
    font-size: 1.15rem; /* Etwas kleinere Schrift für schmale Displays */
  }
  .inner-content {
    padding: 20px 15px;
  }

  /* --- 7. Footer aufräumen --- */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 25px; /* Etwas mehr Luft zwischen Logo-Block und Links */
  }

  .footer-brand {
    flex-direction: column; /* Setzt das Logo mittig ÜBER den Text */
    gap: 10px;
  }

  .footer-name {
    font-size: 1rem; /* Macht den Vereinsnamen auf dem Handy etwas lesbarer */
    line-height: 1.4;
  }

  .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 20px; /* 15px vertikal, 20px horizontal für saubere Umbrüche */
    margin-top: 5px;
  }

  .footer-legal a {
    margin: 0 !important;
    font-size: 0.9rem; /* Minimal größer, damit man sie besser antippen kann */
  }

  /* --- 8. Feiertags-Banner Mobile Fixes --- */
  @media (max-width: 900px) {
    .holiday-banner {
      top: 75px; /* Exakt unter der Navbar */
      padding: 12px 0;
    }
    .holiday-text {
      font-size: 0.85rem;
      padding-right: 45px; /* WICHTIG: Verhindert, dass der Text unter das X rutscht */
      text-align: left; /* Bei Icon + Text ist linksbündig lesbarer, der Block selbst ist aber zentriert */
    }
    .holiday-close {
      right: 15px; /* Rückt das X ein kleines Stück vom Bildschirmrand weg */
    }
  }}
/* Datenschutz-Hinweis Box (Digitaler Pass etc.) */
.privacy-notice-box {
  background: #f8f9fa;
  border-left: 4px solid var(--primary);
  padding: 15px 20px;
  margin-top: 25px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.02);
}

/* Der Hover-Effekt: Hebt sich leicht an und wird strahlend weiß */
.privacy-notice-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  background: #ffffff;
  border-left-width: 6px; /* Der rote Rand wird minimal dicker */
}
/* =========================================================
   TURNIERE & TERMINE (JC Königswinter) - KOMPAKT & MODERN
   ========================================================= */

/* --- 1. FILTER MENÜ --- */
.tournament-filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 35px;
}
.filter-btn {
  background: #ffffff; border: 1px solid #e5e7eb; padding: 8px 20px; border-radius: 50px;
  cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #4b5563;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02); transition: all 0.25s ease;
}
.filter-btn:hover {
  border-color: #e30613; color: #e30613; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.filter-btn.active {
  background: #e30613; color: #ffffff; border-color: #e30613;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25); transform: translateY(-2px);
}

/* --- 2. KACHEL GRUNDGERÜST --- */
.tournament-card {
  position: relative; /* WICHTIG: Erlaubt, dass die ganze Karte klickbar wird */
  background: #ffffff; border-radius: 10px; padding: 20px; margin-bottom: 20px;
  border-left: 4px solid #e30613; border-top: 1px solid #f3f4f6; border-right: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: all 0.25s ease; opacity: 0;
}
.tournament-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.tournament-link { text-decoration: none; color: inherit; display: block; }

/* --- 3. KACHEL HEADER --- */
.tournament-header { display: flex; gap: 14px; align-items: center; margin-bottom: 15px; }
.tournament-icon { font-size: 1.8rem; flex-shrink: 0; display: flex; }
.tournament-title { margin: 0; font-weight: 800; color: #111827; line-height: 1.3; font-size: 1.15rem; }

/* --- 4. DETAILS (Desktop: Flexibel) --- */
.tournament-details-box {
  display: flex; flex-wrap: wrap; column-gap: 35px; row-gap: 8px; background: #f9fafb;
  padding: 12px 16px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #f3f4f6;
}
.detail-item { display: flex; align-items: baseline; gap: 8px; font-size: 0.85rem; }
.detail-label { font-weight: 600; color: #6b7280; }
.detail-value { color: #1f2937; font-weight: 700; }

/* --- 5. FOOTER (Badges & Link) --- */
.tournament-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; }
.tournament-badges { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.ak-badge { background: #f3f4f6; color: #374151; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2px; }

.tournament-action {
  font-size: 0.8rem; color: #e30613; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  transition: transform 0.2s ease; display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; margin-left: auto; padding-top: 4px;
}
.tournament-card:hover .tournament-action { transform: translateX(4px); }

/* --- 6. STATUS & HILFSKLASSE --- */
.meldeschluss-bald { color: #dc2626; font-weight: 800; }
.meldeschluss-abgelaufen { color: #9ca3af; text-decoration: line-through; font-weight: 500; }
.tournament-hide { display: none !important; }

/* --- 7. BUTTONS & BOXEN --- */
.load-more-container { text-align: center; margin-top: 10px; margin-bottom: 35px; }
.load-more-btn {
  background: #ffffff; border: 2px solid #e30613; color: #e30613; padding: 10px 30px;
  border-radius: 50px; font-size: 0.9rem; font-weight: bold; cursor: pointer; transition: all 0.25s ease;
}
.load-more-btn:hover { background: #e30613; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2); }

.no-tournaments { text-align: center; padding: 30px 20px; }
.no-tournaments-icon { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.6; }

.contact-highlight-box {
  margin-top: 20px; border-top: 4px solid #e30613; background: #ffffff; padding: 25px;
  border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); text-align: center;
}
.contact-highlight-box h3 { margin-bottom: 10px; font-weight: 800; color: #111827; }
.contact-highlight-box p { font-size: 0.9rem; color: #4b5563; max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* --- 8. MOBILE OPTIMIERUNG (Festes Raster!) --- */
@media (max-width: 768px) {
  .tournament-card { padding: 16px; }
  .tournament-header { margin-bottom: 12px; gap: 12px; }
  .tournament-title { font-size: 1.05rem; }

  /* LÖSUNG: Ein striktes 2-Spalten-Raster zwingt alle Kacheln in das gleiche, kompakte Format */
  .tournament-details-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
    padding: 10px 12px;
  }

  /* Schriftart minimal verkleinert, damit auch fette rote Texte sicher auf den Screen passen */
  .detail-item {
    font-size: 0.75rem;
    gap: 4px;
  }

  .tournament-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tournament-action { margin-left: 0; }
  .ak-badge { font-size: 0.7rem; padding: 4px 10px; }
}
/* --- HERO BANNER TEXT (Erzwingt weiße, lesbare Schrift) --- */
.hero-banner h1,
.hero-banner p {
  color: #ffffff !important;
  text-shadow: 0 2px 15px rgba(0,0,0,0.9) !important; /* Starker Schatten für Kontrast */
  position: relative !important;
  z-index: 10 !important; /* Zieht den Text über den dunklen Hintergrund */
}

/* --- KONTAKT-BOX BUTTON ("Lust auf der Matte") --- */
.contact-highlight-box .btn {
  width: auto !important; /* Stoppt die 100% Breite */
  display: inline-block !important;
  padding: 14px 28px !important;
  margin: 0 auto !important;
}
/* =========================================
   GALERIE BUTTON FIX
   ========================================= */
.slider-container .btn {
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important; /* Verhindert, dass er künstlich in die Breite gezogen wird */
  padding: 10px 25px !important; /* Deutlich schlanker und flacher */
  font-size: 0.85rem !important; /* Dezentere Schriftgröße */
  margin: 20px auto 0 auto !important; /* Exakt in die Mitte gesetzt */
}
/* =========================================
   BUTTON ABSTAND FIX (Untere Boxen)
   ========================================= */
.about-teaser-box .btn,
.contact-highlight-box .btn,
.cta-banner .btn {
  margin-top: 25px !important; /* Erzwingt den Abstand zwischen Text und Button */
}

/* =========================================
   GALERIE CTA BOX (Bereit für die Matte?)
   ========================================= */
/* =========================================
   GALERIE CTA BOX (Bereit für die Matte?)
   ========================================= */
.galerie-cta-box {
  background: var(--white);
  border-top: 5px solid var(--primary);
  border-left: none !important;    /* Blockiert globale Rahmen */
  border-right: none !important;   /* Blockiert globale Rahmen */
  border-bottom: none !important;  /* Blockiert globale Rahmen */
  border-radius: 8px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 850px;
  margin: 60px auto;
}

.galerie-cta-box h2 {
  font-size: 2rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 15px;
  margin-top: 0;
}

.galerie-cta-box p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 30px auto; /* Zentriert den Text und hält Abstand zum Button */
}

/* Button-Styling exakt an das Bild angepasst */
.galerie-cta-box .btn {
  background-color: var(--primary);
  color: var(--white);
  padding: 16px 32px !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0 !important; /* Überschreibt eventuelle globale Button-Abstände */
  border: none;
  transition: all 0.3s ease;
}

.galerie-cta-box .btn:hover {
  background-color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Mobile Optimierung für die Galerie-Box */
@media (max-width: 768px) {
  .galerie-cta-box {
    padding: 40px 20px;
    margin: 40px auto;
    width: 90%; /* Verhindert, dass die Box am Handy am Rand klebt */
  }
  .galerie-cta-box h2 {
    font-size: 1.6rem;
  }
  .galerie-cta-box .btn {
    width: 100%; /* App-Look auf dem Smartphone */
  }
}
