/*
Theme Name: Naturwerk
Theme URI: www.naturwerk.ch
Author: Thomas Brändle
Author URI: https://thomas-braendle.com
Version: 1.0.0
*/


/* ### Allgemeine Variablen ### */

@font-face {
    font-family: 'Schibsted';
    font-style: normal;
    font-weight: normal;
    src: url("./font/SchibstedGrotesk-VariableFont_wght.ttf") format('truetype');
}

:root {
    --primary-color: #33513C;
    --secondary-color: #B1AED6;
    --border-color: #707070;
    --background-color: #fff;
    --text-color: #707070;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ### Allgemeine Angaben ### */

h1,
h2,
h3,
h4,
h5,
h6,
p,
.wpforms-field-label {
    color: var(--text-color) !important;
    padding: 0.5em;
}

.wpforms-field-label {
    padding-left: 0.5em !important;
}

li {
    color: var(--text-color);
    margin-left: 2em;
}

ul {
    padding-bottom: 0.5em;
    padding-top: 0.5em;
}

h1 {
    font-size: 35px;
}

h2 {
    font-size: 25px;
}

h3,
h4,
h5,
h6 {
    font-size: 18px;
    padding-bottom: 0em;
    padding-top: 0em;
}

h3 {
    text-decoration: underline;
}

h4 {
    font-style: italic;
}

h5 {
    font-style: italic;
    text-decoration: underline;
    font-weight: normal;
}

p,
li {
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .page:first-child {
        display: none;
    }
}

html {
    background-color: var(--background-color);
    background-image: url("./medien/background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    scroll-behavior: smooth;
}

body,
html {
    font-family: 'Schibsted', 'Arial', 'sans-serife';
}

body {
    max-width: 1315px;
    margin: 0 auto;
}

section {
    background-color: var(--background-color);
    margin-top: 15vh;
    margin-bottom: 2em;
    padding: 1em;
}

.featured-image {
    width: 100%;
    height: 30em;
}

.featured-image img {
    padding: 1em;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    padding: 20px;
}

.wp-block-table table {
    height: 80vh;
}

.wp-block-columns {
    margin: 1em;
}

.wp-block-list {
    margin-left: 2em;
}

.wp-block-list li {
    list-style-type: disc;
}


/* ### WP-Forms ### */


/* ========== Grundlegende Felder ========== */

.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="url"],
.wpforms-form input[type="number"],
.wpforms-form input[type="password"],
.wpforms-form select,
.wpforms-form textarea {
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 0.75em;
    box-sizing: border-box;
}


/* ========== Button stylen ========== */

.wpforms-container-full button[type="submit"],
.wpforms-container-full input[type="submit"] {
    background-color: var(--secondary-color) !important;
    color: var(--background-color) !important;
    padding: 0.75em 1.5em !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 1em !important;
    transition: background-color 0.3s ease !important;
    width: 100% !important;
}

.wpforms-form button[type="submit"]:hover,
.wpforms-form input[type="submit"]:hover {
    filter: brightness(0.9) !important;
}


/* ========== Layout Desktop: Label links, Feld rechts ========== */

.wpforms-form .wpforms-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
}


/* Label links */

.wpforms-form .wpforms-field label {
    width: 45%;
    margin-right: 5%;
    text-align: left;
    font-weight: bold;
}


/* Feld rechts */

.wpforms-form .wpforms-field input,
.wpforms-form .wpforms-field select,
.wpforms-form .wpforms-field textarea {
    width: 50%;
}


/* ========== Mobile-Version: Stacken ========== */

@media (max-width: 768px) {
    .wpforms-form .wpforms-field {
        flex-direction: column;
        align-items: stretch;
    }
    .wpforms-form .wpforms-field label {
        width: 100%;
        margin: 0 0 0.5em 0;
    }
    .wpforms-form .wpforms-field input,
    .wpforms-form .wpforms-field select,
    .wpforms-form .wpforms-field textarea {
        width: 100%;
    }
}


/* ### Header-Menü ### */

nav {
    background-color: var(--background-color);
    width: 100%;
    font-size: 25px;
    z-index: 10;
    transition: 0.4s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 150px;
}

.menu {
    max-width: 1315px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    nav {
        width: 100%;
    }
}

.stickyNav {
    height: 100px;
    transition: 0.4s;
}

.stickyNav div {
    top: 50px !important;
    transition: 0.4s;
}

@media screen and (min-width: 1425px) {
    nav {
        right: 180px;
    }
}

@media screen and (max-width: 1200px) {
    nav {
        font-size: 18px !important;
        right: 15px;
    }
}

@media screen and (max-width: 576px) {
    .menu li {
        padding-right: 80px;
    }
    .stickyNav {
        height: 90px;
        transition: 0.4s;
    }
}

.menu-hauptmenu-container {
    transition: 0.4s;
    position: fixed;
    top: 70px;
    right: 0;
    float: right;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .menu-hauptmenu-container {
        float: none;
        display: block;
    }
}

@media screen and (max-width: 768px) {
    li {
        margin-left: 0 !important;
    }
    .menu-hauptmenu-container li {
        float: none !important;
        display: block;
        position: relative;
        width: 100%;
        top: 70px;
    }
}

.menu-hauptmenu-container a {
    color: var(--border-color);
    text-decoration: none;
    padding: 5px 25px 5px 25px;
    margin: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: 0.2s;
}

@media screen and (max-width: 768px) {
    .menu-hauptmenu-container a {
        margin: 0px !important;
        padding: 10px;
        border-bottom: 1px solid var(--secondary-color);
        background-color: white;
    }
}

.menu-hauptmenu-container li {
    float: right;
    list-style-type: none;
}

.menu-hauptmenu-container a:visited,
.menu-hauptmenu-container a:link {
    color: var(--border-color);
    text-decoration: none;
}

.menu-hauptmenu-container a:hover,
.menu-hauptmenu-container a:active {
    border-bottom: 3px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    transition: 0.2s;
}

.overlayFull {
    z-index: 5 !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
}

#myHeader {
    position: relative;
    z-index: 100;
}

.logo img {
    height: 90px;
    display: flex;
    position: fixed;
    top: 40px;
    transition: 0.4s;
}

.logo img:hover,
.logo img:active,
.logoSticky img:hover,
.logoSticky img:active {
    transform: scale(1.1);
    transition: 0.4s;
}

.logoSticky img {
    position: fixed;
    top: 40px;
    height: 50px;
    transition: 0.4s;
}

@media screen and (max-width: 992px) {
    .logo img {
        height: 70px;
    }
}

@media screen and (max-width: 768px) {
    .logoSticky img {
        height: 40px;
    }
}

.icon {
    display: none;
}

@media screen and (max-width: 768px) {
    .menu-hauptmenue-container {
        font-weight: bold;
        font-size: 25px;
    }
}

@media screen and (max-width: 768px) {
    .icon {
        color: var(--border-color);
        position: absolute;
        top: 0;
    }
}

@media screen and (max-width: 768px) {
    .icon:hover,
    .icon:active {
        color: var(--border-color);
    }
}

@media screen and (max-width: 768px) {
    .menu-hauptmenu.responsive a {
        float: none;
        display: block;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .menu-hauptmenu-container a {
        display: none;
    }
}

.icon {
    position: absolute;
    right: 15px;
    top: 45px;
    margin-right: 20px;
}

@media screen and (max-width: 768px) {
    .icon {
        float: right;
        display: block;
        font-size: 30px;
    }
}

.fab {
    margin-right: 10px;
}

@media screen and (max-width: 768px) {
    /* Menü-Container anpassen - Beispiel hier nimmt den ul-Container */
    nav ul {
        display: flex;
        flex-direction: column-reverse;
        /* Hier wird die Reihenfolge umgedreht */
    }
}


/* ### Header ### */

.bloginfo li,
.sozialMediaHome li {
    list-style: none;
    float: left;
}

@media screen and (max-width: 576px) {
    .sozialMediaHome li {
        margin-bottom: 40px;
    }
}

.bloginfo {
    display: flex;
    position: absolute;
    bottom: 30px;
    left: 20px;
    padding: 0;
}

@media screen and (max-width: 576px) {
    .bloginfo {
        margin-top: 20px;
    }
}

@media screen and (min-width: 1425px) {
    .bloginfo {
        left: 180px;
    }
}

@media screen and (max-width: 1425px) {
    .bloginfo {
        left: 20px;
    }
}

.infoName {
    font-size: 28px;
}

@media screen and (max-width: 576px) {
    .bloginfo h3 {
        font-size: 75%;
    }
}

@media screen and (max-width: 576px) {
    .infoName {
        font-size: 20px;
    }
}

.sozialMediaHome {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

@media screen and (min-width: 1425px) {
    .sozialMediaHome {
        right: 180px;
    }
}

@media screen and (max-width: 1425px) {
    .sozialMediaHome {
        right: 20px;
    }
}

.sozialMediaHome img {
    padding: 20px;
    height: 70px;
    transition: 0.2s;
}

.sozialMediaHome img:hover,
.sozialMediaHome img:active {
    transform: scale(1.2);
    transition: 0.2s;
}

@media screen and (max-width: 768px) {
    .sozialMediaHome img {
        height: 45px;
        padding: 10px;
    }
}


/* ### Footer ### */

.footer,
.metaMenu a {
    height: 70px;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    color: var(--border-color);
    text-align: center;
    transition: 0.2s;
}

@media screen and (max-width: 992px) {
    .footer {
        height: auto;
    }
}

.metaMenu li {
    list-style: none;
    text-decoration: none;
    padding: 0px 8px 0px 8px;
}

.metaMenu a:visited,
.metaMenu a:link {
    color: var(--border-color);
    text-decoration: none;
}

.metaMenu a:hover,
.metaMenu a:active {
    color: var(--secondary-color);
    transition: 0.2s;
}

.footer li {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    list-style: none;
    width: 50%;
}

@media screen and (max-width: 992px) {
    .footer li {
        width: 100%;
        margin: -10px;
    }
}

.footer ul {
    padding: 0 !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.footer p {
    padding-right: 15px;
    padding-left: 35px;
}

@media screen and (max-width: 992px) {
    .footer p {
        padding: 0;
    }
}

.footerIcon img {
    height: 20px;
}

.footerNameIcon {
    display: flex;
}

@media screen and (max-width: 992px) {
    .footer {
        height: auto;
        flex-direction: column;
    }
    .footer ul {
        flex-direction: column;
        /* Stapeln */
        align-items: center;
    }
    .footer li {
        width: 100%;
    }
    .footer p {
        padding: 0;
    }
    .metaMenu {
        flex-direction: column;
    }
}


/* ### Spezielles ### */

.HomeMenu {
    padding: 1em;
}

.HomeMenu a {
    color: var(--background-color);
    text-decoration: none;
    padding: 5px 25px 5px 25px;
    margin: 4px;
    transition: 0.2s;
}

.HomeMenu a:hover,
.HomeMenu a:active {
    border-bottom: 3px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    transition: 0.2s;
}

.HomeMenu .wp-block-cover {
    border: 1px solid transparent;
    border-radius: 10px;
}

.wp-block-image img {
    border-radius: 10px;
    transition: 0.2s;
}

.wp-block-image:hover img {
    opacity: 0.6;
    transition: 0.2s;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.gallery-item {
    flex: 1 0 0%;
    box-sizing: border-box;
}


/* Bild selbst */

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}