/* Coalesco Cookie-Consent — passt zum Webflow Brand-Look (Geist + #1e915d) */

.cc-banner,
.cc-modal {
  font-family: Geist, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #000703;
  --cc-primary: #1e915d;
  --cc-primary-dark: #0a3c15;
  --cc-accent: #bcf031;
  --cc-text: #000703;
  --cc-muted: #5a5a5a;
  --cc-border: #e7e7e7;
}

/* ───── Banner (Bottom-Fixed) ───────────────────────────── */
.cc-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  padding: 16px;
  animation: cc-slide-up 0.35s ease-out;
}
.cc-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 7, 3, 0.15);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.cc-banner-text { min-width: 0; }
.cc-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--cc-text);
}
.cc-body {
  margin: 0;
  font-size: 14px;
  color: var(--cc-muted);
}
.cc-body a {
  color: var(--cc-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .cc-banner { padding: 8px; }
  .cc-banner-inner {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }
  .cc-banner-actions { justify-content: stretch; }
  .cc-banner-actions .cc-btn { flex: 1 1 calc(50% - 4px); }
}

/* ───── Modal (Settings) ────────────────────────────────── */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 3, 0.55);
  backdrop-filter: blur(4px);
  animation: cc-fade-in 0.2s ease-out;
}
.cc-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 7, 3, 0.3);
  animation: cc-scale-in 0.25s ease-out;
}
.cc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #eff5f1;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--cc-text);
  transition: background 0.15s ease;
}
.cc-modal-close:hover { background: #e0ece4; }

.cc-modal-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 600;
  font-family: Montserrat, Geist, sans-serif;
  color: var(--cc-text);
}
.cc-modal-intro {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: var(--cc-muted);
}

.cc-cat {
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.cc-cat-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--cc-text);
}
.cc-cat-body {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: var(--cc-muted);
}

/* Toggle Switch */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cc-knob {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.cc-knob:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.cc-toggle input:checked + .cc-knob { background: var(--cc-primary); }
.cc-toggle input:checked + .cc-knob:before { transform: translateX(20px); }
.cc-toggle-locked .cc-knob { background: var(--cc-primary); opacity: 0.5; cursor: not-allowed; }
.cc-toggle-locked .cc-knob:before { transform: translateX(20px); }

.cc-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cc-modal-actions .cc-btn { flex: 1 1 auto; min-width: 0; }

.cc-modal-footer {
  margin: 20px 0 0 0;
  font-size: 13px;
  color: var(--cc-muted);
  text-align: center;
}
.cc-modal-footer a { color: var(--cc-muted); text-decoration: underline; }

@media (max-width: 479px) {
  .cc-modal-card { padding: 24px 20px; border-radius: 16px; }
  .cc-modal-title { font-size: 19px; }
  .cc-modal-actions { flex-direction: column; }
}

/* ───── Buttons ─────────────────────────────────────────── */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.cc-btn-primary {
  background: var(--cc-primary);
  color: white;
}
.cc-btn-primary:hover { background: var(--cc-primary-dark); }

.cc-btn-secondary {
  background: white;
  color: var(--cc-text);
  border-color: var(--cc-border);
}
.cc-btn-secondary:hover { border-color: var(--cc-text); }

.cc-btn-ghost {
  background: transparent;
  color: var(--cc-muted);
}
.cc-btn-ghost:hover { color: var(--cc-text); background: #eff5f1; }

/* ───── Animations ──────────────────────────────────────── */
@keyframes cc-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes cc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cc-scale-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ───── Accessibility: Skip Link ───────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 99999;
  padding: 12px 20px;
  background: #1e915d;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-family: Geist, system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus { left: 8px; outline: 2px solid #bcf031; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Better focus states for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #1e915d;
  outline-offset: 2px;
}

/* Tap highlight */
* { -webkit-tap-highlight-color: rgba(30, 145, 93, 0.15); }
