/*
Theme Name: Landwehr Lemgo
Author: Agentur Herzstück GmbH
Author URI: https://www.agentur-herzstueck.de
Description: Ein individuelles Hybrid-Theme mit Full-Site-Editing Features für WordPress. Handgemacht in Bad Salzuflen.
Version: 1.0
Text Domain: landwehr
*/

/** 
* Font Face
*/
@font-face {
    font-display: swap;
    font-family: "Sarabun";
    font-style: normal;
    font-weight: 400;
    src: url("assets/fonts/sarabun-v17-latin-regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Sarabun";
    font-style: normal;
    font-weight: 500;
    src: url("assets/fonts/sarabun-v17-latin-500.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Sarabun";
    font-style: normal;
    font-weight: 700;
    src: url("assets/fonts/sarabun-v17-latin-700.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Sarabun";
    font-style: normal;
    font-weight: 800;
    src: url("assets/fonts/sarabun-v17-latin-800.woff2") format("woff2");
}

/**
* General settings
*/
html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

p,
blockquote,
h1,
h2,
h3,
h4,
h5,
h6,
li {
    text-wrap: balance;
}

a,
button {
    transition: all 0.2s ease;
}

:where(:focus) {
    outline: 2px solid;
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    margin: 0;
    position: static;
    padding: 0.5rem 1rem;
    background: var(--wp--preset--color--font-blue);
    color: var(--wp--preset--color--white);
    border-radius: 4px;
}

/**
* Header 
*/
.site-header {
    background-color: var(--wp--preset--color--white);
    top: 0;
    left: 0;
    width: 100vw;
    display: block;
    position: sticky;
    z-index: 5000;

    & .header-inner {
        max-width: var(--wp--style--global--content-size);
        padding: 1rem var(--wp--style--root--padding-right) 1rem var(--wp--style--root--padding-left);
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: baseline;

        & .logo a {
            display: block;
            
            img {
                max-width: 260px;
                width: 100%;
                height: auto;
            }
        }

        & .header-navigation {
            display: flex;
            align-items: center;
            gap: 2.25rem;

            & a {
                color: var(--wp--preset--color--dark-blue);
                font-size: var(--wp--preset--font-size--normal);
            }
            & a:hover {
                color: var(--wp--preset--color--font-blue);
            }

            /**************************** main navigation */
            & .menu {
                display: flex;
                list-style: none;
                gap: 2rem;
                transition: 0.2s;
                margin-left: 0;

                & a {
                    text-decoration: none;
                }
            }

            /**************************** Language switch */
            & .lang-switch {
                display: flex;
                align-items: center;
                gap: 0.125rem;

                & svg {
                    margin-right: 5px;
                }

                & .lang-switch__list {
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                    margin: 0;
                    padding: 0;
                    list-style: none;

                    & li {
                        list-style: none;
                        padding: 1px 8px;
                        text-transform: uppercase;

                        & a {
                            text-decoration: none;
                        }
                    }

                    & li:not(:last-child) {
                        border-right: 1.5px solid var(--wp--preset--color--red);
                    }

                    & .is-active a {
                        color: var(--wp--preset--color--red);
                    }
                }

                & .lang-switch__select {
                    display: none;
                    padding: 0.25rem 0.75rem;
                    border-radius: 4px;
                    border: 1px solid var(--wp--preset--color--dark-blue);
                    background-color: transparent;
                    text-transform: uppercase;
                }
            }
        }
    }
}

.hamburger-container {
    display: none;
}

@media (max-width: 1024px) {
    .site-header .header-inner {
        align-items: center;
        height: 60px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .site-header .logo img {
        max-width: 200px;
    }

    .site-header .menu {
        opacity: 0;
        visibility: hidden;
        position: fixed;
        top: calc(60px + 0.75rem);
        right: -100%;
        left: auto;
        width: 100vw;
        height: calc(100vh - 60px - 0.75rem);
        background-color: var(--wp--preset--color--light-blue);
        z-index: 10;
        margin: 0;
        gap: unset;
        display: block !important;
        transition: right 0.3s ease, opacity 0.2s ease;

        & li {
            padding: 1rem 0;

            & a {
                font-size: 1.5rem !important;
            }
        }
    }

    .site-header .menu.active {
        opacity: 1;
        visibility: visible;
        right: 0;
    }

    .hamburger-container {
        display: block;

        & #menu-toggle:hover {
            background-color: transparent;
        }
    }
}

@media (max-width: 768px) {
    .logo img {
        max-width: 160px !important;
    }

    .header-navigation {
        gap: 1.25rem !important;
    }

    .lang-switch__list {
        display: none !important;
    }

    .lang-switch__select {
        display: block !important;
        width: 100%;
    }
}

/**
* Hamburger menu
*/
.hamburger {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: var(--wp--preset--color--light-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--wp--preset--color--dark-blue);
    transition: color 0.2s ease, opacity 0.2s ease;
    position: relative;
    border-radius: 8px;
}

.hamburger:hover,
.hamburger:focus-visible {
    color: var(--wp--preset--color--font-blue);
}

.hamburger svg {
    width: 1.75rem;
    height: 1.75rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hamburger-icon-close {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hamburger.is-active .hamburger-icon {
    opacity: 0;
    transform: scale(0.8);
}

.hamburger.is-active .hamburger-icon-close {
    opacity: 1;
    pointer-events: auto;
    transform: rotate(0deg);
}

.error-404 {
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
    padding: 5rem 0;
}

.fixed-btn {
    position: fixed;
    right: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 100%;
    background: var(--wp--preset--color--mid-blue);
    color: var(--wp--preset--color--white);
    text-decoration: none;
    transition: 0.2s;
    z-index: 200;
}

.fixed-btn--contact {
    bottom: calc(3vh + 58px);
}

.fixed-btn--top {
    bottom: 3vh;
    visibility: hidden;
    opacity: 0;
}

.fixed-btn--top.show {
    visibility: visible;
    opacity: 1;
}

/**
 * Helpers
 */

.uppercase {
    text-transform: uppercase;
}

.no-margins {
    margin: 0;
}

.small-margin {
    margin: 0.5rem 0 !important;
}

/**
* Footer 
*/
.site-footer {
    background-color: var(--wp--preset--color--dark-blue);
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--normal);

    & .footer-inner {
        max-width: var(--wp--style--global--content-size);
        margin: 0 auto;
        display: grid;
        grid-template-columns: 65% 35%;
        gap: 2rem;

        & .footer-menu-content,
        & .footer-logo {
            padding: 3rem 0;
        }

        & .openings {
            display: flex;
            align-items: center;
            gap: 20%;

            & .socials {
                display: flex;
                gap: 15px;
            }
        }

        & .footer-main-menu .menu {
            margin-top: 4rem;
            display: flex;
            list-style: none;
            padding: 0;
            gap: 48px;
            flex-wrap: wrap;
        }

        & .footer-logo {
            border-left: 2px solid var(--wp--preset--color--white);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex-direction: column;
            padding-left: 3rem;

            & .spacer {
                height: 10px;
            }

            & .footer-sec-menu ul {
                list-style: none;
                padding: 0;
            }

            & img {
                width: clamp(200px, 300px, 350px);
            }
        }

        & .address {
            margin-top: 1.75rem;
        }
    }
}

/* Links */
.site-footer a {
    color: var(--wp--preset--color--white);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--wp--preset--color--mid-blue);
}

/* Media queries */
@media (max-width: 1280px) {
    .footer-inner {
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .site-footer .footer-inner {
        grid-template-columns: 60% 40%;
        gap: 0;

        .footer-menu-content,
        .footer-logo {
            padding: 2.5rem 0;
        }

        .footer-logo {
            padding-left: 1rem;
        }

        .footer-main-menu .menu {
            gap: 32px;
        }
    }
}

@media (max-width: 768px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        text-align: left;

        .footer-logo {
            border-left: none;
            border-top: 2px solid var(--wp--preset--color--white);
            padding-top: 2rem;
            justify-content: center;
        }

        .footer-main-menu .menu {
            gap: 24px;
            margin-top: 2rem;
        }

        .openings {
            flex-direction: column;
            gap: 1rem;
            align-items: flex-start;

            .socials {
                justify-content: center;
            }
        }
    }
}

@media (max-width: 480px) {
    .site-footer {
        font-size: var(--wp--preset--font-size--small);
    }

    .site-footer .footer-inner {
        padding: 1.5rem;

        .footer-menu-content,
        .footer-logo {
            padding: 2rem 0;
        }

        .footer-main-menu .menu {
            flex-direction: column;
            gap: 1rem;
        }

        .openings {
            gap: 0.75rem;

            .socials {
                gap: 10px;
            }
        }
    }
}

/** 
* Element handling / Blocks
*/
.alignfull > .kt-row-layout-inner > .kt-row-column-wrap, 
.alignfull > .kt-row-column-wrap {
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
}

p {
    margin: 1rem 0;
}

[class*="number-"] {
    position: relative;
    padding-left: 40px;
}

[class*="number-"]+ * {
    padding-left: 40px;
}

.number-one::before {
    content: url('data:image/svg+xml,<svg width="185" height="39" viewBox="0 0 185 39" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M184 38H20.6724H8.86653V14.8336V10.0761L1 11.6468V3.93986L8.86653 1H20.6724V24.4181" stroke="%23B7D2F7" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"/></svg>');
    position: absolute;
    bottom: -12px;
    left: 0;
}

.number-two::before {
    content: url('data:image/svg+xml,<svg width="185" height="41" viewBox="0 0 185 41" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M184 40H1V33.9998C1 32.0544 1.4373 30.6109 2.63927 29.1674L10.5058 21.3336C14.6028 17.167 17.2266 13.8327 17.2266 12.1109C17.2266 11.055 16.352 10.9432 13.8943 10.9432C9.85109 10.9432 6.40887 10.9432 1.05619 11.055V2.20998C6.73868 1.15404 11.1093 1 15.4236 1C23.7812 1 29.3538 2.88826 29.3538 10.5556C29.3538 14.5557 28.6429 16.7794 23.6176 21.8901L15.238 29.8904H30.2284" stroke="%23B7D2F7" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"/></svg>');
    position: absolute;
    bottom: -12px;
    left: 0;
}

.number-three::before {
    content: url('data:image/svg+xml,<svg width="185" height="41" viewBox="0 0 185 41" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M184 40H1V30.7109C6.08306 30.9271 8.2678 30.983 11.4911 30.983C15.973 30.983 17.1192 30.6016 17.1192 27.1814C17.1192 24.3028 16.3543 23.3798 12.911 23.4332L5.64318 23.5425V16.3717H12.911C16.518 16.3717 16.7917 15.23 16.7917 13.0049C16.7917 10.5053 15.9168 9.96357 12.5835 9.96357H1V2.04696C5.42568 1.34008 10.3988 1 14.7169 1C24.3894 1 27.8327 3.06478 27.8327 9.74494C27.8327 15.2858 26.6841 18.4899 21.6035 19.1968V19.413C27.0678 20.2267 28.7613 22.9425 28.8175 28.8113" stroke="%23B7D2F7" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"/></svg>');
    position: absolute;
    bottom: -12px;
    left: 0;
}
