/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
@font-face {
    font-family: 'QuicksandLight';
    src: url('../fonts/Quicksand_Light-webfont.eot');
    src: url('../fonts/Quicksand_Light-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Quicksand_Light-webfont.woff') format('woff'),
         url('../fonts/Quicksand_Light-webfont.ttf') format('truetype'),
         url('../fonts/Quicksand_Light-webfont.svg#QuicksandLight') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'QuicksandBook';
    src: url('../fonts/Quicksand_Book-webfont.eot');
    src: url('../fonts/Quicksand_Book-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Quicksand_Book-webfont.woff') format('woff'),
         url('../fonts/Quicksand_Book-webfont.ttf') format('truetype'),
         url('../fonts/Quicksand_Book-webfont.svg#QuicksandBook') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'QuicksandBookOblique';
    src: url('../fonts/Quicksand_Book_Oblique-webfont.eot');
    src: url('../fonts/Quicksand_Book_Oblique-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Quicksand_Book_Oblique-webfont.woff') format('woff'),
         url('../fonts/Quicksand_Book_Oblique-webfont.ttf') format('truetype'),
         url('../fonts/Quicksand_Book_Oblique-webfont.svg#QuicksandBookOblique') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'QuicksandBold';
    src: url('../fonts/Quicksand_Bold-webfont.eot');
    src: url('../fonts/Quicksand_Bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Quicksand_Bold-webfont.woff') format('woff'),
         url('../fonts/Quicksand_Bold-webfont.ttf') format('truetype'),
         url('../fonts/Quicksand_Bold-webfont.svg#QuicksandBold') format('svg');
    font-weight: normal;
    font-style: normal;

}








/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
      background-color: white;
      color: black;
      font-family: 'QuicksandBook', Verdana, Arial;
      font-size: 1em;
     background-repeat: no-repeat;
     max-width:100%;
     margin: 0 auto;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
    max-width: 100%;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

h2{
    margin: 0;
    margin-top: 0.5em;
    font-size: 0.8em;
}

img.logo{

  margin-top: 3em;
  margin-bottom: 3em;
  max-width: 13%;

}

/*Separators zwischen Logo und Menü*/
.upperSeparator, .lowerSeparator{
  width: 14%;
  height: 1px;
  margin-top: 2em;
  margin-bottom: -0.2em;
  margin-left: 43%;
  border :none;
  /*border-bottom: 1px solid #c6c6c6;*/
}

.lowerSeparator{
  width: 50%;
  margin-top: 0.0em;
  margin-left:25%; 
  margin-bottom: 3.5em;
}

.no-csspreserve3d .lowerSeparator, .no-csspreserve3d .upperSeparator{
  margin-left: 0;
}

div.banner{
  margin: 0em auto;
  max-width: 100%;
  width: 100%;
  text-align: center;
  background-color: #000;
}

.banner span{
  font-size: 0.75em;
  letter-spacing: 0.07em;
  color: #9d9d9d;
  margin : 0;
  line-height: 0.4em;
}

div#footer{
    background-color: #000;
    color: #fff;
    min-height: 5em;
}

div#innerFooter{
  margin: 0 auto;
  width: 50%;
  max-width: 50%;
}

/* ----------------------------
 NAVIGATION
-------------------------------*/

.controls {
  max-width: 50%;
  width: 50%;
  /*left: 25%;*/
  margin: 0 auto;
  margin-top: 0.5em;
  margin-bottom: 3em;
  background-color: #FFFFFF;
  color: #000000;
  text-align: right;
}
.controls > div {
  margin: 0px 0;
}
    

.navi-item{
  display: inline-block;
  cursor: pointer;
  /*width: 6%;*/
  max-width: 10%;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.7em;
  letter-spacing: 0.1em;
  color:#b2b2b2;
}
.panel4, .panel3, .panel2
{
  border-left: 1px solid #b2b2b2;
  padding-left: 5px;
}
 .navi-item.active{
 color:#000000;
}



/*--------------------------
Cube-Styles (if available)
----------------------------*/

/* outer Container*/
#container
{
  margin: 0 auto;
  margin-bottom: 2em;
  width: 50%;
  max-width: 50%;
  min-height: 800px;
  /*height:auto!important;*/
  /*overflow: overlay;*/
  border-top: 1px solid #000000;
  /*border-bottom: 1px solid #000000;*/
}

/* Perspektive aktivieren, wenn vom Brwoser unterstützt (Modernizr) */
.csspreserve3d #container 
{
  -webkit-perspective: 1300; /* For compatibility with iPhone 3.0, we leave off the units here */
  -webkit-perspective-origin: 50% 40%;

  -moz-perspective: 1300; /* For compatibility with iPhone 3.0, we leave off the units here */
  -moz-perspective-origin: 50% 40%;

  -ms-perspective: 1300; /* For compatibility with iPhone 3.0, we leave off the units here */
  -ms-perspective-origin: 50% 40%;

  -o-perspective: 1300; /* For compatibility with iPhone 3.0, we leave off the units here */
  -o-perspective-origin: 50% 40%;

  perspective: 1300; /* For compatibility with iPhone 3.0, we leave off the units here */
  perspective-origin: 50% 40%;
}


/* inner Container*/
#stage, #shape 
{
  width: 100%;
}

.csspreserve3d #stage {
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

#shape {  
  margin: 0 auto;
  height: 750px;
  position: relative;
  top: 30px;
  
}
.csspreserve3d #shape {
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
    

.plane{
  min-height: 750px;
  width: 100%;
  text-align: center;
  font-size: 1em;
  color: black;
  background-color: rgba(255, 255, 255, 0.97);
}    
.csspreserve3d .plane {
  position: absolute;
  
  -webkit-transition: -webkit-transform 0s, opacity 2s;
  -moz-transition: -webkit-transform 0s, opacity 2s;
  -ms-transition: -webkit-transform 0s, opacity 2s;
  -o-transition: -webkit-transform 0s, opacity 2s;
  transition: -webkit-transform 0s, opacity 2s;
}



/* --------------------------
Portfolio-Styles
----------------------------*/

/*#portfolio-slider{
    display:none;
    min-height: 50%;
    background-color: #f00;
}
#portfolio{
    margin-top:1em;
}*/

/* Slideshow-Container (wird mittels JQuery aktiviert) */
#portfolio-selection{
display: none;
max-width: 80%;
margin : 0 auto;
} 

/*Close-Button wenn Slideshow angezeigt werden*/
#close-portfolio{
  display: block;
  cursor: pointer;
  background-color: #000000;
  color: #ffffff;
  width: 7%;
  margin: 0 auto;
  margin-top: 0.8em;
  margin-bottom: 7em;
  line-height: 1.2em;
  vertical-align: middle;
}

/*Briefing-Text unter der Slideshow*/
#portfolio-briefing{
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.9em;
  margin-left: 1.5%;
}

/* Portfolio-Titelbild Container*/
div.portfolio-item{
  position: relative;
  display: inline-block;
  margin :0.5em;
} 

/* Titelbild des Portfolios*/
img.portfolio-title{
  max-height:200px;    
}

/* Portfolio-Description onMouseOver*/
.description{
  display: none;
  position: absolute;
  top : 0;
  left:3%;
  min-height: 5%;
  max-height: 100%;
  min-width: 94%;
  max-width: 94%;
  background-color: rgba(0,0,0,0.8);
  text-align: left;
} 

.description .title,.description .subtitle{
  display: block;
  margin: 0 auto;
  width: 93%;
  text-decoration: underline;
  color: #fff;
  font-size: 1em;
}

.description .subtitle{
  text-decoration: none;
  font-size: 0.8em;
}


/* -----------------------
Resume-Styles
--------------------------*/

.resume{
  display: table;
  width: 60%;
  margin:0 auto;
  border-spacing: 1.5em;
}

.resume-line{
  display: table-row;
  text-align: left;
}

.resume-cell{
display: table-cell;
width: 20%;
font-size: 0.8em;
}

.resume-h1{
  display: block;
  width: 55%;
  font-size: 1.0em;
  margin-bottom: 0.25em;
  text-align: left;
  margin:0 auto;
  margin-bottom: 0.3em;
  letter-spacing: 0.1em;
  margin-top: 1.5em;
}
.resume-h2{
  display: block;
 font-size: 0.71em;
  width: 55%;
  background-color: black;
  color: white;
  text-align: left;
  margin:0 auto;
  line-height: 1.6em;
  letter-spacing: 0.1em;
  vertical-align: middle;
  padding-left: 0.2em;
}




/* --------------------------
About-Styles
-----------------------------*/

/* Äußerer Container About Me*/
#about-me{
  margin-top: 1em;
  position: relative;
}

#about-pic{
  width: 30%;
  position: absolute;
  left:11%;
}

#about-text{
  width: 45%;
  text-align: left;
  right:10%;
   position: absolute;
}

#about-text p,#contact p, #about-text li{
 font-size: 0.8em;
 line-height: 1.5em;
}
#about-text ul{
 padding-left: 1em;
}
.about-zitat{
  font-size: 0.8em;
  font-family: "QuicksandBookOblique",sans-serif;
}

img#portrait{
  max-width: 100%;
}


.about-name{
  display: block;
  width: 100%;
  font-size: 1.0em;
  margin-bottom: 0.25em;
  text-align: left;
  letter-spacing: 0.1em;
}
.about-sub{
  display: block;
  font-size: 0.71em;
  width: 100%;
  background-color: black;
  color: white;
  text-align: left;
  line-height: 1.5em;
  letter-spacing: 0.1em;
  padding-left: 0.2em;
}





/*--------------------------
Contact-Styles
----------------------------*/

#contact{
  max-width: 70%;
  text-align: left;
  margin: 0 auto;
  margin-top: 1.5em;
}

#contact a{
  text-decoration: none;
  color: white;
}



span.contact{
  display: block;
  font-size: 0.8em;
  width: 100%;
  background-color: black;
  color: white;
  text-align: left;
  line-height: 1.5em;
  letter-spacing: 0.1em;
}
.disclaimer{
  font-size: 0.8em;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

@media only screen 
and (max-width:768px)
{
    body {
        font-size: 0.7em;
        font-family:  "QuicksandBook","MavenProMedium",sans-serif;
    }
  div.banner, div#footer{
    max-width: 100%;
    width: 100%;
  }

  div.controls, div#container{
    max-width: 90%;
    width: 90%;
  }

    /*Close-Button wenn Slideshow angezeigt werden*/
  #close-portfolio{
    padding-top: 0.3em;
  }
  .navi-item{
    padding-top: 0.2em;
  }

  /*Separators zwischen Logo und Menü*/
  .upperSeparator{
    margin-bottom: 0;
  }

    .resume-h2, .about-sub, span.contact{
    padding-top: 0.2em;
  }
}


/* Smartphone landscape*/
@media only screen 
and (max-width:480px)
{
    body {
        font-size: 0.6em;
        font-family:  "QuicksandBook","MavenProMedium",sans-serif;
    }
  div.banner, div#footer{
    max-width: 100%;
    width: 100%;
  }

  div.controls, div#container{
    max-width: 90%;
    width: 90%;
  }
  .navi-item{
    /*width:15%;
    max-width: 24%;*/
    font-size: 0.7em;
    letter-spacing: 0.1em;
    padding-top: 0.2em;
  }

  /*Close-Button wenn Slideshow angezeigt werden*/
  #close-portfolio{
    width: 20%;
    padding-top: 0.3em;
  }

  /*Separators zwischen Logo und Menü*/
  .upperSeparator{
    margin-bottom: 0.1em;
  }

  .resume-h2, .about-sub, span.contact{
    padding-top: 0.3em;
  }
}
   
   
}

@media only screen 
and (max-width:320px)
{
    body {
        font-size: 0.4em;
        font-family:  "QuicksandBook","MavenProMedium",sans-serif;
    }

  div.banner, div.controls, div#container{
    max-width: 90%;
    width: 90%;
  }

  .navi-item{
   /*max-width: 24%;*/
    font-size: 0.7em;
    letter-spacing: 0.1em;
    padding-top: 0.2em;
  }
    /*Close-Button wenn Slideshow angezeigt werden*/
  #close-portfolio{
    width: 20%;
    padding-top: 0.3em;
  }

  /*Separators zwischen Logo und Menü*/
  .upperSeparator{
    margin-bottom: 0.1em;
  }

  .resume-h2, .about-sub, span.contact{
    padding-top: 0.3em;
  }

}
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
