/*
 * mm OpeningHours RC 6.8
 *
 * All public selectors use the mm-oh- prefix.
 * No font family is set: the active Joomla template font is inherited.
 * Central CSS variables and semantic classes allow detailed overrides from
 * the template's custom.css without changing extension files.
 */
.mm-oh {
	--mm-oh-font-size: 0.9rem;
	--mm-oh-line-height: 1.35;
	--mm-oh-card-background: #f5f7fa;
	--mm-oh-card-text: #1f2937;
	--mm-oh-card-border: rgba(18, 50, 77, 0.22);
	--mm-oh-card-accent: #12324d;
	--mm-oh-card-title: #ffffff;
	--mm-oh-row-background: transparent;
	--mm-oh-row-special-background: transparent;
	--mm-oh-row-today-background: transparent;
	--mm-oh-divider: rgba(18, 50, 77, 0.18);
	--mm-oh-weekday-color: inherit;
	--mm-oh-hours-color: inherit;
	--mm-oh-current-special-color: inherit;
	--mm-oh-regular-context-color: #6b7280;
	--mm-oh-notice-color: #6b7280;
	--mm-oh-special-title-color: inherit;
	--mm-oh-special-date-color: inherit;
	--mm-oh-closed-color: inherit;
	--mm-oh-no-data-color: #6b7280;
	--mm-oh-link-color: var(--mm-oh-card-accent);
	--mm-oh-radius: 1rem;
	box-sizing: border-box;
	font-family: inherit;
	font-size: var(--mm-oh-font-size);
	line-height: var(--mm-oh-line-height);
}

.mm-oh *,
.mm-oh *::before,
.mm-oh *::after {
	box-sizing: inherit;
}

.mm-oh h1,
.mm-oh h2,
.mm-oh h3,
.mm-oh h4,
.mm-oh p,
.mm-oh dl {
	margin-top: 0;
}

/* Card: frame, background and title area */
.mm-oh-card {
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--mm-oh-card-border);
	border-radius: var(--mm-oh-radius);
	background: var(--mm-oh-card-background);
	color: var(--mm-oh-card-text);
}

.mm-oh-card__header {
	padding: 0.55rem 0.9rem;
	background: var(--mm-oh-card-accent);
	color: var(--mm-oh-card-title);
}

.mm-oh-card__title {
	margin: 0;
	color: inherit;
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.25;
}

.mm-oh-card__body {
	padding: 0.28rem 0.8rem 0.65rem;
}

/* Current week */
.mm-oh-week__list {
	display: grid;
	gap: 0;
	margin: 0;
}

.mm-oh-week__row {
	display: grid;
	grid-template-columns: minmax(7.5rem, 0.72fr) minmax(10rem, 1.28fr);
	gap: 0.7rem;
	padding: 0.42rem 0;
	border-bottom: 1px solid var(--mm-oh-divider);
	background: var(--mm-oh-row-background);
}

.mm-oh-week__row:last-child {
	border-bottom: 0;
}

.mm-oh-week__row--special {
	background: var(--mm-oh-row-special-background);
}

.mm-oh-week__row--today {
	background: var(--mm-oh-row-today-background);
}

.mm-oh-week__term {
	align-content: start;
	margin: 0;
	font-weight: 650;
}

.mm-oh-week__day {
	color: var(--mm-oh-weekday-color);
	font: inherit;
	font-weight: inherit;
}

/* Individual weekday hooks:
 * .mm-oh-week__row--monday ... .mm-oh-week__row--sunday
 * .mm-oh-week__day--monday ... .mm-oh-week__day--sunday
 */
.mm-oh-week__date {
	color: var(--mm-oh-regular-context-color);
	font-size: 0.82em;
	font-weight: 400;
	white-space: nowrap;
}

.mm-oh-week__details {
	min-width: 0;
	margin: 0;
	color: var(--mm-oh-hours-color);
}

.mm-oh-week__hours,
.mm-oh-week__special-comparison,
.mm-oh-week__effective,
.mm-oh-week__regular-context,
.mm-oh-week__regular {
	line-height: 1.3;
}

/* Effective special opening hours: one flowing bold text line. */
.mm-oh-current-special,
.mm-oh-week__effective {
	color: var(--mm-oh-current-special-color);
	font-weight: 750;
	overflow-wrap: anywhere;
}

.mm-oh-current-special .mm-oh-value,
.mm-oh-current-special__label {
	font-weight: inherit;
}

.mm-oh-current-special__label {
	display: inline;
}

/* The forced break keeps the muted regular comparison on its own line. */
.mm-oh-week__context-break {
	display: block;
}

.mm-oh-week__regular-context,
.mm-oh-week__regular {
	display: inline;
	color: var(--mm-oh-regular-context-color);
	font-size: 0.9em;
	font-weight: 400;
	overflow-wrap: anywhere;
}

.mm-oh-week__regular-context .mm-oh-value {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.mm-oh-week__regular-prefix,
.mm-oh-week__regular-suffix {
	color: inherit;
}

.mm-oh-week__row--today .mm-oh-week__term {
	font-weight: 750;
}

/* Semantic value and status hooks */
.mm-oh-value {
	display: inline;
	color: inherit;
	font: inherit;
}

.mm-oh-value--regular {
	/* Regular schedule value. */
}

.mm-oh-value--special {
	/* Date-specific special value. */
}

.mm-oh-value--effective {
	/* Value that is currently valid. */
}

.mm-oh-status--open {
	/* Open day with one to four intervals. */
}

.mm-oh-status--closed {
	color: var(--mm-oh-closed-color);
}

.mm-oh-status--no-data {
	color: var(--mm-oh-no-data-color);
}

.mm-oh-status__text {
	font: inherit;
}

/* Individual opening-hour windows (ÖZF 1–4) */
.mm-oh-intervals {
	display: inline;
}

.mm-oh-interval {
	display: inline;
	white-space: nowrap;
}

.mm-oh-interval--1,
.mm-oh-interval--2,
.mm-oh-interval--3,
.mm-oh-interval--4 {
	/* Dedicated hooks for each individual opening-hour window. */
}

.mm-oh-interval--regular {
	/* Interval from the regular schedule. */
}

.mm-oh-interval--special {
	/* Interval from a date-specific exception. */
}

.mm-oh-interval__start,
.mm-oh-interval__end,
.mm-oh-interval__dash,
.mm-oh-interval-separator {
	font: inherit;
}

/* Notice 1 / Notice 2 */
.mm-oh-notices {
	display: block;
	margin-top: 0.1rem;
}

.mm-oh-notice {
	display: block;
	margin: 0;
	color: var(--mm-oh-notice-color);
	font-size: 0.84em;
	font-weight: 400;
	line-height: 1.35;
}

.mm-oh-notice + .mm-oh-notice {
	margin-top: 0.05rem;
}

.mm-oh-notice--1,
.mm-oh-notice--2 {
	/* Dedicated hooks for Hinweis 1 and Hinweis 2. */
}

.mm-oh-notices--regular,
.mm-oh-notice--regular {
	color: var(--mm-oh-regular-context-color);
}

.mm-oh-notices--special,
.mm-oh-notice--special {
	/* Notices belonging to special opening hours. */
}

/* Upcoming / retained special opening hours below the current week */
.mm-oh-special-display {
	margin-top: 0.55rem;
	padding-top: 0.55rem;
	border-top: 1px solid var(--mm-oh-card-accent);
}

.mm-oh-special-display__title {
	margin: 0 0 0.25rem;
	color: var(--mm-oh-special-title-color);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.3;
}

.mm-oh-special-display__list {
	display: grid;
	gap: 0;
}

.mm-oh-special-display__item {
	display: grid;
	grid-template-columns: minmax(7.5rem, 0.72fr) minmax(10rem, 1.28fr);
	gap: 0.7rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--mm-oh-divider);
}

.mm-oh-special-display__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.mm-oh-special-display__item--status-open,
.mm-oh-special-display__item--status-closed,
.mm-oh-special-display__item--status-no-data {
	/* Status-specific hooks for entries in the lower special-hours area. */
}

.mm-oh-special-display__date {
	margin: 0;
	color: var(--mm-oh-special-date-color);
	font-size: 1em;
	font-weight: 650;
	line-height: 1.3;
}

.mm-oh-special-display__content {
	min-width: 0;
}

.mm-oh-special-display__hours {
	font-weight: 700;
}

/* Today-only module / component output */
.mm-oh-today {
	margin: 0;
}

.mm-oh-today--compact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.45rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--mm-oh-divider);
}

.mm-oh-today__label,
.mm-oh-today__hours {
	font-weight: 700;
}

.mm-oh-today .mm-oh-notices {
	flex-basis: 100%;
}

/* Accessibility / shared helpers */
.mm-oh-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mm-oh .is-hidden {
	display: none;
}

.mm-oh label {
	font: inherit;
}

@media (max-width: 40rem) {
	.mm-oh-card__body {
		padding-inline: 0.7rem;
	}

	.mm-oh-week__row,
	.mm-oh-special-display__item {
		grid-template-columns: minmax(6.4rem, 0.8fr) minmax(0, 1.2fr);
		gap: 0.55rem;
	}
}

@media (max-width: 27rem) {
	.mm-oh-week__row,
	.mm-oh-special-display__item {
		grid-template-columns: 1fr;
		gap: 0.12rem;
	}

	.mm-oh-current-special,
	.mm-oh-week__regular-context,
	.mm-oh-week__regular {
		overflow-wrap: anywhere;
	}
}

/* RC5: status per opening-hours window */
.mm-oh-interval-status-toggle{display:inline-grid;grid-template-columns:1fr 1fr;position:relative;border:1px solid rgba(18,50,77,.22);border-radius:.55rem;overflow:hidden;margin-top:.35rem}.mm-oh-interval-status-toggle input{position:absolute;opacity:0;pointer-events:none}.mm-oh-interval-status-toggle__option{padding:.32rem .58rem;font-size:.82rem;line-height:1.2;text-align:center;background:rgba(255,255,255,.7);color:#53606b}.mm-oh-interval-status-toggle input:not(:checked)~.mm-oh-interval-status-toggle__option--open,.mm-oh-interval-status-toggle input:checked~.mm-oh-interval-status-toggle__option--closed{background:#12324d;color:#fff;font-weight:600}.mm-oh-interval--status-closed{font-weight:400}.mm-oh-interval__status-label--closed{font-size:.92em}

/* RC6: additive, date-specific time windows */
.mm-oh-special-form.is-additive-special [data-mm-oh-whole-day-closed] { display: none; }
.mm-oh-special-mode-badge { display:inline-block; margin-inline-start:.5rem; padding:.15rem .45rem; border:1px solid currentColor; border-radius:.4rem; font-size:.75rem; opacity:.75; }
.mm-oh-special-mode-badge--additive { font-weight:700; }
.mm-oh-timeline { display:grid; gap:.18rem; }
.mm-oh-timeline__item { display:grid; grid-template-columns:minmax(8.5rem,auto) minmax(0,1fr); column-gap:.55rem; align-items:baseline; }
.mm-oh-timeline__time { white-space:nowrap; }
.mm-oh-timeline__item--supplement { font-weight:700; }
.mm-oh-timeline__notice, .mm-oh-timeline__notice-secondary { grid-column:2; display:block; }
.mm-oh-timeline__notice-secondary { font-weight:400; }
@media (max-width: 520px) { .mm-oh-timeline__item { grid-template-columns:1fr; } .mm-oh-timeline__notice, .mm-oh-timeline__notice-secondary { grid-column:1; } }


/* RC 6.2: regular schedule first, additive exception as a distinct weekly alert. */
.mm-oh {
	--mm-oh-week-supplement-color: #781638;
}

.mm-oh-week__supplement-alert {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(7.5rem, 0.72fr) minmax(10rem, 1.28fr);
	gap: 0.7rem;
	margin-top: 0.12rem;
	color: var(--mm-oh-week-supplement-color);
	font-weight: 750;
	line-height: 1.35;
}

.mm-oh-week__supplement-prefix,
.mm-oh-week__supplement-value {
	font: inherit;
	font-weight: inherit;
}

.mm-oh-week__supplement-entries {
	display: grid;
	gap: 0.08rem;
	min-width: 0;
}

.mm-oh-week__supplement-entry {
	min-width: 0;
	overflow-wrap: anywhere;
}

.mm-oh-week__supplement-notice {
	font: inherit;
	font-weight: inherit;
}

.mm-oh-week__supplement-notice-secondary {
	display: block;
	color: inherit;
	font-size: 0.84em;
	font-weight: 500;
}

.mm-oh-today .mm-oh-week__supplement-alert {
	flex-basis: 100%;
	width: 100%;
}

@media (max-width: 40rem) {
	.mm-oh-week__supplement-alert {
		grid-template-columns: minmax(6.4rem, 0.8fr) minmax(0, 1.2fr);
		gap: 0.55rem;
	}
}

@media (max-width: 27rem) {
	.mm-oh-week__supplement-alert {
		grid-template-columns: 1fr;
		gap: 0.08rem;
	}
}

/* RC 6.4: selectable weekly layout and completed today-only module. */
.mm-oh-layout,
.mm-oh-layout__main,
.mm-oh-layout__aside {
	min-width: 0;
}

.mm-oh-card--layout-horizontal .mm-oh-layout--has-aside {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.75fr);
	gap: 1rem;
	align-items: start;
}

.mm-oh-card--layout-horizontal .mm-oh-layout__aside {
	padding-inline-start: 1rem;
	border-inline-start: 1px solid var(--mm-oh-divider);
}

.mm-oh-card--layout-horizontal .mm-oh-special-display {
	margin-top: 0;
	padding-top: 0.12rem;
	border-top: 0;
}

.mm-oh-card--layout-horizontal .mm-oh-special-display__item {
	grid-template-columns: 1fr;
	gap: 0.12rem;
}

.mm-oh-today--only {
	padding: 0.42rem 0 0.12rem;
}

.mm-oh-today--only .mm-oh-today__hours {
	font-weight: 700;
}

.mm-oh-module__footer {
	padding: 0.58rem 0.8rem 0.65rem;
	border-top: 1px solid var(--mm-oh-divider);
}

.mm-oh .mm-oh-module__link,
.mm-oh .mm-oh-module__link:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	max-width: 100%;
	color: var(--mm-oh-link-color);
	font: inherit;
	text-underline-offset: 0.16em;
}

.mm-oh .mm-oh-module__link:hover,
.mm-oh .mm-oh-module__link:focus-visible {
	color: var(--mm-oh-link-color);
}

.mm-oh-module__link-icon {
	flex: 0 0 auto;
	width: 1.05em;
	height: 1.05em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mm-oh-module__link-text {
	min-width: 0;
}

@media (max-width: 52rem) {
	.mm-oh-card--layout-horizontal .mm-oh-layout--has-aside {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mm-oh-card--layout-horizontal .mm-oh-layout__aside {
		margin-top: 0.55rem;
		padding-top: 0.55rem;
		padding-inline-start: 0;
		border-top: 1px solid var(--mm-oh-card-accent);
		border-inline-start: 0;
	}

	.mm-oh-card--layout-horizontal .mm-oh-special-display {
		padding-top: 0;
	}

	.mm-oh-card--layout-horizontal .mm-oh-special-display__item {
		grid-template-columns: minmax(7.5rem, 0.72fr) minmax(10rem, 1.28fr);
		gap: 0.7rem;
	}
}

@media (max-width: 27rem) {
	.mm-oh-card--layout-horizontal .mm-oh-special-display__item {
		grid-template-columns: 1fr;
		gap: 0.12rem;
	}
}

/* RC 6.5: compact, flowing today-only output. */
.mm-oh-timeline--inline {
	display: block;
}

.mm-oh-timeline--inline .mm-oh-timeline__item {
	display: inline;
}

.mm-oh-timeline__separator,
.mm-oh-interval-separator--pipe,
.mm-oh-week__supplement-separator {
	font: inherit;
	font-weight: inherit;
}

.mm-oh-week__supplement-time {
	white-space: nowrap;
}

.mm-oh-week__supplement-alert--inline {
	display: block;
	width: 100%;
	margin-top: 0.12rem;
}

.mm-oh-week__supplement-alert--inline .mm-oh-week__supplement-prefix,
.mm-oh-week__supplement-alert--inline .mm-oh-week__supplement-entries,
.mm-oh-week__supplement-alert--inline .mm-oh-week__supplement-entry,
.mm-oh-week__supplement-alert--inline .mm-oh-week__supplement-value,
.mm-oh-week__supplement-alert--inline .mm-oh-week__supplement-notice-secondary {
	display: inline;
}

.mm-oh-week__supplement-alert--inline .mm-oh-week__supplement-prefix {
	margin-inline-end: 0.35rem;
}

.mm-oh-week__supplement-alert--inline .mm-oh-week__supplement-entry {
	overflow-wrap: normal;
}

