/* Based on the theme of the former SilverStripe site (layout.css, sprite.css, fonts.css) */

@font-face {
    font-family: DaxWeb;
    src: url("../fonts/DaxWeb.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: DaxWeb-Bold;
    src: url("../fonts/DaxWeb-Bold.woff") format("woff");
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: #000;
}

/*common*/

.wrap {
    width: 950px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 19px;
}

.clear {
    clear: both;
}

b, strong {
    font-weight: bold;
}

a {
    color: #0091b4;
    text-decoration: underline;
}

h1 {
    font-family: DaxWeb, Arial, sans-serif;
    font-size: 55px;
    line-height: 60px;
    margin-bottom: 30px;
    color: #dedc1e;
}

h2 {
    font-family: DaxWeb, Arial, sans-serif;
    font-size: 26px;
    line-height: 29px;
    color: #dedc1e;
    margin-bottom: 10px;
}

/*content*/

.content {
    float: left;
    width: 700px;
}

.content p,
.content ul,
.content table {
    margin-bottom: 19px;
}

.content h2 {
    margin-top: 19px;
}

.content > h2:first-child,
.content > p:first-child + h2 {
    margin-top: 0;
}

.content h3 {
    font-weight: normal;
    margin-bottom: 19px;
}

.content ul li::before {
    content: "- ";
}

.content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.content table td {
    padding: 0 20px 4px 0;
    vertical-align: top;
}

.content table thead {
    display: none;
}

.content a,
.sidebar a {
    background: url('../images/sprite.png') no-repeat top left;
    background-position: 0 -180px;
    padding-left: 20px;
}

/*header*/

.header {
    height: 178px;
    background: url('../images/header_bg.png') repeat-x;
    border-bottom: 1px solid #1a171b;
}

.header .wrap {
    position: relative;
    height: 178px;
}

.header img.logo {
    position: absolute;
    left: 70px;
    bottom: 0;
    height: 10rem;
}

/*menus*/

/*main*/

ul.main_menu {
    position: absolute;
    bottom: 0;
    right: 0;
}

ul.main_menu li {
    float: left;
    background: #fff;
    margin-left: 10px;
    border: 1px solid #b1b2b4;
    border-bottom: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
    text-align: center;
}

ul.main_menu li .icon {
    position: absolute;
    top: -94px;
    opacity: 0;
    transition: all 200ms ease-in-out;
    pointer-events: none;
}

ul.main_menu li:hover .icon,
ul.main_menu li.current .icon {
    opacity: 1;
}

ul.main_menu li:hover,
ul.main_menu li.current {
    background: #dedc1e;
}

ul.main_menu li a {
    display: block;
    text-align: center;
    line-height: 40px;
    padding: 0 20px;
    text-decoration: none;
    font-family: DaxWeb, Arial, sans-serif;
    font-size: 22px;
    color: #282828;
}

/*meta*/

ul.meta_menu {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 20px;
}

ul.meta_menu li {
    float: left;
    margin-left: 20px;
}

ul.meta_menu li a {
    display: block;
    text-decoration: none;
    line-height: 25px;
    color: #282828;
}

ul.meta_menu li.current a,
ul.meta_menu li a:hover {
    color: #777776;
}

ul.meta_menu li a .icon {
    display: block;
    float: left;
    margin-right: 10px;
}

/*main*/

.main {
    border-bottom: 1px solid #1a171b;
    background: url('../images/main_bg.png') bottom repeat-x;
    padding-bottom: 80px;
}

.main img.logo {
    margin-top: 22px;
    margin-bottom: 25px;
    height: 3rem;
}

/*sidebar*/

.sidebar {
    float: right;
    width: 230px;
    background: #f0efed;
    position: relative;
    border-radius: 8px;
}

.sidebar .inner {
    padding: 20px 15px;
}

.sidebar .arrow {
    width: 20px;
    height: 10px;
    background: url('../images/sidebar_arrow.png') no-repeat;
    position: absolute;
    left: 105px;
    top: -10px;
}

.sidebar a.external {
    display: block;
    background-position: 0 -280px !important;
    height: 24px;
    line-height: 24px;
    padding-left: 30px;
}

.sidebar h3 {
    font-family: DaxWeb, Arial, sans-serif;
    color: #282828;
    font-size: 26px;
    line-height: 29px;
    border-top: 1px solid #fff;
    padding-top: 20px;
    margin-bottom: 10px;
}

.sidebar h3:first-of-type {
    border-top: none;
}

.sidebar p {
    font-size: 13px;
    border-bottom: 1px solid #c6c4bf;
    padding-bottom: 20px;
    overflow-wrap: anywhere;
}

.sidebar p:last-of-type {
    border-bottom: none;
}

.sidebar h3.anfahrt .icon {
    display: block;
    float: right;
    margin-right: 50px;
    position: relative;
    top: -5px;
}

/*slideshow*/

.slideshow {
    position: relative;
    margin-bottom: 25px;
    width: 700px;
    max-width: 100%;
    aspect-ratio: 700 / 310;
    overflow: hidden;
}

.slideshow .images {
    display: flex;
    height: 100%;
    transition: transform 700ms ease-in-out;
}

.slideshow .images img {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.slideshow .text {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: 402px;
    max-width: calc(100% - 30px);
    padding: 15px;
    background: url('../images/slideshow_text.png') no-repeat;
}

.slideshow h3 {
    margin: 0;
    font-family: DaxWeb, Arial, sans-serif;
    font-size: 22px;
    line-height: 24px;
    color: #fff;
}

.slideshow p {
    font-size: 14px;
    line-height: 23px;
    color: #fff;
    margin: 0;
}

.slideshow .nav {
    position: absolute;
    bottom: 15px;
    right: 20px;
    z-index: 40;
    margin: 0;
}

.slideshow .nav li {
    float: left;
    margin-left: 10px;
    list-style: none;
}

.slideshow .nav li::before {
    content: none;
}

.slideshow .nav li a {
    display: block;
    width: 20px;
    height: 20px;
    padding-left: 0;
    background: #fff;
    border: 1px solid #b1b2b4;
    border-radius: 11px;
}

.slideshow .nav li.activeSlide a,
.slideshow .nav li a:hover {
    background: #dedc1e;
}

/*team*/

.team_members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
}

.team_member img {
    display: block;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
}

.team_member h3 {
    font-family: DaxWeb, Arial, sans-serif;
    font-size: 26px;
    line-height: 29px;
    color: #dedc1e;
    margin-bottom: 10px;
}

/*footer*/

.footer {
    border-top: 1px solid #c6c5c6;
    padding-top: 5px;
    padding-bottom: 80px;
    position: relative;
}

.footer,
.footer a {
    text-decoration: none;
    color: #777776;
}

.footer .top {
    display: block;
    position: absolute;
    right: 0;
    top: -100px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.footer .top span {
    display: none;
    padding: 2px 5px;
    background: #fff;
    color: #000;
    position: absolute;
    left: -130px;
    top: 0;
    white-space: nowrap;
}

.footer .top:hover span {
    display: block;
}

ul.footer_menu {
    float: right;
}

ul.footer_menu li {
    float: left;
    margin-left: 20px;
}

/*sprites*/

.sprite {
    background: url('../images/sprite.png') no-repeat top left;
    position: relative;
}

.sprite.anfahrt {
    background-position: 0 0;
    width: 60px;
    height: 35px;
}

.sprite.top:hover {
    background-position: 0 -307px;
    width: 45px;
    height: 28px;
}

.sprite.top {
    background-position: 0 -345px;
    width: 45px;
    height: 28px;
}

.sprite.leistungen {
    background-position: 0 -383px;
    width: 88px;
    height: 93px;
    left: 30px;
}

.sprite.praxis {
    background-position: 0 -486px;
    width: 68px;
    height: 93px;
    left: 15px;
}

.sprite.team {
    background-position: 0 -589px;
    width: 82px;
    height: 93px;
    left: 8px;
}

.sprite.tipps {
    background-position: 0 -692px;
    width: 101px;
    height: 93px;
}

.sprite.jugend {
    background-position: 0 -785px;
    width: 82px;
    height: 93px;
    left: 12px;
}

.sprite.kontakt {
    background-position: 0 -144px;
    width: 36px;
    height: 29px;
}

li.current a .sprite.kontakt,
li a:hover .sprite.kontakt {
    background-position: 0 -105px;
}

.sprite.notfall {
    background-position: 0 -202px;
    width: 29px;
    height: 29px;
}

/*small screens (the original design is fixed to 950px)*/

@media (max-width: 990px) {
    .wrap {
        width: auto;
        padding: 0 16px;
    }

    .header,
    .header .wrap {
        height: auto;
    }

    .header {
        background-size: auto 100%;
    }

    .header .wrap {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        padding-top: 16px;
    }

    .header img.logo {
        position: static;
        display: block;
        height: 6rem;
    }

    ul.meta_menu {
        position: static;
        margin: 0 0 16px;
        order: 2;
    }

    ul.meta_menu li {
        margin: 0 0 0 16px;
    }

    ul.main_menu {
        position: static;
        order: 3;
        flex: 1 0 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 16px;
    }

    ul.main_menu li {
        margin: 0;
    }

    ul.main_menu li .icon {
        display: none;
    }

    ul.main_menu li a {
        padding: 0 12px;
        font-size: 18px;
        line-height: 36px;
    }

    .content,
    .sidebar {
        float: none;
        width: auto;
    }

    .sidebar {
        margin-top: 40px;
    }

    .team_members {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer .top {
        right: 16px;
    }

    ul.footer_menu {
        float: none;
        margin-bottom: 8px;
    }

    ul.footer_menu li {
        margin: 0 20px 0 0;
    }
}

@media (max-width: 520px) {
    .header img.logo {
        height: 4.5rem;
    }

    ul.meta_menu {
        flex: 1 0 100%;
        margin: 16px 0 0;
    }

    ul.meta_menu li {
        margin: 0 16px 0 0;
    }

    h1 {
        font-size: 36px;
        line-height: 40px;
    }

    .slideshow {
        aspect-ratio: auto;
    }

    .slideshow .images {
        height: auto;
        aspect-ratio: 700 / 310;
    }

    .slideshow .text {
        position: static;
        width: auto;
        max-width: none;
        background: #8a8915;
    }
}
