/* ==========================================================================
   TSV 1919 - Sponsoren
   Variante C: breite, ratio-aware Sponsor-Karten
   ========================================================================== */

body.page-sponsoren .article-header,
body.page-sponsoren .article-title {
  display: none !important;
}

body.page-sponsoren .gh-content.gh-canvas {
  padding-top: 0 !important;
}

body.page-sponsoren .gh-content:only-child > .tsv-spon:first-child {
  margin-top: 96px !important;
}

body.page-sponsoren .gh-content > .tsv-spon:last-child {
  margin-bottom: clamp(42px, 5vw, 76px) !important;
}

body.page-sponsoren .tsv-spon {
  color: rgba(255, 255, 255, 0.93);
  margin-bottom: 0 !important;
}

body.page-sponsoren .tsv-spon-hero,
body.page-sponsoren .tsv-spon-wrap {
  width: min(1250px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

body.page-sponsoren .tsv-spon-hero {
  margin-bottom: 32px;
  text-align: center;
}

body.page-sponsoren .tsv-spon-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 950;
  letter-spacing: 0.18px;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.58);
}

body.page-sponsoren .tsv-spon-hero p {
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.45;
  font-weight: 650;
  opacity: 0.9;
}

body.page-sponsoren .tsv-spon-wrap {
  margin-bottom: 60px;
}

body.page-sponsoren .tsv-spon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 650px) {
  body.page-sponsoren .tsv-spon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 1000px) {
  body.page-sponsoren .tsv-spon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

body.page-sponsoren .tsv-spon-card {
  display: flex;
  flex-direction: column;
  background: rgba(12, 12, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.page-sponsoren .tsv-spon-card:hover,
  body.page-sponsoren .tsv-spon-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(214, 31, 42, 0.9);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(214, 31, 42, 0.45);
  }
}

body.page-sponsoren .tsv-spon-logo {
  height: clamp(180px, 19vw, 210px);
  padding: 20px 22px;
  background: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.page-sponsoren .tsv-spon-logo:has(img[src*="naumann-bauunternehmung"]) {
  background: #000;
}

body.page-sponsoren .tsv-spon-logo:has(img[src*="continentale-maximilian-lenz"]) {
  background: #002d5c;
}

body.page-sponsoren .tsv-spon-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

body.page-sponsoren .tsv-spon-logo--very-wide {
  padding-left: 20px;
  padding-right: 20px;
}

body.page-sponsoren .tsv-spon-logo--very-wide img {
  max-width: 96%;
  max-height: 72%;
}

body.page-sponsoren .tsv-spon-logo--wide {
  padding-left: 24px;
  padding-right: 24px;
}

body.page-sponsoren .tsv-spon-logo--wide img {
  max-width: 90%;
  max-height: 78%;
}

body.page-sponsoren .tsv-spon-logo--normal {
  padding-left: 30px;
  padding-right: 30px;
}

body.page-sponsoren .tsv-spon-logo--normal img {
  max-width: 82%;
  max-height: 80%;
}

body.page-sponsoren .tsv-spon-logo--square {
  padding-left: 36px;
  padding-right: 36px;
}

body.page-sponsoren .tsv-spon-logo--square img {
  max-width: 74%;
  max-height: 82%;
}

body.page-sponsoren .tsv-spon-logo-fallback {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(16, 16, 16, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 16px;
  color: rgba(8, 8, 8, 0.86);
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
}

body.page-sponsoren .tsv-spon-logo-fallback[hidden] {
  display: none !important;
}

body.page-sponsoren .tsv-spon-logo img[hidden] {
  display: none !important;
}

body.page-sponsoren .tsv-spon-fallback-main {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 900;
  text-transform: uppercase;
}

body.page-sponsoren .tsv-spon-fallback-sub {
  display: block;
  font-size: clamp(12px, 1.45vw, 16px);
  line-height: 1.2;
  letter-spacing: 0.15em;
  font-weight: 700;
  opacity: 0.82;
}

body.page-sponsoren .tsv-spon-fallback-sub:empty {
  display: none;
}

body.page-sponsoren .tsv-spon-body {
  padding: 14px 16px 15px;
}

body.page-sponsoren .tsv-spon-body h3 {
  margin: 0 0 7px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.24;
  font-weight: 900;
}

body.page-sponsoren .tsv-spon-address {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 620;
  opacity: 0.94;
  overflow-wrap: anywhere;
}

body.page-sponsoren .tsv-spon-dot,
body.page-sponsoren .tsv-spon-sep {
  opacity: 0.62;
}

body.page-sponsoren .tsv-spon-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.page-sponsoren .tsv-spon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

body.page-sponsoren .tsv-spon-action:hover,
body.page-sponsoren .tsv-spon-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

body.page-sponsoren .tsv-spon-action--website {
  border-color: rgba(214, 31, 42, 0.86);
  background: rgba(214, 31, 42, 0.2);
  color: #fff;
}

body.page-sponsoren .tsv-spon-action--website:hover,
body.page-sponsoren .tsv-spon-action--website:focus-visible {
  border-color: rgba(214, 31, 42, 1);
  background: rgba(214, 31, 42, 0.32);
}

body.page-sponsoren .tsv-spon-secondary {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.72;
  overflow-wrap: anywhere;
}

body.page-sponsoren .tsv-spon-secondary span {
  opacity: 0.88;
}

body.page-sponsoren .tsv-spon-contact {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 640;
  opacity: 0.8;
}

html:not(.dark-mode) body.page-sponsoren .tsv-spon {
  color: rgba(0, 0, 0, 0.88);
}

html:not(.dark-mode) body.page-sponsoren .tsv-spon-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

html:not(.dark-mode) body.page-sponsoren .tsv-spon-action {
  color: rgba(0, 0, 0, 0.84);
  border-color: rgba(0, 0, 0, 0.24);
}

html:not(.dark-mode) body.page-sponsoren .tsv-spon-action:hover,
html:not(.dark-mode) body.page-sponsoren .tsv-spon-action:focus-visible {
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 760px) {
  body.page-sponsoren .gh-content:only-child > .tsv-spon:first-child {
    margin-top: 88px !important;
  }

  body.page-sponsoren .tsv-spon-hero,
  body.page-sponsoren .tsv-spon-wrap {
    width: min(1250px, calc(100% - 24px));
  }

  body.page-sponsoren .tsv-spon-hero {
    margin-bottom: 30px;
  }

  body.page-sponsoren .tsv-spon-grid {
    gap: 16px;
  }

  body.page-sponsoren .tsv-spon-logo {
    height: clamp(170px, 45vw, 190px);
    padding: 16px 16px;
  }

  body.page-sponsoren .tsv-spon-logo--very-wide {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.page-sponsoren .tsv-spon-logo--very-wide img {
    max-width: 98%;
    max-height: 72%;
  }

  body.page-sponsoren .tsv-spon-logo--wide {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.page-sponsoren .tsv-spon-logo--normal {
    padding-left: 22px;
    padding-right: 22px;
  }

  body.page-sponsoren .tsv-spon-logo--square {
    padding-left: 28px;
    padding-right: 28px;
  }

  body.page-sponsoren .tsv-spon-body {
    padding: 13px 14px 14px;
  }

  body.page-sponsoren .tsv-spon-actions {
    gap: 6px;
  }

  body.page-sponsoren .tsv-spon-action {
    white-space: normal;
  }
}
