/* Cross-page quality layer: accessibility, responsive stability and interaction safety. */
html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body { overflow-wrap: break-word; }
:target { scroll-margin-top: calc(var(--header-height, 88px) + 24px); }
:where(main, section, article, header, footer, nav, div, form, fieldset) { min-width: 0; }

:where(a, button, input, select, textarea, summary) {
    -webkit-tap-highlight-color: rgba(246, 169, 53, .2);
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #151515;
}

:where(input, select, textarea):user-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 2px rgba(180, 35, 24, .14);
}

.rp-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.hero-slider-controls {
    align-items: center;
    gap: 2px;
    bottom: 18px;
}

.hero-slider-controls button {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}

.hero-slider-controls [data-hero-dot]::before {
    position: absolute;
    top: 20px;
    left: 6px;
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, .62);
    content: "";
}

.hero-slider-controls [data-hero-dot].is-active {
    background: transparent;
}

.hero-slider-controls [data-hero-dot].is-active::before {
    background: var(--accent, #f6a935);
}

.nav-dropdown-trigger button {
    min-width: 28px;
    min-height: 28px;
}

.footer-grid a,
.footer-bottom a {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
}

img {
    height: auto;
}

table {
    max-width: 100%;
}

@media (max-width: 900px) {
    .languages-grid,
    .film-grid,
    .quality-grid,
    .final-cta-inner,
    .rp-editorial-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-line {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-line a {
        min-width: 0;
        width: 100%;
    }

    .main-navigation {
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 620px) {
    .language-list {
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .language-list a {
        min-width: 0;
        gap: 8px;
        padding: 12px 9px;
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .form-grid,
    .rp-form-grid,
    .rp-form-grid--personal {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-actions,
    .rp-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .button,
    .rp-form-actions .rp-button {
        width: 100%;
    }
}

@media (forced-colors: active) {
    :where(a, button, input, select, textarea, summary):focus-visible {
        outline: 3px solid Highlight;
        box-shadow: none;
    }

    .service-overlay,
    .hero-shade,
    .founder-shade {
        background: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}


/* Keep intrinsic image dimensions from widening grid tracks. */
.quality-logo {
    min-width: 0;
}

.quality-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


@media (max-width: 900px) {
    .quality-logo img {
        transform: none;
    }
}


/* Shared spam protection for all public forms. */
.rp-turnstile-field {
    width: fit-content;
    max-width: 100%;
    min-height: 65px;
    margin: 20px 0;
}

.rp-turnstile-field .cf-turnstile {
    max-width: 100%;
}

@media (max-width: 480px) {
    .rp-turnstile-field {
        margin-block: 18px;
    }
}


/* Registration labels sit on light surfaces and need the darker brand accent. */
.rp-page-anmeldung .rp-course-offers > header .rp-eyebrow,
.rp-page-anmeldung .rp-registration-steps .rp-eyebrow {
    color: var(--rp-orange-dark);
}

/* Course cards suppress the shared focus ring in their interaction styles. */
.rp-page.rp-page-anmeldung .rp-course-offer-card:focus-visible,
.rp-page.rp-page-anmeldung .rp-course-price-card:focus-visible {
    outline: 3px solid var(--rp-paper);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--rp-black);
}
