/* Shared accessibility, consent and footer styles for every dkvb.dev page. */

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

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent, #00e5a0);
  outline-offset: 3px;
}
.service-card:focus-visible, .project-card:focus-visible { border-radius: 12px; }

/* Form consent */
.form-consent { border: 0; padding: 0; margin: 0.4rem 0 1.4rem; display: grid; gap: 0.8rem; }
.consent-row {
  display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer;
  font-size: 0.82rem; line-height: 1.55; color: var(--text, #e8e8f0);
  text-transform: none; letter-spacing: normal; font-family: inherit;
}
.consent-row input[type="checkbox"] {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 0.1rem 0 0; padding: 0;
  accent-color: var(--accent, #00e5a0); cursor: pointer;
}
.consent-row a { color: var(--accent, #00e5a0); text-decoration: underline; text-underline-offset: 3px; }
.consent-req { color: var(--muted, #8e8ea4); }
.pricing-note a { color: var(--accent, #00e5a0); text-decoration: underline; text-underline-offset: 3px; }

/* Footer legal row */
footer { flex-wrap: wrap; }
.footer-links { flex-wrap: wrap; }
.footer-legal {
  flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
  padding-top: 1.2rem; margin-top: 0.4rem; border-top: 1px solid var(--border, #2a2a3a);
}
.footer-legal a, .footer-legal button {
  font-family: var(--mono, 'DM Mono', monospace); font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--muted, #8e8ea4); text-decoration: none; background: none; border: 0; padding: 0.3rem 0; cursor: pointer;
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--accent, #00e5a0); }
@media (max-width: 768px) { .footer-legal { justify-content: center; } }

/* Cookie consent banner */
.cc-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 10001;
  max-width: 560px; margin-left: auto;
  background: #111118; color: #e8e8f0; border: 1px solid #2a2a3a; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55); padding: 1.3rem 1.4rem;
  font-size: 0.86rem; line-height: 1.55;
}
.cc-banner[hidden] { display: none; }
.cc-banner h2 { font-family: var(--heading, 'Syne', sans-serif); font-size: 1.05rem; margin: 0 0 0.45rem; }
.cc-banner p { margin: 0 0 1rem; color: #c4c4d4; }
.cc-banner a { color: var(--accent, #00e5a0); text-decoration: underline; text-underline-offset: 3px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cc-actions button {
  flex: 1 1 160px; padding: 0.75rem 1rem; border-radius: 8px; cursor: pointer;
  font-family: var(--mono, 'DM Mono', monospace); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--accent, #00e5a0);
}
.cc-accept { background: var(--accent, #00e5a0); color: #0a0a0f; }
.cc-essential { background: transparent; color: #e8e8f0; }
.cc-actions button:hover { filter: brightness(1.12); }
.cc-actions button[aria-pressed="true"]::before { content: "\2713\00a0"; }
.cc-status { margin: -0.4rem 0 1rem; font-size: 0.78rem; color: var(--accent, #00e5a0); }
.cc-status:empty { display: none; }
.cc-banner.cc-attn { animation: cc-attn 0.6s ease; }
@keyframes cc-attn {
  0% { transform: translateY(16px); opacity: 0.4; }
  60% { transform: translateY(-4px); opacity: 1; box-shadow: 0 0 0 3px var(--accent, #00e5a0), 0 20px 60px rgba(0,0,0,0.55); }
  100% { transform: none; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
