.sg-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 140px;
  z-index: 999999;
/* background: rgba(0,0,0,.45); */
  padding: 20px;
  font-family: Arial, sans-serif;
}

.sg-cookie.is-hidden {
  display: none;
}

.sg-cookie__card {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.sg-cookie__badge {
  display: inline-block;
  background: #08244D;
  color: #fff;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 13px;
  margin-bottom: 8px;
}

.sg-cookie__title {
  margin: 0 0 10px;
  font-size: 24px;
  color: #222;
}

.sg-cookie__text {
  color: #444;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.sg-cookie__text a,
.sg-cookie__links a {
  color: #08244D;
  text-decoration: underline;
}

.sg-cookie__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.sg-cookie__sub {
  color: #666;
  font-size: 13px;
  margin-top: 4px;
}

.sg-cookie__sub[hidden] {
  display: none;
}

.sg-switch input {
  display: none;
}

.sg-switch__track {
  display: block;
  width: 52px;
  height: 28px;
  background: #ccc;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
}

.sg-switch__track:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .25s;
}

.sg-switch input:checked + .sg-switch__track {
  background: #08244D;
}

.sg-switch input:checked + .sg-switch__track:before {
  transform: translateX(24px);
}

.sg-cookie__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.sg-btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
}

.sg-btn--primary {
  background: #08244D;
  color: #fff;
}

.sg-btn--ghost {
  background: #f2f2f2;
  color: #222;
}

.sg-btn--danger {
  color: #08244D;
}

.sg-cookie__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}

/*
.sg-cookie-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999998;
  width: 52px;
  height: 31px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,.25);
  cursor: pointer;
  font-size: 24px;
  border: 1px solid #08244D;
}
*/

.sg-cookie-fab {
  position: fixed;
  left: 18px;
  bottom: 20px;
  z-index: 999998;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  cursor: pointer;
  font-size: 15px;
  border: 2px solid #08244D;
}

.sg-cookie-fab.is-hidden {
  display: none;
}

.cookie-lightbox {
  display: none;
  position: fixed;
  /* z-index: 1000000; */
  z-index: 2147483647 !important;
  inset: 0;
  background: rgba(0,0,0,.6);
  padding: 30px;
}

.cookie-lightbox.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-lightbox-content {
  background: #fff;
  max-width: 900px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  padding: 25px;
  border-radius: 14px;
  position: relative;
}

.cookie-lightbox-close {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 28px;
  cursor: pointer;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: sans-serif;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.sg-cookie__headline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-cookie__headline strong {
  margin: 0;
}

/*
.sg-cookie__sub-toggle {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #08244D;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
    flex-shrink: 0;
}
*/

.sg-cookie__sub-toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
  border: 1px solid #919191;
  margin-right: 8px;
}

.sg-cookie__sub-toggle.is-open,
.sg-cookie__sub-toggle.active {
  transform: rotate(180deg);
}

.schrift {
  font-family: 'Arial', Arial, sans-serif !important;
}

.copy-seo {
  font-family: 'Arial', Arial, sans-serif !important;
  font-size: 8px !important;
}

.sg-switch-necessary .sg-switch__track {
  background: #af3c3975 !important;
}

.sg-switch-necessary .sg-switch__track:before {
  background: #ffffff;
}

.sg-switch-necessary input:checked + .sg-switch__track {
  background: #af3c3975 !important;
}

@media(max-width: 700px) {
  .sg-cookie {
    top: 0;
    bottom: 0;
    padding: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,.55);
  }

  .sg-cookie.is-hidden {
    display: none;
  }

  .sg-cookie__card {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 16px;
    border-radius: 16px 16px 0 0;
  }

  .sg-cookie__title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .sg-cookie__text {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .sg-cookie__row {
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .sg-cookie__rowtext strong {
    font-size: 15px;
  }

  .sg-cookie__sub {
    font-size: 12px;
    line-height: 1.35;
  }

  .sg-cookie__sub-toggle {
    width: 24px;
    height: 24px;
    font-size: 10px;
    margin-top: 5px;
    flex-shrink: 0;
  }

  .sg-switch__track {
    width: 48px;
    height: 26px;
    flex-shrink: 0;
  }

  .sg-switch__track:before {
    width: 20px;
    height: 20px;
  }

  .sg-switch input:checked + .sg-switch__track:before {
    transform: translateX(22px);
  }

  .sg-cookie__actions {
    position: sticky;
    bottom: -16px;
    background: #fff;
    padding-top: 12px;
    padding-bottom: 4px;
    flex-direction: column;
    gap: 8px;
  }

  .sg-btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
  }

  .sg-cookie__footer {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }

  .sg-cookie-fab {
    left: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .cookie-lightbox {
    padding: 0;
    align-items: flex-end;
  }

  .cookie-lightbox-content {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    padding: 18px 14px;
    border-radius: 18px 18px 0 0;
    overflow-y: auto;
  }

  .cookie-lightbox-close {
    right: 16px;
    top: 10px;
    font-size: 30px;
  }

  .cookie-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 8px;
    vertical-align: top;
  }
}

@media(max-width: 420px) {
  .sg-cookie__card {
    padding: 14px;
  }

  .sg-cookie__title {
    font-size: 18px;
  }

  .sg-cookie__text {
    font-size: 13px;
  }

  .sg-cookie__row {
    padding: 10px;
  }

  .sg-btn {
    font-size: 14px;
  }
}

/* =========================================================
   FIRMENWAND Chat Consent v1.3.2
   Cookie-Einstellungen immer über dem Chat anzeigen
   ========================================================= */

#cookieBanner {
    z-index: 1000001;
}

#cookieOpenBtn {
    z-index: 1000000;
}


/* =========================================================
   FIRMENWAND Chatbot / Cookie-Banner Verbindung v1.3.4
   ========================================================= */

#cookieBanner {
    z-index: 1000001;
}

#cookieOpenBtn {
    z-index: 1000000;
}
