/* ── Öffnungszeiten-Widget ── */
.ohw {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  font-family: var(--font-body);
  user-select: none;
}

.ohw__pill {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(44, 36, 22, 0.10);
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  min-width: 190px;
}

.ohw__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.ohw__dot.open   { background: #4a9e5c; }
.ohw__dot.closed { background: #b94040; }
.ohw__dot.soon   { background: #c49a1a; }

.ohw__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ohw__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.ohw__sub {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.3;
}

.ohw__panel {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(44, 36, 22, 0.12);
  padding: 1rem 1.1rem;
  border-radius: 6px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, max-height 0.35s ease;
}

/* Panel sichtbar – per Hover (is-hover) oder per Klick (is-open) */
.ohw.is-hover .ohw__panel,
.ohw.is-open .ohw__panel {
  opacity: 1;
  max-height: 380px;
  pointer-events: auto;
}

.ohw__heading {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-wood-mid);
  font-weight: 500;
  margin-bottom: 0.7rem;
  padding-right: 1.2rem;
}

.ohw__close {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--color-text-muted);
  opacity: 0.45;
  font-family: var(--font-body);
  transition: opacity 0.15s ease;
}
.ohw__close:hover { opacity: 1; }
.ohw.is-open .ohw__close { display: flex; }

.ohw__table {
  width: 100%;
  border-collapse: collapse;
}

.ohw__table tr {
  border-bottom: 1px solid var(--color-cream-dark);
}
.ohw__table tr:last-child {
  border-bottom: none;
}

.ohw__table td {
  padding: 0.3rem 0;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  vertical-align: top;
  line-height: 1.35;
}

.ohw__table td:first-child {
  color: var(--color-text);
  width: 42%;
  padding-right: 0.5rem;
  font-weight: 400;
}

.ohw__table tr.today td {
  color: var(--color-wood-mid);
  font-weight: 600;
}
.ohw__table tr.today td:first-child {
  color: var(--color-wood-dark);
}

.ohw__table .geschlossen {
  color: var(--color-sand);
  font-style: italic;
}

.ohw__vacation {
  margin-top: 0.7rem;
  padding: 0.45rem 0.65rem;
  background: rgba(139, 111, 71, 0.07);
  border-left: 2px solid var(--color-sand);
  font-size: 0.7rem;
  color: var(--color-wood-dark);
  font-style: italic;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .ohw {
    bottom: 0.75rem;
    right: 0.75rem;
  }
  .ohw__panel {
    width: calc(100vw - 1.5rem);
    right: 0;
  }
}
