/* Public styles stay inside .sonnhalde to preserve the surrounding theme. */
.sonnhalde { --sh-navy: #1d254e; --sh-coral: #ed625f; --sh-surface: #f7f7f7; --sh-line: #ddd; color: #666; line-height: 1.65; }
.sonnhalde *, .sonnhalde *::before, .sonnhalde *::after { box-sizing: border-box; }
.sonnhalde-page { padding-top: 42px; padding-bottom: 64px; }
.sonnhalde h1, .sonnhalde h2, .sonnhalde h3 { color: var(--sh-navy); line-height: 1.25; letter-spacing: -.02em; }
.sonnhalde h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 22px; }
.sonnhalde h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin: 0 0 24px; }
.sonnhalde h3 { font-size: 1.2rem; margin: 0 0 12px; }
.sonnhalde p { margin: 0 0 12px; }
.sonnhalde a, .sonnhalde a:visited { color: var(--sh-coral); }
.sonnhalde a:hover, .sonnhalde a:focus { color: var(--sh-navy); }
.sonnhalde a:focus-visible, .sonnhalde button:focus-visible, .sonnhalde select:focus-visible { outline: 3px solid var(--sh-navy); outline-offset: 4px; }
.sonnhalde [hidden] { display: none !important; }
.sonnhalde .sonnhalde-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; margin-bottom: 12px; color: var(--sh-navy); }
.sonnhalde-page-heading { margin-bottom: 32px; max-width: 720px; }
.sonnhalde-home-events, .sonnhalde-special-events { margin: 36px 0; }
.sonnhalde-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sonnhalde-offer-paging { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.sonnhalde-offer-paging[hidden] { display: none; }
.sonnhalde-offer-paging button { min-width: 44px; min-height: 44px; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.sonnhalde-offer-paging button:disabled { opacity: .35; cursor: default; }
.sonnhalde-offer-paging button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sonnhalde-card, .sonnhalde-offer-card { border: 1px solid var(--sh-line); border-radius: 0; overflow: hidden; background: #fff; min-width: 0; box-shadow: none; }
.sonnhalde .sonnhalde-card > a, .sonnhalde .sonnhalde-card > a:visited, .sonnhalde .sonnhalde-offer-card > a, .sonnhalde .sonnhalde-offer-card > a:visited { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.sonnhalde-card:hover, .sonnhalde-offer-card:hover { border-color: #b7bbc8; box-shadow: none; }
.sonnhalde-card-media { position: relative; height: 205px; overflow: hidden; background: var(--sh-surface); }
.sonnhalde-card-media img { display: block; height: 100%; width: 100%; object-fit: cover; }
.sonnhalde-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.sonnhalde-card-body p { font-size: .92rem; margin-bottom: 5px; }
.sonnhalde-card-body .sonnhalde-excerpt { margin: 12px 0 20px; color: inherit; }
.sonnhalde-more { display: block; margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--sh-navy); }
.sonnhalde-more > span { float: right; }
.sonnhalde-placeholder { height: 100%; min-height: 120px; width: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; background: radial-gradient(circle at 80% 120%, #e4e7ed 0 34%, transparent 34%), radial-gradient(circle at 15% -10%, #f8e7e6 0 40%, transparent 40%), #f7f7f7; color: var(--sh-navy); font-size: 1.65rem; font-weight: 600; letter-spacing: -.03em; }
.sonnhalde-placeholder > span { font-size: .68rem; font-weight: 400; letter-spacing: .06em; margin-top: 6px; }
.sonnhalde-date-badge { position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 5px; min-width: 58px; padding: 7px 12px; text-align: center; color: var(--sh-navy); font-size: .8rem; line-height: 1.3; }
.sonnhalde-date-badge strong { display: block; font-size: 1.6rem; }
.sonnhalde-date-label { font-weight: 600; }
.sonnhalde-section-link { margin-top: 26px !important; }
.sonnhalde-section-link a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.sonnhalde-special, .sonnhalde-offer-weekday { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; box-sizing: border-box; line-height: 1.5; align-self: flex-start; border-radius: 3px; padding: 2px 8px; margin-bottom: 10px; background: #f8e7e6; color: var(--sh-navy); font-size: .72rem; font-weight: 600; letter-spacing: .01em; }
.sonnhalde button, .sonnhalde .sonnhalde-button, .sonnhalde-views a { display: inline-block; padding: 10px 17px; border: 1px solid var(--sh-coral); border-radius: 0; background: #fff; color: var(--sh-navy); font: inherit; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; min-height: 44px; margin: 0; box-shadow: none; text-shadow: none; }
.sonnhalde button:hover, .sonnhalde .sonnhalde-button:hover, .sonnhalde-views a:hover { background: var(--sh-surface); }
.sonnhalde button[aria-pressed="true"], .sonnhalde-views a[aria-current] { background: var(--sh-coral); border-color: var(--sh-coral); color: var(--sh-navy); }
.sonnhalde-filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.sonnhalde-filter-empty, .sonnhalde-empty { padding: 24px; background: var(--sh-surface); }
.sonnhalde-detail > h1 { max-width: 850px; }
.sonnhalde-detail-image { width: 100%; max-width: 850px; margin-bottom: 28px; }
.sonnhalde-detail-image > img { width: auto; height: auto; max-width: 100%; max-height: 550px; display: block; }
.sonnhalde-detail-image > .sonnhalde-placeholder { min-height: 240px; }
.sonnhalde-richtext { max-width: 780px; margin-bottom: 26px; }
.sonnhalde-richtext img { max-width: 100%; height: auto; }
.sonnhalde-richtext ul { list-style: disc; margin-left: 22px; }
.sonnhalde-richtext ol { list-style: decimal; margin-left: 22px; }
.sonnhalde-offer-dates { max-width: 850px; margin: 44px 0 58px; }
.sonnhalde-date-row { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--sh-line); }
.sonnhalde-date-row > div:last-child { min-width: 0; }
.sonnhalde-date-row h3 { margin-bottom: 7px; }
.sonnhalde-date-row p { margin-bottom: 4px; }
.sonnhalde-date-thumb { flex: 0 0 130px; align-self: flex-start; }
.sonnhalde-date-thumb img { width: 130px; height: 100px; object-fit: cover; border-radius: 0; }
.sonnhalde-date-thumb .sonnhalde-placeholder { min-height: 100px; font-size: 1.1rem; }
.sonnhalde-date-thumb .sonnhalde-placeholder > span { display: none; }
.sonnhalde [data-date-navigation] { margin-top: 22px; }
.sonnhalde-cancelled { padding: 18px; border-left: 4px solid var(--sh-coral); color: var(--sh-navy); background: #fdf1f0; font-weight: 600; }
.sonnhalde-agenda-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sonnhalde-views { display: flex; gap: 8px; }
.sonnhalde-category-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.sonnhalde-category-form select { width: auto; max-width: 100%; min-height: 44px; border: 1px solid #ccc; padding: 8px 30px 8px 12px; margin: 0; background: #fff; color: inherit; font: inherit; }
.sonnhalde .sonnhalde-day-heading { font-size: 1.2rem; padding: 14px 18px; background: var(--sh-surface); margin: 28px 0 0; }
.sonnhalde-month-nav { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.sonnhalde-month-nav h2 { margin: 0; text-align: center; flex: 1; font-size: 1.5rem; }
.sonnhalde-month-nav > a { min-width: 44px; min-height: 44px; padding: 10px; text-align: center; border: 1px solid var(--sh-line); border-radius: 0; text-decoration: none; }
.sonnhalde-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--sh-line); border-left: 1px solid var(--sh-line); }
.sonnhalde-weekday { padding: 10px 4px; text-align: center; font-size: .75rem; font-weight: 600; background: var(--sh-surface); border-right: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); overflow-wrap: anywhere; }
.sonnhalde-month-day, .sonnhalde-day-padding { min-width: 0; min-height: 115px; padding: 8px; border-right: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); }
.sonnhalde-day-padding { background: #fafafa; }
.sonnhalde-month-day h3 { font-size: .9rem; margin: 0 0 10px; }
.sonnhalde-month-day.is-today { background: #fdf1f0; box-shadow: inset 0 0 0 2px var(--sh-navy); }
.sonnhalde-calendar-event { display: block; padding: 8px 6px; margin-bottom: 7px; border-left: 3px solid var(--sh-coral); background: var(--sh-surface); line-height: 1.35; font-size: .8rem; text-decoration: none; overflow-wrap: anywhere; }
.sonnhalde-calendar-event:hover { background: #f8e7e6; }
.sonnhalde-calendar-time { display: block; font-size: .72rem; margin-bottom: 3px; font-weight: 700; }
.sonnhalde-calendar-event .sonnhalde-special { padding: 0; margin: 5px 0 0; background: transparent; font-size: .65rem; }
.sonnhalde-mobile-weekday { display: none; }
.sonnhalde-pagination { margin: 24px 0; }
.sonnhalde-pagination ul { display: flex; gap: 7px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.sonnhalde-pagination li { margin: 0; }
.sonnhalde-pagination a, .sonnhalde-pagination span { display: block; padding: 9px 14px; min-height: 44px; border: 1px solid var(--sh-line); border-radius: 3px; }
.sonnhalde-pagination .current { background: var(--sh-coral); border-color: var(--sh-coral); color: var(--sh-navy); }
.sonnhalde-date-navigation { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.sonnhalde-date-navigation button { display: inline-flex; align-items: center; justify-content: center; }
.sonnhalde-date-navigation [data-date-previous], .sonnhalde-date-navigation [data-date-next] { width: 44px; padding: 0; }
.sonnhalde-date-navigation button:disabled { opacity: .45; cursor: default; }
.sonnhalde-agenda-more { display: flex; justify-content: center; margin: 28px 0 8px; }
.sonnhalde-agenda-more .sonnhalde-button[aria-disabled="true"] { opacity: .55; cursor: default; }
.sonnhalde-agenda-more[hidden] { display: none; }
.sonnhalde-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 980px) { .sonnhalde-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .sonnhalde-month-day { padding: 5px; } }
@media (max-width: 640px) {
    .sonnhalde-page { padding-top: 28px; padding-bottom: 40px; }
    .sonnhalde-grid { grid-template-columns: minmax(0, 1fr); }
    .sonnhalde-card-media { height: 215px; }
    .sonnhalde-month-grid { grid-template-columns: minmax(0, 1fr); }
    .sonnhalde-weekday, .sonnhalde-day-padding { display: none; }
    .sonnhalde-month-day { min-height: 60px; padding: 12px; }
    .sonnhalde-mobile-weekday { display: inline; }
    .sonnhalde-calendar-event { padding: 10px; font-size: .9rem; }
    .sonnhalde-month-nav { gap: 5px; flex-wrap: wrap; }
    .sonnhalde-month-nav h2 { font-size: 1.2rem; }
    .sonnhalde-category-form { align-items: stretch; }
    .sonnhalde-category-form label { width: 100%; }
    .sonnhalde-category-form select { min-width: 0; flex: 1; }
    .sonnhalde-date-row { gap: 12px; }
    .sonnhalde-date-thumb { flex-basis: 78px; }
    .sonnhalde-date-thumb img { width: 78px; height: 78px; }
    .sonnhalde-date-thumb .sonnhalde-placeholder { min-height: 78px; font-size: .8rem; }
}
@media (prefers-reduced-motion: no-preference) { .sonnhalde-card, .sonnhalde-offer-card { transition: box-shadow .15s ease, border-color .15s ease; } }

/* Red controls match the site's filters; explicit states keep labels readable. */
.sonnhalde h3 a,
.sonnhalde h3 a:visited { color: var(--sh-navy); }
.sonnhalde button,
.sonnhalde .sonnhalde-views a,
.sonnhalde .sonnhalde-views a:visited,
.sonnhalde a.sonnhalde-button,
.sonnhalde a.sonnhalde-button:visited,
.sonnhalde .sonnhalde-month-nav > a,
.sonnhalde .sonnhalde-month-nav > a:visited,
.sonnhalde .sonnhalde-pagination a,
.sonnhalde .sonnhalde-pagination a:visited {
    color: var(--sh-navy); background: #fff; border-color: var(--sh-coral);
    border-radius: 0; text-decoration: none;
}
.sonnhalde a.sonnhalde-button,
.sonnhalde a.sonnhalde-button:visited { background: var(--sh-coral); }
.sonnhalde button:hover,
.sonnhalde button:focus-visible,
.sonnhalde .sonnhalde-views a:hover,
.sonnhalde .sonnhalde-views a:focus-visible,
.sonnhalde a.sonnhalde-button:hover,
.sonnhalde a.sonnhalde-button:focus-visible,
.sonnhalde .sonnhalde-month-nav > a:hover,
.sonnhalde .sonnhalde-month-nav > a:focus-visible,
.sonnhalde .sonnhalde-pagination a:hover,
.sonnhalde .sonnhalde-pagination a:focus-visible {
    color: var(--sh-navy); background: var(--sh-coral); border-color: var(--sh-coral);
}
.sonnhalde .sonnhalde-views a[aria-current],
.sonnhalde .sonnhalde-views a[aria-current]:visited,
.sonnhalde .sonnhalde-views a[aria-current]:hover,
.sonnhalde .sonnhalde-views a[aria-current]:focus,
.sonnhalde .sonnhalde-filters button[aria-pressed="true"],
.sonnhalde .sonnhalde-filters button[aria-pressed="true"]:hover,
.sonnhalde .sonnhalde-filters button[aria-pressed="true"]:focus {
    color: var(--sh-navy); background: var(--sh-coral); border-color: var(--sh-coral);
}
.sonnhalde .sonnhalde-pagination .current {
    color: var(--sh-navy) !important; background: var(--sh-coral); border-color: var(--sh-coral);
}

/* Compact image-and-title tiles follow the original portfolio layout. */
.sonnhalde-page { padding-top: 26px; }
.sonnhalde-offers-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sonnhalde-offers-toolbar .sonnhalde-filters { margin: 0 0 0 auto; gap: 6px; justify-content: flex-end; }
.sonnhalde .sonnhalde-filters button { min-height: 30px; padding: 5px 10px; font-weight: 400; font-size: 14px; line-height: 18px; border-color: #ddd; color: #888; }
:is(.sonnhalde-offers, .sonnhalde-offer-group) > .sonnhalde-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; row-gap: 40px; }
.sonnhalde .sonnhalde-offer-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.sonnhalde .sonnhalde-offer-card:hover { border: 0; box-shadow: none; }
.sonnhalde-offer-card .sonnhalde-card-media { height: auto; aspect-ratio: 3 / 2; }
.sonnhalde-offer-card .sonnhalde-card-body { padding: 10px 0 0; }
.sonnhalde .sonnhalde-offer-card h3 { font-size: 14px; line-height: 1.2; letter-spacing: normal; margin: 0; }
.sonnhalde-offer-card .sonnhalde-placeholder { min-height: 0; font-size: 1.3rem; }
.sonnhalde-offer-card .sonnhalde-special { margin-bottom: 6px; }
/* Upcoming dates are square tiles in chronological row order. */
.sonnhalde-offer-dates [data-date-results] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.sonnhalde-offer-dates .sonnhalde-date-row { display: flex; aspect-ratio: 1; min-width: 0; padding: 16px; border: 1px solid #ddd; background: #fff; overflow-wrap: anywhere; }
.sonnhalde-offer-dates .sonnhalde-date-row h3 { font-size: 15px; margin-bottom: 14px; }
.sonnhalde-offer-dates .sonnhalde-date-row p { font-size: 13px; line-height: 1.5; }
.sonnhalde-offer-dates .sonnhalde-date-row:focus-within { border-color: var(--sh-coral); }
.sonnhalde button[aria-pressed="true"],
.sonnhalde .sonnhalde-filters button[aria-pressed="true"],
.sonnhalde .sonnhalde-filters button:hover,
.sonnhalde .sonnhalde-filters button:focus-visible { color: #fff; background: var(--sh-coral); border-color: var(--sh-coral); }
@media (max-width: 980px) {
    :is(.sonnhalde-offers, .sonnhalde-offer-group) > .sonnhalde-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sonnhalde-offer-dates [data-date-results] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .sonnhalde-offers-toolbar { flex-direction: column; gap: 14px; }
    .sonnhalde-offers-toolbar .sonnhalde-filters { margin-left: 0; justify-content: flex-start; }
    .sonnhalde .sonnhalde-filters button { min-height: 40px; }
    :is(.sonnhalde-offers, .sonnhalde-offer-group) > .sonnhalde-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .sonnhalde-offer-dates [data-date-results] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sonnhalde-offer-dates .sonnhalde-date-row { padding: 12px; }
}
@media (max-width: 350px) {
    :is(.sonnhalde-offers, .sonnhalde-offer-group) > .sonnhalde-grid, .sonnhalde-offer-dates [data-date-results] { grid-template-columns: minmax(0, 1fr); }
}

/* Highlight the complete tile for pointer and keyboard navigation. */
.sonnhalde .sonnhalde-offer-card:hover,
.sonnhalde .sonnhalde-offer-card:focus-within,
.sonnhalde-offer-dates .sonnhalde-date-row:hover,
.sonnhalde-offer-dates .sonnhalde-date-row:focus-within { background: #f8e7e6; }
.sonnhalde a.sonnhalde-button:hover,
.sonnhalde a.sonnhalde-button:focus-visible { background: #d94f4c; }

/* Theme link hover styles must not underline the whole event card. */
.sonnhalde .sonnhalde-card > a:hover,
.sonnhalde .sonnhalde-card > a:focus,
.sonnhalde .sonnhalde-card > a:active { text-decoration: none !important; }
.sonnhalde .sonnhalde-card:hover,
.sonnhalde .sonnhalde-card:focus-within { background: #f8e7e6; }

.sonnhalde .sonnhalde-category-form { align-items: center; }
.sonnhalde .sonnhalde-category-form label { margin: 0; align-self: center; line-height: 1.4; }

/* Extend the native title link over its entire date row, including whitespace. */
.sonnhalde .sonnhalde-date-row { position: relative; }
.sonnhalde .sonnhalde-date-row h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sonnhalde .sonnhalde-date-row h3 a:hover,
.sonnhalde .sonnhalde-date-row h3 a:focus { text-decoration: none !important; }
.sonnhalde .sonnhalde-date-row:hover,
.sonnhalde .sonnhalde-date-row:focus-within { background: #f8e7e6; }
.sonnhalde .sonnhalde-date-row h3 a:focus-visible::after { outline: 2px solid var(--sh-navy); outline-offset: 2px; }

/* Keep contact addresses on one line; wrap before the link instead. */
.sonnhalde a[href^="mailto:"] { white-space: nowrap; }

/* Numbered pagination controls use equal dimensions, including the current page. */
.sonnhalde .sonnhalde-pagination .page-numbers:not(ul):not(.prev):not(.next):not(.dots) {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 0;
}

/* Contain legacy floated images so the next section starts below both columns. */
.sonnhalde .sonnhalde-richtext { display: flow-root; }

/* Align number, ellipsis and previous/next controls on the same baseline. */
.sonnhalde .sonnhalde-pagination li { display: flex; align-items: stretch; }
.sonnhalde .sonnhalde-pagination a,
.sonnhalde .sonnhalde-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; min-height: 44px; margin: 0; padding: 0 14px;
    line-height: 1; border-radius: 0; vertical-align: middle;
}

/* Shared spacing and interaction for cards and full-width agenda rows. */
.sonnhalde { --sh-card-padding: 16px; }
.sonnhalde .sonnhalde-card-body { padding: var(--sh-card-padding); }
.sonnhalde .sonnhalde-offer-card { border: 1px solid transparent; }
.sonnhalde .sonnhalde-offer-card:hover,
.sonnhalde .sonnhalde-offer-card:focus-within,
.sonnhalde .sonnhalde-card:hover,
.sonnhalde .sonnhalde-card:focus-within { border: 1px solid var(--sh-coral); background: #f8e7e6; }
.sonnhalde .sonnhalde-offer-card > a:hover,
.sonnhalde .sonnhalde-offer-card > a:focus { text-decoration: none !important; }
.sonnhalde .sonnhalde-agenda-list .sonnhalde-date-row {
    padding: var(--sh-card-padding); border: 1px solid transparent;
    border-bottom-color: var(--sh-line);
}
.sonnhalde .sonnhalde-agenda-list .sonnhalde-date-row:hover,
.sonnhalde .sonnhalde-agenda-list .sonnhalde-date-row:focus-within { border-color: var(--sh-coral); }
.sonnhalde-home-events > .sonnhalde-grid,
.sonnhalde-special-events > .sonnhalde-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sonnhalde-card .sonnhalde-card-media { height: auto; aspect-ratio: 3 / 2; }
@media (max-width: 980px) {
    .sonnhalde-home-events > .sonnhalde-grid,
    .sonnhalde-special-events > .sonnhalde-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .sonnhalde-home-events > .sonnhalde-grid,
    .sonnhalde-special-events > .sonnhalde-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Quiet hover treatment; saturated red is reserved for selected controls. */
.sonnhalde .sonnhalde-offer-card:hover,
.sonnhalde .sonnhalde-offer-card:focus-within,
.sonnhalde .sonnhalde-card:hover,
.sonnhalde .sonnhalde-card:focus-within,
.sonnhalde .sonnhalde-date-row:hover,
.sonnhalde .sonnhalde-date-row:focus-within,
.sonnhalde .sonnhalde-agenda-list .sonnhalde-date-row:hover,
.sonnhalde .sonnhalde-agenda-list .sonnhalde-date-row:focus-within {
    border-color: #d6d8dd; background: #f7f7f8;
}

/* Overview pages share the compact title and underline used by Angebote. */
.sonnhalde-section-heading {
    position: relative; border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px; margin-bottom: 26px;
}
.sonnhalde .sonnhalde-section-heading h1 {
    font-size: 20px; font-weight: 400; line-height: 1.4;
    letter-spacing: normal; margin: 0;
}
.sonnhalde-section-heading::after {
    content: ""; position: absolute; bottom: -1px; left: 0;
    width: 90px; height: 3px; background: var(--sh-coral);
}

/* Date tiles: exact date, relative date, and time each have their own line. */
.sonnhalde-offer-dates .sonnhalde-date-row time,
.sonnhalde-offer-dates .sonnhalde-relative-date,
.sonnhalde-offer-dates .sonnhalde-time { display: block; }
.sonnhalde-offer-dates .sonnhalde-date-separator { display: none; }
.sonnhalde-relative-date:empty { display: none; }

/* Secondary calendar action stays quieter than the content and primary controls. */
.sonnhalde a.sonnhalde-calendar-link,
.sonnhalde a.sonnhalde-calendar-link:visited {
    display: inline-flex; align-items: center; gap: 8px;
    color: #666; background: transparent; border: 0; padding: 4px 0;
    font-size: 14px; font-weight: 400; text-decoration: none !important;
}
.sonnhalde a.sonnhalde-calendar-link::before {
    content: ""; width: 16px; height: 16px; flex: 0 0 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4m10-4v4M3 10h18m-9 3v5m-2.5-2.5h5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.sonnhalde a.sonnhalde-calendar-link:hover,
.sonnhalde a.sonnhalde-calendar-link:focus-visible {
    color: var(--sh-navy); background: transparent;
}
.sonnhalde-calendar-action { margin-top: 20px; }

/* Month navigation uses crisp chevrons instead of tiny font arrows. */
.sonnhalde .sonnhalde-month-nav > a[aria-label] {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-width: 44px; padding: 0;
    font-size: 0; line-height: 1;
}
.sonnhalde .sonnhalde-month-nav > a[aria-label]::before {
    content: ""; display: block; width: 10px; height: 10px;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    transform: rotate(45deg); margin-right: 4px;
}
.sonnhalde .sonnhalde-month-nav > a[aria-label="Vorheriger Monat"]::before {
    transform: rotate(-135deg); margin-right: 0; margin-left: 4px;
}

/* Consistent 3:2 offer photos, scaled and cropped without distortion. */
.sonnhalde-richtext > .sonnhalde-offer-content-image {
    float: right; width: 520px; max-width: 48%; margin: 0 0 24px 28px;
}
.sonnhalde-richtext > .sonnhalde-offer-content-image img,
.sonnhalde .sonnhalde-richtext img.sonnhalde-embedded-offer-image {
    display: block; aspect-ratio: 3 / 2;
    height: auto !important; object-fit: cover; object-position: center;
    padding: 0 !important; box-sizing: border-box;
}
.sonnhalde-richtext > .sonnhalde-offer-content-image img {
    width: 100% !important;
}
.sonnhalde .sonnhalde-richtext img.sonnhalde-embedded-offer-image {
    float: right !important; width: 520px !important; max-width: 48%;
    margin: 0 0 24px 28px !important;
}
@media (max-width: 980px) {
    .sonnhalde-richtext > .sonnhalde-offer-content-image,
    .sonnhalde .sonnhalde-richtext img.sonnhalde-embedded-offer-image {
        float: none !important; width: 520px !important; max-width: 100%;
        margin: 0 0 24px !important;
    }
}

.sonnhalde .sonnhalde-richtext:has(.sonnhalde-offer-content-image),
.sonnhalde .sonnhalde-richtext:has(img.sonnhalde-embedded-offer-image) {
    max-width: none;
}

/* Full-width notices must start below floated offer images. */
.sonnhalde .sonnhalde-richtext .notification {
    clear: both;
    box-sizing: border-box;
}

.sonnhalde .sonnhalde-date-details > p:not(:has(a)) {
    font-weight: 700 !important;
}

/* Detail headings use uppercase presentation without changing stored titles. */
.sonnhalde-detail > .sonnhalde-section-heading > h1 {
    text-transform: uppercase;
}

/* Date metadata follows the text instead of clearing the taller image. */
.sonnhalde .sonnhalde-richtext > .sonnhalde-date-details {
    margin-top: 24px;
}

/* Consistent title treatment across offer, event and upcoming-date grids. */
.sonnhalde .sonnhalde-offer-card h3,
.sonnhalde .sonnhalde-card h3,
.sonnhalde .sonnhalde-offer-dates .sonnhalde-date-row h3 {
    text-transform: uppercase;
}

.sonnhalde .sonnhalde-card-body > h3 + .sonnhalde-special {
    margin-top: 6px;
}

.sonnhalde-agenda-toolbar .sonnhalde-agenda-filters {
    margin: 0 0 0 auto; gap: 6px; justify-content: flex-end;
}
@media (max-width: 980px) {
    .sonnhalde-offers-toolbar .sonnhalde-filters,
    .sonnhalde-agenda-toolbar .sonnhalde-agenda-filters {
        width: 100%; margin-left: 0; justify-content: flex-start;
    }
}

/* Keep the flyer below the text alongside a floated featured image. */
.sonnhalde .sonnhalde-richtext > .sonnhalde-flyer-download {
    display: flow-root;
    margin-top: 24px;
}

/* Let long titles enlarge date tiles while preserving padding and equal row heights. */
.sonnhalde .sonnhalde-offer-dates [data-date-results] { align-items: stretch; }
.sonnhalde .sonnhalde-offer-dates .sonnhalde-date-row {
    display: block;
    aspect-ratio: auto;
    height: auto;
    min-height: 200px;
    box-sizing: border-box;
}
.sonnhalde .sonnhalde-offer-dates .sonnhalde-date-row > div { min-width: 0; }
.sonnhalde .sonnhalde-offer-dates .sonnhalde-date-row p:last-child { margin-bottom: 0; }

.sonnhalde .sonnhalde-offer-dates > .sonnhalde-calendar-action {
    margin-top: 24px;
}

.sonnhalde .sonnhalde-date-title-label {
    color: #c94043;
    font: inherit;
}

/* Keep event and weekday labels on the image, clear of card titles. */
.sonnhalde .sonnhalde-card-media > :is(.sonnhalde-special, .sonnhalde-offer-weekday) {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    max-width: calc(100% - 24px); margin: 0; padding: 4px 8px;
    background: #f8e7e6; color: var(--sh-navy);
}

/* Give image grids a distinct card surface and comfortable separation. */
:is(.sonnhalde-offers, .sonnhalde-offer-group) > .sonnhalde-grid,
.sonnhalde-home-events > .sonnhalde-grid,
.sonnhalde-special-events > .sonnhalde-grid { gap: 24px; }
.sonnhalde .sonnhalde-offer-card,
.sonnhalde .sonnhalde-card {
    border: 1px solid #e2e4e9; border-radius: 10px; background: #fff;
    box-shadow: 0 3px 12px rgba(29, 37, 78, .08);
}
.sonnhalde .sonnhalde-card-body { padding: 20px; flex: 1; }
.sonnhalde .sonnhalde-offer-card h3 { line-height: 1.45; }
.sonnhalde .sonnhalde-offer-card:hover,
.sonnhalde .sonnhalde-offer-card:focus-within,
.sonnhalde .sonnhalde-card:hover,
.sonnhalde .sonnhalde-card:focus-within {
    border: 1px solid #b8becd; background: #fff;
    box-shadow: 0 6px 20px rgba(29, 37, 78, .14);
}
.sonnhalde .sonnhalde-offer-card:focus-within,
.sonnhalde .sonnhalde-card:focus-within { outline: 2px solid var(--sh-navy); outline-offset: 3px; }
@media (max-width: 640px) {
    :is(.sonnhalde-offers, .sonnhalde-offer-group) > .sonnhalde-grid { grid-template-columns: minmax(0, 1fr); }
    :is(.sonnhalde-offers, .sonnhalde-offer-group) > .sonnhalde-grid,
    .sonnhalde-home-events > .sonnhalde-grid,
    .sonnhalde-special-events > .sonnhalde-grid { gap: 20px; }
}

/* Reserve two title lines so offer cards have a consistent height. */
.sonnhalde .sonnhalde-offer-card h3 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    line-clamp: 2; overflow: hidden; height: 2.9em;
}
.sonnhalde-offer-card .sonnhalde-title-range { display: inline-block; white-space: nowrap; }

.sonnhalde-offer-group + .sonnhalde-offer-group { margin-top: 48px; }
.sonnhalde-offer-group > h2 { margin: 0 0 24px; }
.sonnhalde-offer-group[hidden] { display: none; }
.sonnhalde .sonnhalde-card-body > .sonnhalde-offer-date { display: block; margin: 0 0 6px; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--sh-navy); }
.sonnhalde-cancelled-ribbon { position: absolute; top: 0; right: 0; z-index: 2; padding: 4px 12px; background: #a92332; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; border-radius: 0 0 0 8px; }
.sonnhalde-card-media > .sonnhalde-cancelled-ribbon { top: 18px; left: -34px; right: auto; width: 144px; padding: 4px 0; text-align: center; transform: rotate(-45deg); border-radius: 0; }
.sonnhalde .sonnhalde-date-cancelled { position: relative; }
.sonnhalde .sonnhalde-date-row.sonnhalde-date-cancelled { padding-top: 38px; }
.sonnhalde .sonnhalde-calendar-event.sonnhalde-date-cancelled { padding-top: 34px; }
.sonnhalde .sonnhalde-detail.sonnhalde-date-cancelled { padding-top: 38px; }
