/*! Arve Einwilligung 1.0.0 – eigenes Stylesheet, keine externen Ressourcen. Lizenz: GPL-2.0-or-later. */

/* Farben: Massage-Arve-Grün (#2D5341) für Knöpfe und Links: Kontrast 6,5:1 zu Weiß (WCAG AA).
   Orange der Site (#D96B2F) nur für Fokusrahmen (3:1 gegen Weiß, Mindestwert für Bedienelemente). */

#arve-ew, #arve-ew *, #arve-ew-widget, .arve-ew-platzhalter, .arve-ew-platzhalter * { box-sizing: border-box; }

#arve-ew { display: none; }
#arve-ew.arve-ew-offen { display: block; }

#arve-ew .arve-ew-hintergrund {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000;
  background: rgba(0, 0, 0, .7);
}

#arve-ew .arve-ew-dialog {
  position: fixed; z-index: 2147483001; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(100% - 32px); max-width: 600px; max-height: calc(100% - 32px); overflow: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: #fff; color: #333; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  padding: 20px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5; text-align: left; letter-spacing: normal; outline: none;
  animation: arve-ew-ein .2s ease-out;
}
@keyframes arve-ew-ein { from { opacity: 0; } to { opacity: 1; } }

/* Auf Datenschutzerklärung und Impressum: Leiste unten, Seite bleibt lesbar und bedienbar */
#arve-ew[data-ansicht="leiste"] .arve-ew-hintergrund { display: none; }
#arve-ew[data-ansicht="leiste"] .arve-ew-dialog {
  top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-width: none;
  max-height: 60vh; border-radius: 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .3);
}
#arve-ew[data-ansicht="leiste"] .arve-ew-ebene { max-width: 900px; margin: 0 auto; }

html.arve-ew-sperre, html.arve-ew-sperre body { overflow: hidden; }

#arve-ew [hidden] { display: none !important; }

#arve-ew .arve-ew-kopf {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #e3e3e3;
}
#arve-ew .arve-ew-logo { display: block; flex: none; width: auto; height: 40px; max-width: 90px; object-fit: contain; }
#arve-ew h2.arve-ew-titel {
  flex: 1 1 auto; margin: 0; padding: 0; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.25;
  color: #232323; text-transform: none; letter-spacing: normal; outline: none;
}
#arve-ew button.arve-ew-schliessen, #arve-ew button.arve-ew-zurueck {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; min-height: 44px; margin: -8px -10px 0 0; padding: 0 8px; border: 0; border-radius: 4px;
  background: transparent; color: #2D5341; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  text-transform: none; cursor: pointer; box-shadow: none;
}
#arve-ew button.arve-ew-zurueck { margin: -8px 0 0 -8px; }
#arve-ew button.arve-ew-schliessen:hover, #arve-ew button.arve-ew-zurueck:hover { background: #EEF3F0; color: #173627; }

#arve-ew .arve-ew-inhalt p { margin: 0 0 10px; font-size: 14px; color: #444; }
#arve-ew a { color: #2D5341; text-decoration: underline; }
#arve-ew a:hover { color: #173627; }

#arve-ew fieldset.arve-ew-kurzwahl {
  display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0 0; padding: 0; border: 0; min-width: 0;
}
#arve-ew .arve-ew-kurz {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 15px; font-weight: 600; color: #333; cursor: pointer;
}
#arve-ew .arve-ew-kurz input { width: 20px; height: 20px; margin: 0; accent-color: #2D5341; cursor: pointer; }
#arve-ew .arve-ew-kurz input:disabled { cursor: not-allowed; }

#arve-ew .arve-ew-knoepfe { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; }
#arve-ew .arve-ew-reihe { display: flex; flex-wrap: wrap; gap: 10px; }

#arve-ew button.arve-ew-knopf, html .arve-ew-platzhalter button.arve-ew-knopf {
  flex: 1 1 200px; min-height: 44px; margin: 0; padding: 10px 16px; border: 2px solid #2D5341; border-radius: 4px;
  background: #2D5341; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-align: center; text-transform: none; text-decoration: none; letter-spacing: normal; white-space: normal;
  cursor: pointer; box-shadow: none;
}
#arve-ew button.arve-ew-knopf:hover, html .arve-ew-platzhalter button.arve-ew-knopf:hover { background: #173627; border-color: #173627; color: #fff; }
#arve-ew button.arve-ew-knopf-zweit, html .arve-ew-platzhalter button.arve-ew-knopf-zweit { background: #fff; color: #2D5341; }
#arve-ew button.arve-ew-knopf-zweit:hover, html .arve-ew-platzhalter button.arve-ew-knopf-zweit:hover { background: #EEF3F0; color: #173627; }

#arve-ew :focus-visible, html .arve-ew-platzhalter :focus-visible, html #arve-ew-widget:focus-visible {
  outline: 3px solid #D96B2F; outline-offset: 2px;
}
#arve-ew .arve-ew-dialog:focus-visible { outline: 3px solid #D96B2F; outline-offset: -3px; }

#arve-ew .arve-ew-fuss { margin: 12px 0 0; font-size: 13px; text-align: center; color: #555; }

/* Ebene 2 */
#arve-ew .arve-ew-kategorie { margin: 0 0 12px; padding: 12px; border: 1px solid #e3e3e3; border-radius: 6px; background: #fafafa; }
#arve-ew .arve-ew-kat-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#arve-ew .arve-ew-immer { font-size: 13px; color: #555; }
#arve-ew .arve-ew-kat-text { margin: 4px 0 8px; font-size: 14px; color: #444; }
#arve-ew .arve-ew-dienst { margin: 6px 0 0; padding: 6px 0 0 12px; border-top: 1px solid #e9e9e9; }
#arve-ew .arve-ew-dienst-titel { margin: 4px 0; font-weight: 600; }

#arve-ew .arve-ew-schalter { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-weight: 700; cursor: pointer; }
#arve-ew .arve-ew-schalter-klein { font-weight: 600; }
#arve-ew .arve-ew-schalter input {
  position: absolute; left: 0; top: 50%; width: 44px; height: 24px; margin: -12px 0 0; padding: 0; opacity: 0; cursor: pointer; z-index: 1;
}
#arve-ew .arve-ew-schalter input:disabled { cursor: not-allowed; }
#arve-ew .arve-ew-schalter-bahn { position: relative; flex: none; width: 44px; height: 24px; border-radius: 12px; background: #7b8189; transition: background .15s; }
#arve-ew .arve-ew-schalter-bahn::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s;
}
#arve-ew .arve-ew-schalter input:checked + .arve-ew-schalter-bahn { background: #2D5341; }
#arve-ew .arve-ew-schalter input:checked + .arve-ew-schalter-bahn::after { transform: translateX(20px); }
#arve-ew .arve-ew-schalter input:indeterminate + .arve-ew-schalter-bahn { background: #6F8A7C; }
#arve-ew .arve-ew-schalter input:indeterminate + .arve-ew-schalter-bahn::after { transform: translateX(10px); }
#arve-ew .arve-ew-schalter input:disabled + .arve-ew-schalter-bahn { background: #2D5341; opacity: .55; }
#arve-ew .arve-ew-schalter input:focus-visible + .arve-ew-schalter-bahn { outline: 3px solid #D96B2F; outline-offset: 2px; }

#arve-ew details.arve-ew-details { margin: 0 0 6px; font-size: 13.5px; }
#arve-ew details.arve-ew-details summary { display: list-item; padding: 6px 0; color: #2D5341; font-weight: 600; cursor: pointer; }
#arve-ew details.arve-ew-details dl { margin: 4px 0 0; }
#arve-ew details.arve-ew-details dt { margin: 6px 0 0; font-weight: 700; color: #333; }
#arve-ew details.arve-ew-details dd { margin: 0; color: #444; overflow-wrap: anywhere; }
#arve-ew details.arve-ew-details ul { margin: 0; padding: 0 0 0 18px; }
#arve-ew details.arve-ew-details code { font-size: 12.5px; background: #eee; padding: 0 3px; border-radius: 3px; }
#arve-ew .arve-ew-status { margin: 8px 0 0; font-size: 12.5px; color: #555; overflow-wrap: anywhere; }

/* Widget zum erneuten Öffnen */
html #arve-ew-widget {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147482999; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; min-height: 0; margin: 0; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: #555; color: #fff; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
html #arve-ew-widget:hover { background: #2D5341; color: #fff; }
html #arve-ew-widget[hidden] { display: none; }

/* Platzhalter für blockierte Inhalte */
html .arve-ew-platzhalter {
  display: flex; align-items: center; justify-content: center; width: 100%; margin: 0 0 8px; padding: 16px;
  background: #F4FAF8; border: 1px solid #C5D3CB; border-radius: 6px; color: #2b2b2b; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.45;
}
html .arve-ew-platzhalter-formular { display: block; }
/* Elementor gestaltet den Feld-Rahmen des reCAPTCHA-Feldes wie ein Eingabefeld (weiße Pille): um den Platzhalter herum ausblenden */
html .elementor-field:has(> .arve-ew-platzhalter-formular) {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important;
}
html .arve-ew-platzhalter[hidden] { display: none; }
html .arve-ew-platzhalter .arve-ew-platzhalter-innen { max-width: 520px; }
html .arve-ew-platzhalter p { margin: 0 0 10px; color: #2b2b2b; font-size: 14px; line-height: 1.45; }
html .arve-ew-platzhalter p.arve-ew-platzhalter-titel { font-size: 16px; font-weight: 700; }
html .arve-ew-platzhalter .arve-ew-platzhalter-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
html .arve-ew-platzhalter button.arve-ew-knopf { flex: 1 1 180px; font-size: 14px; }
html .arve-ew-platzhalter a { color: #2D5341; text-decoration: underline; }
html .arve-ew-platzhalter p.arve-ew-platzhalter-mehr { margin: 0; font-size: 13px; }
html .arve-ew-platzhalter p.arve-ew-platzhalter-hinweis { margin: 8px 0 0; font-weight: 700; color: #8a1f11; }
html .arve-ew-platzhalter p.arve-ew-platzhalter-hinweis:empty { display: none; }

/* Erlaubte Dienste: Platzhalter sofort ausblenden (Klassen setzt das Kopfskript vor dem Rendern) */
html.arve-ok-recaptcha [data-arve-platzhalter="recaptcha"],
html.arve-ok-google-maps [data-arve-platzhalter="google-maps"],
html.arve-ok-youtube [data-arve-platzhalter="youtube"],
html.arve-ok-vimeo [data-arve-platzhalter="vimeo"] { display: none; }
/* Nach dem Laden durch den Besucher bleibt im Formular nur die Bestätigung stehen */
html.arve-ok-recaptcha .arve-ew-platzhalter-formular.arve-ew-bereit { display: block; }
html .arve-ew-bereit .arve-ew-platzhalter-text,
html .arve-ew-bereit .arve-ew-platzhalter-knoepfe,
html .arve-ew-bereit .arve-ew-platzhalter-mehr { display: none; }
html .arve-ew-bereit p.arve-ew-platzhalter-hinweis { margin: 0; color: #173627; }

.arve-ew-unsichtbar {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 600px) {
  #arve-ew .arve-ew-dialog { padding: 16px; }
  #arve-ew h2.arve-ew-titel { font-size: 18px; }
  #arve-ew .arve-ew-logo { height: 32px; }
  #arve-ew button.arve-ew-knopf { flex-basis: 100%; }
  #arve-ew[data-ansicht="leiste"] .arve-ew-dialog { max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  #arve-ew .arve-ew-dialog, #arve-ew *, #arve-ew-widget { animation: none !important; transition: none !important; }
}

@media print {
  #arve-ew, #arve-ew-widget { display: none !important; }
}

/* massage-arve.ch: Auf dem Handy liegt unten die Sticky-Leiste (mu-plugin mav-sticky-cta, bis 767 px, 72 px hoch).
   Das Widget sitzt deshalb darueber statt darauf. */
@media (max-width: 767px) {
  html #arve-ew-widget { bottom: calc(84px + env(safe-area-inset-bottom)); left: 12px; width: 44px; height: 44px; }
}
html #arve-ew-widget { background: #2D5341; }
/* massage-arve.ch: Das Theme (cmsmasters Wellness Bliss) legt auf JEDEN button einen Orange-Gruen-Verlauf
   per ::before/::after. Im Dialog, in den Platzhaltern und am Widget abschalten, sonst sind die Zweitknoepfe unlesbar. */
html #arve-ew button::before, html #arve-ew button::after,
html .arve-ew-platzhalter button::before, html .arve-ew-platzhalter button::after,
html #arve-ew-widget::before, html #arve-ew-widget::after {
  content: none !important; display: none !important; background: none !important;
}
