/* Minimal, modern, responsive, ohne Framework-Abhängigkeit */
:root {
  --cc-bg: rgba(0,0,0,.55);
  --cc-card: #fff;
  --cc-text: #111;
  --cc-muted: #555;
  --cc-border: #e6e6e6;
  --cc-shadow: 0 16px 60px rgba(0,0,0,.25);
  --cc-radius: 16px;
  --cc-pad: 18px;
  --cc-primary: #1a73e8;
}

.cc-banner, .cc-modal {
  position: fixed;
  inset: 0;
  background: var(--cc-bg);
  display: grid;
  place-items: end center;
  padding: 18px;
  z-index: 9999;
}

.cc-modal { place-items: center; }

.cc-card {
  width: min(720px, 100%);
  background: var(--cc-card);
  color: var(--cc-text);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  border: 1px solid var(--cc-border);
  padding: var(--cc-pad);
}

.cc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cc-header h2 {
  margin: 0 0 6px 0;
  font-size: 1.2rem;
}

.cc-header p {
  margin: 0;
  color: var(--cc-muted);
  line-height: 1.4;
}

.cc-sub { margin-top: 6px; }

.cc-icon-btn {
  border: 1px solid var(--cc-border);
  background: #fafafa;
  color: #222;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 22px;
  line-height: 32px;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cc-btn {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--cc-border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.cc-btn-primary {
  border-color: var(--cc-primary);
  background: var(--cc-primary);
  color: #fff;
}

.cc-btn-secondary {
  background: #f5f5f5;
}

.cc-btn-ghost {
  background: transparent;
}

.cc-links {
  margin-top: 12px;
  color: var(--cc-muted);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-links a { color: var(--cc-primary); text-decoration: none; }
.cc-links a:hover { text-decoration: underline; }

.cc-form { margin-top: 8px; }

.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--cc-border);
}

.cc-row:first-of-type { border-top: 0; }

.cc-row-title { font-weight: 700; }
.cc-row-desc { color: var(--cc-muted); font-size: .95rem; margin-top: 3px; }

.cc-row-disabled { opacity: .7; }

.cc-toggle {
  position: relative;
  min-width: 52px;
  display: grid;
  place-items: center;
}

.cc-toggle input[type="checkbox"] {
  width: 46px;
  height: 26px;
  appearance: none;
  background: #e9e9e9;
  border-radius: 999px;
  border: 1px solid var(--cc-border);
  position: relative;
  outline: none;
  cursor: pointer;
}

.cc-toggle input[type="checkbox"]::after {
  content: "";
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 999px;
  position: absolute;
  top: 1px;
  left: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: transform .18s ease;
}

.cc-toggle input[type="checkbox"]:checked {
  background: rgba(26,115,232,.18);
  border-color: rgba(26,115,232,.5);
}

.cc-toggle input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.cc-actions-modal {
  margin-top: 14px;
  justify-content: flex-end;
}

.cc-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--cc-border);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 520px) {
  .cc-actions { flex-direction: column; }
  .cc-actions-modal { align-items: stretch; }
  .cc-btn { width: 100%; }
  .cc-banner { place-items: end stretch; }
}

/* Ensure [hidden] actually hides, even if other CSS uses !important */
.cc-modal[hidden],
.cc-banner[hidden],
#cc-modal[hidden],
#cc-banner[hidden] {
  display: none !important;
}