/*
 * Technical CSS fixes for Physiomotion.
 * Loaded after custom.min.css so corrections remain isolated and reversible.
 */

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

/* Keep linked primary-button text readable despite the global body link color. */
body a.btn-primary {
    color: #000 !important;
}

/* Correct the broken normal bold Droid Serif WOFF2 source from the Agency theme. */
@font-face {
    font-family: 'Droid Serif';
    src: url('/typo3conf/ext/ns_theme_agency/Resources/Public/font/DroidSerif/DroidSerif-Bold.woff2') format('woff2'),
        url('/typo3conf/ext/ns_theme_agency/Resources/Public/font/DroidSerif/DroidSerif-Bold.woff') format('woff');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Use the optimized copy of the intentionally blurred homepage hero image. */
.hero-blur::before,
.ce-frame.frame-hero-blur::before,
.frame-hero-blur::before,
.frame.frame-hero-blur::before {
    background-image: url('/typo3conf/ext/physiomotion/Resources/Public/Images/Startseite-hero.jpg');
}

/* Keep the native, keyboard-accessible portfolio close button visually unchanged. */
.portfolio-modal button.close-modal {
    padding: 0;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
}

.portfolio-modal button.close-modal .lr,
.portfolio-modal button.close-modal .rl {
    display: block;
}

/* Offer keyboard users a visible shortcut to the main page content. */
.content > .skip-link {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 2000;
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid #000;
    border-radius: 0 0 0.25rem 0.25rem;
    background: #fff;
    color: #000 !important;
    font-weight: 700;
    transform: translate(-50%, -150%);
}

.content > .skip-link:focus {
    color: #000 !important;
    transform: translate(-50%, 0);
}

/* Keep the new semantic wrapper from changing the existing top spacing. */
main#main-content > :first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
