/* =============================================================================
   RED LINE SCORING – TEILNEHMER-APP STYLES
   -----------------------------------------------------------------------------
   Nur fuer [rls_app] / [rls_competition]. Baut auf global.css auf.
   Enthaelt Klassen, die vorher als inline style="..." im Shortcode-Markup
   bzw. im JavaScript standen.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   REGISTRIERUNG – PRIVACY BLOCK
   (ersetzt inline styles am .mf-privacy Wrapper und dessen labels)
   ----------------------------------------------------------------------------- */
.mf-privacy {
  margin: 12px 0;
  font-size: 12px;
}

.mf-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: 400;
}

.mf-privacy label + label {
  margin-top: 8px;
}

.mf-privacy input[type=checkbox] {
  width: auto;
  margin: 2px 0 0;
  flex-shrink: 0;
}

.mf-privacy a {
  color: var(--mf-color);
}

/* -----------------------------------------------------------------------------
   LOGIN – NAMENS-AUTOVERVOLLSTAENDIGUNG
   (Klassen wurden im JS referenziert, hatten aber vorher kein CSS)
   ----------------------------------------------------------------------------- */
.mf-suggest-wrap {
  position: relative;
}

.mf-suggest-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-top: -10px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mf-suggest-item {
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}

.mf-suggest-item:last-child {
  border-bottom: none;
}

.mf-suggest-item:hover {
  background: #f9fafb;
}

/* Hinweis "Registrierung nur beim Veranstalter" (ersetzt inline style) */
.mf-login-hint {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
}

/* -----------------------------------------------------------------------------
   PIN-ANZEIGE nach Registrierung
   (ersetzt inline style am <strong> im JS-generierten Markup)
   ----------------------------------------------------------------------------- */
.mf-pin-reveal {
  display: inline-block;
  font-size: 18px;
  letter-spacing: 3px;
  background: #fff7ed;
  padding: 6px 12px;
  border-radius: 4px;
  border: 2px dashed var(--mf-color);
}

/* -----------------------------------------------------------------------------
   SPEICHERN-STATUS unter der Score-Tabelle
   (ersetzt inline style an #mf-save-msg und dessen Inhalts-Spans)
   ----------------------------------------------------------------------------- */
.mf-save-bar {
  min-height: 20px;
  font-size: 13px;
  text-align: center;
}

.mf-save-progress {
  color: #6b7280;
}

.mf-save-ok {
  color: #15803d;
}

.mf-save-err {
  color: #dc2626;
}

/* Leerzustand "Noch keine Boulder" (ersetzt inline style) */
.mf-empty {
  font-size: 13px;
  color: #9ca3af;
}

/* =============================================================================
   Mein Stand – Fortschritt in der aktiven Runde
   ============================================================================= */
.mf-progress {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.mf-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.mf-progress-title {
  font-size: 12px;
  font-weight: 600;
  opacity: .75;
}
.mf-progress-count {
  font-size: 13px;
  font-weight: 700;
}
.mf-progress-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(0,0,0,.1);
  overflow: hidden;
}
.mf-progress-fill {
  height: 100%;
  background: var(--mf-color);
  border-radius: 4px;
  transition: width .3s ease;
}
.mf-progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
}
.mf-pl { white-space: nowrap; font-weight: 600; }
.mf-pl-flash { color: #d97706; }
.mf-pl-top   { color: #16a34a; }
.mf-pl-zone  { color: #2563eb; }
.mf-pl-open  { color: #9ca3af; }
