/* ============================================================
   SPONSOREN-GRID · sponsoring.html #partner-grid
   Hauptsponsoren-Spotlight (3 Boxen) + tier-gestaffeltes Logo-Grid.
   Logos sind 1456×840 PNGs (16:9). Default-Darstellung: weiße Box
   mit aspect-ratio 16/9, Logo center/contain. Mix-blend-Variante als
   auskommentierter Toggle weiter unten.
   ============================================================ */

/* Spotlight — 2 große Karten für Hauptsponsoren (OSPA, Stadtwerke).
   WIRO ist als Premiumpartner ins Grid darunter gewandert. */
.spo-spotlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.spo-spotlight-card {
  padding: 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.spo-spotlight-card.variant-ink { background: var(--ink); color: white; }
.spo-spotlight-card.variant-red { background: var(--red); color: white; }
.spo-spotlight-card.variant-red::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.6px);
  background-size: 16px 16px; opacity: 0.30; pointer-events: none;
}
.spo-spotlight-card > * { position: relative; }
.spo-spotlight-card .num {
  position: absolute;
  right: -30px; bottom: -50px;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 220px; line-height: 0.78; opacity: 0.18; pointer-events: none;
  letter-spacing: -0.02em;
}
.spo-spotlight-card.variant-ink .num { color: var(--red); }
.spo-spotlight-card.variant-red .num { color: var(--ink); }
.spo-spotlight-card .logo-box {
  background: white; padding: 16px 22px;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start; min-height: 72px; min-width: 160px; max-width: 100%;
}
.spo-spotlight-card .logo-box img {
  max-height: 56px; max-width: 240px; object-fit: contain; display: block;
}
.spo-spotlight-card .heading {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 34px; line-height: 0.95; text-transform: uppercase;
  letter-spacing: 0.005em;
}
.spo-spotlight-card.variant-ink .heading .r { color: var(--red); }
.spo-spotlight-card.variant-red .heading .r { color: var(--ink); }
.spo-spotlight-card p {
  font-family: var(--body); font-size: 14px; line-height: 1.55; margin: 0;
}
.spo-spotlight-card.variant-ink p { color: rgba(255,255,255,0.85); }
.spo-spotlight-card.variant-red p { color: rgba(255,255,255,0.95); }
.spo-spotlight-card .badge-official {
  position: absolute; top: 14px; right: 14px;
  background: var(--red); color: white;
  padding: 4px 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700; z-index: 3;
}
.spo-spotlight-card.variant-red .badge-official { background: var(--ink); }

/* Tier sub-heading (Platin / Team / ProClub / Club) */
.spo-tier-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(14,14,18,0.18);
}
.spo-tier-head .l {
  font-family: var(--display); font-weight: 800; font-style: normal;
  font-size: 26px; text-transform: uppercase; color: var(--ink);
  letter-spacing: 0.005em;
}
.spo-tier-head .l .r { color: var(--red); }
.spo-tier-head .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(14,14,18,0.55); font-weight: 700;
}

/* Tier grids — Spaltenanzahl variiert mit Tier */
.spo-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.spo-grid.tier-platin  { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spo-grid.tier-premium { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.spo-grid.tier-team    { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.spo-grid.tier-pro     { grid-template-columns: repeat(7, 1fr); }
.spo-grid.tier-club    { grid-template-columns: repeat(7, 1fr); gap: 8px; }
/* Ohne min-width:0 schrumpft eine Grid-Kachel nicht unter ihre Inhaltsbreite —
   lange Namen ("MKG Sievershagen") drueckten Club 1949 bei 10 Spalten ueber den
   Rand. Galt bisher nur in der Handy-Regel der Seite, jetzt fuer alle Breiten. */
.spo-grid > .spo-tile { min-width: 0; }
/* Premium leicht hervorgehoben — alle anderen Tier in Standard-Tile-Größe */
.spo-grid.tier-premium .spo-tile .box { aspect-ratio: 16 / 10; padding: 22px; }

/* Hero-Treatment für Haupt- + Platinsponsor — horizontal, breit, dominant */
.spo-spotlight-card.hero-haupt,
.spo-spotlight-card.hero-platin {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.spo-spotlight-card.hero-haupt  { min-height: 460px; padding: 56px; }
.spo-spotlight-card.hero-platin { min-height: 320px; padding: 44px 56px; }
.spo-spotlight-card.hero-haupt  .heading { font-size: 96px; line-height: 0.92; }
.spo-spotlight-card.hero-platin .heading { font-size: 64px; line-height: 0.92; }
.spo-spotlight-card.hero-haupt  .label-light,
.spo-spotlight-card.hero-platin .label-light { font-size: 13px; letter-spacing: 0.28em; }
.spo-spotlight-card.hero-haupt  .logo-box,
.spo-spotlight-card.hero-platin .logo-box {
  background: white; padding: 36px; height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center; margin: 0;
}
.spo-spotlight-card.hero-haupt  .logo-box img { max-height: 280px; max-width: 100%; object-fit: contain; }
.spo-spotlight-card.hero-platin .logo-box img { max-height: 180px; max-width: 100%; object-fit: contain; }
.spo-spotlight-card.hero-haupt  p,
.spo-spotlight-card.hero-platin p { font-size: 16px; line-height: 1.6; max-width: 520px; }

/* Tile · Default = weiße Box, aspect-ratio 16:9, Logo center/contain */
.spo-tile {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: inherit;
}
.spo-tile .box {
  background: white;
  border: 1px solid rgba(14,14,18,0.10);
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  position: relative; overflow: hidden;
  transition: border-color .12s, transform .12s;
}
.spo-tile:hover .box {
  border-color: var(--red);
  transform: translateY(-1px);
}
.spo-tile .box img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
}
.spo-tile .caption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 6px; padding: 0 2px;
}
.spo-tile .caption .name {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spo-tile .caption .branche {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(14,14,18,0.45); font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.spo-tile .badge-official {
  position: absolute; top: 6px; right: 6px;
  background: var(--red); color: white;
  padding: 2px 6px;
  font-family: var(--mono); font-size: 7px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700; z-index: 2;
}
.spo-tile.ghost .box {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border: none; color: white;
  flex-direction: column; gap: 4px;
  position: relative;
}
.spo-tile.ghost .box::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.6px);
  background-size: 14px 14px; opacity: 0.40; pointer-events: none;
}
.spo-tile.ghost .box .lbl {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85); font-weight: 700; position: relative;
}
.spo-tile.ghost .box .txt {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 16px; line-height: 1; text-transform: uppercase;
  text-align: center; letter-spacing: -0.005em; position: relative;
}

/* ---- OPTIONAL: Mix-Blend-Variante ----
   Wenn .spo-grid die Klasse `blend` zusätzlich bekommt, fallen die Boxen
   weg und Logos werden via mix-blend-mode auf den Paper-BG gemischt.
   Vorteil: cleaner, "premium"-Look. Risiko: dunkle Logos werden auf
   Paper unsichtbar, farbige Logo-Hintergründe schlagen durch.
   Zum Testen: `class="spo-grid tier-team blend"` setzen. */
.spo-grid.blend .spo-tile .box {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(14,14,18,0.10);
}
.spo-grid.blend .spo-tile .box img { mix-blend-mode: multiply; }
.spo-grid.blend .spo-tile:hover .box {
  border-color: transparent;
  border-bottom-color: var(--red);
  transform: translateY(-1px);
}

/* ============================================================
   PARTNER-FOOTER · schmaler Sponsoren-Streifen am Page-Ende
   Wird auf den 3 Form-Pages genutzt (mitglied/crew/akkreditierung).
   8 Top-Logos in einer Reihe, Graustufen, statisch (keine Animation).
   ============================================================ */
.spo-formfooter {
  background: var(--paper);
  padding: 28px 56px 32px;
  border-top: 1px solid rgba(14,14,18,0.10);
}
.spo-formfooter .lbl {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(14,14,18,0.55);
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
}
.spo-formfooter .row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 22px;
  align-items: center;
}
.spo-formfooter .row .l {
  display: flex; align-items: center; justify-content: center;
  height: 44px;
}
.spo-formfooter .row .l img {
  max-height: 100%; max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
}

@media (max-width: 1024px) {
  .spo-spotlight { grid-template-columns: 1fr; }
  .spo-spotlight-card.hero-haupt,
  .spo-spotlight-card.hero-platin {
    grid-template-columns: 1fr; gap: 24px; min-height: 0; padding: 36px 28px;
  }
  .spo-spotlight-card.hero-haupt .heading { font-size: 60px; }
  .spo-spotlight-card.hero-platin .heading { font-size: 48px; }
  .spo-spotlight-card.hero-haupt .logo-box,
  .spo-spotlight-card.hero-platin .logo-box { min-height: 140px; padding: 24px; }
  .spo-grid.tier-team { grid-template-columns: repeat(4, 1fr); }
  .spo-grid.tier-pro  { grid-template-columns: repeat(5, 1fr); }
  .spo-grid.tier-club { grid-template-columns: repeat(6, 1fr); }
  .spo-formfooter { padding: 24px 22px; }
  .spo-formfooter .row { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .spo-spotlight-card.hero-haupt .heading { font-size: 44px; }
  .spo-spotlight-card { min-height: 0; padding: 28px; }
  .spo-grid.tier-platin, .spo-grid.tier-premium { grid-template-columns: repeat(2, 1fr); }
  .spo-grid.tier-team { grid-template-columns: repeat(3, 1fr); }
  .spo-grid.tier-pro  { grid-template-columns: repeat(4, 1fr); }
  .spo-grid.tier-club { grid-template-columns: repeat(4, 1fr); }
  .spo-tier-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spo-formfooter .row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 400px) {
  .spo-grid.tier-club, .spo-grid.tier-pro { grid-template-columns: repeat(3, 1fr); }
  .spo-formfooter .row { grid-template-columns: repeat(2, 1fr); }
}
