/* Alvensholz Buchung – nutzt die Farben des Themes, falls vorhanden */
.ahb {
  --ahb-lake: var(--c-lake, #1f5f78);
  --ahb-lake-dark: var(--c-lake-dark, #164556);
  --ahb-lake-soft: var(--c-lake-soft, #e3eff3);
  --ahb-ink: var(--c-ink, #1d2a30);
  --ahb-muted: var(--c-muted, #5f6f76);
  --ahb-line: var(--c-line, #dde3e5);
  --ahb-surface: var(--c-surface, #fff);
  --ahb-booked: #eceeef;
  --ahb-radius: 12px;
  color: var(--ahb-ink);
  display: grid;
  gap: 28px;
}
@media (min-width: 1000px) {
  .ahb { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .ahb-notice { grid-column: 1 / -1; }
}
.ahb *, .ahb *::before, .ahb *::after { box-sizing: border-box; }

/* Kalender */
.ahb-cal { background: var(--ahb-surface); border: 1px solid var(--ahb-line); border-radius: var(--ahb-radius); padding: 16px; }
.ahb-cal__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ahb-cal__hint { flex: 1; margin: 0; text-align: center; font-size: .95rem; color: var(--ahb-muted); min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.ahb-cal__nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ahb-line); background: var(--ahb-surface); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ahb-ink); flex: none; }
.ahb-cal__nav:hover:not(:disabled) { background: var(--ahb-lake-soft); }
.ahb-cal__nav:disabled { opacity: .3; cursor: default; }
.ahb-cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.ahb-month__title { font-size: 1.05rem; text-align: center; margin: 4px 0 10px; font-family: inherit; }
.ahb-month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ahb-wd { text-align: center; font-size: .75rem; color: var(--ahb-muted); padding: 4px 0; font-weight: 600; }
.ahb-day {
  position: relative; aspect-ratio: 1 / 1; min-height: 40px; border: 0; border-radius: 8px; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font: inherit; color: var(--ahb-ink); padding: 0;
}
button.ahb-day { cursor: pointer; background: var(--ahb-lake-soft); }
button.ahb-day:hover { outline: 2px solid var(--ahb-lake); outline-offset: -2px; }
button.ahb-day:focus-visible { outline: 3px solid var(--ahb-lake-dark); outline-offset: 1px; }
.ahb-day__n { font-size: .95rem; font-weight: 600; line-height: 1; }
.ahb-day__p { font-size: .68rem; color: var(--ahb-muted); line-height: 1; }
.ahb-day--off { color: #b6bfc3; }
.ahb-day--booked, button.ahb-day--booked { background: var(--ahb-booked) !important; color: #9aa5aa; }
.ahb-day--booked .ahb-day__n { text-decoration: line-through; }
button.ahb-day--checkout { background: linear-gradient(135deg, var(--ahb-lake-soft) 50%, var(--ahb-booked) 50%) !important; color: var(--ahb-ink); }
button.ahb-day--checkout .ahb-day__n { text-decoration: none; }
.ahb-day--range, button.ahb-day--range { background: #bcd8e2 !important; border-radius: 0; }
.ahb-day--start, .ahb-day--end, button.ahb-day--start, button.ahb-day--end { background: var(--ahb-lake) !important; color: #fff !important; }
.ahb-day--start .ahb-day__p, .ahb-day--end .ahb-day__p { color: rgba(255,255,255,.85); }
.ahb-day--today .ahb-day__n { text-decoration: underline; text-underline-offset: 3px; }
.ahb-legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--ahb-muted); }
.ahb-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.ahb-dot--free { background: var(--ahb-lake-soft); }
.ahb-dot--booked { background: var(--ahb-booked); }
.ahb-dot--sel { background: var(--ahb-lake); }

/* Formular */
.ahb-form { background: var(--ahb-surface); border: 1px solid var(--ahb-line); border-radius: var(--ahb-radius); padding: 20px; display: grid; gap: 18px; }
.ahb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ahb-field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.ahb-field--wide { grid-column: 1 / -1; }
.ahb-field input, .ahb-field select, .ahb-field textarea {
  font: inherit; font-weight: 400; font-size: 1rem; /* 16px verhindert Zoom auf iOS */
  padding: 11px 12px; border: 1px solid #c4cdd0; border-radius: 8px; background: #fff; color: var(--ahb-ink); width: 100%; min-height: 46px;
}
.ahb-field input:focus, .ahb-field select:focus, .ahb-field textarea:focus { outline: 2px solid var(--ahb-lake); outline-offset: 0; border-color: var(--ahb-lake); }
@media (max-width: 560px) { .ahb-grid--contact { grid-template-columns: 1fr; } .ahb-form { padding: 16px; } .ahb-cal { padding: 12px; } }
.ahb-check { display: flex; gap: 10px; font-size: .88rem; line-height: 1.45; align-items: flex-start; }
.ahb-check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--ahb-lake); }
.ahb-submit { font: inherit; font-weight: 700; font-size: 1.05rem; background: var(--ahb-lake); color: #fff; border: 0; border-radius: 999px; padding: 15px 26px; cursor: pointer; min-height: 52px; }
.ahb-submit:hover { background: var(--ahb-lake-dark); }
.ahb-submit:disabled { opacity: .6; cursor: wait; }
.ahb-small { font-size: .82rem; color: var(--ahb-muted); margin: 0; }
.ahb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ahb-summary { background: var(--ahb-lake-soft); border-radius: 10px; padding: 14px 16px; }
.ahb-summary__empty, .ahb-summary__warn { margin: 0; font-size: .92rem; color: var(--ahb-muted); }
.ahb-summary__warn { color: #9a3b12; font-weight: 600; }
.ahb-summary__title { margin: 0 0 8px; font-size: 1rem; font-family: inherit; }
.ahb-summary__table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 8px; }
.ahb-summary__table td { padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,.07); vertical-align: top; }
.ahb-summary__table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.ahb-summary__total td { font-weight: 800; font-size: 1.08rem; border-bottom: 0; padding-top: 9px; }

.ahb-msg, .ahb-notice { border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: .95rem; }
.ahb-msg--ok, .ahb-notice--ok { background: #e4f3e6; color: #1e5b2a; }
.ahb-msg--err, .ahb-notice--err { background: #fbe9e4; color: #8a2a12; }

/* Preisliste */
.ahb-prices table { width: 100%; border-collapse: collapse; }
.ahb-prices th, .ahb-prices td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--c-line, #dde3e5); }
.ahb-prices td:last-child, .ahb-prices th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ahb-prices .ahb-small { margin-top: 8px; }
