/* EMTI Helfer – Frontend. Farben: Orange #ff6500 (Akzent), Schwarz, Grau #52606d, Fläche #f9f9fb. Schrift erbt vom Theme. */
.emti-helfer { --emti-orange: #ff6500; --emti-ink: #000; --emti-grey: #52606d; --emti-line: #d7dbe0; --emti-surface: #fff; --emti-green: #2f7d4a; --emti-red: #b3261e; max-width: 680px; }
.emti-helfer *, .emti-helfer *::before, .emti-helfer *::after { box-sizing: border-box; }
.emti-helfer p { margin: 0 0 .75em; }
.emti-helfer a { color: inherit; text-decoration: underline; text-decoration-color: var(--emti-orange); text-underline-offset: 3px; }

/* Hinweise */
.emti-notice { padding: 14px 18px; border-left: 4px solid var(--emti-ink); background: var(--emti-surface); margin: 0 0 28px; line-height: 1.45; }
.emti-notice.is-success { border-color: var(--emti-green); }
.emti-notice.is-error { border-color: var(--emti-red); }
.emti-notice.is-info { border-color: var(--emti-grey); }

.emti-lead { color: var(--emti-grey); margin-bottom: 28px; }
.emti-muted { color: var(--emti-grey); font-size: .9em; }

/* Login-Aufforderung / Leerzustand */
.emti-gate { background: var(--emti-surface); padding: 28px 24px; border-top: 4px solid var(--emti-orange); }
.emti-gate-title { margin: 0 0 12px; font-size: 1.35em; line-height: 1.2; }
.emti-gate .emti-btn { margin: 8px 0 16px; }
.emti-gate .emti-muted { margin: 0; }

/* Veranstaltung */
.emti-event { background: var(--emti-surface); padding: 24px 20px 28px; margin: 0 0 28px; border-top: 4px solid var(--emti-ink); }
.emti-event.is-registered { border-top-color: var(--emti-green); }
.emti-event-head { margin: 0 0 20px; }
.emti-event-title { margin: 0 0 4px; font-size: 1.45em; line-height: 1.2; }
.emti-event-date { margin: 0; color: var(--emti-grey); font-size: 1em; }

/* Streckenverlauf */
.emti-fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.emti-legend { padding: 0; margin: 0 0 12px; font-weight: 600; }
.emti-route { position: relative; padding: 4px 0; }
.emti-route::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; background: var(--emti-line); }
.emti-stop { position: relative; display: flex; align-items: flex-start; gap: 16px; min-height: 48px; padding: 8px 8px 8px 0; margin: 0; cursor: pointer; border-radius: 6px; }
.emti-stop input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.emti-stop-dot { flex: 0 0 auto; width: 14px; height: 14px; margin: 9px 0 0 7px; border-radius: 50%; border: 2px solid var(--emti-ink); background: var(--emti-surface); position: relative; z-index: 1; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.emti-stop-body { display: flex; flex-direction: column; padding-top: 5px; line-height: 1.3; }
.emti-stop-name { font-weight: 500; }
.emti-stop-meta { color: var(--emti-grey); font-size: .85em; margin-top: 2px; }
label.emti-stop:hover .emti-stop-dot { transform: scale(1.15); }
.emti-stop input:checked ~ .emti-stop-dot { background: var(--emti-orange); border-color: var(--emti-orange); transform: scale(1.3); box-shadow: 0 0 0 4px rgba(255,101,0,.18); }
.emti-stop input:checked ~ .emti-stop-body .emti-stop-name { color: var(--emti-orange); font-weight: 600; }
.emti-stop input:focus-visible ~ .emti-stop-body .emti-stop-name { outline: 2px solid var(--emti-orange); outline-offset: 3px; border-radius: 2px; }
.emti-stop.is-mine .emti-stop-dot { background: var(--emti-orange); border-color: var(--emti-orange); transform: scale(1.3); box-shadow: 0 0 0 4px rgba(255,101,0,.18); }
.emti-stop.is-mine .emti-stop-name { color: var(--emti-orange); font-weight: 600; }
.emti-stop.is-mine .emti-stop-meta { color: var(--emti-orange); }
div.emti-stop { cursor: default; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.emti-bereich .emti-route { margin-bottom: 8px; }
.emti-bereich .emti-route::before { top: 14px; bottom: 14px; }

/* Formularfelder */
.emti-field { margin: 0 0 20px; }
.emti-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.emti-helfer textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--emti-line); border-radius: 4px; font: inherit; line-height: 1.4; background: #fff; }
.emti-helfer textarea:focus { outline: 2px solid var(--emti-orange); outline-offset: 0; border-color: transparent; }
.emti-consent { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px; cursor: pointer; line-height: 1.4; color: var(--emti-grey); font-size: .95em; }
.emti-consent input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--emti-orange); }

/* Buttons */
.emti-btn { display: inline-block; width: 100%; padding: 15px 24px; background: var(--emti-orange); color: #fff !important; font-weight: 600; text-align: center; text-decoration: none !important; border: 0; border-radius: 4px; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; }
.emti-btn:hover { background: #e55b00; }
.emti-helfer a.emti-btn, .emti-helfer button.emti-btn { text-transform: none; letter-spacing: 0; box-shadow: none; }
.emti-btn:focus-visible { outline: 3px solid var(--emti-ink); outline-offset: 2px; }
.emti-btn-secondary, .emti-helfer button.emti-btn-secondary { background: transparent; color: var(--emti-ink) !important; border: 2px solid var(--emti-ink); padding: 13px 24px; }
.emti-btn-secondary:hover, .emti-helfer button.emti-btn-secondary:hover { background: transparent; border-color: var(--emti-red); color: var(--emti-red) !important; }
.emti-cancel { margin-top: 16px; }

/* Status "du bist dabei" */
.emti-state { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 8px; }
.emti-state-check { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--emti-green); position: relative; }
.emti-state-check::after { content: ""; position: absolute; left: 10px; top: 5px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.emti-state-text { margin: 2px 0 4px; font-size: 1.05em; }
.emti-state .emti-muted { margin: 0; }

/* Helferbereich: Infos + Dateien */
.emti-info { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--emti-line); }
.emti-info h4 { margin: 0 0 8px; font-size: 1em; }
.emti-info p:last-child { margin-bottom: 0; }
.emti-files { list-style: none; margin: 0; padding: 0; }
.emti-files li { margin: 0 0 8px; padding: 0; }
.emti-file { display: flex; width: 100%; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--emti-line); border-radius: 6px; text-decoration: none !important; min-height: 56px; }
.emti-file:hover { border-color: var(--emti-orange); }
.emti-file-type { flex: 0 0 auto; min-width: 46px; padding: 6px 0; text-align: center; font-size: .72em; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--emti-ink); border-radius: 3px; }
.emti-file-body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.emti-file-name { font-weight: 500; overflow-wrap: anywhere; }
.emti-file-meta { color: var(--emti-grey); font-size: .85em; }

/* Ab Tablet */
@media (min-width: 600px) {
  .emti-event { padding: 28px 32px 32px; }
  .emti-gate { padding: 32px 36px; }
  .emti-event-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .emti-event-date { white-space: nowrap; }
  .emti-btn { width: auto; min-width: 240px; }
  .emti-gate .emti-btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .emti-stop-dot { transition: none; }
}
.emti-cancel-hint { margin: 12px 0 0; padding: 10px 14px; background: rgba(0,0,0,.04); border-radius: 4px; font-size: .95em; }
.emti-contact { margin: 8px 0 0; color: var(--emti-grey); }
/* Helfer-Coins */
.emti-coin-balance { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.emti-coin-number { font-size: 2.4em; font-weight: 700; color: var(--emti-orange); line-height: 1; }
.emti-coin-list { list-style: none; margin: 20px 0 0; padding: 0; }
.emti-coin-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--emti-line); }
.emti-coin-dot { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--emti-orange); }
.emti-coin-list li:not(.is-verfuegbar) .emti-coin-dot { background: var(--emti-line); }
.emti-coin-list li:not(.is-verfuegbar) .emti-coin-title { color: var(--emti-grey); }
.emti-coin-body { display: flex; flex-direction: column; }
.emti-coin-meta { font-size: .85em; color: var(--emti-grey); }
.emti-coin-redeem { margin: 24px 0 0; padding: 20px 24px; background: #fff; border-top: 4px solid var(--emti-orange, #ff6500); }
.emti-coin-redeem-title { margin: 0 0 8px; font-size: 1.2em; }
.emti-coin-redeem select { padding: 8px 12px; font: inherit; }
.emti-coin-redeem .emti-btn { width: auto; margin-top: 4px; }
.emti-coins h4 { margin: 24px 0 8px; }
.emti-coin-events { list-style: none; margin: 0; padding: 0; }
.emti-coin-events li { padding: 6px 0; border-top: 1px solid var(--emti-line); }
.emti-coin-give { margin-top: 8px; }
.emti-coin-give summary { cursor: pointer; color: var(--emti-grey); text-decoration: underline; text-decoration-color: var(--emti-orange); text-underline-offset: 3px; }
.emti-coin-give-form { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.emti-coin-give-form label { flex: 1 1 100%; font-weight: 600; }
.emti-coin-give-form input[type="email"] { flex: 1 1 220px; padding: 10px 12px; border: 1px solid var(--emti-line); border-radius: 4px; font: inherit; }
.emti-coin-give-form .emti-btn { width: auto; padding: 10px 18px; }
.emti-coin-give-form .emti-muted { flex: 1 1 100%; margin: 0; }
.emti-bereich-cta { margin: 0 0 28px; padding: 20px 24px; background: var(--emti-surface); border-top: 4px solid var(--emti-orange); }
.emti-bereich-cta .emti-lead { margin-bottom: 14px; }
.emti-bereich-cta .emti-btn { margin: 0; }
.emti-link-btn { display: inline-block; background: transparent !important; border: 1px solid var(--emti-grey) !important; border-radius: 4px; padding: 6px 14px !important; font: inherit; font-size: .9em; line-height: 1.3; color: var(--emti-grey) !important; text-decoration: none; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; }
.emti-link-btn:hover { color: var(--emti-red) !important; border-color: var(--emti-red) !important; }
.emti-cancel { margin-top: 10px; }
