/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** SITE SETTINGS ****/
html {
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    shape-rendering: optimizeSpeed;
    image-rendering: auto;
}
body * {
    box-sizing: border-box;
}
body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    width: 100%;
}

main #left{
    width: 190px;
    float: left;
    margin-left: 34px;
    height: 100%;
}

/**** SIDE NAV LEFT ****/
#side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background-color: #dbd6c8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: normal;
  z-index: 1000;
}

/* Navigation */
#side-nav nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  padding-inline: 6px;
  margin-top: 40px;
}

#side-nav .nav-item {
  width: 100%;
  position: relative;
}

/* Hauptmenüpunkt als Button */
#side-nav .nav-link {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--red);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  transition: color 0.25s ease;
  width: 100%;
  padding: 10px 0;
}

#side-nav .nav-link:hover,
#side-nav .nav-item.open .nav-link {
  color: var(--red);
}

/* Untermenü */
#side-nav .submenu {
  list-style: none;
  position: absolute;
  left: 225px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0.9rem 1.2rem;
  background: #9e8f69;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  white-space: nowrap;
  z-index: 20;
  transition: opacity 0.2s ease;
}

#side-nav .nav-item.open .submenu,
#side-nav .nav-item:hover .submenu {
  max-height: 200px;
  opacity: 1;
}

#side-nav .submenu li {
  padding: 0;
}

#side-nav .submenu a {
  transform: none;
  font-size: 14px;
  font-weight: 400;
  color: #002c77;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

#side-nav .submenu a:hover {
  color: var(--color-3);
}

/* Kontaktbereich Links */
#side-nav .contactleft {
  margin-bottom: 10px;
  margin-left: -20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#side-nav .contactleft a {
  color: #000;
  font-size: 14px;
  transition: color 0.2s ease;
  letter-spacing: .5px;
}

#side-nav .contactleft a:hover {
  color: #999;
}

#side-nav p{
    font-size: 14px;
    letter-spacing: .5px;
}
#side-nav .lang-flag {
  width: 18px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.45rem;
}

#side-nav .nav-link a,
#side-nav .submenu a {
  display: inline-flex;
  align-items: center;
}

/* DEFAULT VALUES */ 
.content {
    padding: calc(1rem + 10vh) calc(1rem + 11.1vw);
    padding-left: 350px;
    margin: auto;
    width: 100%;
    margin: auto;
}
.inner {
    max-width: 1920px;
    margin: auto;
}
.flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
}
.grid {
    display: grid;
    justify-content: space-around;
}
img {
    width: 100%;
}

#hero img {
    width: 100%;
    heighT: 100vh;
    object-fit: cover;
    display: block;
}

a {
    text-decoration: none;
}

/* BUTTON & SELECTION */
input[type=submit],
button {
    font-size: 1rem;
    font-weight: 300;
    padding: 1rem 2rem;
    border-radius: 0;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
    border: none;
}

/* LIST & LIST ITEMS */
li, ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}
ul {
    flex-direction: column;
    align-items: baseline;
    padding: 0;
}

/**** SECTION 1: HEADER ****/
header {
    display:none;
    z-index: 9999;
    width: 100%;
}
.bottommenu,
.topmenu {
    padding: 1.9rem 4.5rem;
}
.bottommenu .inner,
.topmenu .inner {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* LOGO */
.logo {
    display:block;
    background-image: url(../img/logo.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#side-nav .logo {
    width: 200px;
    height: 200px;
    margin: 28px auto 0 auto;
    flex-shrink: 0;
}

.bottommenu .logo {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
}

/* NAVIGATION */
nav {
    display: none;
    gap: 1rem;
}

nav ul {
    display: flex;
    flex-direction: row;
    margin: 0;
}

nav li {
    display: flex;
    justify-content: start;
    align-items: center;
}
.topmenu nav li {
    height: 60px;
}
.dropdown li {
    height: fit-content;
}
nav li a {
    font-size: 22px;
    font-weight: 800;
}
.bottommenu nav.visible {
    visibility: visible;
}

.menuitem.jobs {
    display: none;
}

/* DROPDOWN MENU */
.dropdown {
    visibility: collapse;
    display: none;
    position: absolute;
    gap: 5px;
    padding: 1rem;
    align-items: center;
    top: 60%;
    opacity: 0;
}
.dropdown.vertical {
    flex-direction: column;
}
.menuitem.vertical:hover > .dropdown.vertical {
    display: flex;
    visibility: visible;
    opacity: 1;
}

/* BURGERMENU */
#burgermenu {
    display: none;
    cursor: pointer;
    width: 2rem;
    padding: 0;
    border-radius: 0;
}
#burgermenu .burger {
    position: relative;
    width: 1.35rem;
    height: 0.95rem;
    margin: 0 auto;
    
}
#burgermenu .burger .line {
    width: 1.35rem;
    height: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.2s, transform 0.2s, opacity 0.2s, background-color 0.2s;
    background: #4a4e57;
}
#burgermenu .burger .line:nth-child(1) {
    top: 1px;
}
#burgermenu .burger .line:nth-child(2) {
    top: 8px;
}
#burgermenu .burger .line:nth-child(3) {
    top: 16px;
}
#burgermenu[data-open="true"] .burger .line:nth-child(1) {
    top: 8px;
    transform: translateX(-50%) rotate(45deg);
}
#burgermenu[data-open="true"] .burger .line:nth-child(2) {
    opacity: 0;
}
#burgermenu[data-open="true"] .burger .line:nth-child(3) {
    top: 8px;
    transform: translateX(-50%) rotate(-45deg);
}
#burgermenu .burger .line {
    transition: top 0.2s 0.2s, transform 0.2s, opacity 0.2s;
}
#burgermenu[data-open="true"] .burger .line {
    transition: top 0.2s, transform 0.2s 0.2s, opacity 0.2s 0.15s;
}
#burgermenu[data-open="true"] .burger .line:nth-child(2) {
    opacity: 0;
}

/**** SECTION 2: MAIN ****/

/* HERO */
#hero .inner{
    height: fit-content;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position:relative;
}
#hero .content {
    position: absolute;
    z-index: 2;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    display:flex;
    flex-direction:column;
    align-items:center;
    width: min(92%, 1800px);
    text-align:center;
}
#hero h1 {
    font-size: calc(1rem + 3vw);
    line-height: 1.1;
    margin: 1rem 0;
    width: 100%;
    text-align: center;
    padding: 0.5rem 1rem;
}
.right h2 {
    font-size: 35px;
    margin-bottom: 1rem;
}
.teaser,
#about .inner {
    align-items: center;
}
#about button {
    margin-top: 1rem;
}

/* SLIDER */
.slider-container {
    width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
}
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    box-sizing: border-box;
    height: 90vh;
    display: flex;
    justify-content: center;
}
.slide img {
    object-fit: cover;
}
.prev, 
.next {
    cursor: pointer;
    position: absolute;
    z-index: 3;
    top: 40%;
    width: 5rem;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    user-select: none;
    transition: 0.6s ease;
}
.next {
    right: 0;
}
.left,
.right {
    width: 100%;
}

/* TEASERBOX */
#teaserbox .grid{
    gap: 1rem;
    grid-auto-columns: 1fr;
}
.box {
    grid-row: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    gap: 1rem;
}
#teaserbox .box p,
#teaserbox .box h3 {
    text-align: center;
    padding: 1rem;
    margin: 0;
}
.all {
    display: flex;
    justify-content: space-between;
    margin: 0 0 1rem 0;
}
.all div {
    display: flex;
    align-items: center;
}
.all a {
    display: flex;
    gap: 1rem;
}
.all span,
.all i {
    font-size: 1.5rem;
}
.all a {
    align-items: center;
    gap: 1rem;
}
.all a:hover i {
    transform: rotate(-35deg);
}

/* CALL TO ACTION */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 0 0;
}
.form h3 {
    font-size: calc(1rem + 1vw);
    margin: 0;
}
.form h4 {
    font-size: calc(1rem + .5rem);
    margin: 0;
}
.info {
    justify-content: space-between;
    gap: .5rem;
}
.info input {
    width: 100%;
    padding: .5rem 1rem;
    border: none;
    font-size: 1rem;
}
textarea {
    padding: .5rem 1rem;
    font-size: 1rem;
    border: none;
    resize: none;
}
#recaptcha {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.alert {
    display: none;
    padding: 10px 0;
}
.alert i {
    padding-right: 5px;
}

/* TEASER */
.teaser {
    gap: 2rem;
    padding: 2rem;
    margin: 5rem 0;
}
.teaser div:nth-of-type(1) {
    grid-column: 1;
}
.teaser div:nth-of-type(2) {
    grid-column: 2;
}
.teaser div:nth-of-type(3) {
    grid-column: 3;
}
.teaser i{
    font-size: 2rem;
    height: 5rem;
    width: 5rem;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.teaser h3 {
    font-size: calc(1rem + .5vw);
    margin: .5rem 0;
}
.teaser p {
    margin: 0;
}
li i {
    font-size: 5px;
}
a i {
    font-size: 2rem;
}
#linkblock {
    min-width: 30%;
    flex-direction: column;
    gap: 0;
}
#linkblock li::before {
    content: "•";
}
#selection {
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    gap: 1rem;
}
#selection span {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 2rem;
}
#selection label {
    cursor: pointer;
}
#more {
    visibility: collapse;
    opacity: 0;
}

/**** SECTION 3: FOOTER ****/
#topfooter {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
}

#topfooter .inner {
    display:flex;
    justify-content:center;
    gap:100px;
}

#bottomfooter {
    text-align: center;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

/* COOKIE POPUP */
#popup {
    position: fixed;
    margin: 2rem;
    bottom: 0;
    right: 0;
    z-index: 4;
    padding: 1rem 2rem;
    max-width: 25rem;
    border-radius: 0;
}
#popup h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.select {
    gap: 1rem;
    justify-content: left;
    margin-top: 2rem;
}
.select button {
    width: 100%;
}