/* Raleway Font Face Definitions */
@font-face {
    font-family: 'Raleway';
    src: url('../fonts/raleway-v37-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/raleway-v37-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/raleway-v37-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/raleway-v37-latin-700italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth Theme Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Ausnahmen für Performance */
img,
svg,
video,
iframe,
canvas {
    transition: none;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #5a6c7d; /* Verbessert: 4.6:1 Kontrast auf weiß */
    --accent-color: #2980b9; /* Verbessert: 4.5:1 Kontrast auf weiß */
    --background: #ffffff;
    --text-color: #2c3e50;
    --border-color: #ecf0f1;
    --header-background: #9b59b6;
    --header-text: #ffffff;
    --header-height: 120px;
    --header-height-scrolled: 70px;
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 4px;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #e8e8e8;
    --secondary-color: #b0b0b0;
    --accent-color: #5dade2;
    --background: #1a1a1a;
    --text-color: #e8e8e8;
    --border-color: #333333;
    --header-background: #6c3483;
    --header-text: #ffffff;
}

/* System Preference Detection */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: #e8e8e8;
        --secondary-color: #b0b0b0;
        --accent-color: #5dade2;
        --background: #1a1a1a;
        --text-color: #e8e8e8;
        --border-color: #333333;
        --header-background: #6c3483;
        --header-text: #ffffff;
    }
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--background);
    line-height: 1.8;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-family: var(--font-secondary);
}

.skip-link:focus {
    top: 0;
}

/* Header Navigation */
/* Wichtig: Nur #header (Site-Header), nicht alle <header> Elemente */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--header-background);
    color: var(--header-text);
    border-bottom: 1px solid var(--border-color);
    z-index: 9999;
    transition: all var(--transition-speed) ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

#header.scrolled {
    height: var(--header-height-scrolled);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Header z-index reduzieren wenn Menü offen ist */
body.menu-open #header {
    z-index: 9998;
}

#header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 2px;
    color: var(--header-text);
    text-decoration: none;
    transition: font-size var(--transition-speed) ease;
}

#header.scrolled .logo {
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--header-text);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition-speed) ease;
    font-family: var(--font-secondary);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--header-text);
    padding: 8px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    position: relative;
    width: 40px;
    height: 40px;
    line-height: 1;
    text-align: center;
}

.menu-toggle::before {
    content: '☰';
    display: block;
    font-size: 24px;
    line-height: 1;
    transition: all var(--transition-speed) ease;
}

.menu-toggle.active::before {
    content: '×';
    font-size: 32px;
    line-height: 1;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: 2px solid var(--header-text);
    outline-offset: 2px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--header-text);
    padding: 8px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
}

.theme-toggle:hover,
.theme-toggle:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: 2px solid var(--header-text);
    outline-offset: 2px;
}

.theme-toggle-icon {
    display: block;
    transition: transform var(--transition-speed) ease;
    font-size: 20px;
}

[data-theme="dark"] .theme-toggle-icon {
    transform: rotate(180deg);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    margin-top: var(--header-height);
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    padding-top: 80px;
    padding-bottom: 120px;
    transition: margin-top var(--transition-speed) ease;
}

#header.scrolled ~ .container {
    margin-top: var(--header-height-scrolled);
}

/* Main Content */
main {
    max-width: 700px;
}

.blog-post {
    margin-bottom: 120px;
}

.blog-post h2 {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 40px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.blog-post h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.blog-post h2 a:hover,
.blog-post h2 a:focus {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 40px;
    transition: opacity var(--transition-speed) ease;
    background-color: var(--border-color);
}

.blog-post:hover .post-image {
    opacity: 0.9;
}

.post-excerpt {
    font-size: 18px;
    line-height: 1.9;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.post-meta {
    font-size: 13px;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-secondary);
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    color: #1a4d73; /* Verbessert: 7.1:1 Kontrast auf weiß für bessere Lesbarkeit */
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    border-bottom: 1px solid #1a4d73;
    padding-bottom: 2px;
    transition: all var(--transition-speed) ease;
    font-weight: 600; /* Leicht fetter für bessere Lesbarkeit */
}

.read-more:hover,
.read-more:focus {
    color: var(--primary-color);
    border-color: var(--primary-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Sidebar */
aside {
    position: sticky;
    top: calc(var(--header-height) + 80px);
    height: fit-content;
    transition: top var(--transition-speed) ease;
}

#header.scrolled ~ .container aside {
    top: calc(var(--header-height-scrolled) + 40px);
}

/* Sicherstellen, dass Content nicht über Header scrollt */
body {
    padding-top: 0;
}

main,
.entry-header,
.entry-content {
    position: relative;
    z-index: 1;
}

.sidebar-section {
    margin-bottom: 80px;
}

.sidebar-section h3 {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.sidebar-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-section li {
    margin-bottom: 18px;
}

.sidebar-section a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
    display: inline-block;
}

.sidebar-section a:hover,
.sidebar-section a:focus {
    color: var(--accent-color);
    padding-left: 8px;
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Related Posts Widget */
.related-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-posts-list li {
    margin-bottom: 18px;
}

.related-posts-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
    display: inline-block;
}

.related-posts-list a:hover,
.related-posts-list a:focus {
    color: var(--accent-color);
    padding-left: 8px;
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud a:hover {
    color: #ffffff
}

/* WordPress Tag Widget: Gleiches Design wie eigene Tag Cloud */
.widget_tag_cloud .tagcloud,
.tagcloud,
.sidebar-section .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Tag-Links: Spezifischer Selektor (a.tag) verhindert Konflikt mit body.tag */
/* Alle Tag-Links (eigene Tag Cloud + WordPress Widget) haben jetzt die Klasse "tag" */
a.tag {
    padding: 8px 16px !important;
    background: var(--border-color) !important;
    color: var(--secondary-color) !important;
    text-decoration: none;
    font-size: 13px !important; /* !important um WordPress Font-Size-Überschreibungen zu überschreiben */
    border-radius: 20px !important;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-secondary);
    display: inline-block;
    /* Überschreibe .sidebar-section a Styles */
    padding-left: 8px !important; /* Kein padding-left wie bei normalen Sidebar-Links */
}

a.tag:hover,
a.tag:focus {
    background: var(--accent-color) !important;
    color: white !important;
    padding-left: 8px !important; /* Behalte padding beim Hover */
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Tag-Hover NICHT in mobile-sidebar anwenden (wird durch spezifischere Regel überschrieben) */
.mobile-sidebar a.tag:hover,
.mobile-sidebar a.tag:focus,
#mobileSidebar a.tag:hover,
#mobileSidebar a.tag:focus,
.mobile-sidebar .tagcloud a:hover,
.mobile-sidebar .tagcloud a:focus,
#mobileSidebar .tagcloud a:hover,
#mobileSidebar .tagcloud a:focus {
    background: var(--primary-color) !important;
    color: var(--background) !important;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: var(--background);
    z-index: 10000;
    overflow-y: auto;
    padding-top: calc(var(--header-height) + 20px);
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    transition: right var(--transition-speed) ease;
    /* Auf Desktop immer versteckt */
    display: none;
}

/* Mobile Sidebar nur auf Mobile-Geräten anzeigen */
@media (min-width: 1025px) {
    .mobile-sidebar,
    .mobile-sidebar.active {
        display: none !important;
    }
}

.mobile-sidebar.active {
    right: 0;
    display: block;
}

.close-sidebar {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease;
}

.close-sidebar:hover,
.close-sidebar:focus {
    background-color: var(--border-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.mobile-nav-links {
    list-style: none;
    margin: 0 0 60px 0;
    padding: 0 0 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 1px;
    font-family: var(--font-secondary);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 40px;
        padding-top: 60px;
        padding-bottom: 80px;
    }

    aside {
        display: none;
    }

    nav {
        padding: 0 40px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .sidebar-overlay {
        display: block;
    }

    .mobile-sidebar {
        display: block;
    }

    .blog-post {
        margin-bottom: 80px;
    }

    .blog-post h2 {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .post-image {
        height: 300px;
        margin-bottom: 30px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 80px;
        --header-height-scrolled: 60px;
    }

    nav {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .logo {
        font-size: 22px;
    }

    #header.scrolled .logo {
        font-size: 18px;
    }

    .blog-post {
        margin-bottom: 60px;
    }

    .blog-post h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .post-image {
        height: 240px;
        margin-bottom: 25px;
    }

    .post-excerpt {
        font-size: 16px;
    }

    .mobile-sidebar {
        width: 280px;
        padding-top: calc(var(--header-height) + 20px);
        padding-left: 30px;
        padding-right: 30px;
        padding-bottom: 30px;
    }
}

/* Entry Header & Content */
.page-header {
    margin-bottom: 60px;
}

.page-title {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.archive-description {
    font-size: 16px;
    color: var(--secondary-color);
    margin-top: 20px;
}

.entry-header {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 42px;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.entry-content {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.entry-content h2 {
    font-size: 32px;
}

.entry-content h3 {
    font-size: 26px;
}

.entry-content h4 {
    font-size: 22px;
}

.entry-content ul,
.entry-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--primary-color);
}

.entry-footer {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tags-label {
    font-size: 13px;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    margin-right: 8px;
}

.page-links {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--secondary-color);
}

.page-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 4px;
}

.page-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin: 40px 0;
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-primary);
    color: var(--text-color);
}

.search-field:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-color: var(--accent-color);
}

.search-submit {
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.search-submit:hover,
.search-submit:focus {
    background: var(--primary-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Comments */
.comments-area {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.comment-list {
    list-style: none;
    margin: 0 0 60px 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-meta {
    flex-shrink: 0;
    width: 80px;
}

.comment-author {
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
    width: 56px;
    height: 56px;
}

.comment-author .fn {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 8px;
}

.comment-meta a {
    font-size: 13px;
    color: var(--secondary-color);
    text-decoration: none;
}

.comment-meta a:hover {
    color: var(--accent-color);
}

.comment-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.comment-awaiting-moderation {
    display: block;
    font-size: 14px;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 10px;
}

.reply {
    margin-top: 15px;
}

.reply a {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reply a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.comment-notes {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-primary);
    margin-bottom: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-color: var(--accent-color);
}

.comment-form .form-submit {
    margin-top: 20px;
}

.comment-form .submit {
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.comment-form .submit:hover,
.comment-form .submit:focus {
    background: var(--primary-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.no-comments {
    font-size: 16px;
    color: var(--secondary-color);
    font-style: italic;
    margin: 40px 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
}

/* Responsive für Comments */
@media (max-width: 640px) {
    .comment-body {
        flex-direction: column;
    }
    
    .comment-meta {
        width: 100%;
    }
    
    .entry-title {
        font-size: 32px;
    }
    
    .page-title {
        font-size: 28px;
    }
}

/* Footer */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    background: var(--background);
}

/* Footer Widgets */
.footer-widgets {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-widgets-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-widget-column {
    min-width: 0;
}

.footer-widget {
    margin-bottom: 0;
}

.footer-widget .widget-title {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

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

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-speed) ease;
}

.footer-widget a:hover,
.footer-widget a:focus {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.footer-widget p {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-widget p:last-child {
    margin-bottom: 0;
}

/* Footer Content (Copyright & Menu) */
.site-footer > .footer-content {
    padding: 40px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.copyright a:hover,
.copyright a:focus {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.footer-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--font-secondary);
    transition: color var(--transition-speed) ease;
}

.footer-menu a:hover,
.footer-menu a:focus {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    .footer-widgets-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-widgets {
        padding: 40px 0;
    }

    .footer-widgets-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================
   Mobile Sidebar Tag Hover Fix
   ======================================== */
/* Spezifischere Selektoren (a.tag) verhindern Konflikt mit body.tag */
.mobile-sidebar a.tag,
#mobileSidebar a.tag,
.mobile-sidebar .tagcloud a,
#mobileSidebar .tagcloud a {
    background: var(--border-color);
    color: var(--secondary-color);
}

.mobile-sidebar a.tag:hover,
.mobile-sidebar a.tag:focus,
#mobileSidebar a.tag:hover,
#mobileSidebar a.tag:focus,
.mobile-sidebar .tagcloud a:hover,
.mobile-sidebar .tagcloud a:focus,
#mobileSidebar .tagcloud a:hover,
#mobileSidebar .tagcloud a:focus {
    background: var(--primary-color);
    color: var(--background);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ========================================
   Tag-Archive Hintergrund Fix
   ======================================== */
/* ENTFERNT: Redundante Regeln - body hat bereits background: var(--background)
 * WordPress fügt automatisch die Klasse 'tag' zum Body hinzu bei Tag-Archiven.
 * Die spezifischen Regeln waren redundant, da body bereits den Hintergrund setzt
 * und .container/main standardmäßig transparent sind.
 */

