/* ============================================================
   Ben Terminbuchung – booking.css  v2.0
   Aesthetic: Refined / Newspaper-clean / Sharp shadows
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,500;0,9..40,700;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Root tokens ── */
.ben-tb {
  --c-bg:        #faf9f7;
  --c-surface:   #ffffff;
  --c-border:    #e4e2dd;
  --c-ink:       #1a1917;
  --c-ink-2:     #6b6a67;
  --c-accent:    #1a1917;
  --c-accent-fg: #faf9f7;
  --c-available: #2d6a4f;
  --c-dot:       #52b788;
  --c-ok-bg:     #ecfdf5;
  --c-ok-border: #a7f3d0;
  --c-err-bg:    #fff1f1;
  --c-err-border:#ffd0d0;
  --c-selected:  #1a1917;
  --c-today:     #e8e4dc;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --shadow-card: 0 2px 0 0 var(--c-border), 0 4px 24px 0 rgba(0,0,0,.06);
  --shadow-slot: 0 1px 0 0 var(--c-border);
  --font-display:'DM Serif Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --dur:         .18s;
}

/* ── Base ── */
.ben-tb {
    font-family: manrope;
    font-size: 15px;
    max-width: 980px;
}

@media (max-width: 768px) {   
    .entry-content.alignfull.wp-elements-a0767dc5a3bbcc9a8906d2bd0847a41d.wp-block-post-content.has-text-color.has-base-color.has-background.is-layout-flow.wp-container-core-post-content-is-layout-501c5954.wp-block-post-content-is-layout-flow {
        padding-right: 0!important;
        padding-left: 0!important;
    }
}

.ben-tb h1 {
  font-size: var(--wp--preset--font-size--xx-large);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
}

.ben-tb .tb-subtitle {
    color: #000;
    font-family: manrope;
    margin: 20px 0 20px;
    font-size: var(--wp--preset--font-size--small);
}

/* ── Layout ── */
.ben-tb .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

.ben-tb .card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.ben-tb .card-title {
    font-family: manrope;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    margin: 0 0 16px;
    display: none;
}

/* ── Messages ── */
.ben-tb .msg {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 0 0 20px;
  font-size: 14px;
}
.ben-tb .ok  { background: var(--c-ok-bg);  border: 1px solid var(--c-ok-border); }
.ben-tb .err { background: var(--c-err-bg); border: 1px solid var(--c-err-border); }
.ben-tb .msg strong { font-weight: 700; }

/* ── Calendar nav ── */
.ben-tb .cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ben-tb .cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #000;
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--dur), border-color var(--dur);
  padding: 0;
}
.ben-tb .cal-day.is-available:hover {
  border-color: #000;
}

.ben-tb .cal-title {
  font-family: manrope;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 400;
}

/* ── Calendar grid ── */
.ben-tb .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.ben-tb .cal-head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  text-align: center;
  padding: 6px 0 8px;
  user-select: none;
}

.ben-tb .cal-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: background var(--dur), border var(--dur), transform var(--dur);
    /* border: 1.5px solid transparent; */
    /* background-color: grey; */
}

.ben-tb .cal-day > span,
.ben-tb .cal-day > a,
.ben-tb .cal-day > button {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: inherit;
  padding: 0;
  font-family: manrope;
  transition: background var(--dur);
}

/* States */
.ben-tb .cal-day.is-out { opacity: .3; }

.ben-tb .cal-day.is-today {
  background: #ff3b30;
  border-color: transparent;
  border-radius: 100%;
}
.ben-tb .cal-day.is-today > span,
.ben-tb .cal-day.is-today > a { font-weight: 700; }

.ben-tb .cal-day.is-available {
    cursor: pointer;
    border-radius: 50%;
    /* border: 1px solid; */
}
.ben-tb .cal-day.is-available::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #52b788;
}


.ben-tb .cal-day.is-selected, .ben-tb .cal-day.is-selected:hover {
  background: var(--c-selected);
  border-color: var(--c-selected);
}
.ben-tb .cal-day.is-selected > a,
.ben-tb .cal-day.is-selected > button {
  color: #fff;
}
/*.ben-tb .cal-day.is-selected::after { background: #fff; opacity: .6; }*/

/* ── Slot list ── */
.ben-tb .slot-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.ben-tb .slot-list-title {
  font-family: manrope;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 400;
  margin: 0 0 12px;
}

.ben-tb .slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ben-tb .slot-btn {
    padding: 0.4rem 0.6rem;
    border-radius: 50px;
    border: 1px solid #000;
    background: transparent;
    color: #52b788;
    font-family: manrope;
  font-size: var(--wp--preset--font-size--small);
    /* font-weight: 500; */
    cursor: pointer;
    text-align: center;
    /* transition: background var(--dur), border-color var(--dur), transform var(--dur), color var(--dur); */
    /* box-shadow: var(--shadow-slot); */
}
.ben-tb .slot-btn:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}
.ben-tb .slot-btn.is-active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}

.ben-tb .no-slots {
  color: #000;
  font-size: var(--wp--preset--font-size--small);
  padding: 8px 0;
}

/* ── Form ── */
.ben-tb .form-card {}

.ben-tb .booking-summary {
    /* background: var(--c-bg); */
    margin-bottom: 16px;
    font-size: var(--wp--preset--font-size--small);
    font-family: manrope;
}
.ben-tb .booking-summary .sum-when {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.ben-tb .booking-summary .sum-hint {
  color: #000;
  font-size: var(--wp--preset--font-size--small);
  font-family: manrope;}

.ben-tb label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--c-ink-2);
    margin: 14px 0 5px;
    display: none;
}

.ben-tb input[type="text"], .ben-tb input[type="email"], .ben-tb textarea, input[type="tel"]
   {
    width: 100%;
    margin-top: 15px;
    padding: 0.4rem 0.6rem;
    border-radius: 50px;
    border: 1px solid #000;
    /* background: var(--c-surface); */
    color: #000;
    font-family: manrope;
    font-size: var(--wp--preset--font-size--small);
    box-sizing: border-box;
    /* transition: border-color var(--dur), box-shadow var(--dur); */
    /* outline: none; */
}
.ben-tb input[type="text"]:focus,
.ben-tb input[type="email"]:focus,
.ben-tb textarea:focus {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgba(26,25,23,.08);
}

.ben-tb textarea { resize: vertical; min-height: 80px; }

.ben-tb .btn-submit {
    margin-top: 18px;
    width: 100%;
    padding: 13px;
    border-radius: 50px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-family: manrope;
    font-size: var(--wp--preset--font-size--small);
    cursor: pointer;
    /*transition: background var(--dur), color var(--dur);*/
    /* letter-spacing: .01em; */
}
.ben-tb .btn-submit:hover:not(:disabled) {
  color: #fff;
  background: #000;

}
.ben-tb .btn-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ben-tb .form-hint {
  color: grey;
  font-size: 12px;
  margin-top: 0px;
  text-align: center;
}

/* ── Loading spinner ── */
.ben-tb .tb-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tb-spin .6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes tb-spin { to { transform: rotate(360deg); } }

/* ── Skeleton loading ── */
.ben-tb .tb-skeleton {
  background: linear-gradient(90deg, #ede9e3 25%, #e4e0d8 50%, #ede9e3 75%);
  background-size: 200% 100%;
  animation: tb-shimmer 1.4s ease infinite;
  border-radius: 6px;
  height: 14px;

}
@keyframes tb-shimmer { to { background-position: -200% 0; } }

/* ── Mobile ── */
@media (max-width: 520px) {
  .ben-tb .cal-grid { gap: 3px; }
  .ben-tb .cal-day { border-radius: 8px; }
  .ben-tb .cal-day > span,
  .ben-tb .cal-day > a,
  .ben-tb .cal-day > button { font-size: 12px; }
  .ben-tb h2 { font-size: 1.6rem; }
}
