/* Laufhaus Valentin: accessibility fixes and cookie banner. Loaded after the theme CSS. */

/* ---------------------------------------------------------------- contrast (WCAG AA 4.5:1) */
/* rgb(204,66,189) reached only ~4.1:1 on white and ~3.3:1 on the footer background. */
.ci-color,
.footer a {
    color: rgb(160, 40, 150) !important;
}
/* Profile info box (pink gradient): white text and links, buttons outlined so they stand out. */
.is-light-text .ci,
.is-light-text .ci a,
.is-light-text a.ci {
    color: #fff !important;
}
.is-light-text a.ci {
    text-decoration: underline;
}
.is-light-text a[data-bg] {
    border-color: #fff !important;
}
a[data-bg="rgb(204, 66, 189)"] {
    background-color: rgb(160, 40, 150) !important;
}
a[data-bg="rgb(204, 66, 189)"]:hover,
a[data-bg="rgb(204, 66, 189)"]:focus-visible {
    background-color: rgb(140, 26, 143) !important;
}

/* ---------------------------------------------------------------- focus + skip link */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible {
    outline: 3px solid #1a1a1a !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #fff;
}
.skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 100000;
    padding: 10px 16px;
    background: #fff;
    color: #1a1a1a !important;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
}
.skip-link:focus {
    top: 8px;
}
#is-menu-toggle {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------------------------------------------------------------- cookie banner */
.lv-cc {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 99999;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 420px;
    padding: 20px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
}
.lv-cc[hidden],
.lv-cc-fab[hidden],
.lv-cc [hidden] {
    display: none !important;
}
.lv-cc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.lv-cc-icon {
    display: inline-flex;
    color: rgb(160, 40, 150);
}
.lv-cc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.lv-cc-text {
    margin: 0 0 14px;
}
.lv-cc-text a {
    color: rgb(160, 40, 150);
    text-decoration: underline;
}
.lv-cc-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 14px;
    padding: 12px;
    background: rgb(248, 236, 250);
    border-radius: 10px;
}
.lv-cc-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}
.lv-cc-settings input {
    width: 18px;
    height: 18px;
    accent-color: rgb(160, 40, 150);
}
.lv-cc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lv-btn {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 10px 14px;
    border: 2px solid rgb(160, 40, 150);
    border-radius: 8px;
    background: #fff;
    color: rgb(160, 40, 150);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.lv-btn:hover {
    background: rgb(248, 236, 250);
}
.lv-btn-primary {
    background: rgb(160, 40, 150);
    color: #fff;
}
.lv-btn-primary:hover {
    background: rgb(140, 26, 143);
}
.lv-btn-link {
    flex: 0 0 100%;
    border-color: transparent;
    background: transparent;
    text-decoration: underline;
}
.lv-cc-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(160, 40, 150);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.lv-cc-fab:hover {
    background: rgb(140, 26, 143);
}

/* ---------------------------------------------------------------- screen-reader-only text */
.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;
}
