/* ==========================================================================
   FSV Dieskau Theme – jugend.css
   Scope: .fsv-jugend
   Nutzt Design-Tokens aus main.css (--blue-900, --blue-800, --surface, etc.)
   ========================================================================== */

.fsv-jugend{
  color: var(--text);
}

.fsv-jugend h2{
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--blue-900);
  margin: 0 0 14px 0;
}

.fsv-jugend h3{
  font-size: 18px;
  color: var(--blue-900);
  margin: 18px 0 8px 0;
}

.fsv-jugend p{ margin: 0 0 12px 0; }

.fsv-jugend a{ color: var(--blue-800); }
.fsv-jugend a:hover{ text-decoration: underline; }

/* ── Sections ohne --alt: explizit dunkler Hintergrund + heller Text ──
   Kein Konditionell auf body-Klassen nötig – der Hintergrund ist immer dunkel. */

.fsv-jugend__section:not(.fsv-jugend__section--alt) {
  background: var(--blue-800);
}

/* Alle direkten Text-Elemente → dreckiges Weiß */
.fsv-jugend__section:not(.fsv-jugend__section--alt) h2,
.fsv-jugend__section:not(.fsv-jugend__section--alt) h3,
.fsv-jugend__section:not(.fsv-jugend__section--alt) p,
.fsv-jugend__section:not(.fsv-jugend__section--alt) li,
.fsv-jugend__section:not(.fsv-jugend__section--alt) a {
  color: #ece8df;
}
.fsv-jugend__section:not(.fsv-jugend__section--alt) a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Weiße Karten in dunklen Sections → dunkler Text (gleiche Spez. 0,2,X, kommt danach → gewinnt) */
.fsv-jugend__section .fsv-jugend__team-card h3,
.fsv-jugend__section .fsv-jugend__team-card p,
.fsv-jugend__section .fsv-jugend__team-card li,
.fsv-jugend__section .fsv-jugend__contact-card h3,
.fsv-jugend__section .fsv-jugend__contact-card p {
  color: #2a2a2a;
}
.fsv-jugend__section .fsv-jugend__team-card a,
.fsv-jugend__section .fsv-jugend__contact-card a {
  color: var(--blue-800);
}
.fsv-jugend__section .fsv-jugend__team-card a:hover,
.fsv-jugend__section .fsv-jugend__contact-card a:hover {
  color: var(--blue-900);
  text-decoration: underline;
}

/* Ghost-Button in Karte behält Markenfarbe */
.fsv-jugend__section .fsv-jugend__team-card .fsv-jugend__btn--ghost {
  color: var(--blue-800);
  border-color: var(--blue-800);
}
.fsv-jugend__section .fsv-jugend__team-card .fsv-jugend__btn--ghost:hover {
  background: var(--blue-800);
  color: #fff;
}

.fsv-jugend__muted{
  color: var(--muted);
  font-size: 14px;
}

/* ===============================
   HERO
=============================== */
.fsv-jugend__hero{
  background: linear-gradient(180deg, var(--surface) 0%, #ffffff 100%);
  padding: 32px 0 24px 0;
  border-bottom: 1px solid rgba(11, 61, 145, 0.10);
}

.fsv-jugend__h1{
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 12px 0;
  color: var(--blue-900);
}

.fsv-jugend__lead{
  font-size: 18px;
  max-width: 820px;
  color: rgba(15, 23, 42, 0.85);
  margin: 0 0 18px 0;
}

.fsv-jugend__quicknav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
}
.fsv-jugend__quicknav a{
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(11, 61, 145, 0.20);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-900);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.fsv-jugend__quicknav a:hover{
  background: var(--blue-800);
  color: #fff;
  border-color: var(--blue-800);
  text-decoration: none;
}

/* ===============================
   SECTIONS
=============================== */
.fsv-jugend__section{
  padding: 36px 0;
}
.fsv-jugend__section--alt{
  background: var(--surface);
}

.fsv-jugend__intro{
  max-width: 820px;
  margin: 0 0 18px 0;
  color: rgba(15, 23, 42, 0.85);
}

/* ===============================
   MANNSCHAFTEN GRID
=============================== */
.fsv-jugend__teams{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fsv-jugend__team-card{
  background: #fff;
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(11, 61, 145, 0.04);
  display: flex;
  flex-direction: column;
}

.fsv-jugend__team-card h3{
  margin: 0 0 4px 0;
  font-size: 19px;
}

.fsv-jugend__team-age{
  font-weight: 700;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
  margin: 0 0 10px 0;
}

.fsv-jugend__team-desc{
  flex: 1;
  margin: 0 0 14px 0;
}

@media (max-width: 900px){
  .fsv-jugend__teams{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .fsv-jugend__teams{ grid-template-columns: 1fr; }
}

/* ===============================
   TWO-COLUMN CONTENT (eigene Klasse)
=============================== */
.fsv-jugend__cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px){
  .fsv-jugend__cols{ grid-template-columns: 1fr; gap: 12px; }
}

/* ===============================
   GUTENBERG BLÖCKE im Jugend-Bereich
   (Spalten-Block, Listen, etc.)
=============================== */
.fsv-jugend .wp-block-columns{
  display: flex !important;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
}
.fsv-jugend .wp-block-column{
  flex: 1 1 280px;
  min-width: 0;
}
@media (max-width: 782px){
  .fsv-jugend .wp-block-columns{
    flex-direction: column;
    gap: 0;
  }
  .fsv-jugend .wp-block-column{ flex: 1 1 100%; }
}

/* Listen in Gutenberg-Blöcken wie fsv-jugend__list stylen */
.fsv-jugend .wp-block-list,
.fsv-jugend ul:not([class]),
.fsv-jugend ol:not([class]){
  padding-left: 20px;
  margin: 0 0 12px 0;
}
.fsv-jugend .wp-block-list li,
.fsv-jugend ul:not([class]) li,
.fsv-jugend ol:not([class]) li{
  margin-bottom: 6px;
}

.fsv-jugend__list{
  margin: 0 0 12px 0;
  padding-left: 20px;
}
.fsv-jugend__list li{
  margin-bottom: 6px;
}

/* ===============================
   SCHEDULE WRAPPER
=============================== */
.fsv-jugend__schedule{
  background: #fff;
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(11, 61, 145, 0.04);
}

/* ===============================
   CALLOUT (Probetraining)
=============================== */
.fsv-jugend__callout{
  background: #fff;
  border-left: 4px solid var(--blue-800);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 2px 10px rgba(11, 61, 145, 0.04);
}
.fsv-jugend__callout p:last-child{ margin-bottom: 0; }

/* ===============================
   CONTACT
=============================== */
.fsv-jugend__contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px){
  .fsv-jugend__contact{ grid-template-columns: 1fr; }
}

.fsv-jugend__contact-card{
  background: #fff;
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 10px rgba(11, 61, 145, 0.04);
}

.fsv-jugend__contact-name{
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 6px 0;
}

/* ===============================
   FAQ
=============================== */
.fsv-jugend__faq details{
  background: #fff;
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(11, 61, 145, 0.03);
}
.fsv-jugend__faq summary{
  cursor: pointer;
  font-weight: 800;
  color: var(--blue-900);
  list-style: none;
  padding: 4px 0;
  position: relative;
  padding-right: 28px;
}
.fsv-jugend__faq summary::-webkit-details-marker{ display: none; }
.fsv-jugend__faq summary::after{
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.fsv-jugend__faq details[open] summary::after{ content: "–"; }
.fsv-jugend__faq details p{
  margin: 10px 0 4px 0;
}

/* FAQ-Antworten: immer dunkler Text auf weißer Karte (höhere Spez. schlägt Section-Regel) */
.fsv-jugend__section .fsv-jugend__faq details p {
  color: #2a2a2a;
}

/* ===============================
   FILM-KARUSSELL
=============================== */

/* Äußerer Rahmen – schwarz wie ein Filmprojektor */
.fsv-film {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  line-height: 0; /* kein Whitespace-Gap unter inline-Elementen */
}

/* Filmstreifen-Rand (oben + unten) mit Lochung via CSS-Background */
.fsv-film__strip {
  width: 100%;
  height: 28px;
  background-color: #111;
  /* Perforierungs-Löcher: oval, gleichmäßig wiederholt */
  background-image: radial-gradient(ellipse 5px 9px at center, #000 95%, transparent 96%);
  background-size: 32px 100%;
  background-repeat: repeat-x;
  background-position: 8px center;
  position: relative;
  z-index: 2;
}

/* Slides-Viewport */
.fsv-film__track {
  position: relative;
  width: 100%;
  height: 400px !important;
  overflow: hidden;
  background: #000;
}

/* Film-Grain-Overlay (sehr dezent) */
.fsv-film__track::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Einzelne Slides */
.fsv-film__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fsv-film__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.fsv-film__track .fsv-film__slide img {
  width: auto !important;
  height: 400px !important;
  display: block !important;
  will-change: transform;
  transform-origin: center center;
}

/* Ken Burns – 3 Varianten (per JS via Klasse gesetzt) */
@keyframes fsv-kb-a {
  0%   { transform: scale(1.00) translate( 0,     0); }
  100% { transform: scale(1.08) translate(-2%,   1%); }
}
@keyframes fsv-kb-b {
  0%   { transform: scale(1.00) translate( 0,     0); }
  100% { transform: scale(1.08) translate( 2%,  -1%); }
}
@keyframes fsv-kb-c {
  0%   { transform: scale(1.05) translate( 1.5%, 1%); }
  100% { transform: scale(1.00) translate(-1%,  -0.5%); }
}

.fsv-film__track .fsv-film__slide img.kb-a.kb-run { animation: fsv-kb-a 7s ease-out forwards; }
.fsv-film__track .fsv-film__slide img.kb-b.kb-run { animation: fsv-kb-b 7s ease-out forwards; }
.fsv-film__track .fsv-film__slide img.kb-c.kb-run { animation: fsv-kb-c 7s ease-out forwards; }

/* Navigation Dots */
.fsv-film__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.fsv-film__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}

.fsv-film__dot.is-active {
  background: #fff;
  transform: scale(1.45);
}

/* ===============================
   BUTTONS
=============================== */
.fsv-jugend__btn{
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--blue-800);
  background: var(--blue-800);
  color: #fff;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease;
}
.fsv-jugend__btn:hover{
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
  text-decoration: none;
}
.fsv-jugend__btn--ghost{
  background: transparent;
  color: var(--blue-800);
}
.fsv-jugend__btn--ghost:hover{
  background: var(--blue-800);
  color: #fff;
}
