/* Wind Clean GmbH – ergänzende Styles zu Tailwind CDN */

:root {
  --wc-cyan: #06b6d4;
  --wc-emerald: #10b981;
  --wc-titanium: #0f172a;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(6, 182, 212, 0.25);
  color: #0f172a;
}

:focus-visible {
  outline: 2px solid var(--wc-cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Frosted glass surfaces */
.glass {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cyan glow CTA */
.glow-cta {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.35),
    0 10px 30px -10px rgba(6, 182, 212, 0.65),
    0 0 40px -12px rgba(6, 182, 212, 0.5);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background-color 0.3s ease;
}
.glow-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.55),
    0 14px 40px -10px rgba(6, 182, 212, 0.85),
    0 0 60px -10px rgba(6, 182, 212, 0.7);
}
.glow-cta:active {
  transform: translateY(0) scale(0.98);
}

/* Glowing logo dot */
.logo-dot {
  box-shadow:
    0 0 0 3px rgba(6, 182, 212, 0.18),
    0 0 14px 2px rgba(6, 182, 212, 0.75);
  animation: pulse-dot 2.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18), 0 0 14px 2px rgba(6, 182, 212, 0.75); }
  50% { box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.1), 0 0 22px 4px rgba(6, 182, 212, 0.95); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Header state */
#site-header {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s ease;
}
#site-header .header-pill {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
#site-header.is-scrolled .header-pill {
  box-shadow: 0 10px 40px -18px rgba(15, 23, 42, 0.35);
}

/* Mobile drawer */
#mobile-drawer {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-drawer[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#mobile-drawer .drawer-link {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-drawer[aria-hidden="false"] .drawer-link {
  opacity: 1;
  transform: none;
}
body.drawer-open {
  overflow: hidden;
}

/* Range slider – Apple-like */
input[type="range"].wc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wc-cyan) 0%, var(--wc-cyan) var(--pct, 0%), #e2e8f0 var(--pct, 0%), #e2e8f0 100%);
  outline: none;
}
input[type="range"].wc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18), 0 0 0 6px rgba(6, 182, 212, 0.12);
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
input[type="range"].wc-range:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22), 0 0 0 12px rgba(6, 182, 212, 0.22);
}
input[type="range"].wc-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18), 0 0 0 6px rgba(6, 182, 212, 0.12);
  cursor: grab;
}
input[type="range"].wc-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

/* Slider value pulse */
@keyframes slider-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); color: #06b6d4; }
  100% { transform: scale(1); }
}
.slider-pulse {
  animation: slider-pulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================ */
/* SEGMENTED CATEGORY TABS – iOS-like Slider    */
/* ============================================ */
.wc-cat-wrap {
  position: relative;
  display: flex;
  gap: 2px;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 4px;
  border: 1px solid #e2e8f0;
}

.wc-cat-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow:
    0 10px 24px -10px rgba(15, 23, 42, 0.55),
    0 0 0 1px rgba(15, 23, 42, 0.9) inset,
    0 0 24px -6px rgba(6, 182, 212, 0.45);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, width;
  z-index: 0;
  pointer-events: none;
}
.wc-cat-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 100% at 50% 0%, rgba(34, 211, 238, 0.35), transparent 70%);
  pointer-events: none;
}

.wc-cat-tab {
  position: relative;
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    color 0.3s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wc-cat-tab svg {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  opacity: 0.7;
  transition:
    opacity 0.3s ease,
    color 0.3s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wc-cat-tab[aria-selected="true"] {
  color: #ffffff;
}
.wc-cat-tab[aria-selected="true"] svg {
  opacity: 1;
  color: #22d3ee;
  transform: scale(1.15) rotate(-4deg);
}
.wc-cat-tab:not([aria-selected="true"]):hover {
  color: #0f172a;
}
.wc-cat-tab:not([aria-selected="true"]):hover svg {
  opacity: 1;
  transform: scale(1.12);
}
.wc-cat-tab:not([aria-selected="true"]):active {
  transform: scale(0.96);
}

/* ============================================ */
/* SERVICE PILLS – Stagger-In Animation         */
/* ============================================ */
.wc-pill {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease,
    border-color 0.25s ease;
}
.wc-pill span {
  pointer-events: none;
}
.wc-pill svg {
  display: inline-block !important;
  width: 15px !important;
  height: 15px !important;
  margin-right: 7px;
  vertical-align: -2px;
  opacity: 0.55;
  transition:
    opacity 0.25s ease,
    color 0.25s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wc-pill[aria-pressed="true"] svg {
  opacity: 1;
  color: #22d3ee;
  transform: scale(1.1);
}
.wc-pill[aria-pressed="true"] {
  background: var(--wc-titanium);
  color: #fff;
  border-color: var(--wc-titanium);
  box-shadow:
    0 10px 24px -10px rgba(15, 23, 42, 0.65),
    0 0 20px -6px rgba(6, 182, 212, 0.35);
}
.wc-pill[aria-pressed="true"] span {
  color: #34d399;
}
.wc-pill:not([aria-pressed="true"]):hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.15);
}
.wc-pill:not([aria-pressed="true"]):hover svg {
  opacity: 0.9;
  transform: scale(1.08);
}
.wc-pill:active {
  transform: scale(0.96);
}

@keyframes pill-in {
  0% { opacity: 0; transform: translateY(10px) scale(0.9); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.wc-pill.pill-animate {
  animation: pill-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes freq-in {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.wc-pill.freq-animate {
  animation: freq-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-calc-freq][hidden] {
  display: none !important;
}

/* ============================================ */
/* ADVANCED ACCORDION (details/summary)         */
/* ============================================ */
.wc-advanced {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #f8fafc;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.wc-advanced[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.15);
}
.wc-advanced > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  user-select: none;
  border-radius: 1.25rem;
  transition: background-color 0.2s ease;
}
.wc-advanced > summary::-webkit-details-marker {
  display: none;
}
.wc-advanced > summary:hover {
  background: rgba(6, 182, 212, 0.04);
}
.wc-advanced > summary .wc-adv-chevron {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #64748b;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}
.wc-advanced[open] > summary .wc-adv-chevron {
  transform: rotate(180deg);
  color: #06b6d4;
}
.wc-advanced > summary .wc-adv-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: auto;
  margin-right: 8px;
}
.wc-adv-body {
  padding: 0 1rem 1rem;
}

/* Add-on / Complexity checkbox pill */
.wc-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.wc-check-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}
.wc-check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wc-check-pill .wc-check-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.wc-check-pill .wc-check-icon svg {
  width: 10px !important;
  height: 10px !important;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.wc-check-pill[data-checked="true"] {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.wc-check-pill[data-checked="true"] .wc-check-icon {
  background: #06b6d4;
  border-color: #06b6d4;
}
.wc-check-pill[data-checked="true"] .wc-check-icon svg {
  opacity: 1;
}

/* Price flash on update */
@keyframes price-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); color: #22d3ee; }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}
.price-pop {
  animation: price-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Breakdown row slide-in */
@keyframes row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.breakdown-row {
  animation: row-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Neutral breakdown row – kein Zuschlag, keine Strafe, nur Info */
.breakdown-neutral {
  color: #cbd5e1 !important;
}
.breakdown-neutral dt {
  color: #94a3b8 !important;
}

/* Before/After slider */
.ba-wrap {
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba-after {
  clip-path: inset(0 0 0 var(--split, 50%));
}
.ba-divider {
  left: var(--split, 50%);
  transform: translateX(-50%);
}
.ba-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba-wrap.is-dragging .ba-handle {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.5), 0 0 0 8px rgba(6, 182, 212, 0.18);
}
.ba-before-img {
  filter: sepia(0.35) saturate(0.55) brightness(0.72) contrast(0.92) blur(0.4px);
}

/* Accordion */
.wc-accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.wc-accordion-body > div {
  overflow: hidden;
}
.wc-accordion[data-open="true"] .wc-accordion-body {
  grid-template-rows: 1fr;
}
.wc-accordion .wc-accordion-icon {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.wc-accordion[data-open="true"] .wc-accordion-icon {
  transform: rotate(45deg);
}

/* Bento card hover */
.bento-card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
}
.bento-card img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-card:hover img {
  transform: scale(1.05);
}

/* Subtle radial highlight */
.spot-cyan {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(500px 260px at 90% 100%, rgba(16, 185, 129, 0.14), transparent 60%);
}

/* Floating trust badges */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-slow { animation: float-y 6s ease-in-out infinite; }
.float-slower { animation: float-y 8s ease-in-out infinite; animation-delay: 1.2s; }

.form-step[hidden] { display: none; }

/* ============================================ */
/* LANGUAGE SWITCHER – sichtbar auf Desktop + Mobile */
/* ============================================ */
#currentLangLabel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-code {
  font-weight: 600;
  letter-spacing: 0.02em;
}
#langMenu button svg {
  flex-shrink: 0;
}

/* Bis 640px (Tailwind sm): nur Flagge zeigen, Code ausblenden */
@media (max-width: 639px) {
  .lang-code {
    display: none;
  }
  #currentLangLabel {
    gap: 0;
  }
  #langMenu {
    width: 11rem;
  }
}

/* Sehr schmale Screens: Header-Pill kompakter */
@media (max-width: 380px) {
  #site-header .header-pill {
    padding-left: 0.75rem;
    padding-right: 0.5rem;
  }
}

/* ============================================ */
/* REDUCED MOTION                               */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-dot, .float-slow, .float-slower { animation: none; }
  .slider-pulse, .price-pop, .pill-animate, .freq-animate, .breakdown-row { animation: none; }
  .wc-cat-indicator { transition: none; }
  .wc-advanced > summary .wc-adv-chevron { transition: none; }
}