#cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f8f8f8;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 95%;
  width: 90%;
  z-index: 100;
  margin:0;
  -webkit-text-size-adjust: 100%;
}

#cookie-banner a {
    color: blue !important;
}

#cookie-banner p {
  margin: 0 0 20px;
}

#cookie-banner .button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 35px;
}

#cookie-banner button {
  background-color: #01538e;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 10px;
}

#cookie-settings-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f8f8f8;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 95%;
  min-width: 50%;
  display: none;
  z-index: 100;
  margin:0;
}

#cookie-settings-popup h2 {
  margin-top: 0;
}

#cookie-settings-popup p {
  margin: 0 0 20px;
}

#cookie-settings-popup #checkbox-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
}

#checkbox-wrapper label {
  display: inline-flex;
  height: 40px;
  width: 80%;
  align-items: center;
}

#checkbox-wrapper input[type="checkbox"] {
  transform: scale(2);
  margin: 0;
}

#checkbox-wrapper span {
    margin: 0 0 0 20px;
    padding: 0;
}

#cookie-settings-popup button {
  background-color: #01538e;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 10px;
}

#cookie-settings-popup button.cancel {
  background-color: #01538e;
}

#cookies-verwalten {
    position: fixed;
    bottom: 15px;
    right: 20px;
    z-index: 99;
}

#cookies-verwalten img {
    height: 30px;
    transition: height 0.15s ease-out;
}

#cookies-verwalten img:hover {
    height: 34px;
}

#cookies-verwalten a:hover::before {
    content: "Cookies verwalten ";
}

#cookie-banner {
    max-height: 100%;
    overflow: scroll;
}

#cookie-settings-popup {
    max-height: 100%;
    overflow: scroll;
}

@media all and (min-width: 1000px) and (max-width: 1250px) {
    #cookies-verwalten a:hover::before {
        content: none;
    }
}

@media all and (min-width: 768px) and (max-width: 999px) {
    #cookies-verwalten a:hover::before {
            content: none;
    }
}

@media all and (min-width: 568px) and (max-width: 767px) {
    #cookies-verwalten a:hover::before {
        content: none;
    }
}

@media all and (max-width: 567px) {

    #cookie-banner {
        width: 80%;
    }

    #cookie-banner p {
        padding-top: 10px;
    }

    #cookie-settings-popup {
        width: 90%;
    }

    #cookies-verwalten a:hover::before {
        content: none;
    }

    #cookie-banner .button-container {
        flex-direction: column;
    }

    #cookie-banner .button-container > button {
        margin-bottom: 10px;
        width: 100%;
    }

}

@media all and (max-width: 926px) and (orientation:landscape) {
    #cookie-banner {
        margin-top: 10px;
        width: 95%;
    }

    #cookie-banner p {
        padding-top: 0;
    }
}

@media (prefers-color-scheme: dark) {

    #cookie-banner {
        color: black;
    }

    #cookie-settings-popup {
        color: black;
    }
}