/*
Theme Name: nede - Neue Demokratie
Theme URI: https://nede.kanrinin.de
Author: Frank Berger
Author URI: https://www.linkedin.com/in/frank-berger-6bb04b9/
Description: Nede Theme
*/
:root {
    --main-bg-color: rgb(0,21,77);
    --main-fg-color: #fff;
    --alt-fg-color: rgb(247,94,11);
    --color-extra:  rgb(124,152,212);
}
* {
    font-family: Lato, SansSerif, sans-serif;
    margin-left: 0;
    margin-right: 0;
}
body {
    padding:0 1.5em 1.5em 1.5em ;
    background-color: var(--main-bg-color);
    color: var(--main-fg-color);
    overflow-x: hidden;
    width: calc(100vw - 3em);

}
main {
    max-width: 1280px;
    overflow-x: hidden;
    width: calc(100vw - 3em);
}
button {
    outline:0;
}
.content a {
    text-decoration: none;
    color: var(--alt-fg-color);
}
.content a:visited {
    text-decoration: none;
    color: var(--alt-fg-color);
}
.content a:hover {

    text-decoration: underline;
    color: var(--alt-fg-color);
}
.content ul {
    padding-left: 1em;
}
h1 {
    font-size: 1.8rem;
    word-spacing: 100vw;
}
article header h1 {
    margin-bottom: 0;
}
article header p {
    font-size: 1.2rem;
    margin-top: 0.25rem;
    color: var(--color-extra);
}
body > header {
    text-align: right;
    overflow-x: hidden;
    width: calc(100vw - 3em);
}
article {
    margin-bottom: 4em;
    max-width: 90%;
    box-sizing: border-box;
}
img#logo {
    width: auto;
    height: 7rem;
}


.countdown {
    width: 100%;
    margin-bottom: 1em;
    position: relative;
}
.countdown ul {
    list-style-type: none;
    width: 100%;
    display: flex;
    margin:0;
    padding:0;
}
.countdown ul li {
    display: inline-block;
    border-left: 1px solid var(--color-extra);


    padding-left: 1.8em;
    padding-right: 1.8em;
    color: var(--color-extra);
    font-size: 0.7em;

}
.countdown ul li:first-of-type {
    border-left: none;
    padding-left: 0;
}
.countdown ul li span {
    font-size: 2.5em;
    color: #fff;
    display: block;

}

.slider {
    padding-top: 1em;
}

.slider .indicator {
    border: 1px solid var(--color-extra);
    width: 60%;
    padding: 5px;
    line-height: 0;
    font-size: 0;
    opacity: 0;
    transition: opacity 500ms linear, margin-top 500ms linear;
    margin-top: 0;
}
.slider .indicator:has( + div.stage > div.active) {
    opacity: 1;
    margin-top: 1em;
}
.slider .indicator.done {
    opacity: 0 !important;
    transition: opacity 500ms linear, margin-top 500ms linear;;
    margin-top:0 !important;
}
.slider .indicator ~ .claim {
    opacity: 0;
    transition: opacity 500ms linear;
    color: var(--color-extra);
    font-size: 1.2em;
    width: 80%;
    margin-bottom: -2em;
    margin-top: 2em;
}
.slider .indicator.done ~ .claim {
    opacity: 1;
    transition: opacity 500ms linear;
}
.slider .indicator span {
    display: inline-block;
    height: 8px;
    background-color: var(--color-extra);
    /* border-bottom: 1px solid var(--color-extra); */
    width: 0%;
    transition-property: width;

    transition-timing-function: linear;
    transition-delay: 0s;

}
.slider .stage {
    /*
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-grow: 1;
    flex-shrink: 0;
    */
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
}
.slider .slide {
    width: 100%;
    min-height: 5em;
    flex-shrink: 0;
    transition: opacity 0.5s linear;
    opacity: 0;
    grid-row-start: 1;
    grid-column-start: 1;
    line-height: 2.1rem;
    pointer-events: none;
    position: relative;

}

.slider .slide.active {

    opacity: 1;
    pointer-events: initial;
}

.slider .slide.images {
    padding-top: 3em;
    overflow-x: hidden;
}

.slider .slide.images ul {
    margin:1rem 0 2rem 0;
    padding:0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    list-style-type: none;
}
.slider .slide.images ul::-webkit-scrollbar {
    display: none;
}

.slider .slide.images ul li {
    padding:0;
    margin: 0 2em;
    width: 100%; /* calc(50% - 2em); */
    flex-grow: 1;
    flex-shrink: 0;
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.5s;

}
.slider .slide.images.active ul li {
    opacity: 1;
}
.slider .slide.images ul li:nth-child(1) {
    transition-delay: 0s;
}
.slider .slide.images ul li:nth-child(2) {
    transition-delay: 1s;
}
.slider .slide.images ul li:nth-child(3) {
    transition-delay: 2s;
}
.slider .slide.images ul li:nth-child(4) {
    transition-delay: 3s;
}
.slider .slide.images ul li:nth-child(5) {
    transition-delay: 4s;
}
.slider .slide.images ul li:nth-child(6) {
    transition-delay: 5s;
}
.slider .slide.images ul li:nth-child(7) {
    transition-delay: 6s;
}
.slider .slide.images ul li:nth-child(8) {
    transition-delay: 7s;
}
.slider .slide.images ul li:nth-child(9) {
    transition-delay: 8s;
}
.slider .slide.images ul li:nth-child(10) {
    transition-delay: 9s;
}
.slider .slide.images ul li:nth-child(11) {
    transition-delay: 10s;
}
.slider .slide.images ul li:nth-child(12) {
    transition-delay: 11s;
}
.slider .slide.images ul li:nth-child(13) {
    transition-delay: 12s;
}
.slider .slide.images ul li:nth-child(14) {
    transition-delay: 13s;
}
.slider .slide.images ul li:nth-child(15) {
    transition-delay: 14s;
}
.slider .slide.images ul li:nth-child(16) {
    transition-delay: 15s;
}
.slider .slide.images ul li:nth-child(17) {
    transition-delay: 16s;
}
.slider .slide.images ul li:nth-child(18) {
    transition-delay: 17s;
}
.slider .slide.images ul li:nth-child(19) {
    transition-delay: 18s;
}

.slider .slide.images ul li:first-of-type {
    margin-left: 0;
}
.slider .slide.images ul li a {
    text-decoration: none;
    position: relative;
    display: block;
    text-align: center;
    color: var(--color-extra);
    /* text-shadow:2px 2px 3px var(--alt-fg-color); */


}
.slider .slide.images ul li a > span {
    /*
    position: absolute;

    top:0;
    left:0;
    bottom:0;
    right:0;
    width: 100%;
    height: 100%;
.slider .slide.images ul li a > span
     */
    display: flex;
    /* border: 1px solid var(--color-extra); */
    margin-top: 1em;
}
.slider .slide.images ul li a > span > span {
    /* margin: auto; */
    /* display: flex; */
    /* flex-direction: column; */
    word-wrap: break-word;
    max-width: 90%;
    line-height: 1.2em;
    font-size: 0.8em;
    padding-left: 4px;
}
.slider .slide.images ul li:hover a > span {
    display: flex;
}
.slider .slide.images .btnlist {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}
.slider .slide.images .btnlist button {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    margin: 2px;
    cursor: pointer;
    line-height: 3em;
    width: 3em;
}
.slider .slide.images ul li img {
    width: 100%;
    height: auto;
}
p a {
    color: var(--alt-fg-color);
    text-decoration: none;
}
p a:visited {
    color: var(--alt-fg-color);
    text-decoration: none;
}
p a:hover {
    color: var(--alt-fg-color);
    text-decoration: underline;
}
p {
    color: #ffffff;
}

.slider .slide.large p {
    font-size: 1.6rem;
    color: var(--alt-fg-color);
}
footer {
    font-size: 0.8em;
    overflow-x: hidden;
    width: calc(100vw - 3em);
}
footer nav {
    display: flex;
    flex-direction: row;
    color: var(--color-extra);
}
footer nav p {
    color: var(--color-extra);

}
footer nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    margin:0;
    padding: 1em 0 0 0;
}
footer nav ul li {
    margin-left: 0.5em;
    padding-left: 0;
    white-space: nowrap;
}
footer nav ul li:before {
    content: '|';
    display: inline-block;
    margin-right: 0.5em;
}
footer nav div.menu,footer nav .footer__content {
    margin-left: 0;
}
footer nav ul li a {
    color: var(--color-extra);
    text-decoration: none;
}
footer nav ul li a:visited {
    color: var(--color-extra);
    text-decoration: none;
}


footer nav ul li a:hover {
    color: var(--alt-fg-color);
    text-decoration: underline;
}
.contact {
    display: flex;
    flex-direction: row;
}
.contact .spenden {
    margin-left: 0;
    padding-left: 4em;
    border-left: 1px solid var(--color-extra);
    display: flex;
}
.contact .spenden button {
    display: inline-block;
    margin: auto auto 1em auto;
    border-radius: 5px;
}
@media screen and (min-width: 768px) {
    .contact .spenden button {
        display: inline-block;
        margin: auto 0;
    }
}
.contact form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.contact form > p {
    margin-right: 2em;
    display: flex;
    flex-direction: column;
}
.contact form > p > *:first-child {
    margin-top: auto;
}
.contact form > p > *:last-child {
    margin-bottom: auto;
}
.contact form > p .wpcf7-submit {
    margin-top: auto;
    margin-bottom: auto;
}
.contact form > p:last-of-type  {
    flex-direction: row;
}

.contact form > p:last-of-type > * {
    /* margin: auto 0; */
}
.contact form .wpcf7-form-control.wpcf7-checkbox, .contact form .wpcf7-form-control.wpcf7-radio {
    display: flex;
    flex-direction: column;
    padding-left: 1em;
}
.contact .wpcf7 {
    width: 60%;
}
@media screen and (min-width: 768px) {
    .contact .wpcf7 {
        width: auto;
    }
}
.contact form fieldset {
    border: none;
    margin: 0 2em 0 0;
    padding: 0;
    color: var(--color-extra);
}
.contact form fieldset p {
    color: var(--color-extra);
}
.contact form input[type=email],.contact form input[type=text]{
    border: 1px solid var(--color-extra);
    border-radius: 5px;
    padding: 3px 5px;
    background-color: transparent;
    color: var(--color-extra);
    max-width: 100%;
}
.contact form input[type=checkbox],.contact form input[type=radio] {
    z-index: 0;
    /* -webkit-appearance: none; */
    opacity: 0;
}
.contact form input[type=checkbox] + span,.contact form input[type=radio] + span {
    color: var(--color-extra);
}
.contact form input[type=checkbox] + span:hover, .contact form input[type=radio] + span:hover {
    cursor: pointer;
    color: var(--alt-fg-color);
}
.contact form input[type=checkbox] + span:before,.contact form input[type=radio] + span:before {
    content: '';
    display: inline-block;
    background-color: var(--color-extra);
    width: 0.75em;
    height: 0.75em;
    margin-right: 0.5em;
    margin-left: -2em;
}
.contact form .wpcf7-list-item {
    margin:0;
}
.contact form input[type=checkbox]:checked + span:before,.contact form input[type=radio]:checked + span:before {

    background-color: var(--alt-fg-color);

}
.contact input[type=submit], .contact button {
    background-color: var(--color-extra);
    padding: 1em;
    color: #fff;
    margin-left: auto;
}
.contact input[type=submit]:hover, .contact button:hover {
    cursor: pointer;
}
@media screen and (min-width: 768px) {
    main {
        padding: 0em 2em 0 11em;

    }
    footer {
        padding: 0em 2em 2em 14em;
    }
    body > header {
        text-align: right;
        overflow-x: initial;
        height: 80px;
    }
    header > a {
        position: fixed;
        z-index: 99999;
        top: 10px;
        right: 10px;
        opacity: 0;
        transition: all 1s linear;
    }
    body.home > header > a #logo {
        /*
        opacity: 1;
        transition: all 1s linear;

         */
        opacity: 0;

    }
    body.home > header > a.show img#logo {
        height: 30rem;
        animation-name: logoanimation;
        animation-duration: 4s;
        animation-delay: 4s;
        animation-fill-mode: forwards;
    }
    article header h1 {
        font-size: 3rem;
    }
    article {
        margin-bottom: 4em;
        max-width: 80%;
    }
    article header p {
        margin-top: 0;
        font-size: 2rem;
    }

    .contact form {
        flex-direction: row;
    }

    .countdown ul li {
        padding-left: 4em;
        padding-right: 4em;
    }
    .countdown ul li span {
        font-size: 4em;
    }
    .slider .slide {
        width: 90%;
    }
    .slider .slide.large p {
        font-size: 1.8rem;

    }
    .slider .slide.images ul {
        overflow-x: hidden;
    }
    .slider .slide.images {
        overflow-x: hidden;
    }
    .slider .slide.images ul li {

        width: calc(25% - 4em);

    }
    .slider .slide.images ul li:last-of-type {
        right: -4em;
        top: calc(50% - 1em);
        left: initial;
        bottom: initial;
    }
    h1 {
        font-size: 2rem;
    }
    header .volume {
        margin-left: 11em !important;
    }
    #splashscreen .slogan {
        font-size: 2em;
    }
}

@media screen and (min-width: 1280px) {

    .slider .slide.images {
        width: 100%;
    }
    .slider .slide.images ul li {
        width: calc(15% - 0.8em);
        margin: 0 1em;
    }
    .slider .slide.images ul li:last-of-type {
        right: -4em;
        top: calc(50% - 1em);
        left: initial;
        bottom: initial;
    }
}
audio, embed {
    position: absolute;
    z-index: -9999;
}

header .volume {
    display: inline-block;
    float: left;
    margin-top: 1em;
    margin-left: 0;
}

header .volume svg {
    width: auto;
    height:1em;
    stroke: #fff;
    fill: #fff;
    /* fill: var(--alt-fg-color); */
    cursor: pointer;
    display: none;
}
header .volume svg.active {
    display: block;
}

#soundcloud {
    position: fixed;
    left: 0;
    bottom: 0;
    overflow: hidden;
    width: 1px;
    height: 1px;
}

#dsgvodisclaimer, #splashscreen {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;

    display: flex;
    background-color: var(--main-bg-color);

    border: none;
    position: fixed;
    padding: 0;
}
#splashscreen {
    z-index: 9999;
}
#dsgvodisclaimer {
    z-index: 99999;
    display:none;
    height: 100%;
    width: 100%;
}
#dsgvodisclaimer.open {
    display: flex;
}
#dsgvodisclaimer > div {
    margin: auto;
    width: 75vw;
    height: 40vh;
    padding: 2rem;
    border: 1px solid var(--color-extra);
    border-radius: 30px;
    color: #ffffff;

}
@media screen and (min-width: 1024px) {
    #dsgvodisclaimer > div {
        width: 40vw;
    }
}
#dsgvodisclaimer > div div {
    text-align: center;
    overflow-y: auto;
    max-height: 100%;
}
#dsgvodisclaimer > div a {
    color: var(--color-extra);
}
#dsgvodisclaimer > div button {
    text-align: center;
    background-color: var(--color-extra);
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    padding: 0.5em 1em;
    cursor: pointer;
    margin-right:2em;
    margin-bottom: 1em;
}
/*
#dsgvodisclaimer > div button:last-of-type {
    text-align: center;
    background-color: var(--alt-fg-color)!important;
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    padding: 0.5em 1em;
    cursor: pointer;
    margin-right: 0;
}

 */
#dsgvodisclaimer > div div:last-of-type {
    margin-top: 3rem;
}
#splashscreen .slogan {
    display: inline-block;
    font-size: 2em;
    text-align: center;
    margin: auto;
    padding: 1em;
    color: var(--alt-fg-color);
    opacity: 0;
    animation-duration: 10s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
}
#splashscreen .slogan button {

    animation-fill-mode: forwards;
    background-color: var(--main-bg-color);
    border: none;

    width: 3em;
    height: 3em;
    margin-top: 4em;
    cursor: pointer;
    display:inline-block;
    animation-duration: 5s;
    animation-delay: 6s;
}

#splashscreen[open] .slogan {
    animation-name: splashscreen-slogan;
}
#splashscreen[open] .slogan button {
    animation-name: splashscreen-button;
}
#splashscreen .slogan.typingdone button {
    display:inline-block;
    animation-name: splashscreen-button;
    animation-duration: 3s;
    animation-delay: 12s;

}

header {
    position: relative;
}

header > a {
    opacity: 0;
    transition: all 1s linear;
    pointer-events: none;
}
header > a.show {
    opacity: 1;
    transition: all 1s linear;
    pointer-events: auto;
}

body.home main header h1 {
    opacity: 0;
    transition-duration: 3s;
    transition-delay: 2s;
    transition-property: opacity;
}
body.home.splashdone main header h1 {
    opacity: 1;
}
body.home main header p {
    opacity: 0;
    transition-duration: 3s;
    transition-delay: 3s;
    transition-property: opacity;
}
body.home.splashdone main header p {
    opacity: 1;
}



@keyframes splashscreen-slogan {
    0% {
        color: var(--alt-fg-color);
        opacity: 0;
    }
    50%   {
        color: var(--alt-fg-color);
        opacity: 1;
    }

    100% {
        color: var(--color-extra);
        opacity: 1;
    }
}
@keyframes splashscreen-button {
    0%   {
        background-color: var(--main-bg-color);
    }
    /*
    50%  {
        background-color: var(--main-bg-color);
    }
    */


    100% {
        background-color: var(--alt-fg-color);
    }
}

@keyframes logoanimation {
    0% {
        opacity: 0;
        height: 30rem;
    }
    /*
    50% {
        opacity: 1;
        height: 15rem;
    }

     */
    100% {
        height: 10rem;
        opacity: 1;
    }
}

body:has(dialog[open]) {
    overflow: hidden !important;
}

dialog.popup {
    border: 3px solid #fff;
    border-radius: 15px;
    width: 80vw;
    height: 80vh;
    max-width: 500px;
    background-color: var(--main-bg-color);
    position: relative;
}

dialog.popup iframe {
    border: 0;
    width: 100%;
    height: 100%;
}
dialog.popup button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    text-align: center;
    border: 1px solid #fff;
    background: #fff;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
}
dialog.popup::backdrop,dialog#spendendialog::backdrop {
    background-color: rgba(0,0,0,0.5);
}

#car {
    width: 1px;
    height: 1px;
    transform: translate3d(115vw, 165px, 0);
    transition: height 250ms linear, transform 2s ease-out;
    transition-delay: 8s;
}
header > a.show + #car {
    width: 250px;
    height: 250px;
    transform: translate3d(calc(50vw - 145px),0px, 0);
}
@media screen and (min-width: 768px) {
    header > a.show + #car {
        width: 300px;
        height: 300px;
        transform: translate3d(calc(100vw - 600px), 50px, 0);
    }
}
@media screen and (min-width: 1200px) {
    header > a.show + #car {
        transform: translate3d(calc(100vw - 600px), 50px, 0);
    }
}
@media screen and (min-width: 1500px) {
    header > a.show + #car {
        transform: translate3d(calc(100vw - 750px), 50px, 0);
    }
}
#car svg {
    width: 100%;
    height:100%;
}
dialog#spendendialog[open] {
    border: 3px solid #fff;
    border-radius: 15px;
    background-color: var(--main-bg-color);
    display: flex;
}

#spendecode {
    width: 500px;
    height: 500px;
    margin: auto;
}
dialog#spendendialog svg {
    width: 100%;
    height:100%;
}

a {
    transition: all 250ms linear;
}
a.disabled {
    color: inherit;
    pointer-events: none;
}
