* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "ffdinr";
    src: url("fonts/ffdinr.woff2");
}

@font-face {
    font-family: "ffdinb";
    src: url("fonts/ffdinb.woff2");
}

body {
    font-family: ffdinr, sans-serif;
    line-height: 1.6;
    color: black;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Parallax background */
.parallax {
    /* The SVG background image */
    background-image: url('img/bgbeige.svg');

    /* Create the parallax scrolling effect */
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    max-width: 100vw;
}

header {
    color: white;
    text-align: center;
    position: relative;
    z-index: 2;
    height: 100vh;
    padding-top: 360px;
}

.header-container h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    color: black;
}
.header-container p {
    font-size: 2.3rem;
    color: black;
}

.logo{
    width: 40rem;
    padding-top: 80px;
}

b{
    font-size: 1.8rem;
}

.text-container p {
    font-size: 1.8rem;
    color: black;
    padding-bottom: 20px;
    font-weight: 100;
    line-height: 36px;
}
.text-container-kontakt p {
    font-size: 2.2rem;
    color: black;
    font-weight: 100;
    line-height: 36px;
    padding-bottom: 8px;
}
.text-container h2 {
   font-family: ffdinb;
    font-size: 3rem;
    color: black;
    font-weight: bolder;
    padding-bottom: 20px;
}
.text-container-kontakt h2 {
    font-family: ffdinb;
    font-size: 3rem;
    color: black;
    font-weight: bolder;
}

main {
    position: relative;
    z-index: 2;
}

.image-container img {
    display: block;
    height: auto;
    width: 100vw;
}

.text-container {
    display: block;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 80px;
    padding-bottom: 30px;
}
.text-container-kontakt {
    display: block;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 80px;
    padding-bottom: 150px;
}

.content-section {
}

.languages {
    text-align: center;
    top: 4rem;
    left: 3rem;
    position: absolute;
}

.languages a, p {
    text-decoration: none;
    color: black;
    font-weight: light;
    font-family: ffdinr;
    font-size: 1.6rem;
}

.text-gallery {
    display: flex;
}

.text-gallery img {
    min-width: 50%; /* Zeigt mehrere Bilder gleichzeitig (2 Bilder pro Zeile) */
    height: auto; /* Passt die Höhe entsprechend an */
    display: block;
    padding-right: 15px;
}

.gallery-wrapper {
    width: 60vw; /* Volle Breite des Viewports */
    overflow: hidden; /* Verhindert Scrollen */
    position: relative;
    margin: 0 auto ;
    padding-bottom: 50px;
}

.gallery {
    display: flex;
    transition: transform 0.5s ease; /* Animation beim Wechsel der Bilder */
}

.gallery img {
    min-width: 100%; /* Zeigt mehrere Bilder gleichzeitig (2 Bilder pro Zeile) */
    display: block;
}

.pd-top {
    padding-top: 80px;
}
.dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.active {
    background-color: #717171; /* Farbe des aktiven Punktes */
}


footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

a {
    font-family: ffdinb;
    text-decoration: none;
    color: #a88400;
    font-weight: 100;
    letter-spacing:2px;
    font-size: 1.8rem;
}

.visitenkarte {
    display: flex;
    flex-direction: row;
    padding-bottom: 40px;
    padding-top: 80px;
}

.v-image {
    flex: 1.5; /* Increased flex value to make the image wider */
    background-size: cover;
    background-position: center;
    height: auto; /* Keeps the aspect ratio */
}

.v-text {
    flex: 2.5; /* Reduced flex value to accommodate the wider image */
    padding: 100px 50px;
    background-color: #d9bd76;
}

.v-text b {
    font-family: ffdinb;
    font-size: 2.0rem;
}

.v-text p {
    padding-bottom: 0;
}

.visitenkarte::after {
    content: "";
    clear: both;
    display: table;
}


strong{
    font-family: ffdinb;
}

.gallery-section {
    max-width: 60%;
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 50px;
}


.gallery-section h2 {
    font-family: ffdinb;
    font-size: 3rem;
    color: black;
    font-weight: bolder;
    padding-bottom: 30px;
}

/* Update for consistent gallery thumbnail layout in the "Galerie" section with at most two columns */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always create two columns */
    gap: 15px; /* Adjust spacing between the items */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 400px; /* Set a consistent height for all items */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the item without distortion */
    transition: transform 0.3s ease;
}

.text-card {
    background-color: #d9bd76;
    display: flex;
    text-align: left;
    padding: 50px;
    font-size: 1.8rem;
    line-height: 36px;
    color: #333;
    height: 400px; /* Match the height of other items for consistency */
    align-items: center; /* Align the text vertically */
}
.text-card p{
   color: black;
}

/* Hover effect */
.gallery-item:hover img {
    transform: scale(1.05);
}


/* Responsive Adjustments */
@media (max-width: 980px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .v-text {
        padding: 30px 50px;
    }
}

.gallery-wrapper-bot {
    width: 100vw; /* Volle Breite des Viewports */
    overflow: hidden; /* Verhindert Scrollen */
    position: relative;
}

.gallery-bot {
    display: flex;
}

.gallery-bot img {
    height: auto; /* Passt die Höhe entsprechend an */
    display: block;
    object-fit: cover;
}

.logo-kontakt {
    width: 30rem;
    padding-bottom: 50px;
}

.footer {
    background-color: #d4b15b; /* Farbe wie im Screenshot */
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    margin-top: 15px!important;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%; /* Anpassbar: z.B. 100% für volle Breite */
    max-width: 1200px;
}

.burgbild {
    padding-right: 15px;
}

.social-icon svg {
    width: 4rem;
    height: 4rem;
    fill: black;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.padding-footer {
    padding-bottom: 120px;
}

.footer-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}


*::before,
*::after{
    box-sizing: inherit;
}


.navigation__checkbox{
    display: none;
}

.navigation__button{
    background-color: #fff;
    height: 4rem;
    width: 4rem;
    position: fixed;
    top: 5rem;
    right: 6rem;
    z-index: 100;
    outline: black solid 5px;
    text-align: center;
    cursor: pointer;
}


.navigation__icon{
    position: relative;
    margin-top: 2rem;
}

.navigation__icon, .navigation__icon::before, .navigation__icon::after{
    width: 3rem;
    height: 4px;
    background-color: black;
    display: inline-block;
}

.navigation__icon::before, .navigation__icon::after{
    content: "";
    position: absolute;
    left: 0;
    transition: all .2s;
}

.navigation__icon::before{
    top: -.8rem;
}

.navigation__icon::after{
    top: .8rem;
}

.navigation__button:hover .navigation__icon::before{
    top: -1rem;
}

.navigation__button:hover .navigation__icon::after{
    top: 1rem;
}


.navigation__checkbox:checked + .navigation__button .navigation__icon{
    background-color: transparent;
}

.navigation__checkbox:checked + .navigation__button .navigation__icon::before{
    top: 0;
    transform: rotate(135deg);
}

.navigation__checkbox:checked + .navigation__button .navigation__icon::after{
    top: 0;
    transform: rotate(-135deg);
}


/*Navigation Background*/

.navigation__background{
    height: 3rem;
    width: 3rem;
    position: fixed;
    top: 6rem;
    right: 6rem;
    opacity: 1;
    background-color: #d4b15b;
    z-index: 80;
    transition: transform .8s cubic-bezier(0.86, 0, 0.07, 1);
}

.navigation__nav{
    visibility: hidden;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    opacity: 0;
    width: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navigation__checkbox:checked ~ .navigation__nav {
    visibility: visible;
}

.navigation__list{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: right;
    list-style: none;
    padding-right: 20vw;
}

.navigation__item{
    margin: 1rem;
}

.navigation__link:link, .navigation__link:visited{
    display: inline-block;
    font-size: 3rem;
    font-weight: bold;
    padding: 1rem 2rem;
    color: black;
    text-decoration: none;
    text-transform: uppercase;
    background-image: linear-gradient(120deg, transparent 0%, transparent 50%, #fff 50%);
    background-size: 250%;
    transition: all .4s;
}

.navigation__link:hover, .navigation__link:active{
    background-position: 100%;
    color: #000;
    transform: translateX(1rem);
}

.navigation__checkbox:checked ~ .navigation__background{
    transform: scale(100);
}

.navigation__checkbox:checked ~ .navigation__nav{
    opacity: 1;
    width: 100%;
}


.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-image: url("img/bgbeige.svg");

}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    object-fit: cover;
    max-width: 60%;
    padding-bottom: 100px;
}
.close {
    background-color: #fff;
    height: 4rem;
    width: 4rem;
    position: fixed;
    top: 5rem;
    right: 6rem;
    z-index: 100;
    outline: black solid 5px;
    text-align: center;
    cursor: pointer;
}

.close__icon {
    position: relative;
    margin-top: 2rem;
}

.close__icon, .close__icon::before, .close__icon::after {
    width: 3rem;
    height: 4px;
    background-color: black;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

/* Pseudo-Elemente für den Close-Button */
.close__icon::before, .close__icon::after {
    content: "";
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.close__icon::before {
    top: -0.8rem;
}

.close__icon::after {
    top: 0.8rem;
}

/* Stil für den "X"-Zustand des Close-Icons */
.close-icon-active .close__icon {
    background-color: transparent;
}

.close-icon-active .close__icon::before {
    top: 0;
    transform: rotate(135deg);
}

.close-icon-active .close__icon::after {
    top: 0;
    transform: rotate(-135deg);
}


@media (max-width: 480px) {

    .text-container a {
        font-size: 1.2rem;
    }

    .text-container {
        max-width: 90%;
    }

    .text-container p, .text-container-kontakt p {
        font-size: 1.2rem;
        line-height: 24px;
        padding-bottom: 0px;
    }

    .text-container-kontakt{
        max-width: 90%;
    }

    .text-container h2, .text-container-kontakt h2 {
        font-size: 2rem;
    }


    .logo {
        width: 70vw;
    }

    header {
        padding-top: 180px;
    }

    .logo-kontakt {
        width: 70vw;
    }

    .footer-links a{
        font-size: 1.2rem;
    }

    .navigation__background {
        top: 20px;
        right: 20px;
    }

    .text-card {
        font-size: 1.8rem;
        line-height: 34px;
        padding: 35px;
    }

    .gallery-wrapper {
        width: 100vw;
        height: auto;
    }

    .gallery img {
        height: auto;
    }

    .gallery-section {
        max-width: 90vw;
    }

    .v-text b {
        font-size: 1.3rem;
        line-height: 20px;
    }

    .v-text p {
        font-size: 1.1rem;
    }

    .v-text {
        padding: 20px;
    }

    .navigation__link:link, .navigation__link:visited{
        font-size: 1.7rem;
        padding: 0.5rem 1rem;
    }

    .navigation__button, .close{

        height: 2rem;
        width: 2rem;

        top: 20px;
        right: 20px;

        outline: black solid 3px;

    }

    .navigation__icon, .close__icon {
        margin-top: 1rem;
    }

    .close__icon, .close__icon::before, .close__icon::after, .navigation__icon, .navigation__icon::before, .navigation__icon::after {
        width: 1.5rem;
        height: 2px;
    }

    .close__icon::before, .navigation__icon::before {
        top: -0.4rem;
    }

    .close__icon::after, .navigation__icon::after {
        top: 0.4rem;
    }

    .navigation__background{
        height: 1.5rem;
        width: 1.5rem;
        position: fixed;
        top: 20px;
        right: 20px;

    }

    .navigation__button:hover .navigation__icon::before{
        top: -0.5rem;
    }

    .navigation__button:hover .navigation__icon::after{
        top: 0.5rem;
    }

    .footer {
        height: 100px;
    }

    .burgbild {
        padding-right: 0px;
    }
    .text-container-kontakt {
        padding-bottom: 60px;
    }
}
