/* General */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    box-sizing: border-box;
}

html {
    overscroll-behavior: none;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Hind", sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5;
    color: #3c3c3c;
    text-align: left;
    background-color: #f5f5f5;
}

article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

/* SCROLL LOCK */
.no-scroll {
    overflow: hidden;
}

main {
    background-color: #f5f5f5;
    padding-top: 120px;
}

section {
    display: block;
    padding-top: 60px;
}

/* Überschriften */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 30px;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    letter-spacing: -0.5px;
    line-height: 48px;
    text-transform: uppercase;
}

.h1,
h1 {
    font-size: 2.5rem;
}

.h2,
h2 {
    font-size: 2rem;
}

h2 {
    letter-spacing: -0.13px;
    line-height: 36px;
}

.h3,
h3 {
    font-size: 1.5rem;
}

h3 {
    letter-spacing: -0.19px;
    line-height: 30px;
}

.h4,
h4 {
    font-size: 1.25rem;
}

.h4,
h4 {
    color: #929395;
    letter-spacing: 0.78px;
    line-height: 26px;
}

.h4 i,
h4 i {
    position: relative;
    top: 4px;
    color: #3c3c3c;
    font-size: 2.5rem;
}

.h5,
h5 {
    font-size: 1.40625rem;
}

.h6,
h6 {
    font-size: 1.125rem;
}

@media (max-width: 767.98px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 991.98px) {

    .h4 i,
    h4 i {
        font-size: 32px;
    }
}

.h4 i.icon-industriebau,
h4 i.icon-industriebau {
    top: -2px;
}

section.list ul li .h4 {
    margin-bottom: 0;
    margin-left: 15px;
}

.display-1 {
    letter-spacing: 1.27px;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    line-height: 58px;
}

.display-1,
.display-2 {
    font-weight: 300;
    line-height: 1.2;
}

section.img .info.white .display-1,
section.img .info.white h4 {
    color: #fff;
}

@media (max-width: 767.98px) {
    .display-1 {
        margin-bottom: 20px;
    }
}

@media (max-width: 991.98px) {
    .display-1 {
        font-size: 23px;
        letter-spacing: 0.52px;
        line-height: 32px;
    }
}

/* Absätze <p> */
p {
    letter-spacing: 0.22px;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 1rem;
}

h2,
h3,
p {
    orphans: 3;
    widows: 3;
}

a,
p {
    line-height: 28px;
}

.first-letter {
    padding-top: 0;
    position: relative;
}

.first-letter:first-letter {
    display: block;
    margin-top: 2px;
    font-size: 56px;
    color: #929395;
    font-weight: 400;
    float: left;
    padding: 15px 5px 0 0;
}

@-moz-document url-prefix() {
    .first-letter:first-letter {
        padding: 7px 5px 0 0;
    }
}

/* Horizontale Linien <hr> */

hr {
    border: 0;
    box-sizing: content-box;
    overflow: visible;
    width: 65px;
    height: 2px;
    margin: 0 0 30px;
    opacity: 1.0;
}

hr.yellow {
    background-color: #e9df02;
    border: none;
    width: 72px;
}

hr.black {
    background-color: #3c3c3c;
}

/* Links */

a {
    color: #8e8e93;
    -webkit-transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    text-transform: uppercase;
    text-decoration: none !important;
    font-size: 18px;
    letter-spacing: 2px;
}

a.slash::before {
    content: "// ";
    color: #e9df02;
    -webkit-transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    letter-spacing: -2px;
    margin-right: 8px;
}

/* Button */

.btn {
    display: inline-block;
    font-weight: 600;
    color: #3c3c3c;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #e9df02;
    border-radius: 8px;
    padding: 0.4rem 3rem 0.4rem 2rem;
    letter-spacing: 2px;
    line-height: 38px;
    font-size: 18px;
    min-width: 350px;
    text-transform: uppercase;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-bottom: 24px;
}

.btn:hover {
    background-color: #3c3c3c;
    color: white;
}

/* Formulare */

section.contact form {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

section.contact form .hidden {
    display: none;
}

section.contact form .error {
    color: #dc3545;
}

section.contact form .success {
    color: #28a745;
}

section.contact form button {
    min-width: 300px;
}

section.contact form .group {
    position: relative;
    margin-bottom: 30px;
}

section.contact form textarea {
    background-color: #fff;
    width: 100%;
    caret-color: #3c3c3c;
    color: #3c3c3c;
    border: none;
    border-bottom: 1px solid #fff;
    border-radius: 0;
    padding: 5px;
    min-height: 208px;
}

section.contact form input:-webkit-autofill,
section.contact form input:-webkit-autofill:focus,
section.contact form input:-webkit-autofill:hover {
    -webkit-text-fill-color: #3c3c3c;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-transition: background-color 5000s ease-in-out 0s;
    transition: background-color 5000s ease-in-out 0s;
    outline: none;
    /* TODO: Hier weiter machen und Fokus-Rand entfernen bei allen Inputs im Formular */
}

section.contact form input.btn-primary {
    border: 0;
    width: 250px;
    margin-top: 35px;
}

@media (max-width: 767.98px) {
    section.contact form input.btn-primary {
        width: 100%;
    }
}

section.contact form input[type="email"],
section.contact form input[type="number"],
section.contact form input[type="password"],
section.contact form input[type="tel"],
section.contact form input[type="text"],
section.contact form input[type="url"] {
    font-size: 18px;
    font-weight: 300;
    padding: 10px;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #fff;
    background-color: #fff;
    caret-color: #3c3c3c;
    color: #3c3c3c;
    border-radius: 0;
}

section.contact form input:focus,
section.contact form textarea:focus {
    outline: none;
}

section.contact form label {
    color: #8e8e93;
    font-size: 18px;
    font-weight: 300;
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 10px;
    transition: all 0.2s ease;
    -moz-transition: 0.2s ease all;
    -webkit-transition: all 0.2s ease;
}

.form-check {
    padding-left: 0;
    margin-bottom: 30px;
}

.form-check label {
    top: 0 !important;
    left: 0 !important;
    position: relative !important;
    pointer-events: all !important;
    color: #3c3c3c !important;
    font-weight: 500 !important;
}

section.contact form input[type="file"] {
    margin-bottom: 30px;
}

section.contact form input[type="email"].not-empty~label,
section.contact form input[type="email"]:focus~label,
section.contact form input[type="number"].not-empty~label,
section.contact form input[type="number"]:focus~label,
section.contact form input[type="password"].not-empty~label,
section.contact form input[type="password"]:focus~label,
section.contact form input[type="tel"].not-empty~label,
section.contact form input[type="tel"]:focus~label,
section.contact form input[type="text"].not-empty~label,
section.contact form input[type="text"]:focus~label,
section.contact form input[type="url"].not-empty~label,
section.contact form input[type="url"]:focus~label {
    top: -20px;
    left: 0;
    font-size: 14px;
    font-weight: 400;
    color: #8e8e93;
}

section.contact form input[type="email"].not-empty:invalid~label,
section.contact form input[type="email"]:focus:invalid~label,
section.contact form input[type="number"].not-empty:invalid~label,
section.contact form input[type="number"]:focus:invalid~label,
section.contact form input[type="password"].not-empty:invalid~label,
section.contact form input[type="password"]:focus:invalid~label,
section.contact form input[type="tel"].not-empty:invalid~label,
section.contact form input[type="tel"]:focus:invalid~label,
section.contact form input[type="text"].not-empty:invalid~label,
section.contact form input[type="text"]:focus:invalid~label,
section.contact form input[type="url"].not-empty:invalid~label,
section.contact form input[type="url"]:focus:invalid~label {
    color: #dc3545 !important;
}

section.contact form textarea.not-empty~label,
section.contact form textarea:focus~label {
    top: -20px;
    left: 0;
    font-size: 14px;
    color: #8e8e93;
}

section.contact form .textarea .hidden-left {
    width: 40px;
}

section.contact form .textarea .hidden-right {
    height: 40px;
}

section.contact form .bar {
    position: relative;
    display: block;
    width: 100%;
}

section.contact form .bar:after,
section.contact form .bar:before {
    content: "";
    height: 2px;
    width: 0;
    bottom: 0;
    position: absolute;
    background: #e9df02;
    transition: all 0.2s ease;
    -moz-transition: 0.2s ease all;
    -webkit-transition: all 0.2s ease;
}

section.contact form .bar:before {
    left: 50%;
}

section.contact form .bar:after {
    right: 50%;
}

section.contact form .textarea .bar:after,
section.contact form .textarea .bar:before {
    bottom: 8px;
}

@-moz-document url-prefix() {

    section.contact form .textarea .bar:after,
    section.contact form .textarea .bar:before {
        bottom: 0;
    }
}

@media screen and (-ms-high-contrast: active),
screen and (-ms-high-contrast: none) {

    section.contact form .textarea .bar:after,
    section.contact form .textarea .bar:before {
        bottom: 0;
    }
}

@supports (-ms-ime-align: auto) {

    section.contact form .textarea .bar:after,
    section.contact form .textarea .bar:before {
        bottom: 0;
    }
}

section.contact form input:focus~.bar:after,
section.contact form input:focus~.bar:before {
    width: 50%;
}

section.contact form input:invalid~.bar:after,
section.contact form input:invalid~.bar:before {
    background: #dc3545;
}

section.contact form textarea:focus~.bar:after,
section.contact form textarea:focus~.bar:before {
    width: 50%;
}

section.contact form .highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

section.contact form .textarea .highlight {
    top: 0;
}

section.contact form input:focus~.highlight,
section.contact form textarea:focus~.highlight {
    -webkit-animation: inputHighlighter 0.3s ease;
    animation: inputHighlighter 0.3s ease;
}

@-webkit-keyframes inputHighlighter {
    0% {
        background: #e9df02;
    }

    to {
        width: 0;
        background: #e9df02;
    }
}

@keyframes inputHighlighter {
    0% {
        background: #e9df02;
    }

    to {
        width: 0;
        background: #e9df02;
    }
}

section.contact form .text {
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    section.contact form input[type="file"] {
        margin-bottom: 4px;
    }

    .form-check {
        margin-top: 30px;
    }

    .form-check label a {
        color: #3c3c3c !important;
        font-weight: 600 !important;
        letter-spacing: normal;
        text-transform: none;
    }
}

/* Swiper */
.swiper-container {
    height: 660px;
}

.swiper-container img {
    height: auto;
}

.swiper-button-prev,
.swiper-button-next {
    background-color: rgba(0, 0, 0, 0) !important;
    padding: 0 !important;
    border: none !important;
}

@media (max-width: 768px) {
    .swiper-container {
        height: 100%;
    }
}