.oh-opening-hours,
.oh-holidays-block {
	--oh-radius: 14px;
	/* Neutrales Grau statt Schwarz/Weiß: bleibt als Rahmen/Fläche sichtbar,
	   egal ob die Seite ein helles oder dunkles Theme hat. */
	--oh-border-color: rgba(128, 128, 128, 0.3);
	--oh-surface: rgba(128, 128, 128, 0.12);
	--oh-surface-hover: rgba(128, 128, 128, 0.22);
	--oh-muted: rgba(128, 128, 128, 0.9);
	--oh-accent-bg: #fdece1;
	--oh-accent-text: #b5651d;

	width: 100%;
	/* Bewusst kein eigener Hintergrund/keine eigene Textfarbe: die Karte erbt
	   Textfarbe und Hintergrund der umgebenden Seite (hell- oder dunkles
	   Theme), damit sie sich überall einfügt statt als weißer Kasten auf
	   einer dunklen Seite unlesbar zu werden. */
	border: 1px solid var(--oh-border-color);
	border-radius: var(--oh-radius);
	padding: 18px 20px;
	box-sizing: border-box;
}

.oh-opening-hours .oh-title,
.oh-holidays-block .oh-title {
	margin: 0 0 14px;
	font-size: 1.05em;
	font-weight: 600;
}

.oh-table {
	width: 100%;
	border-collapse: collapse;
	border: none;
}

/* Manche Themes setzen eigene Standard-Rahmen auf table/td/th (z. B. für
   Inhalts-Tabellen in Beiträgen) - explizit zurücksetzen. Der Trennstrich
   zwischen Tagen sitzt bewusst auf den Zellen (nicht der <tr>): bei
   border-collapse gewinnt bei einer Kante immer der spezifischere Rahmen
   (Zelle vor Zeile), ein "border: none" auf td/th würde eine border-bottom
   auf der <tr> sonst unsichtbar machen. */
.oh-table th,
.oh-table td {
	border: none;
	background: transparent;
}

.oh-table .oh-day th,
.oh-table .oh-day td {
	border-bottom: 1px solid var(--oh-border-color);
}

.oh-table .oh-day:last-child th,
.oh-table .oh-day:last-child td {
	border-bottom: none;
}

.oh-table .oh-day-name,
.oh-table .oh-day-periods {
	padding: 10px 6px;
	text-align: left;
	font-weight: 400;
	vertical-align: middle;
}

.oh-table .oh-day-name {
	font-weight: 600;
	white-space: nowrap;
	width: 1%;
}

.oh-table .oh-day--today .oh-day-name,
.oh-table .oh-day--today .oh-day-periods {
	font-weight: 600;
}

.oh-table .oh-closed {
	color: var(--oh-muted);
}

.oh-table .oh-rest-day {
	font-style: italic;
}

.oh-table--dated .oh-date-box-cell {
	padding: 6px 14px 6px 6px;
	width: 1%;
}

.oh-table--dated .oh-day-periods {
	padding-left: 6px;
}

.oh-date-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--oh-surface);
	line-height: 1.15;
}

.oh-day--today .oh-date-box {
	background: var(--oh-accent-bg);
	color: var(--oh-accent-text);
}

.oh-date-box-weekday {
	font-size: 0.62em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.7;
}

.oh-date-box-day {
	font-size: 1.15em;
	font-weight: 700;
}

.oh-date-box-month {
	/* Der Monat steht schon im Wochenlabel oben - hier weggelassen, damit
	   die Box wie im Referenzdesign zweizeilig und kompakt bleibt. */
	display: none;
}

.oh-holiday-inline-label {
	display: block;
	margin-top: 2px;
	font-size: 0.85em;
	color: var(--oh-muted, rgba(128, 128, 128, 0.9));
}

.oh-week-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 14px;
}

.oh-week-nav .oh-week-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.oh-week-label-eyebrow {
	font-size: 0.66em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--oh-muted, rgba(128, 128, 128, 0.9));
}

.oh-week-label-range {
	font-size: 0.92em;
	font-weight: 600;
	white-space: nowrap;
}

.oh-week-error {
	margin: -6px 0 10px;
	font-size: 0.82em;
	color: #c5372e;
	text-align: center;
}

.oh-week-prev,
.oh-week-next {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--oh-surface, rgba(128, 128, 128, 0.12));
	border: 1px solid var(--oh-border-color, rgba(128, 128, 128, 0.3));
	border-radius: 999px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 0.82em;
	color: inherit;
	transition: background-color 0.15s ease;
}

.oh-week-prev:hover:not(:disabled),
.oh-week-next:hover:not(:disabled) {
	background: var(--oh-surface-hover, rgba(128, 128, 128, 0.22));
}

.oh-week-prev:disabled,
.oh-week-next:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.oh-holidays {
	margin: 0;
	padding: 0;
	list-style: none;
}

.oh-holiday {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em;
	padding: 10px 0;
	border-bottom: 1px solid var(--oh-border-color, rgba(128, 128, 128, 0.3));
}

.oh-holiday:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.oh-holiday-date {
	font-weight: 600;
	white-space: nowrap;
}

.oh-holiday-hours {
	margin-left: auto;
	color: var(--oh-muted, rgba(128, 128, 128, 0.9));
	font-size: 0.92em;
}

.oh-status {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.3em 0.8em;
	border-radius: 999px;
	font-size: 0.9em;
	font-weight: 600;
}

.oh-status::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: currentColor;
}

.oh-status--open {
	background: #e9f7ee;
	color: #1e8e3e;
}

.oh-status--closed {
	background: #fbeaea;
	color: #c5372e;
}

.oh-notice {
	color: #c5372e;
	font-style: italic;
}
