/* 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: 180px;
  --er-header-max: 1180px;
  --er-layout-max: 920px;
  --er-layout-pad: 20px;
  --er-sidebar-w: 260px;
  --er-sidebar-pad-x: 14px;
  --er-sidebar-inner-w: calc(var(--er-sidebar-w) - (2 * var(--er-sidebar-pad-x)));
}

* { 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);
}

.er-header--launchpad {
  /* Launchpad-Panel absolut unter dem Header verankern */
  position: sticky;
}

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

.er-header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 16px 14px 12px;
  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-header-brand-col {
    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.er-nav--slim {
    overflow: visible;
    flex-wrap: wrap;
    row-gap: 6px;
  }

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

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

@media (min-width: 768px) {
  .er-header--with-sidebar .er-header-inner {
    grid-template-columns: var(--er-sidebar-w) minmax(0, 1fr) minmax(0, auto);
    padding: 0;
    gap: 0;
    align-items: center;
    min-height: calc(var(--er-header-h) - 3px);
  }

  .er-header--with-sidebar .er-header-brand-col {
    width: var(--er-sidebar-w);
    min-width: var(--er-sidebar-w);
    max-width: var(--er-sidebar-w);
    height: calc(var(--er-header-h) - 3px);
    padding: 0 var(--er-sidebar-pad-x);
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .er-header--with-sidebar .er-brand {
    width: auto;
    max-width: 100%;
    padding: 0;
    margin: 0;
    min-height: var(--er-header-logo-h);
  }

  .er-header--with-sidebar .er-brand-logo-wrap {
    flex: 0 0 auto;
    width: var(--er-header-logo-max-w);
    max-width: var(--er-header-logo-max-w);
    height: var(--er-header-logo-h);
    min-height: var(--er-header-logo-h);
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    justify-content: flex-start;
    overflow: hidden;
  }

  .er-header--with-sidebar .er-brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: var(--er-header-logo-h);
    max-height: var(--er-header-logo-h);
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
  }

  .er-header--with-sidebar .er-header-center {
    align-self: center;
    padding: 0 0 0 16px;
    min-height: calc(var(--er-header-h) - 3px);
    display: flex;
    align-items: center;
  }

  .er-header--with-sidebar .er-header-actions {
    align-self: center;
    padding: 0 16px 0 0;
    min-height: calc(var(--er-header-h) - 3px);
    display: flex;
    align-items: center;
  }
}

@media (max-width: 599px) {
  .er-header-brand-col {
    grid-area: brand;
  }
}

.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-nav--grouped {
  gap: 8px 12px;
}

.er-nav--slim {
  gap: 6px;
  justify-content: flex-start;
  overflow: visible;
}

.er-header-center:has(.er-nav--categories) {
  overflow: visible;
}

.er-nav-cat {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.er-nav-cat--open {
  z-index: 60;
}

.er-nav-cat__chev {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-left: 2px;
  transition: transform 0.18s ease;
}

.er-nav-cat--open .er-nav-cat__chev {
  transform: rotate(180deg);
}

/* Desk Launchpad — full-width mega panel under header */
.er-header--launchpad {
  overflow: visible;
}

.er-nav-launchpad {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 130;
  background: #f7fbf8;
  border-bottom: 3px solid var(--hb-green-dark);
  box-shadow: 0 18px 40px rgba(0, 40, 20, 0.18);
  color: #1a2b22;
  max-height: min(72vh, 560px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  animation: er-launchpad-in 0.18s ease;
}

.er-nav-launchpad[hidden] {
  display: none !important;
}

@keyframes er-launchpad-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.er-nav-launchpad__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 22px;
  box-sizing: border-box;
}

.er-nav-launchpad__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.er-nav-launchpad__kicker {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6a60;
}

.er-nav-launchpad__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #005028;
  line-height: 1.2;
}

.er-nav-launchpad__desc {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #5a6a60;
  line-height: 1.4;
}

.er-nav-launchpad__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 80, 40, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #005028;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.er-nav-launchpad__close:hover {
  background: #eef7f1;
  border-color: rgba(0, 150, 70, 0.35);
}

.er-nav-launchpad__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.er-nav-launchpad__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 132px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 80, 40, 0.12);
  background: linear-gradient(165deg, #ffffff 0%, #f7fbf8 55%, #eef7f1 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 80, 40, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: hidden;
}

.er-nav-launchpad__tile::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--hb-green);
}

.er-nav-launchpad__tile:hover {
  border-color: var(--hb-green);
  box-shadow: 0 8px 22px rgba(0, 150, 70, 0.12);
  transform: translateY(-2px);
}

.er-nav-launchpad__tile--current {
  border-color: rgba(0, 150, 70, 0.45);
  background: linear-gradient(165deg, #ffffff 0%, #e8f5ee 100%);
}

.er-nav-launchpad__tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.er-nav-launchpad__icon {
  width: 44px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 150, 70, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.er-nav-launchpad__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.er-nav-launchpad__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #005028;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.er-nav-launchpad__badge--hot {
  background: #ff3b30;
}

.er-nav-launchpad__tile-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #005028;
  line-height: 1.2;
}

.er-nav-launchpad__tile-desc {
  margin: 0;
  flex: 1;
  font-size: 0.8rem;
  color: #5a6a60;
  line-height: 1.4;
}

.er-nav-launchpad__tile-cta {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hb-green);
}

body.er-nav-launchpad-open {
  overflow: hidden;
}

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

@media (max-width: 599px) {
  .er-nav-launchpad {
    position: fixed;
    top: var(--er-header-h-mobile, 64px);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    border-bottom: none;
  }

  .er-nav-launchpad__inner {
    padding: 14px 14px 28px;
  }

  .er-nav-launchpad__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* legacy inline group (falls noch irgendwo) */
.er-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.er-nav-group__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  padding: 0 2px;
}

.er-nav-group__links {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

@media (max-width: 900px) {
  .er-nav-group {
    padding: 2px;
    background: transparent;
    border: none;
  }

  .er-nav-group__label {
    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 {
    width: 140px;
    max-width: 140px;
  }
}

@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;
  overflow: hidden;
}

.er-user-avatar--photo {
  background: #e8f0ec;
  padding: 0;
}

.er-user-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.er-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--hb-green-mid);
  margin: 0 0 14px;
}

.er-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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;
  overflow: hidden;
}

.er-header-user__avatar--photo {
  padding: 0;
  background: #fff;
}

.er-header-user__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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__role-form {
  margin-right: auto;
}

.er-user-card__role {
  display: block;
  margin: 0;
}

.er-user-card__role-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 9.5rem;
  max-width: 100%;
  padding: 0.35rem 1.85rem 0.35rem 0.7rem;
  border: 1px solid rgba(0, 80, 40, 0.22);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23005028' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3 0 2.3z'/%3E%3C/svg%3E") no-repeat right 0.65rem center / 10px;
  color: #005028;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.er-user-card__role-select:hover,
.er-user-card__role-select:focus {
  border-color: rgba(0, 80, 40, 0.45);
  outline: none;
}

.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-role-badge--owner {
  border-color: #c9a227;
  background: #fff8e1;
  color: #6b4f00;
}

.er-header .er-role-badge--owner.er-role-badge--header {
  border-color: #c9a227;
}

.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;
  margin-left: 0;
}

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

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

.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-head__intro {
  margin: 6px 0 0;
  max-width: 52ch;
  font-size: 0.92rem;
}

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

/* Bereiche sitzen in der linken Nav — doppelte Chip-Leiste ausblenden */
.er-desk-sidebar ~ .er-settings .er-settings-nav {
  display: none;
}

.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-flash--inline {
  margin: 0 0 14px;
}

.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;
}

/* Einheitliches Zurück zum Desk (Tools = gleiches Label wie Sidebar) */
.er-desk-back {
  margin: 0 0 16px;
}

.er-desk-back__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hb-green-dark);
  background: #eef7f1;
  border: 1px solid rgba(0, 80, 40, 0.1);
  text-decoration: none;
  line-height: 1.3;
}

.er-desk-back__link:hover {
  background: #e5f6ec;
  border-color: rgba(0, 150, 70, 0.28);
  color: var(--hb-green-dark);
  text-decoration: none;
}

/* Alt: Desk / Modul — bleibt als Alias falls noch Klassen im Markup */
.er-desk-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 16px;
}

.er-desk-crumb__desk {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--hb-green-dark);
  background: #eef7f1;
  border: 1px solid rgba(0, 80, 40, 0.1);
  text-decoration: none;
}

.er-desk-crumb__desk:hover {
  background: #e5f6ec;
  border-color: rgba(0, 150, 70, 0.28);
  text-decoration: none;
}

.er-desk-crumb__sep,
.er-desk-crumb__current {
  display: none;
}

.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;
  }
}

/* —— Hagebaumarkt Desk —— */
.er-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
}

.er-brand-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.er-brand-sub {
  font-size: 0.68rem;
  opacity: 0.88;
}

.er-header-center {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.er-desk-sidebar {
  position: fixed;
  top: var(--er-header-h-mobile);
  left: 0;
  bottom: 0;
  width: var(--er-sidebar-w, 220px);
  padding: 18px var(--er-sidebar-pad-x) 24px;
  border-right: 1px solid var(--hb-border);
  background: var(--hb-surface);
  overflow-y: auto;
  z-index: 8;
}

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

.er-desk-sidebar__title {
  margin: 0 0 12px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

.er-desk-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.er-desk-sidebar__group {
  margin: 14px 8px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

.er-desk-sidebar__group:first-child {
  margin-top: 0;
}

/* Vermietung: Kategorien Tagesgeschäft / Verwaltung (Modul-Titel nur oben in der Top-Nav) */
.er-desk-sidebar--vermietung {
  background: var(--hb-surface);
}

.er-desk-sidebar--vermietung .er-desk-sidebar__nav {
  gap: 12px;
}

.er-desk-sidebar--vermietung .er-desk-sidebar__title {
  display: inline-flex;
  align-items: center;
  margin: 0 0 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: #0f4f7a;
  background: #e8f2f9;
  border: 1px solid #b7d3e8;
}

.er-desk-sidebar--vermietung .er-desk-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.er-desk-sidebar--vermietung .er-desk-sidebar__section--day {
  background: #fffbf2;
  border-color: #f0e0b8;
}

.er-desk-sidebar--vermietung .er-desk-sidebar__section--admin {
  background: #f5f7f9;
  border-color: #dde3ea;
}

.er-desk-sidebar--vermietung .er-desk-sidebar__group {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 2px 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
}

.er-desk-sidebar--vermietung .er-desk-sidebar__group--day {
  color: #7a5200;
  background: #ffe8a3;
  border: 1px solid #e6b422;
}

.er-desk-sidebar--vermietung .er-desk-sidebar__group--admin {
  color: #334155;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.er-desk-sidebar--vermietung .er-desk-sidebar__link:hover {
  background: rgba(0, 150, 70, 0.08);
  color: var(--hb-green-dark);
}

.er-desk-sidebar--vermietung .er-desk-sidebar__link--active {
  background: rgba(0, 150, 70, 0.12);
  color: var(--hb-green-dark);
}

.er-desk-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--hb-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.er-desk-sidebar__link:hover {
  background: rgba(0, 150, 70, 0.08);
  color: var(--hb-green-dark);
}

.er-desk-sidebar__link--active {
  background: rgba(0, 150, 70, 0.12);
  color: var(--hb-green-dark);
}

.er-desk-sidebar__link--desk {
  margin-bottom: 8px;
  color: var(--hb-green-dark);
  background: #eef7f1;
  border: 1px solid rgba(0, 80, 40, 0.1);
}

.er-desk-sidebar__link--desk:hover {
  background: #e5f6ec;
  border-color: rgba(0, 150, 70, 0.28);
  color: var(--hb-green-dark);
}

.er-desk-sidebar--vermietung .er-desk-sidebar__link--desk {
  margin-bottom: 10px;
}

.er-desk-sidebar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.er-desk-sidebar__badge--hot {
  background: var(--hb-red);
  color: #fff;
}

.er-desk-sidebar ~ .er-main,
.er-desk-sidebar ~ .hv-main {
  margin-left: var(--er-sidebar-w, 220px);
  max-width: min(var(--er-layout-max), calc(100vw - var(--er-sidebar-w, 220px) - (var(--er-layout-pad) * 2)));
}

@media (max-width: 767px) {
  .er-desk-sidebar {
    position: static;
    width: 100%;
    bottom: auto;
    padding: 10px var(--er-layout-pad);
    border-right: none;
    border-bottom: 1px solid var(--hb-border);
  }

  .er-desk-sidebar__title {
    display: none;
  }

  .er-desk-sidebar__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .er-desk-sidebar__nav::-webkit-scrollbar {
    display: none;
  }

  .er-desk-sidebar__link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid var(--hb-border);
    background: #fff;
  }

  .er-desk-sidebar__link--active {
    border-color: var(--hb-green);
  }

  .er-desk-sidebar ~ .er-main,
  .er-desk-sidebar ~ .hv-main {
    margin-left: 0;
    max-width: var(--er-layout-max);
  }
}

.er-nav--sub .er-nav-link {
  font-size: 0.82rem;
  opacity: 0.95;
}

.er-desk-hero {
  margin-bottom: 1.25rem;
  padding: 1.45rem 1.5rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(165deg, #f7fcf9 0%, #ffffff 58%);
  border: 1px solid rgba(0, 80, 40, 0.1);
  box-shadow: 0 8px 28px rgba(0, 50, 25, 0.05);
}

.er-desk-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

.er-desk-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #005028;
}

.er-desk-welcome {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: #0f2418;
  letter-spacing: -0.01em;
}

.er-desk-lead {
  margin: 0 0 1rem;
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #4a5c52;
}

.er-desk-lead strong {
  color: #005028;
  font-weight: 700;
}

.er-desk-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #005028;
  font-weight: 700;
  background: #e5f6ec;
}

.er-desk-group {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(0, 80, 40, 0.12);
  border-radius: 16px;
  background: #fff;
}

.er-desk-group--marketing {
  background: linear-gradient(180deg, #f7fcf9 0%, #ffffff 48%);
}

.er-desk-group--tools {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 48%);
}

.er-desk-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 0.95rem;
}

.er-desk-group__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #66776c;
}

.er-desk-group__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #005028;
}

.er-desk-group__desc {
  margin: 0.25rem 0 0;
  max-width: 52ch;
  color: #5a6a60;
  font-size: 0.92rem;
}

.er-desk-group__count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #005028;
  background: #e5f6ec;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.er-desk-grid {
  display: grid;
  /* Immer Kachelbreite wie bei 4 Spalten — auch bei 1–3 Modulen */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

@media (max-width: 599px) {
  .er-desk-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.er-desk-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  background:
    linear-gradient(165deg, #ffffff 0%, #f7fbf8 55%, #eef7f1 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 80, 40, 0.06);
  min-height: 220px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.er-desk-tile::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--hb-green);
  opacity: 0.85;
}

.er-desk-tile:hover {
  border-color: var(--hb-green);
  box-shadow: 0 10px 28px rgba(0, 150, 70, 0.14);
  transform: translateY(-2px);
}

.er-desk-tile--soon {
  opacity: 0.72;
  background: #fafafa;
}

.er-desk-tile__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.2rem -0.2rem 0.45rem auto;
  width: 118px;
  height: 78px;
  border-radius: 12px;
  background: rgba(0, 150, 70, 0.06);
}

.er-desk-tile__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.er-desk-tile--vermietung .er-desk-tile__visual {
  width: 148px;
  height: 72px;
  background: transparent;
  box-shadow: none;
}

.er-desk-tile--vermietung .er-desk-tile__visual img {
  object-fit: contain;
  object-position: center;
  transform: none;
}

.er-desk-tile--qr .er-desk-tile__visual {
  background: #f7f3e8;
}

.er-desk-tile--events .er-desk-tile__visual {
  background: #e8f5ee;
}

.er-desk-tile__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

.er-desk-tile-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--hb-green-dark);
}

.er-desk-tile-desc {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--hb-muted);
  line-height: 1.5;
}

.er-desk-tile-cta,
.er-desk-tile-badge {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hb-green);
}

.er-desk-tile-badge {
  color: var(--hb-muted);
}

.er-desk-tile--events {
  background:
    linear-gradient(165deg, #ffffff 0%, #f3faf6 50%, #e5f4eb 100%);
}

.er-desk-tile--events::before {
  background: #009646;
}

.er-desk-tile--events .er-desk-tile__eyebrow {
  color: #007a3d;
}

.er-desk-tile--vermietung {
  background:
    linear-gradient(165deg, #ffffff 0%, #f5f9fc 45%, #e8f1f8 100%);
}

.er-desk-tile--vermietung::before {
  background: #1a6fa8;
}

.er-desk-tile--vermietung .er-desk-tile__eyebrow {
  color: #1a6fa8;
}

.er-desk-tile--qr {
  background:
    linear-gradient(165deg, #ffffff 0%, #faf8f2 50%, #f3efe4 100%);
}

.er-desk-tile--qr::before {
  background: #b8860b;
}

.er-desk-tile--plakate {
  background:
    linear-gradient(165deg, #ffffff 0%, #f4f9f6 50%, #e8f3ec 100%);
}

.er-desk-tile--plakate::before {
  background: #009646;
}

.er-desk-tile--plakate .er-desk-tile__visual {
  background: #e8f5ee;
}

.er-desk-tile--plakate .er-desk-tile__eyebrow {
  color: #007a3d;
}

.er-desk-tile--spannenrechner {
  background:
    linear-gradient(165deg, #ffffff 0%, #f4faf7 50%, #e6f4ec 100%);
}

.er-desk-tile--spannenrechner::before {
  background: #007a3d;
}

.er-desk-tile--spannenrechner .er-desk-tile__visual {
  background: #e5f6ec;
}

.er-desk-tile--auslieferung {
  background:
    linear-gradient(165deg, #ffffff 0%, #f5f8fc 50%, #e8eef8 100%);
}

.er-desk-tile--auslieferung::before {
  background: #1b4f9c;
}

.er-desk-tile--auslieferung .er-desk-tile__visual {
  background: #eaf0fa;
}

.er-desk-tile--qr .er-desk-tile__eyebrow {
  color: #8a6a12;
}

.er-desk-tile--auslieferung .er-desk-tile__eyebrow {
  color: #1b4f9c;
}

.er-desk-tile--spannenrechner .er-desk-tile__eyebrow {
  color: #007a3d;
}

/* Digitale Unterschrift (Profil) */
.er-signature-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.er-signature-preview img {
  display: block;
  max-width: min(100%, 360px);
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.er-signature-toggle {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}

.er-signature-toggle-card {
  margin: 0 0 12px;
}

.er-signature-toggle .er-btn--primary {
  margin-top: 4px;
}

.er-arrival-choice.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.er-signature-pad {
  margin: 0 0 8px;
}

.er-signature-pad canvas {
  display: block;
  width: 100%;
  max-width: 560px;
  height: 180px;
  touch-action: none;
  cursor: crosshair;
  background: #fff;
  border: 1px dashed #b7b7b7;
  border-radius: 10px;
}

.er-signature-pad__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.er-signature-remove {
  margin-top: 16px;
}

.er-h3 {
  margin: 18px 0 10px;
  font-size: 1.05rem;
}

/* Owner: Rollen-Vorschau rechts */
.er-owner-preview {
  position: fixed;
  right: 12px;
  top: 78px;
  z-index: 90;
  width: min(240px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  font-size: 0.82rem;
}

.er-owner-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.er-owner-preview__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b4f00;
}

.er-owner-preview__toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  color: #374151;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.er-owner-preview__toggle:hover {
  background: #fff8e1;
  border-color: #f0d78c;
}

.er-owner-preview--collapsed {
  padding: 8px 10px;
  width: auto;
  min-width: 0;
}

.er-owner-preview--collapsed .er-owner-preview__bar {
  margin: 0;
}

.er-owner-preview__hint {
  margin: 0 0 10px;
  color: #6b7280;
  line-height: 1.35;
}

.er-owner-preview__active {
  margin: 0 0 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff8e1;
  color: #6b4f00;
}

.er-owner-preview__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: #374151;
}

.er-owner-preview__label select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font: inherit;
  background: #fff;
}

@media (max-width: 1100px) {
  .er-owner-preview {
    top: auto;
    bottom: 12px;
    right: 12px;
    max-height: 40vh;
    overflow: auto;
  }
}

/* Spannenrechner */
.er-span-hero {
  margin-bottom: 1rem;
}

.er-span-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 820px) {
  .er-span-grid {
    grid-template-columns: 1fr;
  }
}

.er-span-panel__lead {
  margin: 0 0 1rem;
}

.er-span-results {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f3faf6;
  border: 1px solid rgba(0, 80, 40, 0.12);
}

.er-span-results > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.er-span-results dt {
  margin: 0;
  color: #5a6a60;
  font-size: 0.92rem;
}

.er-span-results dd {
  margin: 0;
  font-weight: 700;
  color: #0f2418;
  font-variant-numeric: tabular-nums;
}

.er-span-results__highlight {
  padding-top: 0.45rem;
  border-top: 1px solid rgba(0, 80, 40, 0.14);
}

.er-span-results__highlight dd {
  color: #005028;
  font-size: 1.1rem;
}

/* Benutzer-Rechte */
.er-perms {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid rgba(0, 80, 40, 0.14);
  border-radius: 14px;
  background: #f7fcf9;
}

.er-perms__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
  margin: 0.55rem 0 0.75rem;
}

.er-perms__search {
  flex: 1 1 220px;
  margin: 0;
}

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

.er-perms__bulk {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.er-perms__empty {
  margin: 0 0 0.65rem;
}

.er-perms__groups {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.er-perms__group {
  padding: 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 80, 40, 0.1);
  overflow: hidden;
}

.er-perms__group[open] {
  border-color: rgba(0, 80, 40, 0.22);
}

.er-perms__group-summary {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.er-perms__group-summary::-webkit-details-marker {
  display: none;
}

.er-perms__group-chevron {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: #eef7f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23005028' d='M2.1 3.2 5 6.1l2.9-2.9L9 4.3 5 8.3 1 4.3z'/%3E%3C/svg%3E") no-repeat center / 9px;
  transition: transform 0.15s ease;
}

.er-perms__group[open] .er-perms__group-chevron {
  transform: rotate(180deg);
}

.er-perms__group-main {
  flex: 1 1 auto;
  min-width: 0;
}

.er-perms__group-count {
  flex-shrink: 0;
  min-width: 1.5rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #eef2f0;
  color: #4a5650;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.er-perms__group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.55rem;
}

.er-perms__heading {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #005028;
}

.er-perms__group-desc {
  display: block;
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: #5a6a60;
  line-height: 1.35;
}

.er-perms__group > .er-perms__modules {
  padding: 0 0.75rem 0.85rem;
  border-top: 1px solid #eef2ef;
}

.er-perms__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

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

.er-perms__modules {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.er-perms__module {
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 80, 40, 0.12);
  overflow: hidden;
}

.er-perms__module--on {
  border-color: rgba(0, 80, 40, 0.28);
}

.er-perms__module[open] {
  box-shadow: 0 4px 14px rgba(0, 50, 25, 0.05);
}

.er-perms__module-summary {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.er-perms__module-summary::-webkit-details-marker {
  display: none;
}

.er-perms__module-chevron {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: #eef7f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23005028' d='M2.1 3.2 5 6.1l2.9-2.9L9 4.3 5 8.3 1 4.3z'/%3E%3C/svg%3E") no-repeat center / 9px;
  transition: transform 0.15s ease;
}

.er-perms__module[open] .er-perms__module-chevron {
  transform: rotate(180deg);
}

.er-perms__module-check {
  flex-shrink: 0;
  margin: 0.15rem 0 0;
  cursor: pointer;
}

.er-perms__module-check input {
  width: 1.05rem;
  height: 1.05rem;
}

.er-perms__module-main {
  flex: 1 1 auto;
  min-width: 0;
}

.er-perms__module-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
}

.er-perms__module-title {
  font-size: 0.95rem;
  color: #0f2418;
}

.er-perms__module-meta {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #eef2f0;
  color: #4a5650;
  font-size: 0.72rem;
  font-weight: 700;
}

.er-perms__module--on .er-perms__module-meta {
  background: #e5f6ec;
  color: #005028;
}

.er-perms__module-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #5a6a60;
  line-height: 1.35;
}

.er-perms__module-body {
  padding: 0 0.75rem 0.75rem 2.35rem;
  border-top: 1px solid #eef2ef;
}

.er-perms__module-plain {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
}

.er-perms__item--module {
  background: transparent;
  border: 0;
  padding: 0.15rem 0.1rem;
}

.er-perms__caps {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.65rem 0.6rem;
  border-radius: 10px;
  background: #f7fcf9;
  border: 1px dashed rgba(0, 80, 40, 0.18);
}

.er-perms__caps-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d6b52;
}

.er-perms__list--caps {
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.er-perms__item--cap {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: #fff;
}

.er-perms__item--feature {
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .er-perms__module-body {
    padding-left: 0.75rem;
  }
}

.er-perms__item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f7fcf9;
  border: 1px solid rgba(0, 80, 40, 0.1);
  cursor: pointer;
}

.er-perms__item input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.er-perms__item strong {
  display: block;
  font-size: 0.92rem;
  color: #0f2418;
}

.er-perms__item small {
  display: block;
  margin-top: 0.15rem;
  color: #5a6a60;
  font-size: 0.8rem;
  line-height: 1.35;
}

.er-perms[disabled] .er-perms__item {
  opacity: 0.72;
  cursor: default;
}

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

/* Rollen-Gruppe & Accordion */
.er-roles-layout {
  gap: 1.25rem;
}

.er-role-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.85rem;
}

.er-role-add-row .er-field {
  flex: 1 1 240px;
  margin: 0;
  max-width: 28rem;
}

.er-role-group {
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 80, 40, 0.12);
  background: #f4faf6;
}

.er-role-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.er-role-group__title {
  margin: 0;
  font-size: 1.05rem;
  color: #005028;
}

.er-role-group__intro {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #5a6a60;
  line-height: 1.4;
}

.er-role-group__count {
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 80, 40, 0.14);
  color: #005028;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.er-role-group__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.er-role-group__empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed rgba(0, 80, 40, 0.2);
}

.er-role-panel {
  border-radius: 14px;
  border: 1px solid rgba(0, 80, 40, 0.12);
  background: #fff;
  overflow: hidden;
}

.er-role-panel[open] {
  border-color: rgba(0, 80, 40, 0.28);
  box-shadow: 0 6px 18px rgba(0, 50, 25, 0.06);
}

.er-role-panel__summary {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.er-role-panel__summary::-webkit-details-marker {
  display: none;
}

.er-role-panel__chevron {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: #eef7f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23005028' d='M2.1 3.2 5 6.1l2.9-2.9L9 4.3 5 8.3 1 4.3z'/%3E%3C/svg%3E") no-repeat center / 9px;
  transition: transform 0.15s ease;
}

.er-role-panel[open] .er-role-panel__chevron {
  transform: rotate(180deg);
}

.er-role-panel__main {
  flex: 1 1 auto;
  min-width: 0;
}

.er-role-panel__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.er-role-panel__title {
  font-size: 1rem;
  color: #0f2418;
}

.er-role-panel__badge {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #eef2f0;
  color: #4a5650;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.er-role-panel__badge--full {
  background: #fff4cc;
  color: #6b4f00;
}

.er-role-panel__users {
  font-size: 0.8rem;
  color: #5a6a60;
}

.er-role-panel__summary-text {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
  color: #5a6a60;
  line-height: 1.35;
}

.er-role-panel__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #eef2ef;
}

.er-role-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding-top: 0.85rem;
  margin-bottom: 0.35rem;
}

.er-role-panel__toolbar .er-form--role-rename {
  flex: 1 1 260px;
  margin: 0;
}

.er-role-card__rename {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.75rem;
}

.er-role-card__rename .er-field {
  flex: 1 1 200px;
  margin: 0;
}

.er-form--role-delete {
  margin: 0;
}

.er-card--role .er-role-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

/* —— Auslieferung —— */
/* Volle Arbeitsbreite — Kundendaten-Spalte braucht Platz */
.er-main--aus {
  max-width: min(1760px, calc(100vw - (var(--er-layout-pad) * 2) - 16px));
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.er-desk-sidebar ~ .er-main.er-main--aus {
  max-width: min(1760px, calc(100vw - var(--er-sidebar-w, 260px) - (var(--er-layout-pad) * 2) - 16px));
}

@media (max-width: 767px) {
  .er-main--aus,
  .er-desk-sidebar ~ .er-main.er-main--aus {
    max-width: 100%;
    padding-left: var(--er-layout-pad);
    padding-right: var(--er-layout-pad);
  }
}

.er-aus-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.er-aus-badge {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.er-aus-badge--preview {
  background: #eef4ff;
  color: #1b4f9c;
}

.er-aus-badge--maintenance {
  background: #fff4e5;
  color: #9a5b00;
}

.er-aus-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

/* 3 Spalten: Kalender kompakt | Termine | Kundendaten breit */
.er-aus-workspace {
  display: grid;
  gap: 1.35rem;
  margin-top: 0.35rem;
  align-items: start;
}

.er-aus-workspace--1 {
  grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
  .er-aus-workspace--3 {
    grid-template-columns: minmax(380px, 1.55fr) minmax(260px, 0.85fr) minmax(320px, 1.05fr);
    gap: 1.5rem;
  }
}

@media (min-width: 720px) and (max-width: 1099px) {
  .er-aus-workspace--3 {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .er-aus-col--daten {
    grid-column: 1 / -1;
  }
}

.er-aus-col {
  margin: 0;
  min-width: 0;
  padding: 1.25rem 1.4rem 1.4rem;
}

.er-aus-col--cal {
  padding: 1.35rem 1.5rem 1.5rem;
}

.er-aus-col--daten {
  padding: 1.25rem 1.35rem 1.4rem;
  scroll-margin-top: 1rem;
}

.er-aus-col__head {
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.er-aus-col__label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.er-aus-col__head .er-h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.er-aus-daypanel__wd {
  display: inline-block;
  margin-left: 0.3rem;
  font-weight: 500;
  color: var(--er-muted, #64748b);
  font-size: 0.88rem;
}

.er-aus-daypanel__meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--er-muted, #64748b);
}

.er-aus-daypanel__empty {
  margin: 0.5rem 0 0;
}

.er-aus-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.er-aus-roster__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.er-aus-roster__row:hover {
  border-color: #94a3b8;
}

.er-aus-roster__row--active {
  border-color: #1b4f9c;
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #1b4f9c;
}

.er-aus-roster__row--free {
  border-style: dashed;
  background: #f8fafc;
}

.er-aus-roster__row--pending {
  border-color: #f0d9a8;
}

.er-aus-roster__row--approved {
  border-color: #b7e0c8;
}

.er-aus-roster__row--cta {
  border-style: dashed;
  border-color: #94a3b8;
  background: #f8fafc;
}

.er-aus-roster__num {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f5ee;
  color: #005028;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.er-aus-roster__num--extra {
  background: #eef4ff;
  color: #1b4f9c;
}

.er-aus-roster__main {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.er-aus-roster__main strong {
  font-size: 0.86rem;
}

.er-aus-roster__main small {
  color: var(--er-muted, #64748b);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.er-aus-col--termine .er-aus-status {
  font-size: 0.62rem;
  padding: 0.12rem 0.38rem;
  white-space: nowrap;
}

.er-aus-editor {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  position: static;
}

.er-aus-editor--placeholder {
  min-height: 7rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.65rem;
}

.er-aus-editor__placeholder-title {
  margin: 0 0 0.35rem;
  font-weight: 650;
  font-size: 0.95rem;
}

.er-aus-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.er-aus-editor__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.er-aus-changes {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.er-aus-changes__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.er-aus-changes__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.er-aus-changes__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border: 1px solid #f0d9a8;
  border-radius: 0.55rem;
  background: #fffaf0;
}

.er-aus-changes__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.er-aus-changes__new {
  font-weight: 650;
  color: #005028;
}

.er-aus-changes__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.er-aus-changes__form {
  margin: 0;
  padding: 0.85rem;
  border: 1px dashed #94a3b8;
  border-radius: 0.55rem;
  background: #f8fafc;
}

.er-aus-changes__hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}

.er-aus-changes__value {
  margin-top: 0.65rem;
}

.er-aus-editor__sub {
  margin: 0;
  font-size: 0.85rem;
}

.er-aus-summary {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.er-aus-summary__block {
  padding: 0.55rem 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.er-aus-summary__block--open,
.er-aus-summary__block--pending {
  border-color: #cbd5e1;
  background: #fff;
}

.er-aus-summary__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  align-items: baseline;
}

.er-aus-summary__row dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.er-aus-summary__row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.98rem;
  font-weight: 550;
  color: #0f172a;
  word-break: break-word;
}

.er-aus-summary__value {
  flex: 1 1 auto;
  min-width: 0;
}

.er-aus-summary__change-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.er-aus-summary__change-form,
.er-aus-summary__pending {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
}

.er-aus-summary__change-hint {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
}

.er-aus-summary__change-actions,
.er-aus-summary__pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.er-aus-summary__pending-label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b45309;
}

.er-aus-summary__pending-new {
  margin: 0;
  font-size: 0.95rem;
}

.er-aus-summary__foot {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}

.er-aus-summary__row--wide {
  grid-template-columns: 1fr;
}

.er-aus-summary__row--wide dd {
  margin-top: 0.15rem;
  white-space: pre-wrap;
}

.er-aus-cal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.er-aus-cal__toolbar .er-h2 {
  margin: 0;
  text-align: center;
  flex: 1;
}

.er-aus-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--er-muted, #64748b);
}

.er-aus-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.er-aus-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  display: inline-block;
}

.er-aus-dot--thursday { background: #009646; }
.er-aus-dot--planned { background: #1b4f9c; }
.er-aus-dot--other { background: #cbd5e1; }

.er-aus-grid__weekdays,
.er-aus-grid__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.er-aus-grid__weekdays {
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--er-muted, #64748b);
  text-align: center;
}

.er-aus-grid__wd--do {
  color: #009646;
}

.er-aus-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.4rem 0.25rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  font-size: 0.92rem;
}

.er-aus-day--empty {
  background: transparent;
  border: 0;
  min-height: 0;
}

.er-aus-day--other {
  color: #94a3b8;
  background: #f1f5f9;
}

.er-aus-day--thursday {
  background: #e8f5ee;
  border-color: #b7e0c8;
  color: #005028;
  font-weight: 600;
}

.er-aus-day--planned {
  background: #eef4ff;
  border-color: #9bb7e8;
  color: #1b4f9c;
}

.er-aus-day--past {
  opacity: 0.55;
}

.er-aus-day--today {
  box-shadow: inset 0 0 0 2px #009646;
}

.er-aus-day--selected {
  outline: 2px solid #1b4f9c;
  outline-offset: 1px;
}

a.er-aus-day--thursday:hover,
a.er-aus-day--planned:hover,
a.er-aus-day--clickable:hover {
  filter: brightness(0.97);
}

.er-aus-day--clickable {
  cursor: pointer;
}

.er-aus-day__hint {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
}

.er-aus-day__count {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  opacity: 0.9;
  text-align: center;
  padding: 0 2px;
}

.er-aus-day__count--free {
  color: #005028;
  opacity: 1;
}

.er-aus-extra-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.er-aus-slot--extra {
  margin-top: 0.85rem;
}

.er-aus-slot__mine {
  font-size: 0.8rem;
}

.er-aus-slot__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.er-aus-status--cancelled {
  background: #f1f5f9;
  color: #64748b;
  text-decoration: line-through;
}

.er-aus-slots {
  display: none;
}

.er-aus-slot {
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
}

.er-aus-slot--pending {
  border-color: #f0d9a8;
  background: #fffdf8;
}

.er-aus-slot--approved {
  border-color: #b7e0c8;
  background: #f4fbf7;
}

.er-aus-slot--empty {
  background: #f8fafc;
  border-style: dashed;
}

.er-aus-slot__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.75rem;
}

.er-aus-slot__title {
  margin: 0;
  font-size: 1rem;
}

.er-aus-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
}

.er-aus-status--pending {
  background: #fff4e5;
  color: #9a5b00;
}

.er-aus-status--approved {
  background: #e8f5ee;
  color: #005028;
}

.er-aus-status--empty {
  background: #e2e8f0;
  color: #64748b;
}

.er-aus-slot__fields {
  display: grid;
  gap: 0.95rem 1rem;
  grid-template-columns: minmax(5.5rem, 0.55fr) minmax(5.5rem, 0.55fr) minmax(0, 1.6fr);
}

.er-aus-slot__fields .er-field {
  margin: 0;
}

.er-aus-col--daten .er-field span {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.er-aus-col--daten .er-field input[type="text"],
.er-aus-col--daten .er-field input[type="tel"],
.er-aus-col--daten .er-field textarea {
  min-height: 2.65rem;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
}

.er-aus-slot__fields .er-field:has([name="order_number"]),
.er-aus-slot__fields .er-field:has([name="customer_name"]),
.er-aus-slot__fields .er-aus-phone,
.er-aus-slot__fields .er-aus-slot__field--wide,
.er-aus-addr__street {
  grid-column: 1 / -1;
}

.er-aus-addr__house {
  grid-column: 1 / 2;
}

.er-aus-addr__plz {
  grid-column: 2 / 3;
}

.er-aus-addr__city {
  grid-column: 3 / 4;
}

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

  .er-aus-addr__house {
    grid-column: 1 / 2;
  }

  .er-aus-addr__plz {
    grid-column: 1 / 2;
  }

  .er-aus-addr__city {
    grid-column: 2 / 3;
  }
}

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

  .er-aus-addr__house,
  .er-aus-addr__plz,
  .er-aus-addr__city {
    grid-column: 1 / -1;
  }
}

.er-aus-slot__locked {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
}

.er-aus-slot__extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

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

.er-module-maintenance__badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #fff4e5;
  color: #9a5b00;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Owner: Modul-Freigabe */
.er-module-life-list {
  display: grid;
  gap: 0.85rem;
}

.er-module-life-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
}

@media (min-width: 720px) {
  .er-module-life-row {
    grid-template-columns: minmax(140px, 0.9fr) minmax(180px, 1fr) minmax(0, 1.4fr);
    align-items: end;
  }
}

.er-module-life-row__meta strong {
  display: block;
}

.er-module-life-row__meta small {
  color: var(--er-muted, #64748b);
}
