/*!
Theme Name: friedlieb
Theme URI: https://friedlieb.at/
Author: Martin Paschinger
Author URI: https://martinpaschinger.com/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: friedlieb
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

friedlieb is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
:root {
  --clr-primary: #000000;
  --clr-secondary: #C8BFAE;
  --text-sm: 16px;
  --text-base: 30px;
  --text-md: 55px;
  --text-lg: 128px;
}

@font-face {
  font-family: "Tobias-Light";
  src: url("./assets/Tobias-Light.woff") format("woff"),
    url("./assets/Tobias-Light.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
}

@font-face {
  font-family: "Helvetica-Regular";
  src: url("./assets/Helvetica-Regular.woff") format("woff"),
    url("./assets/Helvetica-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
}

@font-face {
  font-family: "Helvetica-Light";
  src: url("./assets/HelveticaNeueLight.ttf") format("truetype"),
       url("./assets/HelveticaNeue-Light.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica-Light";
  background-color: var(--clr-secondary);
  color: var(--clr-primary);
  overflow-x: hidden;
}

.sidebar ul li a,
.site-header .logo-w p {
	font-family: "Helvetica-Regular";
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--clr-primary);
}

h1,
h2 {
  font-family: "Tobias-Light";
  font-size: var(--text-lg);
  font-weight: normal;
  font-style: normal;
}

p,
a {
  font-size: var(--text-base);
  font-weight: normal;
  font-style: normal;
}

.site-main p,
.site-main a {
  font-size: var(--text-base);
  font-weight: normal;
  font-style: normal;
}

.modal h1,
.modal h2 {
  margin-bottom: 25px;
  margin-top: 10px;
}

.modal p {
  margin-bottom: 15px;
}

.sidebar ul li a,
.modal .close-icon {
  font-size: var(--text-sm);
  text-transform: uppercase;
}

.main-item {
  will-change: transform, opacity;
}

.main-item-desc {
  will-change: filter, opacity;
}

article.post-5 {
  position: relative;
}

.bg-img-wrapper {
  width: 40vw;
  height: 40vw;
  position: fixed;
  top: 80vh;
  left: 0;
  z-index: -1;
  opacity: 0.6;
  display: none;
  pointer-events: none;
}

.bg-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*--------------------------------------------------------------
  # Header
  --------------------------------------------------------------*/
.site-header {
  width: 100%;
  height: 100svh;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1000;
  background-color: var(--clr-secondary);
  color: var(--clr-primary);
  overflow: hidden;
}

.site-branding {
  width: 100%;
  text-align: center;
  position: relative;
  margin-top: -10vh;
}

.site-branding .logo,
.site-footer .logo {
  width: 1320px;
}

.site-branding-sm {
  width: 50px;
  height: auto;
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 11;
  transition: transform 0.5s ease-in-out;
}

.site-branding-sm.fixed {
  position: fixed;
  right: 40px;
  top: 40px;
  z-index: 1000;
}

.site-branding-sm:hover {
  transform: scale(1.1);
}

.sidebar {
  width: auto;
  position: absolute;
  bottom: 40px;
  right: 130px;
  z-index: 100;
}

.sidebar.reset {
	transform: translate(0px, 0px)!important;
}

.sidebar ul {
  display: flex;
	flex-wrap: wrap;
	justify-content: center;
  gap: 130px;
}

.sidebar ul li {
	cursor: pointer;
}

.sidebar-content {
  width: 100%;
  height: 100svh;
  position: absolute;
  pointer-events: none;
  top: 0;
  right: -100%;
  transition: all 1s ease-in-out;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
}

.sidebar-content-inner {
  width: 78%;
  height: 100%;
  position: absolute;
  top: 0;
  right: -100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  transition: all 1s ease-in-out;
  flex-direction: column;
  gap: 60px;
  opacity: 0;
  visibility: hidden;
}

.sidebar-content-inner img {
  width: auto;
  height: 65vh;
  display: block;
}

.sidebar-content.visible {
  right: 0;
  opacity: 1;
  visibility: visible;
}

.sidebar-content-inner.show {
  right: 0;
  opacity: 1;
  visibility: visible;
}

.sidebar ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.sidebar ul li svg {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.sidebar ul li:hover svg {
  opacity: 1;
}

.text-wrapper {
  width: 100%;
  padding-right: 10vw;
}

.logo-w {
  position: relative;
  text-align: center;
  transition: opacity 0.5s ease-in-out;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
}

.logo-w p {
  text-transform: uppercase;
  margin-top: 50px;
	line-height: 1.5;
}

.logo-w p {
  position: relative;
}

.logo-w p,
.logo-w span {
  width: 100%;
  display: block;
}

.text {
  position: absolute;
  transition: opacity 0.5s ease-in-out;
}

.site-branding .logo-w:has(.logo:hover) {
  transform: scale(1.05);
}

.hover-text {
  transition: opacity 0.3s ease;
  opacity: 1;
}
.hover-text.fade-out {
  opacity: 0;
}

.modal-imprint-w,
.modal-w {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
}

.modal {
  width: 600px;
  height: auto;
  background-color: var(--clr-primary);
  color: var(--clr-secondary);
  padding: 40px;
  transition: transform 0.5s ease-in-out;
}

.modal-header {
  width: 100%;
  text-align: right;
}

.modal-imprint-w.show,
.modal-w.show {
  opacity: 1;
  visibility: visible;
}

.modal-imprint-w.show .modal,
.modal-w.show .modal {
  transform: translateY(-20px);
}

.close-icon {
  position: relative;
  cursor: pointer;
  color: var(--clr-secondary);
}

/*--------------------------------------------------------------
  # Main
  --------------------------------------------------------------*/
.site-main {
  width: 100%;
  background-color: var(--clr-secondary);
  color: var(--clr-primary);
  position: relative;
  z-index: 10;
}

.main-item-desc {
  width: calc(100% - 360px);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.main-item-desc h1,
.main-item-desc h2 {
  margin-bottom: 100px;
}

.main-item {
  width: 100%;
  position: relative;
}

.main-item-img {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

#main-item-1 .main-item-imgs .main-item-img:first-of-type,
#main-item-3 .main-item-imgs .main-item-img:first-of-type {
  transform: translateX(20vw);
}

.main-item-imgs img.reset {
	transform: translate(0, 0)!important;
}

#main-item-1 .main-item-imgs .main-item-img:last-of-type,
#main-item-3 .main-item-imgs .main-item-img:last-of-type {
  justify-content: flex-end;
  padding-right: 130px;
}

#main-item-2 .main-item-imgs .main-item-img:first-of-type {
  justify-content: flex-end;
  padding-right: 14vw;
}

#main-item-2 .main-item-imgs .main-item-img:last-of-type {
  padding-left: 180px;
}

.main-item-imgs img {
  width: 39vw;
  height: auto;
	mix-blend-mode: multiply;
}

#main-item-2 .main-item-imgs .main-item-img:first-of-type img {
  width: 59vw;
}

#main-item-2 {
  margin-top: -14vw;
}

.entry-content {
  padding-top: 200px;
}

.main-item-imgs {
  margin-top: -200px;
  position: relative;
  z-index: -1;
}

.modal-imprint-w .modal {
	    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    padding: 120px 180px;
    overflow-y: scroll;
}

.modal-imprint-w .modal h1,
.modal-imprint-w .modal h2 {
	    font-size: 36px;
}

.modal-imprint-w .modal p,
.modal-imprint-w .modal a{
	    font-size: 16px;
	    color: var(--clr-secondary);
}
/*--------------------------------------------------------------
  # Footer
  --------------------------------------------------------------*/
.site-footer {
  width: 100%;
  background-color: var(--clr-primary);
  color: var(--clr-secondary);
  padding: 50px 180px 180px 180px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.site-footer .logo-w {
  cursor: pointer;
}

.site-info {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 gleich breite Spalten */
  gap: 40px;
}

.site-info a {
  color: var(--clr-secondary);
}

.site-info p:first-of-type {
  margin-bottom: 30px;
}

.site-info > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-info > div:last-of-type {
  text-align: right;
}

.site-footer .logo {
  color: var(--clr-secondary);
  fill: var(--clr-secondary);
  margin-top: 180px;
}
/*--------------------------------------------------------------
  # GSAP Settings
  --------------------------------------------------------------*/

/*--------------------------------------------------------------
  # Media Queries
  --------------------------------------------------------------*/
@media all and (max-width: 1680px) {
  .site-branding .logo,
  .site-footer .logo {
    width: 900px;
  }
	
	.site-footer {
	  height: 100vh;
  }
}

@media all and (max-width: 1560px) {
}

@media all and (max-width: 1480px) {
	.site-footer .logo {
		margin-top: 140px;
	}
	
  .main-item-desc {
    width: calc(100% - 240px);
  }

  .site-footer {
    width: 100%;
    padding: 40px 120px 70px 120px;
  }

  #main-item-2 .main-item-imgs .main-item-img:last-of-type {
    padding-left: 120px;
  }

  h1,
  h2 {
    font-size: var(--text-lg);
    font-weight: normal;
    font-style: normal;
  }

  .site-main p,
  .site-main a,
  p,
  a {
    font-size: 24px;
    font-weight: normal;
    font-style: normal;
  }
	
	.modal-imprint-w .modal {
    padding: 80px 120px;
}
}

@media all and (max-width: 1300px) {
  .site-branding .logo,
  .site-footer .logo {
    width: 600px;
  }
}

@media all and (max-width: 1180px) {
	.site-branding-sm {
		transition: opacity 0.3s ease-in-out;
	}
	.site-branding-sm.hide-on-mobil, .site-branding-sm.fixed {
 opacity: 0;
}
	
	.sidebar {
		right: 60px;
	}
	.sidebar ul {
    gap: 80px;
}
	
	.modal-imprint-w .modal {
    padding: 25px 25px;
}
	
  #main-item-2 {
    margin-top: 0px;
  }

  #main-item-2 .main-item-imgs .main-item-img:last-of-type {
    padding-left: 0;
  }

  h1,
  h2 {
    font-size: 60px;
    font-weight: normal;
    font-style: normal;
  }

  .main-item-imgs {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .main-item {
    width: calc(100% - 120px);
    margin: 0 auto;
  }
	
	#main-item-1 .main-item-desc {
		margin-top: -180px!important;
	}

  .site-footer {
    width: 100%;
	  height: auto;
    padding: 40px 60px 60px 60px;
  }

  .site-info {
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
  }

  .site-info > div:last-of-type {
    text-align: left;
  }

  .site-footer .logo {
    color: var(--clr-secondary);
    fill: var(--clr-secondary);
    margin-top: 100px;
  }

  .main-item-desc h1,
  .main-item-desc h2 {
    margin-bottom: 30px;
  }

  .main-item-imgs {
    margin-top: 40px;
  }

  #main-item-1 .main-item-imgs,
  #main-item-2 .main-item-imgs {
    padding: 0px;
  }

  #main-item-1 .main-item-imgs .main-item-img:first-of-type {
    transform: translateX(0vw);
  }

  #main-item-1 .main-item-imgs .main-item-img:last-of-type {
    justify-content: flex-start;
    padding-right: 0px;
  }

  #main-item-2 .main-item-imgs .main-item-img:first-of-type img {
    width: 100%;
  }

  #main-item-2 .main-item-imgs .main-item-img:first-of-type {
    justify-content: flex-start;
    padding-right: 0;
  }

  .site-main p,
  .site-main a,
  p,
  a {
    font-size: 20px;
    line-height: 120%;
    font-weight: normal;
    font-style: normal;
  }

	.sidebar-img-content {
		width: 100%;
        height: 50vh;
        display: block;
	}
	
	.sidebar-img-content img {
		width: 100%;
		height: 100%!important;
		position: relative;
		object-fit: cover;
	}
	
	    .sidebar ul li a, .modal .close-icon {
        font-size: 16px;
        text-transform: uppercase;
    }
	
  .text-wrapper {
    width: 100%;
    padding: 0px 25px;
  }

  .site-info div:nth-child(2) p:first-of-type {
    margin-bottom: 0px;
  }

  .site-footer div:nth-child(3) br {
    display: none;
  }

  .logo-w p {
    margin-top: 40px;
  }

  .site-footer {
    width: 100%;
    padding: 40px 25px 40px 25px;
  }

  .modal {
    padding: 25px;
  }

  .modal h1,
  .modal h2 {
    margin-bottom: 20px;
  }
	
	
	  .entry-content {
    padding-top: 20px;
  }
	
	.main-item {
		padding-bottom: 20px;
	}
	
	#main-item-3 {
		padding-bottom: 0px;
	}
	
	#main-item-1 .main-item-imgs .main-item-img:first-of-type, #main-item-3 .main-item-imgs .main-item-img:first-of-type {
    transform: translateX(0vw);
}
	
	#main-item-3 .main-item-imgs .main-item-img:last-of-type {
    padding-right: 0px;
}
	
	.main-item {
		width: 100%!important;
		display: flex;
		flex-direction: column-reverse;
	}
	
	
	.main-item-img {
		width: 66.6666vw;
		height: 88vw;
	}
	
	 .main-item-desc {
    width: 100%;
		 margin-top: 40px;
		 padding: 0px 25px;
  }
	
	.main-item-imgs .main-item-img:last-child {
		        margin-left: 33.333333vw;
        margin-top: -40vw;
	}
	
	  .main-item-imgs img {
    width: 100%;
    height:  100%;
		  object-fit: cover;
  }
	
	.site-branding-sm {
		right: 25px;
		top: 25px;
		position: fixed;
	}
	
	.sidebar-content-inner {
    width: 100%;
    gap: 25px;
  }
	
	.sidebar-content-inner img {
    width: 100vw;
    height: auto;
    display: block;
  }
	
	.site-main {
		position: relative;
		z-index: 1001;
	}
	
	.sidebar ul li {
    gap: 5px;
		margin-top: 3px;
}
		
	.sidebar ul li svg {
		width: 8px;
		height: 8px;
	}
	
	.logo-w {
		transition: all .9s ease-in-out;
	}
	
	.logo-w.visible {
		transform: translatex(-100vw);
	}
	
	.modal-imprint-w .modal p {
    font-size: 20px;
}
	
	.modal p {
    margin-bottom: 20px;
}

}

@media all and (max-width: 750px) {
	.sidebar ul li {
		flex-direction: row;
	}
	
	    .sidebar ul li svg {
        transform: translatey(-2px);
    }
	
  .site-branding .logo, .site-footer .logo {
        width: calc(100vw - 60px);
    }
	
	.site-branding {
    margin-top: calc( -50vh + 10px);
		padding-top: 100px;
}

  .logo-w p,
  .logo-w span {
    width: 100%;
    display: block;
    font-size: 16px;
  }

  .logo-w p {
    margin-top: 25px;
  }

  .site-branding-sm {
    width: 40px;
    right: 25px;
    bottom: 25px;
  }

  .site-branding-sm.fixed {
    right: 25px;
    top: 25px;
  }

  .sidebar ul {
            display: flex;
        flex-direction: column;
        align-items: flex-end;
        column-gap: 30px;
        row-gap: 6px;
  }

  .sidebar {
    bottom: 30px;
    right: 25px;
	  padding-left: 25px;
  }

  .site-footer {
    width: 100%;
    padding: 60px 25px 60px 25px;
  }

  .main-item {
    width: calc(100% - 50px);
  }

  .modal {
    padding: 25px;
  }
}
