@charset "UTF-8";

/* variables */

:root {
    --lightgrey: rgb(241, 241, 241);
    --grey: rgb(218, 218, 218);
    --darkgrey: rgb(51, 51, 51);
    --blue: rgb(49, 49, 146);
    --bluehover: rgb(9,72,144);
    --whitetransparent: rgba(255,255,255,0.75);
    --whitehover: rgba(255,255,255,0.85);
    --maxwidthwide: 1600px;
    --maxwidth: 1050px;
    --maxwidthnarrow: 880px;
    --boxborderradius: 0.25rem
}

/* structure */

body {
    background-color: white!important;
}
div#container {
    box-shadow: 0 0 24px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto
}
header {
    position: relative
}
header #upperheader {
    display: flex;
    justify-content: space-between;
    padding: 1em 2em 1em;
    border-top: solid 12px var(--blue);
}
header #upperheader #brandlogos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: right;
    align-items: center;
}
header #upperheader #brandlogos .brandlogo {
    margin-left: 1em;
    height: 60px;
}
header img#logo {
    width: 40%;
}
header #lowerheader {
    position: relative;
    overflow: hidden;
}
header #lowerheader img#header,
header #lowerheader img#header-2,
header #lowerheader img#header-3 {
    width: 100%;
}
header #lowerheader img#header-2,
header #lowerheader img#header-3 {
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
}
#intro h1.title {
    color: var(--blue);
    font-size: 1.65em;
    font-weight: 700;
    margin-bottom: 1em;
}
#teaser {
    position: absolute;
    top: 82%;
    right: 6%;
    width: 22%;
}
section#intro {
    background-color: white;
    color: black;
    padding: 2.5em 0
}
section#intro > *,
#headercontent,
footer > div,
.marginbox {
    box-sizing: border-box;
    width: 76.5%;
    max-width: 810px;
    margin-right: auto;
    margin-left: auto;
}
section > p,
div#main > p {
    margin-bottom: 0.5em
}
section#intro > h3 {
    margin-bottom: 1em;
}
div#main {
    background-color: white;
    color: black;
    padding-bottom: 2em
}
div#antwort {
    background-color: var(--blue);
    color: white;
    margin: 0;
    padding-bottom: 1em;
}
div#price {
    margin-bottom: 1em;
}
div#kontakt {
    padding-top: 2.5em;
    position: relative
}
div.winprint {
    display: none;
}
div.flex-elements {
    display: flex
}
div.flex-elements.column {
    flex-direction: column;
    margin-left: -4px;
}
#price div.flex-elements {
    justify-content: space-between;
}
div.flex-elements.small {
    display: flex!important;
}
div.flex-elements > div {
    flex-basis: 50%;
}
div.flex-elements > div > * {
    width: 90%;
}
div.flex-elements.small > div {
    flex-basis: 25%;
}
div.flex-elements.small > div label {
    color: var(--blue);
    font-size: 1em;
    line-height: 1.5;
}
div.w150 {
    width: 150px
}
div#formfields div.error {
    position: absolute;
    margin-top: -3em;
    color: red;
    margin-left: 8em;
    font-size: 0.85em;
}
div#formfields div#datenschutz-error.error {
    margin-top: 0;
    margin-left: 2.6em;
}
div#formfields div#title-error.error {
    margin-top: -1.6em;
}
div#antwort div.error {
    position: relative;
    margin-top: 0;
    color: red;
    margin-left: 0;
    font-size: 0.85em;
}
footer {
    background-color: var(--lightgrey);
    padding: 1em 0!important;
}
footer > div {
    display: flex;
    justify-content: space-between
}
footer > div > div {
    flex-basis: 40%;
}
footer > div > div.footerlogo {
    flex-basis: 30%;
    padding-top: 0.75em;
    text-align: center;
}
footer > div:first-child > div.footerlogo {
    padding-top: 2em;
}
.footerlogo img {
    margin-bottom: 1em;
    max-height: 60px;
    max-width: 236px;
    width: auto
}
.footerlogo img.footerlogo.opel {
    max-height: 80px;
}
#note {
    margin-top: 1em
}
#result {
    background-color: var(--blue);
    color: white;
    padding: 1em 0 2em;
}
/*
#result-content {
    display: flex;
    justify-content: space-between
}
#result-content > * {
    flex-basis: 48%
}
*/
#result-content div img {
    margin-bottom: 1em;
    width: 100%
}
#result-content p {
    vertical-align: top
}

/* fonts */

* {
    font-family: 'Ubuntu', Tahoma, Geneva, Verdana, sans-serif;
}
strong {
    font-weight: 700;
}
h1 {
    font-size: 2.5em;
    line-height: 1em;
    margin-top: 0;
    margin-bottom: 0.5em;
}
h3 {
    font-size: 1.125em;
}
footer h3 {
    margin: 0.5em 0 0;
    line-height: 1.5em
}
p,
ol {
    line-height: 1.4em;
    margin-bottom: 1em
}
#result.content p,
p.bigger {
    font-size: 1.25em
}
p.small {
    font-size: 0.875rem;
    line-height: 1.4em;
    margin: 2em 0;
}
.smaller {
    font-size: 0.75rem
}
.italic {
    font-style: italic
}
#intro a, #intro a:visited, #intro a:active {
    color: var(--blue);
    border-bottom: solid 2px transparent;
    transition: border-bottom-color 0.5s;
}
#intro a:hover {
    color: var(--bluehover);
    border-bottom: solid 2px var(--bluehover);
}
footer a, footer a:visited, footer a:active {
    color: var(--blue);
    border-bottom: solid 2px transparent;
    transition: border-bottom-color 0.5s;
}
footer a:hover {
    color: lightblue;
    border-bottom: solid 2px lightblue;
}

/* tables */

td {
    padding-right: 1em
}
footer table {
    font-size: 0.9em
}
footer td {
    line-height: 1.6em
}

/* forms */


#buttons {
    margin-top: 2em
}
div.fieldset.clearfix input,
div.fieldset.clearfix + input {
    margin-top: 0
}
input#kontrolle {
    display: none
}
input[type='text'],
input[type='email'] {
    border: solid 1px var(--blue);
    border-radius: 0.25em;
    display: block;
    width: 100%;
    color: var(--blue);
    margin: 0.75em 0;
    padding: 0.4em 0.6em 0.6em
}
input[type='submit'],
a.button,
button#print {
    background-color: var(--blue);
    border: none;
    border-radius: 0.25em;
    color: white;
    font-weight: 700;
    margin: 0 0 3em;
    padding: 0.4em 1.2em 0.6em;
    transition: box-shadow 0.15s, background-color 0.25s
}
input[type='submit'].white {
    background-color: white;
    color: var(--blue);
}
button#print {
    background-color: white;
    color: var(--blue);
}
button#print:hover {
    background-color: lightgrey;
}
select {
    border: solid 1px;
    border-radius: 0.25em;
    padding: 0.35em 0.5em;
    width: 100%
}
#buttons input[type='submit'] {
    padding-top: 0.3em;
    padding-bottom: 0.4em
}
input[type='submit']:hover,
#bearbeiten:hover,
a.button:hover {
    background-color: var(--bluehover);
    box-shadow: 0 9px 6px -6px rgb(0, 0, 0, 0.5);
}
input[type='submit'].white:hover {
    background-color: rgba(232,255,232,1);
    color: black;
    box-shadow: 0 9px 3px -6px rgb(0, 0, 0, 0.5);
}
input[type='checkbox'] {
    margin-right: 1.25em;
    appearance: none
}
td input[type='text'],
td input[type='email'] {
    background-color: transparent;
    display: inline-block;
    margin: 0;
    padding: 0.25em 0.6em
}
::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: var(--blue);
    font-size: 0.8571428571428571em;
    opacity: 1
}
::-moz-placeholder {
    /* Firefox 19+ */
    color: var(--blue);
    font-size: 0.8571428571428571em;
    opacity: 1
}
:-ms-input-placeholder {
    /* IE 10+ */
    color: var(--blue);
    font-size: 0.8571428571428571em;
    opacity: 1
}
:-moz-placeholder {
    /* Firefox 18- */
    color: var(--blue);
    font-size: 0.8571428571428571em;
    opacity: 1
}
#antwort div label.css-radio-label:first-of-type {
    margin-bottom: 0.75em
}
input[type=checkbox] {
    visibility: hidden;
    width: 0;
}
input[type=checkbox].css-checkbox + label.css-label {
    padding-left: 2.25em;
    /* height: 20px; */
    display: block;
    line-height: 1.4;
    background-repeat: no-repeat;
    background-position: 0 3px;
    background-image: url(../images/buttons/checkbox.png);
    background-size: 24px;
    vertical-align: middle;
    cursor: pointer;
}
input[type=checkbox].css-checkbox + label.css-label.small {
    padding-left: 3.125em;
}
input[type=checkbox].css-checkbox:checked + label.css-label {
    background-position: 0 -117px
}
label.css-label {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input[type=radio] {
    /* display: none */
    visibility: hidden;
    border: none;
    border-width: 0!important;
    float: left;
    height: 0!important;
    width: 0!important;
}
input[type=radio] + label.css-radio-label {
    background-image: url(../images/buttons/radio.png);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    line-height: 1.1;
    padding-left: 2.5em;
    display: inline-block;
    height: 28px;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 32px;
    vertical-align: middle;
    cursor: pointer;
    padding-top: 4px;
}
input[type=radio]:checked + label.css-radio-label {
    background-position: 0 -32px
}
#kontakt label a {
    color: var(--blue);
    text-decoration: underline;
}
#submit {
    padding-top: 2em;
}

/* overlay */

.overlay {
    opacity: 0;
    transition: opacity 0.5s;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    z-index: 99;
}
.overlay.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 1s;
}
.ol-background {
    background-color: rgba(0,0,0,0.8);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: -1;
}
.ol-modal {
    background-color: white;
    height: 90%;
    margin: 2em auto;
    max-width: var(--maxwidthnarrow);
    overflow-y: scroll;
    padding: 1em 5%;
}
.ol-modal .ol-content li {
    margin-bottom: 0.5em;
}

/* The animation code */

@keyframes slider {
    0% {
        margin-left: 0
    }
    20% {
        margin-left: -100%
    }
    50% {
        margin-left: -100%
    }
    70% {
        margin-left: 0
    }
    100% {
        margin-left: 0
    }
}

@keyframes fader {
    0% {
        opacity: 0
    }
    23% {
        opacity: 0
    }
    33% {
        opacity: 1
    }
    67% {
        opacity: 1
    }
    77% {
        opacity: 0
    }
}

@keyframes fader-2 {
    0% {
        opacity: 0
    }
    57% {
        opacity: 0
    }
    67% {
        opacity: 1
    }
    90% {
        opacity: 1
    }
    100% {
        opacity: 0
    }
}

/* The element to apply the animation to */

header #lowerheader img#header-2 {
    animation-name: fader;
    animation-delay: 0;
    animation-duration: 14s;
    animation-direction: forward;
    animation-iteration-count: infinite;
}
header #lowerheader img#header-3 {
    animation-name: fader-2;
    animation-delay: 0;
    animation-duration: 14s;
    animation-direction: forward;
    animation-iteration-count: infinite;
}