/* Cookie-Banner und Einwilligung. Auf allen öffentlichen Seiten außer 404.html. */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(197,164,103,0.28);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  border-radius: 18px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text, #1A1A1A);
}

.cookie-banner.show {
  display: block;
  animation: fadeInUp 0.35s ease;
}

.cookie-banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.cookie-copy {
  flex: 1;
  min-width: 0;
}

.cookie-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text, #876933);
  margin-bottom: 6px;
  font-weight: 600;
}

.cookie-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: 1px;
  font-size: 1.35rem;
  color: var(--text, #1A1A1A);
  margin-top: 0;
  margin-bottom: 6px;
  line-height: 1.15;
}

.cookie-text {
  color: var(--muted, #666666);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 760px;
  margin: 0;
}

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

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d9d4c8;
  background: #fff;
  color: var(--text, #1A1A1A);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold, #C5A467);
}

.cookie-btn-primary {
  background: var(--gold, #C5A467);
  border-color: var(--gold, #C5A467);
  color: #1A1A1A;
}

.cookie-btn-primary:hover {
  background: var(--gold-hover, #9A7428);
  border-color: var(--gold-hover, #9A7428);
  color: #1A1A1A;
}

.cookie-settings {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ebe7de;
}

.cookie-settings.show {
  display: block;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #f1eee7;
}

.cookie-option:first-child {
  border-top: 0;
  padding-top: 0;
}

.cookie-option strong {
  display: block;
  color: var(--text, #1A1A1A);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.cookie-option span {
  display: block;
  color: var(--muted, #666666);
  font-size: 0.84rem;
  line-height: 1.55;
}

.cookie-switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d8d5cd;
  position: relative;
  flex-shrink: 0;
  margin-top: 3px;
}

.cookie-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.cookie-switch.active {
  background: var(--gold, #C5A467);
}

.cookie-switch.active::after {
  left: 23px;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 8px;
    padding: 12px;
    border-radius: 16px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .cookie-kicker,
  .cookie-title {
    display: none;
  }

  .cookie-text {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .cookie-actions {
    width: 100%;
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .cookie-btn {
    width: 100%;
    min-height: 42px;
    padding: 6px 8px;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .cookie-option {
    align-items: center;
  }
}
