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

h2{
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 100;
    line-height: 0;
    font-size: 3em;
    margin-top: -10px;
    padding-bottom: 60px;
}

p{
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1em;
    font-weight: 200;
    line-height: 23px;
    color: #333;
    text-align: left;
}

a{
    color: #9ed100;
    text-decoration: none;
}
a:hover{
    color: #74930b;
    transition: all 0.5s ease-in-out;
}

.box{
    width:600px;
    background-color: rgba(255, 255, 255, 0.7);
    margin:0px auto;

}

h1{
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size:5em;
    text-align: center;
    color: #333;
    padding-top: 50px;
    line-height:40px;
}

@media only screen and (max-width: 640px) {
    h1{
        font-size: 2em;
    }
    .box{
        width: 60%;
    }
    h2{
        font-size: 2em;
    }
}

h3{
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 1.5em;
    text-align: center;
    color: #333;
}

h4 {
    float: left;
    color: #333;
    margin-left: 22px;
    margin-bottom: -10px;
    font-size: 1.7em;
    margin-top: 0px;
}

@media only screen and (max-width: 960px) {
    h4{
        clear: both;
        float: none;
        margin-bottom: 40px;
        margin-top: -20px;
        font-size: 1.5em;
        margin-left: -10px;
    }
}

.container_content{
    max-width: 1024px;
    width: 100%;
    margin: 0px auto;
    padding-top:30px;

}

.about > img{
    float: left;
    width:200px;
    border-radius: 8px;
}

.about > p {
    float: left;
    width: 80%;
    padding-left: 20px;
    margin-top: 0;
}

.about{
    margin-top: -20px;
    height:360px;
}

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

    .about > p {
        width:95%;
        margin-top: 15px;

    }

    .about > img {
        position: relative;
        float: none;
    }
}

ul{
    color: #333333;
    text-align: left;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.9em;
    font-weight: 200;
    line-height: 23px;
}

.image_gallery{
    width:44%;
    padding:20px 0 50px 20px ;
}

@media only screen and (max-width: 786px) {
    .image_gallery{
        width:90%;
    }
}

.news{
    padding-bottom: 30px;
    margin-top: -10px;
}

.news > img{
    width:300px;
    float: left;
    padding-bottom: 50px;
}

.news > p{
    float: left;
    width: 65%;
    margin-left: 20px;
}

.news > ul{
    float: left;
}

@media only screen and (max-width: 960px) {
    .news > p{
        width: 90%;
        margin-top: -20px;
    }
    .news > img{
        position: relative;
        float: none;
    }
}

@media only screen and (max-width: 960px) {
    .presse{
    }

    .presse-link{
        clear: both;

    }
}

.presse{
    clear: both;
    float: left;
}
.presse-headline{
    margin-left: 0;
}

.presse-link{
    float: left;
    margin-top: 15px;
    padding-bottom: 50px;
}

.myButton {
    line-height: 1;
    background-color:#44c767;
    -moz-border-radius:12px;
    -webkit-border-radius:12px;
    border-radius:5px;
    border:1px solid #22cc33;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:"Helvetica Neue";
    font-size:17px;
    text-decoration:none;
    text-shadow:0px 1px 0px #2f6627;
    padding: 10px 6px;
    position: relative;
    float: left;
    clear: both;
    width: 170px;
    margin-left: 330px;
    margin-top: -130px;
}
.myButton:hover {
    background-color:#22843c;
    color: #fff;
    transition: all 0.5s ease-in-out;
}
.myButton:active {
    position: relative;
    top: 1px;
}
@media only screen and (max-width: 960px) {
    .myButton{
        clear: both;
        margin-left: 10px;
        margin-top: 0px;
        margin-bottom: 20px;

    }
}


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


/*Formluar*/

*, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { content: ''; display: table; }
.clearfix:after { clear: both; }

.gallery{
    margin-top: 40px;
}

.submit-button {
    margin-left: 2px;
    font-size: 16px;
    background-color:#44c767;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    border: 5px;
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-family:"Helvetica Neue";
    font-size:17px;
    cursor: pointer;
    float: left;
    clear: both;
    margin-top: 20px;
    margin-bottom: 30px;

}

.container_kontakt {
    height:100px;
    width:400px;
    float: left;
    z-index: 0;
}


.submit-button:hover {
    background: #22843c ;
    cursor: pointer;
    transition: all 1s ease-in-out;
}

#Message {
    width:100%;
    height:150px;
}
.message{
    float: left;
    width: 400px;
    margin-top:-100px;
    margin-left: 100px;
    color: #333;
}

@media only screen and (max-width: 865px) {
    .message{
        clear: both;;
        margin-top: 0px;
        margin-left: 0px;
        width: 350px;
    }
    footer{
       margin-top: 40px;
    }

    form{
        margin-left: 20px;
        padding-bottom: 20px;
    }
    .kontakt > p{
        padding-left: 20px;
        margin-bottom: -20px;
    }
}

.kontakt > p{
    margin-left: 0px;
    margin-bottom: -20px;
}

.kontakt{
    margin-top: -20px;
}


footer{
    clear: both;
    margin-top:100px;
    color: #fff;
    width: 100%;
    font-size: 16px;
    background-color: #333;
    line-height: 2;
    font-family: "Helvetica Neue";
    font-weight: 100;
    text-align: center;
}


.input {
    position: relative;
    z-index: 0;
    margin: 1em 0;
    max-width: 350px;
    width: calc(100% - 2em);
    vertical-align: top;
    float: left;
    clear: both;
}


.input__field {
    position: relative;
    display: block;
    float: right;
    padding: 0.8em;
    width: 60%;
    border: none;
    border-radius: 0;
    background: #f0f0f0;
    color: #aaa;
    font-weight: bold;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-appearance: none; /* for box shadows to show on iOS */
}

.input__field:focus {
    outline: none;
}

.input__label {
    display: inline-block;
    float: right;
    padding: 0 1em;
    width: 40%;
    color: #6a7989;
    font-weight: bold;
    font-size: 70.25%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.input__label-content {
    position: relative;
    display: block;
    padding: 1.6em 0;
    width: 100%;
}


.input--hoshi {
    overflow: hidden;
}

.input__field--hoshi {
    margin-top: 1em;
    padding: 0.85em 0.15em;
    width: 100%;
    background: transparent;
    color: #595F6E;
}

.input__label--hoshi {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 0.25em;
    width: 100%;
    height: calc(100% - 1em);
    text-align: left;
    pointer-events: none;
}

.input__label-content--hoshi {
    position: absolute;
}

.input__label--hoshi::before,
.input__label--hoshi::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 10px);
    border-bottom: 1px solid #B9C1CA;
}

.input__label--hoshi::after {
    margin-top: 2px;
    border-bottom: 4px solid red;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}

.input__label--hoshi-color-1::after {
    border-color: hsl(200, 100%, 50%);
}

.input__label--hoshi-color-2::after {
    border-color: hsl(160, 100%, 50%);
}

.input__label--hoshi-color-3::after {
    border-color: hsl(20, 100%, 50%);
}

.input__field--hoshi:focus + .input__label--hoshi::after,
.input--filled .input__label--hoshi::after {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.input__field--hoshi:focus + .input__label--hoshi .input__label-content--hoshi,
.input--filled .input__label-content--hoshi {
    -webkit-animation: anim-1 0.3s forwards;
    animation: anim-1 0.3s forwards;
}

@-webkit-keyframes anim-1 {
    50% {
        opacity: 0;
        -webkit-transform: translate3d(1em, 0, 0);
        transform: translate3d(1em, 0, 0);
    }
    51% {
        opacity: 0;
        -webkit-transform: translate3d(-1em, -40%, 0);
        transform: translate3d(-1em, -40%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, -40%, 0);
        transform: translate3d(0, -40%, 0);
    }
}

@keyframes anim-1 {
    50% {
        opacity: 0;
        -webkit-transform: translate3d(1em, 0, 0);
        transform: translate3d(1em, 0, 0);
    }
    51% {
        opacity: 0;
        -webkit-transform: translate3d(-1em, -40%, 0);
        transform: translate3d(-1em, -40%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, -40%, 0);
        transform: translate3d(0, -40%, 0);
    }
}


/*End Formular*/


/*! Flickity v1.1.1
http://flickity.metafizzy.co
---------------------------------------------- */
.gallery-cell {
    margin-top: -30px;
    width: 70%;
    height: 200px;
    /* flex-box, center image in cell */
    display: -webkit-box;
    display: -webkit-flex;
    display:         flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

.gallery-cell img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    /* dim unselected */
    opacity: 0.7;
    -webkit-transform: scale(0.85);
    transform: scale(0.85);
    -webkit-filter: blur(5px);
    filter: blur(5px);
    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s, transform 0.3s, -webkit-filter 0.3s, filter 0.3s;
    transition: opacity 0.3s, transform 0.3s, filter 0.3s;
}
.gallery_text{
    padding-top: 20px;
    margin:0 auto;
    font-size: 16px;
    color: #333;
    line-height:1.5;
    width: 600px;
    padding-bottom: 50px;
}

.gallery_text > span{
    text-align: left;
    float: left;
    margin-left: 140px;
    padding-bottom: 50px;
}

/* brighten selected image */
.gallery-cell.is-selected img {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-filter: none;
    filter: none;
}

@media screen and ( min-width: 768px ) {
    .gallery-cell {
        height: 400px;
    }
}

@media screen and ( min-width: 960px ) {
    .gallery-cell {
        width: 60%;
    }
}

/* buttons, no circle */
.flickity-prev-next-button {
    width: 60px;
    height: 60px;
    background: transparent;
    opacity: 0.6;
}
.flickity-prev-next-button:hover {
    background: transparent;
    opacity: 1;
}
/* arrow color */
.flickity-prev-next-button .arrow {
    fill: white;
}
.flickity-prev-next-button.no-svg {
    color: white;
}
/* closer to edge */
.flickity-prev-next-button.previous { left: 0; }
.flickity-prev-next-button.next { right: 0; }
/* hide disabled button */
.flickity-prev-next-button:disabled {
    display: none;
}

.flickity-enabled {
    position: relative;
}

.flickity-enabled:focus { outline: none; }

.flickity-viewport {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.flickity-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
    cursor: move;
    cursor: -webkit-grab;
    cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

/* ---- previous/next buttons ---- */

.flickity-prev-next-button {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: white;
    background: hsla(0, 0%, 100%, 0.75);
    cursor: pointer;
    /* vertically center */
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.flickity-prev-next-button:hover { background: white; }

.flickity-prev-next-button:focus {
    outline: none;
    box-shadow: 0 0 0 5px #09F;
}

.flickity-prev-next-button:active {
    filter: alpha(opacity=60); /* IE8 */
    opacity: 0.6;
}

.flickity-prev-next-button.previous { left: 10px; }
.flickity-prev-next-button.next { right: 10px; }
/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
    left: auto;
    right: 10px;
}
.flickity-rtl .flickity-prev-next-button.next {
    right: auto;
    left: 10px;
}

.flickity-prev-next-button:disabled {
    filter: alpha(opacity=30); /* IE8 */
    opacity: 0.3;
    cursor: auto;
}

.flickity-prev-next-button svg {
    position: absolute;
    left: 20%;
    top: 20%;
    width: 60%;
    height: 60%;
}

.flickity-prev-next-button .arrow {
    fill: #333;
}

/* color & size if no SVG - IE8 and Android 2.3 */
.flickity-prev-next-button.no-svg {
    color: #333;
    font-size: 26px;
}

/* ---- page dots ---- */

.flickity-page-dots {
    position: absolute;
    width: 100%;
    bottom: -25px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    line-height: 1;
}

.flickity-rtl .flickity-page-dots { direction: rtl; }

.flickity-page-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 8px;
    background: #333;
    border-radius: 50%;
    filter: alpha(opacity=25); /* IE8 */
    opacity: 0.25;
    cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
    filter: alpha(opacity=100); /* IE8 */
    opacity: 1;
}

.button {
    font-size: 1em;
    padding: 10px;
    color: #fff;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
}


.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 20px auto;

    background: #fff;
    border-radius: 5px;
    width: 70%;
    position: relative;
    transition: all 5s ease-in-out;
    z-index:10000;
    color: #333;
    text-align: left;
    overflow: scroll;
    padding-left: 20px;
    height:95%;
}

.popup h3 {
    margin-top: 20px;
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.popup .close {
    position: absolute;
    top: 0px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}
.popup .close:hover {
    color: #06D85F;
    transition: all 1s ease-in-out;
}

.popup .content {
    max-height: 90%;
    overflow: auto;
}

.popup > .content{
    padding-bottom: 30px;
}
@media screen and (max-width: 700px){
    .box{
        width: 95%;
    }
    .popup{
        width: 95%;
    }
}
.mouseBtnWrapper {
    position: absolute;
    bottom: 25px;
    text-align: center;
    width: 100%;
    display: none;
}

.mouseBtn {
    text-align: center;
    width: 60px;
    margin: 0px auto;
}

.mouseBtnImg {
    border:none;
    background-color: rgba(255, 255, 255, 0.7);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin-top: -30px;
}

.mouseBtnImg img {
    transform-origin: center bottom 0px;
    animation: 5s ease 0s normal none infinite running ;
    animation-duration: 5s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-iteration-count: infinite;
    animation-play-state: running;
    animation-name: mouseBounce;
    margin-top: 21px;
}


.animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation: mymove 1.5s infinite;
    animation: mymove 1.5s infinite;
}

@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);}
    40% {-webkit-transform: translateY(-30px);}
    60% {-webkit-transform: translateY(-15px);}
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-30px);}
    60% {transform: translateY(-15px);}
}

.bounce {
    -webkit-animation-name: bounce;
    animation-name: bounce;
}
