/* CraftIQflow Booking Stylesheet
   Optimiert für dunklen Hintergrund (#0d0d0d / Logo-Hintergrund).
   Akzent: Türkis (#1dd6c9), Text: Weiß.
*/

/* Slots & Booking Container */
.cq-slots, .cq-book {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  color: #f0f0f0; /* Lesbarer heller Text */
  font-family: system-ui, sans-serif;
}

/* Slot Buttons */
.cq-slot {
  display: inline-block;
  margin: .25rem .5rem .25rem 0;
  padding: .6rem .9rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: .5rem;
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cq-slot:hover {
  border-color: #1dd6c9;
  background: rgba(29,214,201,0.15);
  color: #1dd6c9;
}

/* Formular Rows */
.cq-book .row {
  display: grid;
  gap: .35rem;
}
.cq-book label {
  font-size: 0.9rem;
  color: #ccc;
}

/* Input Felder */
.cq-book input[type="text"],
.cq-book input[type="email"],
.cq-book textarea {
  width: 100%;
  padding: .6rem .75rem;
  border-radius: .5rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cq-book input:focus,
.cq-book textarea:focus {
  outline: none;
  border-color: #1dd6c9;
  box-shadow: 0 0 0 2px rgba(29,214,201,0.4);
}

/* Submit Button */
.cq-book button[type="submit"] {
  padding: .7rem 1.2rem;
  border-radius: .5rem;
  border: 1px solid #1dd6c9;
  background: #1dd6c9;
  color: #0d0d0d;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cq-book button[type="submit"]:hover {
  background: transparent;
  color: #1dd6c9;
  border-color: #1dd6c9;
}

/* Status-Meldungen */
.cq-book .msg {
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: #1dd6c9; /* Erfolgsfarbe */
}
.cq-book .msg.error {
  color: #ff6b6b; /* Rot für Fehler */
}
.cq-selected-info{
  margin: .25rem 0 .5rem;
  font-size: .95rem;
  opacity: .9;
}



/* Text-Meldung auf der Error Seite */
.cq-alert { padding: .9rem 1rem; border-radius: .5rem; }
.cq-alert-error { background: rgba(255, 71, 87, .12); border:1px solid rgba(255,71,87,.4); color:#fff; }
.cq-alert-help, .cq-alert-meta { opacity:.85; margin-top:.35rem; font-size:.95rem; }







/* Slots – Basis */
.cq-slots { display: grid; gap: .5rem; }
.cq-slots .cq-slot {
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: .6rem .8rem;
  border-radius: .75rem;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.cq-slots .cq-slot:hover { transform: translateY(-1px); }
.cq-slots .cq-slot:focus-visible { outline: 2px solid #00E0C6; outline-offset: 2px; }

/* Ausgewählt: per Klasse ODER aria-pressed */
.cq-slots .cq-slot.is-selected,
.cq-slots .cq-slot[aria-pressed="true"] {
  background: #00E0C6;           /* CraftIQflow Türkis */
  color: #0b1320;                 /* dunkler Text auf türkis */
  border-color: #00E0C6;
  box-shadow: 0 0 0 2px rgba(0,224,198,.25);
}

/* Falls dein Theme Buttons überschreibt, erhöhe Spezifität & setze !important */
.cq-theme .cq-slots .cq-slot.is-selected,
.cq-theme .cq-slots .cq-slot[aria-pressed="true"] {
  background: #00E0C6 !important;
  color: #0b1320 !important;
  border-color: #00E0C6 !important;
}

/* Hoher Kontrast beim Tippen */
.cq-book input[type="text"],
.cq-book input[type="email"],
.cq-book textarea {
  color: #fff !important;   /* erzwingt Weiß gegen Theme-Overrides */
  caret-color: #fff;
}

/* Platzhalter besser lesbar */
.cq-book input::placeholder,
.cq-book textarea::placeholder {
  color: rgba(255,255,255,0.65);
}

/* Fokus: leicht hellerer Hintergrund, Text bleibt weiß */
.cq-book input:focus,
.cq-book textarea:focus {
  color: #fff !important;
  background-color: rgba(255,255,255,0.10);
}

/* WebKit-Autofill (Chrome/Edge/Safari) auf dunklem BG fixen */
.cq-book input:-webkit-autofill,
.cq-book input:-webkit-autofill:hover,
.cq-book input:-webkit-autofill:focus,
.cq-book textarea:-webkit-autofill,
.cq-book textarea:-webkit-autofill:hover,
.cq-book textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset !important; /* dunkler BG */
  transition: background-color 9999s ease-in-out 0s; /* verhindert gelbes Flashen */
}

/* Textauswahl gut sichtbar */
.cq-book input::selection,
.cq-book textarea::selection {
  background: #1dd6c9;
  color: #0a1a1d;
}
