/* Google fonts saved locally - google-webfonts-helper: https://gwfh.mranftl.com/fonts*/

/* goldman-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Goldman';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/goldman-v21-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* goldman-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Goldman';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/fonts/goldman-v21-latin-700.woff2') format('woff2');
}

/* raleway-300 - latin */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300;
    src: url('/assets/fonts/raleway-v37-latin-300.woff2') format('woff2');
}

/* raleway-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/raleway-v37-latin-regular.woff2') format('woff2');
}

/* raleway-italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 400;
    src: url('/assets/fonts/raleway-v37-latin-italic.woff2') format('woff2');
}

/* raleway-500 - latin */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/raleway-v37-latin-500.woff2') format('woff2');
}

/* raleway-500italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 500;
    src: url('/assets/fonts/raleway-v37-latin-500italic.woff2') format('woff2');
}

/* raleway-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/fonts/raleway-v37-latin-700.woff2') format('woff2');
}

/* raleway-700italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 700;
    src: url('/assets/fonts/raleway-v37-latin-700italic.woff2') format('woff2');
}

/*
font-family: 'Goldman', sans-serif;
font-family: 'Raleway', sans-serif;
*/

/* Variables------------------------------------------------------------------------------------------*/
:root {
    /* Mobile first*/
    --header-height: 110px;
    --heading-font: 'Goldman', sans-serif;
    --text-font: 'Raleway', sans-serif;

    --font-color-dark: #27322C;
    --font-color-light: #fff;

    --background-color-main: #242323;
    --background-color-header: #0a0d10;
    --background-color-footer: #0a0d10;

    --background-color-dark: #eae8ea;
    --background-color-light: #f2f0f2;
    --background-color-darkest: gray;

    --box-shadow-color1: darkgrey;
    --box-shadow-color2: forestgreen;
    --box-shadow-color3: grey;

    --primary-btn1: #8F987E;
    --primary-btn2: rgba(163, 191, 133, 0.781);
    --secondary-btn1: #eae8ea;
    --secondary-btn2: whitesmoke;

    --link-color: #4f6a73;
}

/*----------------------------------------------------------------------------------------------------*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* General style rules ---------------------------------------------------------------------------------*/

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--font-color-light);
    font-family: var(--text-font);
    font-weight: 300;
    padding-top: var(--header-height);
}

h1,
h2 {
    font-family: var(--heading-font);
    color: var(--font-color-light);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.3rem;
    font-weight: 200;
}

h3 {
    margin-bottom: 0.9rem;
    font-weight: 500;
}

h4 {
    font-family: var(--text-font);
    font-weight: 500;
}

p {
    margin-bottom: 15px;
}

.headings-left {
    text-align: left;
}

hr {
    border-bottom: 0.5px groove silver;
    margin-top: 20px;
    margin-bottom: 20px;
}

.xtra-space {
    padding-bottom: 30px;
}

.container {
    margin: 10px auto;
    padding: 0 24px;
    max-width: 1100px;
}

/* Buttons -------------------------------*/

.btn-container,
.single-product-btn-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.products-btn-container {
    margin-top: auto;
}

.single-product-btn-container {
    margin-top: 2rem;
}

button,
.btn {
    font: inherit;
    font-weight: 400;

    text-decoration: none;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: transform 0.1s ease;
}

.light-btn,
.light-btn:visited {
    background-color: var(--background-color-dark);
    color: var(--font-color-dark);
    border: 1px solid #4a4a4a;
    box-shadow: 0 1px 3px var(--background-color-darkest);
}

.dark-btn,
.dark-btn:visited {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #2a2a2a;
    box-shadow: 0 1px 3px var(--background-color-darkest);
}

.transparent-btn,
.transparent-btn:visited {
    background-color: transparent;
    color: #eae8ea;
    border: 1px solid #eae8ea;
    box-shadow: 0 1px 3px var(--background-color-darkest);
}

.multi-btn {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    /* Gap button - button */
    gap: 1rem;
}

.btn:hover {
    border-color: #888;
    filter: brightness(0.90);
    cursor: pointer;
}

.btn:active {
    text-decoration: none;
    filter: brightness(1.1);
    transform: scale(0.9);
}

.box-left .btn-container {
    margin-top: 3rem;
}

/* Links and inline links */

.inline-link,
.phone-inline-link {
    color: inherit;
}

.phone-inline-link {
    text-decoration: none;
}

.inline-link:hover,
.phone-inline-link:hover {
    cursor: pointer;
}

.inline-link:visited,
.phone-inline-link:visited {
    color: inherit;
}

/* Header -----------------------------------------------------------------------------------*/
header {
    /* To include navbar toggle in header */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /*Variable header height to screen size*/
    height: var(--header-height);
    z-index: 10;
    /* Padding right and left for margin*/
    padding: 0 1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--background-color-header);
    /*background: linear-gradient(to bottom,
            var(--background-color-light),
            var(--background-color-dark));*/
    /*For "3D effect"*/
    box-shadow: 0 2px 4px var(--box-shadow-color3);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-heading {
    margin: 0;
    text-align: left;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-family: var(--heading-font);
    color: var(--font-color-light);
}

/* Logo in header */
.brand {
    text-decoration: none;
    color: inherit;
    height: auto;
    display: block;
}

#header-logo {
    max-width: 2rem;
}

/* Language switch */
.language-switch {
    position: absolute;
    top: 0.4rem;
    right: 1rem;
    font-size: 0.9rem;
    z-index: 11;
}

.language-switch a {
    text-decoration: none;
    color: var(--font-color-light);
    opacity: 0.7;
}

.language-switch a.active {
    font-weight: 600;
    opacity: 1;
}

header a {
    text-decoration: none;
    color: inherit;
}

#navbar a:active {
    font-size: 1.2rem;
    color: var(--link-color);
    text-decoration: underline;
}

.current {
    border-bottom: 2px groove #ac989d;
}

/* Navbar dropdown toggle style for small screens */
nav {
    /* To seperate from parent element: header */
    position: absolute;
    /* styles like header*/
    background-color: var(--background-color-header);
    padding: 0 1rem;
    box-shadow: 0 3px 3px var(--box-shadow-color3);
    /* To hide unless toggled, i.e. checkbox input checked */
    display: none;
    /* To not to cover the h1 header when dropdown menu toggled.*/
    top: 100%;
    /* Fill out screen width*/
    left: 0;
    right: 0;
    z-index: 5;
}

/* Pseudo-class chacked to toggle when burger menu activated, i.e. checkbox input checked. Tilde to target adjoining nav element.*/
#navbar-toggle:checked~nav {
    display: block;
}

/* To hide the checkbox */
#navbar-toggle {
    display: none;
}

/* Enlargen navbar-toggle-label to make it easier to target */
.navbar-toggle-label {
    font-size: 2rem;
    /* Push Burger Menu Icon under Language switch */
    position: absolute;
    right: 1rem;
    top: 2rem;
    z-index: 11;
    color: var(--font-color-light);
}

#navbar {
    font-size: 1.1rem;
    letter-spacing: 2px;
    list-style-type: none;
    text-align: right;
    margin-right: 1.5rem;
    color: var(--font-color-light);
}

#navbar li {
    margin-bottom: 1em;
}

/* Main content ---------------------------------------------------------------------------------*/
main {
    background-color: var(--background-color-main);
    /* Push Footer down */
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    /* Push down from header */
    padding-top: 0;
    padding-bottom: 1rem;
}

.active {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.box-center {
    display: flex;
    justify-content: center;
    text-align: center;
}

.box-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
}

/* Hero image section ---------------------------------------------------------------------------*/

#hero-image {
    width: 100%;
    height: clamp(320px, 75vw, 680px);

    background: url("../images/hero-image.webp") no-repeat center;
    background-size: contain;
    background-color: var(--background-color-header);

    margin-bottom: 0;
}

#hero-text {
    position: static;
    width: min(900px, 90%);
    margin: 0 auto;
    padding: 10px 20px;
}

#hero-text h1 {
    font-size: clamp(1.4rem, 2.5vw, 2.3rem);
}

#hero-text h2 {
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-style: italic;
}

/* Home page - General information -------------------------------------------------------------*/

/* Acronym */

.acronym {
    font-size: 1.3em;
    font-weight: 700;
    font-family: var(--heading-font);
}

.box-left ul {
    list-style: none;
    padding-left: 0;
}

.box-left li::before {
    content: "* ";
}

.box-left li {
    white-space: nowrap;
}

/* general */

.box {
    padding: 0 0 10px 0;
    border-bottom: 1.6px groove silver;
}

.box:last-child {
    border-bottom: none;
}

.btw-section {
    margin-top: auto;
    margin-bottom: 0;
    padding-bottom: 0;
}

.btw-info {
    text-align: center;
    font-weight: 200;
    font-style: italic;
}

.service-title {
    text-align: center;
}

.service-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.service-box ul {
    padding-left: 24px;
}

/* left column: fixed width */
.service-image-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.service-image {
    width: 75%;
    max-width: 300px;
    height: auto;
    display: block;
}

/* Contact --------------------------------------------------------------------------------------*/

.box-contact {
    text-align: center;
    padding: 5%;
    margin-top: 40px;
    line-height: 1.2;
    border: none;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(200, 200, 200, 0.25);
}

.contact-container {
    text-align: center;
    max-width: 90%;
}

.contact-container h2 {
    text-align: center;
}

/* Team ---------------------------------------------------------------------------------------- */
.team-section {
    display: grid;
    gap: 2rem;
}

.team-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px groove silver;
}

.team-image-box {
    display: flex;
    justify-content: center;
}

.team-image {
    width: min(100%, 320px);
    height: auto;
    display: block;
    border-radius: 6px;
}

.team-content {
    max-width: 700px;
}

/* Privacy Policy -------------------------------------------------------------------------------*/
.privacy-policy h2 {
    font-family: var(--text-font);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
}

.privacy-policy ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Footer ---------------------------------------------------------------------------------------*/
footer {
    background-color: var(--background-color-footer);
    box-shadow: 0 -3px 3px var(--box-shadow-color1);
}

.footer-inner {
    display: flex;
    justify-content: space-evenly;
    padding: 10px 0;
    list-style-type: none;
}

.footer-inner li {
    text-align: center;
}

.footer-inner a {
    color: var(--font-color-light);
    text-decoration: none;
    font-weight: 400;
    min-height: 40px;
}

.footer-inner a:hover {
    text-decoration: underline;
}

.footer-inner a:visited {
    color: var(--font-color-light);
}

.footer-inner i {
    font-size: 1.2rem;
    padding: 0.2rem;
    transition: 0.2s ease;
}

.footer-inner a:hover i {
    transform: scale(1.1);
}

/* Media queries ------------------------------------------------------------------------------------------------------------*/

@media (max-width: 360px) {

    /* Company name in two lines until space allows */
    .header-heading span {
        display: block;
    }
}

/* Media query: screens ≥ 768px (tablets)---------------------------------------------- */
@media screen and (min-width: 768px) {
    h2 {
        text-align: center;
    }

    h3 {
        text-align: left;
    }

    header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 1.25rem;
        padding: 0.75rem 1rem;
        height: var(--header-height);
    }

    .header-top {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
    }

    .header-heading {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        text-align: left;
        align-self: center;
        justify-self: flex-start;
    }

    nav {
        grid-column: 3;
        grid-row: 1;
        position: static;
        display: block;
        width: auto;
        padding: 0;
        box-shadow: none;
        align-self: center;
        justify-self: end;
        margin-top: 1rem;
        /* optional, falls wegen language switch etwas Luft nötig ist */
    }

    #navbar {
        display: flex;
        gap: 1rem;
        margin: 0;
        padding: 0;
        list-style: none;
        background: none;
    }

    #navbar a:hover {
        border-bottom: 2px groove #ac989d;
    }

    #navbar li {
        margin: 0;
    }

    .navbar-toggle-label {
        display: none;
    }

    .language-switch {
        position: static;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: start;
        font-size: 0.9rem;
    }

    /* Main section ---------------------------*/

    .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 20px 24px;
    }


    #hero-text {
        margin: 10px auto;
    }

    /* Home page - Partner companies section ---*/

    .service-box {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .service-image-box {
        width: auto;
        flex: 0 0 120px;
        justify-content: flex-start;
    }

    .service-box-content {
        flex: 1;
    }

    .service-image {
        width: 100%;
        max-width: 120px;
        height: auto;
        display: block;
    }

    .service-box-content {
        padding-left: 20px;
    }

    /* Contact -----------------------------*/
    .contact-container {
        max-width: 70%;
    }

    .btw-section {
        margin-top: auto;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Team---------------------------------- */
    .team-card {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }

    .team-image-box {
        justify-content: flex-start;
    }

    .team-content {
        max-width: none;
    }

    .team-content h2 {
        text-align: left;
    }
}

/* Media query: screens ≥992px (laptops, desktops)--------------------------------------*/
@media screen and (min-width: 992px) {
    /* Home page - General information ------------*/

    .service-box {
        flex-direction: row;
        gap: 2rem;
    }

    .service-image-box {
        flex: 0 0 140px;
        justify-content: flex-start;
    }

    .service-image {
        max-width: 140px;
    }

    /* Contact -----------------------------*/
    .contact-container {
        max-width: 60%;
    }

    .btw-section {
        margin-top: auto;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* Media query: screens ≥1200px (laptops, desktops)------------------------------------*/
@media screen and (min-width: 1200px) {
    #hero-text {
        max-width: 900px;
        width: 90%;
    }

    /* Home page - General information ---------------*/
    .container {
        max-width: 1200px;
        margin: 20px auto;
        padding: 0 24px;
    }

    .service-image {
        max-width: 180px;
    }

    .btw-section {
        margin-top: auto;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* Media query: screens ≥1400px (XL desktops)------------------------------------------*/
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}