/* Tennis Schweiz Web-App, Schweizer Tennis: Bedienhilfen (st-plus, ab 1.12.2026). Gehört zu st-plus.js. */

/* Rundbild: Initialen als Platzhalter, später Porträt */
.st-av {
  --av: 36px;
  position: relative;
  display: inline-flex;
  flex: 0 0 var(--av);
  align-items: center;
  justify-content: center;
  width: var(--av);
  height: var(--av);
  border-radius: 50%;
  overflow: hidden;
  background: var(--hs-creme, #F3F1EA);
  box-shadow: inset 0 0 0 1px var(--hs-linie, #E2E0D8);
  color: inherit;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: calc(var(--av) * .36);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  vertical-align: middle;
  user-select: none;
}
.st-av::before { content: attr(data-ini); }
.st-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-av--bild::before { content: none; }

.st-name.st-plus-mit-av { display: flex; align-items: center; gap: 10px; }
.st-plus-nm { min-width: 0; }
.st-r-name.st-plus-mit-av {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}
.st-r-name.st-plus-mit-av > .st-av { grid-row: 1 / span 2; }
.st-r-name.st-plus-mit-av > .st-plus-nm,
.st-r-name.st-plus-mit-av > .st-r-rang { grid-column: 2; }
@media (max-width: 480px) {
  .st-r-name.st-plus-mit-av { column-gap: 8px; }
  .st-r-name.st-plus-mit-av > .st-av { --av: 26px !important; }
}

/* Namen unter den Meldungen: führen zur Karte oder zu den Meldungen der Person */
.st-m-spieler.st-plus-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-plus-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 11px 3px 4px;
  border: 1px solid var(--hs-linie, #E2E0D8);
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #0F1526);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.st-plus-chip:hover { border-color: var(--navy, #0F1526); }
.st-plus-chip:focus-visible,
.st-plus-rlink:focus-visible,
.st-plus-lesehilfe a:focus-visible,
.st-plus-erklaert > summary:focus-visible,
.st-plus-dock button:focus-visible { outline: 2px solid var(--navy, #0F1526); outline-offset: 2px; }
.st-chip.st-plus-chip-av { display: inline-flex; align-items: center; gap: 6px; }

.st-plus-mehr { margin: 0 !important; }
.st-plus-mehr .hs-link { min-height: 32px; }
.st-heute-karte .st-plus-mehr { margin-top: auto !important; }

/* Erklärzeilen */
.st-plus-hinweis { margin: -4px 0 12px; font-size: 13px; line-height: 1.45; color: var(--sec, #4A5163); }
.st-filter + .st-plus-hinweis { margin-top: 2px; }
@media (min-width: 720px) { .st-plus-wisch { display: none; } }
.st-plus-notiz {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--hs-radius, 14px);
  background: var(--hs-creme, #F3F1EA);
  font-size: 14px;
  line-height: 1.45;
}

/* Turnierstufen in «Wer spielt wo» */
.st-plus-stufe { margin: 28px 0 10px; }
.st-plus-hinweis + .st-plus-stufe,
.st-plus-notiz + .st-plus-stufe { margin-top: 14px; }
.st-plus-stufe-h {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy, #0F1526);
}
.st-plus-stufe-t { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--sec, #4A5163); }

/* Rangliste: wer diese Woche spielt */
.st-plus-rlink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--hs-linie, #BFC3CC);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.st-plus-rlink:hover { text-decoration-color: currentColor; }
.st-plus-zusammen { white-space: nowrap; }
.st-plus-aktiv {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--hs-gruen, #1F7A4D);
  vertical-align: middle;
}

/* Lesehilfe im Kopf und «Kurz erklärt» */
.st-plus-lesehilfe { margin: 6px 0 0; font-size: 13px; }
.st-plus-lesehilfe a {
  color: var(--navy, #0F1526);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.st-plus-erklaert {
  margin: 28px 0 10px;
  border: 1px solid var(--hs-linie, #E2E0D8);
  border-radius: var(--hs-radius, 14px);
  background: #fff;
  scroll-margin-top: 90px;
}
.st-plus-erklaert > summary {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 48px 14px 16px;
  cursor: pointer;
  list-style: none;
}
.st-plus-erklaert > summary::-webkit-details-marker { display: none; }
.st-plus-erklaert > summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy, #0F1526);
  border-bottom: 2px solid var(--navy, #0F1526);
  transform: translateY(-70%) rotate(45deg);
}
.st-plus-erklaert[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
.st-plus-erklaert-t { font-family: var(--serif, Georgia, serif); font-size: 19px; color: var(--navy, #0F1526); }
.st-plus-erklaert-s { font-size: 13px; color: var(--sec, #4A5163); }
.st-plus-erklaert-in { padding: 0 16px 16px; }
.st-plus-gruppe h3 { margin: 14px 0 8px; font-size: 14px; font-weight: 700; color: var(--navy, #0F1526); }
.st-plus-gruppe dl {
  display: grid;
  grid-template-columns: minmax(110px, 32%) minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}
.st-plus-gruppe dt { font-size: 14px; font-weight: 700; line-height: 1.45; }
.st-plus-gruppe dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--sec, #4A5163); }
@media (max-width: 480px) {
  .st-plus-gruppe dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .st-plus-gruppe dd { margin-bottom: 10px; }
}

/* Ziel eines Sprungs kurz hervorheben */
.st-heute-karte, .st-r, .st-m { scroll-margin-top: 90px; }
@keyframes st-plus-ziel {
  0%, 35% { box-shadow: 0 0 0 3px var(--hs-gold, #C9A227); }
  100% { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0); }
}
.st-plus-ziel { animation: st-plus-ziel 2s ease-out 1; outline: none; }

/* Zurück und Nach oben */
.st-plus-dock {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.st-plus-dock > button { pointer-events: auto; }
.st-plus-dock > button[hidden] { display: none; }
.st-plus-zurueck {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 18px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--navy, #0F1526);
  color: #fff;
  font: 600 14px/1 var(--sans, system-ui, sans-serif);
  box-shadow: 0 6px 18px rgba(15, 21, 38, .24);
  cursor: pointer;
}
.st-plus-oben {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hs-linie, #E2E0D8);
  border-radius: 50%;
  background: #fff;
  color: var(--navy, #0F1526);
  box-shadow: 0 4px 14px rgba(15, 21, 38, .14);
  cursor: pointer;
}
@media (max-width: 820px) {
  .st-plus-dock { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .st-plus-ziel { animation: none; box-shadow: 0 0 0 3px var(--hs-gold, #C9A227); }
}
@media print {
  .st-plus-dock, .st-plus-lesehilfe { display: none !important; }
}
