/* ═══════════════════════════════════════════
   hej impact – Accessibility v2
   WCAG 2.1 AA
   ═══════════════════════════════════════════ */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--hej-violet, #512D6D);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--hej-red, #AF231C);
    outline-offset: 2px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    margin: 0;
    overflow: visible;
    position: static;
    background: #fff;
    border: 2px solid var(--hej-violet, #512D6D);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 100000;
}

:focus-visible {
    outline: 2px solid var(--hej-violet, #512D6D);
    outline-offset: 2px;
}

@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;
    }
}

@media (prefers-contrast: high) {
    .wiki-badge, .post-tag, .wiki-tag { border: 1px solid currentColor; }
    .service-card, .wiki-card, .kontakt-box { border-width: 2px; }
}

@media (forced-colors: active) {
    .site-header { border-bottom: 2px solid; }
    .wiki-badge { border: 1px solid; }
    a { text-decoration: underline; }
}

@media print {
    .site-header, .site-footer, .site-header__toggle, .wiki-filters,
    .pagination, .skip-link { display: none !important; }
    body { font-size: 12pt; line-height: 1.5; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #555; }
    h1, h2, h3 { page-break-after: avoid; }
    .wiki-meta { border: 1px solid #ccc; }
}
