/* ================================================================
   apart wellness — CRO Stylesheet v1.0
   Conversion Rate Optimization Components:
   - Sticky Bottom Bar
   - WhatsApp / Phone Float
   - Exit-Intent Popup
   - Social Proof Ticker
   - Progress Bar
   - Urgency Badges
   - Trust Strip
   - Form Micro-Interactions
   - Phone Link Pulse
================================================================ */

/* ════════════════════════════════════════════════════════
   1. READING PROGRESS BAR (Top)
════════════════════════════════════════════════════════ */
#cro-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #8d0303, #c8a96e);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════
   2. STICKY BOTTOM BAR
════════════════════════════════════════════════════════ */
#cro-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.35);
}
#cro-sticky-bar.cro-sticky-bar--visible {
  transform: translateY(0);
}
.cro-sticky-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cro-sticky-bar__text {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.cro-sticky-bar__label {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cro-sticky-bar__sublabel {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}
.cro-sticky-bar__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cro-sticky-bar__stars {
  color: #f0c040;
  font-size: 12px;
  letter-spacing: 1px;
}
.cro-sticky-bar__rating-text {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.cro-sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cro-sticky-bar__cta-btn {
  background: #8d0303;
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.cro-sticky-bar__cta-btn:hover {
  background: #a50404;
  transform: translateY(-1px);
}
.cro-sticky-bar__tel {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.cro-sticky-bar__tel:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.cro-sticky-bar__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.cro-sticky-bar__close:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 680px) {
  .cro-sticky-bar__inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .cro-sticky-bar__sublabel,
  .cro-sticky-bar__rating { display: none; }
  .cro-sticky-bar__label { font-size: 12px; }
  .cro-sticky-bar__cta-btn { padding: 10px 16px; font-size: 12px; }
  .cro-sticky-bar__tel { display: none; }
}

/* ════════════════════════════════════════════════════════
   3. FLOATING ACTION BUTTON (WhatsApp / Tel)
════════════════════════════════════════════════════════ */
#cro-float {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.cro-float__main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #8d0303;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(141,3,3,0.45);
  transition: transform 0.2s, background 0.2s;
  position: relative;
  z-index: 1;
}
.cro-float__main-btn:hover {
  transform: scale(1.08);
  background: #a50404;
}
#cro-float.cro-float--open .cro-float__main-btn {
  background: #333;
}
.cro-float__main-btn i { transition: transform 0.25s; }
#cro-float.cro-float--open .cro-float__main-btn i {
  transform: rotate(45deg);
}

/* Puls-Ring */
.cro-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(141,3,3,0.4);
  animation: cro-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes cro-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.5); opacity: 0;   }
  100% { transform: scale(1.5); opacity: 0;   }
}

/* Action-Items im Menü */
.cro-float__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
#cro-float.cro-float--open .cro-float__actions {
  max-height: 200px;
  opacity: 1;
}
.cro-float__action {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #fff;
  color: #1a1a1a;
  padding: 10px 16px 10px 14px;
  border-radius: 28px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cro-float__action:hover {
  transform: translateX(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cro-float__action-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.cro-float__action--tel .cro-float__action-icon  { background: #8d0303; color: #fff; }
.cro-float__action--mail .cro-float__action-icon { background: #1a1a1a; color: #fff; }
.cro-float__action--popup .cro-float__action-icon { background: #c8a96e; color: #fff; }

/* Reaktionszeit-Bubble */
#cro-float-speed {
  position: absolute;
  right: 64px;
  bottom: 12px;
  background: #fff;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
#cro-float-speed::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
  border-right: none;
}
#cro-float-speed.cro-float-speed--visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 480px) {
  #cro-float { bottom: 72px; right: 16px; }
}

/* ════════════════════════════════════════════════════════
   4. EXIT-INTENT POPUP
════════════════════════════════════════════════════════ */
#cro-exit-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#cro-exit-popup.cro-exit-popup--visible {
  opacity: 1;
  pointer-events: all;
}
.cro-exit-popup__box {
  background: #fff;
  max-width: 540px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
#cro-exit-popup.cro-exit-popup--visible .cro-exit-popup__box {
  transform: translateY(0);
}
.cro-exit-popup__header {
  background: linear-gradient(135deg, #1a1a1a, #2d1a0e);
  color: #fff;
  padding: 36px 40px 28px;
  text-align: center;
}
.cro-exit-popup__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 12px;
}
.cro-exit-popup__title {
  font-size: 26px;
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.cro-exit-popup__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}
.cro-exit-popup__body {
  padding: 28px 40px 36px;
}
.cro-exit-popup__offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.cro-exit-popup__offer {
  border: 1px solid #e8e8e6;
  border-radius: 3px;
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.cro-exit-popup__offer:hover {
  border-color: #8d0303;
  background: #fdf8f8;
}
.cro-exit-popup__offer-icon { font-size: 20px; margin-bottom: 6px; }
.cro-exit-popup__offer-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.cro-exit-popup__offer-sub { font-size: 11px; color: #888; }

.cro-exit-popup__cta {
  display: block;
  width: 100%;
  background: #8d0303;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  text-align: center;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  text-decoration: none;
  margin-bottom: 12px;
}
.cro-exit-popup__cta:hover { background: #a50404; }
.cro-exit-popup__skip {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #bbb;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}
.cro-exit-popup__skip:hover { color: #666; }
.cro-exit-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cro-exit-popup__close:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 480px) {
  .cro-exit-popup__header { padding: 28px 24px 20px; }
  .cro-exit-popup__body   { padding: 20px 24px 28px; }
  .cro-exit-popup__offers { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cro-exit-popup__title  { font-size: 22px; }
}


/* ════════════════════════════════════════════════════════
   6. TRUST STRIP
════════════════════════════════════════════════════════ */
.cro-trust-strip {
  background: #fff;
  border-top: 1px solid #f0f0ee;
  border-bottom: 1px solid #f0f0ee;
  padding: 20px 0;
}
.cro-trust-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.cro-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  border-right: 1px solid #e8e8e6;
}
.cro-trust-item:last-child { border-right: none; }
.cro-trust-item__icon {
  font-size: 18px;
  color: #8d0303;
  flex-shrink: 0;
}
.cro-trust-item__text {
  display: flex;
  flex-direction: column;
}
.cro-trust-item__label {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}
.cro-trust-item__sub {
  font-size: 10px;
  color: #999;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .cro-trust-strip__inner { gap: 0; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .cro-trust-item { padding: 6px 20px; flex-shrink: 0; }
}

/* ════════════════════════════════════════════════════════
   7. URGENCY BADGE
════════════════════════════════════════════════════════ */
.cro-urgency-badge {
  display: none; /* wird per JS eingeblendet */
  align-items: center;
  gap: 6px;
  background: #fff9ee;
  border: 1px solid #f0dfa0;
  color: #7a5500;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.cro-urgency-badge::before {
  content: '●';
  color: #e67e22;
  font-size: 8px;
  animation: cro-blink 1.5s step-start infinite;
}
@keyframes cro-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ════════════════════════════════════════════════════════
   8. REVIEW STRIP (Sterne-Bewertung)
════════════════════════════════════════════════════════ */
.cro-review-strip {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1a0e 100%);
  color: #fff;
  padding: 40px 0;
  overflow: hidden;
}
.cro-review-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
}
.cro-review-strip__score {
  text-align: center;
}
.cro-review-strip__num {
  font-size: 56px;
  font-weight: 200;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.cro-review-strip__stars-row {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin: 6px 0 4px;
}
.cro-review-strip__star { color: #f0c040; font-size: 16px; }
.cro-review-strip__count { font-size: 11px; color: rgba(255,255,255,0.45); }
.cro-review-strip__quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cro-review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px 22px;
  border-radius: 3px;
}
.cro-review-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}
.cro-review-card__star { color: #f0c040; font-size: 12px; }
.cro-review-card__text {
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0 0 12px;
}
.cro-review-card__author {
  font-size: 11px;
  color: #c8a96e;
  font-weight: 600;
  font-style: normal;
}
.cro-review-strip__cta {
  text-align: center;
}
.cro-review-strip__cta a {
  display: inline-block;
  background: #8d0303;
  color: #fff;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
}
.cro-review-strip__cta a:hover { background: #a50404; }
.cro-review-strip__cta p {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin: 10px 0 0;
}
@media (max-width: 960px) {
  .cro-review-strip__inner { grid-template-columns: 1fr; gap: 28px; }
  .cro-review-strip__quotes { grid-template-columns: 1fr; gap: 12px; }
  .cro-review-strip__score { display: flex; align-items: center; gap: 20px; }
  .cro-review-strip__score > * { margin: 0; }
}

/* ════════════════════════════════════════════════════════
   9. PHONE LINK PULSE
════════════════════════════════════════════════════════ */
a.cro-tel-link {
  position: relative;
}
a.cro-tel-link::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 3px;
  animation: none;
  opacity: 0;
}
@media (hover: hover) {
  a.cro-tel-link:hover {
    color: #8d0303 !important;
  }
}

/* ════════════════════════════════════════════════════════
   10. FORM MICRO-INTERACTIONS
════════════════════════════════════════════════════════ */
.cro-field-feedback {
  font-size: 11px;
  margin-top: 4px;
  display: block;
  height: 14px;
}
.cro-field-feedback--error { color: #c0392b; }
.cro-field-feedback--ok    { color: #27ae60; }

@keyframes cro-spin {
  to { transform: rotate(360deg); }
}
.cro-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cro-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ════════════════════════════════════════════════════════
   11. ANIMATE IN (Scroll-Trigger)
════════════════════════════════════════════════════════ */
.cro-animate-in {
  animation: cro-slide-up 0.5s ease both;
}
@keyframes cro-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════
   12. SOV-KARTE: Direktanfrage-Button
════════════════════════════════════════════════════════ */
.sov-card__quick-cta {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}
.sov-card__quick-cta:hover {
  background: #8d0303;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════
   13. MINI TRUST BADGES auf Produktkarten
════════════════════════════════════════════════════════ */
.cro-mini-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 14px;
}
.cro-mini-trust__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #888;
  font-weight: 500;
}
.cro-mini-trust__badge i { color: #2ecc71; font-size: 10px; }

/* ════════════════════════════════════════════════════════
   14. QUICK-WIN BANNER (oben, Sitewide)
   "Kostenlose Beratung — Jetzt Termin sichern"
════════════════════════════════════════════════════════ */
#cro-top-banner {
  background: #8d0303;
  color: #fff;
  text-align: center;
  padding: 9px 48px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1300;
}
#cro-top-banner a {
  color: #ffd080;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 8px;
}
#cro-top-banner a:hover { color: #fff; }
#cro-top-banner__close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
#cro-top-banner__close:hover { color: #fff; }
@media (max-width: 480px) {
  #cro-top-banner { font-size: 11px; padding: 8px 36px; }
}

/* ════════════════════════════════════════════════════════
   15. KONTAKT MINIMAP (index.html Kontaktbereich)
════════════════════════════════════════════════════════ */
.contact-map-wrap {
  margin-top: 36px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(141,3,3,0.10);
  position: relative;
}

.contact-map {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.35s ease;
}

.contact-map-wrap:hover .contact-map {
  filter: grayscale(0%) contrast(1);
}

.contact-map-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: #111;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.contact-map-link:hover {
  background: #1a1a1a;
  color: rgba(255,255,255,0.85);
}

.contact-map-link__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.contact-map-link:hover .contact-map-link__icon {
  opacity: 0.9;
}

/* Responsive: auf Mobilgeräten etwas kleiner */
@media (max-width: 768px) {
  .contact-map {
    height: 300px;
  }
  .contact-map-wrap {
    margin-top: 28px;
  }
}
