/* Tennisclub Schlanders 3.6.37 – one public presentation system.
   Mirrors the approved homepage. Pages, posts, form logic, dashboard and menus
   retain their existing data and interactions. */

/* A single consistent club masthead on home and all public pages. */
body.atc-approved-home-standalone .atc-approved-design .shell > .head {
  box-sizing:border-box!important;
  width:100%!important;
  margin:0!important;
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid #dfebf2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:clamp(12px,1.5vw,24px)!important;
}
body.atc-approved-home-standalone .atc-approved-design .shell > .head .brand {
  flex:0 0 auto; color:#183b57!important; text-decoration:none!important;
}
body.atc-approved-home-standalone .atc-approved-design .shell > .head .nav {
  min-width:0; align-items:center;
}
body.atc-approved-home-standalone .atc-approved-design .shell > .head .nav a:focus-visible,
body.atc-approved-home-standalone .atc-approved-design .shell > .head .brand:focus-visible {
  outline:3px solid #247bb5!important;outline-offset:4px!important;border-radius:5px;
}
/* The original logo watermark: same asset, position and strength as homepage.
   Correct legacy pages that nearly hid it (sponsors, legal). */
body.atc-approved-home-standalone .atc-approved-design .shell::before,
body.atc-approved-home-standalone.atc-public-unified-3536 .atc-approved-design.atc-public-inner .shell::before,
body.atc-approved-home-standalone.atc-public-unified-3536 .atc-approved-design.atc-public-inner:has(.atc-sponsors-page) .shell::before,
body.atc-approved-home-standalone.atc-public-unified-3536:has(.atc-privacy-page,.atc-legal-page) .atc-approved-design .shell::before {
  content:""!important;
  position:fixed!important;
  width:min(114vw,1400px)!important;
  height:min(114vw,1400px)!important;
  top:52%!important;left:50%!important;
  transform:translate(-50%,-50%)!important;
  background-image:url('approved-home/clublogo-watermark.png')!important;
  background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;
  opacity:.13!important;mix-blend-mode:normal!important;
  z-index:0!important;pointer-events:none!important;
}
body.atc-approved-home-standalone .atc-approved-design .shell > :is(.head,main,.foot) {
  position:relative; z-index:1;
}
/* Subpage hero: same photographic treatment and proportions as the approved
   homepage hero, instead of an unrelated blue artwork with oversized labels. */
body.atc-public-unified-3536 .atc-approved-design .atc-mini-hero {
  width:100%; max-width:100%; min-height:clamp(225px,22vw,350px);
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  border-radius:19px;background:#183e5b;
  margin:0 0 clamp(20px,2.5vw,34px);
}
body.atc-public-unified-3536 .atc-approved-design .atc-mini-hero-copy {
  padding:clamp(26px,3.4vw,48px);
}
body.atc-public-unified-3536 .atc-approved-design .atc-mini-hero h1 {
  font-size:clamp(32px,3vw,49px)!important;
  line-height:1.12!important;font-weight:760!important;
  letter-spacing:-.035em!important;color:#fff!important;
}
body.atc-public-unified-3536 .atc-approved-design .atc-mini-hero p {
  color:#e7f2f9!important;opacity:1!important;
  font-size:clamp(14px,1.15vw,17px)!important;line-height:1.55!important;
}
body.atc-public-unified-3536 .atc-approved-design .atc-mini-hero-photo {
  min-height:215px;
  background-position:center 58%;
}
/* Contact page: suppress only repeated introductory blocks. Preserve cards,
   form, consent checkbox, directions and map. */
body.atc-public-unified-3536 .atc-public-page-has-hero .atcdp-contact-v2-title {display:none!important}
body.atc-public-unified-3536 .atc-page-content:has(.atcdp-contact-v2) > .atc-contact-prepend,
body.atc-public-unified-3536 .atc-page-content .atcdp-contact-v2:has(.atc-contact-prepend) .atc-contact-prepend {display:none!important}
body.atc-public-unified-3536 .atc-page-content .atcdp-contact-v2 {
  width:min(100%,1170px)!important;max-width:1170px!important;
  margin:0 auto clamp(20px,3vw,42px)!important;
}
/* Sponsor call to action must use EXACTLY the same content measure as the
   sponsor logos, even when the companion plugin moves the section to the end. */
body.atc-public-unified-3536 .atc-public-main .atc-page-content .atc-sponsors-page {
  width:min(100%,1060px)!important;max-width:1060px!important;
  margin-left:auto!important;margin-right:auto!important;
}
body.atc-public-unified-3536 .atc-public-main .atc-page-content #sponsoring-anfrage.atc-sponsor-inquiry,
body.atc-public-unified-3536 .atc-public-main .atc-page-content > .atc-sponsor-inquiry {
  box-sizing:border-box!important;
  display:block!important;
  width:min(100%,1060px)!important;
  max-width:1060px!important;
  margin:clamp(18px,3vw,30px) auto 12px!important;
  padding:clamp(21px,3vw,34px)!important;
}
/* Keep the existing, working sponsor form readable on narrow screens. */
body.atc-public-unified-3536 .atc-public-main .atc-sponsor-inquiry-intro p {max-width:65ch!important}

/* Flohmarkt visual polish only. Functional filter, cards, login and messages
   remain unchanged. Never turn these selectors into behavior toggles. */
body.atc-public-unified-3536 .atc-public-main .atc-market {
  max-width:1200px!important;margin-left:auto!important;margin-right:auto!important;
}
body.atc-public-unified-3536 .atc-market-hero {
  padding:clamp(22px,3vw,36px)!important;border-radius:18px!important;
  background:linear-gradient(115deg,#173b59 0%,#245e84 100%)!important;
}
body.atc-public-unified-3536 .atc-market-grid {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(14px,1.4vw,20px)!important;
}
body.atc-public-unified-3536 .atc-market-card {
  border-radius:17px!important;border:1px solid #d7e5ee!important;
  overflow:hidden!important;background:#fff!important;
  box-shadow:0 4px 14px rgba(25,65,91,.055)!important;
}
body.atc-public-unified-3536 .atc-market-photo {
  aspect-ratio:4/3!important;display:grid!important;place-items:center!important;
  background:#fff!important;
}
body.atc-public-unified-3536 .atc-market-photo img {
  width:100%!important;height:100%!important;object-fit:contain!important;
}
body.atc-public-unified-3536 .atc-market-card-body {
  display:flex!important;flex-direction:column!important;
  min-height:145px!important;padding:17px 18px 18px!important;
}
body.atc-public-unified-3536 .atc-market-card-body strong {
  color:#173d60!important;font-size:20px!important;font-weight:750!important;
  margin-top:auto!important;padding-top:9px;
}
body.atc-public-unified-3536 .atc-market-card-body small {font-size:12px!important}
@media(max-width:900px){
  body.atc-public-unified-3536 .atc-market-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  body.atc-approved-home-standalone .atc-approved-design .shell > .head {
    padding:14px 16px!important;min-height:80px!important;
  }
  body.atc-public-unified-3536 .atc-approved-design .atc-mini-hero {
    grid-template-columns:1fr!important;min-height:0!important;
  }
  body.atc-public-unified-3536 .atc-approved-design .atc-mini-hero-copy {padding:25px 21px!important}
  body.atc-public-unified-3536 .atc-approved-design .atc-mini-hero-photo {height:140px!important;min-height:140px!important}
  body.atc-approved-home-standalone .atc-approved-design .shell::before,
  body.atc-approved-home-standalone.atc-public-unified-3536 .atc-approved-design.atc-public-inner .shell::before {
    width:135vw!important;height:135vw!important;opacity:.11!important;
  }
  body.atc-public-unified-3536 .atc-public-main .atc-page-content #sponsoring-anfrage.atc-sponsor-inquiry {
    padding:22px 17px!important;margin:20px auto 11px!important;
  }
  body.atc-public-unified-3536 .atc-market-grid {grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  body.atc-public-unified-3536 .atc-market-card {transition:none!important}
}
