/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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.
 */

/* ==========================================================================
   Globals
   ========================================================================== */

#maincontent ul li {
    margin-bottom: 10px;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

figure {
    margin: 40px 0;
    display: flex;
}

    figure img {
    }

    figure figcaption {
        padding-left: 20px;
    }

@media only screen and (max-width: 778px) {
    figure {
        flex-direction: column;
    }

        figure img {
        }

        figure figcaption {
            padding-left: 0;
            padding-top: 20px;
        }
}

nav ul {
    margin: 0;
}

.wrapper {
    margin: 0 auto;
    max-width: 1024px;
    width: 95%;
}

.page-container {
    display: flex;
    flex-flow: row;
    margin: 50px 0;
}

    .page-container main {
        width: 70%;
        padding-right: 40px;
    }

    .page-container aside {
        width: 30%;
    }

@media only screen and (max-width: 778px) {
    .page-container main {
        width: 100%;
        padding-right: 0px;
    }

    .page-container aside {
        display: none;
    }

    .wrapper {
        width: 85%;
    }
}

.skiplink {
    background: #fff;
    color: #2b3654;
    display: inline-block;
    padding: 1rem;
    position: absolute;
    top: -1000px;
    z-index: 999;
    font-weight: 600;
}

    .skiplink:focus {
        top: 15px;
        left: 15px;
    }

/* ==========================================================================
   Header
   ========================================================================== */

header {
    background-color: #2b3654;
    color: #fff;
}

.logotype img {
    width: 210px;
}

header a {
    color: #fff;
    text-decoration: none;
}

.desktop-menu ul {
    padding: 15px 0;
    margin: 0;
    list-style: none;
    display: flex;
}

header button {
    background-color: transparent;
    border: 0;
}

@media only screen and (max-width: 778px) {
    .desktop-menu {
        display: none;
    }
}

.desktop-menu li {
    margin-left: 15px;
}

    .desktop-menu li a {
        padding: 16px 3px;
        color: #fff;
        text-decoration: none;
        position: relative;
    }

        .desktop-menu li a.current:after {
            content: "";
            display: block;
            position: absolute;
            bottom: 0;
            left: 0;
            height: 6px;
            width: 100%;
            background-color: #fff;
        }

header .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */

#toggleMenu {
    display: none;
    color: #fff;
}

#closeMobileMenu {
    color: #fff;
    display: block;
}

#toggleMenu,
#closeMobileMenu,
.mobile-menu nav button {
    font-size: 24px;
    padding: 7px;
    position: relative;
    right: -7px;
}

@media only screen and (max-width: 778px) {
    #toggleMenu {
        display: block;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    background-color: #0069bf;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
}

    .mobile-menu .top-bar {
        margin-bottom: 40px;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu > nav {
        margin-top: 20px;
    }

    .mobile-menu nav ul li {
        position: relative;
    }

        .mobile-menu nav ul li a {
            display: inline-block;
            font-size: 24px;
            line-height: 1.5;
            margin-bottom: 5px;
            padding-left: 10px;
            position: relative;
        }

        .mobile-menu nav ul li > a.current {
            font-weight: 700;
        }

            .mobile-menu nav ul li > a.current::after {
                content: "";
                height: 3px;
                width: 100%;
                display: block;
                background-color: #fff;
                position: absolute;
                bottom: 0px;
            }

    /* .mobile-menu nav ul li a:before {
  content: ">";
  position: absolute;
  left: 0;
} */

    /* //////////////////// Submenu ////////////*/

    .mobile-menu .submenu {
        padding-left: 31px;
        display: none;
    }

    .mobile-menu nav button {
        position: absolute;
        top: 0;
        color: #fff;
        font-size: 20px;
    }

    .mobile-menu ul li.active .submenu {
        display: block;
    }

    .mobile-menu ul li.active button {
        transform: rotate(180deg);
    }

/* ==========================================================================
   Footer
   ========================================================================== */

footer.footer {
}

    footer.footer .info {
        background-color: #2b3654;
        color: #fff;
    }

    footer.footer .logotypes .wrapper > div {
        display: flex;
        padding: 40px 0;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        border-bottom: 2px dotted #cfd2d9;
    }

        footer.footer .logotypes .wrapper > div img {
            margin: 10px 15px;
        }

    footer.footer .logotypes .wrapper .meta {
        border-bottom: 0;
        padding: 20px 0;
        font-size: 14px;
        justify-content: space-between;
    }

        footer.footer .logotypes .wrapper .meta .links {
            text-align: right;
            font-size: 14px;
        }

    footer.footer .wrapper > div {
        display: flex;
        /* justify-content: space-between; */
        align-items: center;
        padding: 50px 0;
        position: relative;
        align-items: flex-start;
    }

    footer.footer .wrapper div div {
        width: 30%;
    }

    footer.footer .info .wrapper div div a {
        display: block;
        color: #fff;
    }

    footer.footer .wrapper div div h2 {
        margin-top: 0;
        margin-bottom: 10px;
    }

@media only screen and (max-width: 778px) {
    footer.footer .info .wrapper > div {
        flex-direction: column;
    }

    footer.footer .wrapper div div {
        width: 100%;
        margin-bottom: 40px;
        flex-direction: column;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    background-color: #2b3654;
    /* padding: 20px 0 40px; */
    color: #fff;
}

    .hero .wrapper {
        padding: 20px 0 40px;
    }

    .hero h1 {
        font-weight: 400;
        margin: 0;
        margin-bottom: 30px;
        font-size: 40px;
        line-height: 1.3;
    }

        .hero h1 span {
            font-size: 24px;
            display: block;
            margin-bottom: 20px;
        }

.hero-img {
    height: 340px;
    background-image: url(/static/img/hero.jpg);
    background-size: cover;
    background-position: center center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    background-color: #f1b998;
    color: #101c40;
    padding: 8px 25px;
    text-align: center;
    border-radius: 20px;
    text-decoration: none;
}

a.btn {
    color: #101c40;
}

.btn:hover {
    text-decoration: underline;
}
/* ==========================================================================
   Submenu
   ========================================================================== */
@media only screen and (min-width: 778px) {
    .submenu {
    }

        .submenu ul {
            list-style: none;
            border-left: 6px solid #f1b998;
            padding: 0;
            padding-left: 20px;
        }

            .submenu ul li a {
                padding: 2px 0;
                color: #101c40;
            }

                .submenu ul li a.current {
                    font-weight: 700;
                }
}

/* ==========================================================================
   Movie block
   ========================================================================== */

.movie-container {
    display: flex;
    margin-bottom: 40px;
}

.movie-frame {
    width: 100%;
    height: 350px;
}

/* ==========================================================================
   RSS block
   ========================================================================== */
.rss-teaser {
    display: flex;
    margin-bottom: 40px;
}

.rss-image {
    width: 0%;
}

.rss-text {
    width: 75%;
    padding-left: 0px;
}

.rss-date {
    font-size: 14px;
    margin-bottom: 10px;
}

.rss-text h2 {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.25;
}

.rss-text a {
    text-decoration: none;
}

    .rss-text a:hover {
        text-decoration: underline;
    }

/* ==========================================================================
   Latest news
   ========================================================================== */
.news-teaser {
    display: flex;
    margin-bottom: 40px;
}

.news-image {
    width: 25%;
}

    .news-image img {
        width: 100%;
    }

.news-text {
    width: 75%;
    padding-left: 20px;
}

    .news-text a {
        text-decoration: none;
    }

        .news-text a:hover {
            text-decoration: underline;
        }

    .news-text h3,
    .news-text h2 {
        font-size: 26px;
        margin-top: 0;
        margin-bottom: 10px;
        line-height: 1.25;
    }

.news-date {
    font-size: 14px;
    margin-bottom: 10px;
}

@media only screen and (max-width: 400px) {
    .news-teaser {
        flex-flow: column;
    }

    .news-image {
        width: 100%;
        margin-bottom: 20px;
    }

    .news-text {
        width: 100%;
        padding-left: 0px;
    }
}

.startpage-teaser-container {
    display: flex;
}

    .startpage-teaser-container .news-teaser {
        background-color: #e9f5f0;
        width: 49%;
        display: flex;
        flex-direction: row-reverse;
        font-size: 14px;
        margin-left: 1%;
    }

        .startpage-teaser-container .news-teaser:first-child {
            margin-right: 1%;
            margin-left: 0%;
        }

        .startpage-teaser-container .news-teaser h3 {
            font-size: 16px;
        }

    .startpage-teaser-container .news-text {
        padding: 15px;
        width: 70%;
    }

    .startpage-teaser-container .news-image {
        width: 30%;
        margin-bottom: 0;
    }

        .startpage-teaser-container .news-image img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .startpage-teaser-container .news-text p {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4; /* number of lines to show */
        line-clamp: 4;
        -webkit-box-orient: vertical;
        margin-bottom: 0;
    }

@media only screen and (max-width: 556px) {
    .startpage-teaser-container {
        flex-direction: column;
    }

        .startpage-teaser-container .news-teaser {
            width: 100%;
            margin-left: 0%;
        }

            .startpage-teaser-container .news-teaser:first-child {
                margin-right: 0%;
            }
}

/* ==========================================================================
   Accordion
   ========================================================================== */

.accordion-group {
    margin: 0;
    padding: 0;
    list-style: none;
    margin: 40px 0 60px;
}

#maincontent .accordion-group .accordion {
    margin: 0;
    background-color: #deebf5;
    border-bottom: 1px solid #ccc;
    transition: margin 0.2s;
}

    #maincontent .accordion-group .accordion.open {
        margin: 15px 0;
    }

.accordion:last-child {
    border-bottom: 0;
}

.accordion h2,
.accordion h3 {
    margin: 0;
}

.accordion-trigger,
.accordion-content {
    padding: 20px;
}

.accordion-trigger {
    width: 100%;
    border: 0;
    background-color: transparent;
    font-size: 20px;
    text-align: left;
    cursor: pointer;
}

.accordion-icon .fa-minus {
    display: none;
}

.accordion-title {
    display: block;
    position: relative;
    padding-right: 60px;
    width: 100%;
}

.accordion-icon {
    position: absolute;
    right: 0;
    top: 0;
}

.accordion.open .accordion-icon .fa-minus {
    display: block;
}

.accordion.open .accordion-icon .fa-plus {
    display: none;
}

.accordion-content {
    display: none;
    padding-top: 0;
}

.accordion.open .accordion-content {
    display: block;
}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    color: #2b3654;
    font-size: 1em;
    line-height: 1.4;
    font-family: Arial, Helvetica, sans-serif;
}

#maincontent a:not(h2 a, h3 a, .submenu a),
.footer .links a {
    color: #0069bf;
}

a[target="_blank"] {
    position: relative;
    padding-right: 17px;
}

    a[target="_blank"]:after {
        content: "\f08e";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        display: inline-block;
        font-size: inherit;
        font-size: 14px;
        left: auto;
        margin-left: 5px;
        /* margin-top: 1px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%); */
    }

h1 {
    margin-top: 0;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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 {
    border: 0;
    display: block;
    width: 100%;
    max-width: 200px;
    border-top: 6px solid #f1b998;
    height: 3px;
    margin: 3em 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

    /*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

    .sr-only.focusable:active,
    .sr-only.focusable:focus {
        clip: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        position: static;
        white-space: inherit;
        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: " ";
    display: table;
}

.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:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        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 {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
