/* ============================================================
   Cookie-Banner – nutzt die globalen Tokens aus style.css
   ============================================================ */

.shk-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  display: flex; justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  pointer-events: none;
  animation: shkConsentIn 0.32s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes shkConsentIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.shk-consent-box {
  pointer-events: auto;
  width: 100%; max-width: 640px;
  background: #fff;
  border: 1px solid var(--border, rgba(176,170,154,0.4));
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 18px 60px rgba(46,64,86,0.22), 0 2px 8px rgba(46,64,86,0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.shk-consent-title {
  font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--text-primary, #1a2b3d); margin: 0 0 8px;
}
.shk-consent-title:focus { outline: none; }

.shk-consent-text {
  font-size: 0.85rem; line-height: 1.6;
  color: var(--text-secondary, #3a5068); margin: 0;
}
.shk-consent-text a { color: #8e3b45; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── Optionen ── */
.shk-consent-options {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border, rgba(176,170,154,0.4));
  display: flex; flex-direction: column; gap: 12px;
}
.shk-consent-options[hidden] { display: none; }

.shk-consent-opt {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 0.82rem; line-height: 1.5;
  color: var(--text-secondary, #3a5068); cursor: pointer;
}
.shk-consent-opt input {
  width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: #8e3b45; cursor: pointer;
}
.shk-consent-opt strong {
  display: block; color: var(--text-primary, #1a2b3d);
  font-size: 0.86rem; font-weight: 700; margin-bottom: 1px;
}
.shk-consent-opt--fixed { cursor: default; opacity: 0.75; }
.shk-consent-opt--fixed input { cursor: not-allowed; }

/* ── Buttons ── */
.shk-consent-actions {
  display: flex; gap: 10px; margin-top: 18px;
}
.shk-consent-btn {
  flex: 1 1 0; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 20px; border-radius: 10px;
  font-family: inherit; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
/* Ablehnen muss genauso leicht sein wie Zustimmen -> gleiche Größe */
.shk-consent-btn--reject {
  background: #fff; color: var(--text-primary, #1a2b3d);
  border: 1.5px solid rgba(46,64,86,0.3);
}
.shk-consent-btn--reject:hover { background: rgba(46,64,86,0.05); border-color: rgba(46,64,86,0.5); }
.shk-consent-btn--accept {
  background: linear-gradient(135deg, #8e3b45, #b04e5a);
  color: #fff; border: none;
  box-shadow: 0 4px 16px rgba(142,59,69,0.28);
}
.shk-consent-btn--accept:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(142,59,69,0.36); }
.shk-consent-btn--save {
  width: 100%; margin-top: 4px;
  background: #2e4056; color: #fff; border: none;
}
.shk-consent-btn--save:hover { background: #3a5068; }

.shk-consent-settings {
  display: block; margin: 12px auto 0;
  background: none; border: none; padding: 8px 4px;
  font-family: inherit; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted, #6b6459); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.shk-consent-settings:hover { color: #8e3b45; }

.shk-consent-btn:focus-visible,
.shk-consent-settings:focus-visible,
.shk-consent-opt input:focus-visible {
  outline: 3px solid rgba(46,64,86,0.6);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .shk-consent { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .shk-consent-box { padding: 18px 18px 20px; border-radius: 14px; }
  .shk-consent-actions { flex-direction: column-reverse; }
  .shk-consent-text { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .shk-consent { animation: none; }
  .shk-consent-btn--accept:hover { transform: none; }
}
