/*
Theme Name: Modern Sidebar
Description: Ein modernes WordPress Theme mit linksseitiger Navigation und frosted glass Effekten
Version: 1.0
Author: KI-Assistent
Text Domain: modern-sidebar
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --font-family: 'Noto Serif', serif;
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

a, a:visited, a:hover, a:active {
    text-decoration: none;
    color: #1a37ad;
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Layout Container */
.theme-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Haupt-Content-Wrapper mit Sidebar */
.content-wrapper {
    flex: 1;
    display: flex;
    position: relative;
}

/* Sidebar Container */
.sidebar-container {
    width: 280px;
    flex-shrink: 0;
    position: relative;
}

/* Haupt-Content-Bereich */
.main-content-container {
    flex: 1;
    padding: 2rem;
    margin-left: 0;
}

/* Footer Styles */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    background: transparent;
    padding: 1.5rem;
}

.footer-widget h3,
.footer-widget h4 {
    color: #ffffff !important;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-contact-info {
    color: #ffffff !important;
    line-height: 1.6;
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
}

.footer-contact-info strong {
    color: #ffffff !important;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff !important;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    color: #1a37ad;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.footer-social a:hover {
    background: #1a37ad;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 55, 173, 0.3);
}

/* Linke Navigation */
.sidebar {
    position: sticky;
    top: 0;
    width: 280px;
    min-height: 100vh;
    max-height: 100vh;
    background: #ffdf00;
    box-shadow: 4px 0 20px rgba(26, 55, 173, 0.05);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    align-self: flex-start;
    padding: 0 15px;
}

/* Navigation Header */
.sidebar-header {
    padding: 2rem;
    text-align: center;
}

/* Sidebar Logo */
.sidebar-logo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.sidebar-logo:hover {
    opacity: 0.8;
}

/* Responsive Logo für kleinere Bildschirme */
@media (max-width: 1024px) {
    .sidebar-logo {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .sidebar-logo {
        max-width: 160px;
    }
}

/* Navigation Menu */
.main-navigation {
    padding: 1rem 0;
}

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

.main-navigation li {
    margin: 0.25rem 0;
}

.main-navigation a {
    display: block;
    padding: 0.75rem 2rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: #1a37ad;
    background: rgba(26, 55, 173, 0.1);
    transform: translateX(4px);
}

.main-navigation .current-menu-item a {
    color: #1a37ad;
    background: rgba(26, 55, 173, 0.15);
    transform: translateX(4px);
}

.main-navigation a:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    border-radius: 0 2px 2px 0;
}

/* Verstecke alle unerwünschten Sidebars */
#secondary,
.sidebar-right,
.widget-area,
.right-sidebar,
aside[id*="sidebar"]:not(.sidebar),
aside:not(.sidebar) {
    display: none !important;
}

/* Hauptinhalt */
/* .main-content-area {
    Auskommentierte Styles für späteren Gebrauch
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 55, 173, 0.08);
    border: 1px solid rgba(26, 55, 173, 0.05);
} */

/* Content Cards */
.content-card {
    background: #ffffff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(26, 55, 173, 0.05);
    transition: all 0.3s ease;
    margin-left: 10px;
    margin-right: 10px;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 55, 173, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: #ffffff;
    border: 2px solid #d82229;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #d82229;
    margin: 0 auto 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1001;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar-container {
        position: absolute;
        left: -9999px;
    }

    .main-content-container {
        width: 100%;
        padding: 1rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.open {
    display: block;
}

/* Animation für mobile Menu */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    color: #1a37ad;
    margin-bottom: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1a37ad 0%, #0f2a7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
}

footer h3, footer h4 {
    color: #ffffff !important;
}   

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1a37ad 0%, #0f2a7a 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(26, 55, 173, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 55, 173, 0.3);
    background: linear-gradient(135deg, #0f2a7a 0%, #1a37ad 100%);
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: #1a37ad;
}

.site-footer .footer-content {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Site Info */
.site-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    color: #ffffff;
}

.site-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* WordPress spezifische Styles */
.entry-content {
    margin-bottom: 2rem;
}

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

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Scrollbar Styling - komplett ausgeblendet */
/* Webkit (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar {
    display: none;
}

/* Firefox */
.sidebar {
    scrollbar-width: none;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a37ad 0%, #0f2a7a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Page Loader */
@media (max-width: 768px) {
    .loader-logo {
        max-width: 150px;
    }
    
    .loader-text {
        font-size: 1rem;
    }
}

/* Sidebar Page List Styling */
.sidebar .menu-hauptmenue-container li {
    background: #ffffff;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(26, 55, 173, 0.05);
    transition: all 0.3s ease;
    list-style: none;
}

.sidebar .menu-hauptmenue-container li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 55, 173, 0.1);
}

.sidebar .menu-hauptmenue-container li a {
    display: block;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar .menu-hauptmenue-container li:hover a {
    color: #000;
}

.sidebar .menu-hauptmenue-container li.current-menu-item {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 55, 173, 0.15);
    border: 2px solid #000;
}

.sidebar .menu-hauptmenue-container li.current-menu-item a {
    color: #000000;
    font-weight: 600;
}

/* Remove styles from content cards in sidebar */
.sidebar .content-card {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    margin-left: 0;
    margin-right: 0;
}

.sidebar .content-card:hover {
    transform: none;
    box-shadow: none;
}

.highlight {
    background: #ffdf00;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    color: #e53b51;
    font-size: 1.9rem;
    max-width: 80%;
    font-family: 'Noto Serif';
    margin: 0 auto;
}

@media (max-width: 768px) {
    .highlight {
        max-width: 90%;
    }
}

/* Tabellen-Styles - alle Ränder ausgeblendet */
table,
th,
td,
thead,
tbody,
tfoot,
tr {
    border: none !important;
    border-collapse: collapse !important;
}

table {
    border-spacing: 0;
}