/* RS Cookie-Hinweis – Banner, Platzhalter, Fußzeilen-Link. Akzent = Exposé-Farbe, sonst Einstellung. */
:root { --rscc-accent: var(--ooExposePrimaryColor, var(--rscc-color, #125740)); }

html.rscc-open { overflow: hidden; }
/* Feste Leisten anderer Module (Feedback-Leiste, Mitteilung) liegen auf z-index-Maximum – solange der Banner offen ist, ausblenden. */
html.rscc-open .onFeedbackServiceActivitiesForm,
html.rscc-open .onFeedbackServiceActivitiesFormHinweis,
html.rscc-open .accessibility-toolbar { visibility: hidden !important; }

.rscc-overlay {
  position: fixed; inset: 0; z-index: 2147483647;
  background: rgba(20, 20, 20, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
  font-family: inherit; color: #141414; -webkit-font-smoothing: antialiased;
}
.rscc-panel {
  width: min(1100px, 100% - 32px); max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  animation: rscc-in .28s ease-out;
}
@keyframes rscc-in { from { transform: translateY(24px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.rscc-head { padding: 24px 32px 0; }
.rscc-head h2 {
  margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #141414;
}
.rscc-head h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--rscc-accent); }
.rscc-body {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px;
  padding: 18px 32px 8px; overflow: auto; -webkit-overflow-scrolling: touch;
}
.rscc-text { font-size: 13px; line-height: 1.6; color: #333; }
.rscc-text p { margin: 0 0 9px; }
.rscc-text a { color: var(--rscc-accent); font-weight: 700; text-decoration: none; }
.rscc-text a:hover { text-decoration: underline; }
.rscc-services h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #666; }
.rscc-list { list-style: none; margin: 0; padding: 0; }
.rscc-item { padding: 12px 0; border-top: 1px solid #ececec; }
.rscc-item:first-child { border-top: 0; padding-top: 4px; }
.rscc-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.rscc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.rscc-slider {
  flex: 0 0 42px; width: 42px; height: 24px; border-radius: 12px; background: #cfcfcf; position: relative; transition: background .15s;
}
.rscc-slider::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s;
}
.rscc-switch input:checked + .rscc-slider { background: var(--rscc-accent); }
.rscc-switch input:checked + .rscc-slider::before { transform: translateX(18px); }
.rscc-switch input:focus-visible + .rscc-slider { outline: 3px dotted var(--rscc-accent); outline-offset: 2px; }
.rscc-switch input:disabled + .rscc-slider { opacity: .55; cursor: not-allowed; }
.rscc-item-label { font-size: 14px; font-weight: 700; color: #141414; }
.rscc-item-meta { margin: 6px 0 0 54px; font-size: 12px; color: #666; }
.rscc-item-meta a { color: var(--rscc-accent); font-weight: 700; text-decoration: none; }
.rscc-item-meta a:hover { text-decoration: underline; }
.rscc-item-desc { margin: 4px 0 0 54px; font-size: 12px; line-height: 1.5; color: #555; }
.rscc-foot { padding: 16px 32px 22px; border-top: 1px solid #ececec; }
.rscc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rscc-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px;
  border-radius: 23px; border: 1.5px solid var(--rscc-accent); font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s; line-height: 1;
}
.rscc-btn--primary { background: var(--rscc-accent); color: #fff; }
.rscc-btn--primary:hover { background: #fff; color: var(--rscc-accent); }
.rscc-btn--outline { background: #fff; color: var(--rscc-accent); }
.rscc-btn--outline:hover { background: var(--rscc-accent); color: #fff; }
.rscc-btn:focus-visible { outline: 3px dotted var(--rscc-accent); outline-offset: 2px; }
.rscc-legal { margin: 14px 0 0; font-size: 12px; color: #666; }
.rscc-legal a { color: #333; text-decoration: none; font-weight: 700; }
.rscc-legal a:hover { text-decoration: underline; }
.rscc-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--rscc-accent); cursor: pointer; text-decoration: none; }
.rscc-link:hover { text-decoration: underline; }

/* Platzhalter für geblockte Inhalte */
.rscc-blocked {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 100%; min-height: 260px; padding: 24px; background: #f4f4f4; color: #141414; text-align: center;
}
.ooExposeViewBlockVideo .rscc-blocked { aspect-ratio: 5 / 2; min-height: 0; }
.ooExposeViewMap .rscc-blocked { height: 100%; min-height: 360px; }
.rscc-ph { max-width: 560px; margin: 0 auto; }
.rscc-ph-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--rscc-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.rscc-ph-icon svg { width: 26px; height: 26px; }
.rscc-ph-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.rscc-ph-text { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: #444; }
.rscc-ph-text a { color: var(--rscc-accent); font-weight: 700; text-decoration: none; }
.rscc-ph-text a:hover { text-decoration: underline; }
.rscc-ph-actions { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* Wiederöffnen: Fußzeilen-Link neben „Vertrag widerrufen“ oder schwebender Knopf */
/* Direkt unter „Vertrag widerrufen“, mit kleinem Abstand wie zwischen Telefon- und E-Mail-Zeile; schlichter schwarzer, unterstrichener Link */
.rscc-footer { margin-top: 4px !important; margin-bottom: 0 !important; }
.rscc-footer-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 400; color: inherit; text-decoration: underline; cursor: pointer; }
.rscc-footer-link:hover { text-decoration: none; }
.rscc-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 99990; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--rscc-accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
}
.rscc-fab svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .rscc-overlay { align-items: stretch; padding: 0; }
  .rscc-panel { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .rscc-head { padding: 20px 20px 0; }
  .rscc-body { grid-template-columns: 1fr; gap: 20px; padding: 14px 20px 8px; }
  .rscc-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
  .rscc-actions { flex-direction: column; }
  .rscc-btn { width: 100%; }
  .rscc-blocked { min-height: 220px; padding: 18px; }
  .ooExposeViewBlockVideo .rscc-blocked { aspect-ratio: auto; min-height: 220px; }
}
