/* Datei: /struktur/consent.css
   Zweck:
   - Styles für das barrierefreie Consent-Banner (Overlay + Modal)
   - Mobile-first, hohe Kontraste, klare Fokuszustände
*/

:root{
  --shs-consent-bg: rgba(0, 0, 0, 0.55);
  --shs-consent-surface: #0b1220;
  --shs-consent-surface-2: #111a2e;
  --shs-consent-text: #f3f6ff;
  --shs-consent-muted: rgba(243, 246, 255, 0.78);
  --shs-consent-border: rgba(255, 255, 255, 0.14);
  --shs-consent-primary: #22c55e;
  --shs-consent-primary-dark: #16a34a;
  --shs-consent-focus: #93c5fd;
  --shs-consent-radius: 18px;
  --shs-consent-shadow: 0 24px 80px rgba(0,0,0,.55);
}

/* Scroll sperren, wenn Banner offen */
body.shs-consent-lock{
  overflow: hidden;
}

.shs-consent-wrap{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* dunkles Overlay */
.shs-consent-overlay{
  position: absolute;
  inset: 0;
  background: var(--shs-consent-bg);
  backdrop-filter: blur(2px);
}

/* Modal */
.shs-consent-modal{
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  background: linear-gradient(180deg, var(--shs-consent-surface), var(--shs-consent-surface-2));
  color: var(--shs-consent-text);
  border: 1px solid var(--shs-consent-border);
  border-radius: var(--shs-consent-radius);
  box-shadow: var(--shs-consent-shadow);
  padding: 16px;
  outline: none;
}

.shs-consent-title{
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.shs-consent-desc{
  margin: 0 0 10px;
  color: var(--shs-consent-muted);
  line-height: 1.45;
}

.shs-consent-link{
  display: inline-block;
  color: var(--shs-consent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 14px;
}

.shs-consent-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shs-consent-btn{
  appearance: none;
  border: 1px solid var(--shs-consent-border);
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: transform .05s ease, background-color .2s ease, border-color .2s ease;
}

.shs-consent-btn:active{
  transform: translateY(1px);
}

.shs-consent-btn--secondary{
  background: transparent;
  color: var(--shs-consent-text);
}

.shs-consent-btn--primary{
  background: var(--shs-consent-primary);
  border-color: rgba(0,0,0,0.12);
  color: #05210f;
}

.shs-consent-btn--primary:hover{
  background: var(--shs-consent-primary-dark);
}

/* Fokus sichtbar (wichtig für Tastatur) */
.shs-consent-modal :focus-visible{
  outline: 3px solid var(--shs-consent-focus);
  outline-offset: 3px;
  border-radius: 10px;
}

.shs-consent-small{
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--shs-consent-muted);
}

/* Desktop: Modal mittig */
@media (min-width: 720px){
  .shs-consent-modal{
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    padding: 20px;
  }

  .shs-consent-title{
    font-size: 1.25rem;
  }
}
