.oeffnungszeiten-layer {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(0, 0, 0, 0.48);
}

.oeffnungszeiten-layer__dialog {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 42px 38px 36px;
  background: rgba(204, 35, 30, 0.93);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 18px;
  line-height: 1.5;
}

.oeffnungszeiten-layer__dialog:focus {
  outline: none;
}

.oeffnungszeiten-layer__dialog p {
  margin: 0 0 20px;
}

.oeffnungszeiten-layer__dialog p:last-child {
  margin-bottom: 0;
}

.oeffnungszeiten-layer__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font:
    32px/38px Arial,
    sans-serif;
  text-align: center;
  cursor: pointer;
}

.oeffnungszeiten-layer__close:hover {
  color: #ffd167;
}

.oeffnungszeiten-layer__close:focus-visible {
  color: #ffffff;
  outline: 2px solid #ffffff;
  outline-offset: 1px;
}

@media (min-width: 680px) {
  .oeffnungszeiten-layer__dialog {
    transform: translateX(clamp(-110px, -7vw, -40px));
  }
}

@media (max-width: 600px) {
  .oeffnungszeiten-layer {
    padding: 14px;
  }

  .oeffnungszeiten-layer__dialog {
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 40px 24px 28px;
    font-size: 16px;
  }
}
