/**
 * AxAI Galaxy Theme Styles - MENÜ KORRIGIERT
 * @package AxAI_Galaxy
 * @since 1.0
 */

/* ==========================================
   CSS VARIABLEN
   ========================================== */
:root {
    --logo-spacing: 40px;
    --header-boxed-width: 1200px;
    --content-boxed-width: 1200px;
    --footer-boxed-width: 1200px;
    --header-transparency: 0.8;
    --footer-transparency: 0.95;
    --content-transparency: 0.6;
    --content-bg-color: #0a0e1a;
    --link-color: #667eea;
    --link-hover-color: #764ba2;
    --menu-text-color: #ffffff;
    --menu-text-size: 16px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

/* ==========================================
   GALAXY STARFIELD BACKGROUND
   ========================================== */
#starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Galaxy Controls - Positioned Right Center */
.galaxy-control {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.2);
    border: 2px solid rgba(147, 51, 234, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    backdrop-filter: blur(10px);
}

.galaxy-control:hover {
    background: rgba(147, 51, 234, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.6);
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.site {
    position: relative;
    z-index: 1;
}

.boxed {
    max-width: var(--content-boxed-width);
    margin: 0 auto;
    padding: 0 20px;
}

.full-width {
    width: 100%;
    padding: 0 40px;
}

/* Content Width Settings */
.content-container.boxed {
    max-width: var(--content-boxed-width);
    margin: 0 auto;
    padding: 0 20px;
}

.content-container.full-width {
    width: 100%;
}

/* ==========================================
   HEADER STYLES - MENÜ KORRIGIERT
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, var(--header-transparency));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    height: 70px;
}

.transparent-header .site-header {
    background: rgba(0, 0, 0, calc(var(--header-transparency) * 0.3));
}

/* Header Container */
.site-header .header-container.boxed {
    max-width: var(--header-boxed-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-header .header-container.full-width {
    width: 100%;
    padding: 0 40px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo Styles */
.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 0;
}

.custom-logo-link:hover {
    transform: translateY(-2px);
}

.custom-logo-link img {
    display: block;
    height: auto;
    max-height: 60px;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.site-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #a78bfa;
}

.site-description {
    display: none;
}

/* ==========================================
   HEADER LAYOUT VARIATIONEN - KORRIGIERT
   ========================================== */

/* Logo Position: Left (Standard) */
.site-header.logo-left .header-inner {
    flex-direction: row;
    justify-content: space-between;
}

.site-header.logo-left .site-branding {
    order: 1;
}

.site-header.logo-left.menu-left .main-navigation {
    order: 2;
    margin-left: var(--logo-spacing);
}

.site-header.logo-left.menu-right .main-navigation {
    order: 3;
    margin-left: auto;
}

.site-header.logo-left.menu-center .main-navigation {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 var(--logo-spacing);
}

/* Logo Position: Center */
.site-header.logo-center .header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
}

.site-header.logo-center .site-branding {
    order: 1;
}

.site-header.logo-center .main-navigation {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-header.logo-center {
    height: auto;
    min-height: 80px;
}

/* Logo Position: Right */
.site-header.logo-right .header-inner {
    flex-direction: row;
    justify-content: space-between;
}

.site-header.logo-right .site-branding {
    order: 2;
    margin-left: auto;
}

.site-header.logo-right.menu-left .main-navigation {
    order: 1;
    margin-right: auto;
}

.site-header.logo-right.menu-right .main-navigation {
    order: 3;
    margin-left: var(--logo-spacing);
}

.site-header.logo-right.menu-center .main-navigation {
    order: 1;
    flex: 1;
    display: flex;
    justify-content: center;
    margin-right: var(--logo-spacing);
}

/* ==========================================
   NAVIGATION MENU - VOLLSTÄNDIG KORRIGIERT
   ========================================== */
.main-navigation {
    display: flex;
    align-items: center;
}

/* KRITISCH: Menü als horizontale Liste */
.main-menu,
#primary-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 40px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Menüpunkte nebeneinander */
.main-menu > li,
#primary-menu > li,
.main-menu li,
#primary-menu li {
    margin: 0 !important;
    padding: 10 !important;
    list-style: none !important;
    display: inline-block !important;
}

/* Keine Bullets */
.main-menu li::before,
#primary-menu li::before {
    display: none !important;
    content: none !important;
}

/* Menü-Links */
.main-menu a,
#primary-menu a {
    color: var(--menu-text-color);
    text-decoration: none;
    font-size: var(--menu-text-size);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    display: block;
    opacity: 0.8;
    white-space: nowrap;
}

.main-menu a:hover,
#primary-menu a:hover {
    color: white;
    opacity: 1;
    transform: translateY(-2px);
}

.main-menu a::after,
#primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.main-menu a:hover::after,
#primary-menu a:hover::after,
.main-menu .current-menu-item a::after,
#primary-menu .current-menu-item a::after {
    width: 100%;
}

.main-menu .current-menu-item a,
#primary-menu .current-menu-item a {
    color: white;
    opacity: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 40px rgba(147, 51, 234, 0.6);
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 40px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 60px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-button:hover {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.site-content {
    min-height: 100vh;
    padding-top: 80px;
}

.page-content-wrapper,
.post-content-wrapper,
.blog-wrapper,
.front-page-content {
    padding: 80px 20px;
    min-height: 60vh;
}

/* Page/Post Header with Image */
.page-header.has-thumbnail,
.post-header.has-thumbnail {
    position: relative;
    height: 60vh;
    min-height: 400px;
    margin-top: 80px;
    overflow: hidden;
}

.page-header-image,
.post-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-header-image img,
.post-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay,
.post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-content,
.post-header-content {
    text-align: center;
    padding: 40px;
}

.page-header-content .entry-title,
.post-header-content .entry-title {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Entry Content */
article {
    background-color: var(--content-bg-color);
    opacity: calc(var(--content-transparency) / 100);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    margin-bottom: 40px;
}

article > * {
    opacity: 1;
    position: relative;
}

.entry-header {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #a78bfa;
}

.entry-title a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #c4b5fd;
}

.entry-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-meta a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #a78bfa;
}

.entry-content {
    line-height: 1.8;
    color: #cbd5e1;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #a78bfa;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: var(--link-hover-color);
    border-bottom-color: var(--link-hover-color);
}

/* Entry Footer */
.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.entry-footer span {
    display: inline-block;
}

.entry-footer a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-footer a:hover {
    color: var(--link-hover-color);
}

.cat-links,
.tags-links,
.comments-link,
.edit-link {
    margin-right: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    color: white !important;
    text-decoration: none !important;
    border: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: auto;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.read-more svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   BLOG GRID - KORRIGIERT
   ========================================== */
.blog-grid {
    display: grid;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.blog-grid.columns-1 {
    grid-template-columns: 1fr;
}

.blog-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.blog-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.blog-grid article {
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.blog-grid .post-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin: 0;
}

.blog-grid .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-grid article:hover .post-thumbnail img {
    transform: scale(1.05);
}

.blog-grid .entry-header,
.blog-grid .entry-content,
.blog-grid .entry-footer {
    padding: 0 30px;
}

.blog-grid .entry-header {
    padding-top: 30px;
}

.blog-grid .entry-footer {
    padding-bottom: 30px;
    margin-top: auto;
}

.blog-grid .entry-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-grid .entry-content {
    padding-top: 20px;
    padding-bottom: 20px;
    flex-grow: 1;
}

.blog-grid .entry-meta {
    margin-bottom: 15px;
}

/* ==========================================
   PAGINATION & NAVIGATION - VERBESSERT
   ========================================== */
.posts-navigation,
.post-navigation {
    margin: 60px 0;
    padding: 30px;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: white;
}

.nav-previous a:hover {
    transform: translateX(-5px);
}

.nav-next a:hover {
    transform: translateX(5px);
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-weight: 600;
    color: #a78bfa;
    display: block;
}

/* ==========================================
   FOOTER STYLES - KORRIGIERT
   ========================================== */
.site-footer {
    background: rgba(0, 0, 0, var(--footer-transparency));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 40px;
    margin-top: 80px;
    backdrop-filter: blur(10px);
}

.site-footer .footer-container.boxed {
    max-width: var(--footer-boxed-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer .footer-container.full-width {
    width: 100%;
    padding: 0 40px;
}

.footer-widgets {
    padding-bottom: 60px;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget-area {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area .widget-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-widget-area a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget-area a:hover {
    color: #a78bfa;
}

.site-info {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    order: 1;
}

.footer-copyright a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--link-hover-color);
}

.footer-links {
    order: 2;
}

.footer-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}


/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .blog-grid.columns-4,
    .blog-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .menu-toggle {
        display: flex;
    }
    
    .main-menu,
    #primary-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column !important;
        padding: 20px;
        gap: 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .main-menu.active,
    #primary-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 20px;
    }
    
    .main-menu > li,
    #primary-menu > li,
    .main-menu li,
    #primary-menu li {
        width: 100%;
        text-align: center;
        display: block !important;
    }
    
    .main-menu a,
    #primary-menu a {
        display: block;
        padding: 12px 20px;
        font-size: 18px;
    }
    
    /* Reset Header Layout für Mobile */
    .site-header .header-inner {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    .site-header .site-branding {
        order: 1 !important;
    }
    
    .site-header .main-navigation {
        order: 2 !important;
        margin: 0 !important;
    }
    
    .site-header {
        height: 70px;
    }
    
    .custom-logo-link img {
        max-height: 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-text {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 2.5rem;
        line-height: 1.7;
        animation: fadeInUp 0.8s ease 0.3s backwards;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text p {
        margin-bottom: 1rem;
    }

    .hero-text p:last-child {
        margin-bottom: 0;
    }
    
    .blog-grid.columns-4,
    .blog-grid.columns-3,
    .blog-grid.columns-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    article {
        padding: 30px 20px;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
    
    .galaxy-control,
    #pauseButton {
        width: 50px;
        height: 50px;
        right: 20px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    #starfield-canvas,
    .galaxy-control,
    .scroll-to-top,
    #pauseButton,
    .menu-toggle,
    .site-header,
    .site-footer,
    .hero-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    article {
        background: white;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    z-index: 100000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .site-header {
        background: rgba(0, 0, 0, 1);
        border-bottom: 2px solid #fff;
    }
    
    article {
        background: rgba(0, 0, 0, 1);
        border: 2px solid #fff;
    }
}

@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;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
