/*
Theme Name: WERKNETZ24
Theme URI: https://werknetz24.de/
Author: WERKNETZ24 Team
Author URI: https://werknetz24.de/
Description: A premium, modern, and high-end WordPress theme designed for WERKNETZ24. Developed with solid performance and state-of-the-art UI styling.
Version: 1.0.0
Text Domain: werknetz24
*/

/* ============================================
   Premium B&W Design System Enhancements
   ============================================ */

/* Refined typography defaults */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings: balanced wrapping */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

/* Paragraphs: pretty wrapping */
p {
    text-wrap: pretty;
}

/* Selection color (strict B&W) */
::selection {
    background: #000;
    color: #fff;
}

/* Custom scrollbar (B&W) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #fafafa;
}
::-webkit-scrollbar-thumb {
    background: #000;
    border: 3px solid #fafafa;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Focus ring (B&W) */
*:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* ============================================
   WordPress Core Alignments & Elements
   ============================================ */

.alignleft { float: left; margin-inline-end: 1.5rem; }
.alignright { float: right; margin-inline-start: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Caption styling */
.wp-caption {
    max-width: 100%;
}
.wp-caption .wp-caption-text {
    font-size: 0.75rem;
    color: #6b6b6b;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ============================================
   Pagination (B&W)
   ============================================ */

.pagination-nav,
.navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.pagination-nav .page-numbers,
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    background: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}
.pagination-nav .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}
.pagination-nav .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
}
.pagination-nav .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}
.pagination-nav .page-numbers.dots:hover,
.navigation.pagination .page-numbers.dots:hover {
    background: transparent;
    color: #000;
}

/* ============================================
   Gutenberg / Classic Editor Content (B&W)
   ============================================ */

.prose a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: text-decoration-thickness 0.3s ease;
}
.prose a:hover {
    text-decoration-thickness: 2px;
}
.prose blockquote {
    border-left: 3px solid #000;
    padding-left: 1.5rem;
    font-style: italic;
    color: #404040;
}
.prose code {
    background: #f5f5f5;
    color: #000;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    font-size: 0.875em;
}
.prose pre {
    background: #000;
    color: #fff;
    padding: 1.25rem;
    border-radius: 2px;
    overflow-x: auto;
}
.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.prose hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
}
.prose table th,
.prose table td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    text-align: start;
}
.prose table th {
    background: #000;
    color: #fff;
    font-weight: 700;
}

/* ============================================
   Accessibility: Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   Print Optimization (B&W)
   ============================================ */

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    header,
    footer,
    .no-print {
        display: none !important;
    }
    a {
        color: #000 !important;
        text-decoration: underline;
    }
}