/* FONTS */
/******************************************/

/* crimson-pro-200 - latin */
@font-face {
    font-family: 'Crimson Pro';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/crimson-pro/crimson-pro-v13-latin-200.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('../fonts/crimson-pro/crimson-pro-v13-latin-200.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/crimson-pro/crimson-pro-v13-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/crimson-pro/crimson-pro-v13-latin-200.woff') format('woff'), /* Modern Browsers */
    url('../fonts/crimson-pro/crimson-pro-v13-latin-200.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/crimson-pro/crimson-pro-v13-latin-200.svg#CrimsonPro') format('svg'); /* Legacy iOS */
}
/* crimson-pro-300 - latin */
@font-face {
    font-family: 'Crimson Pro';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/crimson-pro/crimson-pro-v13-latin-300.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('../fonts/crimson-pro/crimson-pro-v13-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/crimson-pro/crimson-pro-v13-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/crimson-pro/crimson-pro-v13-latin-300.woff') format('woff'), /* Modern Browsers */
    url('../fonts/crimson-pro/crimson-pro-v13-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/crimson-pro/crimson-pro-v13-latin-300.svg#CrimsonPro') format('svg'); /* Legacy iOS */
}

/* open-sans-regular - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans/open-sans-v17-latin-regular.eot'); /* IE9 Compat Modes */
    src: local('Open Sans Regular'), local('OpenSans-Regular'),
    url('../fonts/open-sans/open-sans-v17-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/open-sans/open-sans-v17-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/open-sans/open-sans-v17-latin-regular.woff') format('woff'), /* Modern Browsers */
    url('../fonts/open-sans/open-sans-v17-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/open-sans/open-sans-v17-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* DEFAULT VALUES */
/******************************************/

/* TODO: Alle custom properties entfernen */
:root {
    --gold: #988133;
    --accent: #2d4482;
    --accent-dark: #20305d;

    color: #3c3c3c;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

body {
    background-color: #fff;
    margin: 0;
    padding: 0;
}

*:focus {
    outline-style: solid;
    outline-color: var(--accent);
}
*::selection {
    background-color: var(--accent-dark);
    color: #fff;
}

p {
    margin-bottom: 16px;
}
p + p {
    margin-top: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    border-bottom: 1px solid;
}
a:visited {
    color: var(--accent-dark);
}

h1, h2, h3, h4, h5, h6, .heading {
    color: var(--gold);
    font-family: 'Crimson Pro', sans-serif;
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 0;
    /*text-transform: uppercase;*/
    /*font-variant: small-caps;*/
}

h1 {
    color: var(--accent);
    font-size: 3rem;
    /*text-transform: uppercase;*/
    hyphens: none;
}
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

ul {
    padding: 0;
}
li {
    list-style: none;
    padding-left: 1.2em;
    margin-bottom: .6rem;
    position: relative;
}
li::before {
    content: '\f054';
    color: var(--gold);
    font-family: 'Font Awesome 5 Pro';
    font-size: .8em;
    line-height: 1;
    position: absolute;
    top: .5em;
    left: 0;
}

button, .btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    font-family: 'Crimson Pro';
    font-size: 1.5rem;
    text-transform: uppercase;
    text-align: center;
    display: block;
    width: 100%;
    padding: 8px 20px;
    cursor: pointer;
}
button::before, .btn::before {
    content: '\f101';
    font-family: 'Font Awesome 5 Pro';
    font-size: .7em;
    font-weight: 300;
    padding-right: .3em;
}
button:hover, .btn:hover {
    background: var(--accent-dark);
    border: none;
}
a.btn:visited {
    color: #fff;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    overflow: hidden;
}
.container.text {
    justify-content: flex-start;
    align-items: flex-start;
}

.row {
    display: flex;
    flex-direction: column;
}
.row > * {
    flex: 1;
}

.gold-strip {
    display: block;
    background-image: linear-gradient(-15deg, #756632, #635423);
    color: #fff;
    padding: 8px 0;
}
.gold-strip p, .gold-strip span, .gold-strip a,
.gold-strip h1, .gold-strip h2, .gold-strip h3,
.gold-strip h4, .gold-strip h5, .gold-strip h6 {
    color: #fff;
    margin: auto;
}
.gold-strip h2 {
    text-transform: uppercase;
}

/* DEFAULT STYLES (SMALL) */
/******************************************/

/* Header */

/* offset the fixed header */
#header-offsetter {
    padding-top: 100px;
}

#header {
    background-color: #fff;
    width: 100%;
    height: 100px;
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
    position: fixed;
    z-index: 99;
    box-shadow: 0 0 10px 0 rgba(0,0,0,.12);
}
#header-container {
    flex-direction: row;
    height: 100%;
}

#logo {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 100%;
    width: 100%;
}
#logo img {
    max-height: 100%;
    max-width: 100%;
}
#logo:hover {
    opacity: .6;
}

#contact-links {
    flex: 2;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.contact-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
}
.contact-link .icon {
    color: var(--gold);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 8px;
}
.contact-link .text {
    font-size: 24px;
    line-height: 1;
    display: inline;
}
.contact-link .subtext {
    color: #3c3c3c;
    font-size: .75em;
    display: block;
    white-space: nowrap;
}

a.contact-link:hover { border: none; }
a.contact-link:hover .icon { color: var(--accent); }
a.contact-link:hover .text {
    color: var(--accent);
    border-bottom: 1px solid;
}

/* Banner */

#banner {
    background-color: #f4f4f5;
    background-image: url(images/website/linie-banner.svg);
    background-size: 1024px;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 443px;
}
#banner-container {
    flex-direction: column-reverse;
    justify-content: center;
    height: 100%;
}

#banner .image {
    height: 343px;
    width: auto;
    margin-top: -36px;
}

#banner .text {
    font-weight: 300;
    padding: 32px 0;
    text-align: center;
}
#banner .title { margin: 0; }
#banner .small { font-size: 2rem; }
#banner .large { font-size: 2.5rem; }

.box {
    background-color: var(--accent);
    color: #fff;
    padding: 16px;
}
.box i {
    font-size: .8em;
    margin-right: .3em;
}
.box a {
    border: 1px solid #fff;
    color: #fff;
    display: inline-block;
    padding: 4px 16px;
    margin-top: 6px;
}
.box a:hover {
    background-color: rgba(255, 255, 255, .1);
}

/* Content */

#main-container {
    flex-direction: column;
    padding: 0;
}

#text-container {
    display: block;
}

/* Contact */

.subtle-text {
    font-size: .75rem;
    margin: 0;
}

#contact-form-container {
    max-width: 768px;
}
#contact-form {
    width: 100%;
    padding: 1.5rem 0;
}
#contact-form > * + * {
    margin-top: 1rem;
}

label {
    cursor: pointer;
}

input, textarea, .custom-checkbox {
    border: 1px solid #6c5c28;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    padding: 6px 14px;
    box-sizing: border-box;
}
textarea {
    resize: vertical;
}

.confirmation-message {
    color: var(--accent);
    font-size: 1.2rem;
    text-align: center;
}

#street {
    display: none;
}

.checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
}
input[type=checkbox] {
    width: 20px;
    height: 20px;
    margin: 0;
    position: absolute;
}
input[type=checkbox] + .custom-checkbox {
    background-color: #fff;
    display: flex;
    width: 20px;
    min-width: 20px;
    height: 20px;
    padding: 0;
    margin-right: .5em;
    position: relative;
}
input[type=checkbox] + .custom-checkbox::before {
    content: '\f00c';
    color: var(--accent);
    font-family: 'Font Awesome 5 Pro';
    font-size: 1rem;
    line-height: 1;
    display: block;
    margin: auto;
    position: relative;
    visibility: hidden;
}
input[type=checkbox]:checked + .custom-checkbox::before {
    visibility: visible;
}

/* Vertrieb */

#consultant {
    padding: 0 16px 16px;
}
#consultant img  {
    display: block;
}

/* Footer */

#footer {
    padding: 24px 0;
    text-align: center;
}
#footer-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 24px;
}
#footer-menu li {
    margin: 0 8px;
    padding: 0;
}
#footer-menu li::before {
    display: none;
}

/* SMALL ONLY */
/******************************************/

@media only screen and (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
        hyphens: manual;
    }
    h2 { font-size: 2.25rem; }
    button { font-size: 1.2rem; }
    .gold-strip h2 { font-size: 1.8rem; }
    #banner .small { font-size: 1.5rem; }
    #banner .large { font-size: 2rem; }
}

/* MEDIUM */
/******************************************/

@media only screen and (min-width: 640px) {
    :root {
        font-size: 16px;
    }

    #banner {
        min-height: 512px;
    }
    #banner .image {
        align-self: flex-start;
    }
}

/* LARGE */
/******************************************/

@media only screen and (min-width: 1250px) {
    .row {
        flex-direction: row;
    }

    #logo {
        justify-content: flex-start;
    }
    #contact-links {
        display: flex;
    }

    #banner {
        background-size: 105%;
        min-height: 640px;
    }
    #banner-container {
        flex-direction: row;
    }
    #banner .image {
        align-self: auto;
        height: 100%;
        margin-top: 0;
    }

    #contact {
        position: relative;
    }
    #consultant {
        position: absolute;
        right: 0;
        bottom: 0;
    }
}