/*
Theme Name: designbüro bornholdt
Theme URI: https://bornholdt.de/
Author: bavariansocialclub
Author URI: https://bavariansocialclub.de
Description: Bornholdt - Block Theme
Requires at least: 6.0
Tested up to: 6.5.2
Requires PHP: 5.7
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bh
Tags: full-site-editing, 
*/

/*
-------------------------------------------------------------
 Breakpoints

    mobile Navigation:  <= 599px
    stacked columns:    <= 781px  
-------------------------------------------------------------
*/
:root {
    --breakpoint-sm: 599px
}


/*
-------------------------------------------------------------
 Navigation Block: Breakpoint
-------------------------------------------------------------
*/
@media screen and (max-width: 781px) {
    /* hamburger button */
    .wp-block-navigation__responsive-container-open  {
        display: block !important;
    }

    /* full menu */
    .wp-block-navigation__responsive-container:not(.is-menu-open.has-modal-open) {
        display: none !important;
    }
}

/*
-------------------------------------------------------------
 Spacing: Template Parts
-------------------------------------------------------------
*/
.entry-content,
footer {
    margin-top: 0;
}


/*
-------------------------------------------------------------
 Links:
-------------------------------------------------------------
*/

/* Main Navigation */
header .wp-block-navigation a {
    text-underline-offset: 14px;
    text-decoration-thickness: 2px;
}
header .wp-block-navigation .current-menu-item a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Brand Logos */
a[href^="https://www.instagram.com"],
a[href^="https://www.linkedin.com"],
a[href^="https://www.behance.net"] {
    display: inline-block;
    height: 48px;
    padding-left: 48px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 32px 32px;
    border-radius: 50%;
}

a[href^="https://www.instagram.com"] em,
a[href^="https://www.linkedin.com"] em,
a[href^="https://www.behance.net"] em {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;  
}

/* black on white */
a[href^="https://www.instagram.com"] {
    background-image: url(assets/img/insta-dark.svg);
}
a[href^="https://www.instagram.com"]:hover {
    background-color: var(--wp--preset--color--black);
    background-image: url(assets/img/insta-light.svg);
}
a[href^="https://www.linkedin.com"] {
    background-image: url(assets/img/linkedin-dark.svg);
}
a[href^="https://www.linkedin.com"]:hover {
    background-color: var(--wp--preset--color--black);
    background-image: url(assets/img/linkedin-light.svg);
}
a[href^="https://www.behance.net"] {
    background-image: url(assets/img/behance-dark.svg);
}
a[href^="https://www.behance.net"]:hover {
    background-color: var(--wp--preset--color--black);
    background-image: url(assets/img/behance-light.svg);
}

/* white on black */
.has-black-background-color a[href^="https://www.instagram.com"] {
    background-image: url(assets/img/insta-light.svg);
}
.has-black-background-color a[href^="https://www.instagram.com"]:hover {
    background-color: var(--wp--preset--color--white);
    background-image: url(assets/img/insta-dark.svg);
}
.has-black-background-color a[href^="https://www.linkedin.com"] {
    background-image: url(assets/img/linkedin-light.svg);
}
.has-black-background-color a[href^="https://www.linkedin.com"]:hover {
    background-color: var(--wp--preset--color--white);
    background-image: url(assets/img/linkedin-dark.svg);
}
.has-black-background-color a[href^="https://www.behance.net"] {
    background-image: url(assets/img/behance-light.svg);
}
.has-black-background-color a[href^="https://www.behance.net"]:hover {
    background-color: var(--wp--preset--color--white);
    background-image: url(assets/img/behance-dark.svg);
}

/*
-------------------------------------------------------------
 Buttons:
-------------------------------------------------------------
*/
.wp-block-button.is-style-outline a:hover { 
    background-color: var(--wp--preset--color--white); 
    color: var(--wp--preset--color--black); 
}

/*
-------------------------------------------------------------
 Details
-------------------------------------------------------------
*/
details {
    --padding-x: clamp(16px, 17.14vw, 240px);
    padding: 0 16px;
    border-top: 2px solid var(--wp--preset--color--black);
}
details[open] {
    padding-bottom: 128px;
}
details:last-child {
    border-bottom: 2px solid var(--wp--preset--color--black);
}
details + .wp-block-details {
    margin-top: 0;
}

details summary {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: clamp(90px, 14vw, 160px);
    margin: 0 -16px;
    padding: 24px 24px 24px var(--padding-x);
    list-style: none;
    font-family: var(--wp--preset--font-family--bitter);
    font-size: var(--wp--preset--font-size--h-3);
    letter-spacing: 2px;
    line-height: 1.4;
    font-weight: 600;
}
summary::-webkit-details-marker {
    display: none;
}
/* Marker: Plus/Minus */
details summary::after {
    position: absolute;
    top: 50%;
    right: 10px;
    display: block;
    width: clamp(30px, 6vw, 48px);
    height: clamp(30px, 6vw, 48px);
    transform: translateY(-50%);
    content: '';
    background: url(assets/img/plus-dark.svg) no-repeat 50% 50%;
    background-size: contain;
    border-radius: 50%;
}
details summary:hover::after {
    background-color: var(--wp--preset--color--black);
    background-image: url(assets/img/plus-light.svg);
}
details[open] summary::after {
    background-image: url(assets/img/minus-dark.svg);
}
details[open] summary:hover::after {
    background-color: var(--wp--preset--color--black);
    background-image: url(assets/img/minus-light.svg);
}

/* Icon */
details summary::before {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: clamp(60px, 16vw, 160px);
    height: clamp(60px, 16vw, 160px);
    transform: translateY(-50%);
    content: '';
    background: no-repeat 50% 50%;
    background-size: contain;
}


@media (min-width: 600px) {
    details {
        padding: 0 var(--padding-x);
    }
    details summary {
        margin: 0 calc(var(--padding-x) * -1);
    }    
    details summary::after {
        right: 44px;
    }
}

/*
-------------------------------------------------------------
 Block: Liste
-------------------------------------------------------------
*/
.wp-block-image.size-full img {
    width: 100%;
    max-width: none;
}

/*
-------------------------------------------------------------
 Block: Liste
-------------------------------------------------------------
*/
.wp-block-list {
    list-style: none;
    padding: 0;
}
.wp-block-list li {
    position: relative;
    padding-left: 20px;
}
.wp-block-list li::before {
    position: absolute;
    left: 2px;
    top: 0;
    content: '•';
}


/*
-------------------------------------------------------------
 Block: Project Categories
-------------------------------------------------------------
*/
.taxonomy-project-category {
    display: flex;
    gap: 24px 16px;
    flex-wrap: wrap;
}
.taxonomy-project-category a {
    padding: 4px 22px;
    border: 1px solid var(--wp--preset--color--grey);
    border-radius: 2px;
    pointer-events: none;
}
.taxonomy-project-category .wp-block-post-terms__separator {
    display: none;
}


/*
-------------------------------------------------------------
 Header:
-------------------------------------------------------------
*/
/* header {
    position: relative;
    z-index: 101;
}
.is-position-sticky {
    z-index: 101;
} */

.is-position-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}
.admin-bar .is-position-fixed {
    top: 32px;
}
.is-position-fixed--bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/*
-------------------------------------------------------------
 Navigation:
-------------------------------------------------------------
*/



/*
-------------------------------------------------------------
 Mobile Navigation: Logo / Buttons / Styling / Language switch
-------------------------------------------------------------
*/
/* Logo */
.wp-block-site-logo {
    position: relative;
    z-index: 100001;
}
/* .has-modal-open .wp-block-site-logo {
    margin-top: 12px;
} */

/* Buttons */
.wp-block-navigation__responsive-container-open {
    width: 40px;
    height: 40px;
    background: url(assets/img/navii.svg) no-repeat 50% 50%;
    background-size: contain;
}   
.wp-block-navigation__responsive-container-close {
    top: 36px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: url(assets/img/navii_close.svg) no-repeat 50% 50%;
    background-size: contain;
}   

.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
    display: none;
}   

/* Menu Styling */
.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content ul {
    gap: clamp(40px, 5.7vw, 80px)!important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 190px;
    justify-content: stretch;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content ul {
    width: 100%;
    box-sizing: border-box;
    padding: 0 var(--wp--preset--spacing--40);
    gap: 24px!important;
    align-items: stretch;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content li {
    width: 100%;
    font-size: var(--wp--preset--font-size--h-1)!important;
    font-weight: 500;
}

/* Language Switch */
@media (max-width: 781px) {
    .is-language-switch {
        display: none;
    }
    
    .has-modal-open .is-language-switch {
        display: block;
        position: absolute;
        z-index: 100001;
        bottom: calc(164px - 100vh);
    }
    .has-modal-open .is-language-switch .has-topline-small-font-size {
        font-size: var(--wp--preset--font-size--h-4) !important;
    }
}


/*
-------------------------------------------------------------
 Footer: Alignnment
-------------------------------------------------------------
*/
@media (min-width: 782px) {
    .is-right-aligned-lg {
        align-items: flex-end;
    }
}

/*
-------------------------------------------------------------
 Hero Home
-------------------------------------------------------------
*/
.is-hero-home {
    min-height: calc( 100vh - 112px);
}
.is-hero-home::after {
    position: absolute;
    bottom: 24px;
    left: 50%;
    z-index: 1;
    display: block;
    width: 64px;
    height: 64px;
    content: '';
    background: url(assets/img/scroll-indicator.svg) no-repeat 0 0;
    background-size: contain;
    transform: translateX(-50%);
}
/*
-------------------------------------------------------------
 Hero Landingpage
-------------------------------------------------------------
*/
.is-hero-landingpage {
    min-height: calc( 100vh - 72px);
}
.admin-bar .is-hero-landingpage {
    min-height: calc( 100vh - 72px - 32px);
}

/*
-------------------------------------------------------------
 CTA More
-------------------------------------------------------------
*/

.has-cta-more {
    height: 64px;
}
.has-cta-more a,
a.has-cta-more {
    display: inline-block;
    width: 64px;
    height: 64px;
    background-color: var(--wp--preset--color--light-grey);
    background-image: url(assets/img/arrow-dark.svg);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 40px 40px;
    border-radius: 50%;
}
.has-cta-more a:hover,
a.has-cta-more:hover {
    background-color: var(--wp--preset--color--black);
    background-image: url(assets/img/arrow-light.svg);
}

.has-cta-more a em,
a.has-cta-more em {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;  
}

.is-project-item .has-cta-more a::before,
.is-project-item a.has-cta-more::before,
.is-next-project-item .has-cta-more a::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    content: '';
}

@media (min-width: 600px) {
    .has-cta-more {
        height: 80px;
    }
    .has-cta-more a,
    a.has-cta-more {
        width: 80px;
        height: 80px;
    }
}

/*
-------------------------------------------------------------
 Project Grid
-------------------------------------------------------------
*/

.is-project-grid {
    --row-gap: 40px;
    --col-gap: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--row-gap) var(--col-gap);
}

.is-project-item {
    flex-basis: 100%;
    position: relative;
}

.is-project-item img,
.is-project-item video {
    display: block;
    width: 100%;
    max-width: 100%;;
    height: auto;
    transition: transform 0.3s ease-out;
}

.is-project-item figure {
    overflow: hidden;
}
.is-project-item:hover img,
.is-project-item:hover video {
    transform: scale(1.06);
}

.is-project-item img,
.is-project-item video {
    aspect-ratio: 1.92;
    object-fit: cover;
}

/* Grid */
.grid .has-square-media img,
.grid .has-square-media video {
    aspect-ratio: 1.1333;
}

.is-load-more-button {
    display: flex;
    justify-content: center;
}
.is-load-more-button a {
    margin-top: var(--wp--preset--spacing--128);
    padding: 16px 42px;
    border: 2px solid var(--wp--preset--color--black);
    border-radius: 1px;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--copy-small);
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.6;
    text-decoration: none;
    cursor: pointer;
}
.is-load-more-button a:hover {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

@media (min-width: 600px) {

    .is-project-grid {
        --row-gap: 128px;
        --col-gap: 40px;
    }
    .row .is-project-item,
    .grid .is-project-item {
        flex-basis: calc((100% - var(--col-gap)) / 2);
    }
    .grid .is-project-item:nth-child(6n+1),
    .grid .is-project-item:nth-child(6n+4) {
        flex-basis: 100%;
    }
    .grid .has-square-media img,
    .grid .has-square-media video {
        aspect-ratio: 1.1333;
    }
    
}

/*
-------------------------------------------------------------
 Media: Responsive Aspect Ratio
-------------------------------------------------------------
*/
@media (max-width: 781px) {
    .is-wide-on-mobile img,
    .is-wide-on-mobile video {
        aspect-ratio: 1.92;
        object-fit: cover;
    }
    .wp-block-cover.is-wide-on-mobile {
        aspect-ratio: 1.92!important;
    }
}

/*
-------------------------------------------------------------
 Next Project Teaser
-------------------------------------------------------------
*/
.has-next-project {
    position: relative;
}
.has-next-project::after {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: clamp(160px, 18.3vw, 256px);
    display: block;
    content: '';
    background: var(--wp--preset--color--black);
}
.is-next-project-item {
    position: relative;
}
.is-next-project-item img {
    display: block;
    width: 100%;
    max-width: 100%;;
    height: auto;
    transition: transform 0.3s ease-out;
    aspect-ratio: 1.1333;
    object-fit: cover;
}
.is-next-project-item:hover img {
    transform: scale(1.06);
}
.is-next-project-item figure {
    overflow: hidden;
}
.is-next-project-item h4 + p {
    margin-top: 0;
}


/*
-------------------------------------------------------------
 Logo Grid
-------------------------------------------------------------
*/
.is-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 15px;
}
@media (min-width: 782px) {
    .is-logo-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 32px 20px;
    }
}
@media (min-width: 1120px) {
    .is-logo-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 64px 24px;
    }
}

/*
-------------------------------------------------------------
 Forms
-------------------------------------------------------------
*/
/* Contact Form 7 :: Styling of form fields */
.wpcf7 {
  margin: 0;
}
.wpcf7 input,
.wpcf7 textarea {
    width: 100%;
    padding: 30px 0;
    border: none;
    border-bottom: 2px solid var(--wp--preset--color--medium-grey);
    border-radius: 0;
    background: transparent;
    font-family: var(--wp--preset--font-family--figtree);
    font-size: var(--wp--preset--font-size--copy);
    font-weight: 400;
    letter-spacing: 0.75px;
    line-height: 1.5;
}
.wpcf7 textarea {
    height:   36px;
    min-height: 36px;
    resize: vertical;
}
.wpcf7 textarea::placeholder {
  color: var(--wp--preset--color--black);
  opacity: 1;
}
.wpcf7 textarea:focus::placeholder {
  color: transparent;
}
.wpcf7 select {
  padding: 13px 20px 20px;
  border: none;
  border-bottom: 2px solid var(--wp--preset--color--medium-grey);
  background: transparent;
}
.wpcf7 option {
  background: var(--wp--preset--color--grey);
}
.wpcf7 input:hover,
.wpcf7 textarea:hover,
.wpcf7 select:hover {
  border-color: var(--wp--preset--color--black);
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--wp--preset--color--black);
  outline: none;
}
.wpcf7 .has-focus input,
.wpcf7 .has-focus textarea,
.wpcf7 .has-focus select {
  border-color: var(--wp--preset--color--medium-grey);
}
.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.wpcf7-acceptance .wpcf7-list-item-label {
  font-size: var(--wp--preset--font-size--copy-small);
}
.wpcf7-acceptance .wpcf7-list-item-label a {
  color: var(--wp--preset--color--black);
}
.wpcf7-acceptance input {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.wpcf7-acceptance input + span {
  position: relative;
  padding-left: 40px;
}
.wpcf7-acceptance input + span::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--wp--preset--color--grey);
  border-radius: 1px;
}
.wpcf7-acceptance input + span:hover::before {
    background-color: var(--wp--preset--color--light-grey);
    border-color: var(--wp--preset--color--black);
}
.wpcf7-acceptance input:checked + span::before {
  background: url(assets/img/check-dark.svg) no-repeat 50% 50%;
  background-size: 16px 16px;
  border-color: var(--wp--preset--color--black);
}


.wpcf7 input.wpcf7-submit {
  display: inline-block;
  width: auto;
  margin-top: 20px;
  padding: 16px 42px;
  border: 2px solid var(--wp--preset--color--black);
  white-space: nowrap;
  cursor: pointer;
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
  font-family: inherit;
  font-size: var(--wp--preset--font-size--copy-small);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.6;
  text-decoration: none;
}
.wpcf7 input.wpcf7-submit:hover {
  background-color: var(--wp--preset--color--black);
  border-color: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
}

.wpcf7-not-valid-tip {
  position: absolute;
  bottom: -24px;
  left: 0;
  font-size: var(--wp--preset--font-size--topline-small);
  color: var(--wp--preset--color--grey);
}
.wpcf7-acceptance + .wpcf7-not-valid-tip {
  position: static;
}

.wpcf7 form .wpcf7-response-output {
    margin: 24px 0;
    padding: 16px 42px;
    border: 2px solid var(--wp--preset--color--black);
    background: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--copy-small);
}
.wpcf7 .wpcf7-not-valid,
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: var(--wp--preset--color--black);
  font-size: var(--wp--preset--font-size--copy-small);
}

/* Layout Fields */
.input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--48);
}
.input-box {
  position: relative;
  flex-basis: 100%;
}
.input-box p {
  margin: 0
}
.wpcf7-form-control-wrap {
  position: relative;
  width: 100%;
  display: inline-block;
}

/* Label */
.has-text label,
.has-select label,
.has-textarea label {
  position: absolute;
  top: 30px;
  left: 0;
  transition: .3s;
}
.has-text:focus-within label,
.has-text.has-focus label {
  top: -6px;
  font-size: var(--wp--preset--font-size--topline-small);
  color: var(--wp--preset--color--dark-grey);
}
.has-select label {
  pointer-events: none;
  background: var(--wp--preset--color--dark-grey);
}
.has-select:focus-within label,
.has-select.has-focus label {
  top: 13px;
  opacity: 0;
}
.has-textarea label {
  top: 30px;
  font-size: var(--wp--preset--font-size--topline-small);
  color: var(--wp--preset--color--grey);
}

/* Submit Button */
.has-submit {
  position: relative;
}
.wpcf7-spinner {
  position: absolute;
  top: 50%;
  background-color: var(--wp--preset--color--grey);
}

@media (min-width: 600px) {
  .input-box.half-col {
    flex-basis: calc((100% - 36px) / 2);
  }
}

/* Checkbox */
label.checkbox {
    display: inline-block;
    margin-right: 24px;
    font-size: var(--wp--preset--font-size--copy-small);
  }
  label.checkbox span {
    padding-left: 10px;
  }
  label.checkbox input {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
  }
  label.checkbox input + span {
    position: relative;
    padding-left: 34px;
  }
  label.checkbox input + span::before {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    top: 4px;
    width: 22px;
    height: 22px;
    border: 2px solid var(--wp--preset--color--grey);
    border-radius: 1px;
  }
  .wpcf7-acceptance input:checked + span::before {
    background: url(assets/img/check-dark.svg) no-repeat 50% 50%;
    background-size: 16px 16px;
    border-color: var(--wp--preset--color--black);
  }
  
  