/* ------------------------------------------------------------------
 * DSGVO Cookie-Banner (Opt-in / Opt-out gleichwertig)
 * Design-Farben an project six Palette angepasst:
 *   #82a900  primary  | #555253 dunkelgrau | #161616 fast schwarz
 * ------------------------------------------------------------------ */

.p6-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: #555253;
  color: #fdfdfd;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  padding: 1rem 1rem 1.15rem;
}

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

.p6-cookie__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.p6-cookie__text {
  flex: 1 1 260px;
  font-size: 0.9rem;
  margin: 0;
}

.p6-cookie__text a {
  color: #82a900;
  text-decoration: underline;
}

.p6-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.p6-cookie__btn {
  appearance: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.15rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid #82a900;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.p6-cookie__btn--accept {
  background: #82a900;
  color: #fdfdfd;
}
.p6-cookie__btn--accept:hover,
.p6-cookie__btn--accept:focus {
  background: #628000;
  border-color: #628000;
}

.p6-cookie__btn--decline {
  background: transparent;
  color: #fdfdfd;
}
.p6-cookie__btn--decline:hover,
.p6-cookie__btn--decline:focus {
  background: rgba(255, 255, 255, 0.12);
}

.p6-cookie__btn:focus-visible {
  outline: 3px solid #fdfdfd;
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .p6-cookie { padding: 0.85rem 0.85rem 1rem; }
  .p6-cookie__inner { flex-direction: column; align-items: stretch; }
  .p6-cookie__actions { width: 100%; }
  .p6-cookie__btn { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  .p6-cookie__btn { transition: none; }
}
