@import url('https://fonts.googleapis.com/css?family=Lato:400,900');

/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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.
 */

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

html {
    font-size: 1rem;
    line-height: 1.6;
    width: 100vw;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

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

:root {
  --main-font: 'Lato', sans-serif;
  --white: #FFF;
  --black: #333;
  --grey: #E0E0E0;
  --primary-color: #012332;
  --secondary-color: #01c3e9;
}

.container {
  width: 84vw;
  margin: 0 auto;
}
.line {
  height: 4px;
  background-color: var(--white);
  display: inline-block;
}

main {
  margin-top: 4rem;
}
main .container {
  background-color: rgba(255,255,255,.92);
  padding: 2rem;
}
main header {
  padding: 0;
}
main h1 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
main h2 {
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 1rem;
  margin-top: 4rem;
}
main h3 {
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}
main h3 + p {
  margin-top: 0;
}

body {
  font-family: var(--main-font);
  background-color: var(--white);
  color: var(--primary-color);
  font-size: 1.125rem;
  line-height: 1.6;
  background: /*linear-gradient(rgba(1,35,50,.0) 0%, rgba(1,35,50,.8) 50%),*/ url('../images/bg_zurich.jpg');
  /*background-image: url('../images/bg_zurich.jpg');*/
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  background-repeat: none;
  overflow-x: hidden;
}
.noScroll {
  overflow: hidden;
}

.button {
  background-color: var(--secondary-color);
  margin-top: 2rem;
  display: inline-block;
  padding: 1rem 2rem;
}
.button img {
  width: 100%;
  display: block;
}
p span {
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  display: block;
}
h1 {
  font-size: 3rem;
  letter-spacing: 0.28rem;
  margin: 0;
  margin-bottom: 1rem;
  font-weight: 900;
  line-height: 1;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.333;
  letter-spacing: 0.12rem;
  font-weight: 400;
  margin: 0;
}
h3 {
  text-transform: uppercase;
  font-size: 2rem;
  margin: 0;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: 0.04rem;
}
h3 + .line {
  height: 4px;
  background-color: var(--secondary-color);
  margin-bottom: 2rem;
  width: 8vw;
}

header {
  width: 92vw;
  z-index: 9999;
  margin: 0 auto;
  padding: 0.25rem 4vw;
  background-color: rgba(0,0,0,.5);
  position: sticky;
  top: 0;
}
nav.col-lg-12 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.2rem;
}
nav ul {
  margin: 0;
  padding: 0;
}
ul.social {
  height: 3rem;
}
nav ul li {
  display: inline-block;
}
ul.social li {
  height: 3rem;
  width: 3rem;
}
nav ul li:not(:first-of-type) {
  margin-left: 2rem;
}
nav ul li a, #mobilemenu a.close {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1rem;
}
ul.social li a {
  color: var(--primary-color);
  text-decoration: none;
  width: 3rem;
  height: 3rem;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
}
nav ul li a:hover {
  color: var(--secondary-color);
  opacity: 1;
}

.menu .mobile {
  margin-left: 0;
}
.mobile.open, .mobile.close {
  padding: 0.91rem 0 0.91rem 4rem;
  background: none;
  background-position: left center;
  background-repeat: no-repeat;
}

.mobile.open {
  background-image: url('../images/ic_menu.svg');
}

.mobile.close {
  background-image: url('../images/ic_close.svg');
}

#mobilemenu {
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: -200vw;
  padding: 1.6rem 8.3vw;
  background-color: rgba(1, 35, 50, .92);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  overflow: scroll;
  z-index: 9999;
}
#mobilemenu.open {
  left: 0;
}
#mobilemenu .menu {
  margin-top: calc(-100vh + 4rem);
  padding: 0 1.2rem;
}
#mobilemenu .menu li {
  padding: 1rem 0;
  list-style-type: none;
}
#mobilemenu a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}
#mobilemenu a:hover {
  color: var(--secondary-color);
}
#mobilemenu .social {
  display: flex;
  flex-direction: row;
  padding-left: 0;
}
#mobilemenu .social li {
  margin: 0 1rem;
}

a.twitter { background-image: url('../images/ic_twitter.svg'); }
a.instagram { background-image: url('../images/ic_instagram.svg'); }
a.linkedin { background-image: url('../images/ic_linkedin.svg'); }
a.xing { background-image: url('../images/ic_xing.svg'); }

a.twitter:hover { background-image: url('../images/ic_twitter_blue.svg'); }
a.instagram:hover { background-image: url('../images/ic_instagram_blue.svg'); }
a.linkedin:hover { background-image: url('../images/ic_linkedin_blue.svg'); }
a.xing:hover { background-image: url('../images/ic_xing_blue.svg'); }

#portrait {
  align-self: flex-start;
  width: 12vw;
  margin-right: 4rem;
}

section {
  padding: 4rem 0;
  background-color: rgba(255, 255, 255, 0.92);
}
section.neg {
  background: none;
  color: var(--white);
}
section#journalismus {
  background: linear-gradient(90deg, rgba(1,35,50,.8) 50%, rgba(1,35,50,0) 100%), url('../images/bg_rim.jpg');
  background-size: cover;
  background-position: right bottom;
  background-blend-mode: multiply;
  background-attachment: fixed;
}
section#pr {
  background: linear-gradient(90deg, rgba(1,35,50,0) 0%, rgba(1,35,50,.8) 50%), url('../images/bg_street.jpg');
  background-size: cover;
  background-position: center center;
  background-blend-mode: multiply;
  background-attachment: fixed;
}
section#formele {
  background: linear-gradient(90deg, rgba(1,35,50,.8) 50%, rgba(1,35,50,0) 100%), url('../images/formulae.jpg');
  background-size: cover;
  background-position: right bottom;
  background-blend-mode: multiply;
  background-attachment: fixed;
}
section#kontakt {
  background: linear-gradient(90deg, rgba(1,35,50,.8) 50%, rgba(1,35,50,0) 100%), url('../images/bg_renault.jpg');;
  background-size: cover;
  background-position: center bottom;
  background-blend-mode: multiply;
  background-attachment: fixed;
}
section.left h3 {
  text-align: left;
}
section.left .line {
  margin-left: 0;
}
/*section article:nth-of-type(odd) {
  padding-right: 4vw !important;
}
section article:nth-of-type(even) {
  padding-left: 4vw !important;
}*/

.full .line {
  margin-left: 1rem;
}
#portfolio ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  margin: 0 auto;
  width: 100%;
}
#portfolio ul li {
  padding: 0 1rem;
}
#portfolio ul li img {
  width: 100%;
}

#hero {
  padding: 8rem 0 4rem;
  margin-bottom: 4rem;
  text-align: left;
  color: var(--white);
  text-transform: uppercase;
}
#hero .container {
  background: none;
}
#hero .row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
#hero .row *:not(p) {
  z-index: 999;
}
#hero p {
  text-transform: none;
  margin-top: 4rem;
  border-radius: 100%;
  box-shadow: 0 0 240px 128px rgba(0,0,0,.43), inset 0 0 120px 120px rgba(0,0,0,.4);
}

table {
  width: 100%;
}
table thead th {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-align: left;
  padding-bottom: 1rem;
}
article table:not(:first-of-type),
article:not(:first-of-type) table {
  margin-top: 3rem;
}
table tr td {
  vertical-align: top;
}
table tr td span {
  font-weight: 700;
}
table tr td {
  width: 50%;
}

footer {
  padding: 2rem 0;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
footer #footermenu {
  margin-top: 2rem;
  list-style-type: none;
  text-align: center;
  border-top: 2px solid var(--white);
  padding-top: 2rem;
}
footer #footermenu a {
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  margin: 0 1rem;
  letter-spacing: 0.04rem;
}
footer #footermenu a:hover {
  color: var(--secondary-color);
}
footer h2, footer h3 {
  font-size: 1.25rem;
  margin: 0;
  text-align: center;
}
footer h2 {
  text-transform: uppercase;
  font-weight: 700;
}
footer h3 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  line-height: 1.2;
}
footer .social {
  list-style-type: none;
  display: flex;
  padding: 0;
  margin: 0;
}
footer .social li {
  margin: 0 1rem;
}
#contact {
  text-align: center;
  margin-top: 2rem;
}
#contact li {
  display: inline;
}
#contact li a {
  padding: 0.5rem 1rem;
  text-decoration: none;
}
#contact li a, #contact li a:visited {
  color: var(--black);
  text-decoration: none;
}
#contact li a:hover, #contact li a:focus {
  color: var(--secondary-color);
}

form div {
  margin-bottom: 2rem;
}
form label,
form input,
form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
form input,
form textarea {
  padding: 0.5rem;
  border-radius: 0;
  outline: none;
  border: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
}
form textarea {
  resize: none;
}
form input[type="submit"] {
  background-color: var(--secondary-color);
  padding: 1.5rem;
  display: inline-block;
  outline: none;
  border: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-weight: 900;
  display: inline-block;
  margin-top: 2rem;
  cursor: pointer;
}









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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (min-width: 1080px) {
    .menu .mobile {
      display: none;
    }
}

@media only screen and (max-width: 1079px) {
    .menu .mobile {
      display: block;
    }
    .menu .desktop {
      display: none;
    }
}

@media only screen and (max-width: 991px) {
    table tr td:first-of-type {
      width: 50%;
    }
    #vita article {
      margin: 0 auto;
    }
    #vita article:nth-of-type(even) {
      padding-left: 1rem !important;
      margin-top: 3rem;
    }

    #vita article:last-of-type table tr td:first-of-type {
      width: 50%;
    }
    #vita article:first-of-type table,
    #vita table:not(:last-of-type) {
      margin-bottom: 0;
    }
    #portrait {
      width: 20vw;
    }
    #portfolio ul {
      grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media only screen and (min-width: 768px) {
  .button {
    width: auto;
  }
}

@media only screen and (max-width: 767px) {
  p {
    text-align: left;
  }
  #portfolio ul {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media only screen and (max-width: 599px) {
    #portrait {
      width: 50vw;
      margin: 0 auto 4rem;
    }
    #hero .text {
      width: 100%;
    }
    #portfolio ul {
      grid-template-columns: 1fr 1fr;
    }
    main {
      width: 100vw;
      margin-top: 0;
    }
}

@media only screen and (min-width: 520px) {
    #mobilemenu .social.mobile {
      display: none;
    }
    .button {
      width: 61.8%;
    }
}

@media only screen and (max-width: 519px) {
    nav .social {
      display: none;
    }
    .menu {
      width: 100%;
    }
    .menu .mobile {
      float: right;
    }
    table tr {
      display: grid;
      grid-template-columns: 1fr;
      width: 100%;
      margin-bottom: 1rem;
    }
    table tr td, #vita article:last-of-type table tr td:first-of-type {
      width: 100%;
    }
    table tr th {
      padding-bottom: 0;
    }
    #vita article:nth-of-type(even) {
      margin-top: 0;
    }
}

@media only screen and (max-width: 419px) {
    h1 {
      font-size: 2rem;
    }
    h2 {
      font-size: 1.25rem;
    }
}

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

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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