/*
Theme Name: Generatepress Child Theme
URI: https://my-blog-shop.de
Description: Ein GeneratePress Child Theme
Author: myblogshop
Author URI: https://my-blog-shop.de
Template: generatepress
Version: 1.0
*/

/*--------------------------------------------------------------
# Variablen
--------------------------------------------------------------*/

:root {
  --main-font-size: 1rem;
  --smaller-font-size: 0.8rem;
  --smallest-font-size: 0.6rem;
  --main-font-color: #000000;
  --error-color: #b20000;
  --brand-color: #293d7a;
  --boxed-page: 900px;
}

/*--------------------------------------------------------------
# Allgemein
--------------------------------------------------------------*/

body {
  font-family: "Open Sans", Sans-serif;
  font-size: var(--main-font-size);
  color: var(--main-font-color);
  background: #ffffff;
}

h1 {
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 2.2rem;
  text-align: center;
}

h3,
h4,
h5,
h6 {
  margin-bottom: 1em;
  font-weight: 600;
  font-size: 1rem;
}

h2 {
  font-weight: initial;
  font-size: 1.7rem;
}

h3 {
  font-size: 1.3rem;
}

.site-footer,
.main-navigation {
  border-top: 1px solid #eee;
}

.inside-site-info {
  justify-content: left;
}

.site-info {
  font-size: 0.7rem;
}

.site-info a,
.site-info a:hover {
  color: var(--main-font-color);
  text-decoration: none;
}

.main-navigation .main-nav ul li a {
  color: #908f8f;
  font-size: 0.8rem;
  font-weight: 600;
  border-top: 2px solid #ffffff;
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--main-font-color);
  border-top: 2px solid var(--brand-color);
}

a,
a:hover {
  color: #08552c;
  text-decoration: none;
}

.grid {
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  margin-top: 2em;
}

.boxed-page {
  max-width: var(--boxed-page);
  margin: auto;
}

/*--------------------------------------------------------------
# Contact Form 7
--------------------------------------------------------------*/

.wpcf7 form .wpcf7-response-output {
  text-align: center;
}

.wpcf7 label {
  font-weight: 600;
  font-size: 0.9rem;
}

input[type="submit"],
input[type="submit"]:hover {
  background: #08552c;
}

input.wpcf7-not-valid {
  border: 1px solid var(--error-color);
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 1em;
  position: relative;
  padding: 5px 8px;
  line-height: 1.2em;
  background-color: var(--error-color);
  color: #ffffff;
  max-width: 387px;
  font-size: 0.8rem;
}

.wpcf7 .wpcf7-not-valid-tip:after {
  bottom: 100%;
  left: 30px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(136, 183, 213, 0);
  border-bottom-color: var(--error-color);
  border-width: 10px;
  margin-left: -10px;
}

/*--------------------------------------------------------------
# CF7 Captcha Image
--------------------------------------------------------------*/

.captcha-image {
  border: 1px solid #ccc;
  background: #f7f8f9;
  padding: 10px;
  display: inline-block;
  text-align: center;
}

.cf7ic_instructions {
  display: block;
}

.captcha-image .cf7ic_instructions span {
  color: var(--main-font-color);
  font-weight: bold;
}

.captcha-image label {
  display: inline-block !important;
  width: 60px !important;
  position: relative;
}

.captcha-image label > input {
  opacity: 0;
  margin: 0;
  width: 50px;
  height: 50px;
  position: absolute;
}

.captcha-image svg {
  padding: 5px;
  width: 50px;
  height: 50px;
}

.captcha-image label > input + svg {
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.captcha-image label > input:checked + svg,
.captcha-image label > input:focus + svg {
  border: 2px solid #2fa30e;
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1rem;
  }
}

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: local(""), url("fonts/open-sans-v34-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  src: local(""), url("fonts/open-sans-v34-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  src: local(""), url("fonts/open-sans-v34-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 700;
  src: local(""), url("fonts/open-sans-v34-latin-700italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  src: local(""), url("fonts/open-sans-v34-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 600;
  src: local(""), url("fonts/open-sans-v34-latin-600italic.woff2") format("woff2");
}
