/* WEISS PADEL CONNECT UI STYLEGUIDE
   Central source of truth for feature-page geometry and numbered section headers. */
:root{
  --wp-feature-max:1500px;
  --wp-feature-hero-height:280px;
  --wp-feature-sidebar:420px;
  --wp-feature-gap:24px;
  --wp-feature-gutter:28px;
  --wp-feature-panel-radius:24px;
  --wp-feature-panel-padding:25px;
  --wp-feature-step-size:40px;
  --wp-feature-step-radius:11px;
  --wp-feature-step-gradient:var(--wp-purple,var(--purple,#7549e4));
  --wp-feature-panel-background:#dce3e8;
  --wp-feature-panel-text:#202630;
  --wp-filter-control-height:49px;
  --wp-filter-gap:10px;
  --wp-filter-block-gap:12px;
  --wp-filter-radius:12px;
  --wp-filter-selected:linear-gradient(112deg,#7549e4 0%,#586bd7 48%,#10aaa5 100%);
  --wp-form-label-color:#425269;
  --wp-form-label-size:.68rem;
  --wp-form-label-weight:850;
  --wp-ci-dropdown-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 9l5.5 5.5L17.5 9' fill='none' stroke='%23202a39' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Every feature heading occupies the same vertical canvas. */
.feature-hero,.community-page .feature-hero{
  box-sizing:border-box;
  width:100%;
  max-width:var(--wp-feature-max);
  height:var(--wp-feature-hero-height);
  min-height:var(--wp-feature-hero-height);
  margin:0 auto;
  padding:38px var(--wp-feature-gutter) 43px;
  display:flex;
  align-items:center;
}
.feature-hero .hero-copy,.community-page .feature-hero .hero-copy{max-width:890px}
.feature-hero h1,.community-page .feature-hero h1{max-width:880px;margin:10px 0 15px;font-size:clamp(2.9rem,4.45vw,4.65rem);font-weight:720;letter-spacing:-.045em;line-height:.96}
.feature-hero h1 span,.community-page .feature-hero h1 span{color:var(--petrol);background:none;-webkit-background-clip:initial;background-clip:initial}
.feature-hero .hero-copy>p:last-child,.community-page .feature-hero .hero-copy>p:last-child{max-width:700px;margin:0;color:var(--wp-text-inverse-soft,#b9c2d2);font-size:1rem;line-height:1.7}

/* Every two-column feature page shares identical anchors and column widths. */
.feature-layout,.community-page .feature-layout{
  box-sizing:border-box;
  width:100%;
  max-width:var(--wp-feature-max);
  margin:0 auto;
  padding:0 var(--wp-feature-gutter) 80px;
  display:grid;
  grid-template-columns:minmax(390px,var(--wp-feature-sidebar)) minmax(0,1fr);
  gap:var(--wp-feature-gap);
  align-items:start;
}
.feature-layout>.feature-panel,
.feature-layout>.community-sidebar>.feature-panel{
  box-sizing:border-box;
  align-self:start;
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--wp-feature-panel-radius);
  background:var(--wp-feature-panel-background);
  color:var(--wp-feature-panel-text);
  box-shadow:var(--wp-shadow-panel,0 24px 70px rgba(0,0,0,.28));
}
.feature-layout>.feature-panel{padding:var(--wp-feature-panel-padding)}
.feature-layout>.community-sidebar>.feature-panel{padding:var(--wp-feature-panel-padding)}
.feature-layout>.community-sidebar{box-sizing:border-box;min-width:0}

/* One numbered heading component for Courts, Trainers, Players, Tournaments and Community. */
.section-heading{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
  margin:0 0 22px;
}
.section-heading>div:not(.community-compose-avatar){min-width:0}
.section-heading h2{margin:0;color:var(--wp-feature-panel-text);font-size:1.28rem;font-weight:750;letter-spacing:-.02em;line-height:1.15}
.section-heading p{margin:5px 0 0;color:#5d6878;font-size:.8rem;line-height:1.35}
.step,.section-number,.section-number-alt{
  box-sizing:border-box;
  display:grid;
  place-items:center;
  flex:0 0 var(--wp-feature-step-size);
  width:var(--wp-feature-step-size);
  min-width:var(--wp-feature-step-size);
  height:var(--wp-feature-step-size);
  min-height:var(--wp-feature-step-size);
  margin:0;
  padding:0;
  border:0;
  border-radius:var(--wp-feature-step-radius);
  background:var(--wp-feature-step-gradient);
  color:#fff;
  box-shadow:0 8px 20px rgba(73,90,183,.24),inset 0 1px 0 rgba(255,255,255,.2);
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.06em;
  line-height:1;
}
.results-panel .section-number,.trainer-results-panel .section-number,.section-number-alt{background:var(--wp-feature-step-gradient);color:#fff}


/* Keep Community numbered headers identical when older page rules target nested spans. */
.community-page .section-heading>.section-number{
  box-sizing:border-box;
  display:grid;
  place-items:center;
  flex:0 0 var(--wp-feature-step-size);
  width:var(--wp-feature-step-size);
  min-width:var(--wp-feature-step-size);
  height:var(--wp-feature-step-size);
  min-height:var(--wp-feature-step-size);
  margin:0;
  padding:0;
  border:0;
  border-radius:var(--wp-feature-step-radius);
  background:var(--wp-feature-step-gradient);
  color:#fff;
  box-shadow:0 8px 20px rgba(73,90,183,.24),inset 0 1px 0 rgba(255,255,255,.2);
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.06em;
  line-height:1;
}

/* Page-specific content follows the common heading instead of displacing it. */
.feature-panel>.match-mode-switch{margin-top:0}
.community-compose-heading{margin-bottom:16px}
.community-compose-heading .community-compose-avatar{margin-left:auto;width:40px;height:40px}
.community-toolbar{align-items:center;margin-bottom:14px}
.community-toolbar .section-heading{margin-bottom:0}
.community-toolbar-title p{margin:5px 0 0;color:#5d6878;font-size:.8rem;line-height:1.35}

@media(max-width:1180px){
  :root{--wp-feature-sidebar:370px;--wp-feature-gap:20px}
  .feature-layout,.community-page .feature-layout{grid-template-columns:minmax(300px,var(--wp-feature-sidebar)) minmax(0,1fr)}
}
@media(max-width:980px){
  .feature-layout,.community-page .feature-layout{grid-template-columns:1fr}
  .feature-layout>.community-sidebar{position:static;display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px}
  .feature-layout>.community-sidebar>.community-compose{grid-row:1/3}
}
@media(max-width:760px){
  :root{--wp-feature-gutter:16px;--wp-feature-panel-padding:18px;--wp-feature-gap:16px}
  .feature-hero,.community-page .feature-hero{height:auto;min-height:0;padding-top:34px;padding-bottom:38px}
  .feature-hero h1,.community-page .feature-hero h1{font-size:clamp(2.75rem,13.5vw,4.25rem)}
  .feature-layout,.community-page .feature-layout{padding-bottom:48px}
  .feature-layout>.community-sidebar{grid-template-columns:1fr}
  .feature-layout>.community-sidebar>.community-compose{grid-row:auto}
  .section-heading{align-items:center;min-height:44px;margin-bottom:18px}
  .section-heading h2{font-size:1.18rem}
  .community-toolbar{align-items:flex-start;flex-direction:column}
}
@media(max-width:430px){
  :root{--wp-feature-gutter:12px;--wp-feature-panel-padding:14px;--wp-feature-step-size:38px}
}

/* Hide large section numbers; retain the small 1-3 filter sequence. */
.section-heading>.step,
.section-heading>.section-number,
.section-heading>.section-number-alt{
  display:none;
}
/* Small 01-03 sequence for the three filter cards on every search page. */
.trainer-filter-panel form{
  counter-reset:wp-filter-step;
}
.trainer-filter-panel .trainer-filter-block>h3{
  display:flex;
  align-items:center;
  gap:8px;
}
.trainer-filter-panel .trainer-filter-block>h3::before{
  content:counter(wp-filter-step,decimal-leading-zero);
  counter-increment:wp-filter-step;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  flex:0 0 24px;
  width:24px;
  height:24px;
  border-radius:8px;
  background:var(--wp-purple,var(--purple,#7549e4));
  color:#fff;
  box-shadow:0 7px 16px rgba(117,73,228,.22);
  font-size:.68rem;
  font-weight:900;
  line-height:1;
}
/* Keep every small 01-03 badge geometrically identical and centered. */
.search-panel .filter-section-title>span,
.trainer-filter-panel .trainer-filter-block>h3::before{
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  flex:0 0 24px;
  width:24px;
  height:24px;
  padding:0;
  text-align:center;
  font-size:.68rem;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  letter-spacing:0;
  line-height:1;
}

/* Accessible form captions on every light search and input surface. */
.search-panel legend,
.trainer-filter-panel legend,
.search-panel .field>label:first-child,
.trainer-filter-panel .field>label:first-child,
.booking-dialog .field>label:first-child,
.match-dialog .field>label:first-child,
.provider-form-panel .field>label:first-child,
.admin-form .field>label:first-child,
.review-card .field>label:first-child,
.account-profile-form .field>label:first-child,
.account-grid>label,
.player-edit-panel .account-grid>label,
.online-account-grid>label,
.shop-links-group>label{
  color:var(--wp-form-label-color);
  font-size:var(--wp-form-label-size);
  font-weight:var(--wp-form-label-weight);
}
/* Match creation dialog: one compact, identical layout for every match type. */
:root{
  --wp-match-form-gap:10px;
  --wp-match-column-gap:12px;
}
#match-create-form{
  gap:var(--wp-match-form-gap);
}
.match-dialog .match-dialog-intro{
  margin:-2px 0 4px;
}
.match-dialog .field-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--wp-match-form-gap) var(--wp-match-column-gap);
  align-items:start;
}
.match-dialog .field{
  min-width:0;
  margin-bottom:0;
}
.match-dialog .match-location-field{
  grid-column:2;
}
.match-dialog .match-duration-row{
  grid-template-columns:1fr;
}
.match-dialog .match-duration-field{
  grid-column:1;
}
.match-dialog .match-court-field{
  grid-column:1/-1;
}
.match-dialog .match-private-only-row{
  grid-template-columns:1fr;
}
.match-dialog .primary-button{
  margin-top:2px;
}
@media(max-width:560px){
  .match-dialog .field-grid{grid-template-columns:1fr}
  .match-dialog .field{grid-column:1!important}
}

/* Zentrale CI-Auswahl: verbindlicher WEISS-PADEL-CONNECT-Pfeil für native Dropdowns. */
select.wp-ci-select{
  appearance:none;-webkit-appearance:none;padding-right:44px;
  background-image:var(--wp-ci-dropdown-arrow);
  background-position:right 13px center;background-repeat:no-repeat;background-size:20px 20px;cursor:pointer;
}