/* ==========================================
   ASPHATEC – consent.css
   Cookie-/Einwilligungs-Banner (DSGVO/TTDSG)
   ========================================== */

/* ── Banner (unten, nicht blockierend, überdeckt Impressum nicht dauerhaft) ── */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--inverse-canvas, #161616);
  color: var(--inverse-ink, #fff);
  border-top: 3px solid var(--primary, #007CB0);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  padding: 24px 20px;
  transform: translateY(110%);
  transition: transform 0.35s ease;
  font-family: var(--font, 'IBM Plex Sans', Arial, sans-serif);
  letter-spacing: 0.16px;
}
.consent-banner.is-open { transform: translateY(0); }

.consent-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.consent-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.consent-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--inverse-ink-muted, #c6c6c6);
  max-width: 760px;
}
.consent-text a {
  color: #fff;
  text-decoration: underline;
}

/* ── Kategorien (nur bei „Einstellungen") ── */
.consent-details {
  display: none;
  margin: 20px 0 4px;
  border-top: 1px solid var(--inverse-surface-1, #262626);
  padding-top: 16px;
}
.consent-details.is-open { display: block; }
.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}
.consent-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary, #007CB0);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-option input[disabled] { cursor: not-allowed; opacity: 0.7; }
.consent-option-label { font-size: 14px; }
.consent-option-label strong { display: block; font-weight: 600; margin-bottom: 2px; }
.consent-option-label span { color: var(--inverse-ink-muted, #c6c6c6); font-size: 13px; }

/* ── Buttons ── */
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.consent-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
/* „Alle akzeptieren" und „Ablehnen" gleichwertig (kein Dark Pattern) */
.consent-btn--accept { background: var(--primary, #007CB0); color: #fff; }
.consent-btn--accept:hover { background: var(--primary-hover, #005a84); }
.consent-btn--reject { background: transparent; color: #fff; border-color: #6f6f6f; }
.consent-btn--reject:hover { border-color: #fff; }
.consent-btn--save { background: transparent; color: #fff; border-color: #6f6f6f; }
.consent-btn--save:hover { border-color: #fff; }
.consent-btn--settings {
  background: transparent;
  color: var(--inverse-ink-muted, #c6c6c6);
  border: none;
  text-decoration: underline;
  padding: 12px 8px;
  margin-left: auto;
}
.consent-btn--settings:hover { color: #fff; }

/* ── Reopen-Button (Widerruf jederzeit möglich) ── */
.consent-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline, #e0e0e0);
  background: #fff;
  color: var(--primary, #007CB0);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.consent-reopen.is-visible { display: flex; }
.consent-reopen svg { width: 22px; height: 22px; }
.consent-reopen:hover { background: var(--surface-1, #f4f4f4); }

/* ── Platzhalter für geblockte Inhalte (Google Maps) ── */
.consent-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface-1, #f4f4f4);
  border: 1px dashed var(--surface-2, #e0e0e0);
  padding: 32px 24px;
  min-height: 240px;
}
.maps-embed-wrapper .consent-placeholder { height: 380px; }
.consent-placeholder-inner { max-width: 420px; }
.consent-placeholder-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #161616);
  margin-bottom: 8px;
}
.consent-placeholder-text {
  font-size: 14px;
  color: var(--ink-muted, #525252);
  line-height: 1.6;
  margin-bottom: 18px;
}
.consent-placeholder-text a { color: var(--primary, #007CB0); }
.consent-load-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  padding: 12px 22px;
  background: var(--primary, #007CB0);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.consent-load-btn:hover { background: var(--primary-hover, #005a84); }

@media (max-width: 640px) {
  .consent-banner { padding: 18px 16px; }
  .consent-actions { flex-direction: column; }
  .consent-btn { width: 100%; }
  .consent-btn--settings { margin-left: 0; order: -1; }
  .maps-embed-wrapper .consent-placeholder { height: 260px; }
}
