/* KwK Buchungsservice — Form-Styling für /buchungsservice/
   Dark-Theme matched, Kupfer-Akzent #8D5A3B, mobile-first.
   Spezifität via .kwk-buchungsservice-page-Prefix. */

.kwk-buchungsservice-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 56px;
  color: rgba(255,255,255,0.85);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}
@media (max-width: 600px) {
  .kwk-buchungsservice-page { padding: 16px 0 40px; }
}

.kwk-buchungsservice-page .kwk-bs-intro {
  margin: 0 0 28px;
  font-size: 16px;
  color: rgba(255,255,255,0.78);
}
.kwk-buchungsservice-page .kwk-bs-intro p {
  margin: 0 0 14px;
}
.kwk-buchungsservice-page .kwk-bs-intro p:last-child {
  margin-bottom: 0;
}

/* Flash-Messages (Submit-Result) */
.kwk-buchungsservice-page .kwk-bs-flash {
  padding: 14px 18px;
  border-radius: 10px;
  margin: 0 0 24px;
  font-size: 15px;
  border: 1px solid;
}
.kwk-buchungsservice-page .kwk-bs-flash.is-ok {
  background: rgba(107,66,44,0.15);
  border-color: rgba(141,90,59,0.55);
  color: #f3d6b6;
}
.kwk-buchungsservice-page .kwk-bs-flash.is-err {
  background: rgba(180,60,60,0.12);
  border-color: rgba(180,60,60,0.4);
  color: #f3c0c0;
}

/* Form */
.kwk-buchungsservice-page .kwk-bs-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Honeypot — komplett unsichtbar aber für Bots sichtbar genug */
.kwk-buchungsservice-page .kwk-bs-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
}

.kwk-buchungsservice-page .kwk-bs-row {
  display: grid;
  gap: 16px;
}
.kwk-buchungsservice-page .kwk-bs-row-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .kwk-buchungsservice-page .kwk-bs-row-2 {
    grid-template-columns: 1fr;
  }
}

.kwk-buchungsservice-page .kwk-bs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kwk-buchungsservice-page .kwk-bs-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.kwk-buchungsservice-page .kwk-bs-req {
  color: #C97A4F;
  font-weight: 600;
}

.kwk-buchungsservice-page input[type="text"],
.kwk-buchungsservice-page input[type="email"],
.kwk-buchungsservice-page input[type="tel"],
.kwk-buchungsservice-page input[type="date"],
.kwk-buchungsservice-page input[type="number"],
.kwk-buchungsservice-page select,
.kwk-buchungsservice-page textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  background: #222;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.kwk-buchungsservice-page textarea {
  resize: vertical;
  min-height: 96px;
  padding-top: 12px;
}

.kwk-buchungsservice-page select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238D5A3B' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.kwk-buchungsservice-page select option {
  background: #222;
  color: #fff;
}

.kwk-buchungsservice-page input:focus,
.kwk-buchungsservice-page select:focus,
.kwk-buchungsservice-page textarea:focus {
  outline: none;
  border-color: #8D5A3B;
  background: #262626;
}

/* :user-invalid greift erst nach Submit-Versuch oder User-Interaktion —
   im Gegensatz zu :invalid das sofort bei leeren required-Feldern feuert.
   Browser-Support: Safari 16.4+, Chrome 119+, Firefox 88+ — vor 2026 üblich. */
.kwk-buchungsservice-page input:user-invalid,
.kwk-buchungsservice-page select:user-invalid,
.kwk-buchungsservice-page textarea:user-invalid {
  border-color: rgba(180,60,60,0.5);
}

/* Consent */
.kwk-buchungsservice-page .kwk-bs-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 4px 0 8px;
  cursor: pointer;
}
.kwk-buchungsservice-page .kwk-bs-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #8D5A3B;
  cursor: pointer;
}
.kwk-buchungsservice-page .kwk-bs-consent a {
  color: #C97A4F;
  text-decoration: underline;
}

/* Submit */
.kwk-buchungsservice-page .kwk-bs-submit {
  display: inline-block;
  padding: 14px 24px;
  background: linear-gradient(135deg, #6B422C 0%, #8D5A3B 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  min-height: 48px;
  width: 100%;
  margin-top: 4px;
  box-sizing: border-box;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

@media (min-width: 600px) {
  .kwk-buchungsservice-page .kwk-bs-submit {
    width: auto;
    align-self: flex-start;
    padding: 14px 36px;
  }
}

.kwk-buchungsservice-page .kwk-bs-submit:hover,
.kwk-buchungsservice-page .kwk-bs-submit:focus {
  box-shadow: 0 4px 18px rgba(141,90,59,0.35);
  outline: none;
}
.kwk-buchungsservice-page .kwk-bs-submit:active {
  transform: translateY(1px);
}
.kwk-buchungsservice-page .kwk-bs-submit[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.kwk-buchungsservice-page .kwk-bs-note {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* H1 styling — the WP-Theme has its own h1; we only fine-tune wrapper spacing */
.kwk-buchungsservice-page h1,
.entry-content h1.kwk-bs-h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 36px);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}

/* Theme rendert <h1> in <main.dnc-static-page> OBERHALB unseres Containers
   ohne max-width-Constraint → wäre weiter links als Form-Container (720px,
   auto-centered). Hier zwingen wir dem Theme-H1 dieselbe Box auf, damit
   H1 und Intro-Text/Form bündig linksbündig stehen. */
body.page-id-65063 .dnc-static-page > h1 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* === Anfrage-Art Toggle + Gutschein-Sektion (v1.2.0, 2026-06-10) === */
.kwk-bs-art { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; }
.kwk-bs-art-opt { flex: 1 1 220px; position: relative; cursor: pointer; margin: 0; }
.kwk-bs-art-opt input { position: absolute; opacity: 0; pointer-events: none; }
.kwk-bs-art-opt span {
  display: block; text-align: center; padding: 15px 18px;
  border: 1px solid rgba(196, 145, 106, 0.35); border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255, 0.72);
  font-weight: 500; letter-spacing: 0.3px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.kwk-bs-art-opt:hover span { border-color: rgba(196, 145, 106, 0.6); }
.kwk-bs-art-opt input:checked + span {
  border-color: #c4916a; background: rgba(196, 145, 106, 0.13); color: #fff;
}
.kwk-bs-art-opt input:focus-visible + span { outline: 2px solid #c4916a; outline-offset: 2px; }
/* Section toggle — pure CSS via :has(); browsers without :has() show both sections (graceful) */
form.kwk-bs-form:has(input[name="bs_anfrage_art"][value="gutschein"]:checked) .kwk-bs-sec-kurs { display: none; }
form.kwk-bs-form:has(input[name="bs_anfrage_art"][value="kurs"]:checked) .kwk-bs-sec-gutschein { display: none; }

/* number inputs: match text fields, no spinners (v1.2.1) */
.kwk-buchungsservice-page input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.kwk-buchungsservice-page input[type="number"]::-webkit-outer-spin-button,
.kwk-buchungsservice-page input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* === FAQ-Style Cards (v1.3.0, 2026-06-10) — Ränder, runde Ecken, Hairline-Streifen === */
.kwk-buchungsservice-page .kwk-bs-intro,
.kwk-buchungsservice-page form.kwk-bs-form {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 34px 28px 30px;
  background-color: #111111;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(255,255,255,0.018) 14px, rgba(255,255,255,0.018) 15px);
}
.kwk-buchungsservice-page .kwk-bs-intro { margin: 0 0 22px; }
@media (max-width: 600px) {
  .kwk-buchungsservice-page .kwk-bs-intro,
  .kwk-buchungsservice-page form.kwk-bs-form { padding: 26px 18px 22px; border-radius: 16px; }
}
/* Shimmer-Label wie FAQ-Gruppen */
.kwk-buchungsservice-page .kwk-bs-card-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8D5A3B, #c4916a, #8D5A3B);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: kwkBsShimmer 4s ease-in-out infinite;
  margin: 0 0 16px;
}
@keyframes kwkBsShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
/* Felder auf Streifen-Untergrund: Card-Ton wie FAQ-Items */
.kwk-buchungsservice-page input[type="text"],
.kwk-buchungsservice-page input[type="email"],
.kwk-buchungsservice-page input[type="tel"],
.kwk-buchungsservice-page input[type="date"],
.kwk-buchungsservice-page input[type="number"],
.kwk-buchungsservice-page select,
.kwk-buchungsservice-page textarea {
  background-color: #191919;
}
.kwk-buchungsservice-page .kwk-bs-art-opt span { background: #191919; }
.kwk-buchungsservice-page .kwk-bs-art-opt input:checked + span { background: rgba(196,145,106,0.13); }
.kwk-buchungsservice-page form.kwk-bs-form .kwk-bs-card-label { align-self: flex-start; margin-bottom: 2px; }
