/* Owl & Fire — Buchungskalender | Mirostudio
 *
 * Separate Datei mit Absicht: `style.css` ist der 1:1-Port des freigegebenen
 * Designs und bleibt unangetastet. Hier stehen nur die `bk-`Klassen, und sie
 * benutzen ausschliesslich die Custom Properties aus `style.css` — dadurch
 * folgt der Kalender dem Hell-Dunkel-Umschalter, ohne ihn zu kennen.
 *
 * Flächen, Rahmen, Kontrast. Keine Schatten, keine Verläufe.
 */

.bk {
  border: 1px solid var(--rule);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 46rem;
}

.bk__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.bk__month {
  font-family: Grotesk, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.bk__nav {
  font-family: Grotesk, sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule);
  transition: border-color 0.2s, color 0.2s;
}
.bk__nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.bk__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bk__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.bk__wd {
  font-family: Grotesk, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
  padding-bottom: 0.5rem;
}

.bk__blank {
  aspect-ratio: 1;
}

.bk__day {
  font-family: Grotesk, sans-serif;
  font-size: 1.05rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bk__day:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
/* Ein Tag ohne freie Zeit ist sichtbar, aber tot — der Besucher soll sehen,
   dass der Monat belegt ist, nicht dass die Tage fehlen. */
.bk__day:disabled {
  color: var(--ink-2);
  opacity: 0.4;
  border-color: transparent;
  cursor: not-allowed;
}
.bk__day[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--btn-ink);
}

.bk__times {
  margin-top: 1.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.bk__timegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.bk__time {
  font-family: Grotesk, sans-serif;
  font-size: 1rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--rule);
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bk__time:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--btn-ink);
}

.bk__form {
  margin-top: 1.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.bk__chosen {
  font-family: Grotesk, sans-serif;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.bk__back {
  font-family: Grotesk, sans-serif;
  font-size: 0.98rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  margin-left: 1.25rem;
}
.bk__back:hover {
  color: var(--accent);
}

.bk--done {
  border-color: var(--accent);
}

@media (max-width: 560px) {
  .bk__grid {
    gap: 0.25rem;
  }
  /* Sieben Spalten auf 375 px ergeben quadratisch nur 38 px — zu klein für
     einen Finger. Die Zelle darf höher als breit werden, damit die Trefferzone
     die üblichen 44 px erreicht. */
  .bk__day {
    font-size: 0.95rem;
    aspect-ratio: auto;
    min-height: 2.75rem;
  }
  .bk__blank {
    aspect-ratio: auto;
    min-height: 2.75rem;
  }
  .bk__back {
    display: block;
    margin: 1rem 0 0;
  }
}
