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;
}

.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 9999;
}
.skip-link:focus {
    top: 1rem;
}

.content {
    padding: calc(1rem + 10vh) calc(1rem + 16vw);
    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,
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 {
    background-color: #ca4f52;
}

li, ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}
ul {
    flex-direction: column;
    align-items: baseline;
    padding: 0;
}

header {
    position: relative;
    z-index: 2;
    width: 100%;
}

.bottommenu {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 calc(1rem + 2vw);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bottommenu .inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 7rem auto;
    align-items: center;
    width: 100%;
}

.headerlogos {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 1rem;
}

.logo {
    display: block;
    font-size: 0;
    line-height: 0;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo2 {
    display: block;
    width: 6rem;
    height: auto;
}

#burgermenu {
    grid-column: 2;
    grid-row: 1;
    display: block;
    justify-self: center;
    width: 3.2rem;
    height: 3rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

#burgermenu:hover,
#burgermenu:focus {
    background: transparent;
}

#burgermenu .burger {
    position: relative;
    display: block;
    width: 100%;
    height: 1.5rem;
}

#burgermenu .line {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 4px;
    background: #444;
    transition:
        top 0.2s 0.2s,
        transform 0.2s,
        opacity 0.2s,
        background-color 0.2s;
}

#burgermenu .line:nth-child(1) {
    top: 0;
}

#burgermenu .line:nth-child(2) {
    top: calc(50% - 2px);
}

#burgermenu .line:nth-child(3) {
    top: calc(100% - 4px);
}
#burgermenu[data-open="true"] .line {
    background: #ca4f52;
    transition:
        top 0.2s,
        transform 0.2s 0.2s,
        opacity 0.2s 0.15s,
        background-color 0.2s;
}
#burgermenu[data-open="true"] .line:nth-child(1) {
    top: calc(50% - 2px);
    transform: rotate(45deg);
}
#burgermenu[data-open="true"] .line:nth-child(2) {
    opacity: 0;
}
#burgermenu[data-open="true"] .line:nth-child(3) {
    top: calc(50% - 2px);
    transform: rotate(-45deg);
}
.bottommenu {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 calc(1rem + 16vw);
}
#nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease,
        opacity 0.2s ease,
        visibility 0.3s;
}
#nav.visible {
    max-height: 15rem;
    padding: 0 0 2rem;
    visibility: visible;
    opacity: 1;
}
#nav .nav-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0;
}
#nav .menuitem {
    display: flex;
    height: auto;
    margin: 0;
}
#nav .menuitem > a {
    display: block;
    padding: 0.35rem 1rem;
    background: #9d9d9c;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
#nav .menuitem > a:hover,
#nav .menuitem > a:focus-visible {
    background: #ca4f52;
    color: #fff;
}
#hero-btn,
#about-btn,
#contact-tel,
#contact-mail,
#teaser-btn {
    font-size: 1.25rem;
    font-weight: 400;
    padding: 0.6rem 0.75rem;
}
#hero .inner{
    height: fit-content;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#hero .content {
    position: absolute;
    text-wrap: balance;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    margin: calc(1rem + 10vh) calc(1rem + 16vw);
    padding: 35px !important;
}
#hero h1 {
    font-size: calc(1rem + 2vw);
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 0;
}
.right h2 {
    font-size: calc(1rem + 1vw);
    margin-bottom: 1rem;
}
.teaser,
#about .inner {
    align-items: center;
}
#about .button {
    margin-top: 1rem;
}

.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 .grid{
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
}
.box {
    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);
}

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;
}
#about .inner {
    align-items: stretch;
}

#about .left {
    display: flex;
}

#about .left a {
    display: flex;
    width: 100%;
}

#about-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.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: "•";
}
#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;
}
#teaserbox .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#teaserbox .box {
    position: relative;
    padding: 0;
    overflow: hidden;
}

#teaserbox .box > div:first-child,
#teaserbox .box > div:first-child a {
    display: block;
    line-height: 0;
}

#teaserbox .box img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

#teaserbox .box > div:last-child {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
}

#teaserbox .box .button {
    padding: 0.6rem 0.75rem;
    border-radius: 0;
    font-size: 1.25rem;
    font-weight: 400;
}
#contact .inner {
    align-items: stretch;
}

#contact .right {
    display: flex;
}

#contact .right a {
    display: flex;
    width: 100%;
}

#contact-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-berge {
    display: block;
    width: 100%;
    height: auto;
}
#topfooter {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: #3c3c3b;
}

#topfooter .footer-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 4rem;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: #ca4f52 !important;
}
.right h2,
.red {
    background-color: #ca4f52;
    color: #ffffff !important;  
    display: inline-block;  
    padding: 5px;
}
#topfooter p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: #fff;
}

#topfooter a {
    color: #fff;
}

.footer-socials ul {
    flex-direction: row;
    gap: 0.6rem;
    margin: 0;
}

.footer-socials li,
.footer-links li {
    height: auto;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #fff;
    color: #3c3c3b;
}

.footer-socials i {
    font-size: 1.3rem;
}

.footer-links ul {
    align-items: flex-start;
    gap: 0.35rem;
    margin: 2rem 0 0;
}

#bottomfooter {
    text-align: center;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

#popup {
    position: fixed;
    top: 50%;
    right: 50%;
    z-index: 4;
    transform: translate(50%, -50%);
    padding: 2rem;
    max-width: 50rem;
    width: 100%;
}
#popup h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 .5rem;
    font-size: 1.5rem;
}
#popup .select {
    justify-content: flex-end;
}
.select {
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}