/*! 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
   ========================================================================== */

* {
    color: #3f5d7f;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
}

body {
    background: #3f5d7f;
}

.raster {
    background: url(raster.png);
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .5;
    z-index: 1;
}

.gradient {
    /*height: 100%;*/
    position: absolute;
    width: 100%;

    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#62b1e3+0,3f5d7f+100 */
    background: #62b1e3; /* Old browsers */
    background: -moz-radial-gradient(center, ellipse cover,  #62b1e3 0%, #3f5d7f 100%); /* FF3.6+ */
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#62b1e3), color-stop(100%,#3f5d7f)); /* Chrome,Safari4+ */
    background: -webkit-radial-gradient(center, ellipse cover,  #62b1e3 0%,#3f5d7f 100%); /* Chrome10+,Safari5.1+ */
    background: -o-radial-gradient(center, ellipse cover,  #62b1e3 0%,#3f5d7f 100%); /* Opera 12+ */
    background: -ms-radial-gradient(center, ellipse cover,  #62b1e3 0%,#3f5d7f 100%); /* IE10+ */
    background: radial-gradient(ellipse at center,  #62b1e3 0%,#3f5d7f 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#62b1e3', endColorstr='#3f5d7f',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

.visitenkarte {
    background: white;
    border-radius: 10px;
    bottom: 25%;
    left: 50%;
    margin-left: -250px;
    padding-bottom: 25px;
    padding-top: 1px;
    position: absolute;
    width: 500px;
    z-index: 3;
}

@media screen and (min-width: 500px) {
    .visitenkarte {
        bottom: auto;
        margin-left: 0;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

@media screen and (max-height: 799px) and (min-width: 500px) {
    .visitenkarte {
        margin-bottom: 50px;
        top: 50px;
        -webkit-transform: translate(-50%, 0);
                transform: translate(-50%, 0);
    }
}

.visitenkarte > * {
    margin-left: 10px;
    margin-right: 10px;
    padding: 0 40px;
}

.partners {
    margin-top: 25px;
    overflow: hidden;
    padding: 0 !important;
}

.partners img {
    margin-left: 13%;
    max-width: 30%;
    display: inline-block;
}

.kontaktdaten span {
    display: inline-block;
}

.kontaktdaten span:first-child {
    width: 85px;
}

h1 {
    border-bottom: 5px solid #3f5d7f;
    font-weight: normal;
    margin-top: 25;
}

* + h1 {
    margin-top: 50px;
}

p {
    margin-bottom: 10px;
}

.streifen {
    background: url(streifen-2560.png) no-repeat center center;
    margin-top: -175px;
    overflow: hidden;
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 2;
}

.streifen img {
    height: auto;
    max-height: 325px;
    width: 100%;
}

@media (min-width: 500px) {
    .gradient {
        height: 100%;
    }
}

@media (max-width: 2559px) and (min-width: 500px) {
    .streifen {
        height: 325px;
    }
    .streifen img {
        display: none;
    }
}

@media (max-width: 499px) {
    .gradient {
        padding-bottom: 50px;
    }
    .visitenkarte {
        border-radius: 0;
        left: auto;
        margin: 50px auto;
        position: relative;
        width: 100%;
    }
    .visitenkarte > * {
        padding: 0 10%;
    }
    .streifen {
        margin: 0;
        padding: 0;
        position: relative;

    }
}

@media (min-width: 400px) {
    .kontaktdaten p {
        margin: 0;
    }
}

@media (max-width: 399px) {
    .kontaktdaten span {
        display: block;
    }
    .kontaktdaten span:first-child {
        font-weight: bold;
    }
}


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