#overlay-cc .btn {
  color: white;
  padding: 8px 10px;
  border: 1px solid #000;
  border-radius: 10px;
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
}

#overlay-cc {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 99999 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: default;
  box-sizing: border-box;
}

#overtext-cc {
  position: relative;
  width: 33.333vw;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #ffffff;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  font-size: 13px;
  color: #000000;
  text-align: left;
  font-family: 'Lato', sans-serif !important;
}

.text-center {
  text-align: center;
}

/* Logo styling */
.cookie-logo {
  text-align: center;
  margin-bottom: 15px;
  width: 100%;
}

.cookie-logo a,
.cookie-logo .custom-logo-link {
  display: block;
  width: 100%;
  line-height: 1;
}

.cookie-logo img,
.cookie-logo .custom-logo,
.cookie-logo-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Title styling */
.cookie-title {
  font-size: 17px;
  margin-bottom: 12px;
  color: #000000;
  text-align: center;
}

/* Description styling */
.cookie-description {
  margin-bottom: 14px;
  color: #000000;
  text-align: left;
  line-height: 1.35;
}

/* Checkbox container */
.cookie-options {
  text-align: left;
  margin-bottom: 14px;
}

.checkbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 7px;
  border: 1px solid #000000;
  border-radius: 5px;
  gap: 10px;
  text-align: left;
  background-color: #ffffff;
}

.checkbox-accordion {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 7px 10px;
  border: 1px solid #000000;
  border-radius: 6px;
  background-color: #ffffff;
  box-sizing: border-box;
  text-align: left;
}

.checkbox-summary {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 0;
  margin: 0;
}

.checkbox-summary::-webkit-details-marker,
.checkbox-summary::marker {
  display: none !important;
}

.checkbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  flex: 1 1 auto;
}

.accordion-arrow {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s ease;
  color: #333333;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.checkbox-accordion[open] .accordion-arrow {
  transform: rotate(90deg);
}

.checkbox-content {
  padding-top: 6px;
  padding-left: 18px;
  text-align: left;
}

.checkbox-row > div {
  flex: 1;
  text-align: left;
}

.checkbox-label {
  display: inline-block;
  font-weight: bold;
  color: #000000;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.checkbox-description {
  font-size: 11px;
  color: #000000;
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
  line-height: 1.25;
}

.privacy-link-container {
  text-align: center;
  margin-top: 10px;
}

/* Button styling */
.button-group {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  margin-top: 12px;
  flex-direction: row;
  flex-wrap: nowrap;
}

.btn {
  padding: 8px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif !important;
  line-height: 1.2;
  flex: 1 1 0;
  min-width: 0;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

/* Checkbox custom styling */
input[type="checkbox"] {
  transform: scale(1.15);
  margin: 0 0 0 8px;
  accent-color: #28a745;
  flex-shrink: 0;
  cursor: pointer;
}

/* Disabled checkbox styling */
.disabled-checkbox {
  opacity: 0.9;
  cursor: not-allowed;
}

#privBtn {
  color: #000000;
  text-decoration: underline;
  font-size: 12px;
  display: inline-block;
}

#privBtn:hover {
  color: #333333;
}

/* Container für die aktuelle Seite */
.page-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cookie-Präferenzen-Management */
.cookie-preferences-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 99998 !important;
  font-family: 'Lato', sans-serif !important;
}

@media (max-width: 1024px) {
  #overtext-cc {
    width: 66.666vw;
    max-width: 66.666vw;
    max-height: 80vh;
    padding: 20px;
    font-size: 13px;
  }

  #overlay-cc .btn {
    padding: 8px 8px;
    font-size: 11px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .button-group {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .cookie-title {
    font-size: 16px;
  }

  .checkbox-label {
    font-size: 13px;
  }

  .checkbox-description {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  #overtext-cc {
    width: 75vw;
    height: auto;
    max-width: 75vw;
    max-height: calc(100vh * 2 / 3);
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    font-size: 11px;
    box-sizing: border-box;
  }

  #overlay-cc {
    display: none;
    padding: 0;
  }

  .cookie-logo {
    margin-bottom: 8px;
    width: 100%;
  }

  .cookie-logo a,
  .cookie-logo .custom-logo-link {
    display: block;
    width: 100%;
    line-height: 1;
  }

  .cookie-logo img,
  .cookie-logo .custom-logo,
  .cookie-logo-img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain;
    display: block;
  }

  .cookie-title {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .cookie-description {
    display: none;
  }

  .cookie-options {
    margin-bottom: 8px;
  }

  .checkbox-accordion {
    padding: 6px 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
  }

  .checkbox-summary {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
  }

  .checkbox-title-wrap {
    gap: 5px;
    flex: 1 1 auto;
  }

  .accordion-arrow {
    font-size: 9px;
    width: 10px;
    flex-shrink: 0;
  }

  .checkbox-label {
    font-size: 12px;
  }

  .checkbox-content {
    padding-top: 4px;
    padding-left: 15px;
  }

  .checkbox-description {
    font-size: 10px;
    line-height: 1.2;
  }

  .button-group {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 8px;
  }

  #overlay-cc .btn {
    padding: 7px 8px;
    font-size: 11px;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    border-radius: 5px;
    line-height: 1.2;
  }

  .checkbox-row {
    padding: 6px;
  }

  input[type="checkbox"] {
    transform: scale(1.1);
    margin: 0 0 0 6px;
    accent-color: #28a745;
    flex-shrink: 0;
  }

  .privacy-link-container {
    margin-top: 6px;
    text-align: center;
  }

  #privBtn {
    font-size: 11px;
  }
}

.ghcc-no-scroll {
  overflow: hidden !important;
}
