/*
 * HOPFENLAGER FOOTER v1
 * CI: Roboto Slab / Grün #008037
 */

body.hlf-v1-active .fusion-footer,
body.hlf-v1-active #footer,
body.hlf-v1-active .fusion-footer-widget-area,
body.hlf-v1-active .fusion-footer-copyright-area {
    display: none !important;
}


/* V1.1: sauberer Übergang vom Seiteninhalt in den neuen Footer.
   Avadas Standard-Unterkante ist auf der Testseite sonst zu groß. */
body.hlf-v1-active #main {
    padding-bottom: 28px !important;
}

.hlf-v1-footer,
.hlf-v1-footer * {
    box-sizing: border-box;
}

.hlf-v1-footer {
    --hlf-green: #008037;
    --hlf-green-dark: #075c2d;
    --hlf-ink: #1f2823;
    --hlf-muted: #667069;
    --hlf-line: #dde4dc;
    --hlf-light: #f4f7f2;
    margin-top: 0;
    clear: both;
    font-family: "Roboto Slab", Georgia, serif;
    color: var(--hlf-ink);
}

.hlf-v1-shell {
    width: min(1340px, calc(100% - 40px));
    margin: 0 auto;
}

.hlf-v1-main {
    padding: 52px 0 48px;
    background: var(--hlf-light);
    border-top: 1px solid var(--hlf-line);
}

.hlf-v1-grid {
    display: grid;
    grid-template-columns: minmax(270px, 1.45fr) repeat(4, minmax(135px, .72fr));
    gap: 42px;
    align-items: start;
}

.hlf-v1-brand {
    max-width: 330px;
}

.hlf-v1-logo {
    display: block;
    width: 250px;
    max-width: 100%;
    margin-bottom: 18px;
}

.hlf-v1-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.hlf-v1-brand p {
    max-width: 310px;
    margin: 0 0 20px;
    color: var(--hlf-muted);
    font-size: 14px;
    line-height: 1.7;
}

.hlf-v1-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hlf-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.hlf-v1-contact:hover,
.hlf-v1-contact:focus {
    color: var(--hlf-green-dark);
}

.hlf-v1-contact svg,
.hlf-v1-bottom-note svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hlf-v1-column h2 {
    margin: 4px 0 16px;
    color: var(--hlf-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.hlf-v1-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hlf-v1-column li {
    margin: 0;
}

.hlf-v1-column a {
    display: inline-block;
    padding: 6px 0;
    color: #4e5952;
    font-size: 12.5px;
    line-height: 1.4;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}

.hlf-v1-column a:hover,
.hlf-v1-column a:focus {
    color: var(--hlf-green);
    transform: translateX(2px);
    outline: none;
}

.hlf-v1-bottom {
    background: var(--hlf-green-dark);
    color: rgba(255,255,255,.92);
}

.hlf-v1-bottom-inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hlf-v1-bottom p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.hlf-v1-bottom-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hlf-v1-bottom-note svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 1180px) {
    .hlf-v1-grid {
        grid-template-columns: minmax(250px, 1.25fr) repeat(2, minmax(160px, .75fr));
        gap: 34px 42px;
    }

    .hlf-v1-brand {
        grid-row: span 2;
    }
}

@media (max-width: 760px) {
    .hlf-v1-footer {
        margin-top: 0;
    }

    body.hlf-v1-active #main {
        padding-bottom: 22px !important;
    }

    .hlf-v1-shell {
        width: calc(100% - 32px);
    }

    .hlf-v1-main {
        padding: 38px 0 34px;
    }

    .hlf-v1-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 30px 26px;
    }

    .hlf-v1-brand {
        grid-column: 1 / -1;
        grid-row: auto;
        max-width: none;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--hlf-line);
    }

    .hlf-v1-logo {
        width: 220px;
    }

    .hlf-v1-brand p {
        max-width: 460px;
    }
}

@media (max-width: 480px) {
    .hlf-v1-shell {
        width: calc(100% - 28px);
    }

    .hlf-v1-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
    }

    .hlf-v1-column h2 {
        font-size: 14px;
    }

    .hlf-v1-column a {
        padding: 5px 0;
        font-size: 11.5px;
    }

    .hlf-v1-legal {
        grid-column: 1 / -1;
        padding-top: 4px;
        border-top: 1px solid var(--hlf-line);
    }

    .hlf-v1-legal ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        column-gap: 16px;
    }

    .hlf-v1-bottom-inner {
        min-height: 62px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
    }
}


/* =========================================================
   V1.2 – Avada "Nach oben"-Button sauber über Footerleiste
   ========================================================= */

/*
 * Avada verwendet je nach Konfiguration #toTop bzw. .to-top-container.
 * Die Regeln greifen nur auf Seiten mit aktivem Hopfenlager-Footer.
 */
body.hlf-v1-active #toTop {
    bottom: 70px !important;
}

body.hlf-v1-active .to-top-container,
body.hlf-v1-active .fusion-to-top {
    bottom: 70px !important;
}

/* Auf kleinen Displays etwas kompakter über der 62px-Abschlussleiste. */
@media (max-width: 760px) {
    body.hlf-v1-active #toTop,
    body.hlf-v1-active .to-top-container,
    body.hlf-v1-active .fusion-to-top {
        bottom: 72px !important;
    }
}
