/*
 * Tennisclub Schlanders - Einheitliche Kachelgrafik 1.2.0
 * Gilt nur für öffentliche grafische Navigationskacheln.
 * Referenz: Startseite mit ATC / TENNIS / TEAM / BAU / CLUB.
 */

/* ============================================================
   A. Bestehende Startseiten-/Clubleben-Kacheln (bento)
   Gleicher Innenrahmen, gleiches Label und identische Anordnung.
   Die Rahmenlinie endet über der dunklen Beschriftungsleiste.
   ============================================================ */
body .atc-approved-design .bento {
  gap: clamp(9px, 1.3vw, 14px) !important;
}
body .atc-approved-design .bento > a.panel {
  border-radius: 16px !important;
  isolation: isolate;
  min-width: 0 !important;
}
body .atc-approved-design .bento > a.panel.has-graphic::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 11% 13% 74px !important;
  transform: skew(-12deg) !important;
  border: 2px solid rgba(255,255,255,.31) !important;
  z-index: 0 !important;
  pointer-events: none;
}
body .atc-approved-design .bento > a.panel.has-graphic > .visual {
  display: flex !important;
  position: absolute !important;
  inset: 10% 13% 74px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 0 !important;
  padding: 0 5px !important;
  color: rgba(255,255,255,.87) !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  font-size: clamp(20px, 3vw, 45px) !important;
  line-height: 1.05 !important;
  letter-spacing: .105em !important;
  overflow-wrap: anywhere;
  z-index: 1 !important;
}
body .atc-approved-design .bento > a.panel > .label {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  min-height: 49px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  border-radius: 9px !important;
  padding: 10px 13px !important;
  background: rgba(10, 46, 68, .86) !important;
  color: #fff !important;
  font-size: clamp(12px, 1.05vw, 16px) !important;
  font-weight: 800 !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  z-index: 2 !important;
}
body .atc-approved-design .bento > a.panel > .label > span {
  flex: none !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

/* ============================================================
   B. Unterseiten-Kacheln: dieselbe Bildsprache wie Startseite.
   Bestehende Link-Struktur beibehalten; das Icon bleibt links
   ausserhalb des Rahmens, die Erklaerung wird zur unteren Leiste.
   ============================================================ */
body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card {
  display: block !important;
  position: relative !important;
  isolation: isolate;
  min-width: 0 !important;
  min-height: 245px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  text-decoration: none !important;
}
body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 11% !important;
  left: 13% !important;
  right: 13% !important;
  bottom: 94px !important;
  border: 2px solid rgba(255,255,255,.31) !important;
  transform: skew(-12deg) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-inner {
  display: contents !important;
}
body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-heading {
  display: flex !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 11% 16% 94px !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 0 !important;
  z-index: 1 !important;
}
body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-heading h2 {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Avenir Next Condensed','Avenir Next','Trebuchet MS',sans-serif !important;
  font-size: clamp(21px, 2.4vw, 36px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: rgba(255,255,255,.94) !important;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Das vertraute Seitensymbol bleibt bewusst außerhalb des Rahmens. */
body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-icon {
  display: flex !important;
  position: absolute !important;
  left: 14px !important;
  top: 15px !important;
  width: 36px !important;
  height: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.14) !important;
  z-index: 3 !important;
}
body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-icon svg {
  width: 22px !important;
  height: 22px !important;
}
body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-inner > p {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  min-height: 63px !important;
  max-width: none !important;
  width: auto !important;
  box-sizing: border-box !important;
  border-radius: 9px !important;
  padding: 10px 49px 10px 13px !important;
  margin: 0 !important;
  background: rgba(10,46,68,.86) !important;
  color: #fff !important;
  font-size: clamp(13px, 1.05vw, 16px) !important;
  font-weight: 750 !important;
  line-height: 1.32 !important;
  text-align: left !important;
  text-indent: 0 !important;
  overflow-wrap: anywhere;
  z-index: 2 !important;
}
body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card > .atc-hub-card-arrow {
  position: absolute !important;
  right: 22px !important;
  bottom: 12px !important;
  width: 24px !important;
  height: 63px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  align-self: auto !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

/* Clubleben und weitere bento-Unterseiten in derselben mobilen Rasterform
   wie die Startseite zeigen: 1 große Kachel, danach 2 kleinere. */
@media (max-width: 850px) {
  body .atc-approved-design .bento {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    grid-auto-rows: 170px !important;
    gap: 10px !important;
  }
  body .atc-approved-design .bento > a.panel:first-child {
    grid-column: 1 / -1 !important;
    grid-row: span 1 !important;
    height: 224px !important;
    min-height: 0 !important;
  }
  body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card {
    min-height: 235px !important;
  }
}
@media (max-width: 650px) {
  body .atc-approved-design .bento {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows: 146px !important;
    gap: 9px !important;
  }
  body .atc-approved-design .bento > a.panel:first-child {
    grid-column: 1 / -1 !important;
    grid-row: span 1 !important;
    height: 195px !important;
  }
  body .atc-approved-design .bento > a.panel.has-graphic::before {
    inset: 10% 12% 67px !important;
  }
  body .atc-approved-design .bento > a.panel.has-graphic > .visual {
    inset: 10% 12% 67px !important;
    font-size: clamp(14px, 4.1vw, 22px) !important;
    letter-spacing: .025em !important;
    white-space: nowrap !important;
  }
  /* Die erste Kachel ist ueber die ganze Breite: grosse Zentraltypografie. */
  body .atc-approved-design .bento > a.panel:first-child.has-graphic > .visual {
    font-size: clamp(30px, 8vw, 40px) !important;
    letter-spacing: .09em !important;
  }
  body .atc-approved-design .bento > a.panel > .label {
    left: 9px !important;
    right: 9px !important;
    bottom: 9px !important;
    min-height: 46px !important;
    padding: 8px 10px !important;
    font-size: clamp(11px, 3vw, 13px) !important;
  }
  body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card {
    min-height: 225px !important;
  }
  body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-heading h2 {
    font-size: clamp(21px, 5.2vw, 29px) !important;
    letter-spacing: .055em !important;
  }
}
@media (max-width: 380px) {
  body .atc-approved-design .bento > a.panel.has-graphic > .visual {
    font-size: 14px !important;
    letter-spacing: .005em !important;
  }
  body .atc-approved-design .bento > a.panel:first-child.has-graphic > .visual {
    font-size: 30px !important;
    letter-spacing: .09em !important;
  }
  body .atc-approved-design .bento > a.panel > .label {
    font-size: 11px !important;
  }
  body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-heading h2 {
    font-size: 19px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body .atc-approved-design .bento > a.panel,
  body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card {
    transition: none !important;
  }
}
