/* Beauty-Praxis Sonja Drachenberg - eigenes Einwilligungs-Banner (lokal, ohne Drittanbieter) */
.bp-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  box-sizing: border-box;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  background-color: #e9d4fb;
  color: #000;
  font-family: Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}
.bp-consent[hidden] { display: none; }
.bp-consent *, .bp-consent *::before, .bp-consent *::after { box-sizing: border-box; }

.bp-consent__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.bp-consent__body { flex: 1 1 420px; min-width: 0; }

.bp-consent__title {
  margin: 0 0 6px;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: #000;
}
.bp-consent__text { margin: 0; font-family: Roboto, sans-serif; font-size: 15px; color: #000; }
.bp-consent__text a { color: #000; text-decoration: underline; }

.bp-consent__actions {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bp-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 150px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  background-color: #ddb9f6;
  color: #000;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.bp-consent__btn:hover { background-color: #d3a8f3; }
.bp-consent__btn:focus-visible,
.bp-consent__switch input:focus-visible + .bp-consent__slider,
.bp-consent-placeholder__btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.bp-consent__settings {
  flex: 1 1 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 12px;
}
.bp-consent__settings[hidden] { display: none; }
.bp-consent__fieldset { margin: 0; padding: 0; border: 0; }
.bp-consent__legend { padding: 0; margin: 0 0 6px; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 15px; }

.bp-consent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bp-consent__label { display: block; font-weight: 500; }
.bp-consent__desc { display: block; font-size: 13px; color: #333; }

.bp-consent__switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-width: 52px;
  min-height: 44px;
  cursor: pointer;
}
.bp-consent__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}
.bp-consent__switch input:disabled { cursor: not-allowed; }
.bp-consent__slider {
  position: relative;
  display: block;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background-color: #a5aaad;
  transition: background-color 0.15s ease;
}
.bp-consent__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  transition: transform 0.15s ease;
}
.bp-consent__switch input:checked + .bp-consent__slider { background-color: #7a3fa8; }
.bp-consent__switch input:checked + .bp-consent__slider::after { transform: translateX(22px); }
.bp-consent__switch input:disabled + .bp-consent__slider { opacity: 0.65; }

.bp-consent__save { margin-top: 12px; }

/* Platzhalter fuer gesperrte externe Inhalte */
.bp-consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-height: 200px;
  padding: 16px;
  box-sizing: border-box;
  background-color: #e6e6e6;
  color: #333;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
/* Eigenbreite wie ein iframe (300px), damit Footer-Spalten nicht breiter werden */
.bp-consent-placeholder p { margin: 0; max-width: 268px; color: #333; overflow-wrap: break-word; }
.bp-consent-placeholder--form p { max-width: 420px; }
.bp-consent-placeholder__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 0;
  background-color: #ddb9f6;
  color: #000;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  cursor: pointer;
}
.bp-consent-placeholder__btn:hover { background-color: #d3a8f3; }
.bp-consent-placeholder--form { min-height: 260px; }

@media screen and (max-width: 991px) {
  .bp-consent__actions { flex: 1 1 100%; }
  .bp-consent__btn { min-width: 0; }
}

@media screen and (max-width: 767px) {
  .bp-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  }
  .bp-consent__inner { padding: 18px 16px; }
  .bp-consent__body { flex-basis: 100%; }
  .bp-consent__title { font-size: 17px; }
  .bp-consent__text { font-size: 14px; }
  .bp-consent__actions { grid-template-columns: 1fr; gap: 8px; }
  .bp-consent__btn { width: 100%; font-size: 15px; }
  .bp-consent__save { width: 100%; }
}
