/* TB Cookie Consent - Popup Styles (modern, leichtes Dark-on-Light) */

.tbcc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.tbcc-hidden {
  display: none !important;
}

.tbcc-popup {
  background: #ffffff;
  color: #111111;
  padding: 24px 26px;
  border-radius: 12px;
  width: 95%;
  max-width: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  line-height: 1.5;
  animation: tbcc-fade-in 0.2s ease-out;
}

.tbcc-popup h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

/* Kategorien */
.tbcc-categories {
  margin-top: 16px;
  margin-bottom: 16px;
}

.tbcc-category {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
}

.tbcc-category-title {
  font-weight: 600;
  font-size: 14px;
}

.tbcc-category-badge {
  justify-self: end;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid #888;
}

.tbcc-category-badge-optional {
  border-color: #0077cc;
}

.tbcc-category-text {
  grid-column: 1 / 2;
  margin: 0;
  font-size: 12px;
  color: #555;
}

/* Toggle-Switch */
.tbcc-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
  justify-self: end;
}

.tbcc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tbcc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cccccc;
  transition: 0.2s;
  border-radius: 999px;
}

.tbcc-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s;
  border-radius: 50%;
}

.tbcc-switch input:checked + .tbcc-slider {
  background-color: #0077cc;
}

.tbcc-switch input:checked + .tbcc-slider::before {
  transform: translateX(18px);
}

.tbcc-slider.tbcc-slider-disabled {
  background-color: #999999;
  cursor: default;
}

/* Hinweistext */
.tbcc-hint {
  font-size: 12px;
  color: #555;
  margin: 10px 0 18px;
}

.tbcc-hint a {
  color: #0077cc;
  text-decoration: underline;
}

/* Buttons */
.tbcc-buttons {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tbcc-btn {
  border-radius: 6px;
  padding: 6px 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
}

.tbcc-btn-primary {
  background: #0077cc;
  color: #ffffff;
  border-color: #0077cc;
}

.tbcc-btn-secondary {
  background: #f5f5f5;
  color: #333333;
  border-color: #dddddd;
}

.tbcc-btn-danger {
  background: #ffffff;
  color: #cc0000;
  border-color: #cc0000;
}

.tbcc-btn:hover {
  filter: brightness(0.95);
}

/* Vollblockierung bei Ablehnung essenzieller Cookies */
#tbcc-site-blocker {
  position: fixed;
  inset: 0;
  background: #000000;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  text-align: center;
  padding: 20px;
  z-index: 20000;
}

/* Einblendanimation */
@keyframes tbcc-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
