/* Archithek Frontend — Consent-Banner & Karten-Platzhalter */

#consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 100000;
  width: min(680px, calc(100vw - 2rem));
  background: var(--color-surface, #fffdf8);
  color: var(--color-text, #1a1410);
  border: 1px solid rgba(26, 20, 16, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 20, 16, 0.22);
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

#consent-banner[hidden] {
  display: none;
}

.consent-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.consent-banner-text {
  margin: 0 0 0.8rem;
  opacity: 0.85;
}

.consent-banner-details {
  margin: 0 0 0.8rem;
  padding: 0.7rem 0.85rem;
  background: rgba(26, 20, 16, 0.045);
  border-radius: 8px;
  font-size: 0.86rem;
}

.consent-banner-details ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}

.consent-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.consent-btn {
  appearance: none;
  border-radius: 8px;
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(26, 20, 16, 0.28);
  background: transparent;
  color: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.consent-btn--primary {
  background: var(--color-accent, #a85f44);
  border-color: var(--color-accent, #a85f44);
  color: #fff;
}

.consent-btn--primary:hover {
  filter: brightness(1.08);
}

.consent-btn--ghost:hover {
  background: rgba(26, 20, 16, 0.06);
}

.consent-banner-more {
  margin-left: auto;
  font-size: 0.82rem;
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.75;
  padding: 0.3rem 0;
}

/* ── Karten-Platzhalter ── */

[data-consent-required].consent-blocked {
  position: relative;
  min-height: 220px;
}

.consent-placeholder {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(26, 20, 16, 0.03) 0 12px, rgba(26, 20, 16, 0.06) 12px 24px),
    var(--color-surface, #f4efe6);
  border-radius: inherit;
}

.consent-placeholder-box {
  max-width: 420px;
  margin: 1rem;
  padding: 1.2rem 1.4rem;
  text-align: center;
  background: var(--color-surface, #fffdf8);
  border: 1px solid rgba(26, 20, 16, 0.14);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(26, 20, 16, 0.16);
  font-size: 0.88rem;
  line-height: 1.5;
}

.consent-placeholder-icon {
  font-size: 2rem;
  opacity: 0.6;
  display: block;
  margin: 0 auto 0.4rem;
}

.consent-placeholder-text {
  margin: 0 0 0.85rem;
  opacity: 0.85;
}

.consent-placeholder-remember {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  opacity: 0.75;
  cursor: pointer;
}

@media (max-width: 560px) {
  #consent-banner {
    bottom: 0.5rem;
    padding: 0.9rem 1rem;
  }

  .consent-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-banner-more {
    margin-left: 0;
  }
}
