/* ==========================================================================
DESIGN-SYSTEM & VARIABLEN
========================================================================== */
:root {
    --primary-blue: #1e3a8a;
    --dark-anthrazit: #0f172a;
    --accent-solar: #38bdf8;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --accent-pflaster: #a0522d;
    --accent-hausmeister: #4682b4;
}

/* ==========================================================================
GLOBALE STYLES
========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-stack); background-color: var(--bg-light); color: var(--dark-anthrazit); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
HEADER & NAVIGATION
========================================================================== */
.site-header { background-color: var(--card-bg); border-bottom: 3px solid var(--primary-blue); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 70px; width: auto; }
.nav-menu { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--dark-anthrazit); font-weight: 600; font-size: 1rem; transition: color 0.3s ease; }
.nav-menu a:hover { color: var(--primary-blue); }
.btn-header { background-color: var(--primary-blue); color: white !important; padding: 10px 20px; border-radius: 6px; transition: background-color 0.3s ease !important; }
.btn-header:hover { background-color: var(--dark-anthrazit); }

/* ── Instagram-Icon (Bilddatei) ── */
.instagram-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ── Instagram-Button im Header ── */
.nav-social {
    display: flex;
    align-items: center;
}
.btn-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
}
/* Hover-Effekte bei Instagram entfernt (Anforderung 1) */

/* ── Burger-Button (Desktop: versteckt) ── */
.burger-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    position: relative;
}
.burger-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark-anthrazit);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.burger-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Overlay ── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
HERO SECTION
========================================================================== */
.hero-section { background-color: var(--dark-anthrazit); color: white; padding: 90px 0; text-align: center; }
.hero-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; color: white; }
.hero-title span { color: var(--accent-solar); }
.hero-subtitle { font-size: 1.3rem; max-width: 800px; margin: 0 auto 30px auto; color: #cbd5e1; }
.btn-cta { display: inline-block; background-color: var(--accent-solar); color: var(--dark-anthrazit); text-decoration: none; font-weight: 700; padding: 15px 35px; border-radius: 6px; font-size: 1.1rem; transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.btn-cta:hover { background-color: white; color: var(--primary-blue); transform: translateY(-2px); }

/* ==========================================================================
LEISTUNGEN & CARDS
========================================================================== */
.services-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.service-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.3s ease; border-top: 5px solid var(--border-color); overflow: hidden; display: flex; flex-direction: column; }
.card-solar { border-top-color: var(--accent-solar); }
.card-glas { border-top-color: var(--primary-blue); }
.card-gebaeude { border-top-color: var(--dark-anthrazit); }
.card-bau { border-top-color: var(--primary-blue); }
.card-muell { border-top-color: var(--accent-solar); }
.card-winter { border-top-color: #cbd5e1; }
.card-pflaster { border-top-color: var(--accent-pflaster); }
.card-hausmeister { border-top-color: var(--accent-hausmeister); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px -3px rgba(0,0,0,0.08); }

.service-image-container { width: 100%; height: 200px; overflow: hidden; background-color: #e2e8f0; }
.service-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-img { transform: scale(1.05); }

.service-text-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.service-badge { align-self: flex-start; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 15px; }
.badge-solar { background-color: #e0f2fe; color: #0369a1; }
.badge-glas { background-color: #dbeafe; color: #1e40af; }
.badge-gebaeude { background-color: #f1f5f9; color: #334155; }
.badge-bau { background-color: #fee2e2; color: #991b1b; }
.badge-muell { background-color: #fef08a; color: #854d0e; }
.badge-winter { background-color: #f0fdfa; color: #0f766e; }
.badge-pflaster { background-color: #fde8d8; color: #7c2d12; }
.badge-hausmeister { background-color: #dbeafe; color: #1e3a5f; }

.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--dark-anthrazit); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; }

.service-card ul { list-style: none; padding: 0; margin-top: 0; }
.service-card ul li { position: relative; padding-left: 25px; margin-bottom: 8px; font-size: 0.95rem; color: var(--dark-anthrazit); }
.service-card ul li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--primary-blue); font-weight: bold; font-size: 1.1rem; line-height: 1; }

/* ==========================================================================
ÜBER UNS (INHABER)
========================================================================== */
.about-section { padding: 80px 0; background-color: var(--card-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }

.about-image-container { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.about-image-container::before { content: ""; position: absolute; bottom: -20px; left: -20px; width: 100%; height: 100%; border: 4px solid var(--primary-blue); border-radius: 12px; z-index: 1; transition: all 0.3s ease; }
.about-image-container::after { content: ""; position: absolute; top: -15px; right: -15px; width: 50px; height: 50px; border-top: 4px solid var(--accent-solar); border-right: 4px solid var(--accent-solar); z-index: 1; }

.about-img { width: 80%; height: 350px; object-fit: cover; border-radius: 12px; position: relative; z-index: 2; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); background-color: #f1f5f9; }
.about-image-container:hover::before { transform: translate(5px, 5px); }

.about-content h2 { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 5px; }
.about-subtitle { font-size: 1.15rem; font-weight: 600; color: var(--accent-solar); margin-bottom: 20px; }
.about-content p { color: var(--dark-anthrazit); margin-bottom: 15px; font-size: 1.05rem; }
.about-signature { font-style: italic; font-weight: 600; color: var(--primary-blue); margin-top: 20px; display: block; }

/* ==========================================================================
KONTAKTBEREICH
========================================================================== */
.contact-section { padding: 80px 0; background-color: var(--bg-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info h3 { font-size: 1.5rem; color: var(--primary-blue); margin-bottom: 20px; }
.contact-details { list-style: none; margin-bottom: 30px; }
.contact-details li { margin-bottom: 15px; font-size: 1.05rem; }
.contact-details strong { color: var(--dark-anthrazit); display: block; font-size: 0.9rem; text-transform: uppercase; }

/* ── WhatsApp-Link im Kontaktbereich ── */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #25d366;
    font-weight: 600;
    transition: opacity 0.3s ease;
}
.whatsapp-link:hover {
    opacity: 0.8;
}
.whatsapp-icon-contact {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
}

.contact-form { background-color: var(--card-bg); padding: 40px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-control { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: var(--font-stack); font-size: 1rem; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Datei-Upload-Feld ── */
.form-control-file {
    padding: 10px;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.form-control-file:hover {
    border-color: var(--primary-blue);
}
.form-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* ── Datenschutz-Checkbox ── */
.form-group-checkbox { margin-bottom: 24px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary-blue); cursor: pointer; }
.checkbox-text { font-size: 0.9rem; line-height: 1.5; color: var(--dark-anthrazit); }
.checkbox-text a { color: var(--primary-blue); text-decoration: underline; font-weight: 600; }
.checkbox-text a:hover { color: var(--accent-solar); }

/* ── Submit-Button ── */
.btn-submit { width: 100%; background-color: var(--primary-blue); color: white; border: none; padding: 14px; font-size: 1.05rem; font-weight: 700; border-radius: 6px; cursor: pointer; transition: background-color 0.3s ease, opacity 0.3s ease; }
.btn-submit:hover:not(:disabled) { background-color: var(--dark-anthrazit); }
.btn-submit:disabled { background-color: #94a3b8; cursor: not-allowed; opacity: 0.6; }

/* ==========================================================================
FOOTER
========================================================================== */
.site-footer { background-color: var(--dark-anthrazit); color: #94a3b8; padding: 50px 0 25px 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 15px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--accent-solar); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 25px; text-align: center; }

/* ── Instagram im Footer (ohne Hover-Effekt) ── */
.footer-social {
    margin-top: 20px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #334155;
}
.instagram-icon-footer {
    width: 24px;
    height: 24px;
}
/* Hover-Effekte bei Instagram im Footer entfernt (Anforderung 1) */

/* ==========================================================================
RECHTSTEXTE (IMPRESSUM / DATENSCHUTZ)
========================================================================== */
.legal-section { padding: 60px 0; background-color: var(--bg-light); }
.legal-content { background-color: var(--card-bg); padding: 50px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.legal-content h1 { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 30px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; }
.legal-content h2 { font-size: 1.5rem; color: var(--primary-blue); margin-top: 40px; margin-bottom: 15px; }
.legal-content h3 { font-size: 1.2rem; color: var(--dark-anthrazit); margin-top: 25px; margin-bottom: 10px; }
.legal-content p { color: var(--dark-anthrazit); margin-bottom: 15px; }
.legal-content ul { padding-left: 20px; margin-bottom: 20px; color: var(--dark-anthrazit); }
.legal-content ul li { margin-bottom: 8px; }
.legal-content a { color: var(--primary-blue); text-decoration: none; font-weight: 600; }
.legal-content a:hover { color: var(--accent-solar); text-decoration: underline; }
.btn-back { display: inline-block; margin-bottom: 25px; color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.btn-back:hover { color: var(--primary-blue); }

/* ==========================================================================
MEDIA QUERIES
========================================================================== */

/* ── Tablet ── */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ── Mobil – Burger-Menü aktiv ── */
@media (max-width: 768px) {

    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .burger-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 100px 30px 40px 30px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        z-index: 1050;
        transition: right 0.35s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        display: block;
        padding: 14px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .btn-header {
        display: block;
        text-align: center;
        margin-top: 20px;
        padding: 14px 20px;
        border-radius: 6px;
        width: 100%;
    }

    /* Instagram mobil: volle Breite, zentriert */
    .nav-social {
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
    .btn-instagram {
        width: 100%;
        padding: 12px 20px;
        border-radius: 6px;
        justify-content: center;
    }
    .btn-instagram .instagram-icon {
        width: 24px;
        height: 24px;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero-title { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-container { max-width: 280px; }
    .about-image-container::before { bottom: -10px; left: -10px; }
    .legal-content { padding: 25px; }
    .legal-content h1 { font-size: 1.8rem; }
}
