/**
 * @license
 *
 * Font Family: Passenger Serif
 * Designed by: Diana Ovezea, Samo Ačko
 * URL: https://www.indiantypefoundry.com/fonts/passenger-serif
 *
 * Font Styles:
 *  Regular
 *
 * © 2024 Indian Type Foundry
*/

@font-face {
  font-family: 'Passenger-Regular';
  src: url('../fonts/PassengerSerif-Regular.woff') format('woff'), url('../fonts/PassengerSerif-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "FT-System";
  src: url("/assets/fonts/FTSystem-BlankRegular.woff") format("woff"), url('/fonts/FTSystem-BlankRegular.woff2') format('woff2');

}


*,
*::before,
*::after {
  box-sizing: inherit;
}




html,
body {
  margin: 0px;
  padding: 0px;
  width: auto;
  font-family: var(--ff-s);
  font-weight: normal;
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.2px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding: var(--scroll-padding, 2rem);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* hyphens: auto; */
}

img {
  display: block;
  max-width: 100%;
  margin-inline: auto;
}



/* ---------------------------------------------------------- variables */
:root {
  --color-a: #8b8854;
  --color-b: #5b82ff;
  --black: #000000;
  --white: #ffffff;

  --ff-s: 'Passenger-Regular', serif;
  --f-ss: "FT-System", sans-serif;

  --font-size-xs: 1rem;
  --font-size-s: 1.15rem;
  --font-size-m: clamp(1.25rem, 1.3vw, 1.5em);
  --font-size-ml: 1.5rem;
  --font-size-l: 2rem;
  --font-size-xl: 2.4rem;


  --btn-nav-l: 0.5rem;

  --p-inline: 5%;
  --p-block: clamp(3rem, 4rem, 150px);
  --p-block-s: clamp(1rem, 1.25rem, 70px);
  --p-block-section: clamp(3rem, 4rem, 150px);
  --p-top: 150px;
  --p-sitetitle: 7px 1.5%;
  --p-sitetitle-mobile: 4px 1rem;
  --scroll-padding: 150px;


}

/* ---------------------------------------------------------- typography */


p {
  font-family: var(--ff-s);
  font-size: var(--font-size-s);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-family: var(--f-ss);
  font-size: var(--font-size-m);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  margin: 12px 0px;
}

h2 {
  font-family: var(--f-ss);
  font-size: var(--font-size-s);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}


section#impressum h1 {
  font-size: var(--font-size-xs);
}


u {
  text-decoration: none;


}

#projekte>.grid-inline>div.text {
  text-indent: -1em;
  margin-left: 1em;
}

#projekte>.grid-inline>div.text>p {
  margin-block: 0px;
}

#projekte>.grid-inline>div.text>p:first-of-type {
  margin-bottom: 1em;
  text-indent: 0em;
  margin-left: -1em;
}

/* ---------------------------------------------------------- scrollbar */
body::-webkit-scrollbar {
  width: 0;
  display: none;
}


/* ---------------------------------------------------------- navigation desktop */
.left,
.right {
  width: 50vw;
  padding-top: 75px;
}


ul {
  margin: 0;
}

li {
  list-style-type: none;
  font-family: var(--f-ss);
  font-size: var(--font-size-m);
  display: inline;
  padding-right: 0.75rem;
}

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

.navigation {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100vw;
}



/* ---------------------------------------------------------- Primary Navigation  */
.primary-navigation {
  width: 100vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2.5%;
  z-index: 600;
  position: fixed;
  top: 0;
  background-color: var(--white);
  padding-block: 0.5rem;
  box-shadow: rgb(0, 0, 0, 0.5) 2px 2px 10px 3px;
}


/* ---------------------------------------------------------- Circles  */
.primary-navigation li:first-child::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-top: 2px;
  margin-right: 1rem;
  background-color: var(--color-a);
}



.primary-navigation li:last-child::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-top: 2px;
  margin-right: 1rem;
  background-color: var(--color-b);
}



.primary-navigation>li>a {
  vertical-align: inherit;
  font-family: var(--ff-s);
  font-size: var(--font-size-xl);
}









/* ---------------------------------------------------------- Sub Navigation  */
.sub-navigation {
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;

}


.sub-navigation ul>li>a {
  color: var(--black);
  border: solid 1px var(--black);
  border-radius: 50px;
  background-color: var(--white);
  padding: 0.25rem 1rem 0.05rem 1rem;
  display: inline-flex;
  align-items: end;
  height: 30px;
  line-height: 31px;

}

@-moz-document url-prefix() {
  .sub-navigation ul>li>a {
    padding: 1.85rem 1rem 0rem 1rem;
  }
}


.left>li>a:hover {
  background-color: var(--color-a);
}

.right>li>a:hover {
  background-color: var(--color-b);
}

a:active,
a:focus {
  background-color: var(--white);
}

a:focus,
a:focus {
  background-color: var(--white);
}


/* ---------------------------------------------------------- sitetitle */
/* ----------------------------------------------------------  header */

header {
  width: 100vw;
  position: fixed;
  bottom: 0;
  background-color: white;
  box-shadow: rgb(0, 0, 0, 0.5) 2px 2px 10px 3px;


}

.sitetitle {
  color: var(--black);
  text-align: center;
  display: flex;
  justify-content: space-between;
  padding: var(--p-sitetitle);
  align-items: center;
}


.logo-center>span {
  display: block;
  letter-spacing: 0;
  font: clamp(1em, 1.2em, 1.4em) var(--ff-s), serif;
}

svg {
  height: 3rem;
  width: auto;
}



/* ---------------------------------------------------------- Split-Scren */

.grid {
  display: grid;
}

.split-screen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  column-gap: 10px;
  height: 100vh;
  margin-top: -1px;
}

.left-panel {
  background-color: var(--color-a);
}

.right-panel {
  background-color: var(--color-b);
}

.panel {
  overflow-y: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-padding: var(--scroll-padding, 0);
  padding-inline: var(--p-inline);
  padding-block: var(--p-top) 50svh;

}

.grid-item {
  width: clamp(300px, 100%, 1000px);
  margin-inline: auto;
  display: grid;
}

.grid-inline {
  grid-template-columns: 1fr 2fr;
  grid-gap: 0.5vw;
  padding-block: var(--p-block-s);

}


section.project {
  padding-top: 0;
  padding-bottom: var(--p-block-section);
}

section.project:last-child {
  padding-bottom: 30vw;
}

.left-panel>section>.illustration:first-child {
  padding-top: var(--p-block);
}

/* ---------------------------------------------------------- Images */
.illustration {
  width: 65%;
  margin-inline: auto;
}


@media(max-width:1200px) {

  .grid-inline {
    grid-template-columns: 1fr;
  }
}



/* ---------------------------------------------------------- Quote */
blockquote {
  grid-column: 1/3;
  margin: 0px;
}

/* ---------------------------------------------------------- Icon */

#stiftungsrat a {
  font-family: var(--f-ss);
  font-size: var(--font-size-xs);
}





/* ---------------------------------------------------------- Mobile + Tablet */
@media screen and (max-width:910px) {
  .panel {
    overflow-y: visible;
    padding-block: var(--p-top) var(--p-block);
  }


  .grid-inline {
    grid-template-columns: 1fr 2fr;
  }


  /* ---------------------------------------------------------- Nav Mobile + Tablet */

  .primary-navigation {
    grid-template-columns: 1fr;
    padding-inline-start: 0;
    padding-block: 0px;
    grid-gap: 0;
    box-shadow: none;
  }




  .primary-navigation>li {
    width: 100%;
    background-color: var(--white);
    padding-inline-start: 0%;
    padding-block: 0.5rem;
    box-shadow: rgb(0, 0, 0, 0.5) 2px 2px 20px 3px;
    vertical-align: text-bottom;
  }


  .primary-navigation li:last-child {
    text-align: end;

  }

  .primary-navigation li:last-child::before {
    content: '';
    display: inline-block;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    margin-left: 1rem;
    background-color: var(--color-b);
  }

  .primary-navigation li:last-child::after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-left: 1rem;
    background-color: var(--color-b);
  }

  .primary-navigation li:first-child::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-left: 1rem;
    background-color: var(--color-a);
  }

  .order-2 {
    order: 2;
  }

  .primary-navigation li>a {
    font-size: var(--font-size-l);
    display: inline-block;
    width: calc(100svw - 120px);
  }


  .left>li>a:hover {
    background-color: var(--white);
  }

  .right>li>a:hover {
    background-color: var(--white);
  }

  li {

    font-size: var(--font-size-s);
  }

  .sub-navigation {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .left,
  .right {
    width: 100%;
    padding-top: 125px;
    padding-left: 0px;
  }




  .split-screen {
    height: 100%;

    grid-template-columns: 1fr;
    column-gap: 0px;
  }


  .sub-navigation>ul.right,
  .sub-navigation>ul.left {
    display: none;
  }

  .show {
    display: block !important;
  }

  .shadow {
    background-color: white;
    box-shadow: rgb(0, 0, 0, 0.5) 2px 2px 10px 3px;
    width: 100vw;
    position: absolute;
    z-index: 700;
    height: 55.5px;
  }


}


@media screen and (max-width:700px) {



  .grid-inline {
    grid-template-columns: 1fr;
  }


  .illustration {
    width: 80%;
  }


  .primary-navigation>li {
    width: 100%;
    background-color: var(--white);
    padding-inline-start: 0%;
    padding-block: 0.4rem;
    box-shadow: rgb(0, 0, 0, 0.5) 2px 2px 10px 3px;
    vertical-align: text-bottom;
  }

  .primary-navigation li>a {
    font-size: var(--font-size-ml);
    display: inline-block;
    width: calc(100svw - 120px);
  }


  .left,
  .right {
    width: 100%;
    padding-top: 105px;
    padding-left: 0px;
  }

}

@media screen and (max-width:510px) {




  li {
    font-size: var(--font-size-s);
  }

  .sub-navigation ul>li>a {
    color: var(--black);
    border: solid 1px var(--black);
    border-radius: 50px;
    background-color: var(--white);
    padding: 0.25rem 1rem 0rem 1rem;
    display: inline-flex;
    align-items: end;
    height: 26px;
    line-height: 26px;
    margin-bottom: 0.5rem;

  }

}

@media screen and (max-width:440px) {



  li {
    font-size: var(--font-size-s);
    letter-spacing: 0px;
  }





  header {
    width: 100vw;
    position: fixed;
    bottom: 0;
    background-color: white;
    box-shadow: rgb(0, 0, 0, 0.5) 2px 2px 10px 3px;


  }

  .sitetitle {

    padding: var(--p-sitetitle-mobile);
    align-items: center;
  }


  .logo-center>span {
    display: block;
    letter-spacing: 0;
    font: 16px var(--ff-s), serif;
  }

  svg {
    height: 1.75rem;
  }


  .left-panel>section>.illustration:first-child {
    padding-top: 10%;
  }

  section.project {
    padding-bottom: 5%;
  }


}