/* schwimmtrainer.at V0.15.10.50.34 – zentraler Chevron-Standard
 * Referenz: Planung & Kalender > Testtermin planen (V0.15.10.50.24).
 * Alle HTML <details><summary>-Akkordeons in DE/EN, inkl. dynamischer Elemente.
 * Keine JS-Abhängigkeit; native Tastatur-/Touch-/Screenreader-Bedienung bleibt.
 * Einheitlicher, dekorativer SVG-Pfeil – ohne sichtbaren Doppelmarker.
 */
:root {
  --st-accordion-chevron-size: 34px;
  --st-accordion-chevron-bg: #eaf6f8;
  --st-accordion-chevron-border: #bee0e7;
  --st-accordion-chevron-hover: #daf2f6;
}

html body details > summary {
  position: relative !important;
  box-sizing: border-box;
  list-style: none !important;
  cursor: pointer;
  min-height: 44px;
  padding-right: 58px !important; /* keeps headings, badges and action labels clear */
}
html body details > summary::-webkit-details-marker { display: none !important; }
html body details > summary::marker { content: '' !important; font-size: 0 !important; }

html body details:not([data-st-chevron-disabled]) > summary::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  z-index: 1;
  box-sizing: border-box !important;
  right: 12px !important;
  top: 50% !important;
  width: var(--st-accordion-chevron-size) !important;
  height: var(--st-accordion-chevron-size) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--st-accordion-chevron-border) !important;
  border-radius: 10px !important;
  color: #087f93 !important;
  background-color: var(--st-accordion-chevron-bg) !important;
  /* Original SVG geometry + colour from the Testtermin-planen Chevron. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 7 6 6 6-6' fill='none' stroke='%23087f93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: translateY(-50%) rotate(0deg) !important;
  transform-origin: center center !important;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease !important;
  pointer-events: none;
}
html body details[open]:not([data-st-chevron-disabled]) > summary::after {
  transform: translateY(-50%) rotate(180deg) !important;
}
html body details:not([data-st-chevron-disabled]) > summary:hover::after,
html body details:not([data-st-chevron-disabled]) > summary:focus-visible::after {
  background-color: var(--st-accordion-chevron-hover) !important;
  border-color: #79bac8 !important;
}
html body details > summary:focus-visible {
  outline: 2px solid #35b8d1;
  outline-offset: 3px;
}

/* Legacy-Inline-Icons: nur eindeutig dekorative Pfeile unterdrücken.
 * Wert-, Leistungs- und Metadaten-Elemente bleiben unverändert. */
html body .test-session-picker-group > summary .test-session-chevron,
html body .athletics-battery-card > summary > i:last-child,
html body .athletics-test-card > summary > i:last-child,
html body .performance-analysis-accordion > summary > i:last-child,
html body .swim-group-accordion > summary > b:last-child,
html body .anthro-metric-card > summary .anthro-metric-chevron,
html body .benchmark-monitor-details > summary .group-target-details-action i,
html body .personal-plan-details > summary .group-target-details-action i,
html body .bm-set-details > summary > span:last-child {
  display: none !important;
}
/* In 'Testtermin planen' bleibt die Testanzahl erhalten; nur die
   reservierte Zusatzspalte für das bisherige Einzel-Chevron entfällt. */
html body .test-session-picker-group > summary > .test-session-category-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}
html body .test-session-picker-group > summary {
  grid-template-columns: minmax(0,1fr) max-content !important;
}

/* Legacy-Pfeile in Inhaltstiteln sollen nicht neben dem Chevron stehen. */
html body .group-target-details-action i { display: none !important; }
html body .benchmark-monitor-details > summary > .group-target-details-action i { display: none !important; }

@media (max-width: 420px) {
  html body details > summary { padding-right: 52px !important; }
  html body details:not([data-st-chevron-disabled]) > summary::after { right: 8px !important; }
  /* existing multiline behaviour for test-session names remains untouched */
  html body .test-session-picker-group > summary { grid-template-columns: minmax(0,1fr) max-content !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body details:not([data-st-chevron-disabled]) > summary::after { transition: none !important; }
}
