/*
Theme Name: Brauerei Ernst Theme v5
Author: Kevin Adrian Bieri
Author URI: https://k3vin.ch
Description: WP-Theme OnePager für Brauerei Ernst mit Funktionalitäten über ACF-Fields Plugin und Shopify Verlinkung
Version: 5.0.1
Text Domain: brauereiernst-theme
*/


/* --- FONTS--- */

@font-face {
    font-family: 'Fredericka the Great';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/FrederickatheGreat-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Special Elite';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/SpecialElite-Regular.ttf') format('truetype');
}

:root{
    
    --fs_p: 2vh;
    --fs_h1: 10vh;
    --fs_h2: 4.5vh;
    --fs_h3: 3vh;
    --fs_h4: 3vh;
    --fs_small: 1.8vh;
    
    --ff_h1: 'Fredericka the Great', cursive;
    --ff_h2: 'Fredericka the Great', cursive;
    --ff_h3: 'Special Elite', cursive; 
    --ff_h4: 'Fredericka the Great', cursive;
    --ff_default: 'Courier Prime', monospace;
    
    --clr_black: black;
    --clr_white: white;
    --clr_grey: #212121;
    --clr_lightgrey: #D2D2D2;
}

body{
    font-family: var(--ff_default);
    font-size: var(--fs_p);
    color: var(--clr_white);
    background-color: var(--clr_black);
    line-height: 1.5rem;
    scroll-behavior: smooth;
}


h1{
    font-size: var(--fs_h1);
    font-family: var(--ff_h1);
    font-weight: 200;
    line-height: 8rem;
    font-variant: small-caps;
    margin-bottom: 50px;
	line-height: 5rem;
}

h2{
    font-family: var(--ff_h2);
    font-size: var(--fs_h2);
    font-weight: 200;
    font-variant: small-caps;
}

h3{
    font-family: var(--ff_h3);
    font-size: var(--fs_h3);
    line-height: 2em;
    font-weight: 550;
}

h4{
    font-family: var(--ff_h1);
    font-size: var(--fs_h3);
    line-height: 2em;
}

a{
    text-decoration: none;
    color: var(--clr_white);
}

.page a{
    text-decoration: underline;
    color: var(--clr_black);
}

p.inline-space{
    margin: 10px 0;
}


/* ------ Main Positioning--------- */

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

body{
    height: -webkit-fill-available;
    height: 100vh;
}


/*  PAGE.PHP */

.page{
    min-height: 100vh;
    max-height: fit-content;
    background-color: var(--clr_white);
    color: var(--clr_black);
    padding: 10vw;
}

.page .content{
    align-items: flex-start;
}

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


.main-grid{
    display: grid;
    grid-template-columns: 10vw 1fr 1fr 1fr 1fr 10vw;
}


section{
    min-height: 100vh;
    height: fit-content;
}

section.split-section .left-row{
    grid-column: 2 / 4;
    padding: 100px 50px 100px 0;
}

section.split-section .right-row{
    grid-column: 4 / 6;
    padding: 100px 0px 100px 50px;
}

section.split-section .split-img{
    overflow: hidden;
    padding: 0;
}

section.split-section .right-row.split-img{
    grid-column: 4 / 7;
}

section.split-section .left-row.split-img{
    grid-column: 1 / 4;
}

section.split-section .left-row.split-img img,
section.split-section .right-row.split-img img{
    max-width: 100%;
    object-fit: cover;
    height: 100%;
}

/* ----- Header----- */
/* -------------------------------------------------------- */

.menu{
    position: fixed;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.322)

}

nav.menu ul{
    width: 100%;
    grid-column: 2/6;

    display: flex; 
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    list-style: none;
    padding: 20px 0px;
}

nav li:hover {
    font-size: calc(var(--fs_p) + 0.5vh)
  }

.burger-btn{
    width: 40px;
    height: 40px;
    float: right;
}

 #burgermenu-btn{
    cursor: pointer;
    position: fixed;
    right: 0;
    display: none;
    z-index: 2;
 }


#burgermenu-back-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0;
}

#burgermenu-back-btn p{
    font-size: var(--fs_h2);
    font-family: var(--ff_h1);
    font-weight: 200;
    line-height: 8rem;
    font-variant: small-caps;

}

.burger-menu{
    position: fixed;
    height: 100vh;
    width: 100%;
    background-color: var(--clr_black);
    font-size: var(--fs_h2);
    font-family: var(--ff_h1);
    font-weight: 200;
    line-height: 5rem;
    font-variant: small-caps;
    text-align: center;
    z-index: 3
}

.burger-menu ul{
    list-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.hidden{
    display: none;
}



/* ----- HOME----- */
/* -------------------------------------------------------- */


section.home{
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.logo_home_container{
    width: 30%;
    position: relative;
}

.logo_home_container a,
.logo_home_container img{
    display: block;
    max-width: 100%;
    height: 100%;
    z-index: 2;
}

/* Logo Shadow */

.logo_shadow_circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 0%, rgba(169,169,169,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.custom-logo-link img {
    position: relative;
    z-index: 1; 
}


/* HOME-CAROUSEL */

.home{
    background-color: var(--clr_black);
    background-position: center;
    background-size: cover;  

}

.homeslide0{
    background-image: url("img/heroslider/bg_home0.jpg");
}

.homeslide1{
    background-image: url("img/heroslider/bg_home1.jpg");
}

.homeslide2{
    background-image: url("img/heroslider/bg_home2.jpg");
}

.homeslide3{
    background-image: url("img/heroslider/bg_home3.jpg");
}

.homeslide4{
    background-image: url("img/heroslider/bg_home4.jpg");
}

.homeslide5{
    background-image: url("img/heroslider/bg_home5.jpg");
}


.transition-class {
    opacity: 1;
    transition: opacity 2s ease-in-out;
  }
  
  .transition-class-hidden {
    opacity: 0;
    transition: opacity 2s ease-in-out;
  }


/* NEWS */
/* -------------------------------------------------------- */

section.news{
    min-height: fit-content;
    background-color: var(--clr_white);
}

section.news .content{
    grid-column: 2/6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: var(--clr_black);
    padding: 100px 0 100px 0;
}


/* About Us */
/* -------------------------------------------------------- */
section.aboutus{
    background-color: var(--clr_white);
    color: var(--clr_black)
}



/* Sortiment / Shop Collection Cards */
/* -------------------------------------------------------- */

#sortiment{
  min-height: 35vh;
}

.sortiment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
    width: 100%;
    gap: 20px;
    padding: 40px 20px;
    background-color: #777;
}

.collection-tile {
    position: relative;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 400px;
    min-width: 400px;
}

.collection-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.collection-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.collection-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-content {
    padding: 20px;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.collection-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.collection-cta {
    display: inline-block;
    padding: 12px 24px;
    background-color: #333;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    border-radius: 4px;
}

.collection-cta:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    .sortiment {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 20px 15px;
    }

    .collection-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .sortiment {
        grid-template-columns: 1fr;
    }

    .collection-image-wrapper {
        height: 180px;
    }
}



/* --- PARTNER --- */
/* -------------------------------------------------------- */

section.partner{
    height: fit-content;
    background-color: var(--clr_black);
    padding-bottom: 10vh;
}

.partner-container{
    grid-column: 2 / 6;
    display: grid;
    grid-template-columns: 1fr 1fr;
}


.partner-box{
    width: 100%;
    height: 100%;
    padding: 100px;
}


.partner_text{
    text-align: center;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}
 


.partner_logo_container{
    height: 300px;
    width: 100%;
}

.partner_logo_container a{
    display: block;
    height: 100%;
    width: 100%;
}


.partnerlogo{
    height: 100%;
    width: 100%;
    object-fit: contain;
}



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

/* Google Badge */
.grecaptcha-badge {
    display: none;
}

section.kontakt{
    background-color: var(--clr_black);
}


form{
    width: 100%;
    max-width: 100%;
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px
}

input{
    max-width: 100%;
    height: 50px;
    background: none;
    border: none;
    border-bottom: 1px solid white;
    font-size: var(--fs_p);
    color: var(--clr_white);
    font-family: var(--ff_default);
    vertical-align: bottom;
}

input:focus{
    
    border: 1px solid var(--clr_lightgrey);
}

textarea{
    height: 100px;
    grid-column: span 2;
    background: none;
    border: 1px solid white;
    font-size: var(--fs_p);
    color: var(--clr_white);
    font-family: var(--ff_default);
    vertical-align: bottom;
}

.btn_container{
    width: 100%;
    grid-column: span 2;
  }

.sendButton {
    width: 100%;
    background-color: none;
    border-radius: none;
	border:2px solid var(--clr_white);
    padding: 20px;
    cursor:pointer;
	color: var(--clr_black);
	font-family: var(--ff_default);
	font-size:20px;
    font-weight: 900;
    letter-spacing: 2px;
}

.sendButton:hover {
	background:linear-gradient(to bottom, var(--clr_white) 5%, var(--clr_lightgrey) 100%);
	background-color:#ccc2a6;
}
.sendButton:active {
	position:relative;
	top:2px;
}
/* .kontakt_footer{
    margin-top: 100px;
} */

.adressen-container{
    margin-top: 50px;
    margin-bottom:  30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.privacy-policy-note{
    font-size: 12px;
    grid-column: 1 / 3;
}

.privacy-policy-note a{
    text-decoration: underline;
}

/* Abstand für Privacy-Policy weniger als Row-Gap: */
form > :nth-child(7) {
    margin-bottom: -45px;
  }


  /* MAIL SCHUTZ */
/* -------------------------------------------------------- */

._hp{
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -5;
  }

/* GOOGLE MAPS */
/* -------------------------------------------------------- */

#map{
    width: 100%;
    height: 100%;
}

section.maps{
    height: 70vh;
    max-height: 70vh;
    min-height: 70vh;
}

.infowindow-content {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.infowindow-content h3 {
    font-size: 16px;
    margin: 0 0 5px;
}
.infowindow-content p {
    margin: 0;
}
.infowindow-content a {
    color: #1a73e8;
    text-decoration: none;
}
.infowindow-content a:hover {
    text-decoration: underline;
}


/* FOOTER */


footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 140px;
    padding-top: 2vh;
    padding-bottom: 1vh;
}

.footer_logo_container{
    height: 85%;
    flex-basis: 30%;
}

.footer_logo_container img{
    height: 65%;
    width: 100%;
    object-fit: contain;
}

footer .custom-logo-link{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer_impressum{
    flex-basis: 30%;
}

.footer_adresse_container{
    flex-basis: 30%;
}
.adresse{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 123%;
}

.footer_adresse{
    width: 45%;
    font-size: var(--fs_small);
}


footer{
    border-top: 2px solid var(--clr_lightgrey);
    background-color: var(--clr_black);
    color: var(--clr_white);
    font-size: var(--fs_small);
    line-height: 1rem;
    font-size: 12px;
}




