* {
    padding: 0;
    margin: 0;
}

:root {
    --black: #0F0F0F;
    --white: #fff;
    --red: #BA0000;
    --green: #006800;
    --gold: #d4af37;
    --box-shadow: 0 3px 15px 0 rgba(0, 0, 0, 0.35);
    --transition-smoth: all ease 400ms;
    --main-font: 'Raleway', sans-serif;
    --special-font: 'Lora', serif;
}

body {
    background-color: var(--white);
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-family: var(--main-font);
    color: var(--black);
    line-height: 1.5;
}

img {
    max-width: 100%;
}

:is(h1, h2, h3, h4, h5, h6) {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 1rem;
    hyphens: auto;
    width: 100%;
    font-family: var(--special-font);
    line-height: 1.2;
}

a {
    color: var(--red);
    text-decoration: underline;
}

a:hover,
a:focus {
    text-decoration: underline;
}

main {
    padding: 3rem 0 1rem 0;
}

.container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.buttonStyle a,
a.buttonStyle {
    display: inline-block;
    color: var(--white);
    padding: 0.75rem 1.2rem;
    font-size: clamp(1.25rem, 4vw, 1.375rem);
    font-family: var(--special-font);
    margin-top: 2rem;
    font-weight: 700;
    text-decoration: none;
    border: 5px solid var(--white);
    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -ms-transition: all 400ms ease;
    -o-transition: all 400ms ease;
    transition: all 400ms ease;
}

.buttonStyle a:focus,
.buttonStyle a:hover,
a.buttonStyle:focus,
a.buttonStyle:hover {
    text-decoration: unset !important;
    background-color: var(--white);
    color: var(--black);
}

.top-bar {
    color: var(--white);
    background-color: var(--red);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 0;
    width: 100%;
    transition: var(--transition-smoth);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-bar .cta-reserve a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.scrolled .top-bar {
    position: fixed;
    z-index: 40;
    top: 0;
}

.dark-overlay {
    filter: brightness(70%);
}

@media(max-width:1024px) {
    .menue-wrapper {
        background: var(--red);
        padding: 1rem 0;
    }

    .top-bar {
        position: absolute;
        top: -100%;
        padding: 20px 0;
    }

    .top-bar .opening-time-top,
    .top-bar .location {
        display: none;
    }

    .top-bar .cta-reserve a {
        padding: 0.8rem;
        display: inline-block;
        border: 2px solid var(--white);
        font-size: 0.8rem;
    }
}

/* Header */

.header-wrapper {
    position: relative;
}

.logo {
    color: var(--white);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo .logo-flex {
    display: flex;
    gap: 1rem;
}

.logo .logo-flex img {
    max-width: 55px;
    object-fit: contain;
    filter: invert(1);
}

.logo .logo-flex span {
    display: block;
    white-space: nowrap;
    font-size: 1.875rem;
    font-family: var(--special-font);
    text-transform: uppercase;
    font-weight: 600;
}

.logo .logo-subtitle {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1812rem;
    font-size: 1rem;
    margin-top: 0.4rem;
}

.headerSwiperContainer .slide-item .slider-overlay-text {
    position: absolute;
    width: 100%;
    top: 25vh;
    z-index: 2;
}

@media(max-width:1024px) {

    .logo .logo-flex span {
        font-size: 1.25rem;
    }

    .logo .logo-subtitle {
        font-size: 1rem;
    }
}

@media(min-width:1025px) {
    .menue-wrapper {
        position: absolute;
        top: 30px;
        left: 0;
        width: 100%;
        z-index: 20;
        padding: 10px 0;
        transition: var(--transition-smoth);
    }

    .menue-wrapper>.container>* {
        width: 100%;
    }

    .headerSwiperContainer .swiper-pagination {
        bottom: 90px;
    }

    .scrolled .menue-wrapper {
        position: fixed;
        top: 52px;
        z-index: 40;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
    }

    .scrolled .logo .logo-flex span {
        font-size: 1.5rem;
    }

    .scrolled .logo .logo-subtitle {
        font-size: 0.8rem;
    }
}

/* Hauptnavigation */

.navbar-collapse li {
    position: relative;
}

.navbar-collapse>ul {
    list-style: none;
    height: 100%;
    width: 100%;
    padding: 0;
}

.navbar-collapse>ul>li>a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.45rem;
    position: relative;
    font-weight: 600;
    padding: 0.9rem 0.5rem;
    display: block;
    font-family: var(--special-font);
}

.submenu {
    list-style: none;
}

@media(max-width:1024px) {

    .navbar-collapse .menu-item-has-children .submenu {
        list-style: none;
        display: none;
        padding-left: 1rem;
    }

    .sub-menu-open {
        display: block !important;
    }

    .navbar-collapse .menu-item-has-children .submenu li {
        padding: 0.3rem 0;
    }

    .navbar-collapse .menu-item-has-children .submenu li a {
        text-decoration: none;
        color: var(--white);
    }

    .navbar-collapse .menu-item-has-children .sub-toggle-button {
        display: block;
        height: 45px;
        width: 45px;
        color: var(--white);
        background-color: transparent;
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 50%;
        cursor: pointer;
        border: none;
        font-size: 2.1rem;
        -webkit-transition: all 400ms ease;
        -moz-transition: all 400ms ease;
        -ms-transition: all 400ms ease;
        -o-transition: all 400ms ease;
        transition: all 400ms ease;
    }

    .submenu-open~.sub-toggle-button {
        transform: unset;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -150%;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 85px;
        width: calc(100% - 30px);
        height: 100%;
        background: var(--red);
        backdrop-filter: blur(5px);
        z-index: 200;
        pointer-events: all;
        -webkit-transition: all 200ms linear;
        -moz-transition: all 200ms linear;
        -ms-transition: all 200ms linear;
        -o-transition: all 200ms linear;
        transition: all 200ms linear;
    }

    .navbar-collapse>ul {
        overflow: scroll;
    }

    .navbar-collapse .submenu li a {
        font-size: 1rem;
    }

    .toggled .navbar-collapse {
        left: 0;
    }

    .navbar-toggle {
        position: fixed;
        right: 25px;
        top: 25px;
        background-color: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(5px);
        padding: 12px 8px 8px 8px;
        border-radius: unset;
        z-index: 1002;
        min-height: 45px;
        min-width: 45px;
        border: none;
    }

    .navbar-toggle .icon-bar {
        display: block;
        width: 35px;
        height: 2px;
        border-radius: 0;
        margin-bottom: 5px;
        background-color: var(--white);
        box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.35);
        -webkit-transition: transform 200ms linear;
        -moz-transition: transform 200ms linear;
        -ms-transition: transform 200ms linear;
        -o-transition: transform 200ms linear;
        transition: transform 200ms linear;
    }

    .navbar-toggle span.icon-bar:nth-child(2) {
        width: 20px;
        margin-left: auto;
    }

    .navbar-toggle span.icon-bar:nth-child(3) {
        width: 28px;
        margin-left: auto;
    }

    .toggled .navbar-toggle span.icon-bar:nth-child(1) {
        -webkit-transform: rotate(45deg) translate(1px, 0px);
        transform: rotate(45deg) translate(0px, 0px);
        margin: 0;
    }

    .toggled .navbar-toggle span.icon-bar:nth-child(2) {
        -webkit-transform: rotate(-45deg) translate(2px, -2px);
        transform: rotate(-45deg) translate(2px, -2px);
        margin: 0;
        width: unset;
    }

    .toggled .navbar-toggle span.icon-bar:nth-child(3) {
        display: none;
    }
}

@media(min-width:1025px) {

    .nabvar-container {
        display: flex;
        gap: calc(2rem + 5vw);
    }

    .navbar-toggle {
        display: none;
    }

    .navbar-collapse {
        width: 100%;
    }

    .navbar-collapse>ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-item-has-children a {
        position: relative;
    }

    .menu-item-has-children>a::before {
        content: '';
        display: block;
        pointer-events: none;
        position: absolute;
        transition: var(--transition-smoth);
        left: 5px;
        width: 0;
        bottom: 5px;
        height: 4px;
        background-color: var(--red);
    }

    .menu-item-has-children>a:hover::before {
        width: 100%;
    }

    .menu-item-has-children .submenu {
        position: absolute;
        background-color: var(--white);
        box-shadow: var(--box-shadow);
        top: 60px;
        left: 0;
        transition: var(--transition-smoth);
        opacity: 0;
        pointer-events: none;
        min-width: 200px;
    }

    .menu-item-has-children .submenu::before {
        content: '';
        display: block;
        width: 100%;
        position: absolute;
        left: 0;
        top: -30px;
        height: 30px;
    }

    .menu-item-has-children .submenu a {
        display: block;
        font-size: 1rem;
        padding: 0.7rem 0.9rem;
        color: var(--black);
        text-decoration: none;
        position: relative;
    }

    .menu-item-has-children .submenu a::before {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background-color: var(--red);
        transition: ease 200ms all;
    }

    .menu-item-has-children .submenu a:hover::before {
        width: 3px;
    }

    .navbar-collapse>ul>li:hover .submenu {
        opacity: 1;
        pointer-events: all;
    }

    .navbar-collapse>ul>li:last-child .submenu {
        left: unset;
        right: 0;
    }

    .sub-toggle-button {
        display: none;
    }
}

/* Swiper Slide */

.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-next {
    right: 10px;
    transform: rotate(-90deg);
}

.swiper-button-prev {
    transform: rotate(90deg);
    left: 10px;
}

.swiper-pagination-bullet-active {
    background-color: var(--white);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--white);
    display: block;
    transform: translateY(2px);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    border-color: #ccc;
}


/* Startseite */

.headerSwiperContainer .slide-item {
    position: relative;
}

.headerSwiperContainer .swiper-slide img {
    width: 100%;
    object-fit: cover;
    height: 70vh;
}

.headerSwiperContainer .freisteller {
    display: none;
}

.headerSwiperContainer .slider-text h1,
.headerSwiperContainer .slider-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    color: var(--white);
}

.headerSwiperContainer .slider-text {
    font-size: clamp(1rem, 4vw, 1.5625rem);
    color: var(--white);
}

.headerSwiperContainer .second .dark-overlay {
    filter: brightness(40%);
}

@media(min-width:1025px) {


    .headerSwiperContainer .slide-item img {
        height: 40vh;
        width: 100%;
        object-fit: cover;
    }

    .index-page .headerSwiperContainer .swiper-slide img {
        height: 100vh;
    }

    .headerSwiperContainer .freisteller {
        display: block;
        max-width: 370px;
        position: absolute;
        top: 25vh;
        right: -10%;
        z-index: 1;
        pointer-events: none;
        height: 50vh !important;
        object-fit: contain !important;
    }

    .headerSwiperContainer .slider-text .buttonStyle {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .headerSwiperContainer .slider-text .highlighted {
        position: relative;
    }

    .headerSwiperContainer .slider-text .highlighted::before {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 10px;
        background: url('../img/stroke.svg') center no-repeat;
        background-size: contain;
    }
}

@media(min-width:1440px) {
    .headerSwiperContainer .freisteller {
        max-width: 620px;
    }

    .index-page .headerSwiperContainer .slide-item .slider-overlay-text {
        top: 30vh;
    }

    .headerSwiperContainer .slide-item .slider-overlay-text {
        bottom: 30vh;
    }
}

/* Tabs */

.tabs {
    margin-top: -2rem;
    position: relative;
    z-index: 30;
    margin-bottom: 2rem;
}

.tabs .tab {
    width: 100%;
}

.tabs .tab a {
    display: block;
    position: relative;
    line-height: 0;
    overflow: hidden;
}

.tabs .tab a::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 11;
    background: rgba(186, 0, 0, 10);
    background: linear-gradient(0deg, rgba(186, 0, 0, 0.8) 10%, rgba(186, 0, 0, 0.3) 40%);
}

.tabs .tab img {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: var(--transition-smoth);
    object-fit: cover;
}

.tabs .tab a:hover img {
    transform: scale(1.2);
}

.tabs .tab h2 {
    position: absolute;
    left: 0;
    bottom: 4px;
    width: inherit;
    padding: 1.5rem;
    z-index: 11;
    margin: 0;
    color: var(--white);
    line-height: 1;
}

@media(max-width:599px) {
    .tabs .tab+.tab {
        margin-top: 2rem;
    }
}

@media (min-width:600px) {
    .tabs {
        gap: 1rem;
    }

    .tabs .tab {
        width: calc(50% - 0.5rem);
    }

    .tabs .tab:last-child {
        width: 100%;
    }

    .tabs .tab:last-child img {
        max-height: 350px;
    }
}

@media(min-width:1025px) {
    .tabs {
        gap: 1.875rem;
        margin-top: -7rem;
    }

    .tabs .tab,
    .tabs .tab:last-child {
        width: calc(33% - 1.875rem);
    }

    .tabs .tab:last-child img {
        max-height: unset;
    }
}

/* second */

main .second {
    text-align: center;
    padding-bottom: 3rem;
    padding-top: 3rem;
}

main .second .buttonStyle {
    color: var(--red);
    border-color: var(--red);
    margin: 2rem auto;
}

main .second .buttonStyle:hover {
    color: var(--white);
    background-color: var(--red);
}

/* third */

.third {
    padding: 3rem 0;
    background-color: var(--black);
    background: url('../img/steinwand.jpg') center no-repeat;
    position: relative;
    color: var(--white);
}

.third::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(52, 52, 52, 0.8);
}

.third .container {
    gap: 2.5rem;
}

.third h3 {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    color: var(--white);
}

.third h4 {
    font-family: var(--main-font);
    font-weight: 600;
    color: var(--white);
    font-size: clamp(1.1875rem, 4vw, 1.375rem);
}

.third .text-area {
    width: 100%;
}

.third img {
    margin: 0 auto;
}

@media(min-width:1025px) {
    .third {
        padding: 8.125rem 0;
    }

    .third .container {
        gap: 8.125rem;
    }

    .third .text-area {
        width: 50%;
    }

    .third img {
        margin: 0;
    }
}

@media(min-width:1230px) {
    .third img {
        margin-bottom: -17.5rem;
    }
}

/* fourth */

.fourth {
    padding: 3rem 0;
}

.fourth h3 {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    color: var(--red);
}

.fourth h4 {
    font-family: var(--main-font);
    font-weight: 600;
    color: var(--red);
    font-size: clamp(1.1875rem, 4vw, 1.375rem);
}

.fourth .slide-item {
    position: relative;
}

.fourth .swiper-slide .slide-item a {
    display: block;
    position: relative;
    line-height: 0;
    overflow: hidden;
}

.fourth .swiper-slide .slide-item a::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 11;
    background: rgba(186, 0, 0, 10);
    background: linear-gradient(0deg, rgba(186, 0, 0, 0.8) 10%, rgba(186, 0, 0, 0.3) 40%);
    transition: 400ms linear all;
}

.fourth .swiper-slide .slide-item a img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-height: 500px;
    min-height: 500px;
}

.fourth .swiper-slide .slide-item a .slider-text {
    line-height: 1;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 12;
    color: var(--white);
    padding: 2rem 1rem;
    font-family: var(--special-font);
    font-size: 1rem;
}

.fourth .swiper-slide .slide-item a:hover::before {
    backdrop-filter: blur(10px);
    background: linear-gradient(0deg, rgba(186, 0, 0, 0.8) 30%, rgba(186, 0, 0, 0.3) 90%);
}

.fourth .swiper-slide .slide-item a .slider-text h4 {
    color: var(--white);
    font-family: var(--special-font);
    margin: 0.5rem 0 0 0;
    font-size: clamp(1.25rem, 4vw, 1.5625rem);
}

.fourth .hightlightSwiper-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 300px;
    margin: 2rem auto;
    gap: 1rem;
    height: 40px;
    position: relative;
    width: 130px;
}

.fourth .swiper-button-prev,
.fourth .swiper-button-next {
    width: 40px;
    height: 40px;
    color: var(--white);
    border-color: var(--red);
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.fourth .swiper-button-prev::after,
.fourth .swiper-button-next::after {
    border-top-color: var(--red);
}

.fourth .swiper-button-prev:hover,
.fourth .swiper-button-next:hover {
    background-color: var(--red);
}

.fourth .swiper-button-prev:hover::after,
.fourth .swiper-button-next:hover::after {
    border-top-color: var(--white);
}

.fourth .swiper-button-prev::after,
.fourth .swiper-button-next::after {
    font-size: 0;
}

.fourth .hightlight-swiper-pagination {
    position: relative;
    margin: 2rem auto 0 auto;
    display: inline-block;
    width: unset !important;
}

.fourth .swiper-pagination-bullet-active {
    background-color: var(--red);
}

@media (min-width:594px) {
    .fourth .hightlightSwiper-controls {
        margin: -4rem 0 2rem auto;
    }
}

@media(min-width:1025px) {
    .fourth {
        padding: 14rem 0 7rem 0;
    }

    .fourth .swiper-slide {
        height: 100%;
    }
}

/* fifth */

.fifth {
    padding: 3rem 0;
}

.fifth h3 {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    color: var(--green);
}

.fifth h4 {
    font-family: var(--main-font);
    font-weight: 600;
    color: var(--green);
    font-size: clamp(1.1875rem, 4vw, 1.375rem);
}

.fifth .show-case .image-area img {
    box-shadow: var(--box-shadow);
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.fifth .show-case .text-area {
    background: linear-gradient(0deg, rgba(0, 104, 0, 0.9) 0%, rgba(0, 104, 0, 0.9) 100%), url('../img/grapes.jpg') center no-repeat;
    background-size: cover;
    padding: 2rem;
    color: var(--white);
}

.fifth .show-case .text-area h3 {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    color: var(--white);
}

.fifth .show-case .text-area h4 {
    font-family: var(--main-font);
    font-weight: 600;
    color: var(--white);
    font-size: clamp(1.1875rem, 4vw, 1.375rem);
}

@media(min-width:1200px) {

    .fifth .show-case {
        display: flex;
        align-items: center;
    }

    .fifth .show-case .image-area {
        margin-right: -10rem;
        position: relative;
        z-index: 2;
    }

    .fifth .show-case .text-area {
        padding: 5.625rem 5.625rem 5.625rem 13.4375rem;
    }

    .fifth .show-case .image-area img {
        max-width: 470px;
        height: 464px;
    }
}

/* Spesiekarte */

.menu-container {
    width: 100%;
}

.menu-header {
    text-align: center;
    margin-bottom: 2rem;
}

.menu-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.menu-section {
    margin-bottom: 2.5rem;
}

.menu-section h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.menu-item .item-name {
    font-weight: bold;
    flex: 1 1 60%;
}

.menu-item .item-price {
    flex: 1 1 30%;
    text-align: right;
}

.menu-item .item-desc {
    flex-basis: 100%;
    font-size: 0.9rem;
    color: var(--black);
    margin-top: 0.25rem;
}

.speise-tabs {
    position: sticky;
    top: 88px;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    overflow-x: scroll;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.7rem 1.5rem;
    font-family: var(--main-font);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom: 3px solid var(--red);
    font-weight: bold;
}

.tab-button.current {
    color: var(--white);
    background-color: var(--red);
}

.menu-section.hidden,
.menu-subsection.hidden {
    display: none;
}

.menu-subsection {
    margin-bottom: 1.5rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e0e0e0;
}

.item-name {
    font-weight: bold;
}

.item-desc {
    font-style: italic;
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 600px) {
    .menu-item {
        flex-direction: column;
    }

    .menu-item .item-price {
        text-align: left;
        margin-top: 0.25rem;
    }
}

@media(min-width:1025px) {
    .speise-tabs {
        box-shadow: unset;
        border-bottom: 2px solid var(--gold);
        top: 169px;
    }
}

/* Geschichte */

.timeline {
    position: relative;
    width: 100%;
}

.timeline h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--red);
    font-size: 2rem;
}

.timeline-line {
    position: absolute;
    left: calc(50% - (4px));
    top: 60px;
    width: 4px;
    height: calc(100% - (60px + 100px));
    background: var(--gold);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.4rem 2rem 2rem 2rem;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Ungerade links */
.timeline-item:nth-child(2n+1) {
    left: 0;
    text-align: right;
}

/* Gerade rechts */
.timeline-item:nth-child(2n) {
    left: 50%;
    text-align: left;
}

.timeline-year {
    font-size: clamp(1.5rem,4vw,2.5rem);
    font-weight: bold;
    color: var(--red);
    margin-bottom: 0.5rem;
    font-family: var(--special-font);
}

.timeline-content {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-block;
    max-width: 350px;
}

.timeline-content img {
    margin-top: 1rem;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--red);
    border: 4px solid var(--gold);
    border-radius: 50%;
}

/* Marker für links */
.timeline-item:nth-child(2n+1)::before {
    right: -10px;
}

/* Marker für rechts */
.timeline-item:nth-child(2n)::before {
    left: -17px;
}

/* Responsiv: alles links */
@media (max-width: 768px) {
    .timeline h2 {
        text-align: left;
    }

    .timeline-line {
        left: 14px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 3rem;
        padding-top: 2rem;
    }

    .timeline-item::before {
        left: 0 !important;
        right: auto;
    }
}

/* footer */

footer {
    padding: 2rem 0;
    font-size: 1rem;
    background-color: var(--black);
    color: var(--white);
}

footer :is(h1, h2, h3, h4, h5, h6, a) {
    color: var(--white);
}

footer .container {
    align-items: flex-start;
    gap: 2rem;
}

footer .container>* {
    display: block;
    width: 100%;
}

footer .tray {
    list-style: none;
}

footer .tray li a {
    text-decoration: none;
}

footer .tray li a:hover,
footer .tray li a:focus {
    text-decoration: underline;
}

footer h4 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
}

footer #scroll-top {
    font-size: 0;
    width: 40px;
    height: 40px;
    display: block;
    position: fixed;
    background-color: var(--white);
    cursor: pointer;
    border: 2px solid var(--red);
    border-radius: 50%;
    z-index: 30;
    bottom: 15px;
    right: 15px;
}

footer #scroll-top::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--red);
    display: block;
    transform: translateY(12px) translateX(10px) rotate(-180deg);
}

#scroll-top.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media(max-width:599px) {
    footer .tray {
        display: block;
    }

    footer .container>div+div {
        margin-top: 2rem;
        position: relative;
    }

    footer .container>div+div::before {
        content: '';
        display: block;
        height: 1px;
        width: 100%;
        background-color: var(--white);
        opacity: 0.5;
        position: absolute;
        left: 0;
        top: -2rem;
    }
}

@media (min-width:600px) {
    footer .container>* {
        width: calc(50% - 2rem);
    }

    footer .container>div:last-child {
        width: 100%;
    }
}

@media (min-width:1025px) {

    footer {
        padding: 4rem 0;
    }

    footer .container>*,
    footer .container>div:last-child {
        width: calc(33% - 2rem);
    }
}