/* Cookiebar (KFZ-Sachverständiger Papic) — eigenes Theme in Gold/Dark.
   Basis: Eddy2909/cookiebar; Demo-Styles entfernt, an das Seiten-Design angepasst. */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: var(--dark, #2b2b2b);
  color: #fff;
  padding: 1rem 1.5rem;
  border-top: 3px solid var(--gold, #dfc787);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.cookie-banner__text {
  flex: 1 1 420px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner__text strong {
  color: #fff;
}

.cookie-banner__text a {
  color: var(--gold, #dfc787);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover,
.cookie-banner__text a:focus {
  color: #fff;
}

.cookie-banner .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner button {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.cookie-banner .btn-acc {
  background: var(--gold, #dfc787);
  border-color: var(--gold, #dfc787);
  color: var(--dark, #2b2b2b);
}

.cookie-banner .btn-acc:hover,
.cookie-banner .btn-acc:focus {
  background: var(--gold-hover, #e8d398);
  border-color: var(--gold-hover, #e8d398);
}

.cookie-banner .btn-dec {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-banner .btn-dec:hover,
.cookie-banner .btn-dec:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.cookie-banner button:focus-visible {
  outline: 3px solid var(--gold, #dfc787);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  /* Im Column-Layout wirkt flex-basis auf die Höhe -> zurücksetzen */
  .cookie-banner__text {
    flex: 0 0 auto;
  }

  .cookie-banner .btns button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner button {
    transition: none;
  }
}
