/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.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.
 */

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

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

.visually-hidden {
    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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}



body {
    border-top: 8px solid #788AAE;
    font-family: Ruda, "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #1C497D;
}

h1 {
    font-size: 1.75rem;
    font-weight: normal;
    color: #788AAE;
    text-transform: uppercase;
    line-height: 1;
}

h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #000000;
    text-transform: uppercase;
    line-height: 1.75rem;
}

h3, p, th, td, li {
    font-size: 1.25rem;
    text-align: left;
}

a {
    text-decoration: none;
}

a:focus, button:focus {
    outline: none;
    outline-offset: 2px;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid #005FCC;
    outline-offset: 2px;
}

header img {
    width: 100%;
    height: auto;
}

.container {
    background-color: #fff;
    padding: 10px;
}

#navfunc, #navmain {
    display: none;
}

.nav-container {
    display: flex;
    flex-direction: column;
    width: calc(100% - 0px);
    margin-bottom: 10px;
}

.nav-brand {
    display: flex;
    flex-direction: row;
}

.nav-brand a {
    color: #788AAE;
    line-height: 100%;
    font-size: 1.5rem;
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-brand-small {
    font-size: .75rem;
    line-height: normal;
    color: #666;
    text-transform: uppercase;
}

.nav-bar {
    width: 100%;
    text-align: right;
}

.nav-main {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.nav-main a{
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-top: 0;
    color: #333;
    font-size: 1.25rem;
}

.nav-main a:first-of-type {
    border-top: 1px solid #ddd;
}

.nav-func a {

}

.nav-dropdown {
    margin-top:0;
}

.nav-dropdown-link {
    display: block;
}

.nav-dropdown-link:after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .155em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.nav-top {
    /*display: none;*/
}

.content {
    display: flex;
    flex-direction: column;
}

header, main {
    /*margin: 10px;*/
}

aside div {
    background: #f8f9fa;
    border: #EEEEEE 1px solid;
    border-radius: 8px;
    padding: 0px 20px 0px 20px;
    margin: 10px;
}

aside div:first-of-type {
    background: none;
    border: #EEEEEE 0px solid;
    border-radius: 0px;
    padding: 0px 0px 0px 0px;
    margin: 0px;
}

.button {
    border-radius: 8px;
    background-color: #107aca;
    color: #ffffff !important;
    font-size: 1.25rem;
    margin: 20px 10px;
    padding: 20px;
    display: block;
    width: calc(100% - 60px);
    text-align: center;
}

.button {
    margin-top: 30px;
    margin-right:0;
    width:  calc(100% - 50px);
}

.btn-top {
    margin: 0px 5px;
}

.footer {
    display: flex;
    flex-direction: column;

    color: #ffffff;
    background-color: #1C497D;
    padding: 10px;
}

.footer .col {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.footer table {
    width: fit-content;
}

.footer-map {
    border: 15px solid white;
    padding: 5px 15px;
    margin: 7px 10px 10px;
    width: auto;
    height: auto;
    background-color: lightblue;
    cursor: pointer;
    color: black;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    background-color: #043771;
    color: white;
    padding: 10px;
    padding-bottom: 20px;
}

.footer-bottom a {
    color: white;
    font-size: 1.25rem;
}

.footer-divider {
    padding: 0px 10px 0px 10px;
}

.nav-sub {
    display: none;
    flex-direction: column;
}

.nav-sub a {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-top: 0;
    color: #333;
    font-size: 1.25rem;
    display: block;
}

.nav-sub a:first-of-type {
    border-top: 0;
}

#gmap-opt-in {
    cursor: pointer;
    background-color: initial;
    border: 0;
    font-size: 1.25rem;
    text-align: left;
    line-height: 1.4;
}

.sr-only {
    position: absolute;
    left: -10000px; /* Über den linken Rand hinaus schieben */
    top: auto;     /* Standard-Positionierung belassen */
    width: 1px;    /* Minimale Breite */
    height: 1px;   /* Minimale Höhe */
    overflow: hidden; /* Inhalt, der nicht sichtbar ist, ausblenden */
}

section h3 {
    background-color: #5b6b8a;
    color: #fff;
    border: 0;
    font-size: 1.5rem;
    margin: 1px 0px;
}

section button {
    background-color: #5b6b8a;
    color: #fff;
    border: 0;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    position: relative;
}

section button::before {
    content: "+";
    position: absolute;
    right: 10px;
}

section div {
    padding: 10px;
    border: 1px solid #5b6b8a;
}

@media only screen and (min-width: 700px) {
    h1 {
        font-size: 2rem;
    }
    .nav-brand a {
        font-size: 2rem;
    }
    .nav-brand-small {
        font-size: 1rem;
    }
}

@media only screen and (min-width: 1000px) {
    body {
        border-top: 10px solid #788AAE;
        background-color: #ffffff;
    }

    .container {
        max-width: 1280px;
        margin: 0 auto;
    }

    #navfunc, #navmain {
        display: flex;
    }

    .nav-container {
        flex-direction: row;
    }

    .nav-brand {
        flex-direction: column;
        max-width: 400px;
    }

    .nav-brand a {
        color: #5b6b8a;
        line-height: 110%;
    }

    .nav-brand-small {
        font-size: 1rem;
        color: #333;
    }

    .nav-bar {
        width: 0;
        display: none;
    }

    .nav-main {
        flex-direction: row;
        margin-top: 0;
        float: right;
    }

    .nav-top {
        width: inherit;
    }

    .nav-main a {
        width: auto;
        border: 0;
        font-size: 1.1rem;
    }

    .nav-main a:first-of-type {
        border-top: 0;
    }

    .nav-func a {
        color: #666;
        font-weight: bold;
    }

    .content {
        flex-direction: row;
    }
    .main {
        width: 60%;
        padding-right: 5%;
    }
    aside  {
        width: 40%;
    }
    aside div {
        margin-right: 0;
    }
    .footer {
        flex-direction: row;
    }
    .col {
        width: 33%;
    }

    .col:first-of-type {
        margin-left: calc(50% - 640px);
        margin-right: 60px;
    }

    .col:last-of-type {
        margin-right: calc(50% - 640px);
    }

    .footer-bottom {
        flex-direction: row;
    }

    .nav-sub {
        flex-direction: column;
        position: absolute;
        z-index: 1;
        margin-left: 20px;
        background-color: #ffffff;
        border: 1px solid #ddd;
    }
    .nav-sub a {
        min-width: 120px;
        border: 0;
    }
    .nav-sub a:hover {
        background-color: #ccc;
    }

    .nav-dropdown {
        margin-top:0px;
    }

    .nav-dropdown-link:after {
        display: inline-block;
        margin-left: .255em;
        vertical-align: .155em;
        content: "";
        border-top: .3em solid;
        border-right: .3em solid transparent;
        border-bottom: 0;
        border-left: .3em solid transparent;
    }


    .footer-bottom div {
        width: 50%;
    }

    .footer-bottom div:first-of-type {
        margin-left: calc(50% - 640px);
    }

    .footer-bottom div:last-of-type {
        margin-right: calc(50% - 640px);
    }

    .footer-bottom div:last-of-type p {
        text-align: right;
    }

    #footer-map {
        margin-top: 20px;
    }
}


@media only screen and (min-width: 1260px) {
    h1 {
        font-size: 38px;
        position: absolute;
        left: 0;
        top: 620px;
        padding-left: calc(50% - 640px + 20px);
        padding-right: 40px;
        padding-top: 25px;
        height: 6rem;
        z-index: 10;
        color: #fff;
        background-color: #5b6b8a;
        text-transform: inherit;
        float: right;
    }

    h2 {
        margin-top: 2rem;
    }

    .nav-brand {
        max-width: inherit;
    }

    .nav-brand a {
        font-size: 2rem;
    }

    .nav-main a {
        width: auto;
        border: 0;
        font-size: 1.25rem;
    }
}
