/* Ipad quer */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) { 
  body {
    font-size: 53% !important;
  }

  .ismobileindex {
    font-size:4px;
  }

  .siteholder {
    min-width: initial;
  }

  #mainnav ul li {
      margin-right: 1.125em;
  }  

  #mainnav ul li a {
      font-size: 1.5em;
  }

  #mainarea_maincontent h2 {
      font-size: 3em;
  }

  #mainarea_maincontent p {
      font-size: 1.75em;
  }

  #mainarea_maincontent ul {
      font-size: 1.75em;
  }

  #mainarea_leftcontent h3 {
      font-size: 1.75em;
  }

  #mainarea_leftcontent p {
      font-size: 1.375em;
  }

  #footercontent h5,
#footercontent h2 {
      line-height: 3em;
      font-size: 1.5em;
  }

  #footercontent {
      width: 100%;
  }

  #footercontent .ce-textpic p {
      line-height: 4.2em;
      font-size: 1.125em;
  }

  #socialcontent p {
    display: none;
  }

  .boxcontent {
    height: auto;
  }

}

/* Ipad hoch */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) { 

  .boxcontent {
    height: auto;
  }


  body {
    font-size: 40% !important;
  }

  .ismobileindex {
    font-size:3px;
  }

  .siteholder {
    min-width: initial;
  }


  #mainnav ul {
    margin-left: 0em;
  }

  #mainnav ul li {
      margin-right: 1.125em;
  }  

  #mainnav ul li a {
      font-size: 1.5em;
  }

  #mainarea_maincontent h2 {
      font-size: 3em;
  }

  #mainarea_maincontent p {
      font-size: 2em;
  }

  #mainarea_maincontent ul {
      font-size: 2em;
  }

  #mainarea_leftcontent h3 {
      font-size: 2em;
  }

  #mainarea_leftcontent p {
      font-size: 1.75em;
  }

  #footercontent h5,
#footercontent h2 {
      line-height: 3em;
      font-size: 1.5em;
  }

  #footercontent {
      width: 100%;
  }

  #footercontent .ce-textpic p {
      line-height: 4.2em;
      font-size: 1.125em;
  }

  #socialcontent p {
    display: none;
  }  
}


/* iphone 6 */
@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 667px) { 
  .ismobileindex {
    font-size:1px;
  }

  .siteholder {
    min-width: initial;
  }
}

/* iPhone 6 Plus in portrait & landscape */
@media only screen 
and (min-device-width : 414px) 
and (max-device-width : 736px) { 
  .ismobileindex {
    font-size:1px;
  }

  .siteholder {
    min-width: initial;
  }
}


/* iPhone 6 Plus in landscape */
@media only screen 
and (min-device-width : 414px) 
and (max-device-width : 736px) 
and (orientation : landscape) { 
  .ismobileindex {
    font-size:1px;
  }

  .siteholder {
    min-width: initial;
  }
}

/* iPhone 6 Plus in portrait */
@media only screen 
and (min-device-width : 414px) 
and (max-device-width : 736px) 
and (orientation : portrait) { 
  .ismobileindex {
    font-size:1px;
  }

  .siteholder {
    min-width: initial;
  }
}



/* iPhone 5 & 5S in portrait & landscape */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) { 
  .ismobileindex {
    font-size:1px;
  }

  .siteholder {
    min-width: initial;
  }
}

/* iPhone 5 & 5S in landscape */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) 
and (orientation : landscape) { 
  .ismobileindex {
    font-size:1px;
  }

  .siteholder {
    min-width: initial;
  }


}

/* iPhone 5 & 5S in portrait */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 740px)  { 
  .ismobileindex {
    font-size:1px;
  }

  .siteholder {
    min-width: initial;
  }

  #header {
      background-color: transparent;
      width: 100%;
      height: auto;
  }

  .logolh {
    display: none;
  }



  .siteholder_basetemplateboxes .boxcontent {
    display: none;
  }  

  #topcontent_logo {
      position: absolute;
      background: url(../images/logo_tz.png) right top no-repeat;
      background-size: contain;
    width: 15.375em;
      height: 19em;
        right: 0;
      top: -1em;
      z-index: 2;
  }

#topcontent_image {
    float: none;
    width: 100%;
    margin-right: 0;
    height: 24.65vw;
    height: auto;
    overflow: hidden;
    order: 3;    
}

#topcontent_title {
    width: 100%;
    margin-left: 0;
    height: 24.65vw;
    height: 14em;
    background-color: #f18800;
    position: relative;
    order: 1;    
  margin-bottom: 0.5625em;    
}

#topcontent_title_padder p,
#topcontent_title_padder h1 {
    font-size: 2em;
}
#topcontent_title_padder {
    bottom: 2.375em;
    margin-left: 2em;
}

#mainarea {
    clear: both;
    display: flex;
    flex-direction: column;
}

#mainarea_leftcontent {
    float: none;
    width: 100%;
    margin-right: 0;
  background-color: #fef3e5;
  order:2;
}

#mainarea_divider {
  display: none;
}

#mainarea_maincontent {
    width: 100%;
    float: none;
    order:1;
}

#mainarea_maincontent_padder {
    margin: 2em;
}

#mainarea_leftcontent_padder {
    margin: 2em;
}

.mainarea_bg {
  display: none;
}

#topcontent {
    display: flex;
    flex-direction: column;
}

#footer {
    height: auto;
}
#footercontent {
    padding-left: 0;
    float: none;
    width: 100%;
    box-sizing: border-box;
    padding: 2em;
}
#footercontent h5,
#footercontent h2 {
    float: none;
    line-height: 1.5em;
    margin: 0 0 0.25em 0;
    padding: 0;
    vertical-align: middle;
    font-size: 1.125em;
}
#footercontent .ce-textpic p {
    float: none;
    line-height: 1.75em;
    margin: 0;
    padding: 0;
    font-size: 1.0625em;
}
#socialcontent {
    float: none;
    width: 100%;
    padding-left:2em;
    box-sizing:border-box;
}
#socialcontent p {
    float: none;
    line-height: 1.5em;
    margin: 0;
    padding: 0 0 1em 2em;
    font-size: 1.0625em;
    color: #f18800;
    text-align: left;
}

#footercontent .ce-textpic {
    float: none;
    line-height: 1em;
}

.mobileopener {
    position: absolute;
    z-index: 1;
    margin: 1em 2em;
}

.mobileopener i {
    color: rgba(255, 255, 255, 1);
    font-size: 3em;
}

#mainnav {
    margin-left: 0;
    overflow: auto;
    display: none;
}

#mainnav.open {
}

#mainnav ul {
  margin:2em;
  font-size: 1em;
}

#mainnav ul li {
  margin:0;
  display: block;
  font-size: 2em;
  line-height: 2em;
}

#mainarea_leftcontent h3,
#mainarea_maincontent h3,
#mainarea_maincontent p {
    font-size: 2em;
}

#mainarea_leftcontent p {
    font-size: 1.75em;
}

#footercontent h5,
#footercontent h2 {
    font-size: 1.5em;
}

#footercontent .ce-textpic p {
    font-size: 1.25em;
}


#socialcontent p {
    font-size: 1.25em;
    padding-left:0;
}

.mfp-title h3 {
    margin: 0em 1em 0.5em 1em;
    padding: 0;
    font-size: 2em;
    line-height: 1em;
}

.mfp-title p.function {
    color: #f18800;
    margin: 0 0 0 1em;
    padding: 0;
    float: none;
    font-size: 2em;
    line-height: 1.55em;
}

.mfp-title p.subtitle {
    margin: 1.3em;
    padding: 0;
    font-size: 0.9375em;
    line-height: 1.4em;
    clear: both;
    font-size: 1.75em;
}



#mainarea_maincontent ul {
    font-size: 2em;
}


.mobileboxtop {
  background-color: red;
    padding: 2em;
    order: 2;
    display: block;
    margin-bottom: 0.5625em;
    background-color: #738fc9;
}

.mobileboxtop p {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 1.5em;
}

.boxcontent {
    height: auto;
}
