:root{
  --cc-z: 2147483647;
  --cc-bg: rgba(0,0,0,.55);
  --cc-card: #111;
  --cc-text: #f2f2f2;
  --cc-muted: #bdbdbd;
  --cc-border: rgba(255,255,255,.12);
  --cc-btn: #1f1f1f;
  --cc-btn-border: rgba(255,255,255,.18);
  --cc-focus: #ffffff;
}

.cc-backdrop{
  position: fixed; inset: 0;
  background: var(--cc-bg);
  z-index: var(--cc-z);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.cc-backdrop.cc-open{ display: flex; }

.cc-card{
  width: min(720px, 100%);
  background: var(--cc-card);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  overflow: hidden;
}

.cc-body{ padding: 16px 16px 10px; }
.cc-title{ font-size: 18px; margin: 0 0 6px; }
.cc-text{ margin: 0 0 10px; color: var(--cc-muted); line-height: 1.35; }

.cc-links a{
  color: var(--cc-text);
  text-decoration: underline;
  margin-right: 10px;
  font-size: 14px;
}

.cc-actions{
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--cc-border);
  flex-wrap: wrap;
}

.cc-btn{
  appearance: none;
  border: 1px solid var(--cc-btn-border);
  background: var(--cc-btn);
  color: var(--cc-text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  flex: 1 1 180px;
}

.cc-btn:focus{ outline: 2px solid var(--cc-focus); outline-offset: 2px; }

.cc-btn.cc-primary{
  background: #2b2b2b;
}

.cc-modal{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: var(--cc-z);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cc-modal.cc-open{ display: flex; }

.cc-modal-card{
  width: min(760px, 100%);
  background: var(--cc-card);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  overflow: hidden;
}

.cc-modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cc-border);
}

.cc-modal-head h3{ margin: 0; font-size: 18px; }

.cc-x{
  border: 1px solid var(--cc-btn-border);
  background: var(--cc-btn);
  color: var(--cc-text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.cc-modal-body{ padding: 14px 16px; }

.cc-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cc-border);
}

.cc-row:last-child{ border-bottom: none; }

.cc-row strong{ display: block; margin-bottom: 3px; }
.cc-row small{ color: var(--cc-muted); }

.cc-toggle{
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.cc-switch{
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--cc-btn-border);
  background: #1a1a1a;
  position: relative;
  cursor: pointer;
}

.cc-switch::after{
  content: "";
  width: 20px; height: 20px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 2px; left: 2px;
  transition: transform .15s ease;
}

.cc-switch[data-on="true"]{ background: #2b2b2b; }
.cc-switch[data-on="true"]::after{ transform: translateX(18px); }

.cc-disabled{ opacity: .55; cursor: not-allowed; }

/* ====== Notice (schöne Meldungen statt alert) ====== */
.cc-notice{
  position: fixed; inset: 0;
  background: var(--cc-bg);
  z-index: var(--cc-z);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cc-notice.cc-open{ display: flex; }

.cc-notice-card{
  width: min(520px, 100%);
  background: var(--cc-card);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  overflow: hidden;
}

.cc-notice-body{ padding: 16px 16px 8px; }

.cc-notice-title{
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.cc-notice-text{
  color: var(--cc-muted);
  line-height: 1.35;
  margin: 0 0 6px;
  white-space: pre-line;
}

/* ===========================
   Pretty Notice Modal (statt alert)
   =========================== */
.cc-notice{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: var(--cc-z);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cc-notice.cc-open{ display: flex; }

.cc-notice-card{
  width: min(520px, 100%);
  background: var(--cc-card);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  overflow: hidden;
}

.cc-notice-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cc-border);
}

.cc-notice-title{
  margin: 0;
  font-size: 18px;
}

.cc-notice-body{
  padding: 14px 16px;
  color: var(--cc-muted);
  line-height: 1.35;
  white-space: pre-line;
}

.cc-notice-actions{
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--cc-border);
  flex-wrap: wrap;
}

.cc-notice-actions .cc-btn{
  flex: 1 1 180px;
}
