/*! HTML5 Boilerplate v5.3.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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets 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 #ccaa5a;
    margin: 2em 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;
}

/* ==========================================================================
   Typo
   ========================================================================== */


@import url("http://fast.fonts.net/t/1.css?apiType=css&projectid=2eeb7201-c70e-4174-bf28-f30602841fd5");
    @font-face{
        font-family:"Avenir_Light";
        src:url("../fonts/edefe737-dc78-4aa3-ad03-3c6f908330ed.eot?#iefix");
        src:url("../fonts/edefe737-dc78-4aa3-ad03-3c6f908330ed.eot?#iefix") format("eot"),url("../fonts/0078f486-8e52-42c0-ad81-3c8d3d43f48e.woff2") format("woff2"),url("../fonts/908c4810-64db-4b46-bb8e-823eb41f68c0.woff") format("woff"),url("../fonts/4577388c-510f-4366-addb-8b663bcc762a.ttf") format("truetype"),url("../fonts/b0268c31-e450-4159-bfea-e0d20e2b5c0c.svg#b0268c31-e450-4159-bfea-e0d20e2b5c0c") format("svg");
    }
    @font-face{
        font-family:"Avenir_Medium";
        src:url("../fonts/e0542193-b2e6-4273-bc45-39d4dfd3c15b.eot?#iefix");
        src:url("../fonts/e0542193-b2e6-4273-bc45-39d4dfd3c15b.eot?#iefix") format("eot"),url("../fonts/17b90ef5-b63f-457b-a981-503bb7afe3c0.woff2") format("woff2"),url("../fonts/c9aeeabd-dd65-491d-b4be-3e0db9ae47a0.woff") format("woff"),url("../fonts/25f994de-d13f-4a5d-a82b-bf925a1e054d.ttf") format("truetype"),url("../fonts/3604edbd-784e-4ca7-b978-18836469c62d.svg#3604edbd-784e-4ca7-b978-18836469c62d") format("svg");
    }
    @font-face{
        font-family:"Avenir_Black";
        src:url("../fonts/f55e4498-ad48-4577-93a0-c614de5cbbb8.eot?#iefix");
        src:url("../fonts/f55e4498-ad48-4577-93a0-c614de5cbbb8.eot?#iefix") format("eot"),url("../fonts/c78eb7af-a1c8-4892-974b-52379646fef4.woff2") format("woff2"),url("../fonts/75b36c58-2a02-4057-a537-09af0832ae46.woff") format("woff"),url("../fonts/b5c44a82-eeb8-41de-9c3f-a8db50b24b8a.ttf") format("truetype"),url("../fonts/93603a74-2be0-436c-83e1-68f9ef616eaf.svg#93603a74-2be0-436c-83e1-68f9ef616eaf") format("svg");
    }

* {
    font-weight: normal !important;
    box-sizing: border-box;
}

body, input,textarea {
    font-family:"Avenir_Light";
    color: #004a57;
    padding: 0;
}

h1, h2 {
    font-family:"Avenir_Black";
    font-size: 60px;
}

h3 {
    font-family:"Avenir_Black";
    font-size: 30px;
}

footer h3 {
    font-family:"Avenir_Light";
}

h4 {
    font-family:"Avenir_Black";
    font-size: 30px;
    margin: 0;
}

p, th, input, textarea, ul {
    font-size: 30px;
    line-height: 150%;
}

h4 + p {
    margin-top: 0;
}

strong {
    font-family:"Avenir_Medium";
}

.date {
    font-family:"Avenir_Light";
    font-size: 12px;
    letter-spacing: .3em;
}

.wp-caption-text {
    font-size: 16px;
}

small {
    font-size: 16px !important;
}

label,
input[type="submit"] {
    font-family:"Avenir_Black";
    font-size: 12px;
    letter-spacing: .3em;
    text-transform: uppercase;
}


/* ==========================================================================
   Menü / Header
   ========================================================================== */

body {
  padding-top: 100px;
}
nav {
    height: 120px;
    width: 100%;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    z-index:10;
    position: fixed;
    background-color: white;
    top:0px;
}

.admin-bar nav {
  top: 32px;
}

nav ul {
    margin: 0;
    padding: 0;
    float: right;
}

nav ul li {
    display: inline-block;
    list-style: none;
}

nav ul li a {
    height: 120px;
    padding: 50px 10px 0 10px;
    display: block;
    color: #004a57;
    text-decoration: none;
    font-size: 16px;
    font-family:"Avenir_Medium";
}

nav ul li a:hover {
    color: #ccaa5a;
    border-bottom: 5px solid #ccaa5a;
    transition: all .25s ease-in-out;
   -moz-transition: all .25s ease-in-out;
   -webkit-transition: all .25s ease-in-out;
}

nav ul li.current_page_item a,
nav ul li.current_page_parent a {
    color: #ccaa5a;
    border-bottom: 5px solid #ccaa5a;
}


#logo {
    width: 300px;
    height: 120px;
    display: block;
    background-image: url(../img/ortin_goldbeck_forum_logo.svg);
    background-repeat: no-repeat;
    background-position: center;
    float: left;
}

/* ==========================================================================
   Swiper
   ========================================================================== */

.swiper-container {
    width: 100%;
    height: auto;
}

.swiper-slide img {
  width: 100% !important;
  height: auto !important;
}

.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ccaa5a'%2F%3E%3C%2Fsvg%3E");
  left: 10px;
  right: auto;
}
.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ccaa5a'%2F%3E%3C%2Fsvg%3E");
  right: 10px;
  left: auto;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #ccaa5a;
}

/* ==========================================================================
   Allgemein
   ========================================================================== */

.container {
    width: 1200px;
    padding: 0 30px 0 30px;
    margin: 0 auto;
}

.content {
    margin: 100px auto;
}

.content a,
.content div p a {
    color: #004a57;
    text-decoration: underline;
}

.content a:hover,
.content div p a:hover {
    color: #ccaa5a;
}

.content ul {
  padding: 0 0 0 50px;
}

.content li {
  margin-bottom: 0.4em;
  list-style: url(../img/list_icon.svg);
}

/* ==========================================================================
   Historie
   ========================================================================== */

#historie tr {
    border-bottom: 1px solid #E5E5E5;
}

#historie {
    width: 100%;
}

#historie th {
    width: 20%;
    text-align: left;
}

#historie td {
    width: 80%;
}

#historie th, #historie td {
    padding: 20px 0 20px 0;
}

#historie td p {
    font-size: 16px;
}

/* ==========================================================================
   Aktuelles
   ========================================================================== */

.post-item {
    margin: 20px 0 60px 0;
}

.post-item h3 {
    margin: 10px 0 20px 0;
}

.post-item .col-50 {
    width: 48%;
}

.post-item .col-50:nth-of-type(2) {
    float: right;
}

.excerpt {
    margin: 0 0 15px 0;
}

.content a.readmore-link {
    color: #ccaa5a;
    display: inline-block;
    background-image: url(../img/arrow_gelb.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 14%;
    padding-left: 20px;
}

.content a.readmore-link:hover {
    color: #004a57;
    background-image: url(../img/arrow_blau.png);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

#gallery-2 {
    margin: 50px 0 100px 0 !important;
}

.gallery-caption {
    display: none;
}

.gallery-item {
    margin: 40px 0 40px 0 !important;
}

.gallery-item img {
    border: none !important;
}

.gallery-item a {
    background-color: black;
    display: inline-block;
    position: relative;
}

.gallery-item a:hover img {
    opacity: 0.25;
    transition: all .25s ease-in-out;
   -moz-transition: all .25s ease-in-out;
   -webkit-transition: all .25s ease-in-out;
}

.gallery-hover {
    position: absolute;
    opacity: 0;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    transition: all .5s ease-in-out;
   -moz-transition: all .5s ease-in-out;
   -webkit-transition: all .5s ease-in-out;

}

.gallery-hover div {
    width: 50px;
    height: 50px;
    background-color: #E5E5E5;
    background-image: url(../img/maximize.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.fixedlink {
    width: 44px;
    height: 44px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ccaa5a;
    background-size: 100%;
    display: block;
    position: fixed;
    top: 200px;
    right: 0;
    z-index: 2;
}

#kontakt {
    background-image: url(../img/icon_44_w_kontakt.svg);
}

#webcam {
  background-image: url(../img/icon_44_w_webcam.svg);
  top: 244px;
}

#newsletter {
  background-image: url(../img/icon_44_w_newsletter.svg);
  top: 288px;
}

#newsletter div {
  display: block;
  background-color: white;
  height: 44px;
  position: absolute;
  right: 54px;
  padding: 12px;
  color: #004a57;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);

  animation-name: showin;
  animation-duration: 2s; /* or: Xms */
  animation-iteration-count: 1;
  animation-direction: normal; /* or: normal */
  animation-timing-function: ease-out; /* or: ease, ease-in, ease-in-out, linear, cubic-bezier(x1, y1, x2, y2) */
  animation-fill-mode: forwards; /* or: backwards, both, none */
  animation-delay: .5s; /* or: Xms */
  opacity: 0;

}

#newsletter div:after{
  left: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-left-color: white;
  border-width: 10px;
  margin-top: -10px;
}

@keyframes showin {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body.home #webcam div {
  display: block;
}


div.wpcf7-response-output {
    padding: 20px !important;
}

div.wpcf7-validation-errors {
    border: 2px solid #ccaa5a !important;
}

/* ==========================================================================
   Formular
   ========================================================================== */

input,
textarea {
    border: 1px solid #E5E5E5;
    background-color: #F2F2F2;
    padding: 10px;
}

textarea {
    width: 80%;
}

input[type="submit"] {
    background-color: #004a57;
    border: none;
    color: white;
    padding: 24px 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    width: 100%;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    position: relative;
    z-index:2;
    color: #ccaa5a;
}

footer p {
    font-size: 16px;
    line-height: 160%;
}

footer a {
    color: #ccaa5a;
    text-decoration: none;
}

footer a:hover {
    color: #004a57;
}

footer .impressum_link a {
    margin: 40px 0 0 0;
    display: block;
}

footer .impressum_link a + a {
  margin:0;
}

footer .projekt_gb_stiftung {
    margin: 55px 0 0 0;
}

.foerderkreis_logo {
    margin: 10px 0 0 1px;
    width: 100%;
    max-width: 140px;
}

.hstenner_logo {
    margin: 10px 0 0 0;
    width: 100%;
    max-width: 200px;
}

.gb_stigtung_logo {
    margin: 10px 0 0 0;
}

.gb_stigtung_logo img {
    width: 100%;
    max-width: 180px;
}

/* ==========================================================================
   Spalten
   ========================================================================== */

.col-25, .col-33, .col-50, .col-66, .col-75 {
    float: left;
}

.col-25 {
    width: 25%;
}

.col-33 {
    width: calc(100% / 3);
}

.col-50 {
    width: 50%;
}

.col-66 {
    width: calc((100% / 3)*2);
}

.col-75 {
    width: 75%;
}


/* ==========================================================================
   Burger Menü
   ========================================================================== */


/* Icon 1 */

#nav-icon3 {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  margin: 40px auto;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
  float: right;
}

#nav-icon3 span {
  display: block;
  position: absolute;
  height: 1px;
  width: 100%;
  background: #ccaa5a;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}


#nav-icon3 span:nth-child(1) {
  top: 0px;
}

#nav-icon3 span:nth-child(2),#nav-icon3 span:nth-child(3) {
  top: 10px;
}

#nav-icon3 span:nth-child(4) {
  top: 20px;
}

#nav-icon3.open span:nth-child(1) {
  top: 11px;
  width: 0%;
  left: 50%;
}

#nav-icon3.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon3.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

/* ==========================================================================
   Touch Navi
   ========================================================================== */

ul#touchnav {
    display: none;
    margin: 20px 0 40px 0;
    width: 100%;
}

nav ul#touchnav li {
    display: block;
}

nav ul#touchnav li a {
    height: auto;
    font-size: 24px;
    text-align: right;
    padding: 0;
    margin: 0 0 20px 0;
}

nav ul#touchnav li a:hover {
    border: none;
}

nav ul#touchnav li a:hover::before,
nav ul#touchnav li.current_page_item a::before,
nav ul#touchnav li.current_page_parent a::before {
    content: "—";
    color: #ccaa5a;
    position: absolute;
    left: 30px;
    -webkit-transform:scale(2,1); /* Safari and Chrome */
    -moz-transform:scale(2,1); /* Firefox */
    -ms-transform:scale(2,1); /* IE 9 */
    -o-transform:scale(2,1); /* Opera */
    transform:scale(2,1); /* W3C */
}

nav ul#touchnav li.current_page_item a,
nav ul#touchnav li.current_page_parent a {
    border: none;
}

nav.open {
    height: auto;
}

nav div.container {
  position: relative;
}

nav.open ul#touchnav {
    display: block;
}

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

img.img-responsive,
.single-post .alignnone,
.single-post .alignnone img {
    width: 100% !important;
    height: auto;
}


/*blau #004a57
gelb #ccaa5a*/




/* ==========================================================================
   Media Queries
   ========================================================================== */

@media screen and (max-width: 1400px){
    .container {
        width: 1000px;
        padding: 0 20px 0 20px;
    }
    .content {
        margin: 80px auto;
    }
    nav {
        height: 100px;
    }
    #logo {
        width: 240px;
        height: 100px;
    }
    nav ul li a {
        font-size: 14px;
        height: 100px;
    }
    h1, h2 {
        font-size: 50px;
    }
    p, th, input, textarea, h3, h4, ul {
        font-size: 26px;
    }

}

@media screen and (max-width: 1100px){
    .container {
        width: 800px;
        padding: 0 20px 0 20px;
    }
    nav ul,
    div.impressum_link {
        display: none;
    }
    #nav-icon3 {
        display: block;
    }
    p, th, input, textarea, ul {
        font-size: 24px;
    }
    .date, label, input[type="submit"] {
        font-size: 10px;
    }
    .wp-caption-text {
        font-size: 14px;
    }
    .col-33 {
      width: 50%;
    }
    .col-66 {
      width: 100%;
    }
    .gallery-item img {
    width: 100px;
    height: 100px;
    }
}

@media screen and (max-width: 800px){
    .container {
      width: 100%;
      padding: 0 20px 0 20px;
    }
    ul#touchnav {
      margin: 20px 0 20px 0;
    }
    .content {
      margin: 40px auto 80px auto;
    }
    h1, h2 {
      font-size: 40px;
    }
    p, th, input, textarea, ul {
      font-size: 22px;
    }
    .col-33 {
      width: 100%;
      border-bottom: 1px solid #ccaa5a;
      padding-bottom: 20px;
      margin-bottom: 20px;
    }
    .col-33:nth-last-of-type(2) {
      border:none;
    }
    #kontakt, #webcam, #newsletter {
      display: none;
    }
    #gallery-1 {
      margin: 50px 0 !important;
    }
}

@media screen and (max-width: 600px){
  nav ul#touchnav li a {
    font-size: 20px;
  }
  h1, h2 {
      font-size: 30px;
  }
  h3, h4 {
      font-size: 20px;
  }
  p, th, input, textarea, ul {
      font-size: 20px;
  }
  .wp-caption-text {
      font-size: 12px;
  }
  .col-50 {
    width: 100%;
  }
  #historie th, #historie td {
    padding: 0;
  }
  #historie th {
    width: auto;
    padding: 0 10px 0 0;
  }
  #historie td {
    width: auto;
  }
  .post-item .col-50 {
    width: 100%;
  }
  .post-item .col-50 a img {
    margin-bottom: 10px;
  }
  .gallery-item {
    width: 50% !important;
  }
  input.wpcf7-text,
  textarea {
    width: 100%;
  }

}

@media screen and (max-width: 360px){
  #logo {
    width: 200px;
    height: 80px;
  }
  body {
    padding-top: 80px;
  }
  nav {
    height: 80px;
  }
  ul#touchnav {
    margin: 20px 0 10px 0;
  }
   nav ul#touchnav li a {
    font-size: 17px;
    margin: 0 0 10px 0;
  }
  #nav-icon3 {
    margin: 30px auto;
  }
  .content {
    margin: 0 auto 60px auto;
  }
  .single-post .content {
    margin-top: 20px;
  }
  p, th, input, textarea, ul {
      font-size: 18px;
  }
  #historie td p {
    font-size: 14px;
  }
  #gallery-1 {
    margin: 20px 0 !important;
  }
  input[type="submit"] {
    padding: 18px 60px;
  }
}

/* ==========================================================================
   Ausnahmen
   ========================================================================== */

.single-post .alignnone.wp-image-391, .single-post .alignnone.wp-image-392 { width: auto !important; }

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * 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 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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    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;
    }

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

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

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