/* Theme Name: Haudegen Theme
Version: 2.0
Author: Haudegen Webdesign
Author URI: https://haudegen-webdesign.de */

/* ----------------------------------------
   FONTS
   Font-Dateien in /fonts ablegen und Namen unten in --font setzen.
   Standard ist ein System-Stack, damit der Core ohne Assets laeuft.
---------------------------------------- */

/*
@font-face {
    font-family: 'Theme Font';
    src: url('fonts/theme-font-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Theme Font';
    src: url('fonts/theme-font-bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
*/


/* ----------------------------------------
   VARIABLEN
   Nur die wiederkehrenden Farbtypen. Projektspezifische Variablen
   bei Bedarf einzeln hier ergaenzen.
---------------------------------------- */

:root {
    --black: #171717;
    --white: #f6f6f6;
    --grey: #787878;
    --accent: #fdcb00;
    --contrast: #171717;
}


html {
    scroll-behavior: smooth;
}

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

body {
    overflow-x: hidden;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.8rem;
    color: var(--black);
}

body.fixed {
    overflow: hidden;
}

.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: 0.1s;
    background-color: black;
    transform: translateX(100vw);
    z-index: 3;
}

body.fixed .body-overlay {
    opacity: 0.8;
    transform: translateX(0);
}

img {
    max-width: 100%;
    height: auto;
}

.desktop-only {
    display: none;
}




/*----------------------------------------
----------------TYPOGRAPHY----------------
----------------------------------------*/

.headline, h1, h2, h3, h4, h5, h6 {
    font-size: 1.8rem;
    line-height: 2.4rem;
    font-weight: 700;
}

.headline.subheadline, .headline.mini-headline {
    font-size: 1.2rem;
    line-height: 1.6rem;
    font-weight: 700;
}

.bold, strong, .headline-p.bold, p.bold {
    font-weight: 700;
}

p, .headline-p, input, a, address, .wpcf7-response-output, textarea, ul, li {
    font-size: 1rem;
    font-weight: normal;
    color: var(--black);
    line-height: 1.8rem;
}

ol, ul {
    padding-left: 15px;
}

li {
    margin-top: 10px;
}

.align-center {
    text-align: center;
}

a {
    text-decoration: none;
}

.black { color: var(--black); }
.white, .white p { color: var(--white); }
.accent { color: var(--accent); }
.contrast { color: var(--contrast); }
.grey, .grey p { color: var(--grey); }

.underline {
    text-decoration: underline;
}



/*---------------BUTTON--------------*/

.button, .wpcf7-submit {
    padding: 3px 30px;
    position: relative;
    z-index: 1;
    transition: 0.3s;
    color: var(--black);
    font-weight: 700;
    background-color: var(--accent);
    border-radius: 25px;
    border: none;
    display: inline-block;
    cursor: pointer;
}

.button.contrast {
    background-color: var(--contrast);
    color: var(--white);
}

.wpcf7-submit {
    padding: 4px 30px;
}




/*----------------------------------------
-------------MARGIN & PADDING-------------
----------------------------------------*/

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.section-padding {
    padding: 40px;
}




/*----------------------------------------
---------------FLEX & GRID----------------
----------------------------------------*/

.double-grid, .triple-grid {
    display: grid;
}

.flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flex-start { align-items: flex-start; }
.flex-end { align-items: flex-end; }

.flex-horizontal {
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.relative { position: relative; }

.absolute {
    position: absolute;
    top: 0;
    left: 0;
}

.gap-40 { gap: 40px; }
.gap-20 { gap: 20px; }
.gap-10 { gap: 10px; }
.gap-5 { gap: 5px; }

.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }

.overflow-hidden {
    overflow: hidden;
}

.max-width {
    max-width: 700px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

.max-width-1100 {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.max-width-1400 {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.image-div {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-div img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.white-bg { background-color: var(--white); }
.black-bg { background-color: var(--black); }
.grey-bg { background-color: #f1f1f1; }

.background {
    background-size: cover;
    background-position: center;
}




/*----------------------------------------
------------------HEADER------------------
----------------------------------------*/

header {
    overflow: hidden;
    position: relative;
}

#navi-big {
    display: none;
}

#header-bar {
    position: relative;
    z-index: 5;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.logo-box {
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    width: 170px;
}

#menue-box {
    position: relative;
    cursor: pointer;
}

#navi-small {
    width: 80vw;
    height: 60vh;
    position: fixed;
    z-index: 4;
    top: 20vh;
    left: 10vw;
    transform: translateX(100%);
    transition: 0.4s ease-in-out;
    opacity: 0;
    overflow: hidden;
    background-color: white;
    border: solid 1px var(--accent);
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

#navi-small.aktiv {
    transform: translateX(0);
    opacity: 1;
}

.navi-small-box {
    margin: 0 20px;
}

.navi-punkt {
    font-size: 1.4rem;
}

.second-header-bar {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 5px 40px;
    background-color: var(--black);
    position: relative;
    z-index: 5;
}

.second-header-bar-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.second-header-icon {
    width: 20px;
    height: 20px;
}




/*------------------------------------------
-----------------ANIMATION------------------
------------------------------------------*/

.transform {
    opacity: 0;
}

.transform.aktiv {
    animation-fill-mode: forwards;
    animation-duration: 1s;
}

.transform-small.aktiv {
    animation-name: transform-small;
}

.transform-middle.aktiv {
    animation-name: transform-middle;
}

.transform-big.aktiv {
    animation-name: transform-big;
}

@keyframes transform-small {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes transform-middle {
    0% { transform: translateY(300px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes transform-big {
    0% { transform: translateY(500px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}




/*----------------------------------
-----------------FAQ----------------
----------------------------------*/

.faq-icon {
    width: 25px;
    margin-left: 10px;
    transition: 0.5s;
}

.faq-icon.activated {
    rotate: 45deg;
}

.faq-question {
    display: flex;
    padding: 10px;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
}

.faq-answer {
    max-height: 0px;
    overflow: hidden;
    transition: 0.6s;
}

.faq-answer p {
    opacity: 0;
    transition: 0.6s;
    margin: 20px;
}

.faq-answer.activated {
    max-height: 1350px;
}

.faq-answer.activated p {
    opacity: 1;
}




/*----------------------------------
----------------KONTAKT-------------
----------------------------------*/

.wpcf7-form {
    position: relative;
    z-index: 1;
}

.wpcf7-form-control:not(.wpcf7-submit) {
    border: solid 1px #ccc;
    outline: none;
    width: 300px;
    padding-left: 5px;
}

.wpcf7-list-item {
    margin: 5px 0 0 -5px !important;
}

.wpcf7-submit {
    margin-top: 20px;
    z-index: 2;
}

.wpcf7-submit, .wpcf7-acceptance {
    border: none;
}

textarea {
    height: 200px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border: 2px solid var(--accent) !important;
    border-color: var(--accent) !important;
}




/*----------------------------------
----------------SWIPER--------------
----------------------------------
 Nur die Basis, die jeder Slider teilt. Slider-spezifisches CSS
 (Hoehen, Breakpoints, Navigations-Pfeile) kommt inline ins jeweilige
 Slider-Template. */

.swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.swiper-pagination-bullet {
    background-color: var(--accent);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent) !important;
    opacity: 1;
}




/*----------------------------------
----------------FOOTER--------------
----------------------------------*/

footer {
    padding: 60px 30px;
    background-color: var(--black);
}

.footer-grid {
    display: grid;
    gap: 40px;
}

footer .flex {
    margin-bottom: auto;
}

.footer-logo {
    width: 260px;
}




@media(min-width: 800px) {

    .headline {
        font-size: 35px;
        line-height: 50px;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 25px;
        line-height: 33px;
    }

    .subheadline {
        font-size: 20px;
        line-height: 30px;
    }

    p, .headline-p, input, a, address, .wpcf7-response-output {
        font-size: 15px;
        line-height: 30px;
    }

    .button, .wpcf7-submit {
        padding: 3px 50px;
    }

    .section-padding {
        padding: 60px 120px;
    }

    #header-bar {
        padding: 10px 120px;
    }

    .second-header-bar {
        padding: 5px 120px;
    }

    .logo {
        width: 210px;
    }

    #navi-small {
        width: 50vw;
        left: 25vw;
        height: 50vh;
        top: 25vh;
    }

    .wpcf7-form-control:not(.wpcf7-submit) {
        width: 330px;
    }

}




@media(min-width: 1200px) {

    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    .headline {
        font-size: 35px;
        line-height: 45px;
    }

    .section-padding {
        padding: 120px;
    }

    #header-bar {
        padding: 10px 120px;
    }

    .second-header-bar {
        padding: 5px 120px;
    }

    #navi-small, #menue-box {
        display: none;
    }

    #navi-big {
        display: flex;
        gap: 40px;
        align-items: center;
    }

    .double-grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 80px;
    }

    .triple-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 80px;
    }

    textarea {
        height: 150px;
    }

    .wpcf7-form-control:not(.wpcf7-submit) {
        width: 600px;
    }

}




@media(min-width: 1600px) {

    .section-padding {
        padding: 100px 12vw;
    }

    #header-bar {
        padding: 10px 12vw;
    }

    .second-header-bar {
        padding: 5px 12vw;
    }

}
