/* site&style Bausteine · Termin (Calendly) v2 · braucht ss-sheet.css */

:where(:root) {
  --ss-cal-bg: var(--ss-bg);       /* nur bei data-ss-calendly="farbig" */
  --ss-cal-ink: var(--ss-ink);
  --ss-cal-accent: var(--ss-accent);
  --ss-cal-paper: #ffffff;         /* Karte für Konten ohne Farbanpassung */
}

.ss-ok { display: flex; justify-content: center; margin-bottom: 14px; }
.ss-ok svg { width: 52px; height: 52px; fill: none; stroke: var(--ss-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ss-ok circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: ss-draw .7s var(--ss-ease) forwards; }
.ss-ok path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: ss-draw .45s .45s var(--ss-ease) forwards; }
.ss-done .ss-mark { display: none; }
@keyframes ss-draw { to { stroke-dashoffset: 0; } }

/* Kalender: ohne Farbanpassung als Papierkarte, mit Farbanpassung nahtlos */
.ss-cal {
  position: relative; min-height: 560px; margin: 0 12px; overflow: hidden;
  background: var(--ss-cal-paper); color: #1a1a1a; border-radius: var(--ss-radius-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 18px 44px -22px rgba(0, 0, 0, .55);
}
.ss-cal.ss-farbig { margin: 0; background: transparent; color: inherit; border-radius: 0; box-shadow: none; }
.ss-cal iframe { display: block; width: 100%; height: 640px; border: 0; opacity: 0; transition: opacity .45s ease; }
.ss-cal.ss-ready iframe { opacity: 1; }

.ss-skel { position: absolute; inset: 0; padding: 34px 14px; transition: opacity .3s ease; pointer-events: none; }
.ss-ready .ss-skel { opacity: 0; }
.ss-skel i { display: block; background: currentColor; opacity: .08; animation: ss-pulse 1.4s ease-in-out infinite; }
.ss-skel-h { width: 60%; height: 18px; margin: 0 auto 36px; border-radius: 9px; }
.ss-skel-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px 10px; justify-items: center; }
.ss-skel-g i { width: 34px; height: 34px; border-radius: 50%; }
@keyframes ss-pulse { 50% { opacity: .16; } }

/* Ladehinweis über dem Ladebild: "Verfügbarkeit wird geprüft" mit Balken, der sich langsam füllt (nie ganz, bis Calendly steht) */
.ss-lade {
  position: absolute; left: 50%; top: 132px; transform: translateX(-50%);
  display: grid; gap: 3px; width: max-content; max-width: calc(100% - 40px); margin: 0; padding: 14px 22px 16px;
  background: var(--ss-cal-paper); color: #1a1a1a; border-radius: 18px; text-align: center; text-wrap: balance;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 30px -14px rgba(0, 0, 0, .3);
  font-size: 13px; line-height: 1.4;
}
.ss-farbig .ss-lade { background: var(--ss-cal-bg); color: var(--ss-cal-ink); }
.ss-lade b { font-size: 15px; font-weight: 600; }
.ss-lade span { opacity: .7; }
.ss-lade s { position: relative; display: block; height: 3px; margin-top: 9px; overflow: hidden; border-radius: 3px; background: rgba(127, 127, 127, .2); text-decoration: none; }
.ss-lade s::after {
  content: ""; position: absolute; inset: 0; background: var(--ss-cal-accent); border-radius: inherit;
  transform: scaleX(.04); transform-origin: left; animation: ss-lade 14s cubic-bezier(.12, .7, .25, 1) forwards;
}
@keyframes ss-lade { to { transform: scaleX(.94); } }

@media (prefers-reduced-motion: reduce) {
  .ss-ok circle, .ss-ok path { animation: none; stroke-dashoffset: 0; }
  .ss-skel i { animation: none; }
  .ss-lade s { display: none; }
}
