/* ---------------------------------------------------------
   FIX: Theme-Container entfernen (nur für Handwerkerseiten)
--------------------------------------------------------- */

body.hs-hw-body .entry-content,
body.hs-hw-body .site-content,
body.hs-hw-body .content-area,
body.hs-hw-body .container,
body.hs-hw-body .wrap,
body.hs-hw-body .content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* ---------------------------------------------------------
   FIX: Zweispaltiges Layout erzwingen
--------------------------------------------------------- */

.hs-hw-section-two-col {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    align-items: flex-start !important;
}

.hs-hw-col {
    width: 50% !important;
    max-width: 50% !important;
    display: block !important;
}

.hs-hw-card-map,
.hs-hw-map {
    width: 100% !important;
}


.hs-hw-hero-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.hs-hw-footer-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */
.hs-hw-body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
}

.hs-hw-page {
    width: 100%;
    overflow-x: hidden;
}

/* ---------------------------------------------------------
   TOPBAR + POPUP-MENÜ
--------------------------------------------------------- */
.hs-hw-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.hs-hw-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hs-hw-topbar-logo img {
    height: 48px;
    width: auto;
}

.hs-hw-topbar-title h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.hs-hw-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hs-hw-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    border-radius: 3px;
}

/* Popup Menü */
.hs-hw-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20,20,20,0.95);
    color: #fff;
    transform: translateX(-100%);
    transition: 0.35s ease;
    z-index: 99999;
    padding: 40px;
}

.hs-hw-menu-open .hs-hw-menu-overlay {
    transform: translateX(0);
}

.hs-hw-menu-inner {
    max-width: 400px;
}

.hs-hw-menu-close {
    background: none;
    border: none;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    margin-bottom: 20px;
}

.hs-hw-menu-overlay ul {
    list-style: none;
    padding: 0;
}

.hs-hw-menu-overlay li {
    margin: 20px 0;
}

.hs-hw-menu-overlay a {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    font-weight: 600;
}

/* ---------------------------------------------------------
   HERO / HEADER
--------------------------------------------------------- */
.hs-hw-hero {
    background: #ffffff;
    padding: 40px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.hs-hw-hero-inner {
    max-width: 1200px;
    margin: auto;
}

.hs-hw-hero-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hs-hw-hero-logo img {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

.hs-hw-hero-text h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
}

.hs-hw-zertifikat-badge {
    margin-top: 8px;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}

/* Ampel */
.hs-hw-status {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.hs-hw-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.hs-hw-status-active .hs-hw-status-dot {
    background: #2ecc71;
}

.hs-hw-status-pending .hs-hw-status-dot {
    background: #f1c40f;
}

.hs-hw-status-unknown .hs-hw-status-dot {
    background: #bdc3c7;
}

/* ---------------------------------------------------------
   SECTIONS
--------------------------------------------------------- */
.hs-hw-section {
    padding: 40px 20px;
}

.hs-hw-section-inner {
    max-width: 1200px;
    margin: auto;
}


@media (max-width: 900px) {
    .hs-hw-section-two-col {
        flex-direction: column;
    }
    .hs-hw-col {
        width: 100%;
    }
}

/* Karten-Box */
.hs-hw-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.hs-hw-card h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 700;
}

/* Karte */
.hs-hw-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    margin-top: 10px;
}

/* ---------------------------------------------------------
   LEISTUNGEN
--------------------------------------------------------- */
.hs-hw-leistungen-list {
    list-style: none;
    padding: 0;
}

.hs-hw-leistungen-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* ---------------------------------------------------------
   GALERIE
--------------------------------------------------------- */
.hs-hw-galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.hs-hw-galerie-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* ---------------------------------------------------------
   VIDEOS
--------------------------------------------------------- */
.hs-hw-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.hs-hw-video-embed iframe {
    width: 100%;
    height: 220px;
    border-radius: 10px;
}

/* ---------------------------------------------------------
   SOCIAL MEDIA
--------------------------------------------------------- */
.hs-hw-social-links {
    display: flex;
    gap: 15px;
}

.hs-hw-social-link {
    padding: 10px 18px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.hs-hw-social-facebook { background: #1877f2; }
.hs-hw-social-instagram { background: #e1306c; }
.hs-hw-social-tiktok { background: #000; }

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.hs-hw-footer {
    background: #222;
    color: #fff;
    padding: 30px 20px;
    margin-top: 40px;
}

.hs-hw-footer-inner {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.hs-hw-footer p {
    margin: 6px 0;
}


/* ---------------------------------------------------------
   FIX: Theme überschreibt unser Two-Column-Layout
--------------------------------------------------------- */

.hs-hw-section-two-col {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.hs-hw-col {
    width: 50% !important;
    max-width: 50% !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

@media (max-width: 900px) {
    .hs-hw-section-two-col {
        flex-direction: column !important;
    }
    .hs-hw-col {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* ---------------------------------------------------------
   EINSPALTIGES LAYOUT – STABIL & RESPONSIV
--------------------------------------------------------- */

.hs-hw-section-two-col {
    display: block !important;
    width: 100% !important;
}

.hs-hw-col {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 25px !important;
}


/* ---------------------------------------------------------
   Kontaktformular – sauberes, modernes Layout
--------------------------------------------------------- */

.hs-hw-contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.hs-hw-contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.hs-hw-contact-form input[type="text"],
.hs-hw-contact-form input[type="email"],
.hs-hw-contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
}

.hs-hw-contact-form textarea {
    min-height: 140px;
}

.hs-hw-contact-form button {
    background: #0073aa;
    color: #fff;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.hs-hw-contact-form button:hover {
    background: #005f8d;
}

.hs-hw-contact-form .hs-hw-checkbox {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ---------------------------------------------------------
   POPUP SYSTEM
--------------------------------------------------------- */

.hs-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    padding: 40px;
    overflow-y: auto;
}

.hs-popup.open {
    display: block;
}

.hs-popup-content {
    background: #ffffff;
    padding: 30px;
    max-width: 700px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.hs-popup-close {
    cursor: pointer;
    font-size: 22px;
    float: right;
    margin-bottom: 10px;
}
