/* Selbst gehostetes Consent-Banner (Golf-Club am Sachsenwald) – keine externen Ressourcen */
.gcas-consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 999;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 920px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-50%);
  padding: 22px 26px;
  background: #fff;
  color: #000;
  border-top: 5px solid var(--main, #007150);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.22);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.gcas-consent[hidden] {
  display: none !important;
}

.gcas-consent *,
.gcas-consent *::before,
.gcas-consent *::after {
  box-sizing: border-box;
}

.gcas-consent__title {
  margin: 0 0 6px;
  color: var(--main, #007150);
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.gcas-consent__text {
  margin: 0 0 16px;
  font-size: 16px;
}

.gcas-consent a,
.gcas-consent-placeholder a {
  color: var(--main, #007150);
  text-decoration: underline;
}

.gcas-consent__settings {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.gcas-consent__settings[hidden] {
  display: none !important;
}

.gcas-consent__cat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px 14px;
  background: #f6f6f6;
  font-weight: 400;
  cursor: pointer;
}

.gcas-consent__cat input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--main, #007150);
  cursor: pointer;
}

.gcas-consent__cat input:disabled {
  cursor: not-allowed;
}

.gcas-consent__cat-name {
  display: block;
  font-weight: 700;
}

.gcas-consent__cat-desc {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}

.gcas-consent__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gcas-consent__btn,
.gcas-consent-placeholder__btn {
  flex: 1 1 180px;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 2px solid var(--main, #007150);
  border-radius: 0;
  background: var(--main, #007150);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.gcas-consent__btn:hover,
.gcas-consent-placeholder__btn:hover {
  background: #005a40;
  border-color: #005a40;
}

.gcas-consent__btn:focus-visible,
.gcas-consent-placeholder__btn:focus-visible,
.gcas-consent a:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

.gcas-consent__btn[hidden] {
  display: none !important;
}

/* Footer-Link, gleiche Darstellung wie Impressum/Datenschutz */
.cookie-settings-link {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

/* Platzhalter für externe Medien (Imagefilm) */
.gcas-consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 24px;
  background: #fff;
  border: 2px solid var(--main, #007150);
  color: #000;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.gcas-consent-placeholder[hidden],
[data-consent-category][hidden] {
  display: none !important;
}

.gcas-consent-placeholder__text {
  max-width: 560px;
  margin: 0;
}

.gcas-consent-placeholder__btn {
  flex: 0 0 auto;
  min-width: 180px;
}

@media screen and (max-width: 767px) {
  .gcas-consent {
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: 85vh;
    transform: none;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .gcas-consent__text {
    font-size: 15px;
  }

  .gcas-consent__btn {
    flex: 1 1 100%;
  }

  .gcas-consent-placeholder {
    padding: 18px 14px;
    font-size: 15px;
  }
}
