/* Cookie-Modal (Consent Mode v2), einheitliches Design wie blog.webentwickler.pro und die STEP/SEEDS-Seiten.
   Markenvariablen oben anpassen, der Rest bleibt bei allen Marken gleich. */
.cc-root {
  --cc-accent: #98c379;
  --cc-ink: #2c313c;
  --cc-muted: #6b7280;
  --cc-surface: #ffffff;
  --cc-row: #f9fafb;
  --cc-off: #d1d5db;
  --cc-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--cc-font);
}
.cc-overlay.is-open { display: flex; }

.cc-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: var(--cc-surface);
  color: var(--cc-ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.cc-modal:focus { outline: none; }
.cc-modal h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--cc-ink); }
.cc-modal p { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--cc-muted); }

.cc-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--cc-muted);
  cursor: pointer;
}

.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 10px;
  background: var(--cc-row);
}
.cc-label { font-size: 13px; font-weight: 600; color: #374151; }
.cc-desc { margin-top: 2px; font-size: 11px; line-height: 1.45; color: var(--cc-muted); }

.cc-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 40px;
  height: 24px;
  padding: 2px;
  border: none;
  border-radius: 999px;
  background: var(--cc-off);
  cursor: pointer;
  transition: background 0.2s;
}
.cc-toggle.is-on { background: var(--cc-accent); justify-content: flex-end; }
.cc-toggle.is-locked { cursor: default; opacity: 0.7; }
.cc-toggle.is-disabled { opacity: 0.45; cursor: not-allowed; }
.cc-dot { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }

.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cc-btn {
  flex: 1 1 auto;
  padding: 12px;
  border-radius: 999px;
  border: 2px solid var(--cc-accent);
  background: #fff;
  color: var(--cc-ink);
  font: 600 14px var(--cc-font);
  cursor: pointer;
  transition: background 0.2s;
}
.cc-btn:hover { background: #f3f4f6; }
.cc-link { display: block; margin-top: 12px; text-align: center; font-size: 12px; color: var(--cc-ink); text-decoration: underline; }

.cc-toggle:focus-visible,
.cc-btn:focus-visible,
.cc-close:focus-visible,
.cc-link:focus-visible,
.cc-fab:focus-visible { outline: 2px solid var(--cc-ink); outline-offset: 2px; }

.cc-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: #2c313c;
  box-shadow: 0 4px 12px rgba(35, 39, 46, 0.3);
  cursor: pointer;
  transition: transform 0.2s;
}
.cc-fab.is-visible { display: flex; }
.cc-fab:hover { transform: scale(1.1); }
.cc-fab svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.5; }

@media (max-width: 520px) {
  .cc-actions { flex-direction: column; }
  .cc-fab { width: 40px; height: 40px; left: 12px; bottom: 12px; }
}

.cc-root[hidden] { display: none !important; }
