* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: black;
    text-wrap: pretty;    
    line-height: 150%;
}


.center {
    text-align: center;
}

hr {
    margin: 82px 0;
    border: 0;
    text-align: center;
  }
  hr:before {
    margin-left: 15px;
    content: "• • •";
    letter-spacing: 20px;
    font-size: 30px;
    color: #ffcf40;
  }

a.button {
    display: block;
    border: 1px solid black;
    margin: 10px auto;
    max-width: 300px; 
}


body {  
    position: relative;
    overflow-x: hidden;
    font-family: Georgia, 'Times New Roman', Times, serif;
    scroll-behavior: smooth; 
    padding: 0;   
    
}
html {
  scroll-behavior: smooth; 
}


#background-container {
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    
    background-image: url("/img/white-marble.jpg");
    background-repeat: repeat;
    z-index: -1;
}
#background-container.dark {
    filter: invert(100%);
    -webkit-filter: invert(100%);

}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: #cfc167 #cfc16700;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 5px;
  }

  *::-webkit-scrollbar-track {
    background: #cfc1670c;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #ffe222;
    border-radius: 5px;
    border: 1px solid #ffffff;
  }



p {
  padding: 10px;
}

img {
    width: 100%;
    height: auto;    
}
section {
    max-width: 1150px;   
    margin: 0 auto;
}
h1,h2,h3 {
    margin: 10px 0;
    text-align: center;
    font-family: "Playfair Display SC", serif;
    font-weight: 400;
    font-style: normal;
}
h1 {
  font-size: xx-large;
  margin-bottom: 50px;
}
nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: white;  
    height: 60px; 
    top: 0;
    position: sticky;
    z-index: 10;
}
nav div {
  display: flex;
  flex-direction: row;
  align-items: center;
    justify-content: center;
}
.navlink {
    margin: 1vw;
    color: #443301;
    cursor: pointer;
    font-size: large;
    font-variant: small-caps; 
    background-color: transparent; 
    border: none;  
    padding: 5px;
}
.navlink.active {
  border: 1px solid gold;
}
.navlink.logo{margin: 0;}
.navlink.logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0;
    filter: invert(100%);
    -webkit-filter: invert(100%);

}


nav #lightdark {
    background-color: transparent;
    border: none;
    color: black;
    font-size: larger;
    width: 30px;
    position: absolute;
    right: 50px;
    cursor: pointer;
}
nav.dark #lightdark {
  color: white;
}
nav.dark {
  background-color: rgba(0, 0, 0, 1);
}
nav.dark .logo {
  filter: none;
  -webkit-filter: none;
}

@media (max-width: 600px) {
  nav {
    padding: 15px 0;
  }
  nav div{
    flex-direction: column;
  }
  nav #lightdark {
    right: 10px
  }

}


#hero {  
  max-width: 100%;
  text-align: center;
  filter: invert(100%);
  -webkit-filter: invert(100%);
  justify-content: center;
  align-content: center;
  height: 100dvh;
  animation: heroani 2s 3s ease forwards;  
}

@keyframes heroani {
  from {height: 100dvh;}
  to {height: 200px;}
}
#hero img {
  max-width: 90vw;
  animation: heroimgani 2s ease forwards;
}
@keyframes heroimgani {
  0% {width: 20px;opacity: 0.1;}
  70% {width: 500px;}
  100% {width: 400px;opacity: 1;}

}
#hero.dark {
  filter: none;
  -webkit-filter: none;
  background-color: transparent;
}

#intro {
  margin-top: 150px;
}
#intro h3 {
  margin-top: 30px;
  margin-bottom: 20px;
}
#intro.dark, #intro.dark h3 {
  color: white;
}


#marken {
  max-width: 1000px;
  width: 90%;
}
#marken .flexcontainer>div {   
  border: 1px solid transparent;
  padding: 10px;
  height: 96%;
  align-self: stretch;
  border-width: 2px;
  border-style: solid;
  border-image: linear-gradient(120deg, wheat, white, wheat) 1;
}
.markecontainer {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 100px 50px;
  align-items: center;
  justify-items: center;
  row-gap: 10px;
  
}

#marken .button {
  padding: 10px 20px;
}
.markecontainer img {  
  width: auto;
  max-width: 100%;
  max-height: 100%;
}
.markecontainer .markenlogo {
  width: 80%;
}
.glossy {
  width: 90%;
}
.flexcontainer {
  --tmarg1: -1%;
  --tmarg2: -2.2%;
}
#marke1 {grid-area: marke1;}
#marke1desc {grid-area: marke1desc;margin-top: var(--tmarg1);}
#marke2 {grid-area: marke2;}
#marke2desc {grid-area: marke2desc;margin-top: var(--tmarg2);}
#marke3 {grid-area: marke3;}
#marke3desc {grid-area: marke3desc;margin-top: var(--tmarg1);}
#marke4 {grid-area: marke4;}
#marke4desc {grid-area: marke4desc;margin-top: var(--tmarg2);}
#marke5 { grid-area: marke5; max-width: 50% !important;}
#marke5desc {grid-area: marke5desc;margin-top: var(--tmarg1);}
.flexcontainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    justify-content: center;
    align-items: center;
    gap: 15px; 
    justify-items: center;
    grid-template-areas: 
    "marke1 marke2"
    "marke1desc marke1desc"
    "marke2desc marke2desc"
    "marke3 marke4"
    "marke3desc marke3desc"
    "marke4desc marke4desc"
    "marke5 marke5"
    "marke5desc marke5desc";   
   
    
}

#marken .flexcontainer .markendesc {
  width: 99%;
  border: none;
  height: auto;
  max-height: 0px;
  transition: max-height 1.5s ease, margin-bottom .5s ease, opacity 1s ease;
  padding: 0px;
  overflow: hidden;
  text-align: center;
  opacity: 0;  
}

#marken .flexcontainer .markendesc.active { 
  border: 1px solid wheat;
  max-height: 800px;
  margin-bottom: 20px;
  opacity: 1;
  padding: 15px;
}
#marken .flexcontainer>.glossy.active {
  transform: translateY(3px);
  box-shadow: 0px 0px 0px rgba(134, 134, 134, 0.0);
  border-bottom: none;
}



#marken p {
    width: 80%;
    margin: 0 auto;
    
}
.imgrow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  column-gap: 10px;
  justify-items: center;
  margin-bottom: 20px;  
}
.imgrow img {
  width: 80%;
  height: auto;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#marken.dark .markenlogo {
  filter: invert(100%);
}
#marken.dark .markendesc {
  color: white;
}
#marken a {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .flexcontainer {
    grid-template-columns: 1fr;
    grid-template-areas: 
    "marke1"
    "marke1desc"
    "marke2"
    "marke2desc"
    "marke3"
    "marke3desc"
    "marke4"
    "marke4desc"
    "marke5"
    "marke5desc";        
  }
  .flexcontainer>div {
    margin-bottom: 15px;
  }
  #marke5 {
    grid-column: span 1;
    max-width: 100% !important;
  } 
  #marken .flexcontainer .markendesc.active {
    margin-top: calc(10px-1vw);
  }


  .imgrow {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}




.dark p, .dark h1, .dark h2, .dark a {
    color: wheat;
}



.glossy {
  --transition-duration: 700ms;
  --transition-easing: ease-out; 
  background-color: rgba(255, 255, 255, 0.1);   
  border-radius: 0.5rem;
  box-shadow: 0px 5px 5px rgba(134, 134, 134, 0.3);
  transition: transform var(--transition-duration) var(--transition-easing), box-shadow var(--transition-duration) var(--transition-easing);
  overflow: hidden;
  cursor: pointer;
}
@media (min-width: 900px) {
.glossy::before {    
  content: "";
  background: rgba(255, 255, 255, 0.25);
  transform: skew(45deg);
  width: 60%;
  height: 600px;
  top: 0%;
  left: -150%;
  position: absolute;
  transition: left var(--transition-duration) var(--transition-easing);    
}

.glossy:hover {
  transform: translateY(3px);
  box-shadow: 0px 0px 0px rgba(134, 134, 134, 0.3);
}
.glossy:hover::before {    
  left: 200%;
}

}

#newsletter {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
}
#newsletter > form {
  display: grid;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  grid-template-columns: 1fr;
  row-gap: 20px;
  justify-content: center;
  justify-items: center;
}

#newsletter button {
  background-color: transparent;
  color: #9b9b9b;
  border: 1px solid lightgoldenrodyellow;
  padding: 5px 10px;
}


.form__group {
  position: relative;
  padding: 20px 0 0;
  width: 100%;
  max-width: 400px;
}


.form__field {
  font-family: inherit;
  width: 100%;
  border: none;
  border-bottom: 2px solid #d1d1d1;
  outline: 0;
  font-size: 17px;
  color: #dfdfdf;
  padding: 7px 0;
  background: transparent;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}
  
.form__field::placeholder {
  color: transparent;
}


.form__field:placeholder-shown ~ .form__label {
  font-size: 17px;
  cursor: text;
  top: 20px;
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  font-size: 17px;
  color: #c4c4c4;
  pointer-events: none;
}

.form__field:focus {
  padding-bottom: 6px;
  font-weight: 700;
  border-width: 3px;
  border-image: linear-gradient(to right, #116399, #38caef);
  border-image-slice: 1;
}

.form__field:focus ~ .form__label {
  position: absolute;
  top: 0;
  display: block;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  font-size: 17px;
  color: #38caef;
  font-weight: 700;
}

/* reset input */
.form__field:required, .form__field:invalid {
  -webkit-box-shadow: none;
          box-shadow: none;
}


#services .servicecont{
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 10px;
}
#services img {
  width: 90%;
  min-width: 200px;
}
#services ul{
  list-style-type: none;
  margin-left: 30px;
  font-family: "Playfair Display SC", serif;
    font-weight: 400;
    font-style: normal;
  font-size: large;  
}
#services li {
  padding: 5px;
}
#services span {
  font-family: "Playfair Display SC", serif;
    font-weight: 400;
    font-style: normal;
}
#services a {
  padding: 20px 50px;
  border: 1px solid wheat;  
  grid-column: span 2;
  transition: background-color .5s, box-shadow .5s;
  margin-top: 20px;
  box-shadow: 1px 1px 5px grey;
}
#services a:hover {
  background-color: rgba(255, 217, 0, 0.6);
  box-shadow: 0px 0px 1px grey;
  
}
@media (max-width: 900px) {  
  #services .servicecont {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  #services img {
    width: 60%;
  }
}

#services.dark span, #services.dark li {
  color: wheat;
}


#about img {
  max-width: 450px;
  width: 80%;
  height: auto;    
}
#about >div {
  display: grid;        
  grid-template-columns: 1fr 1fr;
  align-items: center; 
  margin: 15px; 
  padding: 15px;      
  align-self: stretch;
  justify-items: center;  
}
#about .firstabout {
  grid-template-columns: 1fr 1fr;
}
#about .secondabout {
  grid-template-columns: 1fr 1fr;
}

#about div>div>* {
  text-align: left;
  padding: 10px;  
}
#about >div:nth-of-type(2)>div> * {
  text-align: right;
}
#about p {
  max-width: 500px;
}

@media (max-width: 900px) {
  #about >div {
    display: flex;
    flex-direction: column;
  }
  .secondabout {
    display: flex;
    flex-direction: column-reverse !important;
  }
}



footer {
  max-width: 1000px;
  margin: 0 auto;
}
#footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  background-color: rgba(156, 128, 3, 0.5);
  padding: 20px;
}
#footer ul {
  list-style:square;  
}
#footer li {
  margin-top: 5px;
}

footer #lastline {
  font-size: smaller;
  text-align: center;
  background-color: rgba(156, 128, 3, 0.8);
}

@media (max-width: 450px) {
  #footer {
    flex-direction: column;
  }
}


/* Modal */
.modal-window {
  position: fixed;
  background-color: rgba(158, 158, 158, 0.7);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  max-width: 100vw;
}
.modal-window:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.modal-window > div {
  width: 400px;
  max-width: 80vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2em;
  background: white;
}
.modal-window header {
  font-weight: bold;
}
.modal-window h1 {
  font-size: 150%;
  margin: 0 0 15px;
}

.modal-close {
  color: #aaa;
  line-height: 40px;
  font-size: 80%;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 40px;
  text-decoration: none;
  border: 1px rgba(0, 0, 0, 0.1) solid;
}
.modal-close:hover {
  color: black;
  background-color:#ffcf40;
}