/*
Theme Name: Gottes Soldaten Theme
Theme URI: https://gottes-soldaten.de
Author: Custom Theme
Description: Custom WordPress Theme für Gottes-Soldaten.de
Version: 1.0.0
Text Domain: gottes-soldaten-theme
*/

/* ==========================================================================
   1. Allgemeine Basis-Stile
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Screenreader Unterstützung */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   2. Header & Navigation Layout
   ========================================================================== */
.site-header {
    background-color: #121212;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-branding a {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
}

/* Menü-Basis-Klassen */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #cccccc !important;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #ffffff !important;
    font-weight: 700;
}

/* ==========================================================================
   3. Hamburger Button Styles
   ========================================================================== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    z-index: 1000;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   4. Desktop Ansicht (ab 769px)
   ========================================================================== */
@media screen and (min-width: 769px) {
    .main-navigation ul.nav-menu {
        display: flex !important;
        gap: 25px;
        align-items: center;
    }

    .menu-toggle {
        display: none !important;
    }
}

/* ==========================================================================
   5. Mobile Ansicht (bis 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation ul.nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        flex-direction: column;
        padding: 15px 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
        border-top: 1px solid #2a2a2a;
    }

    .main-navigation.toggled ul.nav-menu {
        display: flex;
    }

    .main-navigation ul.nav-menu li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    .main-navigation ul.nav-menu li a {
        display: block;
        font-size: 1.1rem;
    }

    /* Animation des Hamburger-Icons zum 'X' */
    .main-navigation.toggled .menu-toggle .hamburger-bar:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .main-navigation.toggled .menu-toggle .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .main-navigation.toggled .menu-toggle .hamburger-bar:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}