@import "fontawesome/css/all.css";

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-sizing: border-box;
  text-decoration: none;
  
}

:root {
  --main-p-color: #000;
  --half-main-p-color: rgba(0, 0, 0, .6);
  --accent-color: #B1180D;
  --heading-color: #616161;
  --white: #fff;
}

body {
  position: relative;
  font-size: 16px;
  font-family: 'Quicksand', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Quicksand', sans-serif;
  letter-spacing: .1em;
  line-height: 140%;
  color: var(--heading-color);
}

blockquote {
  padding: 20px 10px;
  border-left: 4px solid #9d9d9d;
  background-color: #dfdfdf;
  font-style: italic;
}

h1 {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: bolder;
}

h2 {
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 1.5rem;
  font-weight: bold;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.17rem;
  font-weight: bold;
}

h4 {
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: bold;
}

h5 {
  margin-bottom: 5px;
  font-size: .83rem;
  font-weight: bold;
}

h6 {
  margin-bottom: 5px;
  font-size: .71rem;
  font-weight: bold;
}

p {
  font-family: 'Quicksand', sans-serif;
  line-height: 140%;
  letter-spacing: .05em;
  font-size: 16px;
  color: #7b7b7b;
}

table,
table.wp-block-table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

table,
table.wp-block-table,
th,
td {
  border: 1px solid #ddd;
}

table.wp-block-table th {
  background-color: var(--main-p-color);
  color: #fff;
  padding: 10px 15px;
  letter-spacing: .05em;
}

table.wp-block-table td {
  padding: 15px 10px;
  vertical-align: middle;
  color: #7b7b7b;
}

dt {
  color: #616161;
  font-weight: bold;
  font-size: 1.2em;
  margin-left: 5px;
  margin-top: 10px;
}

dd {
  margin-left: 15px;
  margin-top: 5px;
}

abbr[title],
acronym[title] {
  border-bottom: 1px dotted;
}

cite {
  font-style: italic;
  white-space: normal;
}

pre {
  white-space: normal;
}

iframe {
  margin: 20px 0;
  display: block;
}

.site-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.page-entry a {
  color: var(--main-p-color);
  text-decoration: none;
}

.page-entry a:hover {
  color: #7b7b7b;
}

header ul,
footer ul {
  list-style:
    none;
}

.btn {

  padding: 10px 20px;
  border: 2px solid currentColor;
  transition: all .2s ease-in-out;
  margin: auto;
  color: inherit;
}

.btn:hover {
  color: var(--white);
  background-color: var(--main-p-color);
  border: 2px solid var(--main-p-color);
}

/*=====Header=======*/
header {
  z-index: 999;
  width: 100%;
  position: sticky;
  top: 0;
  background-color: var(--white);
}

header .site-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 10px;
  margin: auto;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

header .site-info {
  width: 100%;
  background-color: var(--accent-color);
  color: var(--white);
  text-align: center;
  padding: 5px 0;
}

header .site-info .site-container {
  justify-content: center;
}

header .site-info a,
header .site-info p {
  color: var(--white);
}

.site-logo,
.site-title {
  flex: 1;
}

.site-logo {
  max-width: 250px;
  max-height: 150px;
}

.site-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.site-title h1 {
  font-size: 1.5em;
  line-height: normal;
  letter-spacing: normal;
  margin-bottom: 0;
}

.site-title a {
  text-decoration: none;
}

header nav ul li a,
header nav ul li ul li a {
  font-size: 14px;
}

nav#site-navigation {
  flex: 3;
}

nav#site-navigation ul {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
}

nav#site-navigation ul li a::after {
  content: "";
  width: 0;
  height: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: auto;
  background-color: var(--main-p-color);
  transition: all .4s ease-in-out;
}

nav#site-navigation ul li a {
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  color: var(--main-p-color);
  position: relative;
}

nav#site-navigation ul li a:hover::after {
  width: 100%;
}

nav#site-navigation ul li.menu-item-has-children {
  position: relative;
}

nav#site-navigation ul li.menu-item-has-children::after {
  content: "";
  height: 7px;
  width: 7px;
  transform: rotate(45deg);
  border: 1px solid var(--main-p-color);
  position: absolute;
  border-top: 0;
  border-left: 0;
  top: 14px;
  left: 90%;
}

nav#site-navigation ul li.menu-item-has-children ul.sub-menu {
  position: absolute;
  top: 40%;
  left: -40%;
  width: 100%;
  min-width: 200%;
  flex-direction: column;
  background-color: var(--white);
  display: none;
  z-index: 999;
  box-shadow: 0 0 2px #c3c3c3;
}

nav#site-navigation ul li.menu-item-has-children ul.sub-menu li {
  border-bottom: 1px solid #eee;
  text-align: center;
  width: 100%;
  min-width: 100%;
}

nav#site-navigation ul li.menu-item-has-children:hover ul.sub-menu li a {
  width: 100%;
  min-width: 100%;
  display: block;
}

nav#site-navigation ul li.menu-item-has-children:hover ul.sub-menu {
  display: flex;
  animation: dropdown .4s forwards;
}

@keyframes dropdown {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
    top: 100%;
  }
}

nav ul li.current-menu-item a {
  font-weight: bold;
}

nav .menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

nav .menu-toggle>div {
  width: 30px;
  height: 3px;
  margin: 3px 0;
  background-color: var(--main-p-color);
}

.searchform {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  width: 100%;
}

.searchform input[type='text'] {
  padding: 5px;
  font-size: 16px;
  border: 1px solid var(--main-p-color);
  border-radius: 25px 0 0 25px;
  transition: all .2s ease-in-out;
  margin: 0;
  width: 160px;
}

.searchform input[type='text']:focus {
  box-shadow: inset 0 0 3px var(--main-p-color);
}

.searchform input[type='text']::placeholder {
  color: var(--half-main-p-color);
}

.searchform button[type='submit'] {
  padding: 5px;
  font-size: 16px;
  border: 1px solid var(--main-p-color);
  border-left: 0;
  border-radius: 0 25px 25px 0;
  transition: all .2s ease-in-out;
  background-color: var(--white);
  color: var(--main-p-color);
  position: relative;
  left: -5px;
  cursor: pointer;
  transition: .2s all ease-in-out;
}

.searchform button[type='submit']:hover {
  background-color: var(--main-p-color);
  color: var(--white);
}

.site-hero {
  width: 100%;
  height: 75vh;
  margin: auto;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.frontpage-widget-one {
  position: absolute;
  bottom: 40%;
  left: 120px;
  min-width: 200px;
  min-height: 100px;
  z-index: 1;
  padding: 20px 50px;
  background-color: var(--accent-color);
  animation: frontpagewidget .5s forwards;
  backface-visibility: hidden;
}

.frontpage-widget-one .widget-title,
.frontpage-widget-one h1 {
  font-size: 4rem;
  color: #fff;
  line-height: 130%;
  margin-bottom: 0;
}

.frontpage-widget-one p {
  color: var(--white)
}

@keyframes frontpagewidget {
  0% {
    opacity: 0;
    left: 0;
  }

  100% {
    opacity: 1;
    left: 120px;
  }
}

/*Post meta Data and Post Styles*/
.post-categories {
  display: inline-block;
}

.post-categories>li {
  display: inline-block;
}

.post-meta {
  color: #a1a1a1;
}

.post-meta a {
  color: #a1a1a1;
}

.post-meta a:hover {
  text-decoration: underline;
}

.single-post-image {
  width: 100%;
  height: 500px;
  margin: 20px auto;
  background-repeat: no-repeat;
  background-position: center;
}

.single-page-image {
  width: 100%;
  height: 500px;
  margin: 20px auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

h1.single-post-title {
  margin-bottom: 0;
  line-height: normal;
  color: var(--heading-color);
}

/*Frontpage Styles*/
.frontpage-section {
  width: 100%;
  margin: 0;
  padding: 60px 0;
}

.frontpage-section h1 {
  text-align: center;
  margin-bottom: 30px;
}

.flex-div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.flex-div>div {
  flex: 1;
  text-align: center;
}

.section2 {
  padding: 60px 0;
  display: flex;
  flex-flow: row wrap;
  background-color: #eee;
  color: var(--white);
}

.section2 .flex-div img {
  max-width: 200px;
	max-height:250px;
}


.section2 h1 {
  color: var(--white);
}

.flex-div .sub-sec-1 h2,
.flex-div .sub-sec-2 h2,
.flex-div .sub-sec-3 h2 {
  color: var(--white);
}

.flex-div .dienstleistung-1,
.flex-div .sub-sec-1,
.flex-div .sub-sec-2,
.flex-div .sub-sec-3 {
  flex-basis: 33%;
  margin-bottom: 60px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-div .dienstleistung-1 h2 {
  margin-bottom: 20px;
}

.flex-div .dienstleistung-1 p {
  margin-bottom: 55px;
}

.flex-div img {
  max-width: 150px;
}

.front-page-posts {
  display: flex;
  flex-flow: row wrap;
  margin: 20px 0;
}

.front-page-posts>a {
  flex: 1;
  flex-basis: 48%;
  transition: all .2s ease-in-out;
  text-decoration: none;
  color: #999;
  display: block;
}

.front-page-posts>a:hover .frontpage-sec {
  background-color: #1763AE;
}

.front-page-posts>a:hover .frontpage-post-img::after,
.front-page-posts>a:hover .frontpage-sec h1 {
  color: #fff;
}

.front-page-posts>a:hover .frontpage-post-img {
  border: 3px solid #fff;
}

.front-page-welcome {
  display: flex;
  flex-flow: row wrap;
}

.front-page-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  flex-basis: 50%;
  padding: 50px;
}

.front-page-text h1 {
  text-align: left;
}

.front-page-img {
  flex: 1;
  flex-basis: 50%;
  background-position: center;
  background-size: auto;
  background-repeat: no-repeat;
}

.front-page-img img {
  width: 100%;
}

.frontpage-sec {
  padding: 20px;
  margin: 5px;
  transition: all .2s ease-in-out;
}

.frontpage-sec h1 {
  color: var(--heading-color);
}

.frontpage-post-text {
  margin-top: 10px;
  margin-bottom: 10px;
}

.frontpage-post-text h1 {
  text-align: center;
}

.frontpage-post-img {
  position: relative;
  height: 200px;
  width: 200px;
  border: 3px solid #1763AE;
  border-radius: 50%;
  margin: auto;
  text-align: center;
  transition: all .2s ease-in-out;
}

.frontpage-post-img::after {
  font-family: 'Font Awesome 5 Free';
  content: "\f518";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  display: block;
  color: #1763AE;
}

.frontpage-map {
  margin-bottom: 30px;
}

/*Single Post and  Page Styles*/
.page-text p {
  line-height: 150%;
  margin-top: 20px;
  white-space: normal;
}

.page-text ul,
.page-text ol {
  margin: 10px 40px;
  line-height: 150%;
  color: #7b7b7b;
}

.page-content {
  margin: 30px 0;
  min-height: 60vh;
}

.page-text {
  margin: 30px 0;
}

.alignleft,
img.alignleft {
  display: inline;
  float: left;
  margin-right: 1.5em;
}

.alignright,
img.alignright {
  display: inline;
  float: right;
  margin-left: 1.5em;
}

.aligncenter,
img.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

figcaption.wp-caption-text {
  font-size: .9em;
  text-align: center;
}

/*Index and archive pages*/
.blog-post-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.blog-post-container>.blog-posts {
  flex-basis: 48%;
  padding: 10px;
  margin: 20px 0;
  background-color: #eeeeee;
  transition: all .3s ease-in-out;
}

.blog-posts:hover {
  box-shadow: 0 0 6px #808080;
}

.blog-posts:hover .index-post-img {
  transform: scale(1.1);
}

.index-post-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all .5s ease-in-out;
}

.post-img-container {
  height: 400px;
  width: 100%;
  overflow: hidden;
}

.post-img-container:hover .index-post-img {
  transform: scale(1.1);
}

.index-post-data h1 {
  margin: 10px 0 0 0;
}

.index-post-data a {
  color: #999;
}

.prev-next-posts {
  display: flex;
  flex-flow: row wrap;
}

.prev-next-posts a {
  color: #1763AE;
  text-decoration: none;
}

.prev-next-posts a:hover {
  text-decoration: underline;
}

.prev-next-posts>div {
  flex: 1;
}

.next-posts {
  display: flex;
  justify-content: flex-end;
}

/*Footer Styles*/
footer {
  background-color: var(--accent-color);
  padding: 20px 0 5px 0;
  color: #ddd;
  width: 100%;
}

footer .site-container {
  display: flex;
  flex-flow: row wrap;
  padding: 0 10px;
}

footer a,
footer p {
  color: #ddd;
}

footer .site-container .footer {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-basis: 30%;
}

footer .site-container .footer h2 {
  color: rgba(255, 255, 255, .5)
}

footer .site-container .footer-one {
  align-items: flex-start;
}

footer .site-container .footer-four {
  align-items: flex-end;
}

footer .widget {
  width: 100%;
}

footer .widget-title {
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
}

footer ul li {
  line-height: 140%;
}

footer ul li a,
footer a {
  color: #ddd;
  text-decoration: none;
  transition: all .2s ease-in-out;
}

footer ul li a:hover,
footer a:hover {
  text-decoration: underline;
  margin-left: 5px;
}

.footer {
  margin: 20px 0;
}

.copyrights {
  text-align: center;
  color: var(--white);
}

.copyrights h5 {
  font-weight: normal;
  color: var(--white);
}

/*404-page*/
.page-404 {
  text-align: center;
  margin-top: 40px;
}

.page-404 h1 {
  color: var(--heading-color);
}

.big-search-form {
  text-align: center;
}

.search-result {
  text-align: center;
  width: 75%;
  margin: 90px auto;
  padding: 30px;
  border: 1px dashed var(--main-p-color);
  display: flex;
  align-self: center;
  flex-direction: column;
}

.search-result h1 {
  color: var(--heading-color);
}

/*=============Contact Form====================*/
div.wpcf7 {
  margin: 0 auto;
  padding: 0;
  width: 75%;
}

div.wpcf7 input[type='text'],
div.wpcf7 input[type='email'],
div.wpcf7 textarea {
  width: 100%;
  font-size: 16px;
  padding: 6px 4px;
  box-sizing: border-box;
  border: 1px solid var(--half-main-p-color);
  border-radius: 3px;
  margin: 10px 0;
  transition: all .1s ease-in-out;
}

div.wpcf7 input[type='text']:hover,
div.wpcf7 input[type='email']:hover,
div.wpcf7 textarea:hover {
  border: 1px solid var(--half-main-p-color);
}

div.wpcf7 p {
  position: relative;
}

div.wpcf7 input[type='text']::placeholder,
div.wpcf7 input[type='email']::placeholder,
div.wpcf7 textarea::placeholder {
  color: var(--half-main-p-color);
}

div.wpcf7 input[type='text']:focus,
div.wpcf7 input[type='email']:focus,
div.wpcf7 textarea:focus {
  border: 1px solid var(--main-p-color);
}

div.wpcf7 input[type='submit'] {
  padding: 15px 60px;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid var(--half-main-p-color);
  color: var(--main-p-color);
  transition: all .2s ease-in-out;
  cursor: pointer;
  display: block;
  margin: auto;
  border-radius: 3px;
}

div.wpcf7 input[type='submit']:hover {
  border: 1px solid var(--main-p-color);
}

div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
  border: 2px solid var(--main-p-color);
}

.pagination {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.page-numbers {
  color: var(--main-p-color);
  border: 1px solid var(--main-p-color);
  padding: 3px;
}

.pagination a {
  border: 1px solid var(--main-p-color);
  padding: 3px;
}

.pagination a:hover {
  background-color: #eee;
}

.pagination .next,
.pagination .prev {
  border: none;
}

/*================= Media Queries ==========================*/
@media only screen and (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .site-container {
    width: 100%;
    padding: 0 10px;
  }

  header .site-container {
    width: 100%;
    padding: 0 10px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .site-hero {
    width: 100%;
    height: 50vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
  }

  nav .menu-toggle {
    display: flex;
  }

  .frontpage-widget-one {
    position: absolute;
    bottom: 40%;
    left: 20px;
    right: 20px;
    min-width: 160px;
    z-index: 1;
    padding: 20px 20px;
    background-color: var(--accent-color);
    animation: frontpagewidget .5s forwards;
    backface-visibility: hidden;
  }

  .frontpage-widget-one .widget-title,
  .frontpage-widget-one h1 {
    font-size: 1.3rem;
    color: var(--white);
    line-height: 100%;
    letter-spacing: normal;
    margin-bottom: 0;
  }

  @keyframes frontpagewidget {
    0% {
      opacity: 0;
      left: 0;
    }

    100% {
      opacity: 1;
      left: 20px;
    }
  }

  .front-page-welcome {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 0;
  }

  .front-page-img {
    flex: 3;
    flex-basis: 50%;
    order: 1;
  }

  .front-page-text {
    padding: 20px;
    order: 2;
    flex: 1;
  }

  .front-page-posts>a {
    flex: 1;
    flex-basis: 100%;
  }

  .flex-div .dienstleistung-1,
  .flex-div .sub-sec-1,
  .flex-div .sub-sec-2,
  .flex-div .sub-sec-3 {
    flex-basis: 100%;
    margin-bottom: 60px;
    padding: 10px;
  }

  .section2 img {
    max-width: 120px;
  }

  .blog-post-container>.blog-posts {
    flex-basis: 100%;
    padding: 10px;
    margin: 20px 0;
    background-color: #eeeeee;
    transition: all .3s ease-in-out;
  }

  .single-post-image {
    width: 100%;
    height: 400px;
    margin: 20px auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  nav#site-navigation ul {
    display: none;
    background-color: #fff;
    position: absolute;
    left: 0;
    flex-direction: column;
    width: 100%;
    top: 100%;
    text-align: center;
  }

  nav#site-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .searchform {
    display: none;
  }

  nav#site-navigation {
    flex: 1;
  }

  .site-logo,
  .site-title {
    flex: 3;
  }

  footer {
    width: 100%;
  }

  footer .site-container .footer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 100%;
  }
}

@media only screen and (min-width:769px) and (max-width: 1024px) {
  h1 {
    font-size: 1.5em;
  }

  nav .menu-toggle {
    display: none;
  }

  .searchform {
    display: none;
  }

  footer {
    width: 100%;
  }
}

.red {
  background-color: red;
}