/*
Theme Name: MH Schreinerei
Author: Levin Bänniger
Author URI: levinbaenninger.dev
Description: Custom theme for MH Schreinerei
Version: 1.0
Text Domain: mh-schreinerei
*/

@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500&family=Lato:wght@300;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oooh+Baby&display=swap");

:root {
  --primary-color: #939390;
  --primary-light: #b4b4b4;

  --secondary-green: #9aa47b;
  --secondary-green-light: #cfdcaa;
  --secondary-green-bg: #CFDCAA70;

  --secondary-blue: #486ca2;
  --secondary-blue-light: #91aed8;
  --secondary-blue-bg: #91aed830;

  --secondary-beige: #f3d4a6;
  --secondary-beige-light: #ffeed5;

  --accent-black: #000000;
  --accent-white: #ffffff;

  --font-family-sans: "Lato", sans-serif;
  --font-family-serif: "Caveat", serif;
  --font-ooh-baby: "Oooh Baby", cursive;

  --font-weight-light: 300;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: 0.05em;
}
html, body {
  font-family: var(--font-family-sans);
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}
h1, h2, h3, p, ul {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-light);
    color: var(--accent-black);
}
h1 {
    font-weight: var(--font-weight-black);
    font-size: 2.25rem;
    color: var(--primary-color);
    text-transform: uppercase;
}
h2 {
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
} 
h3 {
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.05em;
}
p, ul {
    font-size: 1rem;
    line-height: 1.5;
}
strong {
	font-weight:700;
}
/* main sections */
.section-top,
.section-slogan,
.section-title,
.section-content,
.section-full-width {
    display: flex;
    padding: 0;
    width: 80%;
    margin: 6rem auto 0;
    max-width: 1200px;
    gap: 6rem;
}

/* section on top of the side after the carussel */
.section-top {
  align-items: flex-start;
  justify-content: space-between;
}
.content-top {
	max-width: 600px;
}

/* full width section */
.section-full-width {
	width: 100%;
    margin: 6rem 0 0 0;
    max-width: none;
}

.section-footer-divider {
  height: 6rem;
  width: 100%;
  display: block;
  content: "";
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
}

/* section with picture on the left and slogan on the right side */
.section-slogan {
  align-items: center;
  justify-content: space-between;
}
.img-slogan {
    display: flex;
    align-items: stretch;
    max-width: 400px;
    width: 400px;
    height: auto;
}
.img-slogan img {
  width: 100%;
  object-fit: contain;
}
.img-slogan-new {
    display: flex;
    align-items: stretch;
    max-width: 300px;
    width: 200px;
    height: auto;
    max-height: 150px;
}
.img-slogan-new img {
  width: 100%;
  object-fit: contain;
}
.slogan-center {
	justify-content: space-around;
}

#blog-content {
	flex-direction: column;
}

#blog-title {
	flex-direction: column;
    gap: 3rem;
}
#blog-editor {
	flex-direction: column;
	gap: 3rem;
    margin-top: 3rem;
}

#contact-info {
	justify-content: space-between; 
}

/* polygon */
.polygon-standard,
.polygon-small {
    background: var(--accent-white);
    clip-path: polygon(0 0, 66% 0, 100% 100%, 0% 100%);
    aspect-ratio: 290 / 156;
    width: 290px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
}
.polygon-small {
    width: 76px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    left: -1px;
    bottom: -1px;
}

.arrow-right,
.arrow-left {
	cursor: pointer;
}

@media (max-width: 768px) {
    .section-top,
    .section-slogan,
    .section-title,
    .section-content{
        flex-direction: column;
        width: 90%;
        margin: 3rem auto 0;
        gap: 3rem;
    }
    .img-slogan {
    	width: 100%;
    }
    
    #contact-info {
        align-items: baseline; 
	}
}

.labels {
  margin: 8rem auto 0;
  width: 80%;
  hyphens: auto;
  word-break: normal;
  flex: 1;
}
.label {
  font-family: var(--font-ooh-baby);
  font-size: 2.25rem;
  color: var(--accent-black);
  text-align: center;
  max-width: 800px;
}
.label-box {
  text-align: center;
  flex: 1;
  display: flex;
  justify-content: center;
}
.container {
  gap: 1rem;
  width: 100%;
  margin-left: 10%;
  margin-right: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



.blog-date {
  position: relative;
  padding: 0.75rem 2rem 0.75rem 1rem;
  font-weight: var(--font-weight-bold);
  background: transparent;
  z-index: 0;
}

.blog-date::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 90px;
  opacity: 80%;
  background: var(--secondary-blue);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 0% 100%);
  z-index: -1; /* Send it behind the text */
}

/* fancy button */
.custom-dynamic-button {
  font-family: var(--font-family-sans);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  color: var(--accent-black);
  background-color: var(--accent-white);
  padding: 0.75rem 2rem 0.75rem 1rem;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  position: relative;
  display: inline-block;
  text-decoration: none;
  z-index: 0;
}
.custom-dynamic-button span {
  position: relative;
  z-index: 2;
}
.custom-dynamic-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--secondary-beige);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 0% 100%);
  transition: width 0.4s ease;
  z-index: -1;
}
.custom-dynamic-button:hover::before {
  width: 100%;
}

/* Vorgehen Container */
.proceed-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: flex-start;
  }
  .proceed-card {
    flex: 0 1 calc(33.333% - 2rem);
    display: flex;
    flex-direction: column;
    min-width: 250px;
    text-decoration: none;
    gap: 2rem;
  }
  .title-blue {
    font-weight: var(--font-weight-bold);
    position: relative;
    padding: 0.75rem 2rem 0.75rem 1rem;
  }
  .title-blue::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    aspect-ratio: 3/2;
    opacity: 0.3;
    background: var(--secondary-blue);
    clip-path: polygon(0 0, 66% 0, 100% 100%, 0% 100%);
    transition: width 0.4s ease;
    z-index: 1;
  }

.team-introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: left;
    margin-top: 8rem;
    padding: 0 2rem;
    max-width: 1200px;
}

/* header */
.navbar {
    background-color: var(--accent-white);
    padding: 0;
    width: 80%;
    margin: auto;
    max-width: 1200px;
}
.navbar * {
    color: var(--accent-black);
    background: var(--accent-white);
}
.navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.brand {
    font-size: 1.2rem;
}
.burger {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}
.nav-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.nav-item {
    position: relative;
    flex: 1;
    list-style: none;
    white-space: nowrap;
    padding: 1rem;
}
.nav-link {
    font-weight: bold;
    width: 100%;
    border: none;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    list-style: none;
}
.nav-link:hover,
.nav-link:focus {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.submenu {
    display: none;
    position: absolute;
    background-color: var(--accent-white);
    color: var(--accent-black);
    top: 100%;
    left: 0;
    z-index: 10;
    list-style: none;
    padding: 0 1rem;
}
.submenu a {
    list-style: none;
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
}
.submenu a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.site-logo {
    height: 66px;
    align-items: center;
}
.site-logo img {
    height: 100%;
    width: auto;
    display: block;
}
.nav-arrow {
    display: none;
}

/* Desktop Hover Behavior */
@media (min-width: 768px) {
    .burger {
        display: none;
    }
    .navbar-header {
        flex-wrap: nowrap;
    }
    .nav-container {
        display: flex;
        flex-wrap: nowrap;
        margin-left: 2rem;
    }
    .nav-item:hover .submenu {
        display: block;
    }
}
@media (max-width: 767px) {
    .navbar {
        width: 90%;
    }
    .burger {
        display: block;
    }
    .navbar-header {
        row-gap: 1rem;
    }
    .nav-container {
        display: none;         /* Hidden by default */
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .nav-container.open {
        display: flex;         /* Shown when burger is toggled */
    }
    .submenu {
        display: none;         /* Hidden by default */
        position: static;      /* Make submenus inline */
        padding: 0;
        margin: 0.25rem 0;
    }
    .nav-item {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .nav-link {
        padding: 1rem 0;
    }
    .nav-item.active .submenu {
        display: block;        /* Show when menu is open */
        list-style: none;
    }
    .nav-link:hover {
        text-decoration: none;
    }
    #kontakt {
        border-bottom: none;
    }
    #blog {
       border-bottom: 1px solid;
    }
    .nav-arrow {
        display: block;
        transition: transform 0.3s ease;
    }
    .nav-item-link {
        display: flex;
        align-items: center;
        border-bottom: 1px solid;
    }
    .nav-item.active .nav-arrow {
        transform: rotate(180deg);
      }
    .nav-link:hover,
    .nav-link:focus {
        text-decoration: none;
    }
    .submenu a:focus {
        text-decoration: none;
    }

}



/* footer styling */
footer.section-full-width {
  background-color: var(--secondary-green);
  position: relative;
  margin-top: 0px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr 2fr;
  grid-template-rows: min-content min-content min-content;
  grid-template-areas:
    "logo company-name links ."
    ". info pages legal"
    ". contact contact contact";
  column-gap: 6rem;
  row-gap: 2rem;
  margin-bottom: 8rem;
}

.logo {
  grid-area: logo;
  height: min-content;
}

.info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: baseline;
  width: 350px;
}

.info-open {
  grid-area: info-open;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: baseline;
  width: 400px;
}

.pages {
  grid-area: pages;
  display: flex;
  flex-direction: column;
}

.legal {
  grid-area: legal;
  display: flex;
  flex-direction: column;
}

.contact {
  grid-area: contact;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-areas: "text phone social";
  border-top: var(--accent-white) 1px solid;
  padding-top: 2rem;
}

.company-name {
  grid-area: company-name;
}

.links {
  grid-area: links;
}

footer * {
  color: var(--accent-white);
  text-decoration: none;
}

.social-icons {
  grid-area: social;
  display: flex;
  gap: 1rem;
  justify-self: end;
}

.contact-text {
  grid-area: text;
}

.phone {
  grid-area: phone;
}

/* formular */
.custom-form-wrapper {
  box-sizing: border-box;
  margin-bottom: 100px;
}
.form-grid {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 20px;
}
.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: flex-start;
}
.form-col label {
  margin-bottom: 5px;
}
.form-col input[type="text"],
.form-col input[type="email"],
.form-col input[type="tel"],
.form-col textarea,
.form-col select {
    width: 100%;
    border: none;
    border-bottom: 1px solid;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Lato';
    font-weight: 300;
    height: 40px;
}
.form-col select option {
  padding: 10px;
  font-size: 16px;
}
.form-col select:focus {
  outline: none;
  border: none;
}
#mitteilung {
  flex-grow: 1;
  resize: none;
  height: 210px;
}
.form-col input[type="text"]:focus,
.form-col input[type="email"]:focus,
.form-col input[type="tel"]:focus,
.form-col textarea:focus {
  border: none;
  border-bottom: 2px solid;
  border-bottom-color: var(--secondary-blue);
  outline: none;
}
.form-submit {
  text-align: left;
  margin-top: 20px;
}
.wpcf7-submit {
  background-color: #006699;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.wpcf7-submit:hover {
  background-color: #004466;
}
.wpcf7-response-output {
  display: none !important;
}

/* wir bieten */
.offer__container {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  margin: 8rem auto;
  width: 80%;
  max-width: 1200px;
}
.offer__intro {
  display: flex;
  flex-direction: row;
  gap: 4rem;
}
.offer__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  flex: 1;
}
.offer__image {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}
.offer__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.offer__gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Privacy */
.privacy-policy ul + h2, .privacy-policy p + h2, 
.privacy-policy ul + h3, .privacy-policy p + h3, .privacy-policy p + ul {
	margin-top:30px;
}

.privacy-policy h2 {
	margin-bottom:15px;
}
.privacy-policy h3 {
	margin-bottom:10px;
}
/* Privacy End */

@media screen and (max-width: 1280px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo ."
      "company-name ."
      "info info"
      "links links"
      "pages legal"
      "contact contact";
    column-gap: 0;
  }

  .contact {
    grid-template-areas:
      "text social"
      "phone .";
    grid-template-columns: subgrid;
  }

  .links {
    border-top: var(--accent-white) 1px solid;
    padding-top: 2rem;
  }

  .polygon-standard {
    width: 200px;
  }
}


/* Mobile */
@media (max-width: 768px) {
  .intro {
    margin-top: 8rem;
    width: 100%;
    flex-direction: column;
    gap: 2rem;
    padding: 0 2rem;
  }

  .engagement-intro {
    margin-top: 8rem;
    width: 100%;
    flex-direction: column;
    gap: 2rem;
    padding: 0 2rem;
  }

  .content {
    max-width: 100%;
  }

  .slogan {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    width: 100%;
    padding: 0 2rem;
    margin-top: 8rem;
  }

  .slogan-image-container {
    width: 100%;
    justify-content: center;
  }

  .slogan-image-container img {
    width: 80%;
    max-width: 300px;
  }

  .engagement-slogan {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    width: 100%;
    padding: 0 2rem;
    margin-top: 8rem;
  }

  .engagement-slogan-image-container {
    width: 100%;
    justify-content: center;
  }

  .engagement-slogan-image-container img {
    width: 80%;
    max-width: 300px;
  }

  .label-box {
    width: 100%;
    padding: 0 1rem;
  }

  .activities,
  .labels,
  .offers {
    margin-top: 8rem;
    width: 100%;
  }
  .form-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  .form-col {
    flex: 1 1 100%;
  }
  .offer__container {
    width: 100%;
    padding: 0 2rem;
  }
  .offer__intro {
    flex-direction: column;
  }
  .offer__image {
    justify-content: center;
  }
  .offer__image img {
    width: 80%;
    max-width: 300px;
  }
  .team-introduction {
    text-align: left;
  }
}

/* Tablet */
@media (min-width: 769px) {
    h1 {
        font-size: 2.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1.25rem;
    }
    .cta-button {
        font-size: 1.25rem;
    }
    .label {
        font-size: 2.875rem;
    }
    .team-introduction {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
        width: 90%;
        margin: 12rem auto 0;
        padding: 0;
    }

    .team-introduction h1 {
        width: 100%;
    }

    .team-introduction p {
        width: 100%;
    }
}

/* Desktop */
@media (min-width: 993px) {
    .team-introduction {
        width: 80%;
    }
}

/* Optional: spezieller Zwischenbereich */
@media (max-width: 798px) {
    .container {
        flex-direction: column;
        margin-left: 5%;
        margin-right: 5%;
    }

    .polygon-standard {
        width: 160px;
    }
}

	
.grecaptcha-badge { visibility: hidden; }