/* hagebau events — Farben angelehnt an hagebau.de */
@import url("fonts.css");

:root {
  --hb-green: #009646;
  --hb-green-dark: #005028;
  --hb-green-light: #e5f4ec;
  --hb-green-mid: #b2dfc7;
  --hb-red: #e10019;
  --hb-bg: #f4f4f4;
  --hb-surface: #ffffff;
  --hb-text: #1c1c1c;
  --hb-muted: #818181;
  --hb-border: #e9e9e9;
  --hb-radius: 8px;
  --er-bg: var(--hb-bg);
  --er-card: var(--hb-surface);
  --er-edge: var(--hb-border);
  --er-text: var(--hb-text);
  --er-muted: var(--hb-muted);
  --er-coral: var(--hb-green);
  --er-ok: var(--hb-green);
  --er-err: var(--hb-red);
  --er-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --er-font-brand: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --er-header-h: 76px;
  --er-header-h-mobile: 112px;
  --er-header-logo-h: 52px;
  --er-header-logo-max-w: 220px;
  --er-header-max: 1180px;
  --er-layout-max: 920px;
  --er-layout-pad: 20px;
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-anchor: none;
  font-family: var(--er-font);
  font-size: 16px;
  line-height: 1.58;
  color: var(--er-text);
  background: var(--er-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body.er-auth {
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, var(--hb-green-light) 0%, var(--hb-bg) 45%);
}

.er-header {
  border-bottom: 3px solid var(--hb-green-dark);
  background: var(--hb-green);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 80, 40, 0.15);
  min-height: var(--er-header-h-mobile);
}

@media (min-width: 600px) {
  .er-header {
    min-height: var(--er-header-h);
  }
}

.er-header-inner {
  max-width: var(--er-header-max);
  margin: 0 auto;
  padding: 14px var(--er-layout-pad);
  min-height: calc(var(--er-header-h-mobile) - 3px);
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 12px 16px;
}

@media (min-width: 600px) {
  .er-header-inner {
    min-height: calc(var(--er-header-h) - 3px);
  }
}

@media (max-width: 599px) {
  .er-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 12px;
  }

  .er-brand {
    grid-area: brand;
  }

  .er-nav {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    min-width: 0;
  }

  .er-nav::-webkit-scrollbar {
    display: none;
  }

  .er-header-actions {
    grid-area: actions;
  }
}

.er-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.er-nav::-webkit-scrollbar {
  display: none;
}

.er-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.er-nav-link {
  position: relative;
  z-index: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0 10px;
  min-height: 40px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  background: transparent;
}

.er-nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: transparent;
  z-index: -1;
}

.er-nav-link:hover {
  color: #fff;
}

.er-nav-link:hover::before {
  background: rgba(255, 255, 255, 0.15);
}

.er-nav-link--active {
  color: var(--hb-green-dark);
}

.er-nav-link--open {
  color: var(--hb-green-dark);
}

.er-nav-link--active::before,
.er-nav-link--open::before {
  background: #fff;
}

.er-nav-reservations-menu-open .er-nav-events-link.er-nav-link--active {
  color: rgba(255, 255, 255, 0.88);
}

.er-nav-reservations-menu-open .er-nav-events-link.er-nav-link--active::before {
  background: transparent;
}

.er-nav-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.er-nav-link--menu {
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font-family: inherit;
  letter-spacing: inherit;
  text-align: inherit;
}

.er-nav-link__short {
  display: none;
}

@media (max-width: 1120px) and (min-width: 600px) {
  .er-nav-link {
    font-size: 0.8125rem;
    padding: 0 8px;
  }

  .er-nav-badge {
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
  }

  .er-header-user__text {
    display: none;
  }

  .er-header-user {
    max-width: none;
    padding: 4px;
  }

  .er-brand-logo-wrap,
  .er-brand-logo {
    max-width: 168px;
  }
}

@media (max-width: 900px) and (min-width: 600px) {
  .er-nav-link__full {
    display: none;
  }

  .er-nav-link__short {
    display: inline;
  }
}

.er-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.er-nav-link--active .er-nav-badge {
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
}

.er-nav-link--open .er-nav-badge {
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
}

.er-nav-badge--hot {
  background: #ff3b30;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.er-nav-link--active .er-nav-badge--hot {
  background: #ff3b30;
  color: #fff;
}

.er-nav-link--open .er-nav-badge--hot {
  background: #ff3b30;
  color: #fff;
}

.er-nav-dropdown {
  position: relative;
}

.er-nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, calc(100vw - 32px));
  border-radius: 16px;
  background: #fff;
  color: var(--er-text);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 48px rgba(15, 23, 42, 0.16);
  z-index: 30;
  overflow: hidden;
}

.er-nav-dropdown__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--er-edge);
  background: #f8f9ff;
  font-size: 0.92rem;
}

.er-nav-dropdown__panel-count {
  font-size: 0.78rem;
  color: var(--er-muted);
  font-weight: 600;
}

.er-nav-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.er-nav-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.er-nav-dropdown__item:hover {
  background: #f1f5f9;
}

.er-nav-dropdown__item--current {
  background: #eef2ff;
}

.er-nav-dropdown__item-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.er-nav-dropdown__item-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  flex-shrink: 0;
}

.er-role-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 4px;
}

.er-role-badge--admin,
.er-role-badge--event_manager {
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
}

.er-role-badge--staff {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.er-header .er-role-badge--staff {
  background: #f4f4f4;
  color: var(--hb-muted);
}

.er-h3 {
  margin: 20px 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hb-text);
}

.er-list-count {
  font-size: 0.85rem;
  font-weight: 600;
}

.er-card-divider {
  margin: 18px 0;
  border-top: 1px solid var(--hb-border);
}

.er-user-stacks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.er-user-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--er-edge);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.er-user-card:hover {
  border-color: #d4e8dc;
  box-shadow: 0 4px 14px rgba(0, 80, 40, 0.08);
}

.er-user-card--self {
  border-color: var(--hb-green-mid);
  box-shadow: 0 2px 10px rgba(0, 150, 70, 0.1), inset 4px 0 0 var(--hb-green);
}

.er-user-card__body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fafcfb 0%, #fff 100%);
}

.er-user-card--self .er-user-card__body {
  background: linear-gradient(180deg, #edf7f0 0%, #f8fcf9 100%);
}

.er-user-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--hb-green) 0%, var(--hb-green-dark) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0, 80, 40, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -1px;
}

.er-user-card__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.er-user-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.er-user-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.er-user-card__badges .er-role-badge {
  margin-left: 0;
  font-size: 0.65rem;
  padding: 3px 9px;
  border: 1px solid transparent;
}

.er-user-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--er-text);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.er-user-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px 14px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e8eeea;
}

.er-user-card__meta-item {
  margin: 0;
  min-width: 0;
}

.er-user-card__meta-item dt {
  margin: 0 0 3px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hb-muted);
}

.er-user-card__meta-item dd {
  margin: 0;
  min-width: 0;
}

.er-user-card__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.er-user-card__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  margin: 0;
  line-height: 1.35;
}

.er-user-card__login {
  display: inline-block;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f4f6f5;
  border: 1px solid #e4ebe7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hb-green-dark);
  overflow-wrap: anywhere;
}

.er-card--profile-hero {
  padding: 0;
  overflow: hidden;
  border-color: var(--hb-green-mid);
  box-shadow: 0 2px 10px rgba(0, 150, 70, 0.08);
}

.er-user-card__body--hero {
  background: linear-gradient(180deg, #edf7f0 0%, #f8fcf9 100%);
  box-shadow: inset 4px 0 0 var(--hb-green);
}

.er-header-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(220px, 42vw);
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.er-header-user:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.er-header-user--active {
  background: #fff;
  border-color: #fff;
  color: var(--hb-green-dark);
}

.er-header-user--active .er-header-user__avatar {
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
}

.er-header-user--active .er-role-badge--header {
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
}

.er-header-user__avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hb-green-dark);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.er-header-user__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.er-header-user__name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.er-role-badge--header {
  margin-left: 0;
  font-size: 0.58rem;
  padding: 1px 6px;
  line-height: 1.3;
}

.er-header .er-role-badge--staff.er-role-badge--header {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
}

.er-header .er-role-badge--super_admin.er-role-badge--header {
  background: rgba(255, 243, 205, 0.92);
  color: #856404;
}

.er-header .er-role-badge--event_manager.er-role-badge--header,
.er-header .er-role-badge--admin.er-role-badge--header {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.er-user-card__email {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #2d4a9a;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.er-user-card__email:hover {
  color: var(--hb-green-dark);
  text-decoration: underline;
}

.er-user-card__missing {
  font-size: 0.84rem;
  color: var(--hb-muted);
  font-style: italic;
}

.er-user-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 14px;
  background: #fafcfb;
  border-top: 1px solid #eef2ef;
}

.er-user-card--self .er-user-card__footer {
  background: #f3faf5;
}

.er-role-badge--staff {
  background: #f0f2f1;
  color: #5c6560;
  border-color: #dde3e0;
}

.er-role-badge--admin,
.er-role-badge--event_manager {
  border-color: var(--hb-green-mid);
}

.er-role-badge--super_admin {
  border-color: #f0d878;
}

.er-search--compact input {
  min-width: 180px;
  padding: 7px 10px;
  font-size: 0.85rem;
}

.er-badge--self {
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
  border-color: var(--hb-green-mid);
}

.er-btn--danger-icon {
  color: var(--hb-red);
}

.er-btn--danger-icon:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.er-user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 4px;
}

.er-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  background: var(--hb-bg);
  border: 1px solid var(--er-edge);
}

.er-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.er-user-name {
  font-weight: 600;
}

.er-user-you {
  font-size: 0.8rem;
}

.er-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--er-font-brand);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  line-height: 1.1;
  text-transform: lowercase;
  flex-shrink: 0;
  min-height: var(--er-header-logo-h);
  min-width: 0;
}

.er-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  max-width: var(--er-header-logo-max-w);
  height: var(--er-header-logo-h);
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.er-brand-logo {
  display: block;
  width: auto;
  max-width: var(--er-header-logo-max-w);
  height: var(--er-header-logo-h);
  object-fit: contain;
  object-position: left center;
}

.er-brand-text {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.er-brand-hagebau {
  display: none;
}

.er-brand-events {
  color: inherit;
  font-weight: inherit;
  margin-left: 0;
}

.er-user {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.er-user-link {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

.er-user-link:hover {
  text-decoration: underline;
}

.er-field-hint {
  margin: -4px 0 12px;
  font-size: 0.85rem;
}

.er-field-readonly {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-border);
  background: var(--hb-bg);
  font-weight: 600;
  color: var(--er-text);
}

.er-user-email {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--hb-green-dark);
  font-weight: 600;
}

.er-user-email--missing {
  color: var(--hb-red);
  font-weight: 600;
}

.er-user-login {
  font-size: 0.78rem;
}

.er-main {
  width: 100%;
  max-width: var(--er-layout-max);
  margin: 0 auto;
  padding: 20px var(--er-layout-pad) 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: var(--er-header-h-mobile);
}

@media (min-width: 600px) {
  .er-main {
    scroll-margin-top: var(--er-header-h);
  }
}

.er-card {
  background: var(--er-card);
  border: 1px solid var(--er-edge);
  border-radius: var(--hb-radius);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.er-card--narrow {
  width: min(100%, 420px);
  border-top: 4px solid var(--hb-green);
}

.er-brand-events--dark {
  color: var(--hb-green-dark);
}

.er-form--site-title {
  margin-top: 4px;
}

.er-field--site-title input {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 14px;
  border-color: #d4e8dc;
  background: #fafcfb;
}

.er-field--site-title input:focus {
  border-color: var(--hb-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 150, 70, 0.12);
}

.er-card--branding {
  border-top: 4px solid var(--hb-green);
}

/* —— Settings page —— */
.er-settings {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.er-settings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}

.er-settings-head__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.er-settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.er-settings-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hb-border);
  background: #fff;
  color: var(--hb-text);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.er-settings-nav__link:hover {
  border-color: var(--hb-green);
  color: var(--hb-green-dark);
}

.er-settings-group {
  scroll-margin-top: 16px;
}

.er-settings-group__head {
  margin-bottom: 14px;
}

.er-settings-group__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.er-settings-group__intro {
  margin: 0;
  font-size: 0.88rem;
  color: var(--er-muted);
  line-height: 1.45;
}

.er-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.er-card--settings {
  border-top: 3px solid var(--hb-green-light);
}

.er-settings-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.er-settings-card__intro {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.er-card--users-list .er-list-head {
  margin-bottom: 12px;
}

.er-card--users-list .er-settings-card__title {
  margin: 0;
}

.er-card--users-form.er-card--active {
  border-top-color: var(--hb-green);
  box-shadow: 0 0 0 1px rgba(0, 150, 70, 0.12);
}

.er-settings .er-btn {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.er-settings .er-form-actions {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}

.er-settings .er-form-actions--inline {
  gap: 8px;
}

/* Brand upload (Logo + Favicon — identical layout) */
.er-brand-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.er-brand-upload__preview {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #dde3e0;
  background: linear-gradient(180deg, #f4f6f5 0%, #fafcfb 100%);
  display: flex;
  align-items: center;
}

.er-brand-upload__preview--logo {
  background: var(--hb-green);
  border-color: var(--hb-green-dark);
  justify-content: flex-start;
}

.er-brand-upload__preview--favicon {
  justify-content: flex-start;
  align-items: flex-end;
  padding-bottom: 0;
}

.er-brand-upload__logo-img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.er-brand-upload__empty {
  font-size: 0.82rem;
  color: var(--er-muted);
}

.er-brand-upload__preview--logo .er-brand-upload__empty {
  color: rgba(255, 255, 255, 0.78);
}

.er-brand-upload__tab-mock {
  display: flex;
  align-items: flex-end;
  min-height: 40px;
  width: 100%;
}

.er-brand-upload__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 280px);
  padding: 7px 12px 7px 9px;
  border-radius: 10px 10px 0 0;
  background: #fff;
  border: 1px solid #dde3e0;
  border-bottom: none;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.04);
}

.er-brand-upload__tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.er-brand-upload__tab-icon--empty {
  display: inline-block;
  border-radius: 4px;
  background: var(--hb-green-light);
}

.er-brand-upload__tab-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hb-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.er-brand-upload__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  background: #fff;
}

.er-brand-upload__file-form {
  flex: 1;
  min-width: min(100%, 220px);
  margin: 0;
}

.er-brand-upload__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.er-brand-upload__remove {
  margin: 0;
}

.er-file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  max-width: 300px;
  cursor: pointer;
}

.er-file-picker__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-border);
  background: var(--hb-bg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hb-text);
  transition: border-color 0.15s, background 0.15s;
}

.er-file-picker:hover .er-file-picker__btn {
  border-color: var(--hb-green);
  background: #fff;
}

.er-file-picker__name {
  font-size: 0.82rem;
  color: var(--er-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.er-file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 560px) {
  .er-brand-upload__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .er-brand-upload__file-form {
    width: 100%;
  }

  .er-file-picker {
    max-width: none;
  }

  .er-brand-upload__actions {
    justify-content: flex-end;
  }
}

#settings-brand,
#settings-registration,
#settings-users,
#settings-users-form,
#shared-emails {
  scroll-margin-top: 20px;
}

.er-brand-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.er-brand-block__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.er-brand-block__head .er-h3 {
  margin: 0;
}

.er-brand-block__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.er-brand-divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--hb-border);
}

.er-title-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f6f5 0%, #fafcfb 100%);
  border: 1px solid #e4ebe7;
}

.er-title-preview__tabbar {
  display: flex;
  align-items: flex-end;
  min-height: 34px;
  padding: 0 4px;
  background: #e8ecea;
  border-radius: 10px 10px 0 0;
}

.er-title-preview__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px 8px 10px;
  border-radius: 10px 10px 0 0;
  background: #fff;
  border: 1px solid #dde3e0;
  border-bottom: none;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.04);
}

.er-title-preview__favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.er-title-preview__favicon--empty {
  display: inline-block;
  border-radius: 4px;
  background: var(--hb-green-light);
  border: 1px solid var(--hb-green-mid);
}

.er-title-preview__tab-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.er-title-preview__login {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4ebe7;
  text-align: center;
}

.er-title-preview__login-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hb-muted);
}

.er-title-preview__login-title {
  font-family: var(--er-font-brand);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hb-green-dark);
  text-transform: lowercase;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.er-form--inline-title {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.er-field--grow {
  flex: 1 1 220px;
  min-width: 200px;
}

.er-login-title {
  font-family: var(--er-font-brand);
  font-weight: 700;
  font-size: 1.75rem;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  color: var(--hb-green-dark);
  margin: 0 0 8px;
}

.er-brand-hagebau--dark {
  display: none;
}

.er-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hb-green);
  font-weight: 700;
}

.er-login-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 240px);
  height: 80px;
  margin: 0 auto 12px;
  padding: 10px 14px;
  box-sizing: border-box;
  background: linear-gradient(90deg, var(--hb-green) 0%, var(--hb-green-light) 42%, #fff 100%);
  border-radius: 10px;
  border: 1px solid var(--hb-border);
  overflow: visible;
}

.er-login-logo-wrap--solo {
  margin-bottom: 20px;
}

.er-login-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

h1, .er-h1 {
  margin: 0 0 8px;
  font-family: var(--er-font-brand);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--hb-text);
}

.er-h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hb-green-dark);
}

.er-lead {
  margin: 0 0 16px;
  color: var(--er-muted);
  font-size: 0.9rem;
}

.er-auth-links {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.er-auth-links a {
  color: var(--hb-green-dark);
  font-weight: 600;
}

.er-card--register {
  max-width: 560px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 80, 40, 0.1);
}

.er-register-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 24px;
  background: var(--hb-green);
  border-bottom: 3px solid var(--hb-green-dark);
}

.er-register-brand__logo {
  display: block;
  width: auto;
  max-width: min(100%, 220px);
  height: 48px;
  object-fit: contain;
  object-position: center;
}

.er-register-hero {
  padding: 22px 22px 18px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--hb-green-light) 100%);
  border-bottom: 1px solid var(--hb-border);
}

.er-register-hero__kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hb-green-dark);
}

.er-register-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--hb-green-dark);
}

.er-register-hero__schedule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--hb-green-mid);
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 80, 40, 0.06);
}

.er-register-hero__schedule-icon {
  flex-shrink: 0;
  display: flex;
  color: var(--hb-green);
}

.er-register-hero__schedule-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.er-register-hero__schedule-text strong {
  font-size: 1rem;
  color: var(--hb-text);
}

.er-register-hero__schedule-text span {
  font-size: 0.88rem;
  color: var(--hb-muted);
  line-height: 1.35;
}

.er-register-hero__when-fallback {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--hb-muted);
}

.er-register-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.er-register-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--hb-border);
  background: #fff;
  text-align: left;
}

.er-register-chip__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

.er-register-chip strong {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hb-text);
}

.er-register-chip--spots {
  border-color: var(--hb-green-mid);
  background: #fff;
}

.er-register-chip--spots strong {
  color: var(--hb-green-dark);
}

.er-register-chip--full {
  border-color: #f0c9a8;
  background: #fff8f0;
}

.er-register-chip--full strong {
  color: #8a4b12;
}

.er-register-chip--fee strong {
  color: var(--hb-green-dark);
}

.er-register-body {
  padding: 20px 22px 22px;
}

.er-register-body .er-flash {
  margin-top: 0;
}

.er-register-body--simple {
  text-align: center;
}

.er-register-body--simple .er-h1 {
  margin-bottom: 12px;
}

.er-register-when {
  text-align: center;
  margin: 0 0 12px;
}

.er-register-party-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--hb-border);
  background: #f8fcf9;
  text-align: left;
}

.er-register-party-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e4efe8;
}

.er-register-party-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.er-register-party-list__code {
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--hb-green-dark);
}

.er-companion-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed #b9dcc8;
  background: #f8fcf9;
}

.er-companion-card__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--hb-green-dark);
}

.er-companion-card__lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--hb-muted);
}

.er-companion-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.er-companion-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--hb-border);
}

.er-companion-row__names {
  min-width: 0;
}

.er-companion-add {
  margin-top: 12px;
}

.er-copy-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.er-copy-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  font: inherit;
  background: var(--hb-bg);
  color: var(--er-text);
}

.er-muted {
  color: var(--er-muted);
  font-size: 0.85rem;
}

.er-back a {
  color: var(--hb-green);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.er-back a:hover {
  color: var(--hb-green-dark);
}

.er-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.er-form--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
}

.er-form--create-event {
  gap: 0;
}

.er-create-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.er-create-section-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hb-green-dark);
}

.er-create-basics {
  padding-bottom: 4px;
}

.er-create-basics-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.75fr 0.75fr;
  gap: 12px;
  align-items: end;
}

.er-field--grow {
  min-width: 0;
}

.er-create-settings {
  padding-top: 20px;
  border-top: 1px solid var(--hb-border);
}

.er-create-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.er-create-tile {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  padding: 0;
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.er-create-tile__head {
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, var(--hb-bg) 0%, #fff 100%);
  border-bottom: 1px solid var(--hb-border);
}

.er-create-tile__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hb-text);
  line-height: 1.25;
}

.er-create-tile__desc {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--hb-muted);
  font-weight: 500;
}

.er-create-tile__body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.er-create-tile__foot {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--hb-border);
  background: var(--hb-bg);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--hb-muted);
  font-weight: 500;
}

.er-segments--tile {
  flex-direction: column;
  gap: 8px;
}

.er-segments--tile .er-segment {
  min-height: 42px;
  justify-content: flex-start;
  padding-left: 14px;
  padding-right: 14px;
}

.er-capacity-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  border: 1px dashed var(--hb-green-mid);
  background: var(--hb-green-light);
}

.er-capacity-field[hidden],
.er-create-tile__foot--capacity[hidden] {
  display: none !important;
}

.er-capacity-field input {
  width: 72px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 6px;
  border: 1px solid var(--hb-border);
  border-radius: 6px;
  background: #fff;
}

.er-capacity-field__unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hb-green-dark);
}

.er-deposit-amount-field {
  margin-top: 12px;
}

.er-deposit-amount-field[hidden] {
  display: none !important;
}

.er-deposit-amount-field input {
  max-width: 120px;
  font-weight: 700;
}

.er-payout-summary {
  display: grid;
  gap: 12px;
  margin: 0 0 1.25rem;
}

.er-card--payout {
  max-width: 640px;
  padding: 0;
  overflow: hidden;
}

.er-payout-hero {
  padding: 22px 22px 18px;
  background: linear-gradient(165deg, var(--hb-green-light) 0%, #fff 72%);
  border-bottom: 1px solid var(--hb-border);
}

.er-payout-hero__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hb-green-dark);
}

.er-payout-hero__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--hb-green-dark);
}

.er-payout-hero__event {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--hb-muted);
  line-height: 1.45;
}

.er-payout-hero__when {
  display: block;
  margin-top: 2px;
  font-size: 0.88rem;
}

.er-payout-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.er-payout-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--hb-green-mid);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 80, 40, 0.06);
}

.er-payout-chip--amount strong {
  font-size: 1.15rem;
  color: var(--hb-green-dark);
}

.er-payout-chip__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

.er-payout-chip strong {
  font-size: 1rem;
  color: var(--hb-text);
}

.er-form--payout {
  padding: 20px 22px 22px;
  gap: 20px;
}

.er-payout-step__label {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hb-text);
}

.er-payout-step__hint {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--hb-muted);
}

.er-payout-choices {
  display: grid;
  gap: 10px;
}

.er-payout-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "icon content badge"
    "icon content mark";
  gap: 0 14px;
  align-items: start;
  padding: 16px 16px 16px 14px;
  border: 2px solid var(--hb-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.er-payout-choice:hover {
  border-color: var(--hb-green-mid);
  box-shadow: 0 4px 14px rgba(0, 80, 40, 0.08);
}

.er-payout-choice:has(.er-payout-choice__input:checked) {
  border-color: var(--hb-green);
  background: linear-gradient(135deg, #fff 0%, var(--hb-green-light) 100%);
  box-shadow: 0 4px 16px rgba(0, 150, 70, 0.12);
}

.er-payout-choice--no-show:has(.er-payout-choice__input:checked) {
  border-color: #c9a227;
  background: linear-gradient(135deg, #fff 0%, #fff8e6 100%);
  box-shadow: 0 4px 16px rgba(180, 130, 0, 0.1);
}

.er-payout-choice__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.er-payout-choice__icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--hb-green-dark);
  background: var(--hb-green-light);
}

.er-payout-choice--cancelled .er-payout-choice__icon {
  color: #9a6b00;
  background: #fff6dd;
}

.er-payout-choice--no-show .er-payout-choice__icon {
  color: #8a4b12;
  background: #fff0e8;
}

.er-payout-choice__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 2px;
}

.er-payout-choice__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--hb-text);
}

.er-payout-choice__desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--hb-muted);
}

.er-payout-choice__badge {
  grid-area: badge;
  align-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.er-payout-choice__badge--ok {
  color: var(--hb-green-dark);
  background: var(--hb-green-light);
  border: 1px solid var(--hb-green-mid);
}

.er-payout-choice__badge--keep {
  color: #8a4b12;
  background: #fff0e8;
  border: 1px solid #f0c9a8;
}

.er-payout-choice__mark {
  grid-area: mark;
  justify-self: end;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  border: 2px solid var(--hb-border);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.er-payout-choice:has(.er-payout-choice__input:checked) .er-payout-choice__mark {
  border-color: var(--hb-green);
  background: var(--hb-green);
  box-shadow: inset 0 0 0 3px #fff;
}

.er-payout-choice--no-show:has(.er-payout-choice__input:checked) .er-payout-choice__mark {
  border-color: #c9a227;
  background: #c9a227;
}

.er-form-actions--payout {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--hb-border);
}

.er-btn--payout-submit {
  min-width: 200px;
}

.er-card--payout .er-flash {
  margin: 16px 22px 0;
}

.er-card--payout > .er-form-actions {
  padding: 0 22px 22px;
}

@media (max-width: 560px) {
  .er-payout-choice {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon content"
      "badge badge"
      "mark mark";
    gap: 10px 12px;
  }

  .er-payout-choice__badge {
    justify-self: start;
  }

  .er-payout-choice__mark {
    display: none;
  }

  .er-payout-choice:has(.er-payout-choice__input:checked) {
    border-width: 2px;
  }
}

.er-payout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hb-border);
}

.er-payout-summary dt {
  margin: 0;
  color: var(--hb-muted);
  font-weight: 600;
}

.er-payout-summary dd {
  margin: 0;
  font-weight: 700;
}

.er-grid-2--compact {
  max-width: 360px;
}

.er-segments--stack {
  flex-direction: column;
}

.er-segments--stack .er-segment {
  justify-content: flex-start;
}

.er-form-actions--inline {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.er-form-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hb-border);
}

.er-segments--wrap {
  flex-wrap: wrap;
}

.er-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.er-role-badge--super_admin {
  background: #fff3cd;
  color: #856404;
}

.er-card--reserved {
  border-top: 4px solid #6366f1;
}

/* Apple-style Reservierungs-Postfach */
.er-reserve-inbox {
  margin: 0 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(99, 102, 241, 0.12);
  overflow: hidden;
}

.er-reserve-inbox__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.er-reserve-inbox__head:hover {
  background: linear-gradient(180deg, #f0f2ff 0%, #fafbff 100%);
}

.er-reserve-inbox__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4338ca;
  flex-shrink: 0;
}

.er-reserve-inbox__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.er-reserve-inbox__title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.er-reserve-inbox__subtitle {
  font-size: 0.82rem;
  color: var(--er-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.er-reserve-inbox__badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.35);
}

.er-reserve-inbox__badge--empty {
  background: #e2e8f0;
  color: #64748b;
  box-shadow: none;
}

.er-reserve-inbox__empty {
  margin: 14px 0 4px;
  padding: 0;
  text-align: center;
  font-size: 0.9rem;
}

.er-reserve-inbox__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 2px;
}

.er-reserve-inbox--open .er-reserve-inbox__chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.er-reserve-inbox__preview {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  display: none;
}

.er-reserve-inbox:not(.er-reserve-inbox--open) .er-reserve-inbox__preview {
  display: block;
}

.er-reserve-inbox--open .er-reserve-inbox__preview {
  display: none;
}

.er-reserve-inbox__preview-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  transition: background 0.15s ease;
}

.er-reserve-inbox__preview-link:hover {
  background: #f8f9ff;
}

.er-reserve-inbox__preview-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.er-reserve-inbox__preview-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: #4338ca;
  letter-spacing: 0.05em;
}

.er-reserve-inbox__preview-until {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--er-muted);
}

.er-reserve-inbox__body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.er-reserve-inbox:not(.er-reserve-inbox--open) .er-reserve-inbox__body {
  display: none;
}

.er-reserve-inbox__intro {
  margin: 12px 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.er-reserve-inbox__hint {
  margin: 0;
  padding: 10px 16px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #4338ca;
  background: #f8f9ff;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.er-reserve-inbox__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  background: #fff;
}

.er-reserve-inbox__filter-meta {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--er-muted);
  white-space: nowrap;
}

.er-reserve-inbox__filter-meta:not(:empty) {
  color: #4338ca;
}

.er-reserve-inbox__search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--er-edge);
  background: #f8f9ff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.er-reserve-inbox__search:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.er-reserve-inbox__search-icon {
  flex-shrink: 0;
  color: var(--er-muted);
}

.er-reserve-inbox__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 0.92rem;
  font-family: inherit;
  color: inherit;
}

.er-reserve-inbox__search input:focus {
  outline: none;
}

.er-reserve-stack {
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  gap: 0;
}

.er-reservations-hub__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.er-reservations-hub__title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hb-green-dark);
}

.er-reservations-hub__subtitle {
  margin: 0;
  color: var(--er-muted);
  font-size: 0.92rem;
}

.er-reservations-hub__badge {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 36px;
  text-align: center;
  flex-shrink: 0;
}

.er-reservations-hub__toolbar {
  margin-top: 14px;
}

.er-reservations-hub__hint {
  margin-top: 0;
}

.er-reservations-hub__groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.er-reservations-hub__empty {
  margin-top: 8px;
}

.er-reservations-event-group {
  border: 1px solid var(--er-edge);
  border-radius: 14px;
  overflow: hidden;
  background: #fafbff;
}

.er-reservations-event-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #eef2ff 0%, #f8f9ff 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.14);
}

.er-reservations-event-group__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.er-reservations-event-group__title a {
  color: var(--hb-green-dark);
  text-decoration: none;
}

.er-reservations-event-group__title a:hover {
  text-decoration: underline;
}

.er-reservations-event-group__when {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--er-muted);
}

.er-reservations-event-group__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.er-reservations-event-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.er-reservations-event-group .er-reserve-stack {
  background: #fff;
}

.er-reserve-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

.er-reserve-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.er-reserve-item:first-child {
  padding-top: 0;
}

.er-reserve-item__main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.er-reserve-item__code-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #c7d2fe;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.08);
}

.er-reserve-item__code-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--er-muted);
}

.er-reserve-item__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #312e81;
  line-height: 1.2;
}

.er-reserve-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.er-reserve-item__name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.3;
}

.er-reserve-item__name strong {
  font-weight: 700;
}

.er-reserve-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 0.82rem;
}

.er-reserve-item__meta-link {
  color: var(--hb-green-dark);
  text-decoration: none;
  font-weight: 600;
}

.er-reserve-item__meta-link:hover {
  text-decoration: underline;
}

.er-reserve-item__meta-sep {
  color: var(--er-muted);
}

.er-reserve-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.er-reserve-item__time {
  font-size: 0.75rem;
  color: var(--er-muted);
}

.er-reserve-item__confirm {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 168px;
}

.er-reserve-item__receipt .er-field--receipt {
  margin: 0;
}

.er-reserve-item__receipt .er-field-label {
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.er-reserve-item__receipt .er-split-fields--receipt {
  gap: 4px;
}

.er-reserve-item__receipt .er-split-part input {
  padding: 7px 8px;
  font-size: 0.85rem;
}

.er-reserve-item__submit {
  width: 100%;
  justify-content: center;
}

.er-reserve-item--highlight {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
  border-radius: 10px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.er-reserve-item--filtered-out {
  display: none !important;
}

.er-search--inbox {
  margin: 0 0 12px;
  max-width: 100%;
}

.er-reserve-inbox .er-guest-list--reserved {
  gap: 10px;
}

.er-guest-row--reserved {
  border-color: #c7d2fe;
  background: #f8f9ff;
}

.er-reserve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.er-reserve-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-end;
}

.er-field--inline {
  margin: 0;
  min-width: 120px;
}

.er-field--inline input {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.er-badge--platform {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.er-badge--reserved {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.er-badge--reserve-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  background: #fff;
  color: #312e81;
  border-color: #c7d2fe;
}

.er-search--reserve-code {
  margin: 0 0 12px;
  max-width: 320px;
}

.er-search--reserve-code input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.er-guest-card--highlight {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.er-reserve-code-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
  text-align: center;
}

.er-reserve-code-success__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hb-muted);
}

.er-reserve-code-success__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: #312e81;
}

.er-reserve-code-success__hint {
  font-size: 0.85rem;
}

.er-badge--pending {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

.er-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
}

.er-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.er-platform-readonly {
  margin: 0;
  font-weight: 700;
}

.er-guest-card--pending {
  border-color: #fdba74;
  background: #fffbf7;
}

.er-card--pending {
  border-color: #fdba74;
}

.er-guest-card--pending-edit {
  box-shadow: inset 3px 0 0 #fdba74;
}

.er-guest-pending-diff {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.er-guest-pending-diff__title {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c2410c;
}

.er-guest-pending-diff__list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--hb-text);
}

.er-guest-pending-comment {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.er-guest-pending-comment__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--hb-text);
}

.er-field textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 10px 12px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.er-field textarea:focus {
  outline: 2px solid var(--hb-green-mid);
  outline-offset: 1px;
  border-color: var(--hb-green);
}

.er-field--payment {
  flex: 1 1 220px;
  min-width: 200px;
}

@media (max-width: 860px) {
  .er-create-basics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .er-create-basics-grid .er-field--grow {
    grid-column: 1 / -1;
  }

  .er-create-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .er-create-basics-grid {
    grid-template-columns: 1fr;
  }

  .er-grid-2--compact {
    max-width: none;
  }
}

.er-event-when {
  color: var(--hb-green-dark);
  font-weight: 600;
}

.er-event-when--hero {
  margin: 4px 0 0;
  font-size: 1rem;
}

.er-event-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
}

.er-event-tag--plain {
  background: var(--hb-bg);
  color: var(--hb-muted);
  border: 1px solid var(--hb-border);
}

.er-event-tag--online {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.er-event-tag--offline {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.er-form--inline-toggle {
  margin-bottom: 12px;
}

.er-form--inline-toggle .er-field--inline {
  margin: 0;
}

.er-card--public-link .er-segments {
  max-width: 320px;
}

.er-public-link-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 24px;
  align-items: start;
}

.er-public-link-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.er-public-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.er-register-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e4ebe7;
  background: linear-gradient(180deg, #fafcfb 0%, #fff 100%);
  box-shadow: 0 2px 8px rgba(0, 80, 40, 0.06);
}

.er-register-qr__code {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef2ef;
}

.er-register-qr__code img,
.er-register-qr__code canvas {
  display: block;
  width: 168px !important;
  height: 168px !important;
}

@media (max-width: 720px) {
  .er-public-link-panel {
    grid-template-columns: 1fr;
  }

  .er-register-qr {
    max-width: 220px;
  }
}

.er-event-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.er-stats--single {
  grid-template-columns: 1fr;
  max-width: 140px;
}

.er-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .er-grid-2 { grid-template-columns: 1fr; }
  .er-form--inline { flex-direction: column; align-items: stretch; }
}

.er-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.er-field--grow { flex: 1; }

.er-field fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.er-field legend {
  padding: 0;
  margin-bottom: 6px;
}

.er-field--role .er-segments {
  margin-top: 0;
}

.er-segments--compact {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
}

.er-segments--compact .er-segment {
  flex: 0 1 auto;
  padding: 7px 14px;
  white-space: nowrap;
  min-height: 40px;
}

.er-field span,
.er-field legend {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hb-text);
}

.er-field input[type="text"],
.er-field input[type="password"],
.er-field input[type="email"],
.er-field input[type="tel"],
.er-field input[type="file"],
.er-field input[type="search"],
.er-field input[type="date"],
.er-field input[type="time"],
.er-field input[type="number"],
.er-field select,
.er-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-border);
  background: #fff;
  color: var(--er-text);
  font: inherit;
}

.er-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

.er-field input:focus,
.er-field textarea:focus {
  outline: none;
  border-color: var(--hb-green);
  box-shadow: 0 0 0 3px rgba(0, 150, 70, 0.15);
}

.er-segments {
  display: flex;
  gap: 8px;
}

.er-segment {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--hb-radius);
  border: 2px solid var(--hb-border);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  min-height: 44px;
  user-select: none;
}

.er-segment:has(input:checked) {
  border-color: var(--hb-green);
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
}

.er-segment input {
  accent-color: var(--hb-green);
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.er-btn {
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-text);
  background: #fff;
}

.er-btn:hover {
  border-color: #cdcdcd;
}

.er-btn--primary {
  font-family: var(--er-font);
  background: var(--hb-green);
  border-color: var(--hb-green-dark);
  color: #fff;
}

.er-btn--primary:hover {
  background: var(--hb-green-dark);
  border-color: var(--hb-green-dark);
}

.er-header .er-btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.er-header .er-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.er-btn--danger {
  background: #fff;
  border-color: var(--hb-red);
  color: var(--hb-red);
}

.er-btn--danger:hover {
  background: var(--hb-red);
  color: #fff;
}

.er-btn--ghost {
  background: transparent;
}

.er-btn--small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.er-flash {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  font-size: 0.85rem;
}

.er-flash--ok {
  background: var(--hb-green-light);
  border: 1px solid var(--hb-green-mid);
  color: var(--hb-green-dark);
}

.er-flash--err {
  background: #fde8eb;
  border: 1px solid #f5b8c0;
  color: #a80015;
}

.er-text-ok {
  color: var(--hb-green-dark);
}

.er-text-warn {
  color: #b45309;
}

.er-empty {
  margin: 0;
  color: var(--er-muted);
  font-size: 0.9rem;
}

.er-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.er-event-item {
  margin: 0;
}

.er-event-card {
  border: 1px solid var(--er-edge);
  border-radius: var(--hb-radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.er-event-card:has(.er-event-link:hover) {
  border-color: var(--hb-green);
  box-shadow: 0 2px 8px rgba(0, 150, 70, 0.1);
}

.er-event-card--archived {
  border-style: dashed;
  border-color: #c9d5ce;
  background: #fafcfb;
}

.er-event-card--archived .er-event-card__main {
  padding: 14px 16px;
}

.er-event-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--er-text);
  background: #fff;
  transition: background 0.12s ease;
}

.er-event-link:hover {
  background: #fafffb;
  text-decoration: none;
}

.er-event-card__admin {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px 10px;
  border-top: 1px solid var(--er-edge);
  background: var(--hb-bg);
}

.er-event-card__admin-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hb-green-dark);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.er-event-card__admin-link:hover {
  background: rgba(0, 150, 70, 0.08);
  text-decoration: none;
}

.er-event-card__admin-link--danger {
  color: var(--hb-red);
}

.er-event-card__admin-link--danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.er-event-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--hb-text);
  line-height: 1.25;
}

.er-event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.er-event-card-meta__when {
  margin: 0;
  min-height: 2.6em;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--er-muted);
}

.er-event-card-meta__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.er-event-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.er-event-stats--simple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.er-event-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 10px;
  background: var(--hb-bg);
  border: 1px solid var(--er-edge);
  text-align: center;
}

.er-event-stat dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--er-muted);
  line-height: 1.2;
}

.er-event-stat dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--hb-green-dark);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .er-event-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .er-event-card__admin {
    justify-content: stretch;
  }

  .er-event-card__admin-link {
    flex: 1;
    text-align: center;
  }
}

.er-event-meta {
  font-size: 0.8rem;
  color: var(--er-muted);
}

.er-inline-form { margin: 0; }

.er-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.er-list-head__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hb-text);
}

.er-card--events > .er-list-head {
  margin-top: -2px;
}

.er-page-back {
  margin: 0 0 12px;
}

.er-page-back__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hb-green-dark);
  text-decoration: none;
}

.er-page-back__link:hover {
  text-decoration: underline;
}

.er-page-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hb-text);
}

.er-empty-actions {
  margin-top: 12px;
  text-align: center;
}

.er-list-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.er-btn--print {
  border-color: var(--hb-green);
  color: var(--hb-green-dark);
}

.er-list-head .er-h2 {
  margin: 0;
}

.er-card-intro {
  margin: -4px 0 14px;
}

.er-logo-panel {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 560px) {
  .er-logo-panel { grid-template-columns: 1fr; }
}

.er-logo-preview {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: var(--hb-radius);
  border: 1px dashed var(--hb-border);
  background: var(--hb-bg);
}

.er-logo-preview--header {
  justify-items: start;
  padding: 14px 16px;
  background: var(--hb-green);
  border: 1px solid var(--hb-green-dark);
  border-style: solid;
}

.er-logo-preview--header .er-logo-preview-img {
  object-position: left center;
}

.er-branding-hint {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-border);
  background: #fff;
  font-size: 0.88rem;
}

.er-logo-preview-img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.er-logo-preview-empty {
  font-size: 0.8rem;
  color: var(--er-muted);
  text-align: center;
}

.er-favicon-preview {
  min-height: 88px;
  max-width: 120px;
}

.er-favicon-preview-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.er-logo-panel--favicon {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.er-logo-remove {
  margin-top: 8px;
}

.er-event-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.er-event-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.er-event-tag--capacity {
  background: #eef6ff;
  color: #1a5a9e;
  border-color: #c5ddf5;
}

.er-card--report {
  margin-top: 4px;
}

.er-stats--report {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.er-field--deposit {
  margin-top: 10px;
}

.er-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.er-check input {
  margin-top: 3px;
}

.er-event-hero .er-back {
  margin: 0 0 6px;
}

.er-card--guest-entry {
  margin-top: 4px;
}

/* Gast-Formular — gruppierte Blöcke statt langer Einzelliste */
.er-form--guest {
  max-width: 640px;
}

.er-guest-form__layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.er-guest-form__block {
  padding: 16px 18px;
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fafcfb 0%, #fff 100%);
}

.er-guest-form__heading {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hb-green-dark);
}

.er-guest-form__names {
  margin-bottom: 10px;
}

.er-guest-form__contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.er-guest-form__contact .er-field--contact {
  margin: 0;
}

.er-guest-form__contact .er-field--contact > span,
.er-guest-form__contact .er-field--contact > .er-field-label {
  min-height: 2.35em;
  display: flex;
  align-items: flex-end;
}

.er-phone-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.er-phone-inputs input {
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-border);
  background: #fff;
  color: var(--er-text);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.er-phone-inputs input:focus {
  outline: none;
  border-color: var(--hb-green);
  box-shadow: 0 0 0 3px rgba(0, 150, 70, 0.15);
}

.er-phone-inputs input[name="phone_prefix"] {
  flex: 0 0 72px;
  width: 72px;
}

.er-phone-inputs input[name="phone_number"] {
  flex: 1 1 0;
}

.er-phone-inputs .er-split-sep {
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  line-height: 1;
  color: var(--er-muted);
  font-weight: 700;
}

.er-guest-form__hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--er-muted);
}

.er-guest-form__hint--plate {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--hb-green-dark);
}

.er-arrival-card {
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid #c5e6d4;
  border-left: 4px solid var(--hb-green);
  background: linear-gradient(165deg, #f3faf6 0%, #fff 55%);
  box-shadow: 0 2px 8px rgba(0, 80, 40, 0.06);
}

.er-arrival-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.er-arrival-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: var(--hb-green-dark);
  background: #fff;
  border: 1px solid var(--hb-green-mid);
  box-shadow: 0 1px 2px rgba(0, 80, 40, 0.06);
}

.er-arrival-card__icon .er-icon-car-front {
  display: block;
  width: 40px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.er-arrival-card__intro {
  min-width: 0;
}

.er-arrival-card__title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--hb-green-dark);
}

.er-arrival-card__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--hb-muted);
}

.er-arrival-card__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.er-arrival-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid var(--hb-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.er-arrival-choice:hover {
  border-color: var(--hb-green-mid);
}

.er-arrival-choice:has(input:checked) {
  border-color: var(--hb-green);
  background: var(--hb-green-light);
  box-shadow: 0 2px 8px rgba(0, 150, 70, 0.1);
}

.er-arrival-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.er-arrival-choice__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hb-text);
  text-align: center;
}

.er-arrival-card__plate {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--hb-green-mid);
  border-radius: 12px;
  background: #fff;
}

.er-arrival-card__plate .er-field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hb-green-dark);
}

.er-form--guest .er-arrival-card .er-split-fields--plate {
  max-width: none;
}

@media (max-width: 480px) {
  .er-arrival-card__choices {
    grid-template-columns: 1fr;
  }
}

.er-guest-form__receipt {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d4e8dc;
  background: #fff;
}

.er-guest-form__receipt--direct {
  margin: 0 0 4px;
  border: 1px solid #9fd4b3;
  border-left: 4px solid var(--hb-green);
  background: linear-gradient(180deg, #f0faf4 0%, #fff 100%);
  box-shadow: 0 1px 0 rgba(0, 150, 70, 0.08);
}

.er-guest-form__receipt-lead {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--hb-green-dark);
}

.er-guest-form__receipt .er-field--receipt {
  margin: 0;
}

.er-guest-form__receipt .er-field-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--hb-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.er-guest-form__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.er-guest-form__row {
  display: grid;
  grid-template-columns: minmax(108px, 132px) 1fr;
  gap: 10px 14px;
  align-items: center;
}

.er-guest-form__row-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hb-text);
  line-height: 1.3;
}

.er-guest-form__row-control {
  min-width: 0;
}

.er-guest-form__option-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  grid-template-columns: minmax(108px, 132px) 1fr;
  gap: 10px 14px;
  align-items: center;
}

.er-guest-form__option-legend {
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hb-text);
  line-height: 1.3;
}

.er-guest-form__option-fieldset > .er-segments {
  min-width: 0;
}

.er-guest-form__nested {
  margin-top: -2px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed var(--hb-border);
}

.er-guest-form__nested--check {
  padding-top: 10px;
  padding-bottom: 10px;
}

.er-form--guest .er-split-fields--phone,
.er-form--guest .er-split-fields--plate {
  max-width: none;
}

.er-form--guest .er-split-fields--phone .er-split-part--prefix {
  flex: 0 0 72px;
}

.er-form--guest .er-split-fields--phone .er-split-part--grow {
  flex: 1 1 0;
  max-width: none;
}

.er-form--guest .er-split-fields--plate {
  max-width: 320px;
}

.er-form--guest .er-field--receipt {
  margin: 0;
}

.er-form--guest .er-split-fields--receipt {
  max-width: 220px;
}

@media (max-width: 640px) {
  .er-form--guest {
    max-width: none;
  }

  .er-guest-form__contact {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .er-guest-form__contact .er-field--contact > span,
  .er-guest-form__contact .er-field--contact > .er-field-label {
    min-height: 0;
    display: block;
  }

  .er-guest-form__row,
  .er-guest-form__option-fieldset {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .er-form--guest .er-split-fields--plate {
    max-width: none;
  }
}

.er-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.er-stat {
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--er-edge);
  background: var(--hb-bg);
  text-align: center;
}

.er-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--hb-text);
}

.er-stat-label {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--er-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.er-stat--ok .er-stat-value { color: var(--hb-green); }
.er-stat--warn .er-stat-value { color: var(--hb-red); }

.er-search input {
  width: min(100%, 240px);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--hb-border);
  background: #fff;
  color: var(--er-text);
  font: inherit;
  font-size: 0.85rem;
}

.er-search input:focus {
  outline: none;
  border-color: var(--hb-green);
}

.er-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.er-guest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.er-guest-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--er-edge);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.er-guest-card:nth-child(even) {
  background: #fafafa;
}

.er-guest-card--reserved {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

.er-guest-card--attended {
  border-color: #b8dfc4;
  background: linear-gradient(180deg, #f4fbf6 0%, #fff 100%);
}

.er-guest-card__main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.er-guest-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.er-guest-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.er-guest-card__name {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: inherit;
  font-weight: inherit;
}

.er-guest-card__name strong {
  font-size: 1rem;
}

.er-guest-card__name span {
  font-size: 0.92rem;
  color: var(--er-muted);
  font-weight: 500;
}

.er-guest-card__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.er-guest-contact {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
  font-size: 0.84rem;
  color: var(--hb-green-dark);
  text-decoration: none;
  font-weight: 600;
}

.er-guest-contact:hover {
  color: var(--hb-green);
  text-decoration: underline;
}

.er-guest-contact__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hb-muted);
}

.er-guest-contact--email {
  color: #3730a3;
}

.er-guest-contact--email:hover {
  color: #312e81;
}

.er-guest-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.er-guest-card__audit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hb-muted);
  line-height: 1.45;
}

.er-guest-card__audit-edit {
  color: var(--hb-green-dark);
}

.er-guest-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  width: 11.5rem;
  flex-shrink: 0;
}

.er-guest-card__actions .er-inline-form,
.er-guest-card__actions .er-attendance-form {
  display: block;
  width: 100%;
  margin: 0;
}

.er-guest-card__actions .er-inline-form .er-btn,
.er-guest-card__actions .er-attendance-form .er-btn,
.er-guest-card__actions > a.er-btn {
  width: 100%;
  box-sizing: border-box;
}

.er-guest-card__deposit-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.er-btn--attended {
  border-color: var(--hb-green);
  color: var(--hb-green);
}

.er-btn--deposit-refund {
  color: #1a6b3a;
}

.er-btn--deposit-forfeit {
  color: var(--hb-red);
}

.er-guest-card__action-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.er-guest-card__action-row .er-inline-form,
.er-guest-card__action-row > a.er-btn {
  width: 100%;
}

.er-guest-card__action-row .er-inline-form .er-btn {
  width: 100%;
  box-sizing: border-box;
}

.er-btn--icon {
  min-width: 36px;
  padding-left: 10px;
  padding-right: 10px;
}

.er-badge--timer {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.er-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--hb-muted);
  font-weight: 500;
}

.er-guest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--er-edge);
  background: #fff;
}

.er-guest-row:nth-child(even) {
  background: #fafafa;
}

.er-guest-main {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  min-width: 0;
}

.er-guest-nr {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--hb-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.er-guest-name {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}

.er-guest-name strong {
  font-size: 0.95rem;
}

.er-guest-name span {
  font-size: 0.88rem;
  color: var(--er-muted);
}

.er-guest-registrar {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hb-muted);
}

.er-guest-registrar--edit {
  color: var(--hb-green-dark);
}

.er-guest-audit {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  background: var(--hb-bg);
  border: 1px solid var(--hb-border);
  font-size: 0.8rem;
  line-height: 1.5;
}

.er-guest-audit p {
  margin: 0;
}

.er-guest-audit p + p {
  margin-top: 4px;
}

.er-guest-phone {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--hb-green);
  text-decoration: none;
  font-weight: 600;
}

.er-guest-phone:hover {
  color: var(--hb-green-dark);
}

.er-guest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.er-guest-receipt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--er-text);
  min-width: 3rem;
  text-align: right;
}

.er-guest-receipt--muted {
  color: var(--er-muted);
  font-weight: 500;
}

.er-field--conditional[hidden] {
  display: none !important;
}

.er-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hb-text);
  margin-bottom: 6px;
}

/* Getrennte Eingabefelder (Telefon, Kennzeichen) */
.er-split-fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.er-split-part {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.er-split-part--grow {
  flex: 1 1 160px;
}

.er-split-part--prefix {
  flex: 0 0 96px;
}

.er-split-part--receipt {
  flex: 0 0 72px;
  max-width: 88px;
}

.er-split-fields--receipt {
  max-width: 240px;
}

.er-field--receipt-inline {
  margin: 0;
  min-width: 0;
}

.er-field--receipt-inline .er-field-label {
  margin-bottom: 4px;
}

.er-reserve-confirm .er-split-fields--receipt {
  max-width: none;
}

.er-reserve-confirm .er-split-part input {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.er-split-part-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hb-muted);
}

.er-split-part input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-border);
  background: #fff;
  color: var(--er-text);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.er-split-part input:focus {
  outline: none;
  border-color: var(--hb-green);
  box-shadow: 0 0 0 3px rgba(0, 150, 70, 0.15);
}

.er-split-part--plate input {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.er-split-sep {
  flex-shrink: 0;
  padding-bottom: 11px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hb-muted);
}

@media (max-width: 420px) {
  .er-split-fields {
    flex-direction: column;
    align-items: stretch;
  }

  .er-split-sep {
    display: none;
  }

  .er-split-part--prefix {
    flex: 1 1 auto;
  }
}

.er-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--hb-bg);
  border: 1px solid var(--hb-border);
}

.er-badge--ok {
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
  border-color: var(--hb-green-mid);
}

.er-badge--attended {
  background: #e8f8ed;
  color: #166534;
  border-color: #86efac;
}

.er-badge--absent {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.er-badge--deposit-held {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.er-badge--deposit-refund {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.er-badge--deposit-forfeit {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.er-badge--plate {
  background: var(--hb-green-light);
  color: var(--hb-green-dark);
  border-color: var(--hb-green-mid);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.er-badge--warn {
  background: #fff3e5;
  color: #b35a00;
  border-color: #ffd9a8;
}

.er-empty--filter {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .er-user-card__meta {
    grid-template-columns: 1fr;
  }

  .er-header-user {
    max-width: min(180px, 38vw);
  }

  .er-user-card__footer {
    justify-content: flex-start;
  }

  .er-guest-card {
    grid-template-columns: 1fr;
  }

  .er-guest-card__actions {
    align-items: stretch;
    width: 100%;
    min-width: 0;
    padding-left: 40px;
  }

  .er-reserve-confirm {
    justify-content: flex-start;
  }

  .er-reserve-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .er-reserve-item__main {
    width: 100%;
  }

  .er-reserve-item__confirm {
    width: 100%;
    min-width: 0;
    padding-left: 86px;
  }

  .er-guest-row {
    grid-template-columns: 1fr;
  }

  .er-guest-meta {
    justify-content: flex-start;
    padding-left: 40px;
  }

  .er-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  .er-search input {
    width: 100%;
  }
}

/* —— QR Generator —— */
.er-field--password .er-field__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
  color: var(--hb-text);
}

.er-field--password input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-border);
  font: inherit;
  background: #fff;
}

.er-field--password input[type="password"]:focus {
  outline: none;
  border-color: var(--hb-green);
  box-shadow: 0 0 0 3px rgba(0, 150, 70, 0.12);
}

.er-qr-saved-list--single {
  margin: 0;
}

.er-qr-gen-kuerzel {
  margin: -4px 0 12px;
  font-size: 0.82rem;
  color: var(--er-muted);
}

.er-qr-gen-kuerzel code {
  font-size: 0.82rem;
  color: var(--hb-green-dark);
  background: var(--hb-green-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.er-qr-gen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: start;
}

.er-qr-gen-list-card .er-list-head {
  margin-bottom: 10px;
}

.er-qr-saved-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(72vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.er-qr-saved-letter {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hb-green-dark);
}

.er-qr-saved-group .er-qr-saved-list {
  margin: 0;
}

.er-qr-saved-item {
  grid-template-columns: 64px 1fr auto;
}

.er-qr-saved-item__preview svg,
.er-qr-saved-item__preview img,
.er-qr-saved-item__preview canvas {
  width: 56px !important;
  height: 56px !important;
}

.er-qr-saved-empty {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .er-qr-gen-layout {
    grid-template-columns: 1fr;
  }
}

.er-qr-gen-preview-wrap {
  margin: 8px 0 4px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e4ebe7;
  background: linear-gradient(180deg, #fafcfb 0%, #fff 100%);
  text-align: center;
}

.er-qr-gen-preview-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #4a5c52;
}

.er-qr-gen-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.er-qr-gen-preview svg,
.er-qr-gen-preview img,
.er-qr-gen-preview canvas {
  display: block;
  max-width: 200px;
  height: auto;
}

.er-qr-gen-preview-meta {
  margin: 10px 0 0;
  font-size: 0.78rem;
}

.er-qr-saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.er-qr-saved-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e8eeea;
  border-radius: 12px;
  background: #fff;
}

.er-qr-saved-item__preview {
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 8px;
  background: #fafcfb;
  border: 1px solid #eef2ef;
}

.er-qr-saved-item__preview svg,
.er-qr-saved-item__preview img,
.er-qr-saved-item__preview canvas {
  width: 72px !important;
  height: 72px !important;
  display: block;
}

.er-qr-saved-item__title {
  font-weight: 650;
  color: #1c2c22;
  text-decoration: none;
}

.er-qr-saved-item__title:hover {
  color: #2d6a4f;
  text-decoration: underline;
}

.er-qr-saved-item__kuerzel {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.er-qr-saved-item__kuerzel code {
  background: #f0f5f2;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.er-qr-saved-item__text {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #6b7f74;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.er-qr-saved-item__meta {
  margin: 4px 0 0;
  font-size: 0.72rem;
}

.er-qr-saved-item__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.er-btn--danger-text {
  color: #b42318 !important;
}

@media (max-width: 640px) {
  .er-qr-saved-item {
    grid-template-columns: 72px 1fr;
  }

  .er-qr-saved-item__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
