/* ===================================================================
   BSC Biendorf — Sponsoren: Logo-Kacheln (überall) und /verein/sponsoren

   Die Logos kommen in jeder Form: weiß mit Rand, transparent, auf
   knallroter oder blauer Fläche, sogar als Foto. Zwei Regeln machen
   daraus eine ruhige Wand:
     sp-frei     Logo steht mit viel Luft auf Weiß, nie größer als
                 die Fläche — so wirken breite und hohe Logos gleich schwer
     sp-flaeche  Logo mit eigener Farbfläche: die ganze Kachel bekommt
                 die Markenfarbe, das Logo steht vollständig darauf —
                 so entsteht kein Kasten im Kasten
   =================================================================== */

/* ---------- Kachel (Startseite und Sponsorenseite) ---------- */

.sp-frei,
.sp-flaeche {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.sp-frei:hover,
a.sp-flaeche:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 16px 30px -16px rgba(0, 0, 0, .35);
}

.sp-frei { padding: 18px 22px; }
.sp-frei img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sp-flaeche { padding: 8px 12px; }
.sp-flaeche img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Startseite: die Laufband-Kacheln übernehmen die neue Form */
.laufband .logo.sp-frei,
.laufband .logo.sp-flaeche {
  height: auto;
  aspect-ratio: 3 / 2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04);
}
.laufband .logo.sp-frei { padding: 16px 20px; }
.laufband .logo.sp-flaeche { padding: 8px 12px; }

/* ---------- Sponsorenseite: Logo-Wand ---------- */

.sp-wand {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.sp-karte { display: flex; flex-direction: column; gap: 12px; }
.sp-logo { aspect-ratio: 3 / 2; }

.sp-text h3 { margin: 0 0 2px; font-size: 1rem; color: var(--gruen); }
.sp-text p { margin: 0; color: var(--grau); font-size: .86rem; line-height: 1.4; }
.sp-text a {
  display: inline-block;
  margin-top: 6px;
  color: var(--gruen-hell);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.sp-text a:hover { text-decoration: underline; }

/* ---------- Partner werden ---------- */

.sp-werden {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(160deg, #F4FAF6, #E6F2EA);
  border: 1px solid #D6E9DD;
  border-radius: 20px;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.sp-werden .eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gruen-hell);
}
.sp-werden h2 { margin: 4px 0 10px; }
.sp-werden-text > p { margin: 0 0 20px; color: var(--grau); }

.sp-moeglich {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.sp-moeglich li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.sp-moeglich svg {
  flex: none;
  width: 34px; height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  color: var(--gruen);
  box-shadow: 0 0 0 1px #D6E9DD;
}
.sp-moeglich b { display: block; color: var(--gruen); }
.sp-moeglich span { font-size: .95rem; color: var(--text); }

.sp-werden-bild { margin: 0; }
.sp-werden-bild img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 16px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .45);
}
.sp-werden-bild figcaption { margin-top: 10px; font-size: .82rem; color: var(--grau); text-align: center; }

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 960px) { .sp-wand { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sp-werden { grid-template-columns: 1fr; }
  .sp-werden-bild img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .sp-wand { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  .sp-frei, .sp-flaeche { transition: none; }
}
