/* Wind Clean GmbH – Cookie-Banner */
:root {
  --wc-primary: #2596be;
  --wc-primary-dark: #1e7a9e;
  --wc-titanium: #0f172a;
}

/* Banner Container */
#wc-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 99999;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 20px 60px -20px rgba(15, 23, 42, 0.25),
    0 0 60px -20px rgba(37, 150, 190, 0.35);
  padding: 22px 24px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#wc-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#wc-cookie-banner .wc-cb-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
#wc-cookie-banner .wc-cb-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wc-primary) 0%, #4ea8ca 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(37, 150, 190, 0.6);
}
#wc-cookie-banner .wc-cb-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#wc-cookie-banner .wc-cb-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}
#wc-cookie-banner .wc-cb-text a {
  color: var(--wc-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(37, 150, 190, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
#wc-cookie-banner .wc-cb-text a:hover {
  text-decoration-color: var(--wc-primary);
}

#wc-cookie-banner .wc-cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}
#wc-cookie-banner .wc-cb-actions .wc-cb-spacer { flex: 1; }

/* Buttons */
.wc-cb-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.wc-cb-btn:focus-visible {
  outline: 2px solid var(--wc-primary);
  outline-offset: 2px;
}

.wc-cb-btn-primary {
  background: var(--wc-titanium);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(37, 150, 190, 0.35),
              0 8px 20px -10px rgba(37, 150, 190, 0.65);
}
.wc-cb-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(37, 150, 190, 0.5),
              0 12px 28px -10px rgba(37, 150, 190, 0.85);
}

.wc-cb-btn-secondary {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}
.wc-cb-btn-secondary:hover {
  border-color: var(--wc-primary);
  color: var(--wc-primary);
}

.wc-cb-btn-link {
  background: none;
  border: none;
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 4px;
  font-weight: 600;
  font-size: 13px;
}
.wc-cb-btn-link:hover { color: var(--wc-primary); }

/* Settings Modal */
#wc-cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#wc-cookie-settings.is-open { display: flex; }

#wc-cookie-settings .wc-cs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#wc-cookie-settings.is-open .wc-cs-backdrop { opacity: 1; }

#wc-cookie-settings .wc-cs-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
}
#wc-cookie-settings.is-open .wc-cs-panel {
  transform: scale(1);
  opacity: 1;
}

.wc-cs-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wc-cs-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.wc-cs-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}
.wc-cs-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.wc-cs-close:hover {
  border-color: var(--wc-primary);
  color: var(--wc-primary);
}

.wc-cs-body {
  padding: 8px 24px 20px;
  overflow-y: auto;
  flex: 1;
}
.wc-cs-body::-webkit-scrollbar { width: 6px; }
.wc-cs-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* Category Cards */
.wc-cs-cat {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: flex-start;
}
.wc-cs-cat:last-child { border-bottom: none; }

.wc-cs-cat h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wc-cs-cat .wc-cs-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f0f9ff;
  color: var(--wc-primary-dark);
}
.wc-cs-cat p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.55;
}

/* Toggle Switch */
.wc-cs-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.wc-cs-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.wc-cs-toggle .wc-cs-track {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.25s ease;
}
.wc-cs-toggle .wc-cs-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.wc-cs-toggle input:checked ~ .wc-cs-track { background: var(--wc-primary); }
.wc-cs-toggle input:checked ~ .wc-cs-thumb { transform: translateX(18px); }
.wc-cs-toggle input:disabled ~ .wc-cs-track { background: #e2e8f0; opacity: 0.7; cursor: not-allowed; }
.wc-cs-toggle input:disabled ~ .wc-cs-thumb { background: #f1f5f9; cursor: not-allowed; }
.wc-cs-toggle input:focus-visible ~ .wc-cs-track {
  outline: 2px solid var(--wc-primary);
  outline-offset: 2px;
}

.wc-cs-foot {
  padding: 16px 24px 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: #f8fafc;
}

/* Footer Reopen Link */
#wc-cookie-reopen {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
}
#wc-cookie-reopen:hover { color: var(--wc-primary); }

/* Mobile */
@media (max-width: 640px) {
  #wc-cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 18px 18px;
    border-radius: 20px;
  }
  #wc-cookie-banner .wc-cb-actions { flex-direction: column-reverse; }
  #wc-cookie-banner .wc-cb-actions .wc-cb-btn { width: 100%; justify-content: center; }
  #wc-cookie-banner .wc-cb-actions .wc-cb-spacer { display: none; }
  #wc-cookie-banner .wc-cb-btn-link { width: 100%; text-align: center; padding: 6px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  #wc-cookie-banner,
  #wc-cookie-settings .wc-cs-panel,
  #wc-cookie-settings .wc-cs-backdrop,
  .wc-cs-toggle .wc-cs-thumb,
  .wc-cs-toggle .wc-cs-track {
    transition: none !important;
  }
}

/* Ergänzung ganz unten in cookie-banner.css */
#wc-cookie-banner .wc-cb-actions {
  justify-content: flex-end;
}
#wc-cookie-banner .wc-cb-actions .wc-cb-btn-link {
  margin-right: auto;
}