/* ATC 1.3.8 · only public-page fixes. Matching tiles share one CSS geometry. */
:root{--atc-138-max:1180px;--atc-138-gap:14px;--atc-138-radius:16px;--atc-138-ink:#183c58}
/* Match the STARTSEITE content boundary, including the anonymous-feedback page. */
html body .atc-anon-public{width:min(100%,var(--atc-138-max))!important;max-width:var(--atc-138-max)!important;box-sizing:border-box!important;margin-inline:auto!important;padding-inline:clamp(16px,2.8vw,40px)!important}
html body .atc-anon-public :is(.atc-anon-hero,.atc-anon-privacy,.atc-anon-panel){width:100%!important;max-width:none!important;box-sizing:border-box!important}
/* Clubleben: remove unused blank top-space but keep intro and hierarchy. */
html body.atc-club-page-128 .atc-public-inner .atc-page-content #atc-clubleben-grid-128{max-width:100%!important;width:100%!important;margin-top:18px!important}
html body.atc-club-page-128 .atc-club-grid-128{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--atc-138-gap)!important}
html body.atc-club-page-128 .atc-club-grid-128 > .atc-club-news-128{grid-column:1/-1!important}
html body.atc-club-page-128 .atc-club-grid-128 > .atc-club-ausschuss-128{grid-column:1/-1!important;background:linear-gradient(125deg,#3b718b,#84a4b6)!important}
html body.atc-club-page-128 .atc-club-grid-128 .atc-club-tile-128{border-radius:var(--atc-138-radius)!important}
/* Tennisanlage: keep factual 3 Sandplätze, but use centered framed title and matching links. */
html body .atc-facility-bento{gap:var(--atc-138-gap)!important}
html body .atc-facility-bento .atc-facility-tile{position:relative!important;overflow:hidden!important;border-radius:var(--atc-138-radius)!important}
html body .atc-facility-bento .atc-facility-tile :is(h2,.atc-facility-title-138){display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-width:0!important;position:absolute!important;inset:11% 13% 81px!important;margin:0!important;padding:0 5px!important;font:900 clamp(17px,1.8vw,24px)/1.1 'Avenir Next Condensed','Avenir Next','Trebuchet MS',sans-serif!important;letter-spacing:.045em!important;text-transform:uppercase!important;color:rgba(255,255,255,.94)!important;z-index:2!important;overflow-wrap:anywhere!important}
html body .atc-facility-bento .atc-facility-tile::before{content:""!important;display:block!important;position:absolute!important;inset:11% 13% 81px!important;transform:skew(-12deg)!important;border:2px solid rgba(255,255,255,.31)!important;pointer-events:none!important;z-index:1!important}
html body .atc-facility-bento .atc-facility-tile .atc-facility-kicker{display:none!important}
html body .atc-facility-bento .atc-facility-tile.is-courts > strong{display:none!important}
html body .atc-facility-bento .atc-facility-tile .atc-facility-foot{position:absolute!important;inset:auto 12px 12px!important;min-height:49px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:9px 13px!important;margin:0!important;background:rgba(10,46,68,.86)!important;color:#fff!important;border-radius:9px!important;font:800 14px/1.3 Arial,Helvetica,sans-serif!important;z-index:3!important}
html body .atc-facility-bento .atc-facility-tile.is-courts > p{position:absolute!important;inset:auto 12px 12px!important;min-height:49px!important;display:flex!important;align-items:center!important;padding:9px 13px!important;margin:0!important;border-radius:9px!important;background:rgba(10,46,68,.86)!important;color:#fff!important;font:800 14px/1.3 Arial,Helvetica,sans-serif!important;z-index:3!important}
@media(max-width:850px){html body .atc-facility-bento .atc-facility-tile :is(h2,.atc-facility-title-138),html body .atc-facility-bento .atc-facility-tile::before{inset:11% 13% 77px!important}html body .atc-facility-bento .atc-facility-tile :is(h2,.atc-facility-title-138){font-size:clamp(16px,4.4vw,22px)!important}html body.atc-club-page-128 .atc-club-grid-128{gap:10px!important}}
/* Course availability: only use an actual numerical count; never fabricate a count for request-only status. */
html body .atc-course-availability-138{padding:8px 12px!important;border:1px solid #bcd7e9!important;border-radius:999px!important;font-size:14px!important;font-weight:800!important;white-space:normal!important;line-height:1.3!important}
html body .atc-course-availability-138.is-limited{background:#fff1cc!important;color:#7b4706!important;border-color:#f0d28b!important}
html body .atc-course-availability-138.is-soldout{background:#fbe7e7!important;color:#8b2222!important;border-color:#efbbbb!important}
/* Reuse the existing secure enquiry form; move it into an accessible dialog, do not duplicate it. */
.atc-course-modal-138[hidden]{display:none!important}
.atc-course-modal-138{position:fixed!important;inset:0!important;display:flex!important;justify-content:center!important;align-items:center!important;padding:18px!important;z-index:2147483000!important;background:rgba(9,28,44,.72)!important;box-sizing:border-box!important}
.atc-course-modal-panel-138{width:min(760px,100%)!important;max-height:min(90vh,900px)!important;overflow:auto!important;padding:24px!important;border-radius:18px!important;background:white!important;color:var(--atc-138-ink)!important;box-shadow:0 22px 75px #0005!important;box-sizing:border-box!important}
.atc-course-modal-top-138{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important;margin-bottom:12px!important}
.atc-course-modal-top-138 h2{margin:0!important;font-size:clamp(21px,3vw,28px)!important;color:var(--atc-138-ink)!important}
.atc-course-modal-close-138{flex:0 0 44px!important;width:44px!important;height:44px!important;border-radius:50%!important;border:1px solid #c4d8e5!important;background:#f4f8fb!important;color:#163f5c!important;font-size:26px!important;cursor:pointer!important}
.atc-course-modal-summary-138{padding:12px!important;background:#ecf5fa!important;border-radius:10px!important;margin:8px 0 16px!important;font-size:15px!important;line-height:1.5!important}
.atc-course-modal-panel-138 .atc-course-section{display:block!important;width:100%!important;margin:0!important;max-width:none!important;padding:0!important;box-shadow:none!important;border:none!important}
.atc-course-modal-panel-138 .atc-course-intro{display:none!important}
.atc-course-modal-panel-138 .atc-course-expand{display:block!important}
.atc-course-modal-panel-138 .atc-course-expand > summary{display:none!important}
.atc-course-modal-panel-138 .atc-course-content{display:block!important;padding:0!important}
body.atc-course-modal-open-138{overflow:hidden!important}
@media(max-width:600px){.atc-course-modal-panel-138{padding:15px!important;max-height:94dvh!important}.atc-course-modal-panel-138 .atc-course-grid{grid-template-columns:1fr!important}}
/* Registration should never leave the club's cosmetic loader over the form or behind in history. */
body.atc-registration-134 :is(#atc-global-loader,.atc-page-loader,.atc-working-overlay){display:none!important;pointer-events:none!important}
html:has(body.atc-registration-134).atc-boot-pending::before,html:has(body.atc-registration-134).atc-boot-pending::after{display:none!important}

/* Phone safeguard for long navigation titles. */
@media(max-width:390px){
html body.atc-club-page-128 .atc-club-grid-128 > .atc-club-tile-128:not(.atc-club-news-128) .atc-club-visual-128{font-size:clamp(11px,3.5vw,16px)!important;overflow-wrap:anywhere!important;white-space:normal!important;letter-spacing:0!important;}
html body.atc-club-page-128 .atc-club-grid-128 .atc-club-tile-128{min-width:0!important;}
}
