/* ============================================================
   events.koerting.ai — App-Styles
   Nur Tokens aus tokens.css (21-tokens.css, SSOT: 20-design-tokens.json).
   Effra-Gewichte nur 300/400/500/700/800 — nie 600 (22 §4.1).
   Prefix .ev- · Dark-Mode ist Marken-Default.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg-1); color: var(--text-200);
  font-family: var(--font); font-size: var(--fs-md); line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-100); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl)); font-weight: 700; }
h2 { font-size: var(--fs-xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0; }
a { color: var(--text-100); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--border-active); outline-offset: 2px; }
/* Functional exception to the !important rule: the hidden attribute must beat display classes */
[hidden] { display: none !important; }

.ev-skip { position: absolute; left: -9999px; top: 0; background: var(--pink); color: var(--white); padding: var(--space-sm) var(--space-md); z-index: 100; }
.ev-skip:focus { left: var(--space-md); }

/* ---------- Wortmarke { Events } (22 §2.3) ---------- */
.brace { color: var(--pink); font-weight: 500; display: inline-block; transform: translateY(-0.04em); }
.brand-word {
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-bright) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding: 0 4px;
}

/* ---------- Header ---------- */
.ev-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--space-lg);
  padding: var(--space-sm) var(--space-lg); border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-0);
}
.ev-brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.ev-brand__mark { width: 34px; height: 34px; }
.ev-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.ev-brand__institute { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-400); }
.ev-brand__product { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 800; color: var(--text-100); }
.ev-nav { display: flex; gap: var(--space-xs); flex: 1; }
.ev-nav__link {
  text-decoration: none; color: var(--text-300); font-weight: 500; font-size: var(--fs-sm);
  padding: 10px 14px; border-radius: var(--r-sm); min-height: 44px; display: inline-flex; align-items: center;
}
.ev-nav__link:hover { color: var(--text-100); background: var(--bg-3); }
.ev-nav__link.is-active { color: var(--text-100); background: var(--bg-3); box-shadow: inset 0 -2px 0 var(--lime); }
.ev-header__meta { display: flex; align-items: center; gap: var(--space-sm); }
.ev-user { font-size: var(--fs-sm); color: var(--text-300); display: flex; align-items: center; gap: var(--space-sm); }

/* ---------- Layout ---------- */
.ev-main { max-width: var(--container); margin: 0 auto; padding: var(--space-lg); }
.ev-main--wide { max-width: none; }
.ev-boot { display: flex; justify-content: center; padding: var(--space-2xl); }
.ev-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.ev-page-head__titles { display: flex; flex-direction: column; gap: var(--space-xs); }
.ev-breadcrumb { font-size: var(--fs-sm); color: var(--text-400); display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.ev-breadcrumb a { color: var(--text-300); text-decoration: none; }
.ev-breadcrumb a:hover { color: var(--text-100); text-decoration: underline; }
.ev-meta-line { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); color: var(--text-300); font-size: var(--fs-sm); align-items: center; }
.ev-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; }
.ev-stack { display: flex; flex-direction: column; gap: var(--space-md); }
.ev-row { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: flex-end; }
.ev-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ev-grid-2 { display: grid; gap: var(--space-md); grid-template-columns: 1fr 1fr; }
@media (max-width: 1024px) { .ev-grid-2 { grid-template-columns: 1fr; } }
.ev-muted { color: var(--text-400); font-size: var(--fs-sm); }
.ev-mono { font-family: var(--mono); letter-spacing: .04em; }
.ev-eyebrow { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--signal-text); }

/* ---------- Buttons (24 §2) ---------- */
.ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-md); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); cursor: pointer;
  text-decoration: none; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.ev-btn--primary { background: var(--pink); color: var(--white); font-weight: 700; }
.ev-btn--primary:hover { transform: translateY(-1px); box-shadow: var(--glow-pink); border-color: var(--white); }
.ev-btn--secondary { background: transparent; color: var(--text-100); border-color: var(--border-strong); }
.ev-btn--secondary:hover { background: var(--bg-3); border-color: var(--border-active); }
.ev-btn--ghost { background: transparent; color: var(--text-300); }
.ev-btn--ghost:hover { color: var(--text-100); background: var(--bg-3); }
.ev-btn--danger { background: transparent; color: var(--alert-text); border-color: rgba(248,113,113,.35); }
.ev-btn--danger:hover { background: rgba(248,113,113,.08); }
.ev-btn--small { min-height: 36px; padding: 6px 12px; font-size: var(--fs-xs); }
.ev-btn--large { min-height: 56px; padding: 14px 28px; font-size: var(--fs-md); }
.ev-btn:disabled, .ev-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.ev-btn.is-busy { position: relative; color: transparent; }
.ev-btn.is-busy::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--white); border-top-color: transparent; animation: ev-spin .8s linear infinite;
}
.ev-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--text-400); cursor: pointer;
}
.ev-icon-btn:hover { background: var(--bg-3); color: var(--text-100); }

/* ---------- Cards ---------- */
.ev-card {
  background: var(--bg-2); border: 1px solid var(--border-subtle); border-radius: var(--r-lg);
  padding: var(--space-lg); box-shadow: var(--shadow-sm);
}
.ev-card--link { text-decoration: none; display: block; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.ev-card--link:hover { transform: translateY(-2px); border-color: var(--border-active); }
.ev-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-md); }
.ev-section-num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-active); color: var(--signal-text); font-family: var(--mono); font-size: var(--fs-sm); flex: none;
}

/* ---------- Pills / Badges ---------- */
.ev-pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); padding: 2px 10px;
  font-size: var(--fs-xs); font-weight: 500; border: 1px solid var(--border-soft); color: var(--text-300); white-space: nowrap;
}
.ev-pill--lime { color: var(--signal-text); border-color: rgba(196,214,0,.3); background: rgba(196,214,0,.08); }
.ev-pill--pink { color: var(--pink-bright); border-color: rgba(230,0,126,.35); background: rgba(230,0,126,.08); }
.ev-pill--green { color: var(--status-green); border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.08); }
.ev-pill--yellow { color: var(--warn-text); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.ev-pill--red { color: var(--alert-text); border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }
.ev-pill--meta { font-family: var(--mono); color: var(--text-400); }

/* ---------- Forms (22 §8.4) ---------- */
.ev-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ev-field--grow { flex: 1; min-width: 200px; }
.ev-label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-300); }
.ev-hint { font-size: var(--fs-xs); color: var(--text-400); }
.ev-input, .ev-select, .ev-textarea {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border-soft); border-radius: var(--r-sm);
  padding: 10px 14px; color: var(--text-100); min-height: 44px;
}
.ev-input::placeholder, .ev-textarea::placeholder { color: var(--text-500); }
.ev-input:focus, .ev-select:focus, .ev-textarea:focus { outline: none; border-color: var(--border-active); }
.ev-textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.ev-select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ev-input--compact, .ev-select--compact { min-height: 36px; padding: 6px 10px; font-size: var(--fs-sm); }
.ev-select--compact { padding-right: 30px; background-position: right 10px center; }
.ev-check { display: inline-flex; align-items: center; gap: var(--space-sm); cursor: pointer; font-size: var(--fs-sm); color: var(--text-200); }
.ev-check input { width: 18px; height: 18px; accent-color: var(--pink); }
.ev-yn { display: inline-flex; border: 1px solid var(--border-soft); border-radius: var(--r-sm); overflow: hidden; }
.ev-yn button { background: transparent; border: none; padding: 6px 12px; min-height: 36px; cursor: pointer; color: var(--text-400); font-size: var(--fs-sm); }
.ev-yn button + button { border-left: 1px solid var(--border-soft); }
.ev-yn button[aria-pressed="true"] { background: var(--bg-4); color: var(--text-100); }
.ev-yn button[aria-pressed="true"][data-v="ja"] { color: var(--signal-text); }

/* ---------- Tables ---------- */
.ev-table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--r-md); }
.ev-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ev-table th {
  text-align: left; font-weight: 500; color: var(--text-400); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 1px solid var(--border-soft); background: var(--bg-2); position: sticky; top: 0; white-space: nowrap;
}
.ev-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.ev-table tr:last-child td { border-bottom: none; }
.ev-table tbody tr.is-clickable { cursor: pointer; }
.ev-table tbody tr.is-clickable:hover td { background: var(--bg-3); }
.ev-table tbody tr.is-muted td { color: var(--text-500); }
.ev-table--form td { padding: 4px 6px; }
.ev-table--form td:first-child { padding-left: 12px; color: var(--text-200); }
.ev-table .ev-input, .ev-table .ev-select { min-height: 36px; padding: 6px 10px; font-size: var(--fs-sm); }
.ev-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Tabs (24 §5) ---------- */
/* Baseline as inset shadow: the active tab's border paints over it without a
   negative margin, so the scroll container never gets a vertical scrollbar */
.ev-tabs {
  display: flex; gap: var(--space-xs); box-shadow: inset 0 -1px 0 var(--border-soft); margin-bottom: var(--space-lg);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.ev-tab {
  text-decoration: none; color: var(--text-300); font-weight: 500; font-size: var(--fs-sm); padding: 12px 16px;
  border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
}
.ev-tab:hover { color: var(--text-100); }
.ev-tab.is-active { color: var(--text-100); border-bottom-color: var(--lime); }

/* ---------- Chips / Filter (24 §4) ---------- */
.ev-chips { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.ev-chip {
  border: 1px solid var(--border-soft); background: transparent; border-radius: var(--r-pill); padding: 6px 14px;
  font-size: var(--fs-sm); color: var(--text-300); cursor: pointer; min-height: 36px;
}
.ev-chip:hover { border-color: var(--border-strong); color: var(--text-100); }
.ev-chip[aria-pressed="true"] { border-color: var(--border-active); color: var(--signal-text); background: rgba(196,214,0,.06); }

/* ---------- Stats ---------- */
.ev-stats { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: var(--space-lg); }
.ev-stat { background: var(--bg-2); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--space-md); }
.ev-stat__label { font-size: var(--fs-xs); color: var(--text-400); letter-spacing: .08em; text-transform: uppercase; }
.ev-stat__value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--text-100); line-height: 1.1; margin-top: 4px; }
.ev-stat__value small { font-size: var(--fs-md); color: var(--text-400); font-weight: 400; }
.ev-progress { height: 6px; background: var(--bg-4); border-radius: var(--r-pill); overflow: hidden; margin-top: var(--space-sm); }
.ev-progress > span { display: block; height: 100%; background: var(--grad-progress); border-radius: inherit; transition: width var(--t) var(--ease); }

/* ---------- Leere Zustände / Hinweise (24 §9) ---------- */
.ev-empty { text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--text-400); border: 1px dashed var(--border-soft); border-radius: var(--r-lg); }
.ev-empty h3 { margin-bottom: var(--space-sm); }
.ev-empty p { margin-bottom: var(--space-md); }
.ev-note { border-left: 3px solid var(--border-active); background: var(--bg-2); border-radius: var(--r-sm); padding: var(--space-sm) var(--space-md); font-size: var(--fs-sm); color: var(--text-300); }
.ev-note--warn { border-left-color: var(--status-yellow); }
.ev-note--error { border-left-color: var(--status-red); }
.ev-note ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Toast / Modal / Panel ---------- */
.ev-toast {
  position: fixed; bottom: var(--space-lg); left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--bg-4); border: 1px solid var(--border-strong); color: var(--text-100); border-radius: var(--r-md);
  padding: var(--space-sm) var(--space-lg); box-shadow: var(--shadow-lg); max-width: 90vw; font-size: var(--fs-sm);
  display: flex; gap: var(--space-md); align-items: center;
}
.ev-toast--error { border-color: rgba(248,113,113,.55); }
.ev-toast button { background: none; border: none; color: var(--signal-text); cursor: pointer; font-weight: 500; }
.ev-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh var(--space-md); overflow-y: auto; }
.ev-modal { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: min(640px, 100%); }
.ev-modal--wide { width: min(1100px, 100%); }
.ev-modal__head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border-subtle); }
.ev-modal__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.ev-modal__foot { display: flex; justify-content: flex-end; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }
.ev-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg-2); border-left: 1px solid var(--border-soft); box-shadow: var(--shadow-lg); z-index: 45; display: flex; flex-direction: column; }
.ev-panel__body { flex: 1; overflow-y: auto; padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }

/* ---------- Sticky Speicherleiste (25 §4) ---------- */
.ev-savebar {
  position: sticky; bottom: 0; z-index: 20; margin-top: var(--space-lg); display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  background: var(--bg-0); border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: var(--space-sm) var(--space-md); box-shadow: var(--shadow-md);
}
.ev-savebar__state { font-size: var(--fs-sm); color: var(--text-400); }
.ev-savebar__state.is-dirty { color: var(--warn-text); }

/* ---------- Laufzettel ---------- */
.ev-lz-section { scroll-margin-top: 90px; }
.ev-lz-section > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-md); }
.ev-lz-section > summary::-webkit-details-marker { display: none; }
.ev-lz-section > summary::after { content: '▾'; margin-left: auto; color: var(--text-400); transition: transform var(--t-fast) var(--ease); }
.ev-lz-section:not([open]) > summary::after { transform: rotate(-90deg); }
.ev-lz-section[open] > summary { margin-bottom: var(--space-md); }
.ev-lz-toc { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.ev-suggest { font-size: var(--fs-xs); color: var(--signal-text); background: none; border: none; cursor: pointer; padding: 2px 0; text-align: left; }
.ev-suggest:hover { text-decoration: underline; }

/* ---------- Check-in-Station ---------- */
.ev-station { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: var(--space-lg); }
@media (max-width: 1024px) { .ev-station { grid-template-columns: 1fr; } }
.ev-station__search { font-size: var(--fs-lg); min-height: 60px; padding: 14px 18px; }
.ev-scan-card { border-radius: var(--r-lg); padding: var(--space-lg); border: 2px solid var(--border-soft); background: var(--bg-2); display: flex; gap: var(--space-md); align-items: center; min-height: 120px; }
.ev-scan-card__icon { font-size: var(--fs-3xl); width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 700; }
.ev-scan-card__name { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--text-100); }
.ev-scan-card--ok { border-color: rgba(74,222,128,.55); box-shadow: 0 0 24px rgba(74,222,128,.15); }
.ev-scan-card--ok .ev-scan-card__icon { background: rgba(74,222,128,.15); color: var(--status-green); }
.ev-scan-card--warn { border-color: rgba(251,191,36,.6); }
.ev-scan-card--warn .ev-scan-card__icon { background: rgba(251,191,36,.15); color: var(--warn-text); }
.ev-scan-card--error { border-color: rgba(248,113,113,.6); }
.ev-scan-card--error .ev-scan-card__icon { background: rgba(248,113,113,.15); color: var(--alert-text); }
.ev-scan-card--idle .ev-scan-card__icon { background: var(--bg-4); color: var(--text-400); }
.ev-result { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--border-subtle); }
.ev-result:last-child { border-bottom: none; }
.ev-result__name { font-weight: 500; color: var(--text-100); }
.ev-bignum { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 800; color: var(--text-100); line-height: 1; }
.ev-segmented { display: inline-flex; border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; }
.ev-segmented button { background: transparent; border: none; padding: 10px 16px; min-height: 44px; cursor: pointer; color: var(--text-300); font-weight: 500; }
.ev-segmented button + button { border-left: 1px solid var(--border-soft); }
.ev-segmented button[aria-pressed="true"] { background: var(--bg-4); color: var(--text-100); box-shadow: inset 0 -2px 0 var(--lime); }
.ev-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-400); }
.ev-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--text-500); }
.ev-live.is-on::before { background: var(--status-green); animation: ev-pulse 2s var(--ease) infinite; }

/* ---------- Checkliste ---------- */
.ev-checkitem { display: flex; align-items: flex-start; gap: var(--space-sm); padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.ev-checkitem:last-child { border-bottom: none; }
.ev-checkitem__box {
  width: 28px; height: 28px; border-radius: var(--r-xs); border: 1px solid var(--border-strong); background: transparent; flex: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--bg-0); font-weight: 700;
}
.ev-checkitem__box[aria-checked="true"] { background: var(--lime); border-color: var(--lime); }
.ev-checkitem__label { flex: 1; padding-top: 3px; }
.ev-checkitem.is-done .ev-checkitem__label { color: var(--text-500); text-decoration: line-through; }
.ev-checkitem__by { font-size: var(--fs-xs); color: var(--text-400); white-space: nowrap; padding-top: 5px; }

/* ---------- Einladung ---------- */
.ev-preview { width: 100%; height: 70vh; border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--white); }

/* ---------- Import ---------- */
.ev-drop { border: 2px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--space-xl) var(--space-lg); text-align: center; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.ev-drop:hover, .ev-drop.is-over { border-color: var(--border-active); background: rgba(196,214,0,.04); }
.ev-steps { display: flex; gap: var(--space-md); align-items: center; font-size: var(--fs-sm); color: var(--text-400); }
.ev-steps span.is-active { color: var(--text-100); }
.ev-steps b { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-soft); align-items: center; justify-content: center; margin-right: 6px; font-family: var(--mono); font-weight: 400; }
.ev-steps span.is-active b { border-color: var(--lime); color: var(--signal-text); }

/* ---------- KI-Denk-Indikator (22 §8.8) ---------- */
.ev-think { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-lg); justify-content: center; color: var(--text-300); }
.ev-think__bars { display: inline-flex; gap: 4px; align-items: flex-end; height: 24px; }
.ev-think__bars span { width: 5px; height: 100%; border-radius: 3px; background: var(--lime); animation: ev-breathe var(--think-pulse) var(--ease) infinite; }
.ev-think__bars span:nth-child(2) { animation-delay: var(--think-stagger); }
.ev-think__bars span:nth-child(3) { animation-delay: calc(var(--think-stagger) * 2); }
.ev-think__bars span:nth-child(4) { animation-delay: calc(var(--think-stagger) * 3); }
.ev-think__word { animation: ev-fadein var(--think-word-in) var(--ease); }

/* ---------- Handbuch (25 §10.4) ---------- */
.ev-hb { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-lg); }
@media (max-width: 900px) { .ev-hb { grid-template-columns: 1fr; } }
.ev-hb__nav { display: flex; flex-direction: column; gap: var(--space-xs); }
.ev-hb__group { border-top: 1px solid var(--border-subtle); padding-top: var(--space-sm); }
.ev-hb__group summary { cursor: pointer; font-weight: 500; color: var(--text-200); padding: 6px 0; }
.ev-hb__link { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text-300); padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs-sm); }
.ev-hb__link:hover { background: var(--bg-3); color: var(--text-100); }
.ev-hb__link.is-active { background: var(--bg-3); color: var(--text-100); box-shadow: inset 2px 0 0 var(--lime); }
.ev-hb__detail ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.ev-hb__detail ul { padding-left: 20px; }
.ev-hb__pitfall { color: var(--alert-text); }
.ev-hb__step-note { display: block; font-size: var(--fs-sm); color: var(--text-400); margin-top: 2px; }

/* ---------- Login ---------- */
.ev-login { max-width: 460px; margin: 10vh auto 0; }
.ev-login h1 { font-size: var(--fs-2xl); margin-bottom: var(--space-sm); }

@keyframes ev-spin { to { transform: rotate(360deg); } }
@keyframes ev-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ev-breathe { 0%, 100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes ev-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ev-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--lime); animation: ev-spin .9s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 640px) {
  .ev-header { flex-wrap: wrap; gap: var(--space-sm); padding: var(--space-sm); }
  .ev-nav { order: 3; width: 100%; overflow-x: auto; }
  .ev-main { padding: var(--space-md); }
  .ev-user span.ev-user__name { display: none; }
}

@media print {
  .ev-header, .ev-tabs, .ev-savebar, .ev-actions, .ev-btn { display: none; }
  body { background: #fff; color: #191919; }
}
