/*
Theme Name: theflat
Author: Wolfgang Schellnast
Author URI: https://www.wolfgangschellnast.com
Description: Responsive Theme for theflat, designed by Daan Kars
Version: 1.0
*/

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "reformas";
  line-height: 1;
  background-color: #223c2e;
  -webkit-font-smoothing: antialiased;
}

.img-fluid {
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h2 {
  text-align: center;
  font-size: clamp(60px, 5.2vw, 120px);
  font-weight: normal;
  line-height: 1;
  margin: 0;
  font-family: "staatliches";
}

h2 .chaumont {
  font-family: "chaumont";
  font-size: clamp(65px, 6.5vw, 150px);

  font-feature-settings: "calt";
}

h3 {
  text-align: center;
  font-size: clamp(75px, 12vw, 250px);
  font-weight: normal;
  line-height: 0.9;
  margin: 0;
  font-family: "staatliches";
  white-space: nowrap;
}

h3 .chaumont {
  font-family: "chaumont";
  font-size: clamp(90px, 14vw, 280px);

  font-feature-settings: "calt";
}

h4 {
  font-family: "chaumont";
  font-weight: normal;
  margin: 0;
  font-size: clamp(27px, 2.2vw, 50px);

  font-feature-settings: "calt";
}

p {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

/* Menu */

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  font-family: "staatliches";
  font-size: clamp(20px, 2vw, 40px);
  margin: 1rem 0;
  z-index: 50;
}

.menu-top .left,
.menu-top .right {
  flex: 1;
  display: flex;
  min-width: -webkit-min-content; /* Workaround to Chrome bug */
}

.menu-top .left {
  padding-left: 2rem;
}

.menu-top .left li:nth-child(2) {
  padding-right: 17%;
}

.menu-top .right {
  padding-right: 2rem;
}

.menu-top ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  color: #f5e6c9;
  transition: color 100ms ease-in-out;
}

.menu-top ul a:hover {
  text-decoration: underline;
}

.menu-top .logo {
  text-align: center;
  padding: 0 7%;
}

.menu-top .logo svg {
  width: clamp(100px, 11vw, 212px);
}

/* Menu-Top Color Changes on Scroll */
.menu-top[data-currcolor="lightgreen"] ul {
  color: #bfcaad;
}

.menu-top[data-currcolor="darkgreen"] ul {
  color: #223c2e;
}

/* SVG Logo Fill */
.menu-top[data-currcolor="darkgreen"] .logo svg#a .b {
  fill: #223c2e;
}

.menu-top[data-currcolor="lightgreen"] .logo svg#a .b {
  fill: #bfcaad;
}

/* Polylang */
.lang-item-first:after {
  content: "/";
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .menu-top ul.left {
    background-color: #223c2e;
  }

  .menu-top ul.right {
    background-color: #223c2e;
    padding-top: 20px;
  }

  .menu-top[data-currcolor="lightgreen"] ul.left,
  .menu-top[data-currcolor="lightgreen"] ul.right {
    color: #bfcaad;
    background-color: #223c2e;
  }

  .menu-top[data-currcolor="darkgreen"] ul.left,
  .menu-top[data-currcolor="darkgreen"] ul.right {
    background-color: #f5e6c9;
  }

  .menu-top ul,
  .menu-top .logo svg#a .b {
    transition: all 300ms ease-in-out; */
  }
}

/* Sections */

section.first-top {
  height: 100vh; /* Fallback for browsers that do not support Custom Properties */
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  background: url(images/bg-checkered-full.png);
  background-size: auto 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-flow: column;
  background-color: #223c2e;
  color: #f5e6c9;

  transition: height 300ms ease-in-out;
}

section.first-top .first-top-bottom {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 1rem 1.5rem 2rem;
  line-height: 1.3;
}

section.first-top p {
  text-align: left;
}

.logo-center {
  width: 50%;
  height: auto;
  padding-top: 5%;
}

.button {
  background-color: #f5e6c9;
  color: #223c2e;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2.5rem;
  font-family: "staatliches";
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;

  transition: all 200ms ease-in-out;
}

.button.small {
  font-size: clamp(16px, 2vw, 20px);
  padding: 0.5rem 1.5rem;
}

.button.green {
  background-color: #223c2e;
  color: #f5e6c9;
}

.button.lgreen {
  background-color: #bfcaad;
  color: #223c2e;
}

.button:hover {
  transform: scale(1.2);
  cursor: pointer;
}

/* Section halves */

section.half {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 100%;
}

section.half > div {
  background-color: #f5e6c9;
  color: #223c2e;
  width: 50%;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-between;
  padding: 8% 10%;
}

section.half > div:first-child {
  background-color: #bfcaad;
}

section.half.second > div:nth-child(2) {
  gap: 3rem;
}

section.half.second > div:nth-child(2) p {
  font-size: clamp(16px, 1.5vw, 26px);
}

/* Section Best Cuts */
section.green {
  min-height: 1000px;
  height: 100vh;
  padding-top: 100px;
  background-color: #223c2e;
  display: flex;
}

section.bestcuts > div:first-child {
  display: flex;
  justify-content: space-between;
}

section.green > div:first-child {
  padding: 2rem;
}

section.green > div {
  padding: 2rem 2rem 2rem 10%;
}

section.green > div {
  width: 50%;
  display: flex;
  flex-flow: column;
  background-color: #223c2e;
  color: #bfcaad;
  text-align: left;
  align-items: flex-start;
  justify-content: space-between;
}

.bestcuts h3 {
  text-align: left;
}

.bestcuts h3 .chaumont {
  font-family: "chaumont";

  font-feature-settings: "calt";
}

.bestcuts .contact {
  width: 60%;
  min-width: 383px;
  display: flex;
  justify-content: space-between;

  margin-bottom: 2rem;
}

.bestcuts p {
  text-align: left;
}

.offnungszeiten {
  width: 51%;
  min-width: 370px;
}

.offnungszeiten .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 2.5rem;
}

.offnungszeiten .content {
  display: flex;
  flex-flow: column;
  font-size: 1.5rem;
}

.offnungszeiten .content .item:first-child {
  border-top: 2px solid #bfcaad;
}
.offnungszeiten .content .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 2px solid #bfcaad;
  font-family: "staatliches";
  font-size: clamp(20px, 2vw, 30px);
}

.offnungszeiten span {
  font-family: "chaumont";
  font-size: clamp(16px, 1.5vw, 20px);

  font-feature-settings: "calt";
}

.offnungszeiten .button {
  /* font-size: 1rem; */
}

/* Section Services */

section.half.services h2 {
  position: absolute;
  left: 0;
  right: 0;
  padding-top: 8%;
  color: #223c2e;
}

section.half.services > div {
  align-items: flex-start;
  background-color: #bfcaad;
  color: #223c2e;
  padding: 18% 10% 10%;
}

section.half.services > div:nth-child(2) {
  background-color: #f5e6c9;
  justify-content: center;
}

section.half.services > div:nth-child(3) {
  padding: 18% 12% 10%;
}

/* Section Services - List */
.list-container {
  width: 100%;
}

.list-container .title {
  font-family: "staatliches";
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.list-container .info {
  display: flex;
  align-items: center;
}

.list-container .info a.button {
  margin-right: 1rem;
}

.list-item:first-child {
  border-top: 2px solid #012027;
}

.list-item {
  border-bottom: 2px solid #012027;
}

.list-item .title > div:first-child {
  font-family: "staatliches";
  font-size: clamp(30px, 2vw, 50px);
}

.list-item p {
  text-align: left;
  margin-bottom: 1rem;
}

.list-item .content {
  display: none;
}

.list-item.open .content {
  display: flex;
}

.list-item.open a.toggle img {
  transform: rotate(180deg);
  transition: 300ms ease-in-out;
}

.list-item a.toggle {
  font-family: "reformas";
  color: inherit;
  text-transform: uppercase;
  text-decoration: none;
}

.list-item a.toggle:hover {
  cursor: pointer;
}

@media(max-width: 1040px) {
  /* Open list-items */
  .list-item a.toggle {
    display: none;
  }

  .list-container .info a.button {
    margin-right: 0;
  }

  .list-item .content {
    display: block;
  }
}

.pricelist {
  width: 100%;
}

.pricelist .list-item.title {
  font-size: clamp(30px, 2vw, 50px);
  font-family: "staatliches";
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-right: 1rem;
}

.pricelist .list-item.title > div:nth-child(2) {
  font-family: "reformas";
}

.pricelist .list-item.title p {
  margin: 0;
  font-size: clamp(12px, 1vw, 20px);
}

.pricelist .list-item span {
  font-family: "staatliches";
  font-size: 30px;
}

.pricelist .list-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
}

@media (max-width: 1340px) {
  section.half.services > div {
    padding-left: 5%;
    padding-right: 5%;
  }
}

/* Page Impressum & Datenschutz*/

h1 {
  font-size: clamp(65px, 5vw, 120px);
  font-weight: normal;
  font-family: "staatliches";
  margin: 10% 20px 6%;
}

.page-template-page-impressum h2 {
  font-size: clamp(30px, 2vw, 50px);
  margin-top: 0;
  font-weight: normal;
  font-family: "staatliches";
  text-align: left;
  margin-bottom: 2rem;
}

.page-template-page-impressum h3,
.page-template-page-datenschutz h3 {
  font-size: 30px;
  font-family: "staatliches";
  font-weight: normal;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
}

.page-template-page-impressum p,
.page-template-page-datenschutz p {
  text-align: left;
  margin-bottom: 2rem;
  margin-top: 0;
  font-size: clamp(16px, 2vw, 26px);
}

body.page-template-page-impressum,
body.page-template-page-datenschutz {
  background-color: #bfcaad;
  color: #223c2e;
}

section.first-page-top {
  display: flex;
  align-items: center;
  justify-content: center;
}

section.datenschutz-content {
  padding: 0 15% 10%;
}

section.impressum-content {
  display: grid;
  grid-template-columns: minmax(450px, 2.3fr) 3fr;
  grid-gap: 4rem;
  padding: 0 2rem 2rem;
  line-height: 1.2;
}

section.impressum-content .inner-impressum {
  font-size: clamp(16px, 2vw, 26px);
}

section.impressum-content .inner-impressum .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-bottom: 2rem;
}

.two-col.space-top {
  margin-top: 8rem;
}

section.impressum-content .inner-impressum .one-col {
  width: 100%;
}

.page-template-page-impressum .menu-top ul,
.page-template-page-datenschutz .menu-top ul {
  color: #223c2e;
  /* background-color: #bfcaad; */
}
.page-template-page-impressum .menu-top .logo svg#a .b,
.page-template-page-datenschutz .menu-top .logo svg#a .b {
  fill: #223c2e;
}

@media (max-width: 768px) {
  h1 {
    margin-top: 100px;
  }

  h3 {
    white-space: unset;
  }

  .page-template-page-impressum .menu-top ul,
  .page-template-page-datenschutz .menu-top ul {
  background-color: #bfcaad;
  }

  section.impressum-content {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  section.datenschutz-content {
    padding: 35px 20px 50px;
  }

  .page-template-page-impressum p,
  .page-template-page-datenschutz p {
    word-break: break-word;
  }

  section.impressum-content .inner-impressum .two-col {
    margin-bottom: 1rem;
  }

  .two-col.space-top {
    margin-top: 4rem;
  }
}

/* Footer */

section.instagram {
  padding: 4rem 10%;
  background-image: url("images/bg-checkered.png");
  background-size: contain;
  color: #f5e6c9;
  font-family: "staatliches";
  font-size: clamp(20px, 2vw, 40px);
  position: relative;
  z-index: 55;
}

section.instagram h2 {
  white-space: nowrap;
  text-align: center;
}

section.instagram .header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

section.instagram .header > div {
  width: 100%;
}

section.instagram .header div:nth-child(3) {
  text-align: right;
}

section.instagram .header div:nth-child(1),
section.instagram .header div:nth-child(3) {
  padding-bottom: 1rem;
}

#sbi_images {
  /* display: flex; */
  justify-content: space-between;
  grid-gap: 100px;
  padding: 0 !important;
}

/* #sb_instagram.sbi_col_3 #sbi_images .sbi_item {
  width: 100%;
} */

footer {
  background-color: #223c2e;
  color: #f5e6c9;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem 20px;
  position: relative;
  z-index: 10;
}

footer ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-evenly;
  font-family: "staatliches";
  font-size: clamp(20px, 2vw, 40px);
}

footer ul a {
  color: inherit;
  text-decoration: none;
}

footer ul a:hover {
  text-decoration: underline;
}

footer .logo {
  text-align: center;
  width: 30%;
  margin-top: 1rem;
}

footer .copyright {
  font-size: 12px;
  font-family: "reformas";
  white-space: nowrap;
}

.h-desktop {
  display: none;
}

@media (max-width: 768px) {
  .h-mobile {
    display: none !important;
  }

  .h-desktop {
    display: flex;
  }

  .menu-top {
    z-index: 10;
  }

  .menu-top .logo {
    /*
    position: fixed;
    z-index: 10;
    width: 100%;
    padding-top: 2rem; */
    z-index: 10;
    margin: 0 auto;
  }

  .menu-top .right {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    padding: 0 20px 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .menu-top .left {
    position: fixed;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 23px 20px;
    top: 0;
    left: 0;
  }

  .menu-top .left li:nth-child(2) {
    padding-right: unset;
  }

  .logo-center {
    width: 90%;
    padding-top: 20%;
  }

  section.first-top {
    position: relative;
    justify-content: space-evenly;
    z-index: 1;
    /*
    background: linear-gradient(to bottom, #223c2e 50%, transparent 50%),
      url(images/bg-checkered-mobile.png) repeat-x bottom;
      */
    background: url(images/bg-checkered-full-mobile.png);
    background-size: auto 100%;
  }

  section.first-top .first-top-bottom {
    justify-content: center;
    padding: 0 0 2rem;
  }

  section.half {
    flex-flow: column;
  }

  section.half.second > div:first-child {
    padding: 78px 65px;
  }

  section.half > div {
    width: 100%;
    justify-content: space-between;
    padding: 78px 20px;
  }

  section.green {
    flex-flow: column;
    min-height: 100vh;
    height: unset;
    padding-bottom: 4rem;
    padding-top: 4rem;
  }

  section.green > div {
    width: 100%;
  }

  section.green > div:first-child {
    padding: 0 20px;
  }

  .offnungszeiten {
    width: 100%;
    margin-top: 3rem;
    min-width: unset;
  }

  .bestcuts .contact {
    width: 100%;
    min-width: unset;
    margin-top: 3rem;
  }

  h3.mobile-right {
    justify-content: flex-end;
  }

  section.half.services > div {
    padding: 70px 20px;
  }

  /* Preisliste
  section.half.services > div:nth-child(2) {
    padding: 70px 20px;
  } */

  section.half.services > div:nth-child(3) {
    padding: 78px 65px!important;
  }


  section.half.services h2 {
    position: relative;
    display: block;
    padding: 0 20px 20px;
    margin: 0 auto;
  }

  section.half.services h2 .chaumont {
    /* letter-spacing: -1.5vw; */
  }

  section.instagram {
    position: relative;
    z-index: 10;
    padding: 2rem 10%;
    background-image: url("images/bg-checkered-mobile.png");
  }

  section.instagram .header {
    flex-flow: column;
    white-space: nowrap;
  }

  section.instagram .header div:nth-child(3) {
    display: none;
  }

  section.instagram .header div:nth-child(1) {
    order: 2;
    text-align: center;
    padding-bottom: 0;
  }

  section.instagram .header div:nth-child(2) {
    order: 1;
    text-align: center;
  }

  #sb_instagram #sbi_images {
    display: flex;
    justify-content: center;
  }

  #sb_instagram.sbi_col_3 #sbi_images .sbi_item {
    width: 90%;
  }

  footer {
    flex-flow: column;
    padding-bottom: 3rem;
  }

  footer ul {
    justify-content: space-between;
  }

  footer .logo {
    width: 70%;
    display: block;
    margin-top: 0;
    max-width: 300px;
  }

  footer .logo .copyright {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    left: 0;
    text-align: center;
  }
}

/* FONTS */

@font-face {
  font-family: "chaumont";
  src: 
  /* url("fonts/chaumont_scriptbeta-regular-webfont.woff2") format("woff2"),
    url("fonts/chaumont_scriptbeta-regular-webfont.woff") format("woff"), */ url("fonts/chaumont_scriptBeta-Regular.otf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

/*
@font-face {
  font-family: "staatliches";
  src: url("fonts/staatliches-regular-webfont.woff2") format("woff2"),
    url("fonts/staatliches-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
} */

@font-face {
  font-family: "staatliches";
  src: 
  
  /* url("fonts/staatliches-regular-webfont-vfix3.woff2") format("woff2"),
    url("staatliches-regular-webfont-vfix3.woff") format("woff"), */ url("fonts/Staatliches-Regular.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "reformas";
  src: url("fonts/apk_reformas-webfont.woff2") format("woff2"),
    url("fonts/apk_reformas-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
