/* ============================================================
   Sissi Creation – Phase 3: WhatsApp-Beratung (3D-Scan)
   Stil: passend zum bestehenden System (Creme/Weiß/Gold, Jost)
   ============================================================ */

/* ---------- Visuell versteckt (Screenreader) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3D: CTA-Button im Kategoriebereich ---------- */
.wa-cta-block { margin-top: 28px; }
.wa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid #171717;
  background: #171717;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.wa-cta-btn:hover, .wa-cta-btn:focus-visible {
  background: #A8874F;
  border-color: #A8874F;
}
.wa-cta-hinweis {
  margin-top: 10px;
  font-size: 12.5px;
  color: #5F5A54;
}

/* ---------- Übrige Kategorien: schlichter WhatsApp-Link ---------- */
.wa-einfach { margin-top: 22px; }
.wa-einfach-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #171717;
  border: 1.5px solid #EBE5DA;
  border-radius: 999px;
  padding: 10px 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wa-einfach-btn:hover, .wa-einfach-btn:focus-visible {
  border-color: #A8874F;
  background: #FAF7F2;
}

/* ---------- Modal-Grundgerüst ---------- */
body.modal-offen { overflow: hidden; }

.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wa-modal[hidden] { display: none; }

/* hidden muss auch für Kinder mit eigener display-Regel gelten
   (z. B. .wa-arten { display:grid }) – sonst bleiben Elemente sichtbar,
   die in diesem Schritt ausgeblendet sein müssen. */
.wa-modal [hidden] { display: none !important; }

/* Wichtig: Der gemeinsame .modal-backdrop hat z-index 140. Innerhalb des
   Modals muss er UNTER der Box liegen, sonst verdeckt er Inhalt und
   schluckt alle Klicks. */
.wa-modal .modal-backdrop {
  z-index: 0;
}

.wa-box {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #EBE5DA;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(23, 23, 23, 0.18);
}

.wa-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.wa-titel {
  font-family: "Crimson Pro", serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  color: #171717;
  margin: 0;
}
.wa-close {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid #EBE5DA;
  border-radius: 50%;
  background: #ffffff;
  color: #171717;
  cursor: pointer;
}
.wa-close:hover, .wa-close:focus-visible { border-color: #A8874F; }

.wa-intro {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5F5A54;
}
.wa-schritt {
  margin: 10px 0 0;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B7985F;
}

/* ---------- Schritt 1: Arten ---------- */
.wa-arten {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wa-art {
  width: 100%;
  min-height: 48px;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  border: 1.5px solid #EBE5DA;
  border-radius: 12px;
  background: #FAF7F2;
  color: #171717;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wa-art:hover, .wa-art:focus-visible { border-color: #B7985F; }
.wa-art[aria-pressed="true"] {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

/* ---------- Schritt 2: Formular ---------- */
.wa-feld { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.wa-feld label {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #171717;
}
.pflicht-mark { color: #A8874F; }
.optional-mark {
  color: #5F5A54;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}
.wa-feld input,
.wa-feld textarea {
  font-family: "Jost", sans-serif;
  font-size: 15px;
  color: #171717;
  background: #ffffff;
  border: 1.5px solid #EBE5DA;
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
}
.wa-feld textarea { resize: vertical; min-height: 96px; }
.wa-feld input:focus-visible,
.wa-feld textarea:focus-visible {
  outline: 2px solid #B7985F;
  outline-offset: 1px;
  border-color: #B7985F;
}
.wa-feld .ist-ungueltig,
.wa-feld input.ist-ungueltig,
.wa-feld textarea.ist-ungueltig {
  border-color: #B3402A;
}
.feld-fehler {
  font-size: 12.5px;
  color: #B3402A;
  min-height: 0;
}
.feld-fehler:empty { display: none; }
.feld-hinweis {
  font-size: 12px;
  color: #5F5A54;
  margin: 0;
}

/* Uhrzeit: eigenes 24-Stunden-Steuerelement (HH:MM) */
.wa-zeit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-zeit-trenner {
  font-family: "Jost", sans-serif;
  font-size: 17px;
  color: #171717;
  line-height: 1;
}
.wa-zeit-teil {
  font-family: "Jost", sans-serif;
  font-size: 15px;
  color: #171717;
  background: #ffffff;
  border: 1.5px solid #EBE5DA;
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 48px;
  width: 96px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23A8874F' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  text-align: center;
  text-align-last: center;
}
.wa-zeit-teil:focus-visible {
  outline: 2px solid #B7985F;
  outline-offset: 1px;
  border-color: #B7985F;
}
.wa-zeit.ist-ungueltig .wa-zeit-teil {
  border-color: #B3402A;
}

/* Datum: eigenes deutsches Feld (TT.MM.JJJJ) mit Kalender.
   Anzeige vollständig im Code – unabhängig von der Browsersprache. */
.wa-feld { position: relative; }
.wa-datum {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.wa-datum .wa-datum-eingabe { flex: 1 1 auto; min-width: 0; }
.wa-datum-oeffnen {
  flex: 0 0 auto;
  font-family: "Jost", sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: #171717;
  background: #ffffff;
  border: 1.5px solid #EBE5DA;
  border-radius: 10px;
  padding: 0 16px;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.wa-datum-oeffnen:hover,
.wa-datum-oeffnen:focus-visible {
  border-color: #B7985F;
  outline: 2px solid #B7985F;
  outline-offset: 1px;
}
.wa-datum[aria-invalid="true"] .wa-datum-eingabe,
.wa-datum.ist-ungueltig .wa-datum-eingabe {
  border-color: #B3402A;
}

.wa-kalender {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: min(320px, 100%);
  background: #ffffff;
  border: 1.5px solid #171717;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.18);
}
.wa-kalender-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.wa-kalender-titel {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #171717;
}
.wa-kalender-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #EBE5DA;
  background: #ffffff;
  color: #171717;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.wa-kalender-nav:hover:not(:disabled),
.wa-kalender-nav:focus-visible {
  border-color: #B7985F;
  outline: 2px solid #B7985F;
  outline-offset: 1px;
}
.wa-kalender-nav:disabled {
  color: #C9C2B8;
  cursor: not-allowed;
}
.wa-kalender-tabelle {
  width: 100%;
  border-collapse: collapse;
}
.wa-kalender-tabelle th {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #5F5A54;
  padding: 4px 0;
  text-align: center;
  font-weight: 600;
}
.wa-kalender-tabelle td { padding: 2px; text-align: center; }
.wa-tag {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: transparent;
  font-family: "Jost", sans-serif;
  font-size: 13.5px;
  color: #171717;
  cursor: pointer;
}
.wa-tag:hover:not(:disabled) { border-color: #A8874F; }
.wa-tag:focus-visible {
  outline: 2px solid #B7985F;
  outline-offset: 1px;
}
.wa-tag:disabled {
  color: #C9C2B8;
  cursor: not-allowed;
}
.wa-tag.ist-heute { border-color: #A8874F; }
.wa-tag.ist-gewaehlt {
  background: #171717;
  color: #ffffff;
  border-color: #171717;
}

/* Honeypot: für Menschen unsichtbar, nicht per Tastatur erreichbar */
.wa-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.wa-fehler {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: #B3402A;
}

/* ---------- Schritt 3: Vorschau ---------- */
.wa-pruef-titel {
  font-family: "Crimson Pro", serif;
  font-weight: 600;
  font-size: 21px;
  margin: 20px 0 0;
  color: #171717;
}
.wa-pruef-hinweis {
  font-size: 13.5px;
  color: #5F5A54;
  margin: 6px 0 0;
}
.wa-vorschau-text {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  font-family: "Jost", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: #171717;
  background: #FAF7F2;
  border: 1.5px solid #EBE5DA;
  border-radius: 10px;
  padding: 14px;
  resize: vertical;
}
.wa-vorschau-text:focus-visible {
  outline: 2px solid #B7985F;
  outline-offset: 1px;
}
.wa-datenschutzhinweis {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #FAF7F2;
  border: 1px solid #EBE5DA;
  border-left: 3px solid #B7985F;
  border-radius: 8px;
}
.wa-datenschutz-titel {
  margin: 0 0 4px;
  font-family: "Jost", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #171717;
}
.wa-datenschutz {
  font-size: 12px;
  line-height: 1.55;
  color: #5F5A54;
  margin: 10px 0 0;
}
.wa-datenschutz a {
  color: #8A6B3A;
  text-underline-offset: 2px;
}
.wa-datenschutz a:hover,
.wa-datenschutz a:focus-visible {
  color: #171717;
}
.wa-hinweis-verbindlich {
  font-size: 13px;
  font-weight: 600;
  color: #171717;
  margin: 12px 0 0;
}
.wa-fallback { margin-top: 12px; }
.wa-fallback-link { color: #8A6B3A; }

/* ---------- Aktionen ---------- */
.wa-aktionen {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.wa-btn {
  font-family: "Jost", sans-serif;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid #EBE5DA;
  background: #ffffff;
  color: #171717;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.wa-btn:hover, .wa-btn:focus-visible { border-color: #B7985F; }
.wa-btn--weiter { background: #171717; border-color: #171717; color: #ffffff; }
.wa-btn--weiter:hover { background: #A8874F; border-color: #A8874F; }
.wa-btn--senden {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
}
.wa-btn--senden:hover { background: #A8874F; border-color: #A8874F; }

.wa-testmodus {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: #5F5A54;
  border-top: 1px solid #EBE5DA;
  padding-top: 12px;
}

/* ---------- Responsiv ---------- */
@media (max-width: 640px) {
  .wa-box { padding: 20px 18px 18px; border-radius: 14px; }
  .wa-arten { grid-template-columns: 1fr; }
  .wa-titel { font-size: 22px; }
  .wa-aktionen { flex-wrap: wrap; }
  .wa-btn { flex: 1 1 auto; }
  .wa-zeit-teil { width: 104px; flex: 0 0 auto; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .wa-cta-btn, .wa-einfach-btn, .wa-btn, .wa-art {
    transition: none;
  }
}


/* Honeypot: für Menschen unsichtbar, nicht per Tastatur erreichbar */
.wa-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.wa-fehler {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: #B3402A;
}

/* ---------- Schritt 3: Vorschau ---------- */
.wa-pruef-titel {
  font-family: "Crimson Pro", serif;
  font-weight: 600;
  font-size: 21px;
  margin: 20px 0 0;
  color: #171717;
}
.wa-pruef-hinweis {
  font-size: 13.5px;
  color: #5F5A54;
  margin: 6px 0 0;
}
.wa-vorschau-text {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  font-family: "Jost", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: #171717;
  background: #FAF7F2;
  border: 1.5px solid #EBE5DA;
  border-radius: 10px;
  padding: 14px;
  resize: vertical;
}
.wa-vorschau-text:focus-visible {
  outline: 2px solid #B7985F;
  outline-offset: 1px;
}
.wa-datenschutzhinweis {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #FAF7F2;
  border: 1px solid #EBE5DA;
  border-left: 3px solid #B7985F;
  border-radius: 8px;
}
.wa-datenschutz-titel {
  margin: 0 0 4px;
  font-family: "Jost", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #171717;
}
.wa-datenschutz {
  font-size: 12px;
  line-height: 1.55;
  color: #5F5A54;
  margin: 10px 0 0;
}
.wa-datenschutz a {
  color: #8A6B3A;
  text-underline-offset: 2px;
}
.wa-datenschutz a:hover,
.wa-datenschutz a:focus-visible {
  color: #171717;
}
.wa-hinweis-verbindlich {
  font-size: 13px;
  font-weight: 600;
  color: #171717;
  margin: 12px 0 0;
}
.wa-fallback { margin-top: 12px; }
.wa-fallback-link { color: #8A6B3A; }

/* ---------- Aktionen ---------- */
.wa-aktionen {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.wa-btn {
  font-family: "Jost", sans-serif;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid #EBE5DA;
  background: #ffffff;
  color: #171717;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.wa-btn:hover, .wa-btn:focus-visible { border-color: #B7985F; }
.wa-btn--weiter { background: #171717; border-color: #171717; color: #ffffff; }
.wa-btn--weiter:hover { background: #A8874F; border-color: #A8874F; }
.wa-btn--senden {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
}
.wa-btn--senden:hover { background: #A8874F; border-color: #A8874F; }

.wa-testmodus {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: #5F5A54;
  border-top: 1px solid #EBE5DA;
  padding-top: 12px;
}

/* ---------- Responsiv ---------- */
@media (max-width: 640px) {
  .wa-box { padding: 20px 18px 18px; border-radius: 14px; }
  .wa-arten { grid-template-columns: 1fr; }
  .wa-titel { font-size: 22px; }
  .wa-aktionen { flex-wrap: wrap; }
  .wa-btn { flex: 1 1 auto; }
  .wa-zeit-teil { width: 104px; flex: 0 0 auto; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .wa-cta-btn, .wa-einfach-btn, .wa-btn, .wa-art {
    transition: none;
  }
}
