/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** 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;
}
.button:hover,
input[type=submit]:hover,
button:hover {
    filter: brightness(0.75);
}

/* 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 {
    position: fixed;         
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

body {
    padding-top: 90px;     
}

/* MENÜ-LEISTE */
.bottommenu {
    padding: 0 calc(1rem + 18.5vw);
    height: 8.8rem;
    background: rgba(255, 255, 255, 0.479); 
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.bottommenu .inner {
    width: 100%;
    height: 90px;   
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* LOGO */
.logo {
    width: auto;
    height: 80px;
    transition: height 0.3s ease, transform 0.3s ease;
}
.logo img {
    width: 100%;
    height: 100%;
}

/* NAVIGATION */
nav {
    display: flex;
    gap: 1.5rem;
}
nav ul {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 1.8rem;
}
nav li {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: end;
}
nav li a {
    padding: 5px 10px;
    text-decoration: none;
    font-weight: 400;
}
header.scrolled nav li{
    align-items: center;
}
header.scrolled .bottommenu {
    background: #ffffff;
    box-shadow: 0 8px 20px -22px #222;
    height: auto;
    border-bottom: none;
}

header.scrolled .logo {
    height: 40px;
    width: auto;         
}

header.scrolled .nav a {
    color: #000000;
}
header.scrolled .menuitem a:hover {
    color: var(--red);
}

header.scrolled nav li {
    height: 80px;
}


/* SIDEBAR – Position bleibt */
.sidebar {
  position: fixed;
  top: 25%;
  right: 0;
  z-index: 900;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sidebar-item {
  position: relative;
}

/* EINZELNER BUTTON */
.sidebar-item a {
  display: flex;
  align-items: center;
  background-color: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 300;
  height: 3.4rem;
  padding: 0 1.2rem 0 0;
  width: 12rem;                  
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(calc(12rem - 3.4rem));
  transition: transform .55s ease-out; 
}

/* ICON LINKS, TEXT RECHTS */
.sidebar-item a i {
  width: 3.4rem;             
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;       
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-right: .4rem;
}
.sidebar-text {
  font-size: 19px;
  color: #fff;
}

.sidebar-item a:hover,
.sidebar-item a:focus-visible {
  transform: translateX(0);
}


/* 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 {
    margin-top: -90px;
}
#hero .inner{
    height: fit-content;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#hero .content {
    position: absolute;
    text-wrap: balance;
    z-index: 1;
}
#hero img {
    position: relative;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
h1 {
    font-size: calc(1rem + 3vw);
    line-height: 1.2;
    margin: 1rem 0;
    width: 100%;
}
.right h2 {
    font-size: calc(1rem + 1vw);
    margin-bottom: 1rem;
}
.teaser,
#about .inner {
    align-items: center;
}
.teser{
    text-align: 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 .grid {
    display: grid;
    gap: 3.3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#teaserbox .box.teaser {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

#teaserbox .teaser-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
}

/* Bild */
#teaserbox .box.teaser img {
    display: block;
    object-fit: cover;
    filter: brightness(0.5);                
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Overlay mit Text + Button */
#teaserbox .teaser-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2rem;
    box-sizing: border-box;
    color: #fff; 
}
#teaserbox .box:nth-child(3) .teaser-overlay,
#teaserbox .box:nth-child(4) .teaser-overlay{
    padding: 3rem 2rem;
}
#teaserbox .teaser-overlay h3,
#teaserbox .teaser-overlay p,
#teaserbox .teaser-button {
    color: #fff;
}

#teaserbox .teaser-overlay h3 {
    margin: 0 0 .4rem;
    font-size: 2rem;
    font-weight: 700;
}

#teaserbox .teaser-overlay p {
    margin: 0 0 1.2rem;
    max-width: 28rem;
}

#teaserbox .teaser-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 500;
    font-size: .95rem;
    padding: 0;
    border: none;
}

#teaserbox .teaser-button::before {
    content: "→";
}

#teaserbox .box.teaser:hover img {
    transform: scale(1.05);
}



/* 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;
}
#linkblock #more-links[hidden] {
    display: none;
}

#selection {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#linkblock .selection-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

#selection .fa-chevron-right {
    display: block;
    line-height: 1;
}

/**** SECTION 3: FOOTER ****/

/* TOPFOOTER */

#topfooter {
    padding: 2rem calc(1rem + 19vw) 4rem;
    background-color: #2b2b2b;
}
#topfooter .inner.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
#topfooter nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
#topfooter nav li {
    height: fit-content;
}
#topfooter a {
    padding: 0;
    line-height: 27px;
    font-size: 15px;
    font-weight: 300;
}
#topfooter h3 {
    margin: 0 0 .3rem;
}
#topfooter p {
    margin: 0;
    line-height: 27px;
    font-size: 15px;
}
#topfooter h3{
    line-height: 27px;
    font-size: 15px;
    font-weight: 700;
}
#topfooter .box:nth-child(2) img {
    width: 9rem;
    height: auto;
    padding-right: 20px;
}

#topfooter .box:nth-child(2) h3,
#topfooter .box:nth-child(3) h3{
    margin-bottom: 2rem;
}
#topfooter .box:nth-child(3) {
    display: flex;
    flex-direction: column;
}
#topfooter .box:nth-child(3) img {
    width: 320px;
    height: 120px;
    margin-bottom: 3rem;
}
#topfooter .box:nth-child(3) h3 {
    margin-bottom: 1rem;
}

/* BOTTOMFOOTER */
#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: 2rem;
}
#popup h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.select {
    gap: 1rem;
    justify-content: left;
    margin-top: 2rem;
}
.select .button {
    width: 100%;
}