@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight:500 ;
}
@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype');
    font-weight:600 ;
}
@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight:700 ;
}

@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight:500 ;
}
@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype');
    font-weight:600 ;
}
@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight:700 ;
}


* {
    margin: 0;
    padding: 0;
    border: 0;
    text-decoration: none
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem; /* entspricht 16px */
    line-height: 1.7rem;
    color: #414241;
    background-color: #fff;
}

a {
    color: #414241;
}
a.active, a:hover {
    color: #005e9d;
}

h1 {
    font-size: 2rem;
    line-height: 2.3rem;
    font-weight: 500;
    text-transform: uppercase;
    padding-bottom: 30px;
}
h2 {
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 500;
}
h3 {
    font-size: 1.1rem;
    line-height: 1.6rem;
    text-transform: uppercase;
    font-weight: 400;
    padding-bottom: 5px;
}
h4 {
    font-size: 1rem;
    line-height: 1.6rem;
    text-transform: uppercase;
    font-weight: 400;
    padding-bottom: 5px;
}

img.visual {
    max-width: 100%;
    display: block;
}

p {
    padding-bottom: 25px;
}


section.visual {
    position: relative;
    width:100%;
    display: block;
    height:100%;
}
section.visual img {
    max-width: 100%;
    display: block;
}
div.logo {
    display: flex;
    position: absolute;
    left: 0;
    padding-left: 75px;
}
header {
    display:flex;
    padding: 20px 0 20px 0;
    justify-content: center;
    position: relative;
    height: 75px;
}
nav.main {
    display: flex;
    width: 750px;
    align-items: flex-end;
}
nav.main a {
    color: #414241;
    text-transform: uppercase;
    margin-right: 15px;
}
nav.main a:hover, nav.main a.active {
    color: #005e9d;
}
h2.logo {
    text-transform: uppercase;
    padding-left: 20px;
}
div.logo img {
    height: 75px;
}

.content {
    width: 750px;
    padding: 70px 0 200px 0;
}
main {
    display:flex;
    justify-content: center;
    background-image: url('../Images/bg-raute-linie-halb.png'),url('../Images/bg-raute.png');
    background-position: 0 10vh, 40vh -30vh;
    background-repeat: no-repeat, no-repeat;
    background-size: auto auto, 220vh auto;

    position: relative;
}
main.contact {
    justify-content: flex-end;
}

main.contact .content {
    padding: 70px 10% 50px 0;
}
main.contact .slogan {
    position: absolute;
    top:15%;
    left:0;
    font-size: 3.7em;
    line-height: 1.1em;
    text-transform: uppercase;
    width:200px;
}


footer {
    background-color: #005e9d;
    color: #fff;
}
footer a {
    color: #fff;
}
.footercontent {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 25px 0 40px 0;
}
thead {
    display:none;
}
table.timetable th {
    font-weight: normal;
}
table.timetable th, table.timetable td {
    text-align: left;
    vertical-align: top;
    padding-right: 15px;
    font-variant-numeric: tabular-nums;
}

div.timetable {
    background-image: url('../Images/icon_uhr.png');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 25px auto;
    padding-left: 40px;
}
div.address {
    background-image: url('../Images/icon_standort.png');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 25px auto;
    padding-left: 40px;
}
div.contact {
    background-image: url('../Images/icon_telefon.png');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 25px auto;
    padding-left: 40px;
}
nav.footer ul  {
    list-style-type: none;
}
nav.footer {
    position: absolute;
    right: 0;
    top: -90px;
}
nav.footer a:hover {
    color:#fff;
}
div.footercontent.right {
    padding-bottom: 0;
    position: relative;
}

/**
Karte
 */

section.map {
    background-color: #005e9d;
}
div.route_div {
    margin: 0 auto;
    max-width: 1240px;
    color:#fff;
    padding: 30px 0 30px 0;
}
div.route_div h3 {
    margin-bottom: 15px;
}
div.route_form input {
    width: auto;
    margin-right: 10px;
    border-bottom: 1px solid #1d1d1b;
    margin-bottom: 15px;
    padding: 5px;
    color: #414241;
}
div.route_form input[type = submit] {
    color:#fff;
    background-color: #414241;
    background-image: url("../Images/pfeil-rechts.png");
    background-repeat:no-repeat;
    background-position: 5px 7px;
    background-size: 23px auto;
    cursor: pointer;
    padding: 7px 10px 7px 33px;
    font-family: Roboto, sans-serif;
    font-size: 1em;
    line-height: 1.2em;
    border-bottom: none;
}
#osm-map img {
    filter: grayscale(80%);
}
#osm-map img.leaflet-marker-icon {
    filter: grayscale(0%);
}
.leaflet-control-attribution a {
    color: #1d1d1b !important;
}


.rslides {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

.rslides_nav {
    width: 24px;
    height: 24px;
    border-radius: 0;
    position: absolute;
    top:25%; /*450px;*/
    border-style: solid;
    border-width: 0 2px 2px 0;
    border-color: transparent #fff #fff;
    display: inline-block;
    outline: none;
    z-index: 4000;
}

.rslides_nav.next {
    right: 42px;
    /*margin-top: -12px;*/
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.rslides_nav.prev {
    left: 42px;
    right: auto;
    -webkit-transform: rotate(132deg);
    transform: rotate(132deg);
}

nav.side {
    position:absolute;
    left: 0;
    top: 35%;
    z-index: 2000;
    color: #fff;
    display: flex;
    flex-direction: column;
}
aside.timetable {
    position:absolute;
    left: -600px;
    top: 35%;
    z-index: 1900;
    background-color: #fff;
    font-size: 0.8em;
    line-height: 1.6em;
    height: 237px;
    padding: 10px 20px 20px 20px;
    display: inline-block;
}
aside.phonenumber {
    position:absolute;
    left: -600px;
    top: calc(35% + 185px);
    z-index: 1900;
    background-color: #fff;
    height: 28px;
    padding: 7px 20px 7px 20px;
    display: inline-block;
}
aside.welcome {
    position:absolute;
    left: 15%;
    top: 35%;
    z-index: 1900;
    color:#fff;
    display: block;
}

aside.welcome h1 {
    color:#fff;
    font-size: 3rem;
    line-height: 3.5rem;
    font-weight: 400;
}
aside.info-box {
    position:absolute;
    right: 0;
    top: 40%;
    z-index: 1900;
    display: block;
    background-color: #fff;
    padding: 20px 30px 10px 30px;
    max-width: 700px;
}
aside.info-box p {
    padding-bottom: 10px;
    text-transform: none;
    font-size: 1.3rem;
    line-height: 2rem;
    font-weight: 500;
}
nav.side a {
    color:#fff;
    text-transform: uppercase;
}
nav.side a.timetable-text {
    padding: 5px 5px 0 0;
    display: inline-block;
    background-color: #706f6f;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    height: 140px;
    width: 35px;

}
nav.side a.timetable {
    background-image: url('../Images/icon_uhr.png');
    background-position: 7px 7px;
    background-repeat: no-repeat;
    background-size: 25px auto;
    padding: 0;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #706f6f;
}
nav.side a.contact {
    background-image: url('../Images/icon_telefon.png');
    background-position: 7px 7px;
    background-repeat: no-repeat;
    background-size: 25px auto;
    padding: 0;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #706f6f;
    border-top: 1px solid #fff;
}
nav.side a.address {
    background-image: url('../Images/icon_standort.png');
    background-position: 7px 7px;
    background-repeat: no-repeat;
    background-size: 20px auto;
    padding: 0;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #706f6f;
    border-top: 1px solid #fff;
}


a.arrow-down {
    position: absolute;
    left: calc(50% - 80px);
    top: 0;
    z-index: 2000;
    color:#fff;
    background-image: url('../Images/pfeil-unten.png');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 40px auto;
    display: inline-block;
    padding-bottom: 50px;
    min-width: 40px;
}

a.arrow-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3000;
    color:#fff;
    background-image: url('../Images/pfeil-oben.png');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 40px auto;
    width: 40px;
    height: 40px;
    display: none;
}
table.main {
    margin-bottom: 25px;
}

aside.info-box.mobile {
    display: none;
    position: static;
}


/***********
responsive
************/

@media only screen and (max-width:1600px) {
    nav.main {
        width: 400px;
    }
}

@media only screen and (max-width:1240px) {
    div.route_div {
        margin: 0 30px 0 30px;
        max-width: calc(100% - 60px);
        width: calc(100% - 60px);
        color: #fff;
        padding: 30px 0 30px 0;
    }

    .footercontent {
        width: calc(100% - 60px);
        max-width: calc(100% - 60px);
        margin: 0;
        display: flex;
        padding: 25px 30px 40px 30px;
    }
    div.footercontent.right {

    }
    div.logo {
        padding-left: 30px;
    }
    nav.main {
        display: flex;
        width: auto;
        align-items: flex-end;
    }
    nav.footer {
        position: absolute;
        right: 30px;
        top: -110px;
    }
}
@media only screen and (max-width:1050px) {
    aside.welcome {
        left: 15%;
        top: 5%;
    }
    main.contact .content {
        width: 500px;
    }
}
@media only screen and (max-width:890px) {
    div.logo {
        display: flex;
        position: static;
        margin-right: 40px;
    }
    header {
        justify-content: flex-start;
    }
    div.route_div {
        margin: 0 15px 0 15px;
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
        padding: 10px 0 10px 0;
    }

    .footercontent {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        padding: 25px 15px 40px 15px;
    }
    .content {
        padding-bottom: 90px;
    }
    main.contact .slogan {
        font-size: 2.7em;
        line-height: 1.1em;
    }
    aside.info-box {
        max-width: 500px;
    }
    aside.info-box p{
        font-size: 1rem;
        line-height: 1.5rem;
    }
}
@media only screen and (max-width:770px) {
    main.contact .slogan {
        display: none;
    }
    div.logo {
        margin-right: 20px;
        padding-left: 20px;
    }
    div.logo img {
        height: 60px;
    }
    header {
        height: 60px;
    }
    h2 {
        font-size: 1.1rem;
        line-height: 1.4rem;
        font-weight: 500;
    }
    h1 {
        padding-bottom: 20px;
    }
    header {
        padding: 10px 0 10px 0;
    }
    aside.welcome h1 {
        font-size: 1.7rem;
        line-height: 2.2rem;
    }
    aside.info-box {
        padding: 10px 10px 5px 10px;
    }
    aside.info-box p {
        padding-bottom: 5px;
        font-size: 1.1rem;
        line-height: 1.7rem;
    }
    .content, main.contact .content {
        width: 100%;
        padding: 20px 20px 20px 20px;
    }
    .footercontent {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        display: block;
        padding: 20px 0 20px 20px;
    }
    div.timetable, div.address, div.contact {
        padding-bottom: 30px;
    }
    nav.footer {
        position: absolute;
        right: 30px;
        top: -100px;
    }
    a.arrow-top {
        bottom: 10px;
    }
    nav.side a.timetable-text {
        font-size: 0.8rem;
        height: 115px;
    }
    aside.timetable {
        height: 212px;
    }
    aside.phonenumber {
        top: calc(35% + 160px);
    }
}
@media only screen and (max-width:640px) {
    div.logo {
        margin-right: 10px;
        padding-left: 10px;
    }
    h2.logo {
        padding-left: 10px;
    }
    nav.main {
        position: absolute;
        right: 10px;
        bottom: 10px;
    }
    aside.info-box {
        display: none;
    }
    aside.info-box.mobile {
        display: block;
        padding: 10px 20px 0 20px;
        background-color: #f9f4f2;
    }
    a.arrow-down {
        left: calc(50% - 80px);
        background-size: 30px auto;
        padding-bottom: 30px;
    }
    .rslides_nav.prev {
        left: 15px;
    }
    .rslides_nav {
        width: 15px;
        height: 15px;
        top: 25%;
    }
    .rslides_nav.next {
        right: 15px;
    }
    h1 {
        font-size: 1.7rem;
        line-height: 2rem;
    }
    nav.side a.timetable-text {
        display: none;
    }
    nav.side a.timetable {
        background-size: 22px auto;
        width: 35px;
        height: 35px;
        background-position: 6px 6px;
    }
    nav.side a.contact {
        background-size: 22px auto;
        width: 35px;
        height: 35px;
        background-position: 6px 6px;
    }
    nav.side a.address {
        background-size: 19px auto;
        width: 35px;
        height: 35px;
        background-position: 7px 6px;
    }
    nav.side {
        top: 45%;
        bottom: 10px;
        z-index: 5100;
    }
    aside.timetable {
        z-index: 5000;
        top: 45%;
        bottom: 10px;
    }
    aside.phonenumber {
        top: calc(45% + 35px);
    }
    aside.phonenumber {
        padding: 4px 10px 4px 10px;
    }
    a.arrow-top {
        background-size: 30px auto;
    }
    nav.footer {
        position: static;
    }
    .footercontent {
        width: 100%;
        padding: 10px 0 0 0;
    }
    div.footercontent.right {
        padding: 0 0 40px 0;
    }
    div.footercontent.right ul {
        margin-left: 50px;
    }

    div.timetable, div.address, div.contact {
        margin-left: 10px;
    }
    main {
        background-position: -75vh 10vh, 18vh -30vh;
        background-size: 100vh auto, 220vh auto;
    }

}
