/* =========================================================================
   KKit – gemeinsame Gestaltung für Kalender (KBooking), Formularfehler und
   Fotoansicht. Jede Version passt die Farben über die --bk-*-Variablen an.
   ========================================================================= */
:root {
  --bk-ink: #15181C;
  --bk-ink-2: #4A4F57;
  --bk-ink-3: #7A7F87;
  --bk-soft: #F1F1EF;
  --bk-range: #E4E5E7;
  --bk-strong: #15181C;
  --bk-on-strong: #FFFFFF;
  --bk-accent: #A03402;
  --bk-accent-soft: #F5EAE4;
  --bk-disabled: #C3C6CA;
  --bk-radius: 6px;
  --bk-day-radius: 50%;
}

.sr, .bk-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Kalender ---------- */
.bk-cal { position: relative; color: var(--bk-ink); }
.bk-cal-head { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; z-index: 2; }
.bk-cal-nav { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--bk-day-radius); border: 0; background: var(--bk-soft); color: inherit; cursor: pointer; transition: background-color .2s; }
.bk-cal-nav svg { width: 18px; height: 18px; }
.bk-cal-nav:hover:not(:disabled) { background: var(--bk-range); }
.bk-cal-nav:disabled { opacity: .35; cursor: default; }
.bk-cal-months { display: grid; gap: 36px; }
.bk-cal--two .bk-cal-months { grid-template-columns: 1fr 1fr; }
.bk-month-title { text-align: center; font-weight: 700; font-size: 17px; height: 40px; line-height: 40px; margin-bottom: 6px; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.bk-wd { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--bk-ink-3); padding: 6px 0; }
.bk-day { position: relative; height: 44px; border: 0; background: transparent; color: inherit; padding: 0; cursor: pointer; font: inherit; font-size: 15.5px; font-weight: 500; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
.bk-day span { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: 2px auto; border-radius: var(--bk-day-radius); transition: background-color .15s, color .15s; }
.bk-day:hover:not(:disabled) span { background: var(--bk-soft); }
.bk-day.is-weekend { color: var(--bk-ink-2); }
.bk-day.is-today span { box-shadow: inset 0 0 0 1.5px var(--bk-strong); }
.bk-day:disabled { color: var(--bk-disabled); cursor: default; }
.bk-day.is-in::before, .bk-day.has-range::before, .bk-day.is-end::before, .bk-day.is-preview-end::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; background: var(--bk-range); }
.bk-day.has-range::before { left: 50%; }
.bk-day.is-end::before, .bk-day.is-preview-end::before { right: 50%; }
.bk-day.is-start.is-end::before { display: none; }
.bk-day.is-start, .bk-day.is-end { color: var(--bk-on-strong); }
.bk-day.is-start span, .bk-day.is-end span { background: var(--bk-strong) !important; color: var(--bk-on-strong); font-weight: 700; }
.bk-day.is-preview-end span { box-shadow: inset 0 0 0 1.5px var(--bk-strong); }
.bk-day--empty { height: 44px; }
.bk-day:focus-visible { outline: none; }
.bk-day:focus-visible span { outline: 2px solid var(--bk-accent); outline-offset: 1px; }
.bk-cal-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bk-chip { height: 36px; padding: 0 15px; border-radius: var(--bk-radius); border: 0; background: var(--bk-soft); color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.bk-chip:hover { background: var(--bk-range); }
.bk-chip.is-active { background: var(--bk-strong); color: var(--bk-on-strong); }
.bk-cal-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; padding: 14px 18px; border-radius: var(--bk-radius); background: var(--bk-soft); min-height: 70px; }
.bk-sum-hint { color: var(--bk-ink-2); font-size: 15px; }
.bk-sum-range { display: flex; flex-direction: column; }
.bk-sum-label { font-size: 12.5px; color: var(--bk-ink-3); }
.bk-sum-range b { font-size: 15.5px; font-weight: 700; }
.bk-sum-range em { font-style: normal; color: var(--bk-ink-3); font-weight: 500; }
.bk-sum-arrow { color: var(--bk-ink-3); }
.bk-sum-days { margin-left: auto; font-size: 15px; color: var(--bk-ink-2); }
.bk-sum-days b { font-size: 26px; font-weight: 800; color: var(--bk-ink); }
.bk-sum-clear { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; color: var(--bk-ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Fehler und Status ---------- */
.bk-error { margin-top: 6px; font-size: 14px; color: var(--bk-accent); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.bk-error::before { content: '!'; display: grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--bk-accent); color: #fff; font-size: 11px; font-weight: 800; }
.bk-status { font-size: 15px; }
.bk-status:empty { display: none; }
.bk-status--error { padding: 12px 16px; border-radius: var(--bk-radius); background: var(--bk-accent-soft); color: var(--bk-accent); font-weight: 500; }
.bk-status a { font-weight: 700; color: inherit; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: kit-spin .7s linear infinite; }
.is-sending .spinner { display: block; }
@keyframes kit-spin { to { transform: rotate(360deg); } }

/* ---------- Fotoansicht ---------- */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; font: inherit; text-align: inherit; }
/* Fokus nach Tippen/Klicken zurückgegeben: kein Rahmen (Tastatur: weiterhin sichtbar) */
.is-pfocus:focus, .is-pfocus:focus-visible { outline: none; }
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 14, 17, .96); color: #fff; overscroll-behavior: contain; }
.lb::backdrop { background: rgba(12, 14, 17, .6); }
.lb-fig { width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 80px 22px; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; opacity: 0; transition: opacity .3s; }
.lb-img.is-loaded { opacity: 1; }
.lb-cap { display: flex; align-items: baseline; justify-content: center; gap: 16px; max-width: 60em; font-size: 15px; text-align: center; color: rgba(255, 255, 255, .86); }
.lb-cap small { color: rgba(255, 255, 255, .5); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 14px; right: 14px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb.is-single .lb-prev, .lb.is-single .lb-next { display: none; }

@media (max-width: 760px) {
  .lb-fig { padding: 64px 12px 84px; }
  .lb-img { max-height: calc(100dvh - 210px); }
  .lb-cap { flex-direction: column; align-items: center; gap: 4px; font-size: 14px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .bk-cal-quick { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px; }
  .bk-chip { padding: 0 10px; font-size: 13.5px; }
  .bk-day, .bk-day--empty { height: 42px; }
  .bk-day span { width: 38px; height: 38px; }
  .bk-sum-days { margin-left: 0; width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
}
@media (max-width: 380px) {
  .bk-day, .bk-day--empty { height: 38px; }
  .bk-day span { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
}
