/* Erweiterung „Öffnungszeiten“ – nutzt die Farben des Themes */
.oh-status { display: flex; width: fit-content; align-items: center; gap: .5rem; font-weight: 600; margin: 0 0 var(--space-4, 1rem); }
.oh-status[hidden] { display: none; }
.oh-status::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: currentColor; flex: none; }
.oh-status--open { color: color-mix(in srgb, #1f7a45 75%, currentColor); }
.oh-status--closed { color: color-mix(in srgb, #b42318 70%, currentColor); }
.oh-status__detail { font-weight: 400; color: var(--color-muted, inherit); }
.oh-week { border-collapse: collapse; width: 100%; max-width: 32rem; }
.oh-week th, .oh-week td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.12)); vertical-align: top; }
.oh-week th { font-weight: 500; padding-right: 1.5rem; white-space: nowrap; }
/* Die heutige Zeile wird seit 3.0.1 nicht mehr hervorgehoben – alle Tage sehen gleich aus (Klasse is-today bleibt für eigene Anpassungen). */
.oh-exceptions { margin-top: var(--space-5, 1.5rem); }
.oh-exceptions__title { font-size: 1rem; margin: 0 0 .5rem; }
.oh-exceptions ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.oh-exceptions__when { font-variant-numeric: tabular-nums; }
/* 3.2.1: Symbole vor Hinweis und erstem abweichenden Eintrag – nur das Theme DarkX blendet sie ein */
.oh-ico { display: none; }
.oh-note { margin-top: var(--space-4, 1rem); color: var(--color-muted, inherit); }
.zb-bg-dark .oh-status--open, .zb-bg-image .oh-status--open, :is(.zb-bg-accent, .zb-bg-primary) .oh-status--open { color: #8fe0ae; }
.zb-bg-dark .oh-status--closed, .zb-bg-image .oh-status--closed, :is(.zb-bg-accent, .zb-bg-primary) .oh-status--closed { color: #ffb4a8; }

/* Wochenleiste (seit 3.2.0): ein Kreis je Tag, darunter Beginn und Ende; heute in der Akzentfarbe.
   In schmalen Spalten (z. B. 1/4) zwei Reihen, auf dem Smartphone immer eine Reihe. */
.oh-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.25rem .5rem; }
.oh-bar__day { display: grid; justify-items: center; align-content: start; gap: .5rem; text-align: center; min-width: 0; }
.oh-bar__dot { width: min(3.25rem, 100%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; line-height: 1;
  background: color-mix(in srgb, var(--color-text) 12%, transparent); color: var(--color-text); }
.oh-bar__day.is-today .oh-bar__dot { background: var(--color-accent); color: var(--color-accent-contrast, #fff); color: oklch(from var(--color-accent) clamp(0, (0.62 - l) * 1000, 1) 0 0); }
.oh-bar__times { display: grid; align-content: start; gap: .55rem; font-size: .9rem; line-height: 1.25; color: var(--color-muted, inherit); font-variant-numeric: tabular-nums; }
.oh-bar__range { display: grid; gap: .1rem; }
.oh-bar__day.is-today .oh-bar__times { color: var(--color-text); font-weight: 700; }
@container (max-width: 420px) {
  .oh-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem .75rem; }
  .oh-bar__dot { width: min(2.75rem, 100%); font-size: .85rem; }
  .oh-bar__times { font-size: .82rem; }
}
@container (max-width: 199px) { .oh-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .oh-bar { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: .75rem .2rem !important; }
  .oh-bar__dot { width: min(2.4rem, 100%) !important; font-size: .72rem !important; }
  .oh-bar__times { font-size: .68rem !important; gap: .4rem; }
}

/* seit 3.5.1: echte Akzentfläche (kann hell sein) – Status in der Schriftfarbe der Fläche */
.zb-bg-accent :is(.oh-status--open, .oh-status--closed) { color: inherit; font-weight: 700; }
