/* Markeloop Teams-Terminbuchung – Design passend zum Markeloop-Theme
   Farben anpassen: .mltb { --mltb-accent: #E31F43; --mltb-head: #2978B0; } */
.mltb {
  --mltb-accent: #E31F43;
  --mltb-accent-ink: #ffffff;
  --mltb-head: #2978B0;
  --mltb-ink: #282A3A;
  --mltb-muted: #5F666E;
  --mltb-line: #E0E5EA;
  --mltb-surface: #ffffff;
  --mltb-soft: #F3F5F8;
  --mltb-error: #A3261B;
  --mltb-radius: 14px;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--mltb-ink);
  max-width: 52rem;
  margin: 0 auto;
  text-align: left;
}

.mltb.mltb .mltb__title { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5rem; color: var(--mltb-head) !important; }
.mltb .mltb__intro { margin: 0 0 1.5rem; color: var(--mltb-muted); max-width: 65ch; }
.mltb.mltb .mltb__step { font-family: 'Montserrat', system-ui, sans-serif; font-size: 15px; font-weight: 700; margin: 1.5rem 0 .7rem; color: var(--mltb-head) !important; }
.mltb .mltb__status { padding: 1rem 0; color: var(--mltb-muted); }
.mltb .mltb__status--error { color: var(--mltb-error); }

.mltb .mltb__days { display: flex; gap: .5rem; overflow-x: auto; padding: 2px 2px .5rem; scroll-snap-type: x proximity; }
.mltb.mltb .mltb__day {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: .1rem;
  min-width: 5rem; padding: .7rem .6rem; border: 1px solid var(--mltb-line); border-radius: var(--mltb-radius);
  background: var(--mltb-surface); color: var(--mltb-ink); font: inherit; cursor: pointer; box-shadow: none; transition: border-color .15s, transform .15s;
}
.mltb .mltb__day-name { font-weight: 700; }
.mltb .mltb__day-date { font-size: .85rem; color: var(--mltb-muted); }

.mltb .mltb__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; }
.mltb.mltb .mltb__time {
  padding: .65rem .25rem; border: 1px solid var(--mltb-line); border-radius: 999px; background: var(--mltb-surface);
  color: var(--mltb-ink); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: none;
}
.mltb.mltb .mltb__day:hover, .mltb.mltb .mltb__time:hover { border-color: var(--mltb-accent) !important; transform: translateY(-1px); }
.mltb.mltb .mltb__day[aria-pressed="true"], .mltb.mltb .mltb__time[aria-pressed="true"] {
  background: var(--mltb-accent) !important; border-color: var(--mltb-accent) !important; color: var(--mltb-accent-ink) !important;
}
.mltb.mltb .mltb__day[aria-pressed="true"] .mltb__day-name, .mltb.mltb .mltb__day[aria-pressed="true"] .mltb__day-date { color: var(--mltb-accent-ink) !important; }

.mltb button:focus-visible, .mltb input:focus-visible, .mltb select:focus-visible, .mltb textarea:focus-visible, .mltb a:focus-visible {
  outline: 3px solid var(--mltb-accent); outline-offset: 2px;
}

.mltb .mltb__form { margin-top: 1.75rem; padding: 1.5rem; border-radius: 20px; background: var(--mltb-soft); display: grid; gap: 1rem; }
.mltb .mltb__chosen { margin: 0; font-family: 'Montserrat', system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--mltb-head); }
.mltb .mltb__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mltb .mltb__field { display: grid; gap: .3rem; }
.mltb .mltb__label { font-weight: 600; font-size: 13px; color: var(--mltb-head); }
.mltb .mltb__hint { font-size: .8rem; color: var(--mltb-muted); }
.mltb .mltb__field input, .mltb .mltb__field select, .mltb .mltb__field textarea {
  width: 100%; box-sizing: border-box; padding: .7rem .9rem; min-height: 46px; border: 1px solid #D9DFE4; border-radius: 8px;
  background: #fff; color: var(--mltb-ink); font: inherit; font-size: 15px;
}
.mltb .mltb__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: 13px; color: var(--mltb-muted); }
.mltb .mltb__consent input { margin-top: .25rem; }
.mltb .mltb__consent a { color: var(--mltb-accent); }
.mltb .mltb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mltb .mltb__form-msg { margin: 0; color: var(--mltb-error); min-height: 1em; }
.mltb .mltb__form-msg:empty { display: none; }

.mltb.mltb .mltb__submit, .mltb.mltb .mltb__join {
  justify-self: start; display: inline-block; padding: 15px 30px; border: 0; border-radius: 999px;
  background: var(--mltb-accent) !important; color: var(--mltb-accent-ink) !important; font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; box-shadow: 0 12px 28px rgba(227, 31, 67, .3);
}
.mltb .mltb__submit:disabled { opacity: .6; cursor: progress; }
.mltb .mltb__done { padding: 1.25rem; border-radius: 20px; background: #E3F2E8; outline: none; }
.mltb.mltb .mltb__done h3 { font-family: 'Montserrat', system-ui, sans-serif; margin: 0 0 .5rem; color: #1E5B33 !important; }
.mltb-admin-hint { padding: 12px 16px; border-radius: 10px; background: #FFF4D6; color: #5C4400; }

/* Eingebettet auf dunklem Hintergrund (z. B. Kontaktbereich) */
.ml-bg-navy .mltb:not(.mltb--modal), .ml-page-hero .mltb:not(.mltb--modal) { background: #fff; border-radius: 24px; padding: 32px; }

/* Fenster (Dialog) */
.mltb-modal { border: 0; padding: 0; border-radius: 24px; width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 40px 80px rgba(6, 41, 62, .35); }
.mltb-modal::backdrop { background: rgba(30, 90, 134, .55); backdrop-filter: blur(2px); }
.mltb-modal .mltb--modal { padding: 36px 32px 32px; position: relative; max-width: none; }
.mltb-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #E0E5EA; background: #fff; color: #2978B0; font-size: 24px; line-height: 1; cursor: pointer; }
.mltb-modal__close:hover { color: #E31F43; border-color: #E31F43; }
html.mltb-open { overflow: hidden; }

@media (max-width: 640px) {
  .mltb .mltb__row { grid-template-columns: 1fr; }
  .mltb-modal .mltb--modal { padding: 48px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { .mltb * { scroll-behavior: auto !important; transition: none !important; } }
