/* Tennisclub Schlanders · Kachelkorrektur 1.2.4
   Zwei gleiche, deckungsgleiche Zonen pro Kachel: gerahmter Titel und
   darunter die dunkle Linkleiste. Keine Verschiebung über den Rahmen.
   Ersetzt sämtliche Regeln der Version 1.2.3, nicht zusätzlich aktivieren. */

/* GEMEINSAM: alle Startseiten- und öffentlichen Navigationskacheln */
html body .atc-approved-design .bento > a.panel,
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card {
  --atc-tile-top: 11%;
  --atc-tile-side: 13%;
  --atc-tile-bottom: 81px;
  position: relative !important;
  isolation: isolate !important;
  display: block !important;
  overflow: hidden !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  text-decoration: none !important;
}

/* STARTSEITE: Rahmen und Schrift pixelgenau in derselben Fläche. */
html body .atc-approved-design .bento > a.panel.has-graphic::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: var(--atc-tile-top) !important;
  right: var(--atc-tile-side) !important;
  bottom: var(--atc-tile-bottom) !important;
  left: var(--atc-tile-side) !important;
  inset: var(--atc-tile-top) var(--atc-tile-side) var(--atc-tile-bottom) !important;
  transform: skew(-12deg) !important;
  border: 2px solid rgba(255,255,255,.31) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
html body .atc-approved-design .bento > a.panel.has-graphic > span.visual {
  position: absolute !important;
  display: flex !important;
  top: var(--atc-tile-top) !important;
  right: var(--atc-tile-side) !important;
  bottom: var(--atc-tile-bottom) !important;
  left: var(--atc-tile-side) !important;
  inset: var(--atc-tile-top) var(--atc-tile-side) var(--atc-tile-bottom) !important;
  margin: 0 !important;
  padding: 0 7px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  font-size: clamp(23px,3vw,45px) !important;
  letter-spacing: .08em !important;
  line-height: 1.1 !important;
  color: rgba(255,255,255,.92) !important;
  z-index: 1 !important;
  white-space: normal !important;
}
html body .atc-approved-design .bento > a.panel > .label {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 49px !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  border-radius: 9px !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;
  text-align: left !important;
  z-index: 2 !important;
}
html body .atc-approved-design .bento > a.panel > .label > span {
  flex: 0 0 auto !important;
  font-size: 22px !important;
  color: #fff !important;
}

/* UNTERSEITEN: 100% gleiche Titel-/Rahmen-/Leistengeometrie. */
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card {
  --atc-tile-bottom: 88px;
  min-height: 214px !important;
  padding: 0 !important;
  border: 0 !important;
}
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: var(--atc-tile-top) var(--atc-tile-side) var(--atc-tile-bottom) !important;
  border: 2px solid rgba(255,255,255,.31) !important;
  transform: skew(-12deg) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-inner {
  display: contents !important;
}
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-icon,
html body .atc-public-inner .atc-public-hub-grid .atc-hub-icon {
  display: none !important;
  visibility: hidden !important;
}
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-heading {
  position: absolute !important;
  display: flex !important;
  inset: var(--atc-tile-top) var(--atc-tile-side) var(--atc-tile-bottom) !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 7px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  z-index: 1 !important;
}
html 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;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'Avenir Next Condensed','Avenir Next','Trebuchet MS',sans-serif !important;
  font-size: clamp(21px,3vw,45px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: rgba(255,255,255,.92) !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-inner > p {
  position: absolute !important;
  display: flex !important;
  align-items: center !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  min-height: 49px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 50px 10px 12px !important;
  box-sizing: border-box !important;
  border-radius: 9px !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;
}
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card > .atc-hub-card-arrow {
  position: absolute !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  right: 22px !important;
  bottom: 12px !important;
  height: 49px !important;
  width: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1 !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

/* Desktop: Raster nach dem bewährten Startseiten-System. */
@media (min-width: 851px) {
  html body .atc-public-inner .atc-public-hub-grid {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    grid-auto-rows: 214px !important;
    gap: 14px !important;
  }
  html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card {
    height: 100% !important;
  }
  html body .atc-public-inner .atc-public-hub-grid:has(> a.atc-hub-card:nth-child(3):last-child) {
    grid-template-columns: 1.16fr .94fr !important;
    grid-template-rows: repeat(2,214px) !important;
  }
  html body .atc-public-inner .atc-public-hub-grid:has(> a.atc-hub-card:nth-child(3):last-child) > a.atc-hub-card:first-child {
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
  }
}

/* Smartphone / Tablet: große Kachel oben, dann 2 Spalten (Startmenü). */
@media (max-width: 850px) {
  html body .atc-approved-design .bento {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-template-rows: 224px !important;
    grid-auto-rows: 170px !important;
    gap: 10px !important;
  }
  html body .atc-approved-design .bento > a.panel:first-child {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    min-height: 0 !important;
    height: 100% !important;
  }
  html body .atc-approved-design .bento > a.panel:not(:first-child) {
    --atc-tile-bottom: 76px;
  }
  html body .atc-approved-design .bento > a.panel:not(:first-child) > span.visual {
    font-size: clamp(16px,4vw,26px) !important;
    letter-spacing: .065em !important;
  }
  html body .atc-public-inner .atc-public-hub-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card {
    --atc-tile-bottom: 78px;
    grid-column: auto !important;
    width: auto !important;
    height: 170px !important;
    min-height: 170px !important;
  }
  html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:nth-child(3n+1) {
    --atc-tile-bottom: 93px;
    grid-column: 1 / -1 !important;
    height: 224px !important;
    min-height: 224px !important;
  }
  html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:not(:nth-child(3n+1)) .atc-hub-card-heading h2 {
    font-size: clamp(12px,3.3vw,19px) !important;
    letter-spacing: .02em !important;
  }
  html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:not(:nth-child(3n+1)) .atc-hub-card-inner > p {
    min-height: 49px !important;
    padding: 8px 34px 8px 9px !important;
    font-size: clamp(10px,2.6vw,12px) !important;
    line-height: 1.2 !important;
  }
  html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:not(:nth-child(3n+1)) > .atc-hub-card-arrow {
    font-size: 18px !important;
    right: 19px !important;
    width: 17px !important;
  }
}
@media (max-width: 390px) {
  html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:not(:nth-child(3n+1)) .atc-hub-card-heading h2 {
    font-size: clamp(11px,3.5vw,15px) !important;
    letter-spacing: 0 !important;
  }
  html body .atc-approved-design .bento > a.panel:not(:first-child) > span.visual {
    font-size: clamp(14px,4vw,18px) !important;
  }
}

/* Persönliches Dashboard: vorherige mobile Breitenkorrektur erhalten. */
@media (max-width: 930px) {
  html body .atc-portal-shell .atc-portal-main > a.atc-top-logout {display:none !important;}
  html body .atc-approved-design .atc-portal-shell.atc-portal-overview-3643 :is(.atc-portal-main,.atc-mobile-dashboard-3642,.atc-dashboard-actions-3642,.atc-mobile-navigation-3642,.atc-dashboard-status-grid-3642,.atc-dashboard-profile-details-3642) {
    width:100% !important;max-width:100% !important;min-width:0 !important;box-sizing:border-box !important;
  }
  html body .atc-approved-design .atc-portal-shell.atc-portal-overview-3643 .atc-dashboard-actions-3642 {
    display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;
  }
  html body .atc-approved-design .atc-portal-shell.atc-portal-overview-3643 .atc-dashboard-status-grid-3642 {
    grid-template-columns:minmax(0,1fr) !important;
  }
  html body .atc-approved-design .atc-portal-shell.atc-portal-overview-3643 :is(.atc-dashboard-info-3642,.atc-dashboard-actions-3642>a) {
    min-width:0 !important;box-sizing:border-box !important;
  }
}

/* ATC 1.2.7 — Clubleben: grid is enabled only after the actual cards
   have been positively identified and tagged by the page-specific script. */
@media(max-width:850px){
 html body #atc-clubleben-grid-127{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:224px 170px!important;grid-auto-rows:170px!important;
  gap:10px!important;width:100%!important;max-width:100%!important;
  min-width:0!important;padding:0!important;margin:8px 0 22px!important;
  align-items:stretch!important;justify-items:stretch!important;
 }
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127 {
  display:block!important;position:relative!important;grid-column:auto!important;
  grid-row:auto!important;min-width:0!important;min-height:0!important;
  max-width:none!important;width:100%!important;height:170px!important;
  box-sizing:border-box!important;margin:0!important;padding:0!important;
  border-radius:16px!important;overflow:hidden!important;isolation:isolate!important;
  aspect-ratio:auto!important;
 }
 html body #atc-clubleben-grid-127 > a.atc-club-news-127{
  grid-column:1 / -1!important;grid-row:1!important;height:224px!important;
 }
 html body #atc-clubleben-grid-127 > a.atc-club-market-127{grid-column:1!important;grid-row:2!important}
 html body #atc-clubleben-grid-127 > a.atc-club-calendar-127{grid-column:2!important;grid-row:2!important}
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127::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;pointer-events:none!important;z-index:0!important;
 }
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127 > .visual,
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127 .atc-hub-card-heading{
  display:flex!important;position:absolute!important;inset:11% 13% 74px!important;
  align-items:center!important;justify-content:center!important;text-align:center!important;
  width:auto!important;height:auto!important;margin:0!important;padding:0 3px!important;
  font-size:clamp(12px,3.3vw,18px)!important;font-weight:900!important;
  letter-spacing:0!important;line-height:1.05!important;
  color:rgba(255,255,255,.94)!important;z-index:1!important;
 }
 html body #atc-clubleben-grid-127 > a.atc-club-news-127 > .visual,
 html body #atc-clubleben-grid-127 > a.atc-club-news-127 .atc-hub-card-heading{
  font-size:clamp(28px,7vw,40px)!important;letter-spacing:.08em!important;
 }
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127 .atc-hub-card-heading h2{
  width:100%!important;min-width:0!important;font-size:inherit!important;
  letter-spacing:inherit!important;margin:0!important;hyphens:none!important;
  word-break:normal!important;overflow-wrap:normal!important;
 }
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127 .atc-hub-icon{display:none!important}
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127 > .label,
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127 .atc-hub-card-inner > p{
  display:flex!important;position:absolute!important;bottom:12px!important;left:12px!important;
  right:12px!important;align-items:center!important;min-height:49px!important;
  width:auto!important;max-width:none!important;box-sizing:border-box!important;
  border-radius:9px!important;margin:0!important;padding:8px 29px 8px 10px!important;
  background:rgba(10,46,68,.86)!important;color:white!important;z-index:2!important;
  font-size:clamp(10px,2.6vw,13px)!important;line-height:1.25!important;font-weight:800!important;
 }
 html body #atc-clubleben-grid-127 > a.atc-club-news-127 > .label,
 html body #atc-clubleben-grid-127 > a.atc-club-news-127 .atc-hub-card-inner > p{
  font-size:13px!important;padding:10px 49px 10px 13px!important;
 }
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127 > .label span{font-size:20px!important;flex-shrink:0!important}
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127 > .atc-hub-card-arrow{
  position:absolute!important;right:17px!important;bottom:12px!important;
  height:49px!important;z-index:3!important;
 }
}
@media(max-width:360px){
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127:not(.atc-club-news-127) > .visual,
 html body #atc-clubleben-grid-127 > a.atc-club-tile-127:not(.atc-club-news-127) .atc-hub-card-heading{
  font-size:11.5px!important;letter-spacing:-.01em!important;
 }
}
/* Sponsor page: balanced short benefit cards and two generously sized logo columns.
   Never crop logos and never change sponsor data. */
@media(max-width:700px){
 body.atc-public-unified-3536 .atc-public-inner .atc-sponsors-page .atc-sponsor-benefit-grid {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
 }
 body.atc-public-unified-3536 .atc-public-inner .atc-sponsors-page .atc-sponsor-benefit-grid > article:first-child{grid-column:1/-1!important}
 body.atc-public-unified-3536 .atc-public-inner .atc-sponsors-page .atc-sponsor-benefit-grid>article{
  min-width:0!important;padding:15px!important;border-radius:13px!important;
 }
 body.atc-public-unified-3536 .atc-public-inner .atc-sponsors-page .atc-sponsor-benefit-grid h3{
  font-size:16px!important;line-height:1.3!important;margin:0 0 6px!important;
 }
 body.atc-public-unified-3536 .atc-public-inner .atc-sponsors-page .atc-sponsor-benefit-grid p{
  font-size:13px!important;line-height:1.45!important;margin:0!important;
 }
 body.atc-public-unified-3536 .atc-public-inner .atc-sponsors-page .atc-sponsor-logo-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
 }
 body.atc-public-unified-3536 .atc-public-inner .atc-sponsors-page .atc-sponsor-logo-grid > article.atc-sponsor-media-card{
  min-width:0!important;min-height:150px!important;padding:10px!important;border-radius:13px!important;
 }
 body.atc-public-unified-3536 .atc-public-inner .atc-sponsors-page .atc-sponsor-media-visual{
  display:flex!important;justify-content:center!important;align-items:center!important;
  min-height:105px!important;height:105px!important;width:100%!important;
 }
 body.atc-public-unified-3536 .atc-public-inner .atc-sponsors-page .atc-sponsor-media-visual img{
  display:block!important;max-width:97%!important;max-height:98px!important;
  width:auto!important;height:auto!important;object-fit:contain!important;
 }
}
/* Footer: compact, readable legal link grouping for the existing club footer. */
body .atc-approved-design .shell > .foot,
body.atc-public-unified-3536 footer.atc-public-footer{
 font-size:13px!important;line-height:1.55!important;
}
body.atc-public-unified-3536 .atc-site-legal-link{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 justify-content:center!important;column-gap:19px!important;row-gap:9px!important;
 margin-inline:auto!important;padding:14px!important;
}
body.atc-public-unified-3536 .atc-site-legal-link a{
 display:inline-flex!important;white-space:normal!important;font-size:13px!important;line-height:1.4!important;
}

/* ============================================================
   1.3.3 - Startseite: redundanten Textlink zur Tennisanlage
   entfernen. Die ATC-Kachel direkt darunter ist bereits verlinkt.
   Nur dieser eine Link im Abschnitt #bilder wird ausgeblendet.
   ============================================================ */
html body #bilder > .section-head > a {
  display: none !important;
}
html body #bilder > .section-head > div:first-child {
  flex: 1 1 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
