/* Hans Meier Elektro AG – Onepager styles */
:root {
    --yellow: #F5B800;
    --yellow-dark: #E0A800;
    --dark: #1c1c1c;
    --darker: #141414;
    --text: #333333;
    --muted: #6b6b6b;
    --light-bg: #ffffff;
    --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }

img { max-width: 100%; display: block; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    padding: 16px 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--yellow); color: #1a1a1a; }
.btn-primary:hover { background: var(--yellow-dark); }

.btn-outline { background: transparent; color: var(--yellow-dark); border-color: var(--yellow); }
.btn-outline:hover { background: var(--yellow); color: #1a1a1a; }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #efefef;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; color: var(--dark); }
.logo-text strong { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.02em; }
.logo-text em { font-style: normal; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.34em; margin-top: 3px; }

.nav { display: flex; gap: 40px; }
.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    padding: 6px 0;
    transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--yellow-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--dark); border-radius: 2px; }

/* Hero */
.hero { position: relative; background: var(--darker); overflow: hidden; }
.hero-media {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 62%;
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--darker) 0%, var(--darker) 33%, rgba(20,20,20,0.85) 42%, rgba(20,20,20,0) 60%);
}
.hero-inner { position: relative; z-index: 2; min-height: 620px; display: flex; align-items: center; }
.hero-content { max-width: 620px; padding: 60px 0; }
.hero-content h1 {
    color: #fff;
    font-size: 4.1rem;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.005em;
}
.hero-content h1 .accent { color: var(--yellow); }
.hero-rule { display: block; width: 90px; height: 4px; background: var(--yellow); margin: 30px 0; }
.hero-content p { color: #d6d6d6; font-size: 1.05rem; margin-bottom: 38px; line-height: 1.65; }

/* Section basics */
.section { padding: 90px 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--dark);
}
.title-rule { display: block; width: 70px; height: 4px; background: var(--yellow); margin: 18px auto 60px; }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}
.service {
    text-align: center;
    padding: 0 26px;
    position: relative;
}
.service + .service::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 1px;
    background: #eaeaea;
}
.service-icon { color: var(--yellow); display: flex; justify-content: center; margin-bottom: 26px; }
.service h3 { font-size: 0.92rem; font-weight: 700; letter-spacing: 0.03em; color: var(--dark); margin-bottom: 16px; }
.service p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* About */
.about { background: var(--dark); color: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.about-text { padding: 88px 60px 88px 0; max-width: 620px; margin-left: auto; }
.eyebrow { display: block; color: var(--yellow); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; margin-bottom: 22px; }
.about-text h2 { font-size: 2.7rem; font-weight: 800; line-height: 1.05; margin-bottom: 28px; }
.about-text p { color: #b8b8b8; font-size: 0.98rem; line-height: 1.75; margin-bottom: 34px; }
.signature { display: flex; flex-direction: column; }
.sig-name { font-family: 'Great Vibes', cursive; color: var(--yellow); font-size: 2rem; line-height: 1; }
.sig-role { color: #9a9a9a; font-size: 0.85rem; margin-top: 6px; }
.about-media { background-size: cover; background-position: center; min-height: 460px; }

/* References */
.references-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 50px; }
.reference { position: relative; overflow: hidden; }
.reference-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.reference:hover .reference-img { transform: scale(1.05); }
.reference figcaption {
    position: absolute;
    left: 0; bottom: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 40px 18px 14px;
}

/* CTA */
.cta { background: var(--yellow); }
.cta-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 46px 28px;
}
.cta-left { display: flex; align-items: center; gap: 26px; flex: 0 0 auto; }
.cta-phone-icon {
    width: 74px; height: 74px;
    border: 2px solid rgba(26,26,26,0.35);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.cta h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: #1a1a1a; }
.cta-text { color: #3a3013; font-size: 0.92rem; max-width: 260px; margin-left: auto; }
.cta .btn-dark { flex: 0 0 auto; }

/* Footer */
.site-footer { background: var(--darker); color: #cfcfcf; }
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 54px 28px 44px;
    flex-wrap: wrap;
}
.logo-light .logo-text { color: #fff; }
.footer-contact { display: flex; gap: 42px; flex-wrap: wrap; }
.fc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.86rem;
    color: #bdbdbd;
    line-height: 1.5;
}
.fc-item svg { margin-top: 2px; flex: 0 0 auto; }
.footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-social > span { font-size: 0.86rem; color: #bdbdbd; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.social-icons a:hover { background: var(--yellow); color: #1a1a1a; }

.footer-bottom { border-top: 1px solid #2a2a2a; }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    font-size: 0.78rem;
    color: #8a8a8a;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-legal { display: flex; gap: 30px; }
.footer-legal a { color: #8a8a8a; text-decoration: none; }
.footer-legal a:hover { color: var(--yellow); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.2rem; }
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 0; }
    .service:nth-child(3n+1)::before, .service:first-child::before { display: none; }
}

@media (max-width: 860px) {
    .nav {
        display: none;
        position: absolute;
        top: 84px; left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        gap: 0;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }
    .nav.open { display: flex; }
    .nav a { padding: 14px 28px; }
    .nav-toggle { display: flex; }

    .hero-media { width: 100%; opacity: 0.35; }
    .hero-overlay { background: linear-gradient(180deg, rgba(20,20,20,0.7), rgba(20,20,20,0.9)); }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-inner { min-height: 520px; }

    .about-grid { grid-template-columns: 1fr; }
    .about-text { padding: 60px 28px; max-width: none; margin: 0; }
    .about-media { min-height: 320px; order: -1; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service::before { display: none !important; }

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

    .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .cta-text { margin-left: 0; max-width: none; }
    .footer-top { flex-direction: column; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.3rem; }
    .services-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.6rem; }
    .cta-left { flex-direction: column; align-items: flex-start; }
}
