/* =========================================================================
   Penhold — Cookie & Consent Banner („Halle“-Design, 11 Sprachen + RTL)
   ========================================================================= */
.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-card {
  pointer-events: auto;
  width: 100%;
  max-width: 780px;
  background: #16382c;
  color: #f6efdf;
  border: 1.5px solid rgba(242, 193, 78, 0.38);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(8, 22, 17, 0.58);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cookie-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f2c14e;
}

.cookie-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2c14e;
  flex-shrink: 0;
}

.cookie-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #b9c9be;
}

.cookie-links a {
  color: #b9c9be;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-links a:hover,
.cookie-links a:focus-visible {
  color: #f6efdf;
}

.cookie-title {
  margin: 0 0 6px;
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: #f6efdf;
}

.cookie-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.52;
  color: #d6e2da;
}

.cookie-details {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-details[hidden] {
  display: none !important;
}

.cookie-opt {
  background: rgba(13, 32, 25, 0.72);
  border: 1px solid rgba(185, 201, 190, 0.24);
  border-radius: 11px;
  padding: 11px 13px;
  display: block;
}

.cookie-opt-toggle {
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.cookie-opt-toggle:hover {
  border-color: rgba(242, 193, 78, 0.65);
}

.cookie-opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.cookie-opt-head strong {
  font-size: 13px;
  font-weight: 700;
  color: #f6efdf;
}

.cookie-opt p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #b9c9be;
}

.cookie-pill-fixed {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.16);
  color: #f2c14e;
  white-space: nowrap;
}

.cookie-opt-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f2c14e;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-inline-start: auto;
}

.cookie-btn {
  appearance: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.cookie-btn[hidden] {
  display: none !important;
}

.cookie-btn:focus-visible {
  outline: 2px solid #f2c14e;
  outline-offset: 2px;
}

.cookie-btn-ghost {
  background: transparent;
  color: #d6e2da;
  border: 1px solid rgba(185, 201, 190, 0.35);
}

.cookie-btn-ghost:hover {
  border-color: #f6efdf;
  color: #ffffff;
}

.cookie-btn-secondary {
  background: #234f3f;
  color: #f6efdf;
  border: 1.5px solid rgba(246, 239, 223, 0.38);
}

.cookie-btn-secondary:hover {
  background: #2b5f4c;
  border-color: #f6efdf;
}

.cookie-btn-primary {
  background: #f2c14e;
  color: #1f2d26;
  border: 1.5px solid #f2c14e;
}

.cookie-btn-primary:hover {
  background: #f7cd65;
  border-color: #f7cd65;
}

/* Footer-Button zum jederzeitigen Ändern/Widerrufen der Einwilligung (Art. 7 Abs. 3 DSGVO) */
.cookie-foot-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.88;
}

.cookie-foot-link:hover,
.cookie-foot-link:focus-visible {
  opacity: 1;
}

@media (max-width: 680px) {
  .cookie-banner {
    inset-inline: 10px;
    bottom: 10px;
  }
  .cookie-card {
    padding: 15px 15px;
  }
  .cookie-details {
    grid-template-columns: 1fr;
  }
  .cookie-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .cookie-actions-main {
    width: 100%;
    margin-inline-start: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cookie-actions-main [data-cookie-save]:not([hidden]) {
    grid-column: 1 / -1;
  }
  .cookie-btn {
    text-align: center;
    justify-content: center;
  }
}
