/* GENERAL */
html{
  height:100%;
}
body{
  height:100%;
}
section {
  height: 100%;
}

body {
	margin: 0
}

body {
 background-color : #fff;  
 font-size : 16px;  
 line-height : 1.3;   
 font-family: 'Open Sans', sans-serif; 
 color : #111;  
 -webkit-font-smoothing : antialiased;  
 -webkit-text-size-adjust : 100%
    }

 h1 {
 font-size : 2em;  
 color: #95001b;
    }

 h1 h2 h3 p{
  margin: 10px;
 }

 h2{
  line-height: 1;
 }

 p {
  text-align: justify;
  text-justify: auto;
 }


/* HEADER & HEADER LOGO */

header{
  position: relative;
  margin: 0;
  max-width: 1440px;
  display: flex;
 }

.mobile {
  display: none;
}


/* HOME SECTION*/

#home {
    position: relative;
    max-width: 1440px;
    max-width: 100%;
    height: 100%;
    margin: 20px auto;
    background-color: #fff;
    overflow: hidden;
     display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.desktop img {
  object-fit: cover;
}

.box0 {
  display: flex;
  max-width: 1440px;
  max-width: 100%;
  height: auto;
  margin: auto;
  -ms-transform: translateY(15%);
  text-align: center;
  box-sizing: border-box;
}

#scrabble {
 max-width: 70%;
 justify-content: center;
 margin: auto;
 padding: 0;
 box-sizing: border-box;
}

.box0 ul{
  list-style-type: none;
  display: flex;
  margin: auto;
}

.box0 ul li{
  display: flex;
  justify-content: center;
  margin: auto;
}

#scrabble img{
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}


#scrabble a{
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}


/* SECTIONS - ALL */

#steuer, #telefon, #erfolg, #unter, #erfahrung {
	  position: relative;
    max-width: 1440px;
    height: 100%;
    margin: 25px auto;
    background-color: #efefef;
    overflow: hidden;
}

.container{
  display: flex;
  max-width: 1400px;
  height: 100%;
}

/*

.box1_image-container {
  width: 37%;
  height: 100%;
}

.box1_image-container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: center center;
  background-size: cover;
  background-repeat:no-reapeat;
  background-position: 50% 50%;
  opacity: 0.8;
  
}

/*

/* 

.box1 {
 &__image-container {
  width: 37%; // the same width and height as for the <img>
  height: 100%;
  &.compat-object-fit {
   background-size: cover;
   background-position: center center;
   .box1__featured-image { // hide image if object fit is not supported - opacity to 0 for the link area
    opacity: 0;
   }
  }
 }
 &__featured-image {
  width: 37%;
  height: 100%;
  object-fit: cover;
 }
}

*/
.box1_image-container {
  width: 37%;
  height: 100%;
}
.box1_image-container.compat-object-fit {
  background-size: cover;
  background-position: center center;
}
.box1_image-container.compat-object-fit .box1_featured-image {
  opacity: 0;
}
.box1_featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.box2 {
  width: 63%;
  height: auto;
  padding-top: 30px;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 20px;
}

.box2 img{
  right: 0px;
  bottom: 0px;
  height: 30%;
  position: absolute;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
  opacity: 0.2;
}

.box2 h4 {
  font-weight: bold;
}

.kompetenzen{
  margin: 30px 20px 0 20px;
}

.text{
  display: flex;
}

.box3{
  width: 20%;
  margin right: 10px;
}

.box3 h4 {
  font-weight: bold;
}

.box4{
  width: 70%;
}

.suspe p{
  font-size: 14px;
  text-indent: -0.8em;
  margin-left: 2em;
  line-height: 1.3;
}



/*ROTER SECTION*/

#roter{
    position: relative;
    max-width: 1440px;
    height: 100%;
    margin: 18px auto;
    background-color: #efefef;
    overflow: hidden;
    }

.faden {
  display: block;
  width: 95%;
  margin: 0.5px 0 0 0;
  z-index: 7;
}

.box10 {
  width: 63%;
  height: auto;
  padding-top: 30px;
  padding-left: 50px;
  padding-right: 50px;
}

.box10 h1{
  line-height: 0;
  margin-bottom: 0.2px;
}

.box10 p {
  line-height: 1.3;
}

 .one {
  right: 0px;
  bottom: 0px;
  height: 30%;
  position: absolute;
  opacity: 0.2;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
}

.signature {
  width: 50%;
  height: auto;
}


/*FOOTER*/

#footer{
    position: relative;
    max-width: 1440px;
    height: auto;
    margin: 18px auto;
    background-color: #95001b;
    text-align: center;
    color: #fff;
}

.adresse p , .design p {
  text-align: center;
}

.adresse {
  line-height: 0.8;
}

.design {
  line-height: 0.8;
  margin: 5px 0 0 0;
}

.design a{
  color: #fff;
  font-size: 0.6em;
  margin: 5px 0 10px 0;
}

.impressum{
  margin-top: 20px;
  margin-bottom: 20px;
}

.modal {
  width: 40%;
  margin: 20px auto;
  padding: 35px;
}

.button {
  font-size: 1em;
  padding: 10px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

/*

https://www.google.com/maps/search/?api=1Frauenstraße+2,+89073+Ulm

*/

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

/* POP UP - FOOTER */
.popup {
  margin: 30px auto;
  padding: 30px;
  background: #fff;
  color: #313135;
  line-height: 1.3;
  text-align: left;
  border-radius: 5px;
  width: 70%;
  height: 85%;
  position: relative;
  transition: all 2s ease-in-out;
}

.popup h2 {
  margin: 40px 0 20px 0;
  color: #95001b;
  font-family: 'Open Sans', sans-serif;
}

.popup h3{
  color: #95001b;
}
.popup .close {
  position: absolute;
  top: 20px;
  left: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #95001b;
}
.popup .content {
  max-height: 93%;
  overflow: auto;
}
.popup strong{
  font-weight: bold;
  color: #111;
}


/* HAMBURGER MENU*/

a
{
  text-decoration: none;
  color: #232323;
  transition: color 0.3s ease;
}

a:hover
{
  color: #b5a8ab;
}

#menuToggle
{
  display: block;
  position: fixed;
  top: 50px;
  right: 100px; 
  opacity: 0.95;
  z-index: 1; 
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0; 
  z-index: 2; 
  -webkit-touch-callout: none;
}

/*
 * hamburger toggle
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #95001b;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

#menu
{
  position: absolute;
  width: 200px;
  margin: -125px 0 0 0;
  padding: 50px;
  padding-top: 125px;
  background: #ededed;
  right: -100px;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 100%;
  transform: translate(100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li{
  padding: 10px 0;
  font-size: 22px;
}

#menu strong {
  color: #95001b;
  font-weight: bold;
}

#menuToggle input:checked ~ ul
{
  transform: none;
}



/* MEDIA QUERIS MOBILE */
/* MEDIA QUERIS MOBILE */
/* MEDIA QUERIS MOBILE */


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

	.body{
		font-size: 12px;
	}

  header {
    width: 100%;
  }

  header img {
    align-items: center;
    width: 100%;  
    height: auto;
    margin: 0;  
  }

  .box0{
    width: 100%;
    height: auto;
    margin: 20px 0 20px 0;
  }
 
#home {
  width: 100%;
  height: auto;
  margin: auto;
  text-align: center;
}

#steuer, #telefon, #erfolg, #unter, #erfahrung, #roter, #footer{
  width: 100%;
  height: auto; 
}

 .container {
 	  display: flex;
  	flex-direction: column;
  	height: auto;
 }

 #menuToggle
{
  display: block;
  position: fixed;
  top: 10px;
  right: 10px; 
}

#menu {
  margin-right: 25px;
  line-height: 0.8;
}

.mobile {
  display:block;
  width: 100%;
  height: auto;
}

.desktop {
  display:none
}

 .box1_image-container{
 	width: auto;
  height: auto;
 }

 .box1_image-container img {
 	display: block; 
  max-width: 100%;
  width: 100%;
  height: auto;
 }

 .box2, .box10{
 	width: auto;
 	height: auto;
 }

 .box2 img, .one{
 width: 30%;
 height: auto;
 }

.kompetenzen {
  margin: 0;
  width: 100%;
}

 .box3 {
  width: 100%;
 }

 .box4{
  width: 100%;
  margin: 0;
 }

 .text {
  display: block;
 }

 .popup{
  margin: 5px;
  width: 70%;
 }

.rote img {
  display: none;
}

.faden {
  margin-top: 10px;
}

.signature {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}


#footer {
  margin-bottom: 20px 0 0 0;
  height: auto;
}

#footer p{
  padding: 0;
}

.adresse a {
	color: #ffffff;
}	

.adresse a:hover
{
  color: #b5a8ab;
}

.design p {
  line-height: 0.5;
}


}

@media only screen and (max-width: 1200px){
.body {
  font-size: 13px;
}

p {
  font-size: 13px;
}

.suspe p {
  font-size: 12px;
}

  }

/* MEDIA QUERIS MOBILE MIN */

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


  #menu li{
    font-size: 16px;
  }
  .body{
    font-size: 12px;
  }

  h1 {
    font-size: 1.2em;
  }

  h2 {
    font-size: 1em;
  }

  h3 {
    font-size: 0.9em;
  }

  h4 {
    font-size: 0.8em;
  }

  .popup p {
    font-size: 0.7em;
  }

.signature {
  width: 100%;
  height: auto;
}

}

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

  .body{
    font-size: 14px;
  }

  header {
    width: 100%;
  }

  header img {
    align-items: center;
    width: 100%;  
    height: auto;
    margin: 0;  
  }

  .box0{
    width: 100%;
    height: auto;
    margin: 20px 0 20px 0;
  }
 
#home {
  width: 100%;
  height: auto;
  margin: auto;
  text-align: center;
}

#steuer, #telefon, #erfolg, #unter, #erfahrung, #roter, #footer{
  width: 100%;
  height: auto; 
}

 .container {
    display: flex;
    flex-direction: column;
    height: auto;
 }

 #menuToggle
{
  display: block;
  position: fixed;
  top: 10px;
  right: 10px; 
}

#menu {
  margin-right: 25px;
  line-height: 0.8;
}

.mobile {
  display:block;
  width: 100%;
  height: auto;
}

.desktop {
  display:none
}

 .box1_image-container{
  width: auto;
  height: auto;
 }

 .box1_image-container img {
  display: block; 
  max-width: 100%;
  width: 100%;
  height: auto;
 }

 .box2, .box10{
  width: auto;
  height: auto;
 }

 .box2 img, .one{
 width: 30%;
 height: auto;
 }

.kompetenzen {
  margin: 0;
  width: 100%;
}

 .box3 {
  width: 100%;
 }

 .box4{
  width: 100%;
  margin: 0;
 }

 .text {
  display: block;
 }

 .popup{
  margin: 5px;
  width: 70%;
 }

.rote img {
  display: none;
}

.faden {
  margin-top: 10px;
}


#footer {
  margin-bottom: 20px 0 0 0;
  height: auto;
}

#footer p{
  padding: 0;
}

.adresse a {
  color: #ffffff;
} 

.adresse a:hover
{
  color: #b5a8ab;
}

.design p {
  line-height: 0.5;
}


}
