/* ==========================================================================
   Home Page (pages/home.php) Styles
   SV Fortuna Schneidlingen 1919 e.V.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section & Interactive Sponsor Ticker
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 85px; /* Space for fixed navigation */
  padding-bottom: 0;
  isolation: isolate;
  background-color: #0c0f24;
}

.hero-bg, picture.hero-bg, picture.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 26, 92, 0.75) 0%, rgba(10, 15, 40, 0.5) 55%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  color: var(--text-light);
  z-index: 2;
  position: relative;
  padding: 1.5rem 2rem;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  max-width: 900px;
  margin: auto 0;
  animation: fadeIn 1s ease-out;
}

.hero-content h1 {
  font-family: 'Bangers', cursive;
  font-weight: 400;
  letter-spacing: 2px;
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  line-height: 1.08;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Sponsor Ticker / Carousel */
.hero-sponsor-ticker {
  width: 100%;
  z-index: 2;
  background: rgba(10, 14, 38, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.25rem;
  overflow: hidden;
  position: relative;
}

.hero-sponsor-ticker .ticker-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.hero-sponsor-ticker .ticker-header span {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.ticker-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.ticker-wrapper::-webkit-scrollbar {
  display: none;
}

.ticker-wrapper.is-dragging {
  cursor: grabbing;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: scroll-position;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 1.6rem;
  flex-shrink: 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 24px;
  height: 76px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.ticker-item:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.ticker-item img {
  height: 54px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Mobile Hero Optimizations */
@media (max-width: 768px) {
  .hero {
    padding-top: 65px;
    padding-bottom: 0;
  }
  .hero-content {
    padding: 0.4rem 1.2rem;
    margin: auto 0;
  }
  .hero-content h1 {
    font-size: clamp(2.2rem, 7.5vw, 2.9rem);
    line-height: 1.05;
    margin-bottom: 0.6rem;
  }
  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 1.2rem;
    max-width: 320px;
  }
  .hero-sponsor-ticker {
    padding: 0.55rem 0 0.65rem;
  }
  .hero-sponsor-ticker .ticker-header {
    margin-bottom: 0.35rem;
  }
  .hero-sponsor-ticker .ticker-header span {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }
  .ticker-group {
    gap: 1rem;
    padding-right: 1rem;
  }
  .ticker-item {
    height: 52px;
    padding: 5px 16px;
    border-radius: 10px;
  }
  .ticker-item img {
    height: 35px;
    max-width: 130px;
  }
}

@media (max-height: 680px) and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
  }
  .hero-content p {
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   2. About Section
   -------------------------------------------------------------------------- */
.about {
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-image img {
  width: 100%;
  max-width: 380px;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
}

.about-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  background: var(--theme-bg-surface-subtle);
  border: 1px solid var(--theme-border-card);
  border-radius: 16px;
  transition: all 0.25s ease;
}

.about-highlight-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(61, 47, 134, 0.1);
}

.about-highlight-icon {
  width: 40px;
  height: 40px;
  background: rgba(61, 47, 134, 0.1);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.about-highlight-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--theme-text-main);
  line-height: 1.35;
}

.about-highlight-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--theme-text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

@media (max-width: 1024px) {
  .about-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 580px) {
  .about-highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   3. Teams Section
   -------------------------------------------------------------------------- */
.teams {
  background-color: #f8fafc;
  position: relative;
  z-index: 1;
  padding-bottom: 7rem;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-cards-2col, .team-cards-youth {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.team-cards-2col .team-card img, 
.team-cards-youth .team-card img,
.team-cards-2col .team-card .team-card-placeholder,
.team-cards-youth .team-card .team-card-placeholder {
  height: 280px;
}

.team-card-training {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  margin-top: 0.6rem;
  border-top: 1px solid var(--theme-border-divider);
  padding-top: 0.6rem;
}

.team-card-placeholder {
  background: linear-gradient(135deg, #1e1b4b 0%, #3D2F86 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 2rem 1.5rem;
  text-align: center;
}

.team-placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fbbf24;
  margin-bottom: 0.9rem;
}

.team-placeholder-text {
  font-size: 1.15rem;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 0;
}

.team-placeholder-sub {
  font-size: 0.84rem;
  opacity: 0.85;
  margin-top: 0.35rem;
  color: #e2e8f0;
}

@media (max-width: 768px) {
  .team-cards-2col, .team-cards-youth {
    grid-template-columns: 1fr;
  }
  .team-cards-2col .team-card img, 
  .team-cards-youth .team-card img,
  .team-cards-2col .team-card .team-card-placeholder,
  .team-cards-youth .team-card .team-card-placeholder {
    height: 220px;
  }
}

/* --------------------------------------------------------------------------
   4. Youth Highlight Section (Dynamischer Schrägschnitt)
   -------------------------------------------------------------------------- */
#jugend {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #e8eeff 100%);
  clip-path: polygon(0 3.5vw, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
  padding-top: 8rem !important;
  padding-bottom: 8rem !important;
  margin-top: -3.5vw;
  margin-bottom: -3.5vw;
  box-shadow: 0 15px 40px rgba(61, 47, 134, 0.07);
}

#jugend .about-image img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   5. Values Section
   -------------------------------------------------------------------------- */
.values {
  background-color: #ffffff;
  position: relative;
  z-index: 1;
  padding-top: 6.5rem;
  padding-bottom: 5.5rem;
}

.values-grid,
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.value-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(61, 47, 134, 0.08);
  border-top: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(61, 47, 134, 0.12);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(61, 47, 134, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.value-card:hover .value-icon {
  background: var(--primary-color);
  color: #ffffff;
  transform: scale(1.05);
}

.value-card h3 {
  color: var(--primary-color);
  margin-bottom: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.value-card p {
  margin-bottom: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .values-grid,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   6. Kooperationen Section
   -------------------------------------------------------------------------- */
.kooperationen {
  background-color: #f8fafc;
  position: relative;
  z-index: 1;
  padding: 5.5rem 2rem 7rem;
}

.team-cards-koop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.koop-card {
  background: var(--theme-bg-surface, #ffffff);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--theme-border-card, #e2e8f0);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.koop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(61, 47, 134, 0.12);
}

/* Einheitliche Container-Größe für alle Partner-Logos */
.koop-img-wrap {
  width: 100%;
  height: 180px;
  background: #ffffff;
  border-bottom: 1px solid var(--theme-border-divider, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Dunkler Kontrast-Hintergrund speziell für das weiße Logo der Sekundarschule LebenLernen */
.koop-img-dark {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

/* Logos passen sich komplett ein (kein Beschneiden, kein Cover) */
.koop-logo-img {
  max-width: 90%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain !important;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: zoom-in;
}

.koop-card:hover .koop-logo-img {
  transform: scale(1.05);
}

.koop-card-content {
  padding: 1.8rem 1.6rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.koop-card-content h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.koop-card-content p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.team-badge.badge-fcm {
  background-color: #003a70;
  color: #ffffff;
}

@media (max-width: 768px) {
  .team-cards-koop {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .koop-img-wrap {
    height: 150px;
    padding: 1.2rem 1.4rem;
  }
  .koop-logo-img {
    max-height: 100px;
  }
}

/* Senior Teams Cards (Bleiben unverändert für Spielerfotos) */
.team-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform var(--transition-speed);
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.team-card img:hover {
  filter: brightness(1.05);
}

.team-card-content {
  padding: 1.5rem;
  text-align: center;
}

.team-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   7. Sponsors Teaser Grid on Home
   -------------------------------------------------------------------------- */
.sponsors {
  background-color: #fff;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.sponsor-logo {
  width: 100%;
  max-width: 200px;
  transition: filter var(--transition-speed), transform var(--transition-speed);
  filter: grayscale(100%);
  opacity: 0.7;
}

.sponsor-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   8. Social Media Section
   -------------------------------------------------------------------------- */
.social-section {
  background: linear-gradient(135deg, #130f2c 0%, #1c1543 50%, #3D2F86 100%);
  color: #ffffff;
  position: relative;
  z-index: 5;
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
  padding-top: 8rem !important;
  padding-bottom: 6.5rem !important;
  margin-top: -3vw;
}

.social-section h2 {
  color: #ffffff !important;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 992px) {
  .social-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
}

.social-card {
  background: #ffffff !important;
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  padding: 2.2rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none !important;
  color: inherit !important;
}

.social-card,
.social-card:hover,
.social-card:focus,
.social-card:visited {
  text-decoration: none !important;
  color: inherit !important;
}

.social-card * {
  text-decoration: none !important;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 2;
}

.social-card.whatsapp::before  { background: #25D366; }
.social-card.instagram::before { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-card.facebook::before  { background: #1877F2; }
.social-card.youtube::before   { background: #FF0000; }

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.social-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-card:hover .social-icon-badge {
  transform: scale(1.1) rotate(-3deg);
}

.social-badge-whatsapp  { background: rgba(37, 211, 102, 0.12); color: #25D366; }
.social-badge-instagram { background: rgba(225, 48, 108, 0.12); color: #E1306C; }
.social-badge-facebook  { background: rgba(24, 119, 242, 0.12); color: #1877F2; }
.social-badge-youtube   { background: rgba(255, 0, 0, 0.12); color: #FF0000; }

.social-card-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.social-card-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b !important;
  margin-bottom: 1.5rem;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.2rem;
  border-radius: 25px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-social:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-social-whatsapp  { background-color: #25D366; }
.btn-social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-social-facebook  { background-color: #1877F2; }
.btn-social-youtube   { background-color: #FF0000; }

@media (max-width: 1024px) {
  .social-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
}

@media (max-width: 580px) {
  .social-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .social-section {
    padding-top: 6rem !important;
    padding-bottom: 5rem !important;
  }
}
