/* Terminliste */
.hrw-events-month { margin: 48px 0 28px; font-weight: 400; }
.hrw-events-month:first-child { margin-top: 0; }
.hrw-event + .hrw-event { margin-top: var(--hrw-gap-default, 48px); }

.hrw-event-date { min-width: 48px; text-align: center; line-height: 1.1; }
.hrw-event-wd { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.hrw-event-day { display: block; font-size: 1.75rem; font-weight: 700; }
.hrw-event-month { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.hrw-event[style] .hrw-event-day { color: var(--hrw-c); }

.hrw-event-when { font-size: .9rem; }
.hrw-event-title { margin: 0 0 12px; }
.hrw-event-title .hrw-event-badge { margin-left: 12px; position: relative; top: -2px; }
.hrw-event-facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 4px 16px;
    margin: 0 0 6px;
    font-size: .95rem;
}
.hrw-event-facts dt { margin: 0; opacity: .7; font-weight: 400; }
.hrw-event-facts dd { margin: 0; }
@media (max-width: 479px) {
    .hrw-event-facts { grid-template-columns: 1fr; gap: 0; }
    .hrw-event-facts dd { margin-bottom: 6px; }
}
.hrw-event-excerpt { margin: 10px 0 0; }
.hrw-event-online { text-transform: none; }

.hrw-event-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 14px; }
.hrw-event-actions .uk-button-text { font-weight: 600; }
.hrw-event-price { font-size: .85rem; opacity: .8; }

.hrw-event-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 4px; }
@media (max-width: 959px) {
    .hrw-event-img { aspect-ratio: 16 / 9; }
}

/* Terminliste: Layout "Programm" */
.hrw-events-list--agenda .hrw-events-month { margin: 48px 0 20px; }
.hrw-events-list--agenda .hrw-events-month:first-child { margin-top: 0; }

.hrw-ag {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    border: 1px dashed var(--hrw-ag-line, rgba(0, 0, 0, .15));
    border-left: 0;
}
.hrw-ag + .hrw-ag { margin-top: var(--hrw-gap-agenda, -1px); }
.hrw-ag-time {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 28px 20px;
    background: var(--hrw-ag-bg, var(--hrw-accent, #3b7a7a));
    color: var(--hrw-ag-text, var(--hrw-ag-on, var(--hrw-on-accent, #fff)));
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.4;
}
.hrw-ag-time > * { position: relative; z-index: 1; }
.hrw-ag-date { font-size: 1rem; }
.hrw-ag-cat { font-size: .8rem; opacity: .9; }

/* Jeder zweite Block etwas dunkler – funktioniert mit jeder Farbe */
.hrw-ag-alternate .hrw-ag--alt .hrw-ag-time::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .14);
}

.hrw-ag-body { display: flex; align-items: center; gap: 36px; padding: 28px 40px; }
.hrw-ag-media { flex: none; }
.hrw-ag-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; display: block; }
.hrw-ag-leader { font-size: .9rem; opacity: .65; margin-bottom: 2px; }
.hrw-ag-title { margin: 0 0 10px; }
.hrw-ag-title .hrw-event-badge { margin-left: 12px; position: relative; top: -2px; }
.hrw-ag-excerpt { margin: 0; opacity: .75; }
.hrw-ag-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; font-size: .85rem; opacity: .75; }
.hrw-ag .hrw-event-actions { margin-top: 12px; }

.hrw-ag--cancelled .hrw-ag-title,
.hrw-ag--cancelled .hrw-ag-date { text-decoration: line-through; }
.hrw-ag--cancelled .hrw-ag-body { opacity: .6; }

@media (max-width: 959px) {
    .hrw-ag { grid-template-columns: 160px minmax(0, 1fr); }
    .hrw-ag-body { gap: 24px; padding: 24px; }
}
@media (max-width: 639px) {
    .hrw-ag { grid-template-columns: 1fr; border-left: 1px dashed var(--hrw-ag-line, rgba(0, 0, 0, .15)); }
    .hrw-ag + .hrw-ag { margin-top: max(16px, var(--hrw-gap-agenda, 0px)); }
    .hrw-ag-time { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; }
    .hrw-ag-body { align-items: flex-start; gap: 16px; padding: 20px 16px; }
    .hrw-ag-img { width: 56px; height: 56px; }
}

/* Schnellansicht (Popup) */
.hrw-qv { max-width: 100%; }
.hrw-qv-heading { font-size: 1.25rem; }
.hrw-qv-img { width: 100%; aspect-ratio: 3 / 2; max-height: 50vh; object-fit: cover; display: block; border-radius: 4px; }
.hrw-qv-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 24px; align-items: start; margin: 24px 0 8px; }
.hrw-qv-date { display: flex; flex-direction: column; font-size: .8rem; line-height: 1.35; min-width: 60px; }
.hrw-qv-day { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.hrw-qv-title { margin: 0 0 8px; }
.hrw-qv-main .hrw-event-badge { margin-left: 0; }
.hrw-qv-price { font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.hrw-qv-section { margin-top: 20px; }
.hrw-qv-section h4 { margin: 0 0 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.hrw-qv-section p { margin: 0; }
.hrw-qv-footer { display: block; }
.hrw-qv-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.hrw-qv-note { font-size: .85rem; opacity: .75; margin-right: 8px; }
.hrw-qv-more { font-size: .9rem; }
@media (max-width: 639px) {
    .hrw-qv-head { grid-template-columns: auto minmax(0, 1fr); }
    .hrw-qv-price { grid-column: 2; margin-top: 8px; }
    .hrw-qv-actions { width: 100%; }
    .hrw-qv-actions .uk-button { flex: 1; }
}

/* Formular im Popup */
.hrw-qv .hrw-booking { margin-top: 0; padding-top: 0; border-top: 0; }
.hrw-qv-summary { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; margin-bottom: 24px; border-radius: 4px; background: rgba(0, 0, 0, .04); }
.hrw-qv-summary span { font-size: .9rem; opacity: .75; }
.hrw-qv-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; width: 100%; }
.hrw-qv-foot[hidden] { display: none; }
.hrw-qv-back { text-transform: none; display: inline-flex; align-items: center; gap: 6px; }

/* Kategorie-Filter */
.hrw-events-filter { margin-bottom: 20px; }
.hrw-filter-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Element "Veranstaltung – Info" */
.hrw-bc { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 6px; }
.hrw-bc-label { margin: 0 !important; }
/* Bausteine im Element: ohne die Abstände und Linien, die sie unter dem Text haben */
.hrw-info .hrw-event-details,
.hrw-info .hrw-booking { margin-top: 0; padding-top: 0; border-top: 0; }
.hrw-info .hrw-event-head { margin-bottom: 0; }
.hrw-event-dl .hrw-event-badge { margin-left: 0; }
.hrw-info-field--meta .hrw-info-label { opacity: .65; }
.hrw-info-field--bold .hrw-info-label { font-weight: 600; }
.hrw-info-field--block .hrw-info-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: 2px; }
.hrw-info-field .hrw-event-badge { margin-left: 0; }
.hrw-info-note { margin: 0; opacity: .75; }
.hrw-info-hint { padding: 10px 14px; border: 1px dashed #d8a200; background: #fff8e1; color: #5c4400; font-size: .85rem; line-height: 1.5; border-radius: 3px; }
.hrw-info-hint em { opacity: .75; }

/* Einzelseite: Kopfzeile */
.hrw-event-head { gap: 12px 24px; padding: 16px 20px; border-radius: 4px; background: rgba(0, 0, 0, .03); }
.hrw-event-head-info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.hrw-event-head-when { font-weight: 600; }

/* Status */
.hrw-event-badge { margin-left: 10px; text-transform: none; font-size: .75rem; vertical-align: middle; }
.hrw-event-head-info .hrw-event-badge { margin-left: 0; }
.hrw-event-struck { text-decoration: line-through; }
.hrw-event--cancelled .hrw-event-title,
.hrw-event--cancelled .hrw-event-facts,
.hrw-event--cancelled .hrw-event-excerpt { opacity: .55; }
.hrw-event-head-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.hrw-event-head-note { font-size: .85rem; opacity: .8; }
.hrw-cal-day li.hrw-cal-cancelled a { text-decoration: line-through; opacity: .6; }

/* Anmeldeformular */
.hrw-booking { margin-top: 48px; scroll-margin-top: 100px; }
.hrw-booking .hrwa-card { max-width: var(--hrw-form-max, none); }
.hrw-booking-title { margin-top: 0; }

.hrw-booking-optional { font-weight: 400; opacity: .6; }
.hrw-booking-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.hrw-booking-consent .uk-checkbox { flex: none; margin-top: 3px; }
.hrw-booking-consent > span { flex: 1; min-width: 0; }
/* Checkbox immer gut sichtbar, auch auf farbigem Hintergrund.
   Nur im ungeklickten Zustand – angehakt übernimmt das Theme (Primärfarbe + Haken). */
.hrw-booking-consent .uk-checkbox { width: 18px; height: 18px; }
.hrw-booking-consent .uk-checkbox:not(:checked):not(:indeterminate) {
    background-color: #fff;
    border: 1.5px solid rgba(0, 0, 0, .55);
}
.hrw-booking-consent .uk-checkbox:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hrw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Einzelseite: Detailblock */
.hrw-event-details { margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(0, 0, 0, .1); }
.hrw-event-details-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.hrw-event-dl { margin: 0; }
.hrw-event-dl dt { font-weight: 600; margin-top: 12px; }
.hrw-event-dl dt:first-child { margin-top: 0; }
.hrw-event-dl dd { margin: 2px 0 0; }
.hrw-details-part + .hrw-details-part { margin-top: 36px; }
.hrw-event-details-notes { margin-top: 36px; padding: 20px 24px; background: rgba(0, 0, 0, .03); border: 1px solid rgba(0, 0, 0, .1); border-radius: 5px; box-sizing: border-box; }
.hrw-event-details-notes .hrw-event-details-title { margin-top: 0; margin-bottom: 10px; }
.hrw-event-details-notes:first-child { margin-top: 0; }
.hrw-event-details-notes p:last-child { margin-bottom: 0; }
/* Allein in einer Builder-Spalte: Hinweise schließen unten mit der Nachbarspalte ab, z.B. einem Bild */
.uk-grid > * > .hrw-info:only-child:has(> .hrw-event-details > .hrw-event-details-notes) { height: 100%; }
.uk-grid > * > .hrw-info:only-child > .hrw-event-details:has(> .hrw-event-details-notes) { display: flex; flex-direction: column; height: 100%; }
.uk-grid > * > .hrw-info:only-child > .hrw-event-details > .uk-grid:has(+ .hrw-event-details-notes) { margin-bottom: 36px; }
.uk-grid > * > .hrw-info:only-child > .hrw-event-details > .hrw-event-details-notes { margin-top: auto; }
/* Umgekehrt: Einzelnes Bild-Element in der Nachbarspalte wächst bis zur Unterkante des höheren Detailblocks und wird
   dabei beschnitten. Es wird nie kleiner als normal, untereinander (Handy) bleibt es also unverändert.
   YOOtheme gibt das Bild je nach Link und Dateityp anders aus: img, a > img, picture > img (JPG/PNG mit WebP) oder a > picture > img.
   Die Pfade sind bewusst einzeln aufgeführt, damit Galerien in der Spalte unberührt bleiben. */
.uk-grid:has(> * > .hrw-info:only-child > .hrw-event-details) > :has(> :only-child > .el-image, > :only-child > .el-link > .el-image, > :only-child > picture > .el-image, > :only-child > .el-link > picture > .el-image) { display: flex; flex-direction: column; }
.uk-grid:has(> * > .hrw-info:only-child > .hrw-event-details) > * > :only-child:has(> .el-image, > .el-link > .el-image, > picture > .el-image, > .el-link > picture > .el-image) { display: flex; flex: 1 1 auto; }
.uk-grid:has(> * > .hrw-info:only-child > .hrw-event-details) > * > :only-child > .el-link:has(> .el-image, > picture > .el-image),
.uk-grid:has(> * > .hrw-info:only-child > .hrw-event-details) > * > :only-child > picture:has(> .el-image),
.uk-grid:has(> * > .hrw-info:only-child > .hrw-event-details) > * > :only-child > .el-link > picture:has(> .el-image) { display: flex; flex: 1 1 auto; min-width: 0; }
.uk-grid:has(> * > .hrw-info:only-child > .hrw-event-details) > * > :only-child > .el-image,
.uk-grid:has(> * > .hrw-info:only-child > .hrw-event-details) > * > :only-child > .el-link > .el-image,
.uk-grid:has(> * > .hrw-info:only-child > .hrw-event-details) > * > :only-child > picture > .el-image,
.uk-grid:has(> * > .hrw-info:only-child > .hrw-event-details) > * > :only-child > .el-link > picture > .el-image { flex: 1 1 auto; width: 100%; min-width: 0; height: auto; object-fit: cover; }
/* Buttons im Detailblock: untereinander, gleich breit, ohne Umbruch */
.hrw-event-details-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; max-width: 340px; }
.hrw-event-details-buttons > .uk-button,
.hrw-event-details-buttons .hrw-event-addcal,
.hrw-event-details-buttons .hrw-event-addcal > .uk-button { display: block; width: 100%; }
.hrw-event-details-buttons .uk-button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.hrw-event-details-buttons .hrw-event-addcal .uk-dropdown { min-width: 100%; box-sizing: border-box; }
/* Variante: Kalender als dezenter Link */
.hrw-buttons--link .hrw-event-addcal { width: auto; align-self: flex-start; }

/* Kalender als Textlink – sieht aus wie „In Google Maps öffnen“ */
.hrw-cal-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; line-height: inherit; cursor: pointer; text-align: left; }
.hrw-event-addcal--link .uk-dropdown { min-width: 240px; }
.hrw-place-cal-button { margin-top: 20px; }

/* Symbol-Leiste */
.hrw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hrw-actions .hrw-event-addcal { display: inline-block; }
.hrw-actions .hrw-icon-btn {
    box-sizing: border-box;
    line-height: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.hrw-actions .hrw-icon-btn:hover,
.hrw-actions .hrw-icon-btn:focus-visible { background: rgba(0, 0, 0, .04); border-color: currentColor; text-decoration: none; }
.hrw-actions .hrw-icon-btn > [uk-icon],
.hrw-actions .hrw-icon-btn > .uk-icon { display: block; line-height: 0; }
.hrw-actions .hrw-icon-btn svg { display: block; }
.hrw-icon-btn.is-copied::after {
    content: attr(data-done);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 9px;
    border-radius: 3px;
    background: #222;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}
.hrw-place-cal-button .uk-button { white-space: nowrap; }

/* Monatsansicht */
.hrw-cal-grid {
    display: grid;
    grid-template-columns: repeat(var(--hrw-cols, 7), minmax(0, 1fr));
    border-top: 1px solid rgba(0, 0, 0, .1);
    border-left: 1px solid rgba(0, 0, 0, .1);
}
.hrw-cal-head,
.hrw-cal-day {
    border-right: 1px solid rgba(0, 0, 0, .1);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding: 6px 8px;
}
.hrw-cal-head { font-size: .75rem; font-weight: 600; text-align: center; text-transform: uppercase; }
.hrw-cal-day { min-height: 96px; font-size: .85rem; min-width: 0; }
.hrw-cal-empty { background: rgba(0, 0, 0, .02); }
.hrw-cal-num { display: block; font-weight: 600; margin-bottom: 4px; }
.hrw-cal-today .hrw-cal-num { text-decoration: underline; text-underline-offset: 3px; }
.hrw-cal-wd { display: none; }
.hrw-cal-day ul { list-style: none; margin: 0; padding: 0; }
.hrw-cal-day li { margin: 0 0 4px; line-height: 1.3; }
.hrw-cal-day li a {
    display: block;
    padding: 2px 5px;
    border-radius: 3px;
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.hrw-cal-none { margin-top: 12px; }

/* Termin-Stil: hinterlegt */
.hrw-cal--box .hrw-cal-day li a { background: rgba(0, 0, 0, .06); }
.hrw-cal--box .hrw-cal-day li[style] a { background: color-mix(in srgb, var(--hrw-c) 18%, transparent); }
.hrw-cal--box .hrw-cal-day li a:hover { filter: brightness(.93); }

/* Termin-Stil: Punkt */
.hrw-cal--dot .hrw-cal-day li a { padding-left: 14px; position: relative; }
.hrw-cal--dot .hrw-cal-day li a::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hrw-c, currentColor);
}

/* Termin-Stil: Balken */
.hrw-cal--bar .hrw-cal-day li a {
    border-left: 3px solid var(--hrw-c, currentColor);
    border-radius: 0;
    padding-left: 6px;
}

.hrw-cal-day li a:hover { text-decoration: underline; }

/* Lange Titel abschneiden */
.hrw-cal--truncate .hrw-cal-day li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
}

/* Vergangene Tage ausgrauen */
.hrw-cal--past-dim .hrw-cal-past { opacity: .45; }


/* Handy */
@media (max-width: 639px) {
    /* Variante Liste: nur Tage mit Terminen */
    .hrw-cal--mobile-list .hrw-cal-grid { display: block; border: 0; }
    .hrw-cal--mobile-list .hrw-cal-head,
    .hrw-cal--mobile-list .hrw-cal-empty,
    .hrw-cal--mobile-list .hrw-cal-day:not(.hrw-cal-has) { display: none; }
    .hrw-cal--mobile-list .hrw-cal-day { min-height: 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .1); padding: 10px 0; }
    .hrw-cal--mobile-list .hrw-cal-wd { display: inline; }
    .hrw-cal--mobile-list .hrw-cal-day li a { white-space: normal; }

    /* Variante Raster: kompakt, Titel nur als Markierung */
    .hrw-cal:not(.hrw-cal--mobile-list) .hrw-cal-day { min-height: 56px; padding: 4px; font-size: .7rem; }
    .hrw-cal:not(.hrw-cal--mobile-list) .hrw-cal-day li a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 3px; }
}

/* Max. Termine pro Tag */
.hrw-js .hrw-cal-day:not(.is-open) .hrw-cal-extra { display: none; }
.hrw-cal-more .uk-button-link { font-size: .75rem; text-transform: none; padding: 0 5px; line-height: 1.4; }

@media (max-width: 639px) {
    .hrw-cal--mobile-list .hrw-cal-extra { display: block !important; }
    .hrw-cal--mobile-list .hrw-cal-more { display: none; }
}

/* Drucken: nur der Kalender */
@media print {
    body.hrw-printing * { visibility: hidden; }
    body.hrw-printing .hrw-print-target,
    body.hrw-printing .hrw-print-target * { visibility: visible; }
    body.hrw-printing .hrw-print-target { position: absolute; left: 0; top: 0; width: 100%; }

    .hrw-events-toolbar,
    .hrw-cal-nav,
    .hrw-cal-more { display: none !important; }
    .hrw-cal-extra { display: block !important; }
    .hrw-cal-day { min-height: 70px; break-inside: avoid; }
    .hrw-cal--past-dim .hrw-cal-past { opacity: 1; }
    .hrw-event, .hrw-ag { break-inside: avoid; }
    .hrw-ag-time { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .hrw-event-img { max-height: 180px; }
}

/* HRW Termine – weitere Listen-Layouts für Veranstaltungen */
.hrw-evl { --hrw-evl-accent: var(--hrw-ag-bg, var(--hrw-accent, #3b7a7a)); --hrw-evl-line: rgba(0,0,0,.1); --hrw-evl-muted: color-mix(in srgb, currentColor 58%, transparent); container-type: inline-size; }
.hrw-evl article, .hrw-evl details {
    --a: var(--hrw-c, var(--hrw-evl-accent));
    /* Schrift auf --a: zur Termin-/Kategoriefarbe, zur Farbe des Elements oder zur Akzentfarbe (seit 1.14.1) */
    --on-a: var(--hrw-on-c, var(--hrw-evl-on, var(--hrw-on-accent, #fff)));
}
.hrw-evl a { color: inherit; text-decoration: none; }
.hrw-evl svg { flex: none; }
.hrw-evl-cat { margin: 0 0 6px; font-size: .75em; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--a); }
.hrw-evl-title { margin: 0 0 10px; font-size: 1.2em; line-height: 1.3; }
.hrw-evl-title a:hover { color: var(--a); }
.hrw-evl-meta { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 4px; font-size: .9em; color: var(--hrw-evl-muted); }
.hrw-evl-meta svg { margin-top: .2em; color: var(--a); }
.hrw-evl-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75em; font-weight: 600; white-space: nowrap; background: color-mix(in srgb, var(--a) 12%, #fff); color: color-mix(in srgb, var(--a) 80%, #000); }
.hrw-evl-badge.is-full { background: #f3eeee; color: #8a3b36; }
.hrw-evl-badge.is-wait { background: #fbf3e4; color: #8a5a12; }
.hrw-evl-price { font-weight: 600; }
.hrw-evl-btn { display: inline-block; padding: .55em 1.2em; border-radius: 999px; background: var(--a); color: #fff !important; font-size: .9em; font-weight: 600; white-space: nowrap; }
.hrw-evl-btn:hover { filter: brightness(.92); }
.hrw-evl-link { font-weight: 600; font-size: .9em; color: var(--a) !important; }
.hrw-evl-link::after { content: " →"; }
.hrw-evl-month { display: flex; align-items: center; gap: 14px; margin: 34px 0 18px; font-size: .8em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hrw-evl-muted); }
.hrw-evl-month::after { content: ""; flex: 1; height: 1px; background: var(--hrw-evl-line); }
.hrw-evl > .hrw-evl-month:first-child { margin-top: 0; }
.hrw-evl .is-cancelled .hrw-evl-title { text-decoration: line-through; opacity: .6; }

/* ---------- Karten ---------- */
.hrw-evl--cards .hrw-evl-grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
@container (min-width: 560px) { .hrw-evl--cards .hrw-evl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 900px) { .hrw-evl--cards .hrw-evl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 1 Termin: volle Breite, Bild links / Text rechts. 2 Termine: zwei Spalten über die volle Breite. Ab 3: Raster mit Umbruch. */
@container (min-width: 560px) {
    .hrw-evl--cards .hrw-evl-grid--n1 { grid-template-columns: 1fr; }
}
@container (min-width: 700px) {
    .hrw-evl-grid--n1 .hrw-evl-card { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); }
    .hrw-evl-grid--n1 .hrw-evl-media { aspect-ratio: auto; min-height: 100%; }
    .hrw-evl-grid--n1 .hrw-evl-date { top: 16px; bottom: auto; }
    .hrw-evl-grid--n1 .hrw-evl-body { padding: 28px 32px; }
}
@container (min-width: 900px) {
    .hrw-evl--cards .hrw-evl-grid--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hrw-evl-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 28px -14px rgba(0,0,0,.22); transition: transform .18s, box-shadow .18s; }
.hrw-evl-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 36px -16px rgba(0,0,0,.28); }
.hrw-evl-media { position: relative; display: block; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--a) 15%, #fff); }
.hrw-evl-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hrw-evl-date { position: absolute; left: 16px; bottom: -22px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 62px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px -6px rgba(0,0,0,.3); line-height: 1; }
.hrw-evl-date b { font-size: 1.55em; color: var(--a); }
.hrw-evl-date span { margin-top: 4px; font-size: .72em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hrw-evl-card .hrw-evl-body { display: flex; flex-direction: column; flex: 1; padding: 34px 20px 20px; }
.hrw-evl-card .hrw-evl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }

/* ---------- Zeitleiste ---------- */
.hrw-evl-tl { position: relative; display: grid; grid-template-columns: 64px 28px minmax(0, 1fr); padding-bottom: 30px; }
.hrw-evl-tl::before { content: ""; position: absolute; left: 77px; top: 10px; bottom: -10px; width: 2px; background: var(--hrw-evl-line); }
.hrw-evl-tl:last-child::before { bottom: 30px; }
.hrw-evl-tl-date { text-align: right; line-height: 1.05; }
.hrw-evl-tl-date span { display: block; font-size: .75em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hrw-evl-muted); }
.hrw-evl-tl-date b { display: block; font-size: 1.9em; font-weight: 300; }
.hrw-evl-tl-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin: 8px 0 0 7px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--a); }
.hrw-evl-tl-body { padding-left: 10px; }
.hrw-evl-tl-body .hrw-evl-cat { margin-bottom: 4px; }
.hrw-evl-tl-body .hrw-evl-title { margin-bottom: 6px; }
.hrw-evl-tl-line { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hrw-evl-excerpt { margin: 8px 0 0; font-size: .95em; }
.hrw-evl-tl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; }

/* ---------- Kompakt ---------- */
.hrw-evl--compact .hrw-evl-rows { border-top: 1px solid var(--hrw-evl-line); }
.hrw-evl-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 110px 80px 150px; gap: 18px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--hrw-evl-line); transition: background .12s; }
.hrw-evl-row:hover { background: color-mix(in srgb, var(--a) 5%, transparent); }
.hrw-evl-row-date { border-left: 3px solid var(--a); padding-left: 10px; line-height: 1.15; }
.hrw-evl-row-date b { display: block; font-size: 1.05em; }
.hrw-evl-row-date span { font-size: .8em; color: var(--hrw-evl-muted); }
.hrw-evl-row .hrw-evl-title { margin: 0; font-size: 1.05em; }
.hrw-evl-row .hrw-evl-meta { margin: 2px 0 0; }
.hrw-evl-row-time { font-size: .92em; font-variant-numeric: tabular-nums; }
.hrw-evl-row-price { font-weight: 600; text-align: right; }
.hrw-evl-row-act { text-align: right; }
@container (max-width: 760px) {
    .hrw-evl-row { grid-template-columns: 70px minmax(0, 1fr) auto; grid-template-areas: "d m m" "d t a"; gap: 6px 14px; }
    .hrw-evl-row-date { grid-area: d; align-self: start; }
    .hrw-evl-row-main { grid-area: m; }
    .hrw-evl-row-time { grid-area: t; }
    .hrw-evl-row-price { display: none; }
    .hrw-evl-row-act { grid-area: a; }
}

/* ---------- Plakat ---------- */
.hrw-evl-hero { display: grid; grid-template-columns: 1fr; border-radius: 18px; overflow: hidden; background: color-mix(in srgb, var(--a) 7%, #fff); }
@container (min-width: 760px) { .hrw-evl-hero { grid-template-columns: 1.1fr 1fr; } }
.hrw-evl-hero .hrw-evl-media { aspect-ratio: auto; min-height: 280px; }
.hrw-evl-hero .hrw-evl-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.hrw-evl-kicker { margin: 0 0 18px; font-size: .78em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hrw-evl-muted); }
.hrw-evl-bigdate { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; color: var(--a); }
.hrw-evl-bigdate b { font-size: 3.4em; font-weight: 300; line-height: 1; }
.hrw-evl-bigdate span { font-size: 1.05em; font-weight: 600; }
.hrw-evl-hero .hrw-evl-title { font-size: 1.7em; margin: 8px 0 14px; }
.hrw-evl-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; }
.hrw-evl-more { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: 1fr; }
@container (min-width: 760px) {
    .hrw-evl-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    /* Nur ein oder zwei Termine unter dem Plakat: Breite gleichmäßig aufteilen statt Lücke rechts */
    .hrw-evl-more:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
    .hrw-evl-more:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hrw-evl-mini { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--hrw-evl-line); border-radius: 12px; transition: border-color .15s; }
.hrw-evl-mini:hover { border-color: var(--a); }
.hrw-evl-mini-date { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; background: color-mix(in srgb, var(--a) 12%, #fff); line-height: 1; }
.hrw-evl-mini-date b { font-size: 1.35em; color: var(--a); }
.hrw-evl-mini-date span { margin-top: 3px; font-size: .68em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hrw-evl-mini .hrw-evl-title { font-size: 1em; margin: 0 0 4px; }

/* ---------- Magazin (1.12): großes Bild im Wechsel, Datum groß ---------- */
.hrw-evl-mag { display: grid; gap: 20px; margin: 0 0 44px; }
.hrw-evl-mag:last-child { margin-bottom: 0; }
.hrw-evl-mag .hrw-evl-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.hrw-evl-mag-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: #fff; background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 65%, #000)); }
.hrw-evl-mag-ph b { font-size: 5em; font-weight: 300; }
.hrw-evl-mag-ph span { margin-top: 8px; font-size: .9em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hrw-evl-mag-date { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.hrw-evl-mag-date b { font-size: 3.6em; font-weight: 300; line-height: .8; color: var(--a); }
.hrw-evl-mag-date span { font-size: .8em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; color: var(--hrw-evl-muted); }
.hrw-evl-mag .hrw-evl-cat { margin-bottom: 4px; }
.hrw-evl-mag .hrw-evl-title { font-size: 1.6em; line-height: 1.15; margin: 0 0 10px; }
.hrw-evl-mag .hrw-evl-tl-line { margin-bottom: 4px; }
.hrw-evl-mag .hrw-evl-excerpt { margin: 12px 0 0; font-size: 1em; }
.hrw-evl-mag .hrw-evl-status { margin: 8px 0 0; }
@container (min-width: 620px) {
    .hrw-evl-mag { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-bottom: 64px; }
    .hrw-evl-mag:nth-of-type(even) .hrw-evl-media { order: 2; }
}

/* ---------- Akkordeon (1.12): eine Zeile pro Termin, Details aufklappen ---------- */
.hrw-evl-acc { border-bottom: 1px solid var(--hrw-evl-line); }
.hrw-evl--accordion > .hrw-evl-acc:first-child,
.hrw-evl--accordion > .hrw-evl-month + .hrw-evl-acc { border-top: 1px solid var(--hrw-evl-line); }
.hrw-evl-acc-head { display: grid; grid-template-columns: 62px minmax(0, 1fr) 28px; align-items: center; gap: 4px 16px; padding: 14px 4px; cursor: pointer; list-style: none; transition: background .12s; }
.hrw-evl-acc-head::-webkit-details-marker { display: none; }
.hrw-evl-acc-head::marker { content: ""; }
.hrw-evl-acc-head:hover { background: color-mix(in srgb, var(--a) 5%, transparent); }
.hrw-evl-acc-head:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.hrw-evl-acc-date { padding: 2px 0 2px 10px; border-left: 3px solid var(--a); line-height: 1.05; }
.hrw-evl-acc-date span { display: block; font-size: .72em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hrw-evl-muted); }
.hrw-evl-acc-date b { display: block; font-size: 1.5em; }
.hrw-evl-acc-main { min-width: 0; }
.hrw-evl-acc-main .hrw-evl-title { display: block; margin: 0; font-size: 1.08em; }
.hrw-evl-acc-main small { display: block; margin-top: 2px; font-size: .88em; color: var(--hrw-evl-muted); }
.hrw-evl-acc-side { display: none; }
.hrw-evl-acc-plus { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .15s, color .15s; }
.hrw-evl-acc-plus::before, .hrw-evl-acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.hrw-evl-acc-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .15s; }
.hrw-evl-acc[open] .hrw-evl-acc-plus { background: var(--a); border-color: var(--a); color: var(--on-a, var(--hrw-on-accent, #fff)); }
.hrw-evl-acc[open] .hrw-evl-acc-plus::after { opacity: 0; }
.hrw-evl-acc-body { display: grid; gap: 20px; padding: 2px 4px 24px; }
.hrw-evl-acc-body .hrw-evl-excerpt { margin: 0 0 14px; }
.hrw-evl-acc-facts { margin: 0; padding: 0; list-style: none; font-size: .92em; }
.hrw-evl-acc-facts li { display: flex; gap: 12px; margin: 0; padding: 5px 0; border-bottom: 1px dashed var(--hrw-evl-line); }
.hrw-evl-acc-facts b { flex: none; min-width: 64px; font-weight: 600; }
.hrw-evl-acc-img { display: none; }
@container (min-width: 620px) {
    .hrw-evl-acc-head { grid-template-columns: 72px minmax(0, 1fr) auto 28px; }
    .hrw-evl-acc-side { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-size: .92em; }
    .hrw-evl-acc-body { padding-left: 92px; }
    .hrw-evl-acc:not(.no-img) .hrw-evl-acc-body { grid-template-columns: minmax(0, 1fr) 200px; }
    .hrw-evl-acc-img { display: block; }
    .hrw-evl-acc-img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) { .hrw-evl-card, .hrw-evl-row, .hrw-evl-mini { transition: none; } .hrw-evl-card:hover { transform: none; } }

/* Ergänzungen für echte Daten */
.hrw-evl-card .hrw-evl-excerpt { margin: 8px 0 0; font-size: .92em; }
.hrw-evl-status { margin: 10px 0 0; }
.hrw-evl-row .hrw-evl-status { margin: 4px 0 0; }
.hrw-evl-mini-badge { margin: 6px 0 0; }
.hrw-evl-card.no-img .hrw-evl-media { background: linear-gradient(135deg, color-mix(in srgb, var(--a) 30%, #fff), color-mix(in srgb, var(--a) 12%, #fff)); }
.hrw-evl-hero.no-img { grid-template-columns: 1fr !important; }
.hrw-evl-hero .hrw-evl-media img { position: absolute; inset: 0; }
.hrw-evl-hero .hrw-evl-media { position: relative; }
.hrw-evl-tl-date span + b + span { margin-top: 2px; }
.hrw-evl .hrw-evl-title .hrw-evl-badge { margin-left: 6px; vertical-align: 2px; }

/* Link zu den Details */
.hrw-evl-morerow { margin: 12px 0 0; }
.hrw-evl-row .hrw-evl-morerow { margin: 4px 0 0; font-size: .9em; }
.hrw-evl-mini .hrw-evl-morerow { margin: 8px 0 0; font-size: .9em; }
.hrw-evl-hero .hrw-evl-status { margin: 16px 0 0; }
.hrw-evl-hero .hrw-evl-hero-actions { margin-top: 16px; }
.hrw-evl-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hrw-evl .hrw-evl-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }


/* =====================================================================
 * 5.0: Die fünf Stile auch für Veranstaltungen (Klasse am <body>)
 * ===================================================================== */
.hrw-evl-btn { color: var(--on-a, var(--hrw-on-accent, #fff)) !important; }

/* Natur – organisch, warm */
.hrw-look-natur .hrw-evl-card { border-radius: 22px 6px 22px 6px; box-shadow: none; background: color-mix(in srgb, var(--hrw-evl-accent) 6%, #fffdf8); border: 1px solid color-mix(in srgb, var(--hrw-evl-accent) 18%, transparent); }
.hrw-look-natur .hrw-evl-card:hover { transform: none; border-color: color-mix(in srgb, var(--hrw-evl-accent) 45%, transparent); }
.hrw-look-natur .hrw-evl-date { border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%; }
.hrw-look-natur .hrw-evl-btn { border-radius: 16px 4px 16px 4px; }
.hrw-look-natur .hrw-evl-badge { border-radius: 10px 3px 10px 3px; }
.hrw-look-natur .hrw-evl-row-date { border-left-style: dashed; }

/* Ruhe – viel Luft, weich */
.hrw-look-ruhe .hrw-evl-card { border-radius: 26px; box-shadow: 0 14px 34px -22px rgba(30, 60, 70, .45); }
.hrw-look-ruhe .hrw-evl-media { margin: 10px 10px 0; border-radius: 18px; overflow: visible; }
.hrw-look-ruhe .hrw-evl-media img { border-radius: 18px; }
.hrw-look-ruhe .hrw-evl-date { border-radius: 16px; }
.hrw-look-ruhe .hrw-evl-btn { border-radius: 0; background: transparent; color: var(--a) !important; box-shadow: inset 0 0 0 1px var(--a); letter-spacing: .03em; }
.hrw-look-ruhe .hrw-evl-tl-date b { font-weight: 200; }
.hrw-look-ruhe .hrw-evl-row { border-bottom-color: transparent; }

/* Kontrast – klar lesbar, kräftige Linien */
.hrw-look-kontrast .hrw-evl { --hrw-evl-line: currentColor; --hrw-evl-muted: color-mix(in srgb, currentColor 80%, transparent); }
.hrw-look-kontrast .hrw-evl-card { border-radius: 12px; border: 2px solid currentColor; box-shadow: none; }
.hrw-look-kontrast .hrw-evl-card:hover { transform: none; box-shadow: 6px 6px 0 currentColor; }
.hrw-look-kontrast .hrw-evl-date { border: 2px solid currentColor; box-shadow: none; }
.hrw-look-kontrast .hrw-evl-btn { border-radius: 12px; font-weight: 700; }
.hrw-look-kontrast .hrw-evl-badge { border: 1.5px solid currentColor; background: transparent; color: inherit; }
.hrw-look-kontrast .hrw-evl-tl::before { width: 3px; }

/* Klar – Linien statt Flächen */
.hrw-look-clear .hrw-evl-card { border-radius: var(--hrw-radius, 4px); border: 1px solid var(--hrw-evl-line); box-shadow: none; background: transparent; }
.hrw-look-clear .hrw-evl-card:hover { transform: none; border-color: var(--hrw-evl-accent); }
.hrw-look-clear .hrw-evl-date { border-radius: var(--hrw-radius, 4px); border: 1px solid var(--hrw-evl-line); box-shadow: none; }
.hrw-look-clear .hrw-evl-btn { border-radius: var(--hrw-radius, 4px); }
.hrw-look-clear .hrw-evl-badge { border-radius: 2px; background: transparent; border: 1px solid var(--hrw-evl-line); color: inherit; }

/* Papier (1.3) – gedruckter Kalender: Papierton, Serifen, gestrichelte Linien */
.hrw-look-papier .hrw-evl { --hrw-evl-paper: color-mix(in srgb, #f6efe2 70%, #fff); }
.hrw-look-papier .hrw-evl-card { border-radius: 3px; border: 1px solid color-mix(in srgb, #8a7350 22%, transparent); background: var(--hrw-evl-paper); box-shadow: 0 12px 26px -18px rgba(90, 70, 40, .35); }
.hrw-look-papier .hrw-evl-card:hover { transform: none; border-color: color-mix(in srgb, var(--hrw-evl-accent) 45%, transparent); }
.hrw-look-papier .hrw-evl-media img { border-radius: 2px; }
.hrw-look-papier .hrw-evl-date { border-radius: 2px; background: var(--hrw-evl-paper); box-shadow: 0 1px 3px rgba(90, 70, 40, .3); }
.hrw-look-papier .hrw-evl-date b,
.hrw-look-papier .hrw-evl-tl-date b,
.hrw-look-papier .hrw-evl-title { font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif; font-weight: 400; }
.hrw-look-papier .hrw-evl-date span, .hrw-look-papier .hrw-evl-tl-date span { text-transform: none; letter-spacing: 0; font-style: italic; font-weight: 400; }
.hrw-look-papier .hrw-evl-btn { border-radius: 2px; letter-spacing: .04em; }
.hrw-look-papier .hrw-evl-badge { border-radius: 2px; }
.hrw-look-papier .hrw-evl-row { border-bottom-style: dashed; }
.hrw-look-papier .hrw-evl-row-date { border-left-style: double; border-left-width: 4px; }
.hrw-look-papier .hrw-off-filter button { border-radius: 2px; }

/* Wochenleiste (1.3) – weich, kachelig, wie die Leiste in der Terminbuchung */
.hrw-look-woche .hrw-evl-card { border-radius: 18px; }
.hrw-look-woche .hrw-evl-date { border-radius: 14px; }
.hrw-look-woche .hrw-evl-btn { border-radius: 10px; }
.hrw-look-woche .hrw-evl-badge { border-radius: 8px; }
.hrw-look-woche .hrw-off-filter button { border-radius: 10px; }

/* Leicht (1.11) – größere Schrift, kräftige Rahmen, große Buttons */
.hrw-look-leicht .hrw-evl { font-size: 1.08em; }
.hrw-look-leicht .hrw-evl-card { border-radius: 16px; border: 2px solid var(--hrw-evl-line); box-shadow: none; }
.hrw-look-leicht .hrw-evl-card:hover { transform: none; border-color: var(--hrw-evl-accent); }
.hrw-look-leicht .hrw-evl-date { border-radius: 12px; }
.hrw-look-leicht .hrw-evl-btn { border-radius: 12px; padding: .85em 1.6em; font-weight: 700; }
.hrw-look-leicht .hrw-evl-badge { border-radius: 8px; }
.hrw-look-leicht .hrw-off-filter button { border-width: 2px; border-radius: 12px; padding: .6em 1.2em; }

/* Agenda (1.11) – ruhige Karten mit Linie, Datum als Kachel */
.hrw-look-agenda .hrw-evl-card { border-radius: 14px; border: 1px solid var(--hrw-evl-line); box-shadow: none; }
.hrw-look-agenda .hrw-evl-card:hover { transform: none; border-color: var(--hrw-evl-accent); }
.hrw-look-agenda .hrw-evl-date { border-radius: 10px; }
.hrw-look-agenda .hrw-evl-btn { border-radius: 10px; }
.hrw-look-agenda .hrw-evl-badge { border-radius: 6px; }
.hrw-look-agenda .hrw-off-filter button { border-radius: 999px; }

/* Monatsansicht: Einträge in Akzentfarbe, Rundung wie der Stil */
.hrw-cal-day li a { border-radius: min(var(--hrw-radius, 4px), 8px); }
.hrw-look-kontrast .hrw-cal-day { border-color: currentColor; }

/* Anmeldung im Popup: Infos stehen schon darüber, also nur das Formular */
.hrw-qv-booking .hrwa-card { display: block; }
.hrw-qv-booking .hrwa-info { display: none; }

/* =====================================================================
 * 5.0: Element „Angebote“ – nutzt die Karten der Veranstaltungsliste
 * ===================================================================== */
.hrw-off-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.hrw-off-filter button { font: inherit; font-size: .92em; cursor: pointer; padding: .45em 1.1em; border-radius: 999px; border: 1px solid var(--hrw-evl-line); background: transparent; color: inherit; }
.hrw-off-filter button:hover { border-color: var(--hrw-evl-accent); }
.hrw-off-filter button[aria-pressed="true"] { background: var(--hrw-evl-accent); border-color: var(--hrw-evl-accent); color: var(--hrw-evl-on, var(--hrw-on-accent, #fff)); }
.hrw-off-filter button:focus-visible { outline: 2px solid var(--hrw-evl-accent); outline-offset: 2px; }
.hrw-look-natur .hrw-off-filter button { border-radius: 12px 4px 12px 4px; }
.hrw-look-ruhe .hrw-off-filter button { border-radius: 0; }
.hrw-look-kontrast .hrw-off-filter button { border: 2px solid currentColor; border-radius: 12px; font-weight: 700; }
.hrw-look-clear .hrw-off-filter button { border-radius: var(--hrw-radius, 4px); }

@container (min-width: 560px) { .hrw-off--cols-2 .hrw-evl-grid, .hrw-off--cols-3 .hrw-evl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 900px) { .hrw-off--cols-2 .hrw-evl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hrw-off-card .hrw-evl-media { border: 0; padding: 0; width: 100%; cursor: pointer; color: var(--hrw-evl-accent); overflow: hidden; }
.hrw-off-card .hrw-evl-media .hrw-off-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.hrw-off-card button.hrw-off-link, .hrw-off-card button.hrw-evl-btn { font: inherit; border: 0; cursor: pointer; }
.hrw-off-card button.hrw-off-link { background: none; padding: 0; color: inherit; text-align: left; font-weight: inherit; }
.hrw-off-card .hrw-off-link { color: inherit; text-decoration: none; }
.hrw-off-card .hrw-off-link:hover { color: var(--hrw-evl-accent); }
.hrw-off-card .hrw-evl-title .hrw-off-link::after { content: ""; }
.hrw-evl-date.is-dur b { font-size: 1.35em; }
.hrw-off-ways { flex-wrap: wrap; gap: 4px 14px; }
.hrw-off-ways svg { flex: none; margin-top: .2em; color: var(--hrw-evl-accent); }
.hrw-off-ways span { margin-right: 6px; }
.hrw-off-card[hidden] { display: none; }
.hrw-off-empty { color: var(--hrw-evl-muted); }

/* Buchung im Fenster */
.hrw-off-dialog { width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.hrw-off-dialog::backdrop { background: rgba(20, 28, 30, .55); }
.hrw-off-dialog-body { max-height: calc(100vh - 32px); overflow: auto; border-radius: 16px; }
.hrw-off-close { position: absolute; right: -10px; top: -10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #222; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.hrw-off-close:focus-visible { outline: 2px solid var(--hrw-accent, #3b7a7a); outline-offset: 2px; }
html.hrw-off-lock { overflow: hidden; }
@media (max-width: 640px) { .hrw-off-close { right: 6px; top: 6px; } }

/* 1.3: Bild im YOOtheme-Modal („Modal-Fenster aktivieren“, Breite/Höhe auto) auf Veranstaltungsseiten
   nie größer als der Bildschirm. Unsere eigene Schnellansicht (.hrw-qv) bleibt unberührt. */
.single-hrw_event .uk-modal-dialog:not(.hrw-qv) img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 40px) !important;
    max-height: calc(100vh - 80px) !important;
    object-fit: contain;
}
.single-hrw_event .uk-modal-dialog.uk-width-auto:not(.hrw-qv) { max-width: calc(100vw - 40px); }

/* Bildnachweis */
.hrw-event-credit { font-size: .8rem; opacity: .7; margin: 8px 0 0; }
.hrw-event-credit a { color: inherit; text-decoration: underline; }
.hrw-event-credit .hrw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
