/* ============================================================
   EWE · Component styles
   Consumed by the React components in this directory tree.
   States (hover/focus/active/disabled) live here so the JSX
   stays declarative. All values reference design tokens.
   ============================================================ */

/* ---------------------------------- Button ---------------------------------- */
.ewe-btn {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-btn);
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-button);
  padding: 14px 32px;
  min-height: var(--control-height);
  box-sizing: border-box;
  transition: background-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
  white-space: nowrap;
}
.ewe-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--color-focus); }

/* ============================================================
   Button hierarchy — Primary (filled/outlined), Secondary, Tertiary.
   NOTE: placeholder styling on the EWE base look; exact per-variant
   values will be applied as the Figma specs are supplied.
   ============================================================ */

/* Primary · filled */
.ewe-btn--primary-filled { background: var(--brand); color: var(--text-on-brand); }
.ewe-btn--primary-filled:hover { background: var(--brand-hover); }
.ewe-btn--primary-filled:active { background: var(--brand-active); }

/* Primary · outlined */
.ewe-btn--primary-outlined { background: transparent; color: var(--text-strong); box-shadow: inset 0 0 0 2px var(--brand); }
.ewe-btn--primary-outlined:hover { box-shadow: inset 0 0 0 2px var(--ewe-gelb-800); }
.ewe-btn--primary-outlined:active { box-shadow: inset 0 0 0 2px var(--brand-active); }

/* Secondary · yellow arrow disc + label */
.ewe-btn-arrow {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  border-radius: var(--radius-xs);
}
.ewe-btn-arrow__disc {
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--text-on-brand); flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px; box-sizing: border-box;
  transition: background-color var(--dur-base) var(--ease-standard);
}
.ewe-btn-arrow__label { transition: color var(--dur-base) var(--ease-standard); }
.ewe-btn-arrow:hover .ewe-btn-arrow__disc { background: var(--brand-hover); }
.ewe-btn-arrow:hover .ewe-btn-arrow__label { color: var(--ewe-grau-400); }
.ewe-btn-arrow:active .ewe-btn-arrow__disc { background: var(--brand-active); }
.ewe-btn-arrow:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ewe-btn-arrow--disabled { color: var(--text-disabled); pointer-events: none; }
.ewe-btn-arrow--disabled .ewe-btn-arrow__disc { background: var(--ewe-grau-100); color: var(--text-disabled); }

/* Tertiary · text action (optional 16×16 grey icon); yellow underline on hover */
.ewe-btn-tertiary {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  border-radius: var(--radius-xs);
}
.ewe-btn-tertiary__icon { width: 16px; height: 16px; color: var(--text-strong); flex: 0 0 auto; }
.ewe-btn-tertiary__label { border-bottom: 2px solid transparent; transition: border-color var(--dur-base) var(--ease-standard); }
.ewe-btn-tertiary:hover .ewe-btn-tertiary__label { border-bottom-color: var(--brand); }
.ewe-btn-tertiary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ewe-btn-tertiary--disabled { color: var(--text-disabled); pointer-events: none; }
.ewe-btn-tertiary--disabled .ewe-btn-tertiary__icon { color: var(--text-disabled); }

.ewe-btn--sm { font-size: var(--fs-btn-sm); padding: 10px 24px; min-height: 40px; }
.ewe-btn[disabled], .ewe-btn--disabled {
  background: var(--ewe-grau-100); color: var(--text-disabled);
  box-shadow: none; cursor: not-allowed; pointer-events: none;
}
.ewe-btn--primary-outlined.ewe-btn--disabled { background: var(--surface-muted); box-shadow: inset 0 0 0 2px var(--ewe-grau-100); }
.ewe-btn__icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; }

/* -------------------------------- Icon button ------------------------------- */
.ewe-iconbtn {
  width: var(--tap-min); height: var(--tap-min);
  border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; background: transparent; color: var(--text-strong);
  transition: background-color var(--dur-base) var(--ease-standard);
}
.ewe-iconbtn .ewe-icon { width: 22px; height: 22px; }
.ewe-iconbtn--ghost:hover { background: var(--ewe-grau-100); }
.ewe-iconbtn--filled { background: var(--brand); color: var(--text-on-brand); }
.ewe-iconbtn--filled:hover { background: var(--brand-hover); }
.ewe-iconbtn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* -------------------------------- Icon (inline SVG) ------------------------- */
/* Icons are inlined as SVG markup; their paths use currentColor so they
   recolor with the surrounding `color`. */
.ewe-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: 0 0 auto; overflow: hidden; line-height: 0;
}
.ewe-icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }
/* Stroke-based icons (e.g. plus-circle): keep them as outlines, not filled. */
.ewe-icon svg [stroke] { stroke: currentColor; fill: none; }

/* ----------------------------------- Input ---------------------------------- */
.ewe-field { display: flex; flex-direction: column; gap: var(--space-1); font-family: var(--font-primary); }
.ewe-field__label {
  font-size: var(--fs-body-sm); line-height: var(--lh-body-sm);
  color: var(--text-body); display: inline-flex; align-items: center; gap: var(--space-2);
}
.ewe-input {
  font-family: var(--font-primary);
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-strong);
  height: var(--control-height-input);
  border: none; border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  padding: 10px 21px; box-sizing: border-box; background: var(--surface-page);
  transition: box-shadow var(--dur-base) var(--ease-standard);
  width: 100%;
}
.ewe-input::placeholder { color: var(--text-subtle); }
.ewe-input:hover { box-shadow: inset 0 0 0 1.5px var(--ewe-grau-350); }
.ewe-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--color-focus); }
.ewe-input--filled { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ewe-input--error { box-shadow: inset 0 0 0 1.5px var(--ewe-rot-700); }
.ewe-input:disabled { box-shadow: inset 0 0 0 1px var(--ewe-grau-350); background: var(--surface-muted); color: var(--text-disabled); cursor: not-allowed; }
.ewe-field__help { font-size: var(--fs-body-xs); line-height: var(--lh-body-xs); color: var(--text-muted); }
.ewe-field__help--error { color: var(--text-error); }
.ewe-field__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.ewe-field__count { font-size: var(--fs-body-xs); line-height: var(--lh-body-xs); color: var(--text-subtle); flex: 0 0 auto; margin-left: auto; }

/* Textarea — multi-line free-text field */
.ewe-textarea {
  font-family: var(--font-primary);
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-strong);
  min-height: 96px; resize: vertical;
  border: none; border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  padding: 12px 18px; box-sizing: border-box; background: var(--surface-page);
  transition: box-shadow var(--dur-base) var(--ease-standard);
  width: 100%;
}
.ewe-textarea::placeholder { color: var(--text-subtle); }
.ewe-textarea:hover { box-shadow: inset 0 0 0 1.5px var(--ewe-grau-350); }
.ewe-textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--color-focus); }
.ewe-textarea--filled { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ewe-textarea--error { box-shadow: inset 0 0 0 1.5px var(--ewe-rot-700); }
.ewe-textarea:disabled { box-shadow: inset 0 0 0 1px var(--ewe-grau-350); background: var(--surface-muted); color: var(--text-disabled); cursor: not-allowed; }

/* FileUpload — drag-and-drop file area */
.ewe-upload { display: flex; flex-direction: column; gap: var(--space-1); font-family: var(--font-primary); }
.ewe-upload__zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 24px; text-align: center; cursor: pointer;
  border-radius: var(--radius-md); border: 1.5px dashed var(--border-default);
  background: var(--surface-subtle); color: var(--text-muted);
  transition: border-color var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard);
}
.ewe-upload__zone:hover { border-color: var(--ewe-grau-400); }
.ewe-upload__zone:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ewe-upload__zone--drag { border-color: var(--brand); border-style: solid; background: var(--ewe-gelb-100); color: var(--text-strong); }
.ewe-upload__zone--error { border-color: var(--ewe-rot-700); }
.ewe-upload__zone--disabled { cursor: not-allowed; opacity: 0.55; pointer-events: none; }
.ewe-upload__icon { width: 36px; height: 36px; color: var(--text-strong); }
.ewe-upload__zone--drag .ewe-upload__icon { color: var(--text-strong); }
.ewe-upload__hint { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.ewe-upload__input { display: none; }

.ewe-upload__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ewe-upload__file {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--border-subtle); background: var(--surface-page);
}
.ewe-upload__file-ic { color: var(--text-muted); flex: 0 0 auto; }
.ewe-upload__file-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ewe-upload__file-name { font-size: var(--fs-body-sm); color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ewe-upload__file-size { font-size: var(--fs-body-xs); color: var(--text-subtle); }
.ewe-upload__file-msg { font-size: var(--fs-body-xs); color: var(--text-error); }
/* per-file error */
.ewe-upload__file--error { box-shadow: inset 0 0 0 1.5px var(--ewe-rot-700); background: var(--ewe-rot-100); }
.ewe-upload__file--error .ewe-upload__file-ic { color: var(--color-error); }
.ewe-upload__file-remove { flex: 0 0 auto; border: none; background: none; cursor: pointer; padding: 2px; color: var(--text-muted); display: inline-flex; border-radius: var(--radius-xs); transition: color var(--dur-base) var(--ease-standard); }
.ewe-upload__file-remove:hover { color: var(--text-strong); }
.ewe-upload__file-remove:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* DatePicker — calendar (day & range) */
.ewe-datepicker {
  font-family: var(--font-primary);
  width: 320px; box-sizing: border-box;
  background: var(--surface-page); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 20px;
}
.ewe-datepicker__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ewe-datepicker__title { font-weight: var(--fw-semibold); font-size: var(--fs-body); color: var(--text-strong); }
.ewe-datepicker__nav {
  width: 32px; height: 32px; border-radius: var(--radius-pill); border: none; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-strong);
  transition: background-color var(--dur-base) var(--ease-standard);
}
.ewe-datepicker__nav:hover { background: var(--ewe-grau-100); }
.ewe-datepicker__nav:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.ewe-datepicker__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ewe-datepicker__weekdays { margin-bottom: 6px; }
.ewe-datepicker__wd { text-align: center; font-size: var(--fs-body-sm); color: var(--text-subtle); padding: 6px 0; }

.ewe-datepicker__cell {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
/* range tint band */
.ewe-datepicker__cell.is-between { background: var(--ewe-gelb-100); }
.ewe-datepicker__cell.is-start { background: linear-gradient(to right, transparent 50%, var(--ewe-gelb-100) 50%); }
.ewe-datepicker__cell.is-end { background: linear-gradient(to left, transparent 50%, var(--ewe-gelb-100) 50%); }

.ewe-datepicker__day {
  position: relative; z-index: 1;
  width: 38px; height: 38px; border-radius: 10px; border: none; background: none; cursor: pointer;
  font-family: var(--font-primary); font-size: var(--fs-body-sm); color: var(--text-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.ewe-datepicker__day:hover { background: var(--ewe-grau-100); }
.ewe-datepicker__day:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ewe-datepicker__day.is-selected { background: var(--brand); color: var(--text-on-brand); font-weight: var(--fw-semibold); }
.ewe-datepicker__day.is-selected:hover { background: var(--brand-active); }

.ewe-datepicker__foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-body-sm); color: var(--text-muted); display: flex; align-items: center; gap: 8px;
}
.ewe-datepicker__arrow { color: var(--text-subtle); }

.ewe-select-wrap { position: relative; }
.ewe-select-wrap .ewe-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-body); pointer-events: none; }
.ewe-select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }

.ewe-input-icon { position: relative; }
.ewe-input-icon .ewe-input { padding-right: 48px; }
.ewe-input-icon__btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

/* -------------------------------- Checkbox ---------------------------------- */
.ewe-check { display: inline-flex; gap: var(--space-3); align-items: flex-start; font-family: var(--font-primary); cursor: pointer; }
.ewe-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ewe-check__box {
  width: 24px; height: 24px; border-radius: 6px; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1.5px var(--ewe-grau-300); background: var(--surface-page);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
  margin-top: 1px; padding: 4px; box-sizing: border-box;
}
.ewe-check:hover .ewe-check__box { box-shadow: inset 0 0 0 1.5px var(--text-strong); }
.ewe-check input:checked + .ewe-check__box { background: var(--text-strong); box-shadow: none; }
.ewe-check__tick { color: var(--surface-page); opacity: 0; }
.ewe-check input:checked + .ewe-check__box .ewe-check__tick { opacity: 1; }
.ewe-check input:focus-visible + .ewe-check__box { box-shadow: inset 0 0 0 1.5px var(--color-focus), var(--focus-ring); }
.ewe-check__text { display: flex; flex-direction: column; gap: 2px; }
.ewe-check__label { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-body); }
.ewe-check__desc { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--text-muted); }
.ewe-check--disabled { cursor: not-allowed; opacity: 0.55; }

/* --------------------------------- Radio ------------------------------------ */
.ewe-radio { display: inline-flex; gap: var(--space-3); align-items: center; font-family: var(--font-primary); cursor: pointer; }
.ewe-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.ewe-radio__circle {
  width: 22px; height: 22px; border-radius: var(--radius-pill); flex: 0 0 auto;
  box-shadow: inset 0 0 0 1.5px var(--ewe-grau-300); background: var(--surface-page);
  display: inline-flex; align-items: center; justify-content: center;
  transition: box-shadow var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
.ewe-radio:hover .ewe-radio__circle { box-shadow: inset 0 0 0 1.5px var(--text-strong); }
.ewe-radio input:checked + .ewe-radio__circle { background: var(--surface-page); box-shadow: inset 0 0 0 2px var(--text-strong); }
.ewe-radio__dot { width: 11px; height: 11px; border-radius: var(--radius-pill); background: var(--text-strong); opacity: 0; }
.ewe-radio input:checked + .ewe-radio__circle .ewe-radio__dot { opacity: 1; }
.ewe-radio input:focus-visible + .ewe-radio__circle { box-shadow: inset 0 0 0 1.5px var(--color-focus), var(--focus-ring); }
.ewe-radio__label { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-body); }

/* --------------------------------- Switch ----------------------------------- */
.ewe-switch { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-primary); cursor: pointer; }
.ewe-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ewe-switch__track {
  position: relative; width: 40px; height: 14px; border-radius: var(--radius-pill);
  background: var(--ewe-grau-200); transition: background-color var(--dur-base) var(--ease-standard);
}
.ewe-switch__knob {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: var(--radius-pill); background: var(--surface-page);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: left var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard);
}
.ewe-switch input:checked + .ewe-switch__track { background: var(--ewe-gruen-harmonisch); }
.ewe-switch input:checked + .ewe-switch__track .ewe-switch__knob { left: 18px; background: var(--color-success); }
.ewe-switch input:focus-visible + .ewe-switch__track .ewe-switch__knob { box-shadow: 0 1px 3px rgba(0,0,0,0.25), var(--focus-ring); }
.ewe-switch__label { font-size: var(--fs-body); color: var(--text-body); }

/* ---------------------------------- Badge ----------------------------------- */
.ewe-badge {
  font-family: var(--font-primary); font-weight: var(--fw-semibold);
  font-size: var(--fs-body-xs); line-height: 1; letter-spacing: var(--ls-body);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--radius-pill); white-space: nowrap;
}
.ewe-badge--brand { background: var(--brand); color: var(--text-on-brand); }
.ewe-badge--neutral { background: var(--ewe-grau-100); color: var(--text-body); }
.ewe-badge--success { background: var(--ewe-gruen-harmonisch); color: var(--ewe-gruen-900); }
.ewe-badge--error { background: var(--ewe-rot-harmonisch); color: var(--ewe-rot-900); }
.ewe-badge--info { background: var(--ewe-blau-harmonisch); color: var(--ewe-blau-900); }
.ewe-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor; }

/* ---------------------------------- Banner ---------------------------------- */
/* Filled tinted notice: 100-tint background, 1px signal-colour border,
   16px radius, soft drop shadow (per EWE Figma spec). A filled status
   disc sits beside the title; an optional close button at top-right. */
.ewe-banner {
  font-family: var(--font-primary); display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: 16px;
  background: var(--surface-page); border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.08);
  color: var(--text-body); position: relative;
}
.ewe-banner__content { flex: 1; min-width: 0; }
.ewe-banner--info { background: var(--ewe-blau-100); border-color: var(--color-info); }
.ewe-banner--success { background: var(--ewe-gruen-100); border-color: var(--color-success); }
.ewe-banner--warning { background: var(--ewe-orange-100); border-color: var(--color-warning); }
.ewe-banner--error { background: var(--ewe-rot-100); border-color: var(--color-error); }
.ewe-banner__icon { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 1px; }
.ewe-banner--info .ewe-banner__icon { color: var(--color-info); }
.ewe-banner--success .ewe-banner__icon { color: var(--color-success); }
.ewe-banner--warning .ewe-banner__icon { color: var(--color-warning); }
.ewe-banner--error .ewe-banner__icon { color: var(--color-error); }
.ewe-banner__title { font-weight: var(--fw-semibold); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-strong); }
.ewe-banner__body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-strong); }
.ewe-banner__close {
  flex: 0 0 auto; border: none; background: none; cursor: pointer; padding: 2px;
  color: var(--text-strong); display: inline-flex; border-radius: var(--radius-xs);
  transition: opacity var(--dur-base) var(--ease-standard);
}
.ewe-banner__close:hover { opacity: 0.6; }
.ewe-banner__close:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ----------------------------------- Toast ---------------------------------- */
/* Same filled-tinted treatment as Banner, with a filled status disc. */
.ewe-toast {
  font-family: var(--font-primary); display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface-page); border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.08);
  color: var(--text-body); min-width: 280px;
}
.ewe-toast--success { background: var(--ewe-gruen-100); border-color: var(--color-success); }
.ewe-toast--error { background: var(--ewe-rot-100); border-color: var(--color-error); }
.ewe-toast--warning { background: var(--ewe-orange-100); border-color: var(--color-warning); }
.ewe-toast--info { background: var(--ewe-blau-100); border-color: var(--color-info); }
.ewe-toast__icon { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 1px; }
.ewe-toast--success .ewe-toast__icon { color: var(--color-success); }
.ewe-toast--error .ewe-toast__icon { color: var(--color-error); }
.ewe-toast--warning .ewe-toast__icon { color: var(--color-warning); }
.ewe-toast--info .ewe-toast__icon { color: var(--color-info); }
.ewe-toast__close {
  flex: 0 0 auto; border: none; background: none; cursor: pointer; padding: 2px;
  color: var(--text-strong); display: inline-flex; border-radius: var(--radius-xs);
  transition: opacity var(--dur-base) var(--ease-standard);
}
.ewe-toast__close:hover { opacity: 0.6; }
.ewe-toast__close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ewe-toast--success .ewe-toast__dot { background: var(--color-success); }
.ewe-toast--error .ewe-toast__dot { background: var(--color-error); }
.ewe-toast--info .ewe-toast__dot { background: var(--color-info); }
.ewe-toast__dot .ewe-icon { width: 16px; height: 16px; }
.ewe-toast__msg { font-size: var(--fs-body); line-height: var(--lh-body); flex: 1; min-width: 0; }
.ewe-toast__title { font-weight: var(--fw-semibold); color: var(--text-strong); }

/* --------------------------------- Tooltip ---------------------------------- */
.ewe-tooltip { position: relative; display: inline-flex; }
.ewe-tooltip__bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--surface-dark); color: var(--text-on-dark);
  font-family: var(--font-primary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm);
  padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap;
  box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard); z-index: 20;
}
.ewe-tooltip__bubble::after { content:""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--surface-dark); }
.ewe-tooltip:hover .ewe-tooltip__bubble, .ewe-tooltip:focus-within .ewe-tooltip__bubble { opacity: 1; }

/* ------------------------------- Breadcrumb --------------------------------- */
.ewe-breadcrumb { font-family: var(--font-primary); display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-body-sm); color: var(--text-muted); flex-wrap: wrap; }
.ewe-breadcrumb a { color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color var(--dur-base) var(--ease-standard); }
.ewe-breadcrumb a:hover { color: var(--text-body); border-bottom-color: var(--brand); }
.ewe-breadcrumb__sep { width: 14px; height: 14px; color: var(--text-subtle); flex: 0 0 auto; }
.ewe-breadcrumb__current { color: var(--text-strong); font-weight: var(--fw-semibold); }

/* --------------------------------- Stepper ---------------------------------- */
.ewe-stepper { font-family: var(--font-primary); display: flex; align-items: flex-start; }
.ewe-stepper__item { position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 0 24px; width: 24px; }
.ewe-stepper__circle {
  width: 24px; height: 24px; border-radius: var(--radius-pill); flex: 0 0 auto; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-page); border: 2px solid var(--ewe-grau-200);
}
.ewe-stepper__tick { width: 15px; height: 15px; color: var(--brand); }
.ewe-stepper__dot { width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--text-strong); }
.ewe-stepper__label { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: var(--fw-regular); color: var(--text-subtle); white-space: nowrap; }

/* connector line — docks directly to the 24px circles (no gap) */
.ewe-stepper__line { flex: 1 1 auto; min-width: 32px; height: 2px; margin-top: 11px; background: var(--ewe-grau-300); }
.ewe-stepper__line--done { background: var(--brand); }

/* done */
.ewe-stepper__item--done .ewe-stepper__circle { border-color: var(--brand); }
.ewe-stepper__item--done .ewe-stepper__label { color: var(--text-body); }

/* active */
.ewe-stepper__item--active .ewe-stepper__circle { border-color: var(--text-strong); }
.ewe-stepper__item--active .ewe-stepper__label { color: var(--text-strong); font-weight: var(--fw-semibold); }
