/*
Theme Name: Paxlogik
Theme URI: https://example.com/paxlogik
Author: Your Name
Author URI: https://example.com
Description: Ein minimalistisches, akademisches WordPress-Theme mit Mobile-First-Ansatz und hervorragender Typografie
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paxlogik
Tags: blog, education, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #2c3e50;
    background-color: #fafafa;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography - Akademischer Stil
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.625rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #2c5282;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a365d;
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

blockquote {
    border-left: 4px solid #cbd5e0;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a5568;
}

code, pre {
    font-family: 'Courier New', monospace;
    background-color: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Layout - Mobile First
   ========================================================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-area {
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: #718096;
    margin: 0.25rem 0 0 0;
    font-family: 'Helvetica Neue', sans-serif;
}

/* Mobile Menu Button */
.menu-toggle {
    display: block;
    background-color: transparent;
    border: 2px solid #2c5282;
    color: #2c5282;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', sans-serif;
}

.menu-toggle:hover {
    background-color: #2c5282;
    color: #ffffff;
}

/* ==========================================================================
   Navigation - Mobile First
   ========================================================================== */

.main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.main-navigation.toggled {
    display: block;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #f7fafc;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover {
    background-color: #f7fafc;
    color: #2c5282;
    text-decoration: none;
}

/* Dropdown Menu Styles - Mobile */
.main-navigation ul ul {
    display: none;
    background-color: #f7fafc;
}

.main-navigation ul li.menu-item-has-children > a::after {
    content: ' ▾';
    float: right;
}

.main-navigation ul li.menu-item-has-children:hover > ul,
.main-navigation ul li.menu-item-has-children:focus-within > ul {
    display: block;
}

.main-navigation ul ul a {
    padding-left: 2.5rem;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Content
   ========================================================================== */

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: #718096;
    font-family: 'Helvetica Neue', sans-serif;
    margin-bottom: 1.5rem;
}

.entry-meta a {
    color: #718096;
}

.entry-meta a:hover {
    color: #2c5282;
}

/* Featured Image */
.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.entry-content {
    margin-bottom: 3rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    font-size: 0.875rem;
    color: #718096;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 3rem 1rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Grid - Mobile First (1 Spalte) */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    padding: 0;
}

.footer-column h2,
.footer-column h3 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-column .widget {
    margin-bottom: 1.5rem;
}

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

.footer-column .widget-title {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.site-info {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #4a5568;
    font-size: 0.875rem;
    color: #a0aec0;
}

/* ==========================================================================
   Tablet Styles (min-width: 768px)
   ========================================================================== */

@media screen and (min-width: 768px) {
    .site-content {
        padding: 3rem 2rem;
    }

    .entry-title {
        font-size: 2.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.625rem;
    }

    /* Footer Grid - Tablet: 2 Spalten */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Desktop Styles (min-width: 1024px)
   ========================================================================== */

@media screen and (min-width: 1024px) {
    .site-header {
        padding: 1.5rem 2rem;
    }

    .menu-toggle {
        display: none;
    }

    .main-navigation {
        position: static;
        display: block;
        border: none;
        box-shadow: none;
    }

    .main-navigation ul {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .main-navigation li {
        position: relative;
        margin-left: 0.5rem;
    }

    .main-navigation a {
        padding: 0.75rem 1rem;
        border: none;
        border-radius: 4px;
    }

    .main-navigation a:hover {
        background-color: #edf2f7;
    }

    /* Desktop Dropdown */
    .main-navigation ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        z-index: 999;
    }

    .main-navigation ul ul li {
        margin: 0;
    }

    .main-navigation ul ul a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f7fafc;
    }

    .main-navigation ul ul a:hover {
        background-color: #f7fafc;
    }

    .main-navigation ul ul ul {
        left: 100%;
        top: 0;
    }

    .entry-title {
        font-size: 3rem;
    }

    h1 {
        font-size: 3rem;
    }

    /* Footer Grid - Desktop: 4 gleiche Spalten */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #718096;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.gallery {
    margin-bottom: 1.5rem;
}

.sticky {
    /* Sticky post styles */
}

.bypostauthor {
    /* Author comment styles */
}

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

.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;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
