:root {
  --rhe-bg: #f6f3ed;
  --rhe-card: #fff;
  --rhe-burgundy: #8d1f2d;
  --rhe-green: #1f5627;
  --rhe-green-dark: #17431e;
  --rhe-text: #242424;
  --rhe-muted: #6b6b66;
  --rhe-border: #e7e2d9;
  --rhe-shadow: 0 10px 35px rgba(34, 34, 28, .07);
  --rhe-radius: 30px;
  --rhe-inner-radius: 22px;
  --rhe-control-radius: 30px;
}

.rhe-events-shell,
.rhe-single-wrap {
  width: 100%;
  color: var(--rhe-text);
  font-family: inherit;
}

.rhe-events-shell,
.rhe-single-wrap {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rhe-events-shell *,
.rhe-single-wrap * {
  box-sizing: border-box;
}

.rhe-button,
.rhe-mini-button,
.rhe-load-more,
.rhe-slider-arrow,
.rhe-calendar-heading button,
.rhe-event-card a,
.rhe-selected-event a,
.rhe-next-event,
.rhe-breadcrumbs a {
  text-decoration: none !important;
  text-decoration-line: none !important;
  background-image: none !important;
  border-bottom-color: transparent;
}

.rhe-button::after,
.rhe-mini-button::after,
.rhe-load-more::after,
.rhe-slider-arrow::after,
.rhe-calendar-heading button::after {
  display: none !important;
  content: none !important;
}

.rhe-page-intro {
  margin-bottom: 24px;
}

.rhe-page-intro h1,
.rhe-single-content h1 {
  margin: 0 0 10px;
  color: var(--rhe-burgundy);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.rhe-page-intro p {
  max-width: 880px;
  margin: 0;
  color: var(--rhe-muted);
  font-size: 17px;
  line-height: 1.55;
}

/* Filtre */
.rhe-filter-bar {
  display: grid;
  grid-template-columns: minmax(300px, 1.45fr) minmax(220px, .8fr) minmax(160px, .46fr) minmax(120px, .34fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--rhe-border);
  border-radius: var(--rhe-radius);
  box-shadow: var(--rhe-shadow);
}

.rhe-filter-field {
  display: block;
  min-width: 0;
  margin: 0;
}

.rhe-filter-bar input,
.rhe-filter-bar select {
  width: 100%;
  height: 52px;
  margin: 0 !important;
  border: 1px solid #dedbd4 !important;
  border-radius: var(--rhe-control-radius) !important;
  background: #faf9f6 !important;
  padding: 0 20px !important;
  color: var(--rhe-text) !important;
  font: inherit !important;
  box-shadow: none !important;
}

.rhe-filter-bar select {
  padding-right: 42px !important;
}

.rhe-filter-bar input:focus,
.rhe-filter-bar select:focus {
  border-color: var(--rhe-burgundy) !important;
  outline: 2px solid rgba(141, 31, 45, .12) !important;
}

.rhe-search-field {
  position: relative;
}

.rhe-search-field::before {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 19px;
  width: 13px;
  height: 13px;
  border: 1.8px solid #777;
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.rhe-search-field::after {
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 31px;
  width: 7px;
  height: 1.8px;
  transform: rotate(45deg);
  transform-origin: left center;
  background: #777;
  content: '';
  pointer-events: none;
}

.rhe-search-field input {
  padding-left: 48px !important;
}

.rhe-loading {
  padding: 35px;
  text-align: center;
  color: var(--rhe-muted);
}

.rhe-loading.is-error {
  display: block;
  padding: 16px 20px;
  border: 1px solid #d7a4aa;
  border-radius: var(--rhe-radius);
  background: #fff5f6;
  color: var(--rhe-burgundy);
  font-weight: 700;
}

/* Kalender */
.rhe-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(330px, .8fr);
  gap: 18px;
  align-items: stretch;
}

.rhe-calendar-card,
.rhe-selected-panel,
.rhe-upcoming-section,
.rhe-slider-wrap {
  background: #fff;
  border: 1px solid var(--rhe-border);
  border-radius: var(--rhe-radius);
  box-shadow: var(--rhe-shadow);
}

.rhe-calendar-card {
  padding: 22px 24px 24px;
}

.rhe-calendar-heading {
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr minmax(130px, auto);
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rhe-border);
}

.rhe-calendar-heading h2 {
  margin: 0;
  color: var(--rhe-text);
  text-align: center;
  font-size: 25px;
}

.rhe-calendar-heading button {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 15px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--rhe-control-radius) !important;
  background: transparent;
  color: var(--rhe-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
}

.rhe-calendar-heading button:first-child {
  justify-self: start;
}

.rhe-calendar-heading button:last-child {
  justify-self: end;
}

.rhe-calendar-heading button:hover {
  background: var(--rhe-bg);
  color: var(--rhe-burgundy);
}

.rhe-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 7px;
  padding-top: 14px;
}

.rhe-weekday {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #67645e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}

.rhe-day {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 82px;
  padding: 7px 4px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: var(--rhe-control-radius) !important;
  background: transparent;
  color: var(--rhe-text);
  text-align: center;
  text-transform: none;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.rhe-day:hover {
  background: #faf8f3;
  transform: translateY(-1px);
}

.rhe-day.is-outside {
  color: #bbb8b1;
}

.rhe-day.is-outside .rhe-day-events {
  opacity: .35;
}

.rhe-day-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  margin: 0 0 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.rhe-day.is-selected {
  background: #faf7f2;
}

.rhe-day.is-selected .rhe-day-number {
  background: var(--rhe-burgundy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(141, 31, 45, .2);
}

.rhe-day.is-today:not(.is-selected) .rhe-day-number {
  border-color: var(--rhe-burgundy);
  color: var(--rhe-burgundy);
}

.rhe-day-events {
  display: flex;
  max-width: 100%;
  min-height: 11px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rhe-day-dot {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--event-color, var(--rhe-green));
  box-shadow: 0 0 0 2px #fff;
}

.rhe-day-more {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eeebe4;
  color: #66625b;
  font-size: 10px;
  font-weight: 800;
}

/* Valgt dato */
.rhe-selected-panel {
  min-height: 100%;
  padding: 28px;
}

.rhe-selected-panel h3 {
  margin: 0 0 5px;
  color: var(--rhe-text);
  font-size: 25px;
}

.rhe-selected-date {
  margin-bottom: 5px;
  color: var(--rhe-burgundy);
  font-weight: 800;
}

.rhe-selected-count {
  margin-bottom: 18px;
  color: var(--rhe-muted);
  font-size: 13px;
}

.rhe-selected-event {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--rhe-border);
}

.rhe-selected-thumb {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: var(--rhe-inner-radius);
  background: linear-gradient(135deg, #ece9e2, #f8f6f2) center/cover no-repeat;
}

.rhe-selected-thumb.is-placeholder::before {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: rgba(141, 31, 45, .35);
  content: 'RH';
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.rhe-selected-copy {
  min-width: 0;
}

.rhe-selected-event h4 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.rhe-selected-event h4 a {
  color: var(--rhe-text);
}

.rhe-selected-meta {
  display: flex;
  margin-bottom: 12px;
  flex-direction: column;
  gap: 3px;
  color: #666;
  font-size: 12px;
}

.rhe-mini-button {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rhe-green);
  border-radius: var(--rhe-control-radius) !important;
  background: transparent;
  color: var(--rhe-green) !important;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rhe-mini-button:hover {
  background: var(--rhe-green);
  color: #fff !important;
}

/* Kommende events */
.rhe-upcoming-section {
  margin-top: 18px;
  padding: 24px;
}

.rhe-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.rhe-section-heading h2 {
  margin: 0;
  color: var(--rhe-burgundy);
  font-size: 26px;
}

/* Kommende events: neutral overskrift og sorte datomærker. */
.rhe-upcoming-section .rhe-section-heading h2 {
  color: #111;
}

.rhe-upcoming-section .rhe-date-badge strong,
.rhe-upcoming-section .rhe-date-badge span,
.rhe-upcoming-section .rhe-date-badge small {
  color: #111;
}

.rhe-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rhe-event-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rhe-border);
  border-radius: var(--rhe-radius);
}

.rhe-card-media {
  position: relative;
  display: block;
  height: 205px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e4dc, #f7f4ee) center/cover no-repeat;
}

.rhe-card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, .08));
  content: '';
}

.rhe-card-media.is-placeholder::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(141, 31, 45, .28);
  content: 'RIBE HANDEL';
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .12em;
}

.rhe-date-badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: flex;
  min-width: 66px;
  min-height: 70px;
  padding: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .13);
  line-height: 1;
}

.rhe-date-badge strong {
  color: var(--rhe-burgundy);
  font-size: 19px;
}

.rhe-date-badge span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
}

.rhe-date-badge small {
  margin-top: 3px;
  font-size: 10px;
}

.rhe-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.rhe-category-pill {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rhe-color, #235626) 12%, #fff);
  color: var(--rhe-color, #235626);
  font-size: 11px;
  font-weight: 800;
}

.rhe-card-body h3 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.2;
}

.rhe-card-body h3 a {
  color: var(--rhe-text);
}

.rhe-card-excerpt {
  margin: 0 0 14px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.rhe-card-meta {
  display: flex;
  margin: auto 0 16px;
  flex-direction: column;
  gap: 5px;
  color: #666;
  font-size: 12px;
}

.rhe-card-meta span:first-child {
  color: #4e4b46;
  font-weight: 700;
}

.rhe-button,
.rhe-load-more {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--rhe-green);
  border-radius: var(--rhe-control-radius) !important;
  background: var(--rhe-green);
  color: #fff !important;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  text-transform: none;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s;
}

.rhe-button:hover,
.rhe-load-more:hover {
  background: var(--rhe-green-dark);
  border-color: var(--rhe-green-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.rhe-button-outline {
  background: transparent;
  color: var(--rhe-green) !important;
}

.rhe-button-outline:hover {
  background: var(--rhe-green);
  color: #fff !important;
}

.rhe-load-more-wrap {
  display: flex;
  margin-top: 24px;
  justify-content: center;
}

.rhe-load-more {
  min-width: 210px;
}

.rhe-load-more[hidden] {
  display: none !important;
}

.rhe-load-more:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.rhe-upcoming-loading,
.rhe-empty {
  grid-column: 1 / -1;
  padding: 38px 18px;
  color: var(--rhe-muted);
  text-align: center;
}

/* Slider */
.rhe-slider-wrap {
  position: relative;
  margin: 0;
  padding: 24px;
}

.rhe-slider-controls {
  display: inline-flex;
  gap: 8px;
}

.rhe-slider-arrow {
  position: static;
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rhe-border);
  border-radius: 50% !important;
  background: #fff;
  color: var(--rhe-text);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  text-transform: none;
  box-shadow: none !important;
  cursor: pointer;
}

.rhe-slider-arrow:hover {
  background: var(--rhe-bg);
  color: var(--rhe-burgundy);
}

.rhe-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  padding: 1px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rhe-slider-track::-webkit-scrollbar {
  display: none;
}

.rhe-slider-track > .rhe-event-card {
  scroll-snap-align: start;
}

/* Næste event */
.rhe-next-event {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) 1fr;
  overflow: hidden;
  border-radius: var(--rhe-radius);
  background: #fff;
  box-shadow: var(--rhe-shadow);
  color: var(--rhe-text);
}

.rhe-next-event-media {
  min-height: 320px;
  background: #ece9e2 center/cover no-repeat;
}

.rhe-next-event-copy {
  display: flex;
  padding: 42px;
  flex-direction: column;
  justify-content: center;
}

.rhe-next-event-copy > span {
  color: var(--rhe-burgundy);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rhe-next-event-copy h2 {
  margin: 8px 0;
  font-size: 38px;
}

.rhe-next-event-copy p {
  color: var(--rhe-muted);
}

/* Enkelt event */
.rhe-breadcrumbs {
  display: flex;
  margin: 0 0 24px;
  flex-wrap: wrap;
  gap: 8px;
  color: #777;
  font-size: 13px;
}

.rhe-breadcrumbs a {
  color: var(--rhe-green);
}

.rhe-single-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: clamp(28px, 3.5vw, 58px);
  align-items: start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.rhe-single-card.no-media {
  grid-template-columns: minmax(0, 900px);
}

.rhe-single-media {
  overflow: hidden;
  align-self: start;
  border-radius: var(--rhe-radius);
  background: transparent;
}

.rhe-single-main-image {
  overflow: hidden;
  border-radius: var(--rhe-radius);
  background: #ece9e2;
}

.rhe-single-main-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 820px;
  margin: 0;
  object-fit: contain;
}

.rhe-single-content {
  min-width: 0;
  padding: 20px 0 0;
  background: transparent !important;
}

.rhe-single-heading h1 {
  margin-top: 8px;
  font-size: clamp(40px, 4.5vw, 66px);
}

.rhe-single-facts {
  display: grid;
  gap: 13px;
  margin: 28px 0;
  padding: 24px 26px;
  border-radius: var(--rhe-radius);
  background: var(--rhe-bg);
}

.rhe-single-facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.rhe-single-facts strong {
  color: var(--rhe-burgundy);
}

.rhe-single-description {
  color: var(--rhe-text);
  font-size: 16px;
  line-height: 1.75;
}

.rhe-single-description > :first-child {
  margin-top: 0;
}

.rhe-single-description > :last-child {
  margin-bottom: 0;
}

.rhe-single-action-panel {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--rhe-border);
  border-radius: var(--rhe-radius);
  background: transparent;
}

.rhe-single-action-heading {
  margin-bottom: 18px;
}

.rhe-single-action-heading > span {
  display: block;
  margin-bottom: 3px;
  color: var(--rhe-burgundy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rhe-single-action-heading h2 {
  margin: 0;
  color: var(--rhe-text);
  font-size: 24px;
  line-height: 1.2;
}

.rhe-action-primary {
  width: 100%;
  margin-bottom: 12px;
  font-size: 16px;
}

.rhe-single-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rhe-single-action-grid .rhe-button {
  width: 100%;
}

.rhe-single-action-grid.has-one-action > * {
  grid-column: 1 / -1;
}

.rhe-related {
  margin-top: 42px;
}

.rhe-single-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0 0;
  background: transparent;
}

.rhe-single-gallery button {
  width: 88px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  flex: 0 0 88px;
  border: 2px solid transparent;
  border-radius: var(--rhe-inner-radius) !important;
  background: #eee;
  box-shadow: none !important;
  cursor: pointer;
}

.rhe-single-gallery button:hover {
  border-color: var(--rhe-burgundy);
}

.rhe-single-gallery img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover;
}

[hidden] {
  display: none !important;
}

/* Afstande styres af tema/WPBakery */
.rhe-events-shell > :first-child,
.rhe-single-wrap > :first-child {
  margin-top: 0 !important;
}

.rhe-events-shell > :last-child,
.rhe-single-wrap > :last-child {
  margin-bottom: 0 !important;
}

.rhe-wpbakery-host,
.rhe-wpbakery-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.wpb_content_element:has(.rhe-events-shell) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.wpb_wrapper:has(> .rhe-events-shell) {
  margin: 0 !important;
  padding: 0 !important;
}

body.rhe-events-archive-page .main-page-wrapper,
body.rhe-single-event-page .main-page-wrapper {
  padding-top: 0 !important;
}

body.rhe-events-archive-page .site-content,
body.rhe-single-event-page .site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


@media (max-width: 1180px) {
  .rhe-filter-bar {
    grid-template-columns: minmax(260px, 1.3fr) minmax(200px, .8fr) minmax(145px, .5fr) minmax(110px, .38fr);
  }

  .rhe-calendar-layout {
    grid-template-columns: 1fr;
  }

  .rhe-selected-panel {
    min-height: auto;
  }

  .rhe-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhe-slider-track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }

  .rhe-single-card {
    grid-template-columns: 1fr;
  }

  .rhe-single-media {
    max-width: 900px;
  }

  .rhe-single-content {
    max-width: 900px;
    padding-top: 0;
  }
}

@media (max-width: 860px) {
  .rhe-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .rhe-search-field,
  .rhe-category-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .rhe-events-shell,
  .rhe-single-wrap {
    padding: 0 !important;
  }

  .rhe-page-intro h1 {
    font-size: 38px;
  }

  .rhe-filter-bar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rhe-filter-bar input,
  .rhe-filter-bar select {
    height: 48px;
  }

  .rhe-search-field::before {
    top: 15px;
  }

  .rhe-search-field::after {
    top: 28px;
  }

  .rhe-calendar-layout {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .rhe-calendar-card {
    padding: 16px 10px;
  }

  .rhe-calendar-heading {
    grid-template-columns: auto 1fr auto;
  }

  .rhe-calendar-heading h2 {
    font-size: 21px;
  }

  .rhe-calendar-heading button {
    min-width: 42px;
    padding: 8px;
    font-size: 0;
  }

  .rhe-calendar-heading button[data-rhe-prev]::before {
    content: '←';
    font-size: 21px;
  }

  .rhe-calendar-heading button[data-rhe-next]::before {
    content: '→';
    font-size: 21px;
  }

  .rhe-calendar-grid {
    gap: 3px;
  }

  .rhe-weekday {
    font-size: 10px;
  }

  .rhe-day {
    min-height: 62px;
    padding: 4px 1px;
  }

  .rhe-day-number {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    font-size: 13px;
  }

  .rhe-day-dot {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
  }

  .rhe-selected-panel {
    padding: 22px;
  }

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

  .rhe-upcoming-section,
  .rhe-slider-wrap {
    padding: 18px;
  }

  .rhe-slider-track {
    grid-auto-columns: 86%;
  }

  .rhe-slider-controls {
    gap: 6px;
  }

  .rhe-slider-arrow {
    width: 40px;
    height: 40px;
  }

  .rhe-single-heading h1 {
    font-size: 42px;
  }

  .rhe-single-facts {
    padding: 22px;
  }

  .rhe-single-facts div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .rhe-single-action-grid {
    grid-template-columns: 1fr;
  }

  .rhe-next-event {
    grid-template-columns: 1fr;
  }

  .rhe-next-event-media {
    min-height: 230px;
  }

  .rhe-next-event-copy {
    padding: 28px;
  }

  .rhe-next-event-copy h2 {
    font-size: 30px;
  }
}


/* Finpudsning 0.1.5 */
.rhe-filter-bar {
  column-gap: 20px;
}

.rhe-search-field,
.rhe-category-field,
.rhe-month-field,
.rhe-year-field {
  min-width: 0;
}

.rhe-button,
.rhe-mini-button,
.rhe-load-more,
.rhe-calendar-heading button,
.rhe-filter-bar input,
.rhe-filter-bar select {
  border-radius: 30px !important;
}

.rhe-button,
.rhe-mini-button,
.rhe-load-more {
  text-decoration: none !important;
  box-shadow: none !important;
}

.rhe-button::before,
.rhe-mini-button::before,
.rhe-load-more::before,
.rhe-button::after,
.rhe-mini-button::after,
.rhe-load-more::after {
  text-decoration: none !important;
}

.rhe-selected-panel .rhe-empty {
  padding: 24px 0 0;
  text-align: left;
}

.rhe-card-grid .rhe-event-card {
  min-width: 0;
}

@media (max-width: 760px) {
  .rhe-page-intro {
    margin-bottom: 18px;
  }

  .rhe-page-intro h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .rhe-page-intro p {
    font-size: 15px;
  }

  .rhe-filter-bar {
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
    column-gap: 10px;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 24px;
  }

  .rhe-search-field,
  .rhe-category-field {
    grid-column: 1 / -1;
  }

  .rhe-filter-bar input,
  .rhe-filter-bar select {
    height: 46px;
    padding-right: 38px !important;
    padding-left: 16px !important;
    font-size: 14px !important;
  }

  .rhe-search-field input {
    padding-left: 44px !important;
  }

  .rhe-calendar-layout {
    gap: 14px;
  }

  .rhe-calendar-card {
    padding: 14px 8px 10px;
    border-radius: 24px;
  }

  .rhe-calendar-heading {
    padding: 0 4px 12px;
  }

  .rhe-calendar-heading h2 {
    font-size: 20px;
  }

  .rhe-calendar-grid {
    gap: 2px;
    padding-top: 8px;
  }

  .rhe-weekday {
    height: 30px;
    font-size: 9px;
  }

  .rhe-day {
    min-height: 54px;
    padding: 3px 0;
    border-radius: 18px !important;
  }

  .rhe-day-number {
    width: 30px;
    height: 30px;
    margin-bottom: 3px;
    font-size: 12px;
  }

  .rhe-day-events {
    min-height: 8px;
    gap: 2px;
  }

  .rhe-day-dot {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
    box-shadow: none;
  }

  .rhe-day-more {
    min-width: 15px;
    height: 15px;
    font-size: 8px;
  }

  .rhe-selected-panel {
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
  }

  .rhe-selected-panel h3 {
    font-size: 22px;
  }

  .rhe-selected-event {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
  }

  .rhe-selected-thumb {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .rhe-upcoming-section {
    margin-top: 14px;
    padding: 18px 14px;
    border-radius: 24px;
  }

  .rhe-section-heading h2 {
    font-size: 23px;
  }

  .rhe-card-grid {
    gap: 14px;
  }

  .rhe-event-card {
    border-radius: 24px;
  }

  .rhe-card-media {
    height: 190px;
  }

  .rhe-single-card {
    gap: 24px;
  }

  .rhe-single-media,
  .rhe-single-main-image,
  .rhe-single-facts,
  .rhe-single-action-panel {
    border-radius: 24px;
  }

  .rhe-single-heading h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .rhe-single-facts {
    margin: 22px 0;
    padding: 20px;
  }

  .rhe-single-action-panel {
    margin-top: 24px;
    padding: 20px;
  }

  .rhe-single-action-heading h2 {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .rhe-calendar-card {
    padding-inline: 5px;
  }

  .rhe-calendar-heading button {
    min-width: 38px;
    min-height: 38px;
  }

  .rhe-day {
    min-height: 50px;
  }

  .rhe-day-number {
    width: 28px;
    height: 28px;
  }

  .rhe-single-facts div {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}


/* Finpudsning 0.1.6 */
/* Tydelig separation mellem de to brede filtre. */
.rhe-filter-bar {
  column-gap: 28px !important;
}

.rhe-filter-bar .rhe-search-field {
  margin-right: 6px !important;
}

/* Kalenderdage skal være rolige felter – ikke 30 px piller. */
.rhe-calendar-grid .rhe-day {
  border-radius: 12px !important;
}

/* Valgt event: en kompakt, tydelig handlingsknap. */
.rhe-selected-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.rhe-selected-event .rhe-mini-button {
  min-height: 40px;
  margin-top: 2px;
  padding: 9px 18px;
  border-color: var(--rhe-green) !important;
  border-radius: 30px !important;
  background: var(--rhe-green) !important;
  color: #fff !important;
  line-height: 1;
}

.rhe-selected-event .rhe-mini-button:hover,
.rhe-selected-event .rhe-mini-button:focus {
  border-color: var(--rhe-green-dark) !important;
  background: var(--rhe-green-dark) !important;
  color: #fff !important;
}

/* “Vis flere” skal være en rigtig CTA og ikke ligne en deaktiveret systemknap. */
.rhe-load-more-wrap {
  margin-top: 28px;
}

.rhe-load-more {
  min-width: 280px;
  min-height: 52px;
  padding-inline: 28px;
  border-color: var(--rhe-green) !important;
  background: var(--rhe-green) !important;
  color: #fff !important;
  opacity: 1;
}

.rhe-load-more:hover,
.rhe-load-more:focus {
  border-color: var(--rhe-green-dark) !important;
  background: var(--rhe-green-dark) !important;
  color: #fff !important;
}

.rhe-load-more:disabled {
  border-color: #b9cab9 !important;
  background: #dce7dc !important;
  color: var(--rhe-green-dark) !important;
  opacity: 1;
}

/* Temaet ejer sidebaggrunden. Kun selve eventindholdet er et hvidt kort. */
.rhe-single-wrap {
  background: transparent !important;
}

.rhe-single-card {
  overflow: hidden;
  padding: clamp(20px, 2.2vw, 32px);
  border: 1px solid var(--rhe-border);
  border-radius: 30px !important;
  background: #fff !important;
  box-shadow: var(--rhe-shadow) !important;
}

.rhe-single-media,
.rhe-single-main-image {
  border-radius: 22px !important;
}

.rhe-single-content {
  padding: 12px 0 0;
  background: transparent !important;
}

.rhe-single-facts,
.rhe-single-action-panel {
  border-radius: 22px !important;
}

@media (max-width: 860px) {
  .rhe-filter-bar .rhe-search-field {
    margin-right: 0 !important;
  }
}

@media (max-width: 760px) {
  .rhe-filter-bar {
    column-gap: 10px !important;
  }

  .rhe-calendar-grid .rhe-day {
    border-radius: 10px !important;
  }

  .rhe-selected-event .rhe-mini-button {
    min-height: 40px;
    padding-inline: 17px;
  }

  .rhe-load-more {
    width: 100%;
    min-width: 0;
  }

  .rhe-single-card {
    padding: 16px;
    border-radius: 30px !important;
  }

  .rhe-single-media,
  .rhe-single-main-image,
  .rhe-single-facts,
  .rhe-single-action-panel {
    border-radius: 20px !important;
  }
}

/* 0.1.9: Fast sidebaggrund på enkelt-events efter aftale. */
body.rhe-single-event-page,
body.rhe-single-event-page .website-wrapper,
body.rhe-single-event-page .wd-page-content,
body.rhe-single-event-page .wd-page-content.main-page-wrapper,
body.rhe-single-event-page .main-page-wrapper,
body.rhe-single-event-page .rhe-single-page-wrapper {
  background-color: #f6f3ed !important;
  background-image: none !important;
}

body.rhe-single-event-page .rhe-single-page-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.rhe-single-event-page .rhe-single-page-wrapper > .container,
body.rhe-single-event-page .rhe-single-page-wrapper .content-layout-wrapper,
body.rhe-single-event-page .rhe-single-page-wrapper .site-content {
  background-color: transparent !important;
  background-image: none !important;
}

body.rhe-single-event-page .rhe-single-page-wrapper .content-layout-wrapper,
body.rhe-single-event-page .rhe-single-page-wrapper .site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 0.1.10: Fjern farvefladen omkring stående eventbilleder. */
.rhe-single-main-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 0 !important;
  background: transparent !important;
}

.rhe-single-main-image img {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  border-radius: 22px;
}

@media (max-width: 760px) {
  .rhe-single-main-image img {
    border-radius: 20px;
  }
}



/* 0.1.11: Kontrolleret filterafstand og indlæsningsanimation. */
.rhe-filter-bar {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr) minmax(150px, .42fr) minmax(120px, .34fr) !important;
  column-gap: 0 !important;
}

.rhe-filter-bar > label {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.rhe-filter-bar .rhe-search-field {
  margin: 0 !important;
  padding-right: 10px !important;
}

.rhe-filter-bar .rhe-category-field {
  padding-right: 10px !important;
  padding-left: 10px !important;
}

.rhe-filter-bar .rhe-month-field {
  padding-right: 10px !important;
  padding-left: 10px !important;
}

.rhe-filter-bar .rhe-year-field {
  padding-left: 10px !important;
}

.rhe-filter-bar input,
.rhe-filter-bar select {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.rhe-calendar-stage {
  position: relative;
  min-height: 420px;
}

.rhe-loading {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: flex;
  min-height: 420px;
  padding: 30px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(231, 226, 217, .9);
  border-radius: var(--rhe-radius);
  background: rgba(246, 243, 237, .88);
  color: var(--rhe-text);
  text-align: left;
  box-shadow: var(--rhe-shadow);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 1;
  transition: opacity .24s ease, visibility .24s ease;
}

.rhe-loading[hidden] {
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.rhe-loading-spinner {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 3px solid rgba(141, 31, 45, .14);
  border-top-color: var(--rhe-burgundy);
  border-right-color: var(--rhe-green);
  border-radius: 50%;
  animation: rhe-spin .8s linear infinite;
}

.rhe-loading-spinner::after {
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(31, 86, 39, .12);
  border-bottom-color: var(--rhe-green);
  border-radius: 50%;
  content: '';
  animation: rhe-spin 1.2s linear infinite reverse;
}

.rhe-loading-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rhe-loading-copy strong {
  color: var(--rhe-burgundy);
  font-size: 18px;
  line-height: 1.2;
}

.rhe-loading-copy small {
  color: var(--rhe-muted);
  font-size: 13px;
}

.rhe-loading.is-error {
  position: relative;
  inset: auto;
  min-height: 0;
  margin-bottom: 18px;
  border-radius: var(--rhe-radius);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.rhe-events-shell.is-calendar-loading .rhe-calendar-layout {
  min-height: 420px;
  opacity: .32;
  transform: translateY(4px);
  filter: saturate(.7);
  pointer-events: none;
}

.rhe-calendar-layout {
  transition: opacity .28s ease, transform .28s ease, filter .28s ease;
}

.rhe-events-shell.is-calendar-ready .rhe-calendar-layout {
  opacity: 1;
  transform: none;
  filter: none;
}

.rhe-events-shell.is-calendar-ready .rhe-day {
  animation: rhe-day-enter .32s cubic-bezier(.2, .72, .22, 1) both;
  animation-delay: calc(var(--rhe-day-index, 0) * 7ms);
}

@keyframes rhe-spin {
  to { transform: rotate(360deg); }
}

@keyframes rhe-day-enter {
  from {
    opacity: 0;
    transform: translateY(5px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .rhe-filter-bar {
    grid-template-columns: 1fr 1fr !important;
    column-gap: 10px !important;
  }

  .rhe-filter-bar .rhe-search-field,
  .rhe-filter-bar .rhe-category-field {
    grid-column: 1 / -1;
  }

  .rhe-filter-bar .rhe-search-field,
  .rhe-filter-bar .rhe-category-field,
  .rhe-filter-bar .rhe-month-field,
  .rhe-filter-bar .rhe-year-field {
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rhe-loading-spinner,
  .rhe-loading-spinner::after,
  .rhe-events-shell.is-calendar-ready .rhe-day {
    animation: none !important;
  }

  .rhe-loading,
  .rhe-calendar-layout {
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .rhe-filter-bar {
    grid-template-columns: 1fr 1fr !important;
    column-gap: 10px !important;
  }

  .rhe-filter-bar .rhe-search-field,
  .rhe-filter-bar .rhe-category-field,
  .rhe-filter-bar .rhe-month-field,
  .rhe-filter-bar .rhe-year-field {
    margin: 0 !important;
    padding: 0 !important;
  }

  .rhe-filter-bar .rhe-search-field,
  .rhe-filter-bar .rhe-category-field {
    grid-column: 1 / -1;
  }

  .rhe-calendar-stage,
  .rhe-loading,
  .rhe-events-shell.is-calendar-loading .rhe-calendar-layout {
    min-height: 360px;
  }

  .rhe-loading {
    gap: 12px;
    padding: 22px;
    border-radius: 24px;
  }

  .rhe-loading-spinner {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

/* 0.1.12: Rigtige eventbilleder. */
.rhe-card-media img,
.rhe-selected-thumb img,
.rhe-next-event-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rhe-card-media img {
  transition: transform .35s ease;
}

.rhe-event-card:hover .rhe-card-media img {
  transform: scale(1.025);
}

.rhe-selected-thumb {
  overflow: hidden;
}

/* 0.1.13: Filterbjælken har nu fire selvstændige layoutfelter.
 * Det forhindrer Woodmart i at lade input/select vokse ind over nabofeltet. */
.rhe-filter-bar {
  display: grid !important;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(220px, .8fr)
    minmax(150px, .42fr)
    minmax(120px, .34fr) !important;
  column-gap: 20px !important;
  row-gap: 14px !important;
  align-items: stretch !important;
}

.rhe-filter-bar .rhe-filter-field {
  position: relative !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  float: none !important;
  transform: none !important;
}

.rhe-filter-bar .rhe-filter-field > input,
.rhe-filter-bar .rhe-filter-field > select {
  position: static !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  transform: none !important;
}

.rhe-filter-bar .rhe-search-field {
  isolation: isolate;
}

@media (max-width: 1050px) {
  .rhe-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr) minmax(140px, .42fr) minmax(110px, .34fr) !important;
    column-gap: 14px !important;
  }
}

@media (max-width: 860px) {
  .rhe-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
  }

  .rhe-filter-bar .rhe-search-field,
  .rhe-filter-bar .rhe-category-field {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 520px) {
  .rhe-filter-bar {
    grid-template-columns: 1fr !important;
  }

  .rhe-filter-bar .rhe-search-field,
  .rhe-filter-bar .rhe-category-field,
  .rhe-filter-bar .rhe-month-field,
  .rhe-filter-bar .rhe-year-field {
    grid-column: 1 !important;
  }
}
