/*! HTML5 Boilerplate v5.2.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 #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
   ========================================================================== */

body {
    background-image: url(../img/hintergrund17.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

strong {
    font-weight: 500;
}

article p {
    margin-bottom: 1em;
}

@media only screen and (max-width: 580px) {
    body {
        background-size: cover;
        background-attachment: auto;
    }
}

a {
    color: #820E3E;
    text-decoration: none
}

a:focus, a:hover {
    color: #4E0825;
    text-decoration: underline
}

.btn {
    font-size: 16px;
}

.btn-primary {
    background-image: none;
    background-color: #820E3E;
    border-color:  #820E3E;
    color: white;
}

.btn-primary:hover, .btn-primary:focus {
    background-image: none;
    background-color: #4E0825;
    border-color: #4E0825;
    color: white;
}

.branding {
    float: left;
    padding-left: 10px;
}

@media only screen and (max-width: 768px) {
    .branding {
        float: none;
        margin-top: 10px;
    }
}

.logo {
    color: white;
    padding: 0;
    text-align: left;
}

.logo a {
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-block;
    padding-left: 90px;
    background-image: url(../img/zeichen.png);
    background-size: 74px;
    background-repeat: no-repeat;
    background-position: left top;
    min-height: 56px;
}

.logo a:hover {
    text-decoration: none;
}

.logo .name {
    margin-top: 3px;
    font-size: 28px;
    letter-spacing: 4px;
    line-height: 1.2;
}

.logo .title {
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 3px;
}

@media only screen and (max-width: 580px) {
    .logo a {
        color: white;
        text-transform: uppercase;
        font-weight: 500;
        display: inline-block;
        padding-left: 92px;
        background-image: url(../img/zeichen.png);
        background-size: 78px;
        background-repeat: no-repeat;
        background-position: left center;
        min-height: 58px;
        line-height: 1.2;
    }

    .logo a:hover {
        text-decoration: none;
    }

    .logo .name {
        margin-top: 3px;
        font-size: 18px;
        letter-spacing: 2px;
    }

    .logo .title {
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 1.2;
    }
}

.nav-meta {
    margin-top: 8px;
    float: right;
    font-size: 15px;
}

.nav-meta:after {
    content: "";
    display: table;
    clear: both;
}

.nav-meta .nav-pills {
    float: none;
}

.nav-meta a {
    color: white;
}

.nav-meta a:hover, .nav-meta a:focus {
    color: #820E3E;
}

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

    .nav-meta {
        display: none;
    }

    .nav-meta .nav-pills {
        text-align: center !important;
    }
}

header  {
    background-color: #4E0825;
    background-image: url(../img/branding.png);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.25);
    padding: 1em 0;
}

.main {
    background-color: rgba(255,255,255,0.4);
    padding: 3em 0;
}

footer {
    background-color: #4E0825;
    background-image: url(../img/branding.png);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.25);
    padding: 1em 0;
    color: white;
}

footer a {
    color: white;
}

footer p {
    text-align: center;
    margin: 0;
}


h1 {
    margin-top: 2px;
    margin-bottom: 20px;
    color: #820E3E;
    font-size: 28px;
    line-height: 1.2;
}

h2, h3 {
    color: #820E3E;
}

h2 {
    font-size: 20px;
    line-height: 1.2;
}

h3 {
    font-size: 18px;
    line-height: 1.2;
}

.btn,
.modal-content {
    border-radius: 3px;
}

.close {
    font-size: 32px;
}

.nav-main {
    background-color: white;
    padding-top: 5px;
    padding-bottom: 5px;
}
@media only screen and (max-width: 580px) {
    .nav-main {
        display: none;
    }
}

.nav-pills>li>a:focus,
.nav-pills>li>a:hover {
    background-color: rgba(255,255,255,1);
}

.nav-pills>li.active>a,
.nav-pills>li.active>a:focus,
.nav-pills>li.active>a:hover {
    color: #fff;
    background-color: #820E3E;
}

.nav-pills>li>ul>li.active> a,
.nav-pills>li>ul>li.active> a:focus,
.nav-pills>li>ul>li.active> a:hover {
    font-weight: 500;
    color: #4E0825;
    background-color: transparent;
}

.nav-primary{
    margin-bottom: 40px;
    margin-right: 20px;
    background-color: white;
    background-color: rgba(255,255,255,0.7);
    box-shadow: 0px 1px 3px rgba(0,0,0,0.25);
}

.nav-primary .mobile-menu {
    display: none;
    text-align: center;
}

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

    .nav-primary {
        padding-right: 0;
        margin-right: 0;
    }
}

@media only screen and (max-width: 767px) {
    .nav-primary .mobile-menu {
        display: block;
    }

    .nav-primary #toggle-menu {
        width: 100%;
        border-radius: 0;
    }

    .nav-primary #menu {
        display: none;
    }

    .nav-primary #menu.is-open {
        display: block;
    }
}

.nav-primary a i {
    float: right;
    display: inline-block;
    width: 8px;
    height: 14px;
    margin-top: 2px;
    background-image: url(../img/arrow-right-w.png);
    background-repeat: no-repeat;
}

.nav-primary li.active > a i {
    background-image: url(../img/arrow-right-w.png);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.nav-primary > .nav-pills > li > a {
    font-weight: 500;
    background-color: #820E3E;
    color: white;
}

.nav-primary li + li {
    margin-top: 5px;
}

.nav-primary .nav-pills>li>a {
    border-radius: 0px;
    padding: 8px 16px 6px 16px;
    line-height: 1.2;
}

.nav-primary .nav-pills .nav-pills {
    margin-top: 20px;
    margin-bottom: 20px;
}

.nav-primary .nav-pills .nav-pills a {
    display: inline-block !important;
    padding: 5px 16px 4px 16px;
    font-size: 15px;
    background-color: transparent;
    box-shadow: none;
}

.nav-primary .nav-pills .nav-pills ul {
    list-style-type: none;
    padding-left: 10px;
}

.nav-primary .nav-pills .nav-pills ul li {
    vertical-align: baseline;
}

.nav-primary .nav-pills .nav-pills li + li {
    margin-top: 5px;
}

article {
    background-color: white;
    background-color: rgba(255,255,255,0.7);
    box-shadow: 0px 1px 3px rgba(0,0,0,0.25);
    padding: 35px 40px 40px 40px;
}

@media only screen and (max-width: 580px) {
    article {
        padding: 15px;
    }
}

h2 {
    font-size: 1.25em;
}

p.intro {
    margin-bottom: 1em;
    font-weight: 500;
}

.autor { 
    text-align: right;
    font-style: italic;
}

blockquote {
    background: white;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.15);
    border-color: #820E3E;
    font-size: 16px;
    padding: 20px;
}

.quote + .quote {
    margin-top: 40px;
}

.teaser + .teaser {
    margin-top: 40px;
}

.teaser {
    background-color: white;
    padding: 15px 25px;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.15);
}

.teaser-aktuelles {
  background-color: #820E3E;
  color: white;
}

.teaser-aktuelles h2,
.teaser-aktuelles h3 {
  color: white;
}

.figure-home {
    float: right;
    margin-left: 1em;
    margin-bottom: 0.5em;
    width: 200px;
}

.figure-home img {
    max-width: 100%;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.2);
}

@media only screen and (max-width: 580px) {
    .figure-home {
        width: 80px;
    }
}

.audio-item + .audio-item {
    margin-top: 3em;
}

ul.referenzen {
    margin: 0;
    padding: 0;
    list-style-type: none;
    margin-bottom: 30px;
}

ul.referenzen li {
    display: inline-block;
    width: 120px;
    vertical-align: top;
    padding-bottom: 15px;
}

ul.referenzen li a {
    display: block;
}

ul.referenzen li a img {
    max-width: 100%;
}

label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 2px;
}

input[type=text],
input[type=email],
input[type=phone],
textarea {
    width: 100%;
    padding-left: 10px;
    height: 40px;
    border: 1px solid rgb(150,150,150);
    border-radius: 2px;
}

select {
    height: 40px;
    border: 1px solid rgb(150,150,150);
    border-radius: 2px;
}

textarea {
    min-height: 150px;
    padding-top: 5px;
}

form div {
    margin-bottom: 15px;
}

input.error,
select.error,
textarea.error {
  border-color: red;
}

label.error {
  display: block;
  margin-top: 5px;
  color: red;
  font-size: 14px;
}


.figure-flex {
    margin-bottom: 30px;
}

.figure-flex img {
    max-width: 100%;
}
.popup-content {
  position: relative;
  background: #FFF;
  padding: 2.5em 3em;
  width: auto;
  margin: 20px auto;
  max-width: 600px
}

/* ==========================================================================
   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;
}

.big-margin {
    margin-top: 2em;
}

@media only screen and (max-width: 580px) {
    .mobile-hidden {
        display: none !important;
    }
}

/* ==========================================================================
   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 {
        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;
    }
}
