body {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #515151;
    margin: 0; 
    padding: 0;
}

header {
    background-image: url(pictures/header-bg.jpg);
    width: 100%;
    height: auto;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 40px;
    text-align: center;
    color: #fff;
}


footer {
    background-image: url(pictures/header-bg.jpg);
    width: 100%;
    height: auto;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px 0;
    text-align: center;
    color: #fff;
}

footer a {
    color: #fff;
}


#logo {
    max-width: 250px;
    padding: 40px 40px 0; 
}

/*#intro {
    color: #003366;
    text-align: center;
}*/

h1#intro {
    text-align: center;
    color: #003366;
    margin: 20px auto;
}

h1 {
    font-size: 36px;
    font-weight: 400;
}

h2 {
    font-size: 32px;
    text-align: left;
    width: 60%;
    margin: auto;
    padding-bottom: 20px;
    font-weight: 500 !important;
}

#impressum h2,
#impressum h3,
#impressum h4,
#datenschutz h2,
#datenschutz h3,
#datenschutz h4 {
    width: 100%;
}

#impressum div,
#datenschutz div {
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 5px;
    padding-bottom: 10px;
    color: #003366;
    text-align: left;
    width: 60%;
    margin: auto;
}

h4 {
    font-size: 18px;
    font-weight: 400;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #003366;
    text-align: left;
    width: 60%;
    margin: auto;
    padding: 20px 0 10px;
}

p {
    margin: 0;
}


a {
    color: #515151;
}

hr {
    border: none;
    height: 1px;
    width: 60%;
    background-color: #aaa;
    margin-top: 40px;
}

.bold {
    font-weight: 600;
}

.button {
    padding: 10px 15px; 
    color: #003366;
    text-decoration: none;
    background-color: #fff; 
    border: 1px solid #fff;
    border-radius: 3px;
    margin: 20px 0;
}

.button.blue {
    color: #fff;
    border-color: #003366;
    background-color: #003366;
}

.button.ghost-blue {
    color: #003366;
    border-color: #003366;
    background-color: #fff;
}

.button.ghost-grey {
    color: #aaa;
    border-color: #aaa;
    background-color: #fff;
}

.button.small {
    padding: 3px 10px;
    display: inline;
}

.button.small a {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}


.button:hover {
    background-color: rgba(255,255,255,0);
    border-color: #fff;
    color: #fff;
}

.button.small a:hover {
    color: #003366;
}

.button.blue:hover {
    color: #003366;
    background-color: #fff;
    border-color: #003366;
}

.ghost-blue:hover {
    color: #fff !important;
    background-color: #003366 !important;
    border-color: #003366 !important;
}

.ghost-grey:hover {
    color: #fff !important;
    background-color: #aaa !important;
    border-color: #aaa !important;
}

.inline-flex {
    display: inline-flex; 
    padding: 0px 10px 15px 10px;
    width: 60%;
    position: relative;
    min-height: 32px;
}

.inline-flex.full-width {
    width: calc(100% - 10px);
}

.inline {
    display: inline !important;
}

.inline-block {
    display: inline-block;
    margin: 0 auto 10px;
}

.inline-block-no-width {
    display: inline-block;
    padding-right: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.inline-block-padding {
    display: inline-block;
    padding-right: 20px;
    text-align: left;
}

.white-space {
    border: none;
    height: 0px;
    width: 80%;
    background: none;
}

.vr {
    width: 60%;
    border-left: 1px solid #aaa;
    margin: auto;
}

.indent {
    width: 40px;
    display: inline-block;
}

.indent-drink {
    width: 100% !important;
    padding: 5px 0;
    text-align: left;
}

.indent-year {
    width: 20px;
    display: inline-block;
}

.border-left {
    border-left: 1px solid #aaa;
}

.infotext {
    color: #999 !important;
    font-size: 14px;
    text-align: left;
}

ul {
    margin-bottom: 0;
}

li.checkmark {
    list-style-type: none;
    padding-left: 30px;
    background-image:url('/pictures/checkmark.svg');
    background-repeat:no-repeat;
    background-position:left 7px;
    background-size: 17px;
    line-height: 30px;
} 

.auto-height {
    height: auto;
}

.vorschaubild {
    max-width: 100%;
    max-height: 500px;
    margin-top: 20px;
    
}


/*Form Settings*/
form {
    background-color: #eee;
}

fieldset {
    border: none; 
    padding: 20px;
    text-align: center;
    margin: 0;
}

.uneven {
    background-color: #fff;
}

legend {
    font-size: 14px; 
    font-weight: 300; 
    top: 20px;
    padding: 5px 10px;
    border-radius: 3px;
    color: #fff;
    background-color: #1f98c3;
    text-align: center;
    position: relative;
    display: none;
}

.legend {
    font-size: 14px; 
    font-weight: 300; 
    top: 20px;
    padding: 5px 10px;
    border-radius: 3px;
    color: #fff;
    background-color: #1f98c3;
}

.wrapper-left {
    position: relative;
    width: 60%;
    margin: 0 auto 20px;
    text-align: left;
}

.no-margin {
    margin: 0 auto!important;
}

textarea {
    min-width: calc(100% - 6px); 
    min-height: 250px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 300;
    border: 1px solid #ddd;
    -webkit-appearance: none;
    border-radius: 0;
    margin-top: 10px;
}

textarea.small {
    min-height: 32px;
}


input[type=text],
input[type=number],
input[type=tel],
input[type=email],
input[type=date] {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 300;
    height: 32px;
    width: calc(100% - 10px);
    margin-bottom: 5px;
    padding-left: 10px;
    border: 1px solid #ddd;
    -webkit-appearance: none;
    border-radius: 0;
}

.input-inline-block {
    width: 100%/* !important*/;
}

input[type=submit] {
    padding: 10px 15px;
    background-color: #1f98c3;
    border: 1px solid #1f98c3;
}

input[type=button] {
    padding: 5px 20px;
    border: 1px solid #aaa;
    background-color: #aaa;
}

input[type=submit], 
input[type=button] {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    color: white;
    font-size: 16px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
    -webkit-appearance: none;
}

input[type=submit]:hover, 
input[type=button]:hover {
    background-color: #fff;
    color: #aaa;
}

input[type=submit]:hover {
    color: #1f98c3;
}


label {
    display: block; 
    padding-bottom: 5px;
}

.form-picture {
    max-width: 100%;
    cursor: pointer;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button,
input[type=date]::-webkit-inner-spin-button,
input[type=date]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
   -moz-appearance: textfield;
}

input[type="checkbox" i] {
    margin-right: 10px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border:none;
    border-radius: 0;
    font-size: 1em;
    width: 100%;
    margin-bottom: 10px;
} 

select {
    width:100%;
    height: 38px;
    border: 1px solid #ddd;
    padding-left: 10px;
    background-color:white;
    background-image:url(pictures/select-arrow.png);
    background-position: right;
    background-repeat: no-repeat;
    font-family: 'Rubik', sans-serif;
}

select:hover {
  box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
}


.label {
    width: 38%;
    padding-right: 2%;
    text-align: left;
    margin: auto;
}

.input {
    width: calc(100% + 10px);
}

.checkbox {
    display: inline-flex;
    margin: 0 auto 10px;
    text-align: left;
    padding-right: 20px;
}


/*Tooltip*/
.tooltip {
    display: inline-block; 
    background-color: #aaa; 
    color: #fff; 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    text-align: center; 
    font-size: 14px; 
    font-weight: 300; 
    vertical-align: middle;
    margin-top: 15px;
    right: -35px;
    top: -8px;
    cursor: pointer;
    position: absolute;
}

.tooltip-info {
    vertical-align: middle;
    margin-top: 1.5px;
}

.tooltip-head { 
    display: inline-block; 
    background-color: #aaa; 
    color: #fff; 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    text-align: center; 
    font-size: 14px; 
    font-weight: 300; 
    vertical-align: middle;
    cursor: pointer;
    position: absolute;
    margin: 2px 0 0 10px;
}

.tooltip.tooltip-indent {
    right: -45px;
}


.tooltip .tooltiptext,
.tooltip-head .tooltiptext-head {
    visibility: hidden; 
    background-color: #555; 
    color: #fff; 
    text-align: center; 
    padding: 10px 15px; 
    border-radius: 3px; 
    position: absolute; 
    z-index: 1;     
    opacity: 0; 
    transition: opacity 1s;
    width: 200px;    
}

.tooltip .tooltiptext {
    top: 30px;
    left: -800%;
}

.tooltip-head .tooltiptext-head {
    top: 0;
    left: 200%;
}


.tooltip:hover .tooltiptext,
.tooltip.show .tooltiptext,
.tooltip-head:hover .tooltiptext-head {
    visibility: visible; 
    opacity: 1;
}

.tooltip.hide .tooltiptext {
    visibility: hidden;
    opacity: 0;
}

.tooltip-wrapper {
    display: inline;
    width: 100%;
    left: 0.9%;
    position: relative;
}

.tooltip-look {
    background-color: #aaa; 
    color: #fff; 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    text-align: center; 
    font-size: 14px; 
    font-weight: 300; 
    vertical-align: middle;
    display: inline-block;
}

.anker {
    text-decoration: none; 
    color: #000;
}


/*Akkordeon Container*/
#accordion {
    position: relative;
    width: 60%;
    margin: 20px auto;
    text-align: left;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
}

#accordion .ui-accordion-header {
    width: calc(100% - 20px);
    font-size: 18px;
    padding: 10px;
    
}

#accordion .ui-accordion-content {
    width: calc(100% - 60px);
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    padding: 30px;
}

#accordion .ui-state-default {
    border: 1px solid #003366;
    border-radius: 3px;
    background-color: #fff;
    color: #003366;
}

#accordion .ui-state-active {
    border: 1px solid #003366;
    border-radius: 3px;
    background-color: #003366;
    color: #fff;
}

#accordion .ui-icon {
    padding-right: 5px;
}

#accordion .ui-accordion-content {
    border: 1px solid #003366;
}

.text-right {
    text-align: right;
}



/*Media Queries*/

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .inline-flex {width: 90%;}
    legend {margin-bottom: 20px;}
    h2, h3, h4 {width: 90%;}
    .wrapper-left {width: 90%;}
    .form-picture {max-width: 145px;}
    .tooltip-wrapper {width: 100%; left: 1.3%; display: inline-block;}
    hr {padding-bottom: 10px; margin-top: 0;}
    /*.tooltip {right: -5%;}*/
    .tooltip .tooltiptext {top: 0px; left: -250px;}
    .tooltip-head {margin-top: 2px;}
    .tooltip-head .tooltiptext-head {top: 0; left: 200%;}
    .indent {width: 20px;}
    .vr {width: 90%;}
    #accordion {width: 90%;}
}


@media only screen and (max-width: 767px) {
    .inline-flex {display: block; width: 100%; padding: 10px 0; margin-bottom: 20px;}
    .label {text-align: center; padding-right: 0; width: 100%;}
    .input {width: calc(80% + 10px); margin: auto;}
    select {padding-left: 45px; background-position: 3%;}
    fieldset {padding: 40px 0; margin: 0;}
    hr {width: 80%;}
    legend {margin-bottom: 40px;}
    #intro {padding: 0 20px 40px;}
    #logo {padding: 20px 10px;}
    h1 {font-size: 24px;}
    h2, h3, h4 {text-align: center; width: 100%;}
    .wrapper-left {width: calc(80% + 10px); text-align: center;}
    .tooltip {top: -48px; right: -35%; position: relative;}
    .tooltip .tooltiptext {left: -900%; top: 30px;}
    .tooltip-wrapper {left: 0}
    .tooltip-head .tooltiptext-head {top: 30px; left: -900%;}
    .tooltip.tooltip-indent {right: -35%;}
    .form-picture {max-width: 200px;}
    .indent, .indent-less {display: none;}
    .indent-drink {text-align: center;}
    .vr {width: calc(80% + 10px);}
    #errorBox, #successBox {width: 80% !important;}
    #accordion {width: 90%;}
    #accordion .ui-accordion-content {width: calc(100% - 40px); padding: 20px;}
    .text-right {text-align: center;}
    #tooltip-select {top: -54px;}
    .infotext {text-align: center;}
}



/*Allgemeine Klassen*/
.error {
    border: 1px solid red !important;
}

#errorBox {
    border: 1px solid red;
    border-radius: 3px;
    padding: 30px 20px;
    text-align: center;
    width: 60%;
    margin: 25px auto;
}

#successBox {
    border: 1px solid green;
    border-radius: 3px;
    padding: 30px 20px;
    text-align: center;
    width: 60%;
    margin: 25px auto;
}

.required-text {
    color: #cc1111;
}

.clone-person {
    margin-top: 20px;
}

.no-padding {
    padding: 0;
}


.social {
    display: inline-table;
    position: relative;
    vertical-align: top;
    margin-right: 10px;
    margin-bottom: 10px;
}

#privatAngaben > .privatContainer hr {display: none;}
#privatAngaben > .privatContainer ~ .privatContainer hr {display: block;}
#privatAngaben > .privatContainer hr.white-space {display: block;}