/* Lesbarkeit überall (19.11.2026): nur Farben und Kontrast, kein Layout. Wird als letztes Theme-Stylesheet geladen.
   Ziel WCAG AA: 4,5:1 Text, 3:1 große Schrift und Bedienelemente. Runner rot und Catcher gelb bleiben unberührt.
   Ursache der Schwankung: rcr-hero.css setzt --color-secondary auf Creme (1,2:1 auf Weiß) und --color-primary auf helles Türkis (3,2:1),
   style.css auf dunkles Türkis. Je nach Ladereihenfolge der Seite galt das eine oder das andere. */

:root {
    --color-primary: #2A4C4A;        /* Überschriften, Knöpfe, Footer: Weiß darauf 9,4:1 */
    --color-primary-dark: #1D3533;
    --color-secondary: #3A7570;      /* Links, Icons, aktive Tabs: 5,3:1 auf Weiß */
    --color-link: #2F6B67;
    --color-link-hover: #1D3533;
}

/* Fokus sichtbar (Tastatur) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #2F6B67;
    outline-offset: 2px;
}

.site-footer :focus-visible,
.rcr-cta-section :focus-visible,
.rcr-ge-contact-section :focus-visible {
    outline-color: #F8E7C1;
}

/* Inhaltslinks auf hellem Grund: dunkles Türkis, unterstrichen */
.entry-content p a:not(.rcr-button):not(.rcr-social-link),
.entry-content li a:not(.rcr-button):not(.rcr-social-link) {
    color: #2F6B67;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content p a:not(.rcr-button):not(.rcr-social-link):hover,
.entry-content li a:not(.rcr-button):not(.rcr-social-link):hover {
    color: #1D3533;
}

/* Links auf dunklem Grund: Creme (10,7:1 auf #1D3533, 7,7:1 auf #2A4C4A) */
.entry-content [style*="; color: white"] a:not(.rcr-button):not(.rcr-social-link),
.entry-content [style^="color: white"] a:not(.rcr-button):not(.rcr-social-link),
.entry-content [style*="background-color: var(--color-primary)"] a:not(.rcr-button):not(.rcr-social-link),
.rcr-cta-section a:not(.rcr-button):not(.rcr-social-link),
.rcr-ge-contact-section a:not(.rcr-button):not(.rcr-social-link) {
    color: #F8E7C1;
    text-decoration: underline;
}

.entry-content [style*="; color: white"] a:not(.rcr-button):not(.rcr-social-link):hover,
.entry-content [style^="color: white"] a:not(.rcr-button):not(.rcr-social-link):hover,
.entry-content [style*="background-color: var(--color-primary)"] a:not(.rcr-button):not(.rcr-social-link):hover,
.rcr-cta-section a:not(.rcr-button):not(.rcr-social-link):hover,
.rcr-ge-contact-section a:not(.rcr-button):not(.rcr-social-link):hover {
    color: #ffffff;
}

/* Impressum-Kasten: Zwischenüberschriften haben die Farbe inline (Korall, 3,8:1 auf Dunkelgrün) */
.entry-content [style*="background-color: var(--color-primary)"] h2,
.entry-content [style*="background-color: var(--color-primary)"] h3 {
    color: #F8E7C1 !important;
}

/* Footer: dunkler Grund, Überschriften und Hover in Creme statt Korall (Korall auf Dunkelgrün 3,8:1) */
.rcr-footer-col__title,
.rcr-footer-menu li a:hover,
.rcr-footer-menu li a:before,
.rcr-footer-links li a:hover,
.rcr-user-email {
    color: #F8E7C1;
}

.rcr-footer-links li a {
    color: rgba(255, 255, 255, 0.85);
}

.rcr-footer-bottom {
    color: rgba(255, 255, 255, 0.75);
}

.rcr-footer-login-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.rcr-login-error {
    color: #ffb4a8;
}

.rcr-footer-login-form button[type="submit"],
.rcr-admin-links a.rcr-button:hover {
    background-color: #F8E7C1;
    color: #1D3533;
}

/* Abschnitt mit Aufruf: Weiß auf hellem Grünverlauf war 1,6:1, jetzt dunkel */
.rcr-cta-section {
    background: linear-gradient(135deg, #2A4C4A, #336B66);
}

.rcr-cta-section h2 {
    color: #F8E7C1;
}

/* Graue Hilfstexte, Status und Kleingedrucktes (öffentliche Seiten) */
.rcr-month-grid__header,
.rcr-ge-form__optional,
.rcr-ge-compare__cell--left,
.rcr-slot-card__duration {
    color: #6b6b6b;
}

.rcr-event-availability-available,
.rcr-slot-card__status--available {
    color: #0a7a24;
}

.rcr-event-availability-limited,
.rcr-slot-card__status--limited {
    color: #a85400;
}

.rcr-event-status-completed,
.rcr-event-completed-notice {
    color: #5f6368;
}

.rcr-ge-form__required {
    color: #b42318;
}

/* ---------- L1b (19.11., Live-Pruefung) ---------- */

/* Hero und Verlaufsflaechen auf Mint (#A3D6C6 bis #56887D) trugen Creme und Weiss mit 1,3 bis 2:1.
   Dunkleres Gruen: Creme darauf 5,0:1 (Start) bis 7,7:1, Weiss 6,1:1 bis 9,4:1. Nicht auf den Spiel-Seiten (die haben eigene Flaechen in rcr-lesbarkeit-spiele.css). */
body:not(.page-template-template-rcr-spielhistorie):not(.page-template-template-rcr-spiel-details) {
    --color-gradient-start: #336B66;
    --color-gradient-end: #2A4C4A;
}

/* Teambuilding-Hero: Koralle auf Gruen war 1,3:1. Titel helles Koralle (3,6:1, grosse Schrift), Etikett Creme, Lichtfleck schwaecher */
.rcr-ge-hero__title {
    color: #FFB59A;
}

.rcr-ge-hero__eyebrow {
    color: #F8E7C1;
}

.rcr-ge-hero__overlay {
    background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.04), transparent 60%);
}

/* Umrandete Knoepfe auf hellem Grund (Creme auf Weiss war 1,2:1) */
.rcr-events-filter .rcr-button--outline,
.rcr-community-feedback .rcr-button--outline {
    color: #2A4C4A;
    border-color: #2A4C4A;
}

.rcr-events-filter .rcr-button--outline:hover,
.rcr-community-feedback .rcr-button--outline:hover {
    background-color: #2A4C4A;
    color: #ffffff;
}

/* Kalender: vergangene Tage nicht mehr per Deckkraft 0,3 (1,7:1), sondern grauer Ton 4,5:1; normale Tage dunkler */
.rcr-month-day {
    color: #444444;
}

.rcr-month-day[style*="opacity"] {
    opacity: 1 !important;
    color: #767676;
}

/* Social-Symbole im Anleitungs-Abschluss: rcr-events.css (dort definiert) laedt auf der Anleitung nicht, die Links erbten das dunkle Tuerkis auf dunklem Grund */
.rcr-cta-section .rcr-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.rcr-cta-section .rcr-social-link {
    color: #F8E7C1;
    font-size: 1.5rem;
    text-decoration: none;
}

.rcr-cta-section .rcr-social-link:hover {
    color: #ffffff;
}

/* /en/how-to-play/: volle Breite wie /anleitung/ (dort ast-page-builder-template, hier ast-plain-container mit 1200-px-Kasten) */
body.page-template-template-rcr-anleitung-en .site-content > .ast-container {
    max-width: 100%;
    padding: 0;
}

body.page-template-template-rcr-anleitung-en .site-content #primary {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Spiel-Details auf dem Handy: der feste Astra-Knopf "nach oben" (#ast-scroll-top) verdeckte das Ende der Zeitbeschriftung.
   Kleiner, in die Ecke, leicht durchscheinend; am Seitenende Platz darunter. */
@media (max-width: 768px) {
    body.page-template-template-rcr-spiel-details #ast-scroll-top {
        width: 40px;
        height: 40px;
        right: 8px;
        bottom: 8px;
        opacity: 0.85;
    }

    body.page-template-template-rcr-spiel-details .rcr-spiel-details-wrapper {
        padding-bottom: 64px;
    }
}

/* L1c (Live-Pruefung 19:00): auf dem dunkleren Hero blieben Untertitel, Teambuilding-Outline-Knopf und "Mehr entdecken" dunkel */
body:not(.home):not(.page-template-template-rcr-spielhistorie):not(.page-template-template-rcr-spiel-details) .rcr-hero .rcr-hero__subtitle { color: #FFFFFF; }
body:not(.home):not(.page-template-template-rcr-spielhistorie):not(.page-template-template-rcr-spiel-details) .rcr-hero .rcr-scroll-indicator,
body:not(.home):not(.page-template-template-rcr-spielhistorie):not(.page-template-template-rcr-spiel-details) .rcr-hero .rcr-scroll-indicator__text { color: #F8E7C1; }
body:not(.home):not(.page-template-template-rcr-spielhistorie):not(.page-template-template-rcr-spiel-details) .rcr-hero .rcr-scroll-indicator__icon { border-color: #F8E7C1; }
.rcr-ge-hero .rcr-button--outline { color: #F8E7C1; border-color: #F8E7C1; }
.rcr-ge-hero .rcr-button--outline:hover,
.rcr-ge-hero .rcr-button--outline:focus-visible { background: #F8E7C1; color: #2A4C4A; }
body:not(.home):not(.page-template-template-rcr-spielhistorie):not(.page-template-template-rcr-spiel-details) .rcr-hero .rcr-scroll-indicator__icon::before { background: #F8E7C1; }
