/* ZAS Cookie Consent Banner — DSGVO-konform
   Light cream theme matching za-solution.de
   Brand tokens: cream #f5f1e8, cream-2 #fcfaf3, green #003b2e, gold #ffb000, zas-blue #6ec6ff
*/

.zas-cb {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate3d(-50%, 24px, 0);
  width: calc(100% - 32px);
  max-width: 780px;
  z-index: 2147483000;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #003b2e;
}

.zas-cb--visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}

.zas-cb--leaving {
  opacity: 0;
  transform: translate3d(-50%, 16px, 0);
  pointer-events: none;
}

.zas-cb__surface {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 22px 26px;
  background: #fcfaf3;
  border: 1px solid #ece6d8;
  border-top: 1px solid rgba(255, 176, 0, 0.5);
  border-radius: 14px;
  box-shadow:
    0 18px 50px -16px rgba(0, 59, 46, 0.22),
    0 4px 14px -6px rgba(0, 59, 46, 0.08);
}

.zas-cb__surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(255, 176, 0, 0.07), transparent 60%);
}

.zas-cb__body {
  position: relative;
  min-width: 0;
}

.zas-cb__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #003b2e;
  margin: 0 0 6px;
  line-height: 1.2;
}

.zas-cb__title::before {
  content: '';
  width: 24px;
  height: 1px;
  background: #ffb000;
  display: inline-block;
  flex-shrink: 0;
}

.zas-cb__text {
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(0, 59, 46, 0.78);
  margin: 0;
  max-width: 58ch;
}

.zas-cb__text a {
  color: #003b2e;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 176, 0, 0.7);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.zas-cb__text a:hover {
  color: #e09a00;
  border-bottom-color: #e09a00;
}

.zas-cb__actions {
  position: relative;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.zas-cb__btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  will-change: transform;
}

.zas-cb__btn:focus-visible {
  outline: 2px solid #3a7bd5;
  outline-offset: 2px;
}

.zas-cb__btn--reject {
  color: #003b2e;
  border-color: rgba(0, 59, 46, 0.22);
  background: transparent;
}

.zas-cb__btn--reject:hover {
  border-color: #003b2e;
  background: rgba(0, 59, 46, 0.04);
  transform: translate3d(0, -1px, 0);
}

.zas-cb__btn--accept {
  color: #003b2e;
  background: #ffb000;
  border-color: #ffb000;
  box-shadow: 0 6px 18px -8px rgba(255, 176, 0, 0.55);
}

.zas-cb__btn--accept:hover {
  background: #003b2e;
  border-color: #003b2e;
  color: #fcfaf3;
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 10px 26px -8px rgba(0, 59, 46, 0.32);
}

.zas-cb__btn:active {
  transform: translate3d(0, 0, 0) scale(0.98);
}

/* Tablet / Mobile */
@media (max-width: 720px) {
  .zas-cb {
    bottom: 12px;
    width: calc(100% - 20px);
  }

  .zas-cb__surface {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 20px;
    border-radius: 12px;
  }

  .zas-cb__title {
    font-size: 1.15rem;
  }

  .zas-cb__text {
    font-size: 0.82rem;
  }

  .zas-cb__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .zas-cb__btn {
    width: 100%;
    padding: 13px 14px;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 380px) {
  .zas-cb__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zas-cb,
  .zas-cb__btn {
    transition: opacity 0.2s ease;
    transform: translate3d(-50%, 0, 0);
  }
  .zas-cb--leaving {
    transform: translate3d(-50%, 0, 0);
  }
  .zas-cb__btn:hover,
  .zas-cb__btn:active {
    transform: none;
  }
}
