/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** 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;
}
svg {
    shape-rendering: auto;
}

/* ACCESSIBILITY SETTINGS */
.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 9999;
}
.skip-link:focus {
    top: 1rem;
}

/* DEFAULT VALUES */ 
.content {
    padding: calc(1rem + 10vh) calc(1rem + 18.5vw);
    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-between;
}
img {
    width: 100%;
}
a {
    text-decoration: none;
}

/* BUTTON & SELECTION */
.button,
input[type=submit],
button {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
    border: none;
    transition: filter .2s ease-in-out;
}


/* 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 {
    z-index: 2;
    position: relative;
    width: 100%;
}
.bottommenu,
.topmenu {
    padding: 0 calc(1rem + 16.4vw);
}
.bottommenu .inner,
.topmenu .inner {
    width: 100%;
    height: 7.5rem;
    display: flex;
    align-items: start;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 1em 0;
}

/* LOGO */
.logo {
    width: 10rem;
    height: auto;
}
.logo img {
    width: 100%;
    height: 100%;
}

/* NAVIGATION */
nav {
    display: flex;
    gap: 1rem;
    
}
nav ul {
    display: flex;
    flex-direction: row;
    margin: 0;
    gap: 0.1rem;
}
nav li {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bottommenu nav li {
    height: auto;
    
}
.dropdown li {
    height: fit-content;
}
nav li a {
    padding: 5px;
    border-bottom: 3px solid transparent;
}
.dropdown li a{
    padding:0 5px;
    font-size: 0.8em;
    font-weight:300;
}
.bottommenu nav.visible {
    visibility: visible;
}
.menuitem a{
    font-size: 15px;
    font-weight: 600;
    color: #444;
    letter-spacing: .5px;
}
.menuitem a:hover{
    border-bottom: 3px solid var(--blue);
}

/* DROPDOWN MENU */
.dropdown {
    visibility: collapse;
    display: none;
    position: absolute;
    align-items: center;
    top: 100%;
    left: 0;
    white-space: nowrap;
    align-items: flex-start;
    z-index: 20;
    opacity: 0;
}
.dropdown.vertical {
    flex-direction: column;
}
.dropdown.horizontal {
    flex-direction: row;
}
.menuitem.horizontal:hover > .dropdown.horizontal,
.menuitem.vertical:hover > .dropdown.vertical {
    display: flex;
    visibility: visible;
    opacity: 1;
}
#menu-about{
    display:flex;
    flex-direction: row;
}
/* Hauptmenüpunkte als Bezug für absolute Positionierung */
.nav-list > .menuitem {
    position: relative;
}

/* BURGERMENU */
#burgermenu {
    display: none;
    cursor: pointer;
    width: 2rem;
    padding: 0;
    border-radius: 0;
}
#burgermenu .burger {
    position: relative;
    height: 1.5rem;
}
#burgermenu .burger .line {
    width: 2rem;
    height: 2px;
    position: absolute;
    transition: all 200ms;
}
#burgermenu .burger .line:nth-child(1) {
    top: 0;
}
#burgermenu .burger .line:nth-child(2) {
    top: calc(50% - 1px);
}
#burgermenu .burger .line:nth-child(3) {
    top: calc(100% - 2px);
}
#burgermenu[data-open="true"] .burger .line:nth-child(1) {
    top: calc(50% - 1px);
    transform: rotate(45deg);
}
#burgermenu[data-open="true"] .burger .line:nth-child(2) {
    opacity: 0;
}
#burgermenu[data-open="true"] .burger .line:nth-child(3) {
    top: calc(50% - 1px);
    transform: 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: end;
    
}
#hero .content {
    position: absolute;
    text-wrap: balance;
    z-index: 1;
    right: 0;
    align-items:end;
    justify-content: end;
    display: flex;
    flex-direction: column;
    padding: calc(1rem + 8vh) calc(1rem + 5vw);
    text-shadow: 0 0 .5em #ffffff;
    background-color: #d3d1d17a;
}
#hero h1 {
    line-height: 1.2;
    margin: 1rem 0;
    width: 80%;
    text-align: end;
    font-weight: 400;
    color: #0097d0;
    font-size: calc(1rem + 2.5vw);
    text-transform: uppercase;
    
    
}
#hero img{
    filter: brightness(0.95);
}
.right h2 {
    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: 1;
    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 .inner {
  display: grid;
  gap: 1.5rem; 
}

#teaserbox .box {
  display: grid;                
  grid-template-columns: 32% 68%; 
  align-items: stretch;  
  gap: 0;
  padding: 0;
}

#teaserbox .teaser-img {
  min-width: 0;
  height: 100%;
}

#teaserbox .teaser-img a {
  display: block;
  height: 100%;
}
#teaserbox .teaser-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

#teaserbox .teaser-card {
  background: #cfcfcf;
  color: #444;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: flex-start;
  height: 100%;
  min-width: 0;
  margin-left: 1rem;
}

#teaserbox .teaser-card h3 {
  margin: 0 0 0.75rem;
  color: #3f3f3f;
  line-height: 1.2;
}

#teaserbox .teaser-card p {
  margin: 0 0 1rem;
  color: #4d4d4d;
  line-height: 1.5;
}

#teaserbox .teaser-card .button {
  margin-top: auto; 
  display: inline-block;
  padding: 0.65rem 1.5rem;
}

.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;
}
.option {
    gap: 1rem;
    padding: 1rem 0;
    align-items: center;
}
.option .number,
.option .address {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 18px;
    gap: 1rem;
}
.buttons {
    gap: 1rem;
}

/* 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: 5rem;
    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: "•";
}
#linkblock #more::before {
    content: none;
}
#selection {
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    gap: 1rem;
    padding: 0;
    border-radius: 0;
}
#selection span {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 2rem;
}
#selection label {
    cursor: pointer;
}
#more {
    visibility: collapse;
    opacity: 0;
}

/**** SECTION 3: FOOTER ****/

/* BOTTOMFOOTER */
#bottomfooter {
    text-align: center;
    padding-top: .5rem;
    padding-bottom: .5rem;
}
#bottomfooter .inner{
    display: flex;
    justify-content: end;
}
#bottomfooter nav a{
    text-decoration: none;
}
#bottomfooter nav ul{
    gap: 2rem;
}
#bottomfooter a{
    font-size: 16px;
    color: #444444;
}
/* COOKIE POPUP */
#popup {
    position: fixed;
    margin: 2rem;
    bottom: 0;
    right: 0;
    z-index: 4;
    padding: 1rem 2rem;
    max-width: 25rem;
    border-radius: 2rem;
}
#popup h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.select {
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}
.select button {
    width: 100%;
}