/* 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: 1120px;
  --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);
}

@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--categories {
    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--categories {
  gap: 6px;
  /* Dropdowns dürfen aus dem Header rausragen — overflow-x:auto würde sie abschneiden */
  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;
}

.er-nav-cat__panel {
  position: fixed;
  top: 0;
  left: 0;
  min-width: min(340px, calc(100vw - 24px));
  max-width: min(400px, calc(100vw - 24px));
  border-radius: 14px;
  background: #fff;
  color: #1a2b22;
  border: 1px solid rgba(0, 80, 40, 0.12);
  box-shadow:
    0 4px 10px rgba(0, 40, 20, 0.06),
    0 18px 40px rgba(0, 40, 20, 0.16);
  z-index: 120;
  overflow: hidden;
}

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

.er-nav-cat__panel-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 80, 40, 0.1);
  background: #f3faf6;
}

.er-nav-cat__panel-head strong {
  font-size: 0.92rem;
  color: #005028;
}

.er-nav-cat__panel-head span {
  font-size: 0.8rem;
  color: #5a6a60;
  line-height: 1.35;
}

.er-nav-cat__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: min(420px, 60vh);
  overflow-y: auto;
}

.er-nav-cat__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.er-nav-cat__item:hover {
  background: #eef7f1;
}

.er-nav-cat__item--current {
  background: #e5f6ec;
}

.er-nav-cat__item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.er-nav-cat__item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f2418;
}

.er-nav-cat__item-desc {
  font-size: 0.78rem;
  color: #5a6a60;
  line-height: 1.35;
}

.er-nav-cat__item-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-cat__item-badge--hot {
  background: #ff3b30;
}

/* 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__name {
    display: none;
  }

  .er-header-user__role {
    font-size: 0.68rem;
  }

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

  .er-market-chip__kicker {
    display: none;
  }

  .er-market-chip {
    padding: 5px 9px;
    gap: 5px;
  }

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

  .er-account-cluster {
    max-width: none;
    gap: 6px;
  }

  .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-count {
  font-weight: 500;
  font-size: 0.9em;
}

.er-user-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.er-chip {
  appearance: none;
  border: 1px solid var(--er-edge, #d7e2db);
  background: #fff;
  color: #1a2e22;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.er-chip:hover {
  border-color: var(--hb-green-mid, #2f9e5f);
}

.er-chip--active {
  background: var(--hb-green, #005028);
  border-color: var(--hb-green, #005028);
  color: #fff;
}

.er-chip__count {
  opacity: 0.75;
  font-weight: 500;
}

.er-user-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
  border: 1px solid var(--er-edge, #d7e2db);
  border-radius: 12px;
  background: #fff;
}

.er-settings-group--wide {
  max-width: none;
}

.er-settings-group--wide .er-card--users-list,
.er-settings-group--wide .er-settings-stack {
  max-width: min(1180px, 100%);
}

.er-role-hierarchy {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.er-role-hierarchy--locked {
  margin-bottom: 10px;
}

.er-role-hierarchy__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--er-edge, #d7e2db);
  border-radius: 10px;
  background: #fff;
  user-select: none;
}

.er-role-hierarchy__item--locked {
  background: #f7faf8;
}

.er-role-hierarchy__item--draggable {
  cursor: grab;
}

.er-role-hierarchy__item--draggable:active {
  cursor: grabbing;
}

.er-role-hierarchy__item--dragging {
  opacity: 0.45;
}

.er-role-hierarchy__item--drag-over {
  border-color: var(--hb-green, #005028);
  box-shadow: 0 0 0 2px rgba(0, 80, 40, 0.12);
}

.er-role-hierarchy__handle {
  color: #8a9a90;
  letter-spacing: -2px;
  font-size: 0.95rem;
  line-height: 1;
  cursor: grab;
}

.er-role-hierarchy__label {
  flex: 1;
  font-weight: 650;
}

.er-role-hierarchy__hint {
  margin-top: 10px;
}

.er-form--bulk-perms {
  display: grid;
  gap: 16px;
}

.er-bulk-perms-targets {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e2ebe5;
  border-radius: 12px;
  background: #f8fbf9;
}

.er-bulk-perms-targets legend {
  padding: 0 4px;
  font-weight: 650;
  font-size: 0.92rem;
}

.er-bulk-perms-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.er-bulk-perms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 12px;
}

.er-bulk-perms-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8efe9;
  cursor: pointer;
  font-size: 0.9rem;
}

.er-bulk-perms-check:hover {
  border-color: #c5d6cb;
}

.er-bulk-perms-check:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.er-bulk-perms-check input {
  margin: 0;
  flex-shrink: 0;
}

.er-user-table__email-text {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3d5247;
}

.er-user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.er-user-table th,
.er-user-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eef3ef;
}

.er-user-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b61;
  background: #f7faf8;
  white-space: nowrap;
}

.er-user-table__group-head th {
  background: #eef6f1;
  color: #005028;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid #d7e8dd;
  position: sticky;
  top: 0;
  z-index: 1;
}

.er-user-table__row:hover td {
  background: #f9fcfa;
}

.er-user-table__row--self td {
  background: #f0faf4;
}

.er-user-table__name {
  font-weight: 650;
  white-space: nowrap;
}

.er-user-table__name-text {
  margin-right: 6px;
}

.er-user-table__login code {
  font-size: 0.86em;
  background: #f1f5f2;
  padding: 2px 6px;
  border-radius: 6px;
}

.er-user-table__actions {
  white-space: nowrap;
  text-align: right;
}

.er-user-table__actions .er-inline-form {
  display: inline-flex;
  vertical-align: middle;
}

.er-user-table__role-select {
  max-width: 150px;
  font: inherit;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--er-edge, #d7e2db);
  background: #fff;
}

.er-user-table__station-select {
  max-width: 180px;
  min-width: 140px;
  font: inherit;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--er-edge, #d7e2db);
  background: #fff;
}

.er-user-table__station-select.is-empty {
  color: #7a8b82;
}

.er-user-table__station-select.is-flex {
  border-color: #9bb6e8;
  background: #f3f7ff;
}

@media (max-width: 720px) {
  .er-user-table__email {
    display: none;
  }
  .er-user-table thead th:nth-child(3),
  .er-user-table__group-head th {
    /* group head keeps colspan */
  }
}

.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: 9px;
  max-width: min(200px, 36vw);
  padding: 3px 10px 3px 3px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease;
}

.er-header-user:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

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

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

.er-header-user--active .er-header-user__role {
  color: rgba(0, 80, 40, 0.72);
}

.er-header-user__avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--hb-green-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.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.84rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.er-header-user__role {
  font-size: 0.68rem;
  font-weight: 550;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.er-role-badge--header {
  margin-left: 0;
  font-size: 0.58rem;
  padding: 2px 7px;
  line-height: 1.25;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.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,
#team-users,
#team-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 > .er-field__label,
.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 select:not(.er-rte__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;
}

.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__link--back {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 14px;
  color: var(--hb-muted);
  font-weight: 600;
  border-radius: 8px;
}

.er-desk-sidebar__link--back::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 150, 70, 0.08),
    rgba(0, 100, 50, 0.28) 20%,
    rgba(0, 100, 50, 0.28) 80%,
    rgba(0, 150, 70, 0.08)
  );
}

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

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

/* Team & Einstellungen: gleiche Abschnitts-Logik wie Vermietung */
.er-desk-sidebar--admin {
  background: var(--hb-surface);
}

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

.er-desk-sidebar--admin .er-desk-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 80, 40, 0.1);
  background: #f7faf8;
}

.er-desk-sidebar--admin .er-desk-sidebar__section--team {
  background: #eef6f1;
  border-color: #c5ddcf;
}

.er-desk-sidebar--admin .er-desk-sidebar__section--settings {
  background: #f4f7fa;
  border-color: #c9d6e3;
}

.er-desk-sidebar--admin .er-desk-sidebar__group {
  margin: 2px 8px 6px;
}

.er-desk-sidebar--admin .er-desk-sidebar__group--team {
  color: #1a6b3c;
}

.er-desk-sidebar--admin .er-desk-sidebar__group--settings {
  color: #0f4f7a;
}

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

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

.er-desk-sidebar--tagesplan .er-desk-sidebar__nav {
  gap: 4px;
}

.er-desk-sidebar--tagesplan .er-desk-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 80, 40, 0.14);
}

.er-desk-sidebar--tagesplan .er-desk-sidebar__group {
  margin: 0 8px 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6f64;
}

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

/* Desk Start — eine gemeinsame Panel-Fläche (Willkommen + Überblick) */
.er-desk-home {
  margin-bottom: 1.5rem;
}

.er-desk-home-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
  border-radius: 20px;
  border: 1px solid rgba(0, 80, 40, 0.11);
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 45, 22, 0.06);
  overflow: hidden;
}

.er-desk-hero,
.er-desk-pulse {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 1.15rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.er-desk-hero {
  background: linear-gradient(160deg, #f6fbf8 0%, #ffffff 42%);
}

.er-desk-pulse {
  background: #fafcfb;
  border-left: 1px solid rgba(0, 80, 40, 0.09);
  gap: 0.65rem;
}

.er-desk-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.er-desk-eyebrow,
.er-desk-pulse__kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8c82;
}

.er-desk-hero-edit-btn {
  flex-shrink: 0;
  color: #5a7366;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 80, 40, 0.25);
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.er-desk-hero-edit-btn:hover {
  color: #005028;
  border-bottom-color: #005028;
  background: none;
}

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

.er-desk-welcome {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 750;
  line-height: 1.15;
  color: #0f2418;
  letter-spacing: -0.03em;
}

.er-desk-lead {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a5f54;
}

.er-desk-hero-hint {
  display: none;
}

.er-desk-shift {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 80, 40, 0.08);
}

.er-desk-shift__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.er-desk-shift__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8c82;
}

.er-desk-shift__link {
  font-size: 0.74rem;
  font-weight: 700;
  color: #005028;
  text-decoration: none;
}

.er-desk-shift__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.er-desk-shift__empty {
  margin: 0;
  font-size: 0.86rem;
  color: #6a7d72;
  line-height: 1.35;
}

.er-desk-shift__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.er-desk-shift__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 9px;
  background: #f3faf6;
  border: 1px solid rgba(0, 80, 40, 0.07);
}

.er-desk-shift__item--today {
  background: #eaf7ef;
  border-color: rgba(0, 150, 70, 0.18);
}

.er-desk-shift__item--krank,
.er-desk-shift__item--fehlt {
  background: #fff7eb;
  border-color: rgba(230, 140, 40, 0.22);
}

.er-desk-shift__line {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
  color: #15281e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.er-desk-shift__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.er-desk-shift__tag {
  font-size: 0.64rem;
  font-weight: 750;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: #e5f3ea;
  color: #005028;
  white-space: nowrap;
}

.er-desk-shift__tag--warn {
  background: #ffe3b8;
  color: #8a4b00;
}

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

.er-desk-meta {
  margin: 0.9rem 0 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #005028;
  font-weight: 700;
  background: #e8f5ee;
}

.er-desk-hero-inline-form {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.er-desk-hero-inline-form textarea,
.er-desk-hero-inline-form input[type="text"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 80, 40, 0.16);
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

.er-desk-hero-inline-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.er-desk-pulse__head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.er-desk-pulse__title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.22;
  color: #0f2418;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.er-desk-pulse__count {
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  background: #ffe8c4;
  color: #8a4b00;
}

.er-desk-pulse__count--ok {
  background: #e5f3ea;
  color: #005028;
}

.er-desk-pulse__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #6a7d72;
}

.er-desk-pulse__empty {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 80, 40, 0.08);
  color: #3d5346;
  font-size: 0.92rem;
  line-height: 1.45;
}

.er-desk-pulse__sections {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.er-desk-pulse__section {
  padding: 0.7rem 0.75rem 0.75rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 80, 40, 0.08);
}

.er-desk-pulse__section--news,
.er-desk-pulse__section--meintag,
.er-desk-pulse__section--todos,
.er-desk-pulse__section--aufgaben,
.er-desk-pulse__section--auslieferung {
  background: #fff;
}

.er-desk-pulse__section-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.er-desk-pulse__icon {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  background: #e8f5ee;
  color: #005028;
}

.er-desk-pulse__section--meintag .er-desk-pulse__icon,
.er-desk-pulse__section--todos .er-desk-pulse__icon {
  background: #e8f1f8;
  color: #1e5a8a;
}

.er-desk-pulse__section--aufgaben .er-desk-pulse__icon {
  background: #fff0e0;
  color: #9a5a00;
}

.er-desk-pulse__section--auslieferung .er-desk-pulse__icon {
  background: #fff0dc;
  color: #a05d0c;
}

.er-desk-pulse__section-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #2a3d33;
}

.er-desk-pulse__section-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #7a8c82;
  padding: 0.1rem 0 0;
}

.er-desk-pulse__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.er-desk-pulse__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f6faf7;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.er-desk-pulse__item:hover {
  background: #eef7f1;
  border-color: rgba(0, 150, 70, 0.18);
}

.er-desk-pulse__item--hot {
  background: #fff7eb;
}

.er-desk-pulse__item--hot:hover {
  background: #fff1dc;
  border-color: rgba(230, 140, 40, 0.28);
}

.er-desk-pulse__item-label {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  color: #15281e;
}

.er-desk-pulse__item-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #e5f3ea;
  color: #005028;
  white-space: nowrap;
}

.er-desk-pulse__item--hot .er-desk-pulse__item-badge {
  background: #ffe3b8;
  color: #8a4b00;
}

.er-desk-pulse__more {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #005028;
  text-decoration: none;
}

.er-desk-pulse__more:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

  .er-desk-pulse {
    border-left: 0;
    border-top: 1px solid rgba(0, 80, 40, 0.09);
  }
}

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

.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;
  grid-template-columns: repeat(auto-fill, 260px);
  gap: 18px;
  justify-content: start;
}

.er-desk-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 260px;
  max-width: 100%;
  box-sizing: border-box;
  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 auto 0.45rem;
  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;
  object-position: center;
}

.er-desk-tile--vermietung .er-desk-tile__visual {
  width: 132px;
  height: 72px;
  background: #e4eef6;
  box-shadow: none;
}

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

.er-desk-tile--auslieferung .er-desk-tile__visual {
  width: 132px;
  height: 72px;
  background: #e8f5ee;
}

.er-desk-tile--auslieferung .er-desk-tile__visual img {
  object-fit: contain;
  object-position: center;
  padding: 4px 6px;
}

.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--vermietung {
  background:
    linear-gradient(165deg, #ffffff 0%, #f5f9fc 45%, #e8f1f8 100%);
}

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

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

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

.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--news {
  background:
    linear-gradient(165deg, #ffffff 0%, #f3faf6 50%, #e5f4eb 100%);
}

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

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

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

.er-desk-tile--tagesplan::before {
  background: #005028;
}

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

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

.er-desk-tile--meintag::before {
  background: #0d7a45;
}

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

.er-desk-tile--highlight {
  outline: 2px solid rgba(0, 150, 70, 0.55);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 150, 70, 0.12);
  animation: er-desk-tile-pulse 1.2s ease-out 1;
}

@keyframes er-desk-tile-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 150, 70, 0.28); }
  100% { box-shadow: 0 0 0 10px rgba(0, 150, 70, 0); }
}

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

  .er-desk-tile {
    width: 100%;
  }
}

/* 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-roles-layout--simple {
  gap: 1rem;
}

.er-roles-advanced {
  padding: 0;
  overflow: hidden;
}

.er-roles-advanced__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.9rem 1.05rem;
  cursor: pointer;
  list-style: none;
}

.er-roles-advanced__summary::-webkit-details-marker {
  display: none;
}

.er-roles-advanced__summary::before {
  content: '▸';
  color: var(--er-muted, #667);
  font-size: 0.85rem;
}

.er-roles-advanced[open] > .er-roles-advanced__summary::before {
  content: '▾';
}

.er-roles-advanced__body {
  padding: 0 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid rgba(0, 80, 40, 0.1);
}

.er-roles-advanced__block .er-settings-card__title {
  margin-top: 0.85rem;
}

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

.er-role-panel__summary--static {
  display: flex;
  padding: 0.85rem 1rem;
  cursor: default;
}

.er-role-group--unified {
  background: #f7faf8;
}

.er-pending__hello {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.er-pending__text {
  margin: 0 0 0.85rem;
  color: var(--hb-muted, #5a6a60);
  line-height: 1.5;
}

.er-pending__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.er-card--staff-pending {
  border-top-color: #c9a227;
  background: linear-gradient(180deg, #fffdf6 0%, #fff 40%);
}

.er-card--staff-pending-empty {
  opacity: 0.92;
}

.er-staff-pending__head {
  margin-bottom: 0.75rem;
}

.er-staff-pending__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(180, 140, 40, 0.22);
  background: #fffaf0;
}

.er-staff-pending__select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.er-staff-pending__count {
  font-size: 0.86rem;
  color: var(--er-muted, #667);
}

.er-staff-pending__role {
  margin: 0;
  min-width: 11rem;
}

.er-field--inline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.er-staff-pending__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 22rem;
  overflow-y: auto;
}

.er-staff-pending__item {
  margin: 0;
}

.er-staff-pending__check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--hb-border);
  background: #fff;
  cursor: pointer;
}

.er-staff-pending__check:has(input:checked) {
  border-color: var(--hb-green);
  background: rgba(0, 150, 70, 0.06);
}

.er-staff-pending__check input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--hb-green);
}

.er-staff-pending__who {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.er-staff-pending__who strong {
  font-size: 0.95rem;
}

.er-staff-pending__who .er-muted {
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.er-role-panel--pending {
  border-color: rgba(180, 120, 20, 0.25);
  background: #fffbf3;
}


.er-role-copy-simple {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.er-role-copy-simple .er-field {
  margin: 0;
  min-width: 10rem;
}

.er-role-copy-simple .er-field--grow {
  flex: 1 1 220px;
  min-width: 12rem;
}

.er-role-copy-simple__arrow {
  align-self: center;
  padding-bottom: 0.35rem;
  font-size: 1.15rem;
  color: var(--er-muted, #667);
}

.er-role-copy-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.er-role-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hb-border);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.er-role-copy-chip:has(input:checked) {
  border-color: var(--hb-green);
  background: rgba(0, 150, 70, 0.08);
  color: var(--hb-green-dark);
}

.er-role-copy-chip--disabled,
.er-role-copy-chip:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.er-role-bulk-bar {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(180, 40, 40, 0.18);
  background: #fff8f8;
}

.er-role-bulk-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.er-role-bulk-bar__select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.er-role-bulk-bar__count {
  font-size: 0.86rem;
  color: var(--er-muted, #667);
}

.er-btn--danger {
  color: #a32020;
  border-color: rgba(180, 40, 40, 0.35);
}

.er-btn--danger:hover:not(:disabled) {
  background: rgba(180, 40, 40, 0.08);
  color: #7a1212;
}

.er-btn--danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.er-role-panel__select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-right: 2px;
  padding: 4px;
  cursor: pointer;
}

.er-role-panel__select input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--hb-green);
}

.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.75rem;
  padding-right: 1.75rem;
}

.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: 1rem 1.5rem;
  margin-bottom: 0.35rem;
  padding: 1.35rem 1.5rem;
}

.er-aus-hero .er-page-title {
  margin-bottom: 0.35rem;
}

.er-aus-hero .er-muted {
  margin: 0;
  max-width: 42rem;
  line-height: 1.45;
}

.er-aus-badge {
  margin: 0;
  padding: 0.4rem 0.85rem;
  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: 1.25rem;
  margin-top: 1rem;
}

/* Kalender oben vollbreit | darunter Termine + Kundendaten — bewusst nicht 3er-Reihe (sonst gequetscht) */
.er-aus-workspace {
  display: grid;
  gap: 1.85rem;
  margin-top: 0.75rem;
  align-items: start;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.45fr);
  grid-template-areas:
    "cal cal"
    "termine daten";
}

.er-aus-workspace--stacked .er-aus-col--cal {
  grid-area: cal;
}

.er-aus-workspace--stacked .er-aus-col--termine {
  grid-area: termine;
}

.er-aus-workspace--stacked .er-aus-col--daten {
  grid-area: daten;
}

/* Genehmigungen / Tour: kein Kalender — mehr Platz für Liste + Details */
.er-aus-workspace--no-cal {
  grid-template-areas: "termine daten";
}

@media (max-width: 860px) {
  .er-aus-workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cal"
      "termine"
      "daten";
  }

  .er-aus-workspace--no-cal {
    grid-template-areas:
      "termine"
      "daten";
  }
}

.er-aus-daynav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.er-aus-daynav .er-h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1.2rem;
}

.er-aus-col {
  margin: 0;
  min-width: 0;
  padding: 1.45rem 1.55rem 1.6rem;
  border-radius: 16px;
}

.er-aus-col--cal {
  padding: 1.65rem 1.85rem 1.9rem;
}

/* Kalender nutzt die volle Breite — große, klare Tage */
.er-aus-col--cal .er-aus-cal__toolbar,
.er-aus-col--cal .er-aus-legend,
.er-aus-col--cal .er-aus-grid {
  max-width: none;
  width: 100%;
}

.er-aus-col--daten {
  padding: 1.45rem 1.55rem 1.7rem;
  scroll-margin-top: 1rem;
}

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

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

.er-aus-col__head .er-h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}

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

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

.er-aus-daypanel__meta--pending {
  color: #9a5b00;
  font-weight: 650;
}

.er-aus-daypanel__empty {
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

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

.er-aus-roster__item {
  display: grid;
  gap: 0.45rem;
}

.er-aus-roster__item--approve .er-aus-roster__row {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.er-aus-roster__approve {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: -0.75rem 0 0;
  padding: 0.55rem 0.85rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #f8fafc;
}

.er-aus-roster__item--approve .er-aus-roster__row--pending + .er-aus-roster__approve {
  border-color: #f0d9a8;
  background: #fffbf3;
}

.er-aus-roster__item--approve .er-aus-roster__row--approved + .er-aus-roster__approve {
  border-color: #b7e0c8;
  background: #f4fbf7;
}

.er-aus-roster__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.95rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.er-aus-roster__row:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 40, 60, 0.06);
}

.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.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f5ee;
  color: #005028;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

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

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

.er-aus-roster__main strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

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

.er-aus-roster__row--tour .er-aus-roster__main {
  gap: 0.28rem;
}

.er-aus-roster__row--tour .er-aus-roster__main small {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.er-aus-roster__addr,
.er-aus-roster__phone {
  display: block;
  color: #334155 !important;
  font-weight: 550;
}

.er-aus-roster--tour {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: none;
}

.er-aus-col--termine .er-aus-status {
  font-size: 0.68rem;
  padding: 0.22rem 0.5rem;
  white-space: nowrap;
}

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

.er-aus-editor--placeholder {
  min-height: 8.5rem;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

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

.er-aus-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #eef2f6;
}

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

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

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

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

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

.er-aus-changes__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  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.5rem;
}

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

.er-aus-changes__hint {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}

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

.er-aus-editor__sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 28rem;
}

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

.er-aus-summary__block {
  padding: 0.95rem 1.05rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

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

.er-aus-summary__row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 0.65rem 1rem;
  align-items: start;
}

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

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

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

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

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

.er-aus-summary__change-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

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

.er-aus-summary__pending-label {
  margin: 0 0 0.35rem;
  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;
  line-height: 1.4;
}

.er-aus-summary__foot {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

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

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

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

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

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

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

.er-aus-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

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

.er-aus-grid__weekdays {
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  font-weight: 650;
  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: 5.35rem;
  padding: 0.65rem 0.4rem;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  font-size: 1.05rem;
  transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.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: 2px;
}

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__num {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
}

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

.er-aus-day__count {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.95;
  text-align: center;
  padding: 0 2px;
}

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

@media (max-width: 700px) {
  .er-aus-day {
    min-height: 4.35rem;
    padding: 0.45rem 0.2rem;
  }

  .er-aus-day__num {
    font-size: 1.05rem;
  }

  .er-aus-day__count {
    font-size: 0.7rem;
  }

  .er-aus-grid__weekdays,
  .er-aus-grid__days {
    gap: 0.4rem;
  }
}

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

.er-aus-slot__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid #eef2f6;
}

.er-aus-status--opportunity {
  background: #eef4ff;
  color: #1b4f9c;
}

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

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

.er-aus-slot {
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  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.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

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

.er-aus-status {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  background: #e2e8f0;
  color: #475569;
}

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

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

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

.er-aus-overview {
  margin-top: 0.75rem;
  padding: 1.5rem 1.6rem 1.75rem;
}

.er-aus-overview__head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.er-aus-overview__lead {
  margin: 0.4rem 0 0;
}

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

.er-aus-overview__days {
  display: grid;
  gap: 1.35rem;
}

.er-aus-dayblock {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
  background: #f9fcfa;
}

.er-aus-dayblock--planned {
  border-color: #b7e0c8;
  background: #f3faf6;
}

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

.er-aus-dayblock__title {
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.er-aus-dayblock__title span:first-of-type {
  font-weight: 500;
  color: #64748b;
  font-size: 0.95rem;
}

.er-aus-dayblock__meta {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.er-aus-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.er-aus-detail-list--tour {
  counter-reset: none;
}

.er-aus-detail-card {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 0.28rem;
}

.er-aus-detail-card--sonder {
  border-color: #f0d9a8;
  background: #fffbf3;
}

.er-aus-detail-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.er-aus-detail-card__name {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: #1a2e24;
}

.er-aus-detail-card__line {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.35;
}

.er-aus-detail-card__reason {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #5a6f64;
  line-height: 1.4;
}

.er-aus-detail-card__actions {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #eef2f6;
}

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

.er-aus-dayblock__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.er-aus-archive-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.er-aus-archive-row strong {
  display: block;
}

.er-aus-archive-row small {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
}

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

/* Formular: 2 Spalten — Auftrag/Name nebeneinander, Adresse als Block */
.er-aus-slot__fields {
  display: grid;
  gap: 1.15rem 1.25rem;
  grid-template-columns: 1fr 1fr;
}

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

.er-aus-col--daten .er-field span,
.er-aus-col--daten .er-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #3a4a58;
}

.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.85rem;
  padding: 0.75rem 0.95rem;
  font-size: 1rem;
  border-radius: 10px;
}

.er-aus-slot__fields .er-aus-phone,
.er-aus-slot__fields .er-aus-slot__field--wide,
.er-aus-slot__fields .er-aus-addr,
.er-aus-slot__fields .er-aus-identity {
  grid-column: 1 / -1;
}

.er-aus-identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #f7fbff 0%, #eef4fc 100%);
  border: 1px solid #c9d6e8;
}

.er-aus-identity__legend {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3d5a80;
}

.er-aus-identity__order,
.er-aus-identity__name {
  min-width: 0;
}

.er-aus-col--daten .er-field input::placeholder,
.er-aus-col--daten .er-field textarea::placeholder,
.er-aus-phone input::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-weight: 500;
}

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

.er-aus-addr {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(5.75rem, 7.25rem) minmax(0, 1.2fr);
  gap: 1rem 1rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #f7fbf8 0%, #f1f7f3 100%);
  border: 1px solid #d7e5dc;
}

.er-aus-addr__legend {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5a6f64;
}

.er-aus-addr__street {
  grid-column: 1 / 3;
}

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

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

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

.er-aus-slot__fields .er-aus-phone .er-phone-inputs,
.er-aus-slot__fields .er-aus-phone__inputs {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem 1rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.er-aus-phone {
  display: grid;
  gap: 0.85rem 1rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #d5dee8;
}

.er-aus-phone__legend {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
}

.er-aus-phone__part {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  min-width: 0;
}

.er-aus-phone__part--prefix {
  flex: 0 0 auto;
  width: min(8.5rem, 100%);
}

.er-aus-phone__part--number {
  flex: 1 1 12rem;
  min-width: min(12rem, 100%);
}

.er-aus-phone__sep {
  align-self: center;
  padding-bottom: 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #94a3b8;
}

.er-aus-slot__fields .er-aus-phone input[name="phone_prefix"],
.er-aus-slot__fields .er-aus-phone input[name="phone_number"] {
  width: 100%;
  max-width: none;
  flex: none;
  min-height: 2.85rem;
  padding: 0.75rem 0.95rem;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .er-aus-addr {
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 7rem);
  }

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

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

  .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 {
    grid-template-columns: 1fr;
  }

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

  .er-aus-summary__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.er-aus-slot__locked {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.er-aus-slot__extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  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-desk-layout-cats,
.er-desk-layout-mods {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.er-desk-dnd {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 8px;
  align-items: start;
}

.er-desk-dnd__col {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  border: 1px solid #d7e3db;
  border-radius: 14px;
  background: #f7fbf8;
  overflow: hidden;
}

.er-desk-dnd__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e0ebe4;
  background: #fff;
}

.er-desk-dnd__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8f3ec;
  color: #1b4332;
  font-size: 0.75rem;
  font-weight: 750;
}

.er-desk-dnd__list {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 8px;
  min-height: 88px;
  flex: 1;
}

.er-desk-dnd__list.is-drag-over {
  background: rgba(0, 150, 70, 0.06);
  outline: 2px dashed #7cbc93;
  outline-offset: -4px;
  border-radius: 10px;
}

.er-desk-dnd__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px;
  border: 1px solid #d0ddd5;
  border-radius: 10px;
  background: #fff;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.er-desk-dnd__item:active {
  cursor: grabbing;
}

.er-desk-dnd__item.is-dragging {
  opacity: 0.45;
}

.er-desk-dnd__item.is-drag-over {
  border-color: #2d6a4f;
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.12);
}

.er-desk-dnd__handle {
  color: #8a9a90;
  letter-spacing: -2px;
  font-size: 0.9rem;
  line-height: 1.2;
  margin-top: 2px;
}

.er-desk-dnd__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.er-desk-dnd__meta strong {
  color: #1f2f26;
  font-size: 0.92rem;
}

.er-desk-dnd__meta small {
  color: #6a7f72;
  font-size: 0.78rem;
  line-height: 1.35;
}

.er-desk-layout-cat,
.er-desk-layout-mod {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  gap: 10px 14px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid #d7e3db;
  border-radius: 12px;
  background: #fbfdfc;
}

.er-desk-layout-cat__actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  min-height: 42px;
}

.er-desk-layout-cat__delete-form {
  margin: 0;
}

.er-desk-layout-cat__keep {
  font-size: 0.8rem;
  white-space: nowrap;
}

.er-desk-layout-cat--new {
  background: #fff;
  border-style: dashed;
}

.er-desk-layout-cat__key {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
}

.er-desk-layout-mod__meta {
  display: grid;
  gap: 2px;
  align-self: center;
}

.er-desk-layout-mod__meta strong {
  color: #1f2f26;
}

.er-desk-layout-mod__meta small {
  color: #6a7f72;
  font-size: 0.82rem;
  line-height: 1.35;
}

.er-user-phone-card {
  margin: 0 0 16px;
}

.er-profile-phone {
  margin-top: 4px;
}

.er-profile-phone > span {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}

.er-desk-layout-mod .er-field input[type="number"] {
  max-width: 6rem;
}

@media (max-width: 800px) {
  .er-desk-layout-cat,
  .er-desk-layout-mod {
    grid-template-columns: 1fr;
  }
}

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

/* Markt-News — Account-Cluster, Brief & Modal */
.er-account-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  max-width: min(420px, 68vw);
  min-height: 42px;
  box-sizing: border-box;
  position: relative;
}

.er-account-cluster--active {
  background: transparent;
  border-color: transparent;
}

.er-market-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: #005028;
  box-shadow: 0 1px 3px rgba(0, 40, 20, 0.14);
  flex: 0 0 auto;
  line-height: 1.1;
}

.er-market-chip__icon {
  flex: 0 0 auto;
  color: #009646;
}

.er-market-chip__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.er-market-chip__kicker {
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b8a78;
  line-height: 1.1;
}

.er-market-chip__value {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #005028;
  line-height: 1.15;
}

.er-account-cluster .er-header-user {
  border: 0;
  background: transparent;
  max-width: min(200px, 36vw);
  min-height: 36px;
}

.er-account-cluster .er-header-user:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.er-news-brief {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.er-news-brief__btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  min-height: 36px;
  max-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  line-height: 0;
  overflow: visible;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.er-news-brief__btn:hover,
.er-news-brief__btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.er-news-brief__btn--hot {
  color: #ffe08a;
}

.er-news-brief__svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  pointer-events: none;
}

.er-news-brief__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 1;
  box-sizing: border-box;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(15, 60, 35, 0.55);
}

.er-news-brief__badge[hidden] {
  display: none !important;
}

.er-news-brief__ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid transparent;
  pointer-events: none;
  opacity: 0;
}

.er-news-brief__btn.is-ping .er-news-brief__ring {
  animation: er-brief-ring 1.1s ease-out 2;
}

.er-news-brief__btn.is-ping {
  animation: er-brief-shake 0.55s ease-in-out 2;
  color: #ffe08a;
}

.er-news-brief__btn.is-ping .er-news-brief__badge {
  animation: er-brief-badge-bump 0.45s ease-out 2;
}

@keyframes er-brief-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-12deg) scale(1.08); }
  40% { transform: rotate(10deg) scale(1.08); }
  60% { transform: rotate(-8deg) scale(1.05); }
  80% { transform: rotate(6deg) scale(1.02); }
}

@keyframes er-brief-ring {
  0% {
    opacity: 0.9;
    border-color: rgba(255, 224, 138, 0.95);
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    border-color: rgba(255, 224, 138, 0);
    transform: scale(1.55);
  }
}

@keyframes er-brief-badge-bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.35); }
}

.er-desk-live-toasts {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(340px, calc(100vw - 24px));
  pointer-events: none;
}

.er-desk-live-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 107, 156, 0.18);
  background: linear-gradient(160deg, #ffffff 0%, #f3f8fc 55%, #eef6fb 100%);
  box-shadow:
    0 12px 28px rgba(20, 40, 60, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  color: #1f3344;
  text-decoration: none;
  transform: translateY(-8px) scale(0.96);
  opacity: 0;
  animation: er-live-toast-in 0.38s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.er-desk-live-toast:hover {
  text-decoration: none;
  color: #1f3344;
  border-color: rgba(31, 107, 156, 0.35);
}

.er-desk-live-toast.is-out {
  animation: er-live-toast-out 0.28s ease-in forwards;
}

.er-desk-live-toast__seal {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.er-desk-live-toast__orbit {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 2px dashed rgba(31, 107, 156, 0.45);
  animation: er-live-orbit 4.5s linear infinite;
}

.er-desk-live-toast__orbit::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 999px;
  background: #1f6b9c;
  box-shadow: 0 0 0 3px rgba(31, 107, 156, 0.2);
}

.er-desk-live-toast__envelope {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(165deg, #1f6b9c 0%, #155a84 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(21, 90, 132, 0.35);
}

.er-desk-live-toast__envelope svg {
  width: 18px;
  height: 18px;
  display: block;
}

.er-desk-live-toast__avatar {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #dfe8f0;
  color: #2a3f50;
  font-size: 0.55rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.er-desk-live-toast__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-desk-live-toast__copy {
  min-width: 0;
}

.er-desk-live-toast__kicker {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f6b9c;
}

.er-desk-live-toast__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #173247;
}

.er-desk-live-toast__body {
  margin: 2px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #4a6070;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.er-desk-live-toast--meintag_done .er-desk-live-toast__envelope {
  background: linear-gradient(165deg, #2d8a5e 0%, #1f6b48 100%);
  box-shadow: 0 6px 14px rgba(31, 107, 72, 0.35);
}

.er-desk-live-toast--meintag_done .er-desk-live-toast__kicker {
  color: #1f6b48;
}

.er-desk-live-toast--meintag_done .er-desk-live-toast__orbit {
  border-color: rgba(45, 138, 94, 0.45);
}

.er-desk-live-toast--meintag_done .er-desk-live-toast__orbit::after {
  background: #2d8a5e;
  box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.2);
}

@keyframes er-live-toast-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes er-live-toast-out {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
}

@keyframes er-live-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .er-desk-live-toasts {
    position: fixed;
    top: auto;
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

.er-news-hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.er-news-hero__row .er-page-title {
  margin-bottom: 6px;
}

.er-news-hero__row .er-muted {
  margin: 0;
}

.er-news-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #b7dcc4;
  background: linear-gradient(180deg, #e8f7ee 0%, #f3fbf6 100%);
  color: #1b4332;
  text-decoration: none;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.er-news-status:hover {
  border-color: #7cbc93;
  background: #e2f4e9;
  text-decoration: none;
  color: #1b4332;
}

.er-news-status--ack {
  border-color: #e0c56a;
  background: linear-gradient(180deg, #fff6d9 0%, #fffaf0 100%);
  color: #6b4f00;
}

.er-news-status--ack:hover {
  border-color: #d0b04a;
  background: #fff1c7;
  color: #6b4f00;
}

.er-news-status--clear {
  border-color: #dce8e0;
  background: #f7faf8;
  color: #5a7064;
  cursor: default;
}

.er-news-status__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.er-news-status__text {
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.er-news-status__text strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.er-news-status__text span {
  font-size: 0.82rem;
  opacity: 0.85;
}

.er-news-status__chev {
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.55;
}

.er-news-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e0c56a;
  background: #fffbeb;
}

.er-news-confirm__text {
  display: grid;
  gap: 2px;
}

.er-news-confirm__text strong {
  font-size: 0.98rem;
}

.er-news-confirm--done {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #c9e6d3;
  background: #f4fbf6;
  color: #1b5e3a;
  font-weight: 650;
}


.er-news-brief__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(340px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid #dce8e0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 40, 28, 0.14);
  color: #1f2f26;
}

.er-news-brief__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.er-news-brief__panel-head a {
  font-size: 0.85rem;
}

.er-news-brief__panel-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e8efe9;
  font-size: 0.85rem;
}

.er-news-brief__empty {
  margin: 0;
  padding: 8px 4px;
}

.er-news-brief__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.er-news-brief__list a {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.er-news-brief__list a:hover {
  background: #f3f8f5;
}

.er-news-brief__list a.is-unread .er-news-brief__item-title {
  font-weight: 700;
}

.er-news-brief__item-title {
  font-size: 0.92rem;
}

.er-news-ack-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.er-news-ack-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 22, 0.55);
}

.er-news-ack-modal__card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.er-news-ack-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a6b00;
}

.er-news-ack-modal__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.er-news-ack-modal__body {
  margin: 0 0 18px;
  white-space: pre-wrap;
  line-height: 1.5;
  color: #2f463a;
}

.er-news-ack-modal__more {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.85rem;
}

.er-btn--block {
  width: 100%;
  justify-content: center;
}

.er-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.er-news-list__item a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid #e4eee7;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.er-news-list__item a:hover {
  border-color: #c5d6cb;
  background: #f8fbf9;
}

.er-news-list__item--unread a {
  border-color: #e0c56a;
  background: #fffdf5;
}

.er-news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.er-news-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3ef;
  font-size: 0.75rem;
  font-weight: 650;
}

.er-news-badge--ack {
  background: #fff3cd;
  color: #7a5a00;
}

.er-news-badge--scheduled {
  background: #e3eefc;
  color: #1e4b8c;
}

.er-news-badge--done {
  background: #d8f3e0;
  color: #146c3a;
}

.er-news-badge--revoked {
  background: #eceff1;
  color: #546e7a;
}

.er-news-revoked {
  margin-top: 12px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px dashed #b0bec5;
  background: #f5f7f8;
  text-align: center;
}

.er-news-revoked strong {
  display: block;
  font-size: 1.15rem;
  color: #455a64;
  margin-bottom: 6px;
}

.er-news-revoked .er-muted {
  margin: 0;
}

.er-news-detail__title--revoked {
  color: #78909c;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.er-news-list__item--revoked a {
  opacity: 0.85;
}

.er-news-all-done {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #9ed4b0;
  background: linear-gradient(180deg, #f0faf3 0%, #e5f6ea 100%);
}

.er-news-all-done__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #2d6a4f;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.er-news-all-done__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.er-news-all-done__text strong {
  color: #146c3a;
  font-size: 1.02rem;
}

.er-news-acks__pill--done {
  background: #d8f3e0;
  color: #146c3a;
}

.er-news-acks--complete {
  border-top-color: #c5e6d0;
}

.er-form--news-compose {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.er-news-compose-block {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e4eee7;
}

.er-news-compose-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.er-news-compose-block__title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a7f72;
}

.er-news-compose-block--when .er-news-schedule-card {
  margin: 12px 0 0;
}

.er-news-option-card {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #d7e3db;
  border-radius: 14px;
  background: #fff;
}

.er-news-option-card:last-child {
  margin-bottom: 0;
}

.er-news-option-card__head {
  margin-bottom: 12px;
}

.er-news-option-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 750;
  color: #1f2f26;
}

.er-news-option-card__lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #6a7f72;
}

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

.er-news-option-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid #d0ddd5;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f2f26;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.er-news-option-choice:hover {
  border-color: #9ecbb0;
}

.er-news-option-choice:has(input:checked) {
  border-color: var(--hb-green, #2d6a4f);
  background: var(--hb-green-light, #e8f3ec);
  color: var(--hb-green-dark, #1b4332);
  box-shadow: 0 2px 8px rgba(0, 150, 70, 0.1);
}

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

.er-news-option-card__nested {
  margin-top: 12px;
}

.er-news-option-card__hint {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ebe0b8;
  background: #fffbeb;
}

.er-news-option-card__hint strong {
  color: #7a5a00;
}

.er-news-compose-block .er-news-audience {
  margin-bottom: 12px;
}

.er-news-compose-block .er-news-ack-toggle {
  margin: 0;
}

.er-form-actions--news-compose {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.er-form-actions--news-detail {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.er-form-actions--news-detail .er-inline-form {
  display: inline-flex;
}

.er-news-schedule-card {
  margin: 0 0 16px;
  padding: 14px 16px 16px;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
}

.er-news-schedule-card.is-set {
  border-color: #8bb4e0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

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

.er-news-schedule-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: #1e4b8c;
  border: 1px solid #d6e4f5;
  flex-shrink: 0;
}

.er-news-schedule-card__intro {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.er-news-schedule-card__intro strong {
  color: #1e3a5f;
  font-size: 1rem;
}

.er-news-schedule-card__intro .er-muted {
  font-size: 0.84rem;
  line-height: 1.35;
}

.er-news-schedule-card__fields {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  .er-news-schedule-card__fields {
    grid-template-columns: 1fr;
  }
}

.er-news-schedule-card__field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.er-news-schedule-card__field > span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3a5470;
}

.er-news-schedule-card__field input[type="date"],
.er-news-schedule-card__field input[type="time"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c5d6ea;
  border-radius: 12px;
  background: #fff;
  color: #1f2f26;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.er-news-schedule-card__field input[type="date"]:focus,
.er-news-schedule-card__field input[type="time"]:focus {
  outline: none;
  border-color: #5b8fd4;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.er-news-schedule-card__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.er-news-schedule-card__chip {
  appearance: none;
  border: 1px solid #c5d6ea;
  background: #fff;
  color: #1e4b8c;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.er-news-schedule-card__chip:hover,
.er-news-schedule-card__chip.is-active {
  border-color: #5b8fd4;
  background: #e3eefc;
}

.er-news-schedule-card__preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d6e4f5;
}

.er-news-schedule-card__preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a7390;
}

.er-news-schedule-card__preview strong {
  color: #1e4b8c;
  font-size: 1.02rem;
}

.er-news-schedule-live-hint {
  margin: 0 0 14px;
}

.er-btn--schedule {
  border-color: #8bb4e0;
  color: #1e4b8c;
  background: #eef5fc;
}

.er-btn--schedule:hover {
  border-color: #5b8fd4;
  background: #e3eefc;
}

/* Markt-News Kalender */
.er-news-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.er-news-cal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2f26;
  text-align: center;
}

.er-news-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #6a7f72;
  text-align: center;
}

.er-news-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.er-news-cal__cell {
  min-height: 110px;
  padding: 8px;
  border: 1px solid #e0ebe4;
  border-radius: 12px;
  background: #fbfdfc;
}

.er-news-cal__cell--empty {
  background: transparent;
  border-color: transparent;
  min-height: 0;
}

.er-news-cal__cell.is-today {
  border-color: #7cbc93;
  box-shadow: inset 0 0 0 1px rgba(45, 106, 79, 0.15);
}

.er-news-cal__cell.is-selected {
  background: #eef8f1;
  border-color: #2d6a4f;
}

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

.er-news-cal__daynum {
  font-weight: 700;
  color: #1f2f26;
  text-decoration: none;
}

.er-news-cal__plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e8f3ec;
  color: #1b4332;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
}

.er-news-cal__plan:hover {
  background: #2d6a4f;
  color: #fff;
}

.er-news-cal__counts {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  text-decoration: none;
}

.er-news-cal__count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
}

.er-news-cal__count strong {
  font-size: 0.85rem;
  font-weight: 800;
}

.er-news-cal__count-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.er-news-cal__count--normal {
  background: #e8f3ec;
  color: #1b4332;
}

.er-news-cal__count--important {
  background: #fff0c2;
  color: #7a5200;
}

.er-news-cal__count--urgent {
  background: #fde2e1;
  color: #8b1e1a;
}

.er-news-cal__count--legend {
  display: inline-flex;
  justify-content: center;
  margin-right: 2px;
  vertical-align: middle;
}

.er-news-cal__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 0.84rem;
}

.er-news-cal-day {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .er-news-cal__cell {
    min-height: 88px;
    padding: 6px;
  }

  .er-news-cal__count-label {
    font-size: 0.65rem;
  }

  .er-news-cal__count strong {
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .er-news-cal__count-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .er-news-cal__count {
    justify-content: center;
    min-width: 1.6rem;
    padding: 2px 5px;
  }

  .er-news-cal__counts {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }
}


.er-news-priority--normal {
  background: #e8f3ec;
  color: #1b4332;
}

.er-news-priority--important {
  background: #fff0c2;
  color: #7a5200;
}

.er-news-priority--urgent {
  background: #fde2e1;
  color: #8b1e1a;
}

.er-news-priority-field {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}

.er-news-priority-field legend {
  font-weight: 650;
  margin-bottom: 8px;
}

.er-news-priority-field__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.er-news-priority-field__opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #d0ddd5;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.9rem;
  position: relative;
}

.er-news-priority-field__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.er-news-priority-field__opt--normal.is-on,
.er-news-priority-field__opt--normal:has(input:checked) {
  border-color: #7cbc93;
  background: #e8f3ec;
  color: #1b4332;
}

.er-news-priority-field__opt--important.is-on,
.er-news-priority-field__opt--important:has(input:checked) {
  border-color: #e0b84a;
  background: #fff0c2;
  color: #7a5200;
}

.er-news-priority-field__opt--urgent.is-on,
.er-news-priority-field__opt--urgent:has(input:checked) {
  border-color: #e08a84;
  background: #fde2e1;
  color: #8b1e1a;
}

.er-news-list__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.er-news-list__item--important a {
  border-left: 3px solid #e0b84a;
}

.er-news-list__item--urgent a {
  border-left: 3px solid #c0392b;
}

.er-news-detail__body {
  margin-top: 8px;
  line-height: 1.55;
}

.er-news-detail__body.er-news-prose {
  white-space: normal;
}

.er-news-acks {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e8efe9;
}

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

.er-news-acks__head .er-h3 {
  margin: 0;
}

.er-news-acks__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.er-news-acks__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  background: #eef4f0;
  color: #2f463a;
}

.er-news-acks__pill--read {
  background: #e5f6ea;
  color: #1b5e3a;
}

.er-news-acks__pill--unread {
  background: #f8ebe8;
  color: #8a2f24;
}

.er-news-acks__pill--ack {
  background: #fff4d6;
  color: #7a5a00;
}

.er-news-acks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 800px) {
  .er-news-acks__grid {
    grid-template-columns: 1fr;
  }
}

.er-news-acks__col {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e4eee7;
  background: #fbfdfc;
}

.er-news-acks__col--read {
  border-color: #c9e6d3;
  background: #f4fbf6;
}

.er-news-acks__col--unread {
  border-color: #efd5d0;
  background: #fff8f7;
}

.er-news-acks__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.er-news-acks__col-count,
.er-news-acks__role-count {
  min-width: 1.4em;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.er-news-acks__role + .er-news-acks__role {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d9e6de;
}

.er-news-acks__role-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #3d5648;
}

.er-news-acks__people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.er-news-acks__person {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.er-news-acks__person-name {
  font-weight: 650;
  font-size: 0.92rem;
}

.er-news-acks__person-meta {
  font-size: 0.78rem;
}

.er-news-acks__empty {
  margin: 0;
  font-size: 0.88rem;
}

.er-news-audience {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e2ebe5;
  border-radius: 14px;
  background: #f8fbf9;
}

.er-news-audience legend {
  padding: 0 4px;
  font-weight: 700;
}

.er-news-audience__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.er-news-preset {
  appearance: none;
  border: 1px solid #c5d6cb;
  background: #fff;
  color: #2f463a;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.er-news-preset:hover {
  border-color: var(--hb-green, #2d6a4f);
}

.er-news-preset.is-active {
  background: var(--hb-green, #2d6a4f);
  border-color: var(--hb-green, #2d6a4f);
  color: #fff;
}

.er-news-audience__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.er-news-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d0ddd5;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.er-news-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.er-news-chip__label {
  font-size: 0.88rem;
  font-weight: 600;
}

.er-news-chip__count {
  min-width: 1.35em;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e8f0eb;
  color: #4a6356;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.er-news-chip.is-on {
  border-color: var(--hb-green, #2d6a4f);
  background: #e8f5ee;
  color: var(--hb-green-dark, #1b4332);
}

.er-news-chip.is-on .er-news-chip__count {
  background: rgba(45, 106, 79, 0.15);
  color: var(--hb-green-dark, #1b4332);
}

.er-news-audience__reach {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.er-news-ack-toggle {
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ebe0b8;
  border-radius: 12px;
  background: #fffbeb;
}

.er-news-ack-toggle span {
  display: grid;
  gap: 2px;
}

.er-profile-news__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.er-profile-news__head .er-h2 {
  margin: 0 0 4px;
}

.er-profile-news__head .er-muted {
  margin: 0;
}

.er-profile-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.er-profile-news__item {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid #e4eee7;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.er-profile-news__item:hover {
  border-color: #c5d6cb;
  background: #f8fbf9;
}

.er-profile-news__item.is-unread .er-profile-news__title {
  font-weight: 700;
}

.er-profile-news__title {
  font-size: 0.98rem;
}

.er-news-inbox__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.er-news-inbox__head .er-h2 {
  margin: 0 0 4px;
}

.er-news-inbox__head .er-muted {
  margin: 0;
}

.er-news-inbox__search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.er-news-inbox__search input[type="search"] {
  min-width: min(220px, 70vw);
  padding: 8px 12px;
  border: 1px solid #d0ddd5;
  border-radius: 10px;
  font: inherit;
}

.er-news-inbox__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.er-news-inbox__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d0ddd5;
  background: #fff;
  text-decoration: none;
  color: #2f463a;
  font-size: 0.88rem;
  font-weight: 650;
}

.er-news-inbox__tab:hover {
  border-color: var(--hb-green, #2d6a4f);
  text-decoration: none;
}

.er-news-inbox__tab.is-active {
  background: var(--hb-green, #2d6a4f);
  border-color: var(--hb-green, #2d6a4f);
  color: #fff;
}

.er-news-inbox__tab-count {
  min-width: 1.4em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.er-news-inbox__tab.is-active .er-news-inbox__tab-count {
  background: rgba(255, 255, 255, 0.22);
}

.er-news-attachments {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8efe9;
}

.er-news-attachments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.er-news-attachments__image,
.er-news-attachments__file {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e4eee7;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.er-news-attachments__image:hover,
.er-news-attachments__file:hover {
  border-color: #c5d6cb;
  background: #f8fbf9;
}

.er-news-attachments__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eef4f0;
}

.er-news-attachments__image span,
.er-news-attachments__file span {
  font-size: 0.82rem;
  word-break: break-word;
}

.er-news-attach-edit__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.er-news-attach-edit__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e4eee7;
  border-radius: 10px;
  background: #fff;
}


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

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

/* Markt-News Schreibtools */
.er-field__label {
  display: block;
  font-weight: 650;
  margin-bottom: 6px;
}

.er-rte {
  border: 1px solid #c9d9cf;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 40, 28, 0.04);
}

.er-rte:focus-within {
  border-color: #7cbc93;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.er-rte__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #e4eee7;
  background: linear-gradient(180deg, #f7fbf8 0%, #eef6f1 100%);
}

.er-rte__group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.er-rte__btn {
  appearance: none;
  box-sizing: border-box;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #2f463a;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.er-rte__btn--wide {
  min-width: 0;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 650;
}

.er-rte__btn:hover {
  border-color: #c5d6cb;
  background: #fff;
}

.er-rte__btn.is-active {
  border-color: #9ecbb0;
  background: #dff3e7;
  color: #1b4332;
}

.er-rte__btn:focus-visible {
  outline: 2px solid #2d6a4f;
  outline-offset: 1px;
}

.er-rte__u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.er-rte__sep {
  width: 1px;
  align-self: stretch;
  min-height: 22px;
  margin: 0 2px;
  background: #d0ddd5;
}

.er-rte__select-wrap {
  margin: 0;
}

.er-rte__select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d0ddd5;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  color: #2f463a;
  cursor: pointer;
}

.er-rte__group--colors {
  gap: 5px;
  padding: 0 2px;
}

.er-rte__swatch {
  appearance: none;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--sw, #1f2f26);
  box-shadow: 0 0 0 1px rgba(30, 50, 40, 0.25);
  cursor: pointer;
}

.er-rte__swatch:hover,
.er-rte__swatch:focus-visible {
  transform: scale(1.08);
  outline: none;
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.35);
}

.er-rte__surface {
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #1f2f26;
  outline: none;
  caret-color: #2d6a4f;
  -webkit-user-select: text;
  user-select: text;
  cursor: text;
}

/* Inline-Größen aus dem Schreibtool müssen greifen */
.er-rte__surface span[style*="font-size"],
.er-news-prose span[style*="font-size"] {
  line-height: 1.35;
}

.er-rte.is-empty .er-rte__surface:before {
  content: attr(data-placeholder);
  color: #8aa093;
  pointer-events: none;
  position: absolute;
}

.er-rte__surface {
  position: relative;
}

.er-rte__select {
  width: auto !important;
  max-width: 140px;
  height: 34px;
  padding: 0 10px !important;
  border: 1px solid #d0ddd5;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #2f463a;
  cursor: pointer;
}

.er-rte__surface ul,
.er-news-prose ul {
  margin: 0.4em 0 0.4em 1.25em;
  padding: 0;
}

.er-rte__surface ol,
.er-news-prose ol {
  margin: 0.4em 0 0.4em 1.25em;
  padding: 0;
}

.er-rte__surface p,
.er-news-prose p {
  margin: 0 0 0.65em;
}

.er-rte__surface p:last-child,
.er-news-prose p:last-child {
  margin-bottom: 0;
}

.er-rte__surface a,
.er-news-prose a {
  color: var(--hb-green, #2d6a4f);
  font-weight: 600;
}

.er-news-prose {
  line-height: 1.55;
  color: #2f463a;
}

/* —— Tagesplan (Infotheke) —— */
.er-tagesplan-hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.er-tagesplan-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.er-tagesplan-stat--ok { color: #009646; font-weight: 700; }
.er-tagesplan-stat--empty { color: #b45309; font-weight: 700; }

.er-tagesplan-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.er-tagesplan-nav__print {
  margin-left: auto;
}

.er-tagesplan-nav__actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.er-tagesplan-layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 1.25rem;
  align-items: start;
}

.er-tagesplan-layout-preview {
  position: sticky;
  top: 1rem;
  padding: 0.85rem;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
  background: #eef5f0;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  min-width: 0;
  align-self: start;
}

.er-tagesplan-layout-preview__label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6f64;
}

.er-tagesplan-layout-preview__inner {
  min-width: 0;
}

.er-tagesplan-layout-preview .er-tagesplan-sheet,
.er-tagesplan-layout-preview__sheet {
  border: 1px solid #d7e5dc;
  border-radius: 10px;
  padding: 0.65rem;
  margin: 0;
  box-shadow: 0 4px 16px rgba(0, 60, 30, 0.06);
  overflow: hidden;
}

.er-tagesplan-layout-preview .er-tagesplan-sheet__head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom-width: 2px;
}

.er-tagesplan-layout-preview .er-tagesplan-sheet__title {
  font-size: 0.95rem;
}

.er-tagesplan-layout-preview .er-tagesplan-matrix {
  font-size: 0.72rem;
  border-radius: 0 0 8px 8px;
}

.er-tagesplan-layout-preview .er-tagesplan-matrix th,
.er-tagesplan-layout-preview .er-tagesplan-matrix td {
  padding: 4px 5px;
}

.er-tagesplan-layout-preview .er-tagesplan-matrix th:not(:first-child),
.er-tagesplan-layout-preview .er-tagesplan-matrix td.er-tagesplan-matrix__person {
  padding-left: 6px;
  padding-right: 6px;
}

/* Engere Spalte: Name / Durchwahl / Zeit untereinander statt nebeneinander */
.er-tagesplan-layout-preview .er-tagesplan-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  grid-template-columns: none;
}

.er-tagesplan-layout-preview .er-tagesplan-person__line,
.er-tagesplan-layout-preview .er-tagesplan-person__ext,
.er-tagesplan-layout-preview .er-tagesplan-person__time {
  grid-column: auto;
  justify-self: auto;
  text-align: left;
}

.er-tagesplan-layout-preview .er-tagesplan-person__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.er-tagesplan-layout-preview .er-tagesplan-person__name {
  font-size: 0.78rem;
}

.er-tagesplan-layout-preview .er-tagesplan-person__ext,
.er-tagesplan-layout-preview .er-tagesplan-person__time {
  font-size: 0.7rem;
}

@media (max-width: 1100px) {
  .er-tagesplan-layout-shell {
    grid-template-columns: 1fr;
  }

  .er-tagesplan-layout-preview {
    position: static;
    max-height: none;
  }
}

.er-tagesplan-layout-block {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
  background: #f9fcfa;
}

.er-tagesplan-layout-block legend {
  padding: 0 0.35rem;
  font-weight: 750;
  color: #005028;
}

.er-tagesplan-layout-group-intro {
  margin: 0 0 0.75rem;
}

.er-tagesplan-layout-sublegend {
  margin: 0.85rem 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f463a;
}

.er-tagesplan-layout-colors,
.er-tagesplan-layout-stations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
}

.er-tagesplan-layout-stations {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.er-tagesplan-layout-station-block {
  padding: 0.75rem 0.85rem;
  border: 1px solid #d7e5dc;
  border-radius: 12px;
  background: #fff;
}

.er-tagesplan-layout-station-title {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  font-weight: 750;
  color: #1a2e24;
}

.er-tagesplan-layout-colors--station {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.er-tagesplan-layout-station input[type="color"],
.er-tagesplan-layout-colors input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 2px;
  border: 1px solid #c9d9cf;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.er-tagesplan-layout-scale input[type="range"] {
  width: 100%;
  max-width: 360px;
}

.er-tagesplan-layout-reset {
  margin-top: 1rem;
}

.er-tagesplan-publish {
  display: inline-flex;
  margin: 0;
}

.er-tagesplan-publish-settings__box {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
  background: #f9fcfa;
}

.er-tagesplan-publish-settings__label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #5a6f64;
}

.er-tagesplan-publish-settings__folder {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3a2a;
}

.er-tagesplan-publish-settings__hint {
  margin: 0 0 14px;
}

.er-tagesplan-archiv__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.er-tagesplan-archiv__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d7e5dc;
  border-radius: 12px;
  background: #f9fcfa;
}

.er-tagesplan-archiv__row strong {
  display: block;
}

.er-tagesplan-archiv__row small {
  display: block;
  margin-top: 4px;
  color: #5a6f64;
}

.er-tagesplan-inactive__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.er-tagesplan-inactive__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d7e5dc;
  border-radius: 12px;
  background: #f9fcfa;
}

.er-tagesplan-inactive__form {
  margin: 0;
}

.er-tagesplan-archiv__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.er-tagesplan-nav__date input[type="date"] {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid #c9d9cf;
  border-radius: 10px;
  background: #fff;
}

.er-tagesplan-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.er-tagesplan-toolbar__hint {
  margin: 0;
  flex: 1 1 200px;
}

.er-tagesplan-edit-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

.er-tagesplan-group {
  background: #fff;
  border: 1px solid #d7e5dc;
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow: 0 1px 0 rgba(0, 80, 40, 0.04);
}

.er-tagesplan-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5ee;
}

.er-tagesplan-group__title {
  margin: 0;
  font-size: 1.15rem;
  color: #005028;
  letter-spacing: 0.01em;
}

.er-tagesplan-group__meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: #5a6f64;
}

.er-tagesplan-edit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.er-tagesplan-station {
  background: #f7fbf8;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
  padding: 12px;
}

.er-tagesplan-station--empty {
  background: #fffaf3;
  border-style: dashed;
  border-color: #f0d7a8;
}

.er-tagesplan-station__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.er-tagesplan-station__head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #005028;
}

.er-tagesplan-station__count {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8f5ee;
  color: #005028;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.er-tagesplan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.er-tagesplan-badge--ok {
  background: #e8f5ee;
  color: #009646;
}

.er-tagesplan-badge--empty {
  background: #fff1d6;
  color: #9a6700;
}

.er-tagesplan-station__empty {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #9a6700;
}

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

.er-tagesplan-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
}

.er-tagesplan-slot__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.er-tagesplan-slot__name { color: #1a2e24; }

.er-tagesplan-slot__ext {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #009646;
  background: #e8f5ee;
  border-radius: 8px;
  padding: 1px 7px;
  font-size: 0.85rem;
}

.er-tagesplan-slot__ext--empty {
  color: #8aa094;
  background: #f3f6f4;
  font-weight: 500;
}

.er-tagesplan-slot__time {
  color: #5a6f64;
  font-size: 0.88rem;
}

.er-tagesplan-add {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px dashed #d7e5dc;
}

.er-tagesplan-station--empty .er-tagesplan-add {
  border-top-color: #f0d7a8;
}

.er-tagesplan-add .er-field { margin: 0; }

.er-tagesplan-add input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #c9d9cf;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.er-tagesplan-add input[type="search"]:focus {
  outline: 2px solid rgba(0, 150, 70, 0.25);
  border-color: #009646;
}

.er-tagesplan-people {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow: auto;
  padding: 4px;
  border-radius: 10px;
  background: #eef6f1;
}

.er-tagesplan-people__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  color: #1a2e24;
}

.er-tagesplan-people__btn:hover,
.er-tagesplan-people__btn.is-active {
  background: #e8f5ee;
  color: #005028;
}

.er-tagesplan-people__ext {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #009646;
  font-size: 0.85rem;
}

.er-tagesplan-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.er-tagesplan-preset {
  border: 1px solid #cfe8d9;
  background: #fff;
  color: #2f463a;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.er-tagesplan-preset:hover {
  border-color: #009646;
  color: #005028;
}

.er-tagesplan-preset.is-active {
  background: #009646;
  border-color: #009646;
  color: #fff;
}

/* —— Sheet / Board / Print —— */
.er-tagesplan-sheet {
  background: #fff;
  border: 1px solid #d7e5dc;
  border-radius: 18px;
  padding: 18px 18px 14px;
  margin-top: 4px;
}

.er-tagesplan-sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid #009646;
}

.er-tagesplan-sheet__brand {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #009646;
}

.er-tagesplan-sheet__powered {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5a6f64;
}

.er-tagesplan-sheet__title {
  margin: 0;
  font-size: 1.55rem;
  color: #005028;
  line-height: 1.2;
}

.er-tagesplan-sheet__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.er-tagesplan-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4f0;
  color: #2f463a;
  font-size: 0.85rem;
  font-weight: 700;
}

.er-tagesplan-pill--ok {
  background: #e8f5ee;
  color: #009646;
}

.er-tagesplan-pill--empty {
  background: #fff1d6;
  color: #9a6700;
}

.er-tagesplan-sheet__print-hint {
  width: 100%;
  display: flex;
  gap: 8px;
  margin: 4px 0 0;
}

.er-tagesplan-sheet__group {
  margin-bottom: 14px;
  break-inside: avoid;
}

.er-tagesplan-sheet__group.is-all-empty .er-tagesplan-sheet__group-head {
  background: #fff8eb;
  border-color: #f0d7a8;
}

.er-tagesplan-sheet__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 0;
  background: #e8f5ee;
  border: 1px solid #cfe8d9;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.er-tagesplan-sheet__group-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #005028;
}

.er-tagesplan-sheet__group-head span {
  font-size: 0.82rem;
  font-weight: 800;
  color: #5a6f64;
}

.er-tagesplan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border: 1px solid #cfe8d9;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.er-tagesplan-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6f64;
  background: #f5faf7;
  padding: 7px 10px;
  border-bottom: 1px solid #d7e5dc;
}

.er-tagesplan-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #eef4f0;
  vertical-align: middle;
}

.er-tagesplan-table tr:last-child td {
  border-bottom: 0;
}

.er-tagesplan-table__dept {
  width: 28%;
  font-weight: 700;
  color: #1a2e24;
}

.er-tagesplan-table__name { width: 28%; }
.er-tagesplan-table__ext {
  width: 14%;
  font-variant-numeric: tabular-nums;
  color: #009646;
  font-weight: 700;
}

.er-tagesplan-table__time {
  width: 18%;
  font-variant-numeric: tabular-nums;
  color: #5a6f64;
}

.er-tagesplan-table__status {
  width: 12%;
  text-align: right;
}

.er-tagesplan-table__row--empty {
  background: #fffaf3;
}

.er-tagesplan-table__row--empty .er-tagesplan-table__dept {
  color: #9a6700;
}

.er-tagesplan-table__row--filled:nth-child(even) {
  background: #f9fcfa;
}

.er-tagesplan-vacant {
  color: #b45309;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
}

.er-tagesplan-sheet__foot {
  margin: 12px 2px 0;
  font-size: 0.82rem;
  color: #7a8f84;
}


.er-tagesplan-zeiten .er-h2 {
  margin: 0 0 6px;
}

.er-tagesplan-zeiten-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.er-tagesplan-zeiten-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.4fr) 110px 110px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: #f7fbf8;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
}

.er-tagesplan-zeiten-row .er-field {
  margin: 0;
}

.er-tagesplan-zeiten-row input[type="text"],
.er-tagesplan-zeiten-row input[type="time"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c9d9cf;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.er-tagesplan-zeiten-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.er-tagesplan-zeiten-reset {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #d7e5dc;
}

@media (max-width: 720px) {
  .er-tagesplan-zeiten-row {
    grid-template-columns: 1fr 1fr;
  }
  .er-tagesplan-zeiten-row .er-field:first-child {
    grid-column: 1 / -1;
  }
}


.er-tagesplan-stat--krank { color: #b42318; font-weight: 700; }

.er-tagesplan-badge--schliess {
  background: #eef2ff;
  color: #3538cd;
  font-weight: 700;
  white-space: nowrap;
}

.er-tagesplan-badge--schliess-auf {
  background: #ecfdf3;
  color: #067647;
}

.er-tagesplan-badge--schliess-zu {
  background: #fff4ed;
  color: #b93815;
}

.er-tagesplan-badge--fehlt {
  background: #f2f4f7;
  color: #344054;
}

.er-tagesplan-pill--krank {
  background: #fee4e2;
  color: #b42318;
}

.er-tagesplan-slot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.er-tagesplan-slot--krank {
  background: #fff5f5;
  border: 1px solid #fecdca;
  border-left: 4px solid #d92d20;
}

.er-tagesplan-slot--fehlt {
  background: #f9fafb;
  border: 1px solid #d0d5dd;
  border-left: 4px solid #667085;
}

.er-tagesplan-slot--krank .er-tagesplan-slot__name {
  text-decoration: line-through;
  color: #912018;
}

.er-tagesplan-slot--fehlt .er-tagesplan-slot__name {
  color: #475467;
}

.er-tagesplan-slot__status {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 0;
}

.er-tagesplan-slot__status--krank {
  color: #b42318;
}

.er-tagesplan-slot__status--fehlt {
  color: #475467;
}

.er-tagesplan-btn-krank {
  color: #b42318 !important;
}

.er-tagesplan-matrix {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid #cfe8d9;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.er-tagesplan-matrix__col-dept { width: 20%; }
.er-tagesplan-matrix__col-person { width: 26.66%; }

.er-tagesplan-matrix th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6f64;
  background: #f5faf7;
  padding: 6px 8px;
  border-bottom: 1px solid #d7e5dc;
}

.er-tagesplan-matrix td {
  padding: 6px 8px;
  border-bottom: 1px solid #eef4f0;
  border-right: 1px solid #eef4f0;
  vertical-align: top;
}

/* Früh | Mittel | Spät — etwas Luft zwischen den Schicht-Spalten */
.er-tagesplan-matrix th:not(:first-child),
.er-tagesplan-matrix td.er-tagesplan-matrix__person {
  padding-left: 12px;
  padding-right: 12px;
  border-right: 1px solid #c5d9cc;
}

.er-tagesplan-matrix td:last-child {
  border-right: 0;
}

.er-tagesplan-matrix__dept {
  font-weight: 700;
  color: #1a2e24;
  background: #f9fcfa;
}

.er-tagesplan-matrix__dept .er-tagesplan-badge {
  margin-left: 6px;
  vertical-align: middle;
}

.er-tagesplan-matrix__row.is-empty {
  background: #fffaf3;
}

.er-tagesplan-matrix__row.is-empty .er-tagesplan-matrix__dept {
  color: #9a6700;
  background: #fff8eb;
}

.er-tagesplan-person {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6em 7.4em;
  column-gap: 8px;
  align-items: baseline;
}

.er-tagesplan-person.is-krank {
  padding: 4px 6px;
  margin: 0 -6px;
  border-radius: 8px;
  background: #fff5f5;
}

.er-tagesplan-person__line {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}

.er-tagesplan-person__name {
  color: #1a2e24;
  font-size: 0.92rem;
}

.er-tagesplan-person__meta {
  display: contents;
}

.er-tagesplan-person__ext {
  grid-column: 2;
  justify-self: start;
  font-weight: 800;
  color: #009646;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  white-space: nowrap;
}

.er-tagesplan-person__time {
  grid-column: 3;
  justify-self: end;
  color: #5a6f64;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  white-space: nowrap;
  text-align: right;
}

.er-tagesplan-person__actions {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.er-tagesplan-person:hover .er-tagesplan-person__actions,
.er-tagesplan-person:focus-within .er-tagesplan-person__actions {
  opacity: 1;
  pointer-events: auto;
}

/* Krank-Aktion: unsichtbar im Layout, nur Hover/Focus — kein Text unter Name/Zeit */
.er-tagesplan-person__krank {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 2;
}

.er-tagesplan-person:hover .er-tagesplan-person__krank,
.er-tagesplan-person:focus-within .er-tagesplan-person__krank {
  opacity: 1;
  pointer-events: auto;
}

.er-tagesplan-person__krank-btn {
  border: 1px solid #fecdca;
  background: #fff;
  color: #b42318;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(26, 46, 36, 0.08);
}

.er-tagesplan-person__krank-btn:hover,
.er-tagesplan-person__krank-btn:focus-visible {
  background: #fee4e2;
  outline: none;
}

.er-tagesplan-person__del-btn {
  border: 1px solid #d5e0d9;
  background: #fff;
  color: #5a7366;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.er-tagesplan-person__del-btn:hover,
.er-tagesplan-person__del-btn:focus-visible {
  background: #f4f8f5;
  color: #b42318;
  border-color: #fecdca;
  outline: none;
}

.er-tagesplan-mini-btn {
  border: 0;
  background: transparent;
  color: #b42318;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.er-tagesplan-vacant--soft {
  color: #d0ddd5;
  font-style: normal;
}

.er-tagesplan-vacant--edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: #9bb3a4;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.er-tagesplan-sheet__hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #5a7366;
}

.er-tagesplan-matrix--editable .er-tagesplan-matrix__person.is-editable {
  cursor: pointer;
  vertical-align: top;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.er-tagesplan-matrix--editable .er-tagesplan-matrix__person.is-editable:hover,
.er-tagesplan-matrix--editable .er-tagesplan-matrix__person.is-editable:focus-visible {
  background: #f3faf6;
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0, 80, 40, 0.18);
}

.er-tagesplan-matrix--editable .er-tagesplan-matrix__person.is-editable.is-editing {
  background: #eaf6ef;
  box-shadow: inset 0 0 0 2px rgba(0, 80, 40, 0.35);
}

.er-tagesplan-cell-add-more {
  display: inline-flex;
  margin-top: 0.35rem;
  border: 1px dashed #b7cfc2;
  background: #fff;
  color: #5a7366;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.er-tagesplan-cell-add-more:hover {
  border-color: #005028;
  color: #005028;
  background: #f3faf6;
}

.er-tagesplan-cell-pop {
  position: fixed;
  z-index: 80;
  background: #fff;
  border: 1px solid rgba(0, 80, 40, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 45, 22, 0.16);
  padding: 0.85rem 0.9rem 0.95rem;
}

.er-tagesplan-cell-pop__title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2e24;
}

.er-tagesplan-cell-pop__hint {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.er-tagesplan-cell-pop__form .er-field {
  margin: 0;
}

.er-tagesplan-cell-pop__form .er-field input {
  width: 100%;
  min-height: 42px;
  font-size: 1rem;
}

.er-tagesplan-presets--cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.65rem;
}

.er-tagesplan-cell-pop__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.er-tagesplan-cell-pop .er-tagesplan-people {
  max-height: 200px;
  overflow: auto;
  margin-top: 0.35rem;
}

.er-tagesplan-people__empty {
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
  color: #5a7366;
  background: #f4f8f5;
  border-radius: 8px;
}

.er-tagesplan-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0.85rem 0 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 80, 40, 0.18);
  background: linear-gradient(160deg, #eef8f2 0%, #f7fbf8 100%);
}

.er-tagesplan-review--done {
  border-color: rgba(0, 80, 40, 0.28);
  background: #f3faf6;
}

.er-tagesplan-review__title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 800;
  color: #005028;
}

.er-tagesplan-review__lead {
  margin: 0;
  font-size: 0.9rem;
  color: #3d5548;
  line-height: 1.4;
}

.er-tagesplan-review__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* —— Absenzen-Leiste (Board = Druck) —— */
.er-tagesplan-away {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff8f6 0%, #fff 100%);
  border: 1px solid #fecdca;
  border-radius: 14px;
}

.er-tagesplan-away__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.er-tagesplan-away__title {
  margin: 0;
  font-size: 0.95rem;
  color: #912018;
}

.er-tagesplan-away__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 6px;
  border-radius: 999px;
  background: #fee4e2;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 800;
}

.er-tagesplan-away__group {
  margin-top: 8px;
}

.er-tagesplan-away__group + .er-tagesplan-away__group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #fecdca;
}

.er-tagesplan-away__group--fehlt + .er-tagesplan-away__group,
.er-tagesplan-away__group--fehlt {
  border-top-color: #d0d5dd;
}

.er-tagesplan-away__group-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b42318;
}

.er-tagesplan-away__group--fehlt .er-tagesplan-away__group-label {
  color: #475467;
}

.er-tagesplan-away__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.er-tagesplan-away__item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 6px 10px 6px 8px;
  background: #fff;
  border: 1px solid #fecdca;
  border-left: 3px solid #d92d20;
  border-radius: 10px;
  font-size: 0.88rem;
}

.er-tagesplan-away__item--fehlt {
  border-color: #d0d5dd;
  border-left-color: #667085;
  background: #f9fafb;
}

.er-tagesplan-away__name {
  font-weight: 700;
  color: #1a2e24;
}

.er-tagesplan-away__dept {
  color: #667085;
  font-size: 0.8rem;
}

.er-tagesplan-away__action {
  margin-left: 2px;
}

.er-tagesplan-away__action .er-tagesplan-mini-btn {
  color: #067647;
}

/* —— Unified Matrix (Board = Print-Look) —— */
.er-tagesplan-matrix--unified {
  border-radius: 12px;
  overflow: hidden;
}

.er-tagesplan-matrix__group-row th {
  text-align: left;
  font-size: 0.88rem;
  font-weight: 800;
  color: #005028;
  background: #d8efe3;
  padding: 8px 10px;
  border-top: 2px solid #009646;
  border-bottom: 1px solid #b7dcc8;
  letter-spacing: 0.02em;
  text-transform: none;
}

.er-tagesplan-sheet--board .er-tagesplan-matrix--unified {
  font-size: 0.92rem;
}

.er-tagesplan-badge--krank {
  background: #fee4e2;
  color: #b42318;
}

.er-tagesplan-badge--azubi {
  background: #eef4ff;
  color: #3538cd;
  letter-spacing: 0.03em;
}

.er-tagesplan-person.is-azubi .er-tagesplan-person__name {
  color: #1d2939;
}

.er-tagesplan-person__time {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #344054;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.er-tagesplan-stat--draft {
  color: #b54708;
  font-weight: 700;
}

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

.er-tagesplan-draft-banner {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: #fff8eb;
  border: 1px solid #f0d7a8;
  border-radius: 10px;
  color: #7a4d00;
  font-size: 0.9rem;
}

.er-tagesplan-draft-banner strong {
  color: #5c3a00;
}

/* —— Azubi-Wochenzuweisung —— */
.er-tagesplan-zuweisung__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 18px;
}

.er-tagesplan-zuweisung__head .er-h2 {
  margin: 0 0 6px;
}

.er-tagesplan-zuweisung-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.er-tagesplan-zuweisung-nav__range {
  font-weight: 800;
  color: #005028;
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
}

.er-tagesplan-zuweisung-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.er-tagesplan-zuweisung-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: #f9fcfa;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
}

.er-tagesplan-zuweisung-card.is-assigned {
  background: #eef8f2;
  border-color: #b7dcc8;
}

.er-tagesplan-zuweisung-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #3538cd;
  font-size: 0.82rem;
  font-weight: 800;
}

.er-tagesplan-zuweisung-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.er-tagesplan-zuweisung-card__name {
  font-weight: 700;
  color: #1a2e24;
  font-size: 0.95rem;
}

.er-tagesplan-zuweisung-card__field {
  width: 100%;
  margin-top: 4px;
}

.er-tagesplan-zuweisung-card__field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c5d9cc;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.er-tagesplan-zuweisung-form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media print {
  .er-tagesplan-away {
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 0;
    background: #fff5f5;
  }
  .er-tagesplan-away__title {
    font-size: 10pt;
  }
  .er-tagesplan-away__list {
    gap: 4px;
  }
  .er-tagesplan-away__item {
    padding: 2px 6px;
    font-size: 9pt;
    border-radius: 4px;
  }
  .er-tagesplan-person__time {
    background: transparent;
    padding: 0;
    font-size: 9pt;
  }
}

.er-tagesplan-matrix__person .er-tagesplan-person + .er-tagesplan-person {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e0e8e3;
}

.er-tagesplan-person.is-krank .er-tagesplan-person__name {
  text-decoration: line-through;
  color: #912018;
}


.er-tagesplan-import-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 16px 0 8px;
  position: relative;
}

.er-tagesplan-import-upload .er-field {
  margin: 0;
  min-width: min(280px, 100%);
}

.er-tagesplan-import-upload.is-ocr-busy > .er-field,
.er-tagesplan-import-upload.is-ocr-busy > .er-btn,
.er-tagesplan-import-upload.is-ocr-busy > .er-field-hint {
  opacity: 0.45;
  pointer-events: none;
}

.er-tagesplan-ocr-wait {
  flex: 1 1 100%;
  margin-top: 0.35rem;
}

.er-tagesplan-ocr-wait__card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 80, 40, 0.16);
  background: linear-gradient(160deg, #eef8f2 0%, #f8fcf9 100%);
  box-shadow: 0 8px 24px rgba(0, 45, 22, 0.06);
}

.er-tagesplan-ocr-wait__spinner {
  grid-row: 1 / span 3;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 3px solid #cfe3d6;
  border-top-color: #005028;
  animation: er-tagesplan-ocr-spin 0.85s linear infinite;
}

.er-tagesplan-ocr-wait__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #005028;
}

.er-tagesplan-ocr-wait__status {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a2e24;
}

.er-tagesplan-ocr-wait__hint {
  margin: 0;
  font-size: 0.8rem;
  color: #5a7366;
  line-height: 1.35;
}

.er-tagesplan-ocr-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 28, 18, 0.45);
  backdrop-filter: blur(2px);
}

.er-tagesplan-ocr-overlay[hidden] {
  display: none !important;
}

.er-tagesplan-ocr-overlay__card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 0.95rem;
  row-gap: 0.25rem;
  align-items: center;
  width: min(420px, 100%);
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 80, 40, 0.18);
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 30, 15, 0.28);
}

.er-tagesplan-ocr-overlay__card .er-tagesplan-ocr-wait__spinner {
  grid-row: 1 / span 3;
}

body.er-ocr-busy {
  overflow: hidden;
}

@keyframes er-tagesplan-ocr-spin {
  to {
    transform: rotate(360deg);
  }
}

.er-tagesplan-import-preview {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #d7e5dc;
}

.er-tagesplan-import-fix {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: #f4faf6;
  border: 1px solid #d7e5dc;
  border-radius: 12px;
}

.er-tagesplan-import-fix__summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}

.er-tagesplan-import-fix__summary::-webkit-details-marker {
  display: none;
}

.er-tagesplan-import-fix__summary::before {
  content: '▸ ';
  color: #2f6b4f;
}

.er-tagesplan-import-fix[open] > .er-tagesplan-import-fix__summary::before {
  content: '▾ ';
}

.er-tagesplan-import-fix__hint {
  margin: 8px 0 10px;
}

.er-tagesplan-import-fix__label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5a6f64;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.er-tagesplan-import-fix-rest {
  margin-top: 10px;
}

.er-tagesplan-import-fix-rest > summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: #3d5a4a;
}

.er-tagesplan-import-fix .er-h3 {
  margin: 0 0 6px;
}

.er-tagesplan-import-fix-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 12px;
  margin: 12px 0;
  max-height: 220px;
  overflow: auto;
}

.er-tagesplan-import-fix-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
}

.er-tagesplan-import-fix-row.is-unmatched .er-tagesplan-import-fix-name {
  color: #a15c00;
}

.er-tagesplan-import-fix-name {
  font-weight: 600;
}

.er-tagesplan-import-fix-row select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #c5d9cc;
  border-radius: 8px;
  background: #fff;
}

.er-tagesplan-import-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.er-tagesplan-import-open {
  margin: 1.1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(180, 100, 20, 0.22);
  background: #fffaf3;
}

.er-tagesplan-import-open__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 0.65rem;
}

.er-tagesplan-import-open__head .er-h3 {
  margin: 0 0 0.2rem;
}

.er-tagesplan-import-open__head .er-muted {
  margin: 0;
  font-size: 0.88rem;
}

.er-tagesplan-import-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.er-tagesplan-import-open-scroll {
  max-height: min(42vh, 420px);
  overflow: auto;
  border: 1px solid rgba(0, 80, 40, 0.1);
  border-radius: 10px;
  background: #fff;
}

.er-tagesplan-import-open-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.er-tagesplan-import-open-table th,
.er-tagesplan-import-open-table td {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #eef4f0;
  vertical-align: top;
  text-align: left;
}

.er-tagesplan-import-open-table thead th {
  position: sticky;
  top: 0;
  background: #f4faf6;
  z-index: 1;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5a6f64;
}

.er-tagesplan-import-open-table tbody tr:last-child td {
  border-bottom: 0;
}

.er-tagesplan-import-open-row__meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: #5a7366;
  font-weight: 400;
}

.er-tagesplan-import-open-select {
  min-width: 130px;
  padding: 5px 8px;
  border: 1px solid #c5d9cc;
  border-radius: 8px;
  background: #fff;
}

.er-tagesplan-import-reason {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #eef4f0;
  color: #3d5a4a;
  white-space: nowrap;
}

.er-tagesplan-import-reason--no_time {
  background: #fff0e0;
  color: #9a5a00;
}

.er-tagesplan-import-reason--krank {
  background: #fde8e8;
  color: #a33;
}

.er-tagesplan-import-open-row__times {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.er-tagesplan-presets--import {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.er-tagesplan-import-open-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.er-tagesplan-import-open-day {
  margin: 0;
  font-size: 0.82rem;
}

.er-tagesplan-import-table-details {
  margin: 12px 0 16px;
  padding: 10px 14px;
  border: 1px solid #d7e5dc;
  border-radius: 12px;
  background: #fbfdfc;
}

.er-tagesplan-import-table-details > summary {
  cursor: pointer;
  font-weight: 700;
}

.er-tagesplan-import-table-wrap {
  margin-top: 10px;
  max-height: min(40vh, 380px);
  overflow: auto;
}

.er-tagesplan-import-sticky {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 12px;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

.er-tagesplan-import-sticky .er-field-hint {
  margin: 6px 0 0;
}

.er-tagesplan-src {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8eef2;
  color: #445;
}

.er-tagesplan-src--profil {
  background: #d9f0e1;
  color: #1a6b3c;
}

.er-tagesplan-src--woche {
  background: #dde8ff;
  color: #1e3a8a;
}

.er-tagesplan-src--ocr,
.er-tagesplan-src--merk {
  background: #f5ead0;
  color: #7a5a10;
}

.er-tp-stations-wrap {
  overflow: auto;
  margin: 12px 0 8px;
  border: 1px solid #d7e5dc;
  border-radius: 12px;
  max-height: 420px;
}

.er-tp-stations-head {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(10rem, 1fr) 3rem auto 2rem;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4faf6;
  border-bottom: 1px solid #d7e5dc;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b61;
  font-weight: 650;
}

.er-tp-stations-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #eef4f0;
}

.er-tp-stations-row:last-child {
  border-bottom: 0;
}

.er-tp-stations-row__edit {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(10rem, 1fr) 3rem auto;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.er-tp-stations-row__delete {
  flex-shrink: 0;
}

.er-tp-stations-staff {
  text-align: center;
  color: #5a6b61;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.er-tp-stations-select,
.er-tp-stations-input {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #c5d9cc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.er-tp-stations-add-details {
  margin-top: 12px;
  padding-top: 4px;
}

.er-tp-stations-add-details > summary {
  cursor: pointer;
  font-weight: 650;
  color: #005028;
  margin-bottom: 10px;
}

.er-tagesplan-stations-add {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #eef4f0;
}

@media (max-width: 720px) {
  .er-tp-stations-head {
    display: none;
  }

  .er-tp-stations-row {
    flex-wrap: wrap;
  }

  .er-tp-stations-row__edit {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.er-tagesplan-import-table-wrap {
  overflow: auto;
  max-height: 420px;
  border: 1px solid #d7e5dc;
  border-radius: 12px;
  margin: 12px 0;
}

.er-tagesplan-import-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.er-tagesplan-import-table th,
.er-tagesplan-import-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #eef4f0;
  text-align: left;
  vertical-align: top;
}

.er-tagesplan-import-table th {
  position: sticky;
  top: 0;
  background: #f5faf7;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.er-tagesplan-import-table tr.is-unmatched {
  background: #fff8eb;
}

.er-tagesplan-import-skipped {
  margin: 12px 0;
}

.er-tagesplan-import-apply {
  margin-top: 14px;
}

body.er-tagesplan-print-page {
  background: #fff;
}

body.er-tagesplan-print-page .er-main {
  max-width: 1100px;
  margin: 16px auto;
  padding: 0 12px;
}

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

  .er-tagesplan-table__status {
    display: none;
  }

  .er-tagesplan-table th.er-tagesplan-table__status {
    display: none;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 5mm;
  }

  html, body {
    background: #fff !important;
    font-size: 11pt !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .er-desk-header,
  .er-desk-sidebar,
  .er-desk-nav,
  .no-print,
  .er-tagesplan-hero,
  .er-tagesplan-toolbar,
  .er-flash,
  .er-tagesplan-sheet__print-hint,
  .er-tagesplan-person__actions,
  .er-tagesplan-sheet__foot {
    display: none !important;
  }

  .er-main,
  .er-tagesplan,
  .er-tagesplan--print {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .er-tagesplan-sheet,
  .er-tagesplan-sheet--print {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .er-tagesplan-sheet__head {
    border-bottom: 1.5pt solid #009646 !important;
    margin-bottom: 3mm !important;
    padding-bottom: 2mm !important;
    gap: 6px !important;
  }

  .er-tagesplan-sheet__brand {
    font-size: 9pt !important;
    margin: 0 !important;
  }

  .er-tagesplan-sheet__powered {
    font-size: 8pt !important;
    margin: 0 0 2px !important;
    color: #5a6f64 !important;
  }

  .er-tagesplan-sheet__title {
    font-size: 15pt !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .er-tagesplan-sheet__stats {
    gap: 4px !important;
  }

  .er-tagesplan-pill {
    padding: 2px 8px !important;
    font-size: 9pt !important;
  }

  .er-tagesplan-matrix--print-sheet {
    border-radius: 0 !important;
    font-size: 11pt !important;
    width: 100% !important;
  }

  .er-tagesplan-matrix--print-sheet thead th {
    padding: 5px 6px !important;
    font-size: 9pt !important;
    background: #e8f5ee !important;
  }

  .er-tagesplan-matrix--print-sheet thead th:not(:first-child),
  .er-tagesplan-matrix--print-sheet td.er-tagesplan-matrix__person {
    padding-left: 9px !important;
    padding-right: 9px !important;
    border-right: 1pt solid #b8d4c4 !important;
  }

  .er-tagesplan-matrix--print-sheet td:last-child {
    border-right: 0 !important;
  }

  .er-tagesplan-matrix__group-row th {
    text-align: left !important;
    font-size: 10pt !important;
    font-weight: 800 !important;
    color: #005028 !important;
    background: #d8efe3 !important;
    padding: 5px 6px !important;
    border-top: 1pt solid #009646 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .er-tagesplan-matrix--print-sheet td {
    padding: 4px 6px !important;
    line-height: 1.3 !important;
    vertical-align: middle !important;
  }

  .er-tagesplan-matrix__dept {
    font-size: 10.5pt !important;
    font-weight: 700 !important;
  }

  .er-tagesplan-person {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 2.4em 7.2em !important;
    column-gap: 6px !important;
    align-items: baseline !important;
    margin: 0 0 2px !important;
    padding: 1px 0 !important;
  }

  .er-tagesplan-person__name {
    font-size: 11pt !important;
  }

  .er-tagesplan-person__line {
    grid-column: 1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 3px 6px !important;
    margin: 0 !important;
  }

  .er-tagesplan-person__meta {
    display: contents !important;
  }

  .er-tagesplan-person__ext,
  .er-tagesplan-person__time {
    font-size: 9pt !important;
    font-weight: 600 !important;
    color: #3d5248 !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
  }

  .er-tagesplan-person__ext {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .er-tagesplan-person__time {
    grid-column: 3 !important;
    justify-self: end !important;
    text-align: right !important;
  }

  .er-tagesplan-badge {
    font-size: 8pt !important;
    padding: 0 4px !important;
  }

  .er-tagesplan-person.is-krank,
  .er-tagesplan-badge--krank,
  .er-tagesplan-badge--schliess,
  .er-tagesplan-pill--krank,
  .er-tagesplan-matrix__group-row th,
  .er-tagesplan-matrix--print-sheet thead th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/*
 * PDF-Export: gleiche Regeln wie @media print.
 * html2canvas sieht kein Print-Media — deshalb Screen-Kopie unter .er-tagesplan-pdf-export.
 */
body.er-tagesplan-print-page.er-tagesplan-pdf-export {
  background: #fff !important;
  font-size: 11pt !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-desk-header,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-desk-sidebar,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-desk-nav,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .no-print,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-hero,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-toolbar,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-flash,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-sheet__print-hint,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person__actions,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-sheet__foot {
  display: none !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-main,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan--print {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  overflow: visible !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-sheet,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-sheet--print {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-sheet__head {
  border-bottom: 1.5pt solid #009646 !important;
  margin-bottom: 3mm !important;
  padding-bottom: 2mm !important;
  gap: 6px !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-sheet__brand {
  font-size: 9pt !important;
  margin: 0 !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-sheet__powered {
  font-size: 8pt !important;
  margin: 0 0 2px !important;
  color: #5a6f64 !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-sheet__title {
  font-size: 15pt !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-sheet__stats {
  gap: 4px !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-pill {
  padding: 2px 8px !important;
  font-size: 9pt !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix--print-sheet {
  border-radius: 0 !important;
  font-size: 11pt !important;
  width: 100% !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix--print-sheet thead th {
  padding: 5px 6px !important;
  font-size: 9pt !important;
  background: #e8f5ee !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix--print-sheet thead th:not(:first-child),
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix--print-sheet td.er-tagesplan-matrix__person {
  padding-left: 9px !important;
  padding-right: 9px !important;
  border-right: 1pt solid #b8d4c4 !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix--print-sheet td:last-child {
  border-right: 0 !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix__group-row th {
  text-align: left !important;
  font-size: 10pt !important;
  font-weight: 800 !important;
  color: #005028 !important;
  background: #d8efe3 !important;
  padding: 5px 6px !important;
  border-top: 1pt solid #009646 !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix--print-sheet td {
  padding: 4px 6px !important;
  line-height: 1.3 !important;
  vertical-align: middle !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix__dept {
  font-size: 10.5pt !important;
  font-weight: 700 !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 2.4em 7.2em !important;
  column-gap: 6px !important;
  align-items: baseline !important;
  margin: 0 0 2px !important;
  padding: 1px 0 !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person__name {
  font-size: 11pt !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person__line {
  grid-column: 1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 3px 6px !important;
  margin: 0 !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person__meta {
  display: contents !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person__ext,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person__time {
  font-size: 9pt !important;
  font-weight: 600 !important;
  color: #3d5248 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person__ext {
  grid-column: 2 !important;
  justify-self: start !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person__time {
  grid-column: 3 !important;
  justify-self: end !important;
  text-align: right !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-badge {
  font-size: 8pt !important;
  padding: 0 4px !important;
}

body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-person.is-krank,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-badge--krank,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-badge--schliess,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-pill--krank,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix__group-row th,
body.er-tagesplan-print-page.er-tagesplan-pdf-export .er-tagesplan-matrix--print-sheet thead th {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Screen-Vorschau Druckseite */
body.er-tagesplan-print-page .er-tagesplan-matrix--print-sheet {
  font-size: 0.95rem;
}

body.er-tagesplan-print-page .er-tagesplan-matrix__group-row th {
  text-align: left;
  font-size: 0.92rem;
  font-weight: 800;
  color: #005028;
  background: #d8efe3;
  padding: 6px 8px;
  border-top: 2px solid #009646;
}


.er-meintag-cta {
  margin-bottom: 14px;
}

.er-meintag-cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.er-meintag-cta__row .er-h2 {
  margin: 0 0 4px;
}

.er-meintag-cta__row .er-muted {
  margin: 0;
}

.er-meintag-compose__notes textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid #c5d9cc;
  border-radius: 12px;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  background: #fff;
}

.er-meintag-compose__files {
  display: grid;
  gap: 6px;
  margin: 12px 0 4px;
}

.er-meintag-task__attach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.er-meintag-task__attach-label {
  flex: 1 1 12rem;
  min-width: 0;
}

.er-meintag-task__attach-label input[type="file"] {
  width: 100%;
  font-size: 0.85rem;
}

.er-meintag-task__notes {
  margin: 6px 0 0;
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #3d5a4a;
}

.er-meintag-task__files {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.er-meintag-task__files a {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4f0;
  color: #0f4f7a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.er-meintag-task__files a:hover {
  background: #e0eef8;
}

/* —— Mein Tag —— */
.er-meintag-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.er-meintag-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3faf6;
  border: 1px solid #c5ddd0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hb-muted);
  cursor: pointer;
  user-select: none;
}

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

.er-meintag-compose__title input {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 1px solid #c9d9cf;
  border-radius: 12px;
  background: #fff;
}

.er-meintag-compose__opts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 20px;
}

.er-meintag-compose__opts > .er-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f4f8f5;
  border: 1px solid #d7e5dc;
}

.er-meintag-compose__opts > .er-meintag-invite {
  flex: 1 1 100%;
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1px solid #d7e5dc;
}

.er-meintag-compose__opts > .er-meintag-notify {
  flex: 1 1 100%;
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffaf3;
  border: 1px solid rgba(180, 100, 20, 0.22);
}

.er-meintag-notify summary,
.er-meintag-invite summary {
  cursor: pointer;
  font-weight: 700;
}

.er-meintag-invite__hint {
  margin: 6px 0 10px;
  font-size: 0.88rem;
}

.er-meintag-notify__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.er-meintag-notify__list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.er-meintag-notify__pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #efe4d4;
  cursor: pointer;
}

.er-meintag-notify__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.er-meintag-notify__meta strong {
  font-size: 0.92rem;
}

.er-meintag-compose__opts > .er-btn {
  margin-top: 4px;
}

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

.er-meintag-task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 10px;
  border-radius: 14px;
  border: 1px solid #d7e5dc;
  background: linear-gradient(165deg, #ffffff 0%, #f7fbf8 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.er-meintag-task--shared {
  border-color: #b7d3e8;
  background: linear-gradient(165deg, #ffffff 0%, #f4f8fc 100%);
}

.er-meintag-task--done {
  opacity: 0.78;
  background: #f6f8f7;
}

.er-meintag-task--done .er-meintag-task__title {
  text-decoration: line-through;
  color: var(--hb-muted);
}

.er-meintag-check {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 2px;
  cursor: pointer;
}

.er-meintag-check__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #009646;
  background: #fff;
  color: #009646;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.12s ease, transform 0.12s ease;
}

.er-meintag-check:hover .er-meintag-check__box {
  background: rgba(0, 150, 70, 0.1);
  transform: scale(1.05);
}

.er-meintag-task--done .er-meintag-check__box {
  background: #009646;
  color: #fff;
}

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

.er-meintag-task__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hb-green-dark);
  line-height: 1.35;
}

.er-meintag-task__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8rem;
  color: var(--hb-muted);
}

.er-meintag-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6f64;
  background: #e8f0eb;
}

.er-meintag-pill--share {
  color: #0f4f7a;
  background: #e0eef8;
}

.er-meintag-pill--notify {
  color: #9a5a00;
  background: #fff0e0;
}

.er-meintag-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2px;
}

.er-meintag-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #d8efe3;
  color: #005028;
  font-size: 0.65rem;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 40, 20, 0.08);
}

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

.er-meintag-task__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.er-meintag-invite {
  font-size: 0.88rem;
}

.er-meintag-invite summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--hb-green-dark);
  list-style: none;
}

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

.er-meintag-invite__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1px solid #d7e5dc;
}

.er-meintag-invite__row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.er-meintag-invite__row .er-meintag-avatar {
  margin-right: 0;
}

.er-meintag-invite--inline {
  text-align: right;
}

.er-meintag-invite--inline .er-meintag-invite__form {
  min-width: 200px;
}

.er-meintag-invite--inline .er-meintag-invite__list {
  text-align: left;
}

.er-meintag-invite-picker {
  margin-top: 8px;
  min-width: min(100%, 280px);
}

.er-meintag-invite-search input {
  width: 100%;
  font: inherit;
  padding: 8px 12px;
  border: 1px solid #c9d9cf;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 8px;
}

.er-meintag-invite__section {
  margin: 8px 4px 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5a6f64;
}

.er-meintag-invite__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 2px;
  border-radius: 8px;
}

.er-meintag-invite__row.is-search-hidden,
.er-meintag-invite__section.is-search-hidden {
  display: none !important;
}

.er-meintag-invite__row.is-favorite {
  background: rgba(255, 196, 0, 0.12);
}

.er-meintag-invite__row.is-frequent {
  background: rgba(0, 150, 70, 0.06);
}

.er-meintag-invite__pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.er-meintag-invite__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.er-meintag-invite__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hb-muted);
  flex-shrink: 0;
}

.er-meintag-fav-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c4a035;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.er-meintag-fav-btn:hover,
.er-meintag-fav-btn.is-on {
  background: rgba(255, 196, 0, 0.18);
  color: #b8860b;
}

.er-meintag-invite__empty {
  margin: 8px 4px;
  font-size: 0.85rem;
}

.er-meintag-tpl-hint {
  margin: 12px 0 0;
}

.er-meintag-quick-tpl__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.er-meintag-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #c5ddd0;
  background: linear-gradient(165deg, #ffffff, #f3faf6);
  font: inherit;
  font-weight: 700;
  color: var(--hb-green-dark);
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.er-meintag-chip-btn:hover {
  border-color: #009646;
  box-shadow: 0 2px 8px rgba(0, 100, 50, 0.1);
}

.er-meintag-avatars--chip {
  margin-top: 0;
}

.er-meintag-avatars--chip .er-meintag-avatar {
  width: 24px;
  height: 24px;
  font-size: 0.58rem;
}

.er-meintag-task--template {
  background: linear-gradient(165deg, #ffffff 0%, #f5f9fc 100%);
  border-color: #c9d6e3;
}

.er-meintag-weekdays {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  flex: 1 1 100%;
}

.er-meintag-weekdays__label {
  font-size: 0.78rem;
  color: #5a6b7a;
}

.er-meintag-weekdays__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.er-meintag-weekday {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.er-meintag-weekday input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.er-meintag-weekday span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #c5d2de;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3a4a58;
}

.er-meintag-weekday input:checked + span {
  background: #1f6b9c;
  border-color: #1f6b9c;
  color: #fff;
}

.er-meintag-weekday input:focus-visible + span {
  outline: 2px solid #1f6b9c;
  outline-offset: 2px;
}

.er-meintag-pill--days {
  background: #e8f2f8;
  color: #1f6b9c;
}

.er-meintag-tpl-items {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.er-meintag-tpl-item {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #d5e0ea;
  border-radius: 12px;
  background: #f8fbfd;
}

.er-meintag-tpl-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.er-meintag-tpl-item__num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6b7a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.er-meintag-tpl-preview {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.er-meintag-tpl-preview li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #3a4a58;
}

.er-meintag-tpl-preview li::before {
  content: '·';
  color: #8aa0b2;
  font-weight: 700;
}

.er-meintag-chip-btn__meta {
  font-size: 0.72rem;
  color: #5a6b7a;
}

.er-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a6b7a;
  margin-bottom: 0.25rem;
}

/* —— Einfach-Modus (größere Typo & Tap-Ziele) —— */
body.er-easy-mode {
  font-size: 118%;
}

body.er-easy-mode .er-btn {
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  font-size: 1.05em;
}

body.er-easy-mode .er-btn--small {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
}

body.er-easy-mode .er-nav-link,
body.er-easy-mode .er-desk-sidebar__link,
body.er-easy-mode .er-header-user {
  font-size: 1.06em;
  min-height: 44px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

body.er-easy-mode .er-desk-welcome {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
}

body.er-easy-mode .er-desk-lead,
body.er-easy-mode .er-desk-shift__line,
body.er-easy-mode .er-desk-pulse__item,
body.er-easy-mode .er-page-title {
  font-size: 1.08em;
  line-height: 1.45;
}

body.er-easy-mode .er-desk-shift__item,
body.er-easy-mode .er-desk-pulse__row {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

body.er-easy-mode .er-desk-tile {
  padding: 1.25rem 1.2rem;
  min-height: 9.5rem;
}

body.er-easy-mode .er-desk-tile-title {
  font-size: 1.2em;
}

body.er-easy-mode .er-desk-tile-desc {
  font-size: 1em;
  line-height: 1.4;
}

body.er-easy-mode .er-field input,
body.er-easy-mode .er-field select,
body.er-easy-mode .er-field textarea {
  min-height: 48px;
  font-size: 1.05em;
}

.er-badge--easy {
  background: #e8f4ec;
  color: #005028;
  border: 1px solid rgba(0, 80, 40, 0.18);
}
