/*
 * Öffnungszeiten Frontend. Übernimmt Schrift und Farben des Themes (font: inherit).
 * Anpassbar über CSS-Variablen, z. B. in Elementor, Bricks oder im Block-Editor.
 * Kontraste der Standardwerte nach WCAG 2.1 AA (Text mindestens 4,5:1).
 */
:root {
    --oez-primary: #71775f;
    --oez-primary-text: #ffffff;
    --oez-open: #2f6b2f;
    --oez-closed: #9b1c1c;
    --oez-notice-bg: #fff0db;
    --oez-notice-text: #5c3700;
    --oez-border: #d9dccf;
    --oez-radius: 6px;
    --oez-today-bg: rgba(113, 119, 95, .12);
}
.oez-status, .oez-notice, .oez-emergency, .oez-substitutes, .oez-booking, .oez-team, .oez-banner { font: inherit; }

/* Status */
.oez-status__headline { display: flex; align-items: center; gap: 8px; margin: 0 0 .4em; font-weight: 600; }
.oez-status__dot, .oez-status .dot-indicator { display: inline-block; width: .65em; height: .65em; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.oez-status.is-open .oez-status__headline, .oez-status--badge.is-open, .oez-status--dot.is-open, .oez-status--text.is-open { color: var(--oez-open); }
.oez-status.is-closed .oez-status__headline, .oez-status--badge.is-closed, .oez-status--dot.is-closed, .oez-status--text.is-closed { color: var(--oez-closed); }
.oez-status--badge { display: inline-block; padding: .2em .7em; border-radius: 999px; border: 1px solid currentColor; font-weight: 600; }
.oez-status--dot { display: inline-flex; align-items: center; gap: 6px; }
.oez-status__next, .oez-status__notice { margin: 0 0 .6em; }
.oez-window-type { font-size: .9em; opacity: .85; }

/* Hinweis */
.oez-notice { background: var(--oez-notice-bg); color: var(--oez-notice-text); border-radius: var(--oez-radius); padding: 12px 16px; margin: 0 0 1em; }
.oez-notice__item { margin: 0 0 .5em; }
.oez-notice__item:last-child { margin-bottom: 0; }

/* Vertretung */
.oez-substitutes { margin: .8em 0; }
.oez-substitutes__label { display: block; font-weight: 600; margin-bottom: .3em; }
.oez-substitute { padding: .6em 0; border-top: 1px solid var(--oez-border); }
.oez-substitute:first-of-type { border-top: 0; }
.oez-substitute__specialty, .oez-substitute__range { display: block; font-size: .9em; opacity: .85; }
.oez-substitute__details { margin-top: .3em; }
.oez-substitute a { display: inline-block; min-height: 44px; line-height: 44px; }
.oez-substitute__route { margin-left: .4em; }

/* Notdienst */
.oez-emergency { border-left: 4px solid var(--oez-closed); padding: 8px 14px; margin: .8em 0; }
.oez-emergency__text { margin: 0 0 .4em; font-weight: 600; }
.oez-emergency__numbers, .oez-emergency__duties { list-style: none; margin: 0; padding: 0; }
.oez-emergency__numbers a { font-weight: 700; display: inline-block; min-height: 44px; line-height: 44px; }

/* Terminbuchung */
.oez-booking { margin: .8em 0; }
.oez-booking__button { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 20px; border-radius: var(--oez-radius); background: var(--oez-primary); color: var(--oez-primary-text); text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.oez-booking__button:hover, .oez-booking__button:focus { filter: brightness(.9); color: var(--oez-primary-text); }
.oez-booking__button:focus-visible { outline: 2px solid var(--oez-primary); outline-offset: 3px; }
.oez-booking__privacy { font-size: .85em; opacity: .85; margin: .4em 0 0; }
.oez-booking__frame iframe { width: 100%; min-height: 640px; border: 0; }

/* Tabellen */
.oez-team tr.is-today { background: var(--oez-today-bg); }
.oez-team { overflow-x: auto; }
.oez-team__table { width: 100%; border-collapse: collapse; }
.oez-team__table th, .oez-team__table td { padding: 8px; border: 1px solid var(--oez-border); text-align: left; vertical-align: top; }

/* Hinweis-Leiste */
.oez-banner { position: relative; background: var(--oez-notice-bg); color: var(--oez-notice-text); padding: 10px 48px 10px 16px; text-align: center; }
.oez-banner .oez-notice { background: transparent; padding: 0; margin: 0; display: inline; }
.oez-banner .oez-notice__item { display: inline; margin: 0 .5em 0 0; }
.oez-banner__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 22px; cursor: pointer; }

.oez-status .screen-reader-text, .oez-team .screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
