/* WEISS PADEL CONNECT · MOBILE PREMIUM HARMONY V2
   Zentrale Lesbarkeits-, Abstands- und Überlaufsicherung für reale App-Oberflächen.
   Suchfilter bleiben vollständig geöffnet; CI-Dropdown-Pfeile bleiben unverändert. */

/* Match actions: one full-width column on phones and tablets.
   Shared by public/private matches and group toolbars; handlers and order stay intact. */
@media(max-width:980px){
  body.wp-excellence :is(.match-card-actions,.match-action-bar,.group-match-toolbar){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    gap:8px!important;
    align-items:stretch;
    justify-content:stretch;
  }
  body.wp-excellence .match-card-actions{padding-top:16px!important;row-gap:12px!important}
  body.wp-excellence .match-card-actions>p{margin:0;font-size:13px!important;line-height:1.5;overflow-wrap:normal}
  body.wp-excellence :is(.match-card-actions,.group-match-toolbar) .match-action-item{
    width:100%!important;
    min-width:0;
    min-height:48px!important;
    height:auto;
    padding:12px 14px!important;
    gap:10px!important;
    border-radius:12px!important;
    font-size:14px!important;
    font-weight:700;
    line-height:1.4!important;
    text-align:center;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none;
  }
  body.wp-excellence :is(.match-card-actions,.group-match-toolbar) .match-action-item>span{
    min-width:0;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.wp-excellence :is(.match-card-actions,.group-match-toolbar) .match-action-item svg{width:18px;height:18px;flex:0 0 18px}
  body.wp-excellence :is(.match-card-actions,.group-match-toolbar) .match-action-chat{background:#087f7a;border-color:#087f7a;color:#fff}
  body.wp-excellence :is(.match-card-actions,.group-match-toolbar) button.match-action-item:focus-visible{outline:2px solid #087f7a;outline-offset:3px}
}


@media(max-width:680px){
  :root{
    --wp-mobile-type-kicker:.7rem;
    --wp-mobile-type-label:.76rem;
    --wp-mobile-type-copy:.84rem;
    --wp-mobile-type-control:.78rem;
  }

  body.wp-excellence :where(.feature-panel,.connect-section,.connect-settings-card,.community-main,.shop-section,.shop-community,.shop-note,.marketplace-filter-panel,.marketplace-results-panel,.marketplace-account-view,.match-card,.tournament-card,.trainer-card,.player-card,.result-card){
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
  }

  /* Gleiche Mindestproportionen ohne Abschneiden bei Textzoom oder langen Inhalten. */
  body.wp-excellence .wp-editorial-hero:not(.wp-editorial-hero--profile),
  body.wp-excellence .wp-editorial-hero:not(.wp-editorial-hero--profile) .wp-editorial-hero__inner{
    height:auto!important;
    min-height:450px!important;
    max-height:none!important;
  }
  body.wp-excellence .wp-editorial-hero:not(.wp-editorial-hero--profile) .wp-editorial-hero__copy{
    height:auto!important;
    min-height:198px!important;
    max-height:none!important;
  }
  body.wp-excellence .wp-editorial-hero:not(.wp-editorial-hero--profile) .wp-editorial-hero__action{
    height:auto!important;
    min-height:214px!important;
    max-height:none!important;
  }
  body.wp-excellence:is(.wp-member-browsing,.member-authenticated) .wp-editorial-hero.wp-editorial-hero--registration,
  body.wp-excellence:is(.wp-member-browsing,.member-authenticated) .wp-editorial-hero.wp-editorial-hero--registration .wp-editorial-hero__inner,
  html.wp-session-member-likely body.wp-excellence .wp-editorial-hero.wp-editorial-hero--registration,
  html.wp-session-member-likely body.wp-excellence .wp-editorial-hero.wp-editorial-hero--registration .wp-editorial-hero__inner{
    height:auto!important;
    min-height:238px!important;
    max-height:none!important;
  }
  body.wp-excellence:is(.wp-member-browsing,.member-authenticated) .wp-editorial-hero.wp-editorial-hero--registration .wp-editorial-hero__copy,
  html.wp-session-member-likely body.wp-excellence .wp-editorial-hero.wp-editorial-hero--registration .wp-editorial-hero__copy{
    min-height:0!important;
  }

  /* Gemeinsame, lesbare Mobile-Typografie für Filter und Ergebnisinformationen. */
  body.wp-excellence :where(.eyebrow,.wp-editorial-hero__kicker){font-size:var(--wp-mobile-type-kicker)!important}
  body.wp-excellence :where(.wp-search-filter-panel,.trainer-filter-panel) :where(label,legend){font-size:var(--wp-mobile-type-label)!important;line-height:1.35}
  body.wp-excellence :where(.wp-search-filter-panel,.trainer-filter-panel) .chip label{min-height:44px;font-size:var(--wp-mobile-type-control)!important;line-height:1.3;white-space:normal}
  body.wp-excellence :where(.match-card-top p,.match-card-actions p,.shared-match-info,.tournament-card-bottom p,.trainer-card p,.player-card p){font-size:var(--wp-mobile-type-copy)!important;line-height:1.5}
  body.wp-excellence :where(.tournament-card-actions button,.tournament-public-link){min-height:44px!important;font-size:var(--wp-mobile-type-control)!important;white-space:normal!important}

  /* Kompakte Player Cards bleiben sammelkartenartig, aber ohne Mikrotypografie. */
  body.wp-excellence .wp-player-compact-card__copy strong{font-size:.88rem!important;white-space:normal!important;overflow-wrap:anywhere}
  body.wp-excellence .wp-player-compact-card__copy small{font-size:.72rem!important;line-height:1.3}
  body.wp-excellence .wp-player-compact-card__level span{font-size:.66rem!important;line-height:1.25}
  body.wp-excellence .wp-player-compact-card__level strong{font-size:.96rem!important;white-space:normal!important;overflow-wrap:anywhere}
  body.wp-excellence .wp-player-ready-chip{min-height:30px!important;font-size:.66rem!important}
  body.wp-excellence .wp-player-compact-card__actions button{min-height:44px!important;font-size:.72rem!important;line-height:1.25}
  body.wp-excellence .match-player.wp-player-card-trigger::before,
  body.wp-excellence .private-group-member.wp-player-card-trigger::after,
  body.wp-excellence .tournament-partner-request-person.wp-player-card-trigger::after{font-size:.65rem!important;line-height:1.2}
  body.wp-excellence .wp-player-card-modal__head p{font-size:.65rem!important}
  body.wp-excellence .wp-player-card-modal__actions button{min-height:44px!important;font-size:.7rem!important;line-height:1.2;white-space:normal}

  /* Marktplatz und Community: Metadaten bleiben sekundär, aber klar lesbar. */
  body.wp-excellence .marketplace-modes small{font-size:.66rem!important;line-height:1.25}
  body.wp-excellence .marketplace-card h3{font-size:.92rem!important;line-height:1.28}
  body.wp-excellence .marketplace-card-seller,
  body.wp-excellence .marketplace-card-seller strong,
  body.wp-excellence .marketplace-card-seller small{font-size:.72rem!important;line-height:1.3}
  body.wp-excellence .marketplace-card-owner-actions button{min-height:44px!important;font-size:.72rem!important}
  body.wp-excellence .marketplace-section-heading small{font-size:.72rem!important;line-height:1.4}
  body.wp-excellence .community-comment-bubble strong{font-size:.82rem!important}
  body.wp-excellence .community-comment-bubble time{font-size:.7rem!important}
  body.wp-excellence .community-comment-bubble p{font-size:.84rem!important}
  body.wp-excellence .community-friend-action{min-height:44px;font-size:.72rem!important;white-space:normal}
  body.wp-excellence .provider-channel-directory-list :where(small,b){font-size:.7rem!important;line-height:1.3}

  /* Kalender und Planer verwenden auch mobil ausschließlich die CONNECT-Schrift. */
  body.wp-excellence :where(.padel-calendar,.assistant-shell,.assistant-settings-dialog,.assistant-action-dialog),
  body.wp-excellence :where(.padel-calendar,.assistant-shell,.assistant-settings-dialog,.assistant-action-dialog) *{
    font-family:inherit!important;
  }

  /* Dialoge bleiben innerhalb des sichtbaren Bereichs und berücksichtigen Safe Areas. */
  body.wp-excellence dialog{
    box-sizing:border-box;
    max-width:calc(100% - 16px)!important;
    max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
    overflow-x:hidden;
  }
}

@media(max-width:430px){
  body.wp-excellence :where(.group-match-actions,.tournament-connect-actions,.trainer-contact-actions,.booking-actions,.marketplace-dialog-actions){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.wp-excellence :where(.group-match-actions,.tournament-connect-actions,.trainer-contact-actions,.booking-actions,.marketplace-dialog-actions)>:where(a,button){width:100%;min-width:0}
  body.wp-excellence .marketplace-grid,
  body.wp-excellence .marketplace-account-view .marketplace-grid{grid-template-columns:minmax(0,1fr)!important}
}

@media(max-width:340px){
}
