:root {
  --dsgvo-accent: var(--cr-cyan1, #525c30);
  --dsgvo-accent-dark: #3f4726;
  --dsgvo-bg: #fff;
  --dsgvo-soft: #f4f5f3;
  --dsgvo-text: #26312e;
  --dsgvo-muted: #64706c;
  --dsgvo-border: rgba(38, 49, 46, .18);
  --dsgvo-shadow: 0 22px 70px rgba(20, 31, 27, .22);
}

.dsgvo-lock { overflow: hidden; }

.dsgvo-banner,
.dsgvo-modal {
  color: var(--dsgvo-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

.dsgvo-banner[hidden],
.dsgvo-modal[hidden] { display: none !important; }

.dsgvo-banner {
  position: fixed;
  z-index: 2147483600;
  right: clamp(12px, 3vw, 42px);
  bottom: clamp(12px, 3vw, 42px);
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--dsgvo-border);
  border-radius: 22px;
  background: var(--dsgvo-bg);
  box-shadow: var(--dsgvo-shadow);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}

.dsgvo-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dsgvo-banner__close,
.dsgvo-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--dsgvo-border);
  border-radius: 50%;
  background: #fff;
  color: var(--dsgvo-text);
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}

.dsgvo-kicker {
  margin: 0 48px 5px 0;
  color: var(--dsgvo-accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dsgvo-banner h2,
.dsgvo-modal h2 {
  margin: 0 48px 12px 0;
  color: var(--dsgvo-text);
  font-family: inherit;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
}

.dsgvo-banner p,
.dsgvo-modal p { margin: 0 0 14px; }

.dsgvo-banner a,
.dsgvo-modal a,
.dsgvo-embed a,
.dsgvo-settings-link {
  color: var(--dsgvo-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dsgvo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dsgvo-button,
.dsgvo-settings-link {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--dsgvo-accent);
  border-radius: 999px;
  font: inherit;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.dsgvo-button:hover,
.dsgvo-settings-link:hover { transform: translateY(-1px); }

.dsgvo-button--primary {
  background: var(--dsgvo-accent);
  color: #fff;
}

.dsgvo-button--secondary {
  background: var(--dsgvo-accent);
  color: #fff;
}

.dsgvo-button--quiet {
  border-color: var(--dsgvo-border);
  background: var(--dsgvo-soft);
  color: var(--dsgvo-text);
}

.dsgvo-modal {
  position: fixed;
  z-index: 2147483640;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(20, 28, 26, .62);
  overscroll-behavior: contain;
}

.dsgvo-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 22px;
  background: var(--dsgvo-bg);
  box-shadow: var(--dsgvo-shadow);
}

.dsgvo-service-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.dsgvo-service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  padding: 18px;
  border: 1px solid var(--dsgvo-border);
  border-radius: 14px;
  background: var(--dsgvo-soft);
}

.dsgvo-service h3 {
  margin: 0;
  color: var(--dsgvo-text);
  font: inherit;
  font-weight: 700;
}

.dsgvo-service p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--dsgvo-muted);
  font-size: .9rem;
}

.dsgvo-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.dsgvo-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dsgvo-switch span {
  width: 100%;
  border-radius: 999px;
  background: #b8bfbc;
  cursor: pointer;
  transition: background-color .2s ease;
}

.dsgvo-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  content: '';
  transition: transform .2s ease;
}

.dsgvo-switch input:checked + span { background: var(--dsgvo-accent); }
.dsgvo-switch input:checked + span::after { transform: translateX(22px); }
.dsgvo-switch input:focus-visible + span { outline: 3px solid rgba(116, 129, 125, .35); outline-offset: 2px; }
.dsgvo-switch input:disabled + span { cursor: not-allowed; opacity: .75; }

.dsgvo-embed {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  background: var(--dsgvo-soft);
}

.dsgvo-embed iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.dsgvo-embed__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: linear-gradient(145deg, #eef0ed, #fff);
  color: var(--dsgvo-text);
  text-align: center;
}

.dsgvo-embed__placeholder p { max-width: 480px; margin: 0; }
.dsgvo-embed__icon { color: var(--dsgvo-accent); font-size: 2rem; }
.dsgvo-embed.is-allowed[data-dsgvo-requested="true"] .dsgvo-embed__placeholder { display: none; }

.dsgvo-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.dsgvo-policy {
  width: 100%;
  margin-top: clamp(42px, 6vw, 72px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: var(--cr-dark2, #1c1c1c);
  color: #e7e7e7;
  font-size: 17px;
  line-height: 1.8;
}

.dsgvo-policy address {
  margin-bottom: 24px;
  color: #e7e7e7;
  font-style: normal;
  line-height: 1.8;
}

.dsgvo-policy p,
.dsgvo-policy li {
  max-width: 82ch;
  color: #e7e7e7;
}

.dsgvo-policy strong { color: #fff; }

.dsgvo-policy h2 {
  margin: 2.6rem 0 1rem;
  color: #b8c98a;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.25;
}

.dsgvo-policy h2:first-child { margin-top: 0; }

.dsgvo-policy h3 {
  margin: 2rem 0 .8rem;
  color: #d1ddaF;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.dsgvo-policy a {
  color: #c8d99a;
  font-weight: 600;
  text-decoration-color: rgba(200, 217, 154, .7);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dsgvo-policy a:hover,
.dsgvo-policy a:focus-visible { color: #fff; }

.dsgvo-policy code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .09);
  color: #f1f4e8;
}

.dsgvo-policy table {
  width: 100%;
  margin: 20px 0 30px;
  border-collapse: collapse;
  color: #e7e7e7;
  font-size: .95rem;
}
.dsgvo-policy th,
.dsgvo-policy td {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  text-align: left;
  vertical-align: top;
}
.dsgvo-policy th {
  background: rgba(184, 201, 138, .14);
  color: #fff;
}

.dsgvo-policy .dsgvo-button--secondary {
  border-color: #b8c98a;
  background: #b8c98a;
  color: var(--cr-dark1, #151515);
}

.dsgvo-policy .dsgvo-button--secondary:hover,
.dsgvo-policy .dsgvo-button--secondary:focus-visible {
  background: #d1ddaf;
  color: var(--cr-dark1, #151515);
}

.dsgvo-policy__notice {
  padding: 16px 18px;
  border-left: 4px solid #b8c98a;
  background: rgba(184, 201, 138, .1);
}

@media (max-width: 620px) {
  .dsgvo-banner {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
    border-radius: 16px;
  }
  .dsgvo-actions { display: grid; }
  .dsgvo-actions .dsgvo-button { width: 100%; }
  .dsgvo-modal { padding: 8px; }
  .dsgvo-modal__panel { max-height: calc(100vh - 16px); border-radius: 15px; }
  .dsgvo-policy { padding: 22px 18px; border-radius: 16px; overflow-wrap: anywhere; }
  .dsgvo-policy table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .dsgvo-banner,
  .dsgvo-button,
  .dsgvo-switch span,
  .dsgvo-switch span::after { transition: none; }
}
