/* Verfügbarkeitskalender (Präfix vf-). Geteilt von hochzeiten-feiern.html, firmenevents.html
   und uebernachten-anfrage.html. Logik: /assets/js/verfuegbarkeit.js · Doku: docs/reference/design-system.md */

/* ── Panel ── */
.vf-panel {
  display: grid; grid-template-columns: 40% minmax(0, 1fr);
  background: #2D4628; overflow: hidden; color: #FDF2F2; margin-top: 32px; border-radius: var(--bi-r, 2px);
}
/* Überschrift steht wie bei allen Sektionen über dem Panel (Betreiber); Panel mit dem Radius des Bildsystems wie alle Seitenbilder */
.vf-lead { margin-top: 14px; max-width: 620px; }
.vf-panel--solo { grid-template-columns: minmax(0, 1fr); }

.vf-photo { position: relative; min-height: 480px; background: #1E3019; }
.vf-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-photo-text { position: absolute; left: 32px; right: 32px; bottom: 34px; z-index: 1; }
.vf-eyebrow, .vf-photo-text .vf-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(253,242,242,0.82); margin: 0 0 12px; }
.vf-photo h2 { font-family: 'YoungSerif', Georgia, serif; font-weight: 400; letter-spacing: -0.02em; font-size: clamp(1.6rem, 2.3vw, 1.95rem); line-height: 1.15; color: #FDF2F2; margin: 0 0 14px; max-width: 330px; }
.vf-photo p { font-size: 13px; font-weight: 300; line-height: 1.75; color: rgba(253,242,242,0.85); margin: 0; }

.vf-body { padding: 44px 44px 36px; display: flex; flex-direction: column; min-width: 0; }

/* ── Kalender ── */
.vf-cal { position: relative; font-family: 'Plus Jakarta Sans', sans-serif; }
.vf-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.vf-month-title { font-family: 'YoungSerif', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; font-size: 17px; line-height: 40px; height: 40px; color: #FDF2F2; margin: 0 0 12px; }
.vf-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.vf-dow { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(253,242,242,0.6); text-align: center; padding-bottom: 8px; }

.vf-day {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font: 500 13px/1 'Plus Jakarta Sans', sans-serif; color: #FDF2F2;
  background: rgba(253,242,242,0.14); border: 1px solid rgba(253,242,242,0.10); border-radius: var(--bi-r, 2px);
  padding: 0; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.vf-day:hover { background: rgba(253,242,242,0.24); }
.vf-day:active { transform: scale(0.94); }
.vf-day:focus-visible { outline: 2px solid #F5EDE0; outline-offset: 2px; }
.vf-day:disabled { cursor: default; transform: none; }
.vf-day.is-off { background: transparent; border-color: transparent; color: rgba(253,242,242,0.3); text-decoration: line-through; text-decoration-thickness: 1px; }
.vf-day.is-off.is-checkout { border-color: rgba(253,242,242,0.3); cursor: pointer; }
.vf-day.is-off.is-checkout:hover { background: rgba(253,242,242,0.12); }
.vf-day.is-unknown { background: transparent; border-color: rgba(253,242,242,0.08); color: rgba(253,242,242,0.3); }
.vf-day.is-loading { background: rgba(253,242,242,0.06); border-color: transparent; color: rgba(253,242,242,0.35); }
.vf-day.is-sel { background: #F5EDE0; border-color: #F5EDE0; color: #1E3019; box-shadow: 0 2px 4px rgba(20,32,17,0.25), 0 10px 22px -8px rgba(20,32,17,0.55); }
.vf-day.is-range { background: rgba(245,237,224,0.32); border-color: rgba(245,237,224,0.2); }
/* Teilweise belegt (Übernachtung): warmer Ocker-Punkt, hebt sich vom Grün ab */
.vf-day .vf-dot { position: absolute; bottom: 4px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #E9B44C; box-shadow: 0 0 0 1px rgba(30,48,25,0.35); }
.vf-day.is-sel .vf-dot { background: #2D4628; }
.vf-empty { aspect-ratio: 1; }

.vf-nav { position: absolute; top: 0; right: 0; display: flex; gap: 8px; }
/* Monatspfeile: .bi-arrow.bi-arrow--dark aus bildsystem.css, .vf-nav-btn ist nur der Skript-Hook */

/* ── Fußzeile ── */
.vf-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(253,242,242,0.18); }
.vf-cal + .vf-foot, .vf-legend + .vf-foot { margin-top: 28px; }
.vf-hint { font-size: 13px; font-weight: 300; line-height: 1.65; color: rgba(253,242,242,0.85); margin: 0; max-width: 340px; }
.vf-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  background: #FDF2F2; color: #1A1C18; border: 0; border-radius: var(--bi-r, 2px); padding: 12px 22px;
  font: 500 13px/1.3 'Plus Jakarta Sans', sans-serif; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20,32,17,0.2), 0 8px 20px -10px rgba(20,32,17,0.5);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.vf-cta:hover { background: #F5EDE0; }
.vf-cta:active { transform: scale(0.97); }
.vf-cta:focus-visible { outline: 2px solid #F5EDE0; outline-offset: 3px; }
.vf-cta:disabled { opacity: 0.45; cursor: default; transform: none; }

.vf-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 11px; color: rgba(253,242,242,0.75); }
.vf-legend li { display: flex; align-items: center; gap: 7px; }
.vf-swatch { position: relative; width: 14px; height: 14px; border-radius: var(--bi-r, 2px); background: rgba(253,242,242,0.14); border: 1px solid rgba(253,242,242,0.1); }
.vf-swatch.is-off { background: transparent; border-color: rgba(253,242,242,0.3); }
.vf-swatch .vf-dot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #E9B44C; }

/* Ohne Daten (live bis zum Tool-Anschluss, Fehler, ohne JS): Hinweis mittig, Fußzeile unten */
.vf-fallback { font-family: 'YoungSerif', Georgia, serif; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; letter-spacing: -0.01em; color: #FDF2F2; margin: auto 0; padding: 24px 0 32px; max-width: 520px; }
.vf-panel--solo .vf-fallback { margin: 0; }
.vf-fallback:not([hidden]) + .vf-foot { margin-top: 0; }
.vf-panel:not(.vf-panel--solo) .vf-cal { margin-bottom: 28px; }
.vf-fallback a { color: #FDF2F2; text-decoration: underline; text-underline-offset: 3px; }
.vf-fallback a:hover { color: #F5EDE0; }

/* ── Responsiv ── */
@media (max-width: 1100px) {
  .vf-panel { grid-template-columns: 36% minmax(0, 1fr); }
  .vf-body { padding: 36px 32px 30px; }
  .vf-months { gap: 28px; }
}
@media (max-width: 900px) {
  .vf-panel { grid-template-columns: minmax(0, 1fr); }
  .vf-photo { min-height: 300px; }
}
@media (max-width: 640px) {
  .vf-body { padding: 28px 20px 24px; }
  .vf-months { grid-template-columns: minmax(0, 1fr); }
  .vf-months > .vf-month:nth-child(2) { display: none; }
  .vf-foot { flex-direction: column; align-items: stretch; }
  .vf-cta { width: 100%; }
  .vf-photo-text { left: 20px; right: 20px; bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-day, .vf-cta { transition: none; }
}

/* Am Handy eingeklappt (Button „Kalender öffnen“, Skript mountEventPanel) */
.vf-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 11px 20px;
  font: 500 13px/1.2 'Plus Jakarta Sans', sans-serif; letter-spacing: 0.02em; color: #FDF2F2;
  background: #2D4628; border: 1px solid #2D4628; border-radius: var(--bi-r, 2px); cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.vf-toggle[hidden] { display: none; }
.vf-toggle svg { transition: transform 0.2s ease; }
.vf-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.vf-toggle:hover { background: #1E3019; }
.vf-toggle:active { transform: scale(0.98); }
.vf-toggle:focus-visible { outline: 2px solid rgba(45,70,40,0.45); outline-offset: 3px; }
.vf-panel.vf-collapsed { display: none; }
@media (max-width: 767px) { .vf-toggle + .vf-panel { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { .vf-toggle, .vf-toggle svg { transition: none; } }
