/* ===========================================================
   TheCodeAtlas – Reading Mode PRO
   Universal Edition – CSS
=========================================================== */

/* Floating Button */
#tca-reading-btn {
    position: fixed;
    right: 16px;
    bottom: 70px; /* über dem A11y-Widget */
    z-index: 999999 !important;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    font-size: 22px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Reading Mode Overlay */
html.tca-reading-mode body {
    margin: 0 !important;
    padding: 0 !important;
    background: #f9f5e8 !important;
    color: #1f2937 !important;
    font-size: 1.2em !important;
    line-height: 1.8 !important;
    font-family: Georgia, "Times New Roman", serif !important;
}

/* Dark Theme (Systemabhängig) */
@media (prefers-color-scheme: dark) {
    html.tca-reading-mode body {
        background: #1e1b16 !important;
        color: #f5f2e9 !important;
    }
}

/* Lesespalte */
html.tca-reading-mode body * {
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Navigation, Header, Footer, Sidebar ausblenden */
html.tca-reading-mode header,
html.tca-reading-mode nav,
html.tca-reading-mode footer,
html.tca-reading-mode aside {
    display: none !important;
}

/* Bilder dezenter darstellen */
html.tca-reading-mode img {
    max-width: 100% !important;
    border-radius: 6px !important;
    display: block;
    margin: 1.2em auto !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Buttons, Formulare usw. reduzieren */
html.tca-reading-mode button,
html.tca-reading-mode input,
html.tca-reading-mode select,
html.tca-reading-mode textarea {
    font-size: 1.2em !important;
    padding: 10px !important;
}

/* Info-Leiste oben */
html.tca-reading-mode::before {
    content: "Lesemodus aktiviert – 📖 – TheCodeAtlas Reading Mode PRO";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0ea5e9;
    color: white;
    padding: 6px 12px;
    text-align: center;
    font-weight: bold;
    z-index: 9999999;
    font-family: system-ui, sans-serif;
}

/* Abstand unter der Info-Leiste */
html.tca-reading-mode body {
    padding-top: 50px !important;
}

/* Branding */
html.tca-reading-mode::after {
    content: "Powered by TheCodeAtlas – Reading Mode PRO";
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(0,0,0,0.6);
    z-index: 9999999;
    font-family: system-ui, sans-serif;
}
