/*
 * Öffnungszeiten – Styles
 * Datei: oez-styles.css
 * Ablegen im Child-Theme unter /inc/oez-styles.css
 */

:root {
  --oez-cream:     #ffffff;
  --oez-cream-2:   #ffffff;
  --oez-ink:       #c7baa4;
  --oez-ink-soft:  #6b5f4c;
  --oez-line:      rgba(42,36,28,.14);
  --oez-muted:     rgba(42,36,28,.55);
  --oez-open:      #6b8e4e;
  --oez-open-soft: #dde6cf;
  --oez-tan:       #c9b388;
  --oez-special:   #b35c2e;
  --oez-priv:      #9c4a3a;
}

/* ══════════════════════════════════════
   HOURS BAND
══════════════════════════════════════ */
.oez-hours-band {
  display: flex;
  border-top: 1px solid var(--oez-line);
  border-bottom: 1px solid var(--oez-line);
  padding: 18px 0;
  margin-bottom: 32px;
}
.oez-hours-col {
  flex: 1;
  padding: 0 24px;
  border-right: 1px solid var(--oez-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oez-hours-col:first-child { padding-left: 0; }
.oez-hours-col:last-child  { border-right: none; padding-right: 0; }
.oez-k {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--oez-ink-soft);
  font-weight: 600;
  text-transform: uppercase;
}
.oez-v {
  font-family: 'exhibition';
  font-size: 22px;
  font-weight: 500;
  color: var(--oez-ink);
}

/* ══════════════════════════════════════
   DECK (Now + Next nebeneinander)
══════════════════════════════════════ */
.oez-deck {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

/* Now-Card */
.oez-now-card {
  background: var(--oez-ink);
  color: var(--oez-cream);
  border-radius: 4px;
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
}
.oez-now-tag {
  font-size: 10.5px;
  letter-spacing: .22em;
  opacity: .7;
  margin-bottom: 12px;
  font-weight: 600;
}
.oez-now-big {
  font-family: 'exhibition';
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 8px;
  font-weight: 500;
}
.oez-now-sub {
  font-family: 'Work Sans';
  font-style: italic;
  font-size: 14px;
  opacity: .8;
  margin-bottom: 24px;
}
.oez-open-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}
.oez-state-open    .oez-open-state { background: var(--oez-open);    color: #fff; }
.oez-state-closed  .oez-open-state { background: var(--oez-priv);    color: var(--oez-ink); }
.oez-state-special .oez-open-state { background: var(--oez-special); color: #fff; }

.oez-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: oez-pulse 1.6s infinite;
}
@keyframes oez-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(255,255,255,.7); }
  100% { box-shadow: 0 0 0 14px rgba(255,255,255,0);  }
}
.oez-closes {
  position: absolute;
  bottom: 30px; right: 32px;
  text-align: right;
  font-size: 11px;
  opacity: .65;
  letter-spacing: .04em;
  line-height: 1.6;
}
.oez-closes b {
  font-family: 'Work Sans';
  font-size: 15px;
  font-weight: 600;
  opacity: 1;
  color: var(--oez-cream);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.oez-closes-kitchen {
  display: block;
  font-size: 13px;
}
.oez-closes-kitchen b {
  font-size: 22px;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.oez-closes-open {
  display: block;
  font-size: 11px;
  opacity: .8;
}
.oez-closes-note {
  display: block;
  font-size: 10px;
  opacity: .6;
  margin-top: 4px;
}

/* Next Dates */
.oez-next-card {
  background: var(--oez-cream-2);
  border-radius: 4px;
  padding: 24px 28px;
}
.oez-next-tag {
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--oez-ink-soft);
  margin-bottom: 12px;
  font-weight: 600;
}
.oez-next-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--oez-line);
  align-items: baseline;
}
.oez-next-row:last-child { border-bottom: 1px solid var(--oez-line); }
.oez-next-d {
  font-family: 'exhibition';
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--oez-ink);
  line-height: 1;
}
.oez-next-d small {
  display: block;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--oez-muted);
  font-family: inherit;
  font-weight: 600;
  font-style: normal;
  margin-top: 4px;
}
.oez-next-what { font-size: 12.5px; color: var(--oez-ink-soft); line-height: 1.4; }
.oez-next-what b { color: var(--oez-ink); font-weight: 600; }
.oez-badge {
  font-size: 10px;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--oez-open-soft);
  color: #3d5a26;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.oez-badge-special { background: #fadcc6; color: #6e3a1c; }
.oez-badge-priv    { background: #efd5cf; color: #6e2a1f; }

/* ══════════════════════════════════════
   SAISON-STRIP
══════════════════════════════════════ */
.oez-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--oez-cream-2);
  border-radius: 4px;
  padding: 22px 28px;
  margin-bottom: 48px;
}
.oez-mo {
  border-right: 1px solid var(--oez-line);
  padding: 0 14px;
  text-align: center;
}
.oez-mo:first-child { padding-left: 0; }
.oez-mo:last-child  { border-right: none; padding-right: 0; }
.oez-mo-nm {
  font-family: 'exhibition';
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--oez-ink);
}
.oez-mo-num {
  font-family: 'exhibition';
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  color: var(--oez-open);
  font-variant-numeric: tabular-nums;
}
.oez-mo.oez-mo-full .oez-mo-num { color: var(--oez-ink); }
.oez-mo-lbl {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--oez-muted);
  margin-top: 6px;
}

/* ══════════════════════════════════════
   KALENDER
══════════════════════════════════════ */
.oez-cal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.oez-cal-h2 {
  font-family: 'exhibition';
  font-weight: 500 !important;
  font-size: 36px !important;
  margin: 0 !important;
  letter-spacing: .02em;
  color: var(--oez-ink);
}
.oez-cal-yr {
  font-family: 'exhibition';
  font-style: italic;
  color: var(--oez-muted);
  font-size: 16px;
}
.oez-cal-lede {
  font-size: 13px;
  color: var(--oez-ink-soft);
  margin: 0 0 24px;
}
.oez-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}
.oez-month {
  overflow: visible;
}
.oez-month-h {
  font-family: 'exhibition';
  font-size: 22px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--oez-line);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.oez-month-yr {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--oez-muted);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
}
.oez-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 11.5px;
  overflow: visible;
}
.oez-dow {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--oez-muted);
  font-weight: 600;
  padding-bottom: 4px;
}
.oez-day {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--oez-muted);
  position: relative;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.oez-day.oez-today   { outline: 2px solid var(--oez-ink); outline-offset: -2px; }
.oez-day.oez-open    { background: var(--oez-open);    color: #fff; font-weight: 600; }
.oez-day.oez-special { background: var(--oez-tan);     color: #fff; font-weight: 600; }
.oez-day.oez-priv    { background: var(--oez-priv);    color: #fff; font-weight: 600; }
.oez-day.oez-empty   { visibility: hidden; }

/* ── i-Button (Notiz-Indikator) ── */
.oez-i-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  font-family: 'Work Sans', sans-serif;
  line-height: 13px;
  text-align: center;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .15s;
  /* Nicht den Klick auf den Tag-Container weiterleiten */
  pointer-events: all;
}
.oez-i-btn:hover,
.oez-i-btn.is-active {
  background: rgba(255,255,255,.65);
  color: var(--oez-ink);
}

/* ── Popover (via JS positioniert) ── */
.oez-note-popover {
  position: absolute;
  z-index: 9999;
  background: var(--oez-ink);
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  padding: 7px 12px;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  letter-spacing: .02em;
}
.oez-note-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Pfeil nach oben (Popover zeigt über den Button) */
.oez-note-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--oez-ink);
}
/* Pfeil nach unten (Popover zeigt unter dem Button) */
.oez-note-popover.oez-popover-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--oez-ink);
}

/* Legende */
.oez-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--oez-ink-soft);
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--oez-line);
  align-items: center;
}
.oez-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
}
.oez-dot-open    { background: var(--oez-open); }
.oez-dot-special { background: var(--oez-tan); }
.oez-dot-priv    { background: var(--oez-priv); }
.oez-dot-closed  { background: transparent; border: 1.5px solid var(--oez-tan); }
.oez-legend-note {
  margin-left: auto;
  font-style: italic;
  font-family: 'Work Sans';
  font-size: 13px;
}

/* Download-Note */
.oez-download-note {
  margin-top: 36px;
  padding: 18px 22px;
  background: var(--oez-cream-2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.oez-dl-txt { font-size: 12.5px; color: var(--oez-ink-soft); line-height: 1.5; }
.oez-dl-txt b { color: var(--oez-ink); font-weight: 600; }
.oez-dl-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--oez-ink);
  color: var(--oez-ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.oez-dl-btn:hover { background: var(--oez-ink); color: var(--oez-cream); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  .oez-deck    { grid-template-columns: 1fr; }
  .oez-strip   { grid-template-columns: repeat(3, 1fr); }
  .oez-months  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .oez-hours-band  { flex-direction: column; gap: 14px; }
  .oez-hours-col   { border-right: none; border-bottom: 1px solid var(--oez-line); padding: 0 0 14px; }
  .oez-hours-col:last-child { border-bottom: none; }
  .oez-strip       { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .oez-mo          { border-right: none; padding: 8px 0; }
  .oez-months      { grid-template-columns: 1fr; }
  .oez-next-row    { grid-template-columns: 60px 1fr; }
  .oez-badge       { display: none; }
  .oez-closes      { position: static; text-align: left; margin-top: 20px; }
  .oez-download-note { flex-direction: column; align-items: flex-start; }
}