/*
Theme Name: HG Hausmeisterservice
Description: Professionelles WordPress Theme für HG Hausmeisterservice mit Customizer-Integration
Version: 1.25
Author: Weitzel IT GmbH - Manuel Weitzel
Author URI: https://weitzelit.de
*/

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* WordPress Admin Bar Unterstützung */
body.admin-bar .header {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        margin-top: 46px;
    }
}

/* Header Section */
.header {
    background-size: cover;
    background-position: center;
    height: 315px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f5f5f5;
    z-index: 50;
}

.header-content {
    text-align: center;
}

.logo {
    max-width: 400px;
    max-height: 200px;
    height: auto;
}

/* Farbstreifen als PNG-Overlay über Header und Hero */
.nav-stripe-section {
    position: absolute;
    top: 200px; /* Startet im Header-Bereich */
    left: 0;
    right: 0;
    height: 500px; /* Höhe des PNG-Streifens */
    z-index: 200000; /* Über Header und Hero */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none; /* Navigation bleibt klickbar */
}

/* Fallback wenn kein PNG gesetzt */
.nav-stripe-section.no-image {
    background: linear-gradient(135deg, rgba(126, 187, 71, 0.9) 0%, rgba(126, 187, 71, 0.9) 100%);
}

/* Navigation über dem PNG */
.navigation {
    position: relative;
    z-index: 10;
    padding-top: 40px;
    pointer-events: auto; /* Navigation ist klickbar */
}

/* Navigation Content */
.nav-container {
    max-width: 1200px;
    margin: 140px auto 0 auto;
    padding: 0 2rem;
    width: 100%;
    text-align: center;
}

/* Navigation einfach und versetzt */
.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

/* Versetzt anordnen - jeden zweiten etwas nach unten */
.nav-menu li:nth-child(even) {
    margin-top: 0.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #7EBB47;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    /*text-shadow: 1px 1px 2px rgba(0,0,0,0.5);*/
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.9);
    color: #7EBB47;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    background-color: #7EBB47;
    margin-top: 220px;
    z-index: 50;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    max-width: 1200px;
    margin: 140px auto 0 auto !important;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-cta {
    background: white;
    color: #7EBB47;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #7EBB47;
    text-decoration: none;
}

/* Mittlere und untere Farbstreifen */
.green-stripe.middle-stripe,
.green-stripe.bottom-stripe {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 50;
    line-height: 0;
}

.green-stripe.middle-stripe img,
.green-stripe.bottom-stripe img {
    width: 100%;
    height: auto;
    display: block;
}

.green-stripe.middle-stripe.no-image,
.green-stripe.bottom-stripe.no-image {
    height: 80px;
    background: linear-gradient(135deg, #7EBB47 0%, #7EBB47 100%);
}

.green-stripe.middle-stripe {
    margin: 40px 0;
}

.green-stripe.bottom-stripe{
    margin: 40px 0 0 0;
}

/* Main Content Area */
.main-content {
    background: white;
    position: relative;
    z-index: 40;
}

.section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

/* Editable Content Areas */
.editable-content {
    text-align: center;
    margin: 2rem 0;
}

.editable-content h2 {
    color: #7EBB47;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.editable-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #7EBB47;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #7EBB47;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: #7EBB47;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    color: #7EBB47;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
}

.contact-item .icon {
    background: #7EBB47;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #7EBB47;
}

.contact-form h3 {
    color: #7EBB47;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7EBB47;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Erweiterte Formular-Styles */
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-group select:focus {
    outline: none;
    border-color: #7EBB47;
}

/* Checkbox-Styling für Datenschutz */
.form-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #7EBB47;
}

.form-group label {
    cursor: pointer;
    user-select: none;
}

.form-group label:hover {
    color: #333;
}

/* Fehlermeldungen */
.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #dc3545;
}

.form-error ul {
    margin: 0;
    padding-left: 1.5rem;
}

.form-error li {
    margin-bottom: 0.5rem;
}

/* Erfolgsmeldung */
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #28a745;
}

.submit-btn {
    background: #7EBB47;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #6fa63f;
}

/* Page Styles */
.page-content {
    padding: 4rem 0;
    background: white;
    min-height: 60vh;
}

.page-content h1 {
    color: #7EBB47;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-content h2 {
    color: #7EBB47;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
}

.page-content h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem 0;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #666;
}

.page-content a {
    color: #7EBB47;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #7EBB47;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

/* Responsive Design */
@media (max-width: 1000px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 20;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        margin: 0.2rem 1rem;
        color: #333;
        text-shadow: none;
    }

    .nav-menu a:hover {
        background: #7EBB47;
        color: white;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .header {
        height: 200px;
    }

    .logo {
        max-width: 250px;
        max-height: 120px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input[type="checkbox"] {
        min-width: 16px;
        min-height: 16px;
    }
}

html {
    scroll-behavior: smooth;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}