:root {
    --white: #ffffff;
    --green: #9cb612;
    --grey: #8b8b8b;
    --lightGrey: #f8f8f8;
}

/* source-sans-pro-regular - latin-ext_latin */

@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-sans-pro-v14-latin-ext_latin-regular.eot");
    /* IE9 Compat Modes */
    src: local(""), url("../fonts/source-sans-pro-v14-latin-ext_latin-regular.eot?#iefix") format("embedded-opentype"),
        /* IE6-IE8 */ url("../fonts/source-sans-pro-v14-latin-ext_latin-regular.woff2") format("woff2"),
        /* Super Modern Browsers */ url("../fonts/source-sans-pro-v14-latin-ext_latin-regular.woff") format("woff"),
        /* Modern Browsers */ url("../fonts/source-sans-pro-v14-latin-ext_latin-regular.ttf") format("truetype"),
        /* Safari, Android, iOS */ url("../fonts/source-sans-pro-v14-latin-ext_latin-regular.svg#SourceSansPro")
            format("svg");
    /* Legacy iOS */
}

/* source-sans-pro-600 - latin-ext_latin */

@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-sans-pro-v14-latin-ext_latin-600.eot");
    /* IE9 Compat Modes */
    src: local(""), url("../fonts/source-sans-pro-v14-latin-ext_latin-600.eot?#iefix") format("embedded-opentype"),
        /* IE6-IE8 */ url("../fonts/source-sans-pro-v14-latin-ext_latin-600.woff2") format("woff2"),
        /* Super Modern Browsers */ url("../fonts/source-sans-pro-v14-latin-ext_latin-600.woff") format("woff"),
        /* Modern Browsers */ url("../fonts/source-sans-pro-v14-latin-ext_latin-600.ttf") format("truetype"),
        /* Safari, Android, iOS */ url("../fonts/source-sans-pro-v14-latin-ext_latin-600.svg#SourceSansPro")
            format("svg");
    /* Legacy iOS */
}

/* source-sans-pro-700 - latin-ext_latin */

@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/source-sans-pro-v14-latin-ext_latin-700.eot");
    /* IE9 Compat Modes */
    src: local(""), url("../fonts/source-sans-pro-v14-latin-ext_latin-700.eot?#iefix") format("embedded-opentype"),
        /* IE6-IE8 */ url("../fonts/source-sans-pro-v14-latin-ext_latin-700.woff2") format("woff2"),
        /* Super Modern Browsers */ url("../fonts/source-sans-pro-v14-latin-ext_latin-700.woff") format("woff"),
        /* Modern Browsers */ url("../fonts/source-sans-pro-v14-latin-ext_latin-700.ttf") format("truetype"),
        /* Safari, Android, iOS */ url("../fonts/source-sans-pro-v14-latin-ext_latin-700.svg#SourceSansPro")
            format("svg");
    /* Legacy iOS */
}

* {
    margin: 0;
    padding: 0;
    word-break: break-word;
    hyphens: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    border-top: 6px var(--green) solid;
    border-bottom: 6px var(--green) solid;
    font-family: "Source Sans Pro", sans-serif;
    font-style: normal;
    font-weight: 400;
}

h1 {
    color: var(--grey);
    text-transform: uppercase;
    font-size: 2.5rem;
}

h1 span {
    display: block;
    background-color: #ffffff;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.3rem;
    width: max-content;
    max-width: 100%;
}

h1 span.thirdHeadline {
    color: var(--green);
}

h2 {
    color: var(--grey);
    text-align: center;
    font-weight: 300;
    transition: color 0.2s;
}

.entered h2 {
    color: var(--green);
}

h2::after {
    content: "";
    width: 60px;
    height: 3px;
    display: block;
    background-color: var(--green);
    margin: 1rem auto;
}

a {
    text-decoration: none;
}

p {
    line-height: 2;
}

ul,
p {
    color: var(--grey);
}

img {
    width: 100%;
    height: auto;
}

section > .container {
    padding: 4rem 0;
}

section:nth-child(odd) {
    background-color: var(--lightGrey);
}

.container {
    max-width: 1200px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .container {
        display: block;
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Header */

.headerContainer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    transition: height 0.5s linear;
    padding: 2rem 0;
    font-weight: 600;
}

@media (max-width: 1023px) {
    .headerContainer {
        max-width: 90%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2rem 0;
        flex-direction: column;
    }
}

@media (max-width: 1200px) {
    .headerContainer {
        max-width: 90%;
    }
}

header figure {
    width: 250px;
}

.mainnav {
    width: 60%;
}

.mainmenu {
    justify-content: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mainmenu {
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
}

.mainmenu li a,
.mainmenu li a:visited {
    color: var(--grey);
    transition: color 0.3s;
}

.mainmenu li a:hover,
.mainmenu li a:focus {
    color: var(--green);
}

@media (max-width: 1023px) {
    header figure {
        max-height: 60px;
        width: 250px;
    }
    .headerContainer {
        padding-bottom: 0;
    }
    figure i {
        fill: var(--grey);
    }
    .mainnav {
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 1rem;
    }
    .mainmenu {
        display: flex;
        overflow: hidden;
        position: relative;
        visibility: hidden;
        opacity: 0;
        height: 0;
        flex-direction: column;
        width: 100%;
        transition: height 0.5s, visibility 0s, opacity 0.5s linear;
        margin: 1rem 0 0 0;
    }
    .mainmenu li {
        margin-bottom: 1rem;
    }
    .navTrigger {
        cursor: pointer;
        width: 30px;
        height: 25px;
        margin: auto;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }
    .navTrigger i {
        background-color: var(--grey);
        border-radius: 2px;
        content: "";
        display: block;
        width: 100%;
        height: 4px;
    }
    .navTrigger i:nth-child(1) {
        -webkit-animation: outT 0.8s backwards;
        animation: outT 0.8s backwards;
        -webkit-animation-direction: reverse;
        animation-direction: reverse;
    }
    .navTrigger i:nth-child(2) {
        margin: 5px 0;
        -webkit-animation: outM 0.8s backwards;
        animation: outM 0.8s backwards;
        -webkit-animation-direction: reverse;
        animation-direction: reverse;
    }
    .navTrigger i:nth-child(3) {
        -webkit-animation: outBtm 0.8s backwards;
        animation: outBtm 0.8s backwards;
        -webkit-animation-direction: reverse;
        animation-direction: reverse;
    }
    .navTrigger.active i:nth-child(1) {
        -webkit-animation: inT 0.8s forwards;
        animation: inT 0.8s forwards;
    }
    .navTrigger.active i:nth-child(2) {
        -webkit-animation: inM 0.8s forwards;
        animation: inM 0.8s forwards;
    }
    .navTrigger.active i:nth-child(3) {
        -webkit-animation: inBtm 0.8s forwards;
        animation: inBtm 0.8s forwards;
    }
}

@-webkit-keyframes inM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes inM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes outM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes outM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes inT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes inT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes outT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes outT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes inBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes inBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

@-webkit-keyframes outBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes outBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

/* Hero */

.hero {
    background-color: var(--green);
    background-image: url(../img/banner.jpg);
    background-size: cover;
    background-position: center center;
    padding: 8rem 0;
}

@media (max-width: 767px) {
    .hero {
        background-image: url(../img/banner_mobil_hoch.jpg);
    }
    .container p {
        padding-right: 7%;
    }
}

/* Cases */

.cases .grid {
    display: flex;
    flex-direction: row;
    margin-top: 3rem;
    justify-content: space-between;
}

@media (max-width: 767px) {
    .cases .grid {
        display: flex;
        flex-direction: column;
        margin-top: 0;
    }
}

.cases .gridItem {
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 30%;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .cases .gridItem {
        display: flex;
        flex-direction: column;
        text-align: center;
        max-width: 90%;
        justify-content: flex-end;
    }
}

.cases .gridItem > p {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

/* Team */

.team .container .grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 767px) {
    .team .container p {
        padding-right: 0;
    }
}

@media (min-width: 1024px) {
    .team .container .grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        margin-top: 4rem;
        flex-direction: row;
    }
    a.tablink img {
        max-width: 220px;
    }
}

a.tablink {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 241px;
    cursor: unset;
    padding-top: 3rem;
}

a.tablink.green span {
    color: var(--green);
}

@media (max-width: 1024px) {
    a.tablink.green span {
        color: var(--grey);
    }
}

@media (min-width: 1080px) {
    a.tablink img {
        min-width: 241px;
    }
}

@media (min-width: 1024px) {
    a.tablink {
        order: 1;
        padding-top: 0rem;
        cursor: pointer;
        max-width: 22%;
    }
}

a.tablink img {
    max-width: 100%;
}

a.tablink > p > span {
    text-align: center;
}

.title {
    display: block;
    margin: 1rem auto 0 auto;
}

a:hover .teamMarker {
    width: 100%;
    height: 3px;
    display: block;
    background-color: var(--grey);
    margin: 1rem auto;
    transition: all 0.4s;
}

a:hover div.teamMarker::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--grey);
    margin: 0 auto;
}

a:hover .teamMarker.greenTeamMarker {
    width: 100%;
    height: 3px;
    display: block;
    background-color: var(--green);
    margin: 1rem auto;
    transition: all 0.4s;
}

a:hover div.teamMarker.greenTeamMarker::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--green);
    margin: 0 auto;
}

.teamMarker {
    width: 100%;
    height: 3px;
    display: block;
    background-color: transparent;
    margin: 1rem auto;
    transition: all 0.4s;
}

@media (max-width: 1024px) {
    .teamMarker {
        display: none !important;
    }
    .teamMemberBeschreibung p:first-child {
        display: block;
        margin-top: 1.5rem;
    }
}
.greenTeamMarker {
    width: 100%;
    height: 3px;
    display: block;
    background-color: var(--green);
    margin: 1rem auto;
}

div.teamMarker::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid transparent;
    margin: 0 auto;
}

div.teamMarker.greenTeamMarker::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--green);
    margin: 0 auto;
}

#teammember1,
.teamMemberBeschreibung {
    visibility: visible;
    opacity: 1;
    height: auto;
}

@media (min-width: 1024px) {
    .teamMemberBeschreibung {
        visibility: hidden;
        transition: visibility 0s, opacity 0.5s linear;
        order: 2;
        height: 0;
        opacity: 0;
    }
}

.teamMemberBeschreibung > p {
    padding-top: 2rem;
}

.teammemberBeschreibung .title {
    display: inline;
    margin-right: 0.3rem;
}

@media (max-width: 767px) {
    div.teamMarker {
        display: none !important;
    }
    .teamMemberBeschreibung > p {
        padding-top: 0rem;
        padding-right: 0;
    }
    .teamMemberBeschreibung span,
    .teamMemberBeschreibung .title {
        display: none;
    }
}

/* Indicator */

#indicator {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: calc(50% - 48px);
    right: 6%;
    list-style-type: none;
}

.bullet {
    display: block;
    height: 8px;
    width: 8px;
    min-height: 8px;
    min-width: 8px;
    border: 2px solid var(--grey);
    background-color: var(--lightGrey);
    border-radius: 50%;
    margin-bottom: 0.75rem;
    text-indent: -99999px;
    overflow: hidden;
}

.bullet.active {
    background-color: var(--green);
}

/* Kontakt */

.kontakt {
    max-width: 600px;
    margin: auto;
}

form a {
    color: var(--green);
}

.hide {
    display: none !important;
}

[type="color"],
[type="date"],
[type="datetime-local"],
[type="datetime"],
[type="email"],
[type="month"],
[type="number"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="time"],
[type="url"],
[type="week"],
textarea {
    display: block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    height: 3.5rem;
    margin: 0 0 0.88889rem;
    margin-bottom: 0.88889rem;
    padding: 0.88889rem;
    border: 2px solid var(--grey);
    border-radius: 0;
    background-color: var(--lightgrey);
    -webkit-box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
    box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
    font-weight: 400;
    line-height: 2;
    color: var(--grey);
    -webkit-transition: border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
    transition: border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
    transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
    transition: box-shadow 0.5s, border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

[type="color"]:focus,
[type="date"]:focus,
[type="datetime-local"]:focus,
[type="datetime"]:focus,
[type="email"]:focus,
[type="month"]:focus,
[type="number"]:focus,
[type="password"]:focus,
[type="search"]:focus,
[type="tel"]:focus,
[type="text"]:focus,
[type="time"]:focus,
[type="url"]:focus,
[type="week"]:focus,
textarea:focus {
    outline: 0;
    border: 3px solid var(--green);
    background-color: #fefefe;
    -webkit-box-shadow: 0 0 5px #cacaca;
    box-shadow: 0 0 5px #cacaca;
    -webkit-transition: border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
    transition: border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
    transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
    transition: box-shadow 0.5s, border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
}
textarea {
    max-width: 100%;
    font-family: inherit;
}
textarea[rows] {
    height: auto;
}

[type="button"],
[type="submit"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

[data-whatinput="mouse"] .button {
    outline: 0;
}

.button {
    background-color: var(--green);
    color: white;
    font-weight: 400;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 1rem 0;
    padding: 0.85em 1em;
    border: 1px solid transparent;
    border-radius: 0;
    -webkit-transition: background-color 0.25s ease-out, color 0.25s ease-out;
    transition: background-color 0.25s ease-out, color 0.25s ease-out;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.1rem;
}

.formMessage {
    display: block;
    border: 2px solid var(--green);
    color: var(--green);
    padding: 1rem;
    margin-top: 1rem;
}

/* Footer */

.footerMenu {
    display: flex;
    margin: 0 auto;
    padding: 4rem 0;
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
}

.footerMenu li {
    border-right: var(--grey) 1px solid;
    list-style: none;
    list-style-type: none;
    padding: 0 0.5rem;
}

.footerMenu li:last-child {
    border: none;
}

.footerMenu li a,
.footerMenu li a:visited {
    color: var(--grey);
    transition: color 0.3s;
}

.footerMenu li a:hover,
.footerMenu li a:focus {
    color: var(--green);
}

@media (max-width: 768px) {
    .footerMenu {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    .footerMenu li:nth-child(1) {
        display: block;
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 1.5rem;
    }
}
