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


/* latin-ext */
@font-face {
    font-family: 'Jost';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(../webfonts/Jost-Italic-VariableFont_wght.ttf) format('truetype');
}
/* latin */
@font-face {
    font-family: 'Jost';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(../webfonts/Jost-Italic-VariableFont_wght.ttf) format('truetype');
}
/* latin-ext */
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../webfonts/Jost-VariableFont_wght.ttf) format('truetype');
}
/* latin */
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../webfonts/Jost-VariableFont_wght.ttf) format('truetype');
}

body, html {
    font-family: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #e7e6e4;
    background-color: #efefef;
    background-color: #F2F2F2;
    color: #6f7070;
    color: #6B6B6B;
    /*letter-spacing: 0.05em;
    word-spacing:0.5em*/
}

a {
    text-decoration: none;
    color: #159AAA;
    font-weight: 600;
}
a:focus { outline: 3px solid #007bff; outline-offset: 2px; }
a:focus-visible {
    outline: 2px solid #cccccc;
}

h1 {
    font-size: 1.5rem;
    color: #159AAA;
    text-transform: uppercase;
    font-weight:600;
}

h2, h3 {
    font-size: 1.25rem;
    color: #159AAA;
    text-transform: uppercase;
    width:max-content;
    font-weight:600;
}

h3 {
    width:fit-content;
}

p {
font-size: 1.15rem;
}

.content, nav, footer {
    background-color: #fff;
    padding: 10px;
    max-width: 1140px;
    margin: 0 auto;
}

.bggray {
    background-color: #efefef;
    background-color: #F2F2F2;
}

nav a {
    text-transform: uppercase;
}

.nav-function {
    display: none;
}
.nav-lang {
    background-color: #e9ecef;
    background-color: #efefef;
    background-color: #f2f2f2;
    padding: 8px 10px;
    margin-right: 4px;
    text-transform: uppercase;
    font-weight: bold;
}
.nav-login {
    background-color: #159AAA;
    background-color: #6f6f6e;
    padding: 8px 10px;
    color: #ffffff;
}
.nav-lang a {
    text-transform: uppercase;
    font-weight: normal;
    color: #6f6f6e;
    color: #6B6B6B;
}
.nav-login a {
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 600;
}
.nav-top {
    clear: both;
}
.nav-brand {
    display: flex;
    flex-direction: row;
}
.nav-bar {
    width: 100%;
    text-align: right;
    color: #6f6f6e;
    line-height: 100%;
    font-size: 2rem;
}
.nav-main {
    display: none;
    flex-direction: column;
    color: #6f6f6e;
    margin-top: 20px;
    background-color: #0a9aac;
}
.nav-main a {
    width: calc(100% - 21px);
    padding: 10px;
    border: 1px solid #e7e6e4;
    border-top: 0;
    color: #6f6f6e;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
}

.nav-active {
    background-color: #54b8c4;
}
.nav-main a:first-child {
    border-top: 1px solid #e7e6e4;
}
.nav-dropdown {
    margin-top: 0;
}
.nav-dropdown-link {
    display: block;
    border-top: 0 !important;
}
.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-sub {
    display: none;
    flex-direction: column;
    background-color: #0a9aac;
    background-color: #54b8c4;
}
.nav-sub a {
    width: calc(100% - 41px);
    padding: 10px 10px 10px 30px;
    border: 1px solid #e7e6e4;
    border-top: 0;
    color: #ffffff;
    font-size: 1rem;
    display: block;
}
.nav-sub a:first-of-type {
    border-top: 0;
}
.nav-footer {
    border: 0 !important;
}

.container, header {
    background-color: #e7e6e4;
    background-color: #efefef;
    background-color: #F2F2F2;
}

header {
    margin-bottom: 10px;
    border-top: 5px solid #e7e6e4;
    position: relative;
}
.header {
    position: absolute;
    top:20px;
    left:0;
    right:0;
    text-align: right;
    background-color: initial;
    font-size: 1.5rem;
    color: #159AAA;
    text-transform: uppercase;
    font-weight: 600;
}

.container img, header img {
    width: 100%;
    height: auto;
}

.teaser {
    display: grid;
    column-gap: 10px;
    row-gap: 10px;
    margin-bottom: 40px;
}

.teaser > section {
    background-color: #ffffff;
    padding: 20px 100px 20px 20px;
    background-position: 95% 90%;
    background-size: 120px auto;
    background-repeat: no-repeat;
}

.teaser > section > .button {
    background-color: #ffffff;
    color: #159AAA;
    border: 3px solid #e7e6e4;
    padding: 8px 5px 5px;
    width: 180px;
    font-weight: 600;
    display: block;
    text-align: center;
    text-transform: uppercase;
}

.membership {
    background-image: url('../img/icon-mitgliedschaft.png');
}

.membervotes-container {
    background-color: #4e575c;
    position: initial;
}
.membervotes-container img {
    display: none;
}
.membervotes-container h2 {
    color:#ffffff;
}
.membervotes-content {
    background-color: initial;
    position: initial;
    padding: 30px;
}
.membervotes {
    display: flex;
    flex-direction: column;
}
.membervotes p {
    color: #ffffff;
    flex-grow: 1;
    flex-basis: 0;
    font-size: 1.25rem;
    font-style: italic;
}
.membervotes p:first-of-type {
    padding-right: 30px;
}
.membervotes p:last-of-type {
    /*border-left: 5px #fefefe solid;
    padding-left: 40px;*/
}
.membervotes-quote {
    display: block !important;

    height:20px !important;
    width: auto !important;
    margin-bottom: 10px;
}
.membervotes-member {
    font-size:1rem;
    font-style: normal;
}

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

footer {
    background-color: #6f6f6e;
    color: #ffffff;
}

footer a {
    color: #ffffff;
    padding-right: 10px;
    font-weight: normal;
}

.space {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: -10px;
}

.space-footer {
    padding-bottom: 30px;
    padding-top: 30px;
}

@media only screen and (min-width: 800px) {
    .header {
        font-size: 1.75rem;
    }

    .nav-function {
        display: flex;
        flex-direction: row;
        float: right;
        margin-bottom: 15px;
    }
    .nav-none {
        display: none;
    }
    .nav-brand img {
        max-width: 400px;
    }
    .teaser {
        grid-template-columns: auto auto;
    }
    .membership {
        grid-column: 1 / span 2;
    }
}

@media only screen and (min-width: 1000px) {
    body {
        font-size: 1.25em;
    }

    h1 {
        font-size: 2rem;
        color: #159AAA;
        text-transform: uppercase;
    }

    h2 {
        font-size: 1.75rem;
        color: #159AAA;
        text-transform: uppercase;
    }

    nav {
        padding-bottom: 50px;
    }
    .nav-top {
        clear: both;
        display: flex;
        flex-direction: row;
    }
    .nav-brand img {
        max-width: 500px;
    }
    .nav-bar {
        display: none;
    }

    .nav-main {
        display: flex;
        flex-direction: row;
        margin-left: 40px;
        background-color: unset;
        margin-top: 10px;
    }
    .nav-main a {
        width: auto;
        padding: 10px;
        border: 0;
        border-left: 3px solid #e7e6e4;
        color: #6f6f6e;
        font-size: 1.15rem;
        text-wrap: nowrap;
    }
    .nav-main a:nth-child(3) {
        border-left: 0;
    }
    .nav-main a:last-child {
        padding-right: 0;
    }

    .nav-main a:hover {
        background-color: #54b8c4;
        background-color: #f2f2f2;
    }

    .nav-active {
        /*color: #159aaa !important;*/
        font-style: italic;
        background-color: #f2f2f2;
    }

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

    .header {
        font-size: 2.5rem;
    }

    .teaser > section {
        padding: 20px 100px 40px 40px;
    }
    .teaser > section > .button {
        width: 240px;
    }

    .membervotes-container {
        position: relative;
    }
    .membervotes-container img {
        display: block;
    }
    .membervotes-content {
        position: absolute;
        top: 0px;
        left: 0;
        right: 0;
    }
    .membervotes {
        display: flex;
        flex-direction: row;
    }
    .membervotes p {
        font-size: 1.5rem;
    }
    .membervotes p:last-of-type {
        border-left: 5px #fefefe solid;
        padding-left: 40px;
    }

    .content-cols {
        display: flex;
        flex-direction: row;
    }
    .content-cols > div {
        padding-right: 20px;
        flex-grow: 1;
        flex-basis: 0;
    }
    .content-cols > div:last-of-type {
        border-left: 5px #efefef solid;
        padding-left: 30px;
    }
    .space-footer {
        padding-bottom: 40px;
        padding-top: 40px;
    }
}

@media only screen and (min-width: 1260px) {
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    .nav-brand img {
        max-width: 700px;
    }
    .nav-main {
        margin-left: 70px;
    }
    .nav-main a {
        font-size: 1.25rem;
    }
    header {
        margin: 0px auto 50px auto;
    }
    .header {
        font-size: 3rem;
        top:10%;
    }
    .membervotes-content {
        top: 10%;
    }
    .membervotes p {
        font-size: 1.75rem;
    }
    .membervotes-member {
        font-size:1.25rem;
        font-style: normal;
    }
}
