/**
 * HomeAid Theme Main Styles
 *
 * @package HomeAid
 * @since 1.0.0
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

p {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 1em;
}

h1 {
    font-size: 24px;
    font-weight: 400;
    color: #666;
    margin-bottom: 1em;
}

h2 {
    font-size: 20px;
    font-weight: 400;
    color: #666;
}

h3 {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

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

a:hover {
    color: #ff0000;
}

.link {
    color: #ff0000;
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

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

.header {
    width: 100%;
    height: 350px;
    margin: 0;
    background-color: #000;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.header #logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    padding: 15px;
}

.header #logo img {
    width: 150px;
    display: block;
}

#header_content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

#header_content #header_balken {
    position: relative;
    height: 70px;
    width: 100%;
    background-color: rgba(100, 100, 100, 0.7);
    text-align: left;
}

#atext {
    margin-left: 20px;
    font-size: 35px;
    font-weight: 400;
    vertical-align: center;
    position: absolute;
    bottom: 5px;
    color: #fff;
    overflow: hidden;
}

#animated_text {
    display: inline-block;
    color: #ff0000;
    min-width: 300px;
}

/* Mobile Navigation Toggle */
#navigation_mobil {
    position: absolute;
    text-align: right;
    right: 50px;
    top: 15px;
    color: #fff;
    z-index: 999;
    font-size: 40px;
    cursor: pointer;
    display: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

#navigation {
    position: absolute;
    text-align: right;
    right: 60px;
    top: 0;
    z-index: 3;
}

#navigation ul {
    text-decoration: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 100px;
}

#navigation ul li {
    display: block;
    float: left;
    margin-left: 10px;
    height: 100px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

#navigation ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

#navigation ul li:hover {
    background-color: #ff0000;
    cursor: pointer;
}

.dropdownbtn {
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    margin-top: 20px;
    margin-left: -10px;
    background-color: #ff0000;
    text-align: left;
    min-width: 200px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.dropdown-content a {
    color: #000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-top: 2px solid #000;
}

.dropdown-content a:first-child {
    border-top: none;
}

.dropdown-content a:hover {
    background-color: #000;
    color: #ff0000;
}

/* ==========================================================================
   Search
   ========================================================================== */

.search-icon {
    position: absolute;
    right: 90px;
    top: 0;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    padding: 0 15px;
    height: 100px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.search-icon:hover {
    background-color: #ff0000;
}

.search-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* Mobile search icon (hidden on desktop) */
.mobile-search-icon {
    display: none;
}

/* Mobile menu close button (hidden on desktop) */
.mobile-menu-close {
    display: none;
}
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay-content {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: #ff0000;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-form .screen-reader-text {
    position: absolute;
    left: -9999px;
}

.search-form .search-field {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #fff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px 0 0 5px;
    font-family: 'Poppins', sans-serif;
}

.search-form .search-field:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ff0000;
}

.search-form .search-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form .search-submit {
    padding: 15px 25px;
    background-color: #ff0000;
    border: 2px solid #ff0000;
    color: #fff;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.search-form .search-submit:hover {
    background-color: #000;
    border-color: #000;
}

.search-form .search-submit svg {
    width: 20px;
    height: 20px;
}

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

.content {
    flex: 1 0 auto;
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    padding-bottom: 60px;
}

.entry-content {
    margin-top: 20px;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.entry-thumbnail {
    margin: 20px 0;
}

.home_img {
    margin-right: 50px;
    margin-top: 10px;
    width: 300px;
    float: left;
}

/* ==========================================================================
   Projekte
   ========================================================================== */

/* Projekt Filter */
.projekt-filter {
    width: 100%;
    text-align: center;
    margin: 30px 0 40px 0;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.filter-btn {
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    color: #333;
    padding: 10px 25px;
    margin: 5px 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.filter-btn:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.filter-btn:focus {
    outline: none;
}

/* Projekt Grid */
.projekte {
    width: 100%;
    margin-bottom: 50px;
    overflow: hidden;
}

.projekte::after {
    content: "";
    display: table;
    clear: both;
}

.projekt {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ccc;
    width: 20%;
    margin-left: 4%;
    float: left;
    display: inline-block;
    margin-top: 10px;
    position: relative;
    text-align: center;
    line-height: 100%;
}

.projekt:before {
    content: "";
    display: block;
    padding-top: 100%;
    position: relative;
}

.projekt_footer {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 40%;
    width: 100%;
    background-color: rgba(150, 150, 150, 0.9);
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    font-weight: bold;
    transition: height 0.5s, line-height 0.5s;
}

.projekt_footer:hover {
    height: 100%;
}

.projekt_footer .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.projekt_footer a {
    color: #fff;
}

.projekt_space {
    height: 60px;
    margin-top: 100px;
    clear: both;
}

/* Related Projects */
.related-projects {
    width: 100%;
    margin-top: 60px;
    clear: both;
}

.related-projects h2 {
    margin-bottom: 30px;
}

.entry-footer {
    clear: both;
    margin-top: 40px;
}

/* Single Post Styles - Konsistenz für alle Detailseiten */
.single-projekt article,
.single-leistung article,
.single-aktuelles article {
    background: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    display: block !important;
    position: static !important;
}

.single-projekt article:before {
    display: none !important;
}

.single-projekt .entry-header,
.single-leistung .entry-header,
.single-aktuelles .entry-header,
.single-projekt .entry-content,
.single-leistung .entry-content,
.single-aktuelles .entry-content,
.single-projekt .entry-meta,
.single-leistung .entry-meta,
.single-aktuelles .entry-meta {
    background: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: none;
}

/* WordPress Block Galerie Überschreibungen */
.wp-block-gallery,
.wp-block-gallery figure,
.wp-block-image figure {
    background: none;
    background-color: transparent;
    margin: 0;
}
/* ==========================================================================
   Aktuelles
   ========================================================================== */

.aktuelles-list {
    width: 100%;
}

.aktuellesItem {
    width: 100%;
    position: relative;
    margin-bottom: 40px;
    clear: both;
}

.aktuellesItem img {
    width: 60%;
    margin: 20px auto;
    display: block;
}

.aktuellesItem h2 {
    margin-bottom: 10px;
}

.aktuellesItem h3 {
    margin-bottom: 10px;
}

.entry-excerpt {
    margin: 15px 0;
}

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

.footer_space {
    display: none;
}

#footer {
    flex-shrink: 0;
    width: 100%;
    min-height: 60px;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

#footer_left {
    float: left;
    width: 25%;
    text-align: left;
    margin-top: 10px;
}

#footer_left .social-icon {
    display: inline-block;
    color: #fff;
    font-size: 24px;
    margin-left: 20px;
    transition: color 0.3s ease;
    }

    #footer_left .social-icon:hover {
        color: #ff0000;
    }

    #footer_left .social-icon i {
        display: block;
}

#footer_center {
    display: inline-block;
    margin: 15px auto 0;
    font-size: 12px;
}

#footer_center a {
    color: #fff;
    text-decoration: none;
}

#footer_center a:hover {
    color: #ff0000;
}

#footer_right {
    float: right;
    width: 25%;
    text-align: right;
    margin-top: 15px;
    font-size: 12px;
    padding-right: 20px;
}

#footer_right a {
    color: #fff;
    text-decoration: none;
}

#footer_right a:hover {
    color: #ff0000;
}

/* ==========================================================================
   Navigation & Pagination
   ========================================================================== */

.post-navigation,
.posts-pagination {
    margin: 40px 0;
    clear: both;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-subtitle {
    display: block;
    font-size: 14px;
    color: #666;
}

.nav-title {
    font-weight: 600;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 3px;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #ff0000;
    color: #fff;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    background-color: transparent;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: none;
}

.breadcrumbs .container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #ff0000;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

/* Post Navigation Enhanced */
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: block;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 13px;
    color: inherit;
    margin-bottom: 5px;
    opacity: 0.8;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
}
/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (min-width: 901px) {
    .search-icon {
        right: 10px;
    }

    #navigation_mobil {
        display: none;
    }
}

@media (max-width: 1200px) {
    #atext {
        font-size: 25px;
    }
}

@media (max-width: 900px) {
    #navigation {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000;
        padding: 80px 20px 20px 20px;
        overflow-y: auto;
        z-index: 9998;
    }

    #navigation ul {
        height: auto;
    }

    #navigation ul li {
        float: none;
        display: block;
        margin: 0;
        width: 100%;
        height: auto;
        border-bottom: 1px solid #333;
    }

    #navigation ul li a {
        padding: 15px 0;
    }

    #navigation_mobil {
        display: block;
        font-size: 40px;
    }

    .search-icon {
        display: none;
    }

    /* Suchlupe im mobilen Menü */
    #navigation .mobile-search-icon {
        display: block;
        width: 100%;
        padding: 15px 0;
        color: #fff;
        cursor: pointer;
        border-bottom: 1px solid #333;
        transition: background-color 0.3s ease;
        text-align: center;
    }

    #navigation .mobile-search-icon:hover {
        background-color: #ff0000;
    }

    #navigation .mobile-search-icon svg {
        display: inline-block;
        vertical-align: middle;
        margin-right: 10px;
    }

    /* Close-Button im mobilen Menü */
    #navigation .mobile-menu-close {
        display: block;
        width: 100%;
        padding: 15px 0;
        color: #fff;
        cursor: pointer;
        border-bottom: 1px solid #333;
        transition: background-color 0.3s ease;
        text-align: center;
        font-size: 24px;
    }

    #navigation .mobile-menu-close:hover {
        background-color: #ff0000;
    }

    .dropdown-content {
        position: static;
        margin: 0;
        box-shadow: none;
        background-color: #ff0000;
        display: none;
    }

    .dropdown-content a {
        padding: 12px 20px;
    }

    .projekt {
        width: 45%;
        margin-left: 2.5%;
    }

    .home_img {
        width: 100%;
        float: none;
        margin: 20px 0;
    }

    #footer_left,
    #footer_center,
    #footer_right {
        float: none;
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    #footer {
        position: relative;
        padding-bottom: 20px;
    }

    .footer_space {
        display: none;
    }
/* Breadcrumbs mobile */
.breadcrumbs {
    padding: 12px 0;
    font-size: 14px;
}

/* Post Navigation mobile */
.post-navigation .nav-links {
    flex-direction: column;
    gap: 15px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 100%;
    width: 100%;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    padding: 15px;
}

.post-navigation .nav-next {
    text-align: left;
}
}

@media (max-width: 600px) {
    .projekt {
        width: 95%;
        margin-left: 2.5%;
    }

                                                                                                                                                                                                                                                                .filter-btn {
                                                                                                                                                                                                                                                                    padding: 8px 15px;
                                                                                                                                                                                                                                                                    margin: 4px 5px;
                                                                                                                                                                                                                                                                    font-size: 13px;
                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                .projekt-filter {
                                                                                                                                                                                                                                                                    padding: 15px 10px;
                                                                                                                                                                                                                                                                    margin: 20px 0 30px 0;
                                                                                                                                                                                                                                                                }
    #atext {
        font-size: 18px;
        margin-left: 10px;
    }

    #animated_text {
        min-width: 200px;
    }

    .header {
        height: 300px;
    }

    #header_img {
        height: 200px;
    }

    #header_img #header_balken {
        height: 60px;
    }

    .aktuellesItem img {
        width: 100%;
    }

    .search-icon {
        right: 70px;
        padding: 8px;
    }

    .search-icon svg {
        width: 20px;
        height: 20px;
    }

    #navigation_mobil {
        right: 30px;
    }

    .search-form .search-field {
        font-size: 16px;
        padding: 12px 15px;
    }

    .search-form .search-submit {
        padding: 12px 20px;
        font-size: 14px;
    }

    .search-form .search-submit span {
        display: none;
    }

    .search-close {
        font-size: 32px;
        top: -45px;
    }
}

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

.sticky {
    /* Styles for sticky posts */
}

.gallery-caption {
    /* Styles for gallery captions */
}

.bypostauthor {
    /* Styles for comments by post author */
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5em 3em;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li > ul,
.entry-content li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

.entry-content dt {
    font-weight: 700;
}

.entry-content dd {
    margin: 0 1.5em 1.5em;
}

.entry-content img {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.entry-content table {
    border-collapse: collapse;
    margin: 0 0 1.5em;
    width: 100%;
}

.entry-content th {
    font-weight: 700;
}

.entry-content td,
.entry-content th {
    border: 1px solid #ddd;
    padding: 8px;
}
