/*
Theme Name: Custom Theme
Theme URI: https://www.phillip-lurgenstein.de/WP-Themes/custom-game-theme
Author: Todsuende_Des_Zorns
Author URI: https://www.phillip-lurgenstein.de/
Description: Custom Game Theme for Shady Devil X - Ein dynamisches, responsives WordPress-Theme für Gaming-Content. Mit Customizer-Unterstützung für Farbanpassungen.
Version: 1.0.12
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-game-theme
Domain Path: /languages
Tags: gaming, responsive, custom-colors, custom-menu, featured-images, theme-options, two-columns, right-sidebar

Requires PHP: 7.4
Requires at least: 5.8
Tested up to: 6.4

Das Theme-Bild befindet sich unter: assets/images/Theme.png
*/

/* ====================================================
   CUSTOM PROPERTIES - können über Customizer angepasst werden
   ==================================================== */
:root {
    --primary-color: #CA661A;
    --primary-color-rgb: 202, 102, 26;
    --secondary-color: #8B4513;
    --secondary-color-rgb: 139, 69, 19;
    --accent-color: #FF4500;
    --accent-color-rgb: 255, 69, 0;
    --flame-yellow: #FFA500;
    --flame-yellow-rgb: 255, 165, 0;
    --flame-red: #FF4500;
    --flame-red-rgb: 255, 69, 0;
    --dark-bg: #0e0e10;
    --dark-bg-rgb: 14, 14, 16;
    --darker-bg: #18181b;
    --darker-bg-rgb: 24, 24, 27;
    --light-text: #efeff1;
    --gray-text: #adadb8;
    --card-bg: #1f1f23;
}

/* ====================================================
   BASE STYLES
   ==================================================== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--light-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Globale Heading-Größen */
h1, .h1 { font-size: 5rem; font-weight: 700; color: var(--light-text); }
h2, .h2 { font-size: 3rem; font-weight: 700; color: var(--light-text); }
h3, .h3 { font-size: 2rem; font-weight: 600; color: var(--light-text); }
h4, .h4 { font-size: 1.75rem; font-weight: 600; color: var(--light-text); }
h5, .h5 { font-size: 1.25rem; font-weight: 600; color: var(--light-text); }
h6, .h6 { font-size: 1rem; font-weight: 600; color: var(--gray-text); }

/* Fixierter Farbverlaufs-Overlay (Hintergrundbild kommt vom WordPress Customizer) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(var(--primary-color-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--accent-color-rgb), 0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(var(--dark-bg-rgb), 0.88) 0%, rgba(var(--darker-bg-rgb), 0.88) 100%);
    background-size: auto, auto, auto;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

/* Main content wrapper: flex-grow pushes footer to bottom */
body > main,
body > .container {
    flex: 1 0 auto;
}

/* Ensure the main content area expands */
main {
    flex: 1 0 auto;
}

.container,
.wp-block-group__inner-container {
    position: relative;
    z-index: 1;
}

/* WordPress editor content alignment */
.alignfull {
    margin-left: calc( -100vw / 2 + 100% / 2 );
    margin-right: calc( -100vw / 2 + 100% / 2 );
    max-width: 100vw;
    width: 100vw;
}

.alignwide {
    margin-left: calc( -25% + 25vw );
    margin-right: calc( -25% + 25vw );
    max-width: 150vw;
    width: auto;
}

/* ====================================================
   NAVIGATION
   ==================================================== */
.navbar {
    background: var(--darker-bg) !important;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-brand-tagline {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--gray-text);
    text-transform: none;
    letter-spacing: 1px;
}

.navbar-brand:hover .navbar-brand-title {
    color: var(--flame-yellow) !important;
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.6);
}

.navbar-brand img,
.custom-logo {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    color: var(--flame-yellow) !important;
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.6);
}

.navbar-brand:hover img,
.custom-logo:hover {
    transform: rotate(5deg) scale(1.1);
}

/* WordPress Menu Styling */
#primary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

#primary-menu li {
    position: relative;
}

#primary-menu .nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    text-decoration: none;
}

#primary-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--flame-yellow), var(--primary-color), var(--flame-red));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

#primary-menu .nav-link:hover::after,
#primary-menu .nav-link.current-menu-item::after,
#primary-menu .current_page_item .nav-link::after {
    width: 70%;
}

#primary-menu .nav-link:hover,
#primary-menu .nav-link.current-menu-item,
#primary-menu .current_page_item .nav-link {
    color: var(--primary-color) !important;
}

/* Menu Item Icons (Font Awesome im Menü) */
#primary-menu .menu-item-icon {
    margin-right: 6px;
    font-size: 0.9em;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

#primary-menu .nav-link:hover .menu-item-icon,
#primary-menu .nav-link.current-menu-item .menu-item-icon,
#primary-menu .current_page_item .nav-link .menu-item-icon {
    color: var(--flame-yellow);
    transform: scale(1.15);
}

#primary-menu .nav-link.current-menu-item,
#primary-menu .current_page_item .nav-link {
    background: rgba(var(--primary-color-rgb), 0.1);
}

/* Dropdown Submenus */
#primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--darker-bg);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 1000;
}

#primary-menu li:hover > .sub-menu,
#primary-menu li.focus > .sub-menu {
    display: block;
}

#primary-menu .sub-menu .nav-link {
    padding: 8px 20px !important;
    margin: 0;
    border-radius: 0;
}

#primary-menu .sub-menu .nav-link::after {
    display: none;
}

#primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* ====================================================
   HEADERS
   ==================================================== */
.hero-header,
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 50%, var(--flame-red) 100%);
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.5);
    padding: 6rem 0 !important;
}

/* ====================================================
   SECTION TITLES
   ==================================================== */
.section-title {
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--flame-yellow), var(--primary-color), var(--flame-red));
    border-radius: 2px;
}

/* ====================================================
   CARDS
   ==================================================== */
.card {
    background: var(--card-bg) !important;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2) !important;
    color: var(--light-text) !important;
    transition: all 0.3s ease;
}

.card.border-flame {
    border: 2px solid var(--primary-color) !important;
}

.card.bg-gradient {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(var(--primary-color-rgb), 0.15) 100%) !important;
}

.card-text,
.card-text .text-muted {
    color: var(--gray-text) !important;
}

/* ====================================================
   PROFILE IMAGE
   ==================================================== */
.profile-image-container {
    display: inline-block;
    position: relative;
}

.profile-image,
.profile-image-container img.wp-post-image,
.profile-image-container img.attachment-post-thumbnail {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.5);
    object-fit: contain;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, var(--flame-yellow), var(--primary-color), var(--flame-red));
    padding: 5px;
    will-change: transform;
}

.profile-image:hover,
.profile-image-container img:hover {
    transform: scale(1.05);
}

.profile-image-container.large .profile-image,
.profile-image-container.large img {
    width: 350px;
    height: 350px;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn-flame,
.wp-block-button__link {
    background: linear-gradient(135deg, var(--flame-yellow) 0%, var(--primary-color) 50%, var(--flame-red) 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    will-change: transform;
    display: inline-block;
    text-decoration: none;
}

.btn-flame:hover,
.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.6);
    color: white !important;
}

/* ====================================================
   SOCIAL CARDS
   ==================================================== */
.social-card {
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
    cursor: pointer;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
}

.social-card .card-body {
    padding: 20px;
}

/* Social Media Specific Colors */
.social-twitch:hover {
    border-color: #9146ff !important;
    background: rgba(145, 70, 255, 0.1) !important;
}

.social-youtube:hover {
    border-color: #ff0000 !important;
    background: rgba(255, 0, 0, 0.1) !important;
}

.social-instagram:hover {
    border-color: #e4405f !important;
    background: rgba(228, 64, 95, 0.1) !important;
}

.social-tiktok:hover {
    border-color: #00f2ea !important;
    background: rgba(0, 242, 234, 0.1) !important;
}

.social-discord:hover {
    border-color: #5865f2 !important;
    background: rgba(88, 101, 242, 0.1) !important;
}

.social-patreon:hover {
    border-color: #ff424d !important;
    background: rgba(255, 66, 77, 0.1) !important;
}

.social-kofi:hover {
    border-color: #ff5e5b !important;
    background: rgba(255, 94, 91, 0.1) !important;
}

/* ====================================================
   FEATURE CARDS
   ==================================================== */
.feature-card {
    background: var(--card-bg) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.text-flame {
    color: var(--primary-color) !important;
}

/* ====================================================
   GOAL CARDS
   ==================================================== */
.goal-card {
    background: var(--card-bg) !important;
    border-left: 4px solid var(--primary-color) !important;
    transition: all 0.3s ease;
}

.goal-card:hover {
    transform: translateX(5px);
    box-shadow: -3px 3px 15px rgba(var(--primary-color-rgb), 0.25);
}

.goal-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
}

/* ====================================================
   FOOTER
   ==================================================== */
footer,
.site-footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.3);
    color: var(--gray-text);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

@media (max-width: 991.98px) {
    footer,
    .site-footer {
        position: static;
    }

    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav-wrapper {
        justify-content: center;
    }

    /* Mobile: Footer-Links als normale Links, nicht als Buttons */
    .footer-btn,
    .footer-btn:hover {
        display: inline;
        padding: 2px 0;
        font-size: 0.85rem;
        font-weight: 400;
        color: var(--gray-text) !important;
        background: none !important;
        border: none !important;
        border-radius: 0;
        box-shadow: none !important;
        transform: none !important;
    }

    .footer-nav-list {
        gap: 0 12px;
        justify-content: center;
    }

    .footer-nav-list li:not(:last-child)::after {
        content: '·';
        margin-left: 12px;
        color: var(--gray-text);
        opacity: 0.5;
    }

    .footer-nav-list .current-menu-item .footer-btn {
        color: var(--primary-color) !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Footer Bottom Row: Copyright links, Buttons rechts */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    margin: 0;
}

/* Footer Navigation – Buttons & Flex-Anordnung */
.footer-nav-wrapper {
    display: flex;
    justify-content: flex-end;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    /* Standard: links angeordnet */
    /* Füge im Menü-Editor die CSS-Klasse "ms-auto" hinzu, um den Button nach rechts zu schieben */
}

/* Footer-Button-Styling */
.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-text) !important;
    background: rgba(var(--primary-color-rgb), 0.12);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    color: #fff !important;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 14px rgba(var(--primary-color-rgb), 0.5);
    transform: translateY(-2px);
}

.footer-btn .menu-item-icon {
    font-size: 0.95em;
    transition: transform 0.3s ease;
}

.footer-btn:hover .menu-item-icon {
    transform: scale(1.15);
}

/* Aktiver Footer-Button */
.footer-nav-list .current-menu-item .footer-btn {
    color: #fff !important;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.4);
}

/* ====================================================
   GAME STYLES (Games Page Plugin Support)
   ==================================================== */
.game-accordion-item {
    background: var(--card-bg) !important;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2) !important;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
}

.game-accordion-item .accordion-button {
    background: var(--card-bg) !important;
    color: var(--light-text) !important;
    padding: 20px;
    border: none !important;
    box-shadow: none !important;
}

.game-accordion-item .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--card-bg), rgba(var(--primary-color-rgb), 0.1)) !important;
    border-bottom: 2px solid var(--primary-color) !important;
}

.game-accordion-item .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(56%) sepia(68%) saturate(1357%) hue-rotate(346deg) brightness(95%) contrast(90%);
}

.game-accordion-item .accordion-button:hover {
    background: rgba(var(--primary-color-rgb), 0.05) !important;
}

.game-cover {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-accordion-item .accordion-body {
    background: var(--card-bg) !important;
    color: var(--gray-text) !important;
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.game-accordion-item .accordion-body strong {
    color: var(--light-text);
}

.game-accordion-item .accordion-body ul {
    color: var(--gray-text);
}

.game-accordion-item .accordion-body ul li {
    margin-bottom: 8px;
}

.game-card {
    background: var(--card-bg) !important;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2) !important;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 16px rgba(var(--primary-color-rgb), 0.3);
}

.game-card .card-body {
    color: var(--light-text);
}

.game-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
}

.game-card .card-text {
    font-size: 0.85rem;
}

.game-card.border-warning {
    border-color: rgba(255, 193, 7, 0.4) !important;
}

.game-card.border-warning:hover {
    border-color: #ffc107 !important;
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.3);
}

/* ====================================================
   SINGLE POST & PAGE STYLES
   ==================================================== */
.entry-title {
    color: var(--primary-color);
}

.entry-content {
    color: var(--light-text);
}

.entry-content p {
    color: var(--gray-text);
}

.wp-block-cover {
    border-radius: 10px;
}

.wp-block-quote {
    border-left: 4px solid var(--primary-color);
    background: var(--card-bg);
    padding: 1rem;
}

/* ====================================================
   COMMENTS
   ==================================================== */
.comment-list .comment {
    background: var(--card-bg);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.comment-author .fn {
    color: var(--primary-color);
}

.comment-metadata a {
    color: var(--gray-text);
}

.comment-content {
    color: var(--light-text);
}

.reply a {
    color: var(--primary-color);
}

/* ====================================================
   WIDGETS
   ==================================================== */
.widget {
    background: var(--card-bg);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.widget ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* ====================================================
   SEARCH FORM
   ==================================================== */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    background: var(--dark-bg);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    flex: 1;
}

.search-form input[type="submit"] {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background: var(--flame-yellow);
}

/* ====================================================
   PAGINATION
   ==================================================== */
.pagination {
    margin: 2rem 0;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    color: var(--light-text);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-numbers:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 991.98px) {
    #primary-menu {
        flex-direction: column;
    }

    #primary-menu .sub-menu {
        position: static;
        display: none;
        border: none;
        padding-left: 1rem;
        box-shadow: none;
    }

    #primary-menu li:hover > .sub-menu {
        display: block;
    }

    #primary-menu .sub-menu .sub-menu {
        left: 0;
    }
}

@media (max-width: 768px) {
    .profile-image,
    .profile-image-container img.wp-post-image,
    .profile-image-container img.attachment-post-thumbnail {
        width: 200px;
        height: 200px;
    }

    .profile-image-container.large .profile-image,
    .profile-image-container.large img {
        width: 280px;
        height: 280px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .goal-number {
        font-size: 2.5rem;
    }

    .hero-header,
    .page-header {
        padding: 6rem 0 !important;
    }
}

@media (max-width: 480px) {
    .profile-image,
    .profile-image-container img.wp-post-image,
    .profile-image-container img.attachment-post-thumbnail {
        width: 180px;
        height: 180px;
    }

    .profile-image-container.large .profile-image,
    .profile-image-container.large img {
        width: 250px;
        height: 250px;
    }

    .goal-number {
        font-size: 2rem;
    }
}

/* ====================================================
   UTILITY CLASSES
   ==================================================== */
.text-muted {
    color: var(--gray-text) !important;
}

/* ====================================================
   CUSTOM SCROLLBAR
   ==================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--flame-yellow);
}

/* ====================================================
   SCREEN READER TEXT (WordPress Core)
   ==================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ====================================================
   GUTENBERG ALIGNMENTS
   ==================================================== */
.wp-block-image.aligncenter {
    text-align: center;
}

.wp-block-image .alignleft {
    float: left;
    margin-right: 1em;
}

.wp-block-image .alignright {
    float: right;
    margin-left: 1em;
}

/* ====================================================
   POST META
   ==================================================== */
.entry-meta {
    color: var(--gray-text);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.entry-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--flame-yellow);
}

.cat-links,
.tags-links {
    margin-right: 1rem;
}

/* ====================================================
   THEME BORDER – Paragraph & Group mit Theme-Rahmen
   ==================================================== */

.is-style-theme-border,
p.is-style-theme-border,
.wp-block-group.is-style-theme-border {
    background: var(--card-bg);
    border: 2px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--gray-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.is-style-theme-border:hover,
.wp-block-group.is-style-theme-border:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

/* Überschriften innerhalb des Theme-Border-Rahmens */
.is-style-theme-border h1,
.is-style-theme-border h2,
.is-style-theme-border h3,
.is-style-theme-border h4,
.is-style-theme-border h5,
.is-style-theme-border h6 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.is-style-theme-border p {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

.is-style-theme-border p:last-child {
    margin-bottom: 0;
}

.is-style-theme-border strong,
.is-style-theme-border b {
    color: var(--light-text);
}

.is-style-theme-border a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.is-style-theme-border a:hover {
    color: var(--flame-yellow);
}

/* ====================================================
   THEME ALERTS – Info, Success, Warning, Danger
   ==================================================== */

.is-style-theme-alert-info,
.is-style-theme-alert-success,
.is-style-theme-alert-warning,
.is-style-theme-alert-danger {
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    border-left: 5px solid transparent;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--light-text);
}

/* Alert Icons */
.is-style-theme-alert-info .alert-icon,
.is-style-theme-alert-success .alert-icon,
.is-style-theme-alert-warning .alert-icon,
.is-style-theme-alert-danger .alert-icon {
    margin-right: 0.5rem;
    font-size: 1.05em;
}

/* Info – Blau */
.is-style-theme-alert-info {
    background: rgba(13, 110, 253, 0.1);
    border-left-color: #0d6efd;
}
.is-style-theme-alert-info .alert-icon { color: #0d6efd; }
.is-style-theme-alert-info strong,
.is-style-theme-alert-info b { color: #6ea8fe; }

/* Success – Grün */
.is-style-theme-alert-success {
    background: rgba(25, 135, 84, 0.1);
    border-left-color: #198754;
}
.is-style-theme-alert-success .alert-icon { color: #198754; }
.is-style-theme-alert-success strong,
.is-style-theme-alert-success b { color: #75b798; }

/* Warning – Gelb */
.is-style-theme-alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}
.is-style-theme-alert-warning .alert-icon { color: #ffc107; }
.is-style-theme-alert-warning strong,
.is-style-theme-alert-warning b { color: #ffda6a; }

/* Danger – Rot */
.is-style-theme-alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}
.is-style-theme-alert-danger .alert-icon { color: #dc3545; }
.is-style-theme-alert-danger strong,
.is-style-theme-alert-danger b { color: #ea868f; }

/* Alert-Links */
.is-style-theme-alert-info a { color: #6ea8fe; }
.is-style-theme-alert-success a { color: #75b798; }
.is-style-theme-alert-warning a { color: #ffda6a; }
.is-style-theme-alert-danger a { color: #ea868f; }

/* ====================================================
   404 PAGE
   ==================================================== */
.error-404 h1 {
    font-size: 6rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.5);
}

.error-404 .page-title {
    color: var(--light-text);
}
