.consent-overlay[hidden], .consent-box[hidden] { display: none !important; }
.consent-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9998; }
.consent-box { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: #fff; color: #222; z-index: 9999; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); font-family: inherit; }
.consent-box__inner { padding: 24px; }
.consent-box__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.consent-box h2 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: .02em; }
.consent-box__intro { margin: 0 0 18px; line-height: 1.5; text-align: left; }
.consent-box__close { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: inherit; padding: 0; }
.consent-categories { display: grid; gap: 10px; margin: 18px 0; }
.consent-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; border: 1px solid #ddd; border-radius: 10px; padding: 16px 14px; cursor: pointer; text-align: left; }
.consent-category__main { display: grid; gap: 5px; justify-items: start; text-align: left; }
.consent-category__main strong { display: block; font-size: 1rem; line-height: 1.3; }
.consent-category__main span { display: block; line-height: 1.45; }
.consent-category small { color: #666; line-height: 1.35; }
.consent-category input { width: 22px; height: 22px; flex: 0 0 auto; justify-self: end; cursor: pointer; }
.consent-category input:disabled { cursor: not-allowed; }
.consent-box__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.consent-box__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent-btn { border: 1px solid #bbb; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-weight: 600; background: #fff; color: #222; font-family: inherit; }
.consent-btn:hover, .consent-btn:focus { border-color: #777; background: #f5f5f5; }
.consent-box__links { margin: 0; font-size: .92rem; text-align: left; }
.consent-box__links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
[data-consent-src] { border: 1px solid #ddd; border-radius: 10px; padding: 24px; text-align: center; background: #f7f7f7; }
[data-consent-src] iframe { width: 100%; min-height: 320px; border: 0; }
@media (max-width: 700px) {
  .consent-box { bottom: 0; width: 100%; border-radius: 14px 14px 0 0; }
  .consent-box__inner { padding: 20px; }
  .consent-box__footer { display: grid; gap: 14px; }
  .consent-box__actions { display: grid; justify-content: stretch; }
  .consent-btn { width: 100%; }
}
.consent-overlay[hidden], .consent-box[hidden] { display: none !important; }
.consent-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9998; }
.consent-box { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: #fff; color: #222; z-index: 9999; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); font-family: inherit; }
.consent-box__inner { padding: 24px; }
.consent-box__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.consent-box h2 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: .02em; }
.consent-box__intro { margin: 0 0 18px; line-height: 1.5; text-align: left; }
.consent-box__close { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: inherit; padding: 0; }
.consent-categories { display: grid; gap: 10px; margin: 18px 0; }
.consent-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; border: 1px solid #ddd; border-radius: 10px; padding: 16px 14px; cursor: pointer; text-align: left; }
.consent-category__main { display: grid; gap: 5px; justify-items: start; text-align: left; }
.consent-category__main strong { display: block; font-size: 1rem; line-height: 1.3; }
.consent-category__main span { display: block; line-height: 1.45; }
.consent-category small { color: #666; line-height: 1.35; }
.consent-category input { width: 22px; height: 22px; flex: 0 0 auto; justify-self: end; cursor: pointer; }
.consent-category input:disabled { cursor: not-allowed; }
.consent-box__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.consent-box__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent-btn { border: 1px solid #bbb; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-weight: 600; background: #fff; color: #222; font-family: inherit; }
.consent-btn:hover, .consent-btn:focus { border-color: #777; background: #f5f5f5; }
.consent-box__links { margin: 0; font-size: .92rem; text-align: left; }
.consent-box__links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
[data-consent-src] { border: 1px solid #ddd; border-radius: 10px; padding: 24px; text-align: center; background: #f7f7f7; }
[data-consent-src] iframe { width: 100%; min-height: 320px; border: 0; }
@media (max-width: 700px) {
  .consent-box { bottom: 0; width: 100%; border-radius: 14px 14px 0 0; }
  .consent-box__inner { padding: 20px; }
  .consent-box__footer { display: grid; gap: 14px; }
  .consent-box__actions { display: grid; justify-content: stretch; }
  .consent-btn { width: 100%; }
}

/* Externe Inhalte / Medien-Platzhalter */
.consent-embed {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  border: 0;
  text-align: initial;
}

.consent-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
}

.consent-embed iframe {
  display: none;
  width: 100%;
  min-height: 420px;
  height: 420px;
  border: 0;
  position: relative;
  z-index: 3;
  background: #fff;
}

.consent-embed.is-loaded::before,
.consent-embed.is-loaded .consent-embed__overlay {
  display: none !important;
}

.consent-embed.is-loaded iframe {
  display: block;
}

.consent-embed__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.consent-embed__box {
  width: min(620px, 100%);
  padding: 28px 32px;
  border-radius: 8px;
  text-align: center;
  background: rgba(255,255,255,.94);
  color: #444;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.consent-embed__box p {
  margin: 0 0 14px;
  line-height: 1.55;
}

.consent-embed__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.consent-embed__box a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-embed__button {
  appearance: none;
  border: 1px solid #d6d6d6;
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  padding: 14px 22px;
  min-width: 220px;
  min-height: 50px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.consent-embed__button:hover {
  background: #f7f7f7;
  border-color: #bfbfbf;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.consent-embed__button:focus {
  outline: 2px solid rgba(255, 102, 0, .35);
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .consent-embed { min-height: 340px; }
  .consent-embed iframe { min-height: 340px; height: 340px; }
  .consent-embed__overlay { padding: 18px; }
  .consent-embed__box { padding: 22px 18px; }
  .consent-embed__actions { display: grid; }
}
