@media only screen and (min-width: 769px) and (max-width: 1200px) {
    body {
        font-size: 1.1rem;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    /* Header Anpassungen */
    header {
        grid-column: 1 / 5;
        padding: 0.8rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .logo {
        height: 4.5rem;
    }

    nav ul li a {
        padding: 0.25rem 0.6rem;
    }

    /* Main Bereich Anpassungen */
    main {
        grid-column: 1 / 5;
    }

    section {
        grid-template-columns: 1fr;
    }
    
    .erste, .zweite {
        grid-column: 1 / 2;
        margin: 2rem auto;
        max-width: 90%;
    }

    video, iframe {
        width: 90%;
    }

    /* Gallerie Anpassungen */
    .gallerie-section {
        grid-template-columns: repeat(3, 1fr);
        width: 80vw;
    }

    .gallerie-item {
        height: 180px;
    }
    
    /* Footer Anpassungen */
    footer {
        grid-column: 1 / 5;
        grid-template-columns: 1fr 1fr;
        padding: 1rem;
    }

    .footer-contact {
        justify-self: start;
    }

    .footer-link {
        justify-self: end;
    }
}

/* Anpassungen für mittlere Bildschirme */
@media only screen and (max-width: 768px) {
    /* Allgemeine Anpassungen */
    html {
        font-size: 16px;
    }
    
    body {
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }

    /* Header Anpassungen */
    header {
        grid-column: 1 / 2;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
        border-radius: 0 0 10px 10px;
    }

    .logo {
        height: 4rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        display: none;
    }

    nav {
        width: 100%;
        text-align: center;
    }

    nav ul {
        display: flex;
        justify-content: center;
        padding: 0;
        width: 100%;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    nav ul li a {
        padding: 0.2rem 0.5rem;
        font-size: 0.9rem;
    }

    /* Main Bereich Anpassungen */
    main {
        grid-column: 1 / 2;
    }

    section {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    article {
        padding: 0.8rem;
    }

    .erste, .zweite {
        grid-column: 1 / 2;
        margin: 1rem 0;
        border-radius: 15px;
    }
     .eins {
        border-radius:  8px 8px 8px 8px;
    }
    
    .zwei {
        border-radius:  8px 8px 8px 8px;
    }

    /* Video Anpassungen */
    video {
        width: 80vw;
        height: auto;
    }

    /* Gallerie Anpassungen */
    .gallerie-section {
        grid-template-columns: repeat(2, 1fr);
        width: 90vw;
        padding: 1rem;
        border-radius: 20px;
    }

    .gallerie-item {
        height: 200px;
        width: auto;
    }

    figure {
        width: auto;
    }

    /* Footer Anpassungen */
    footer {
        grid-column: 1 / 2;
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0.8rem;
        border-radius: 10px 10px 0 0;
    }

    .footer-contact,
    .footer-link {
        justify-self: center;
        margin-bottom: 0.5rem;
    }

    .footer-contact p {
        font-size: 0.8rem;
    }

    /* Lightbox Anpassungen für kleinere Bildschirme */
    #lightbox-overlay {
        padding: 0;
    }

    .lightbox-content {
        padding: 8rem 1rem;
    }

    #close-btn {
        top: 10px;
        right: 15px;
        font-size: 3rem;
    }

    .single ul li a {
    border-radius: 0 0 10px 10px;
}

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 2rem;
        line-height: 45px;
    }

    #prev-btn {
        left: 1rem;
    }

    #next-btn {
        right: 1rem;
    }
}

/* Zusätzliche Anpassungen für noch kleinere Bildschirme */
@media only screen and (max-width: 480px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    nav ul li {
        margin: 0 0.3rem;
    }

    nav ul li a {
        font-size: 0.8rem;
        padding: 0.15rem 0.4rem;
    }

    .gallerie-section {
        grid-template-columns: 1fr;
        width: 95vw;
        padding: 0.5rem;
    }
      .gallerie-item {
        height: 150px;
        width: auto;
    }

    .lightbox-content {
        padding: 6rem 0.5rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
        line-height: 40px;
    }
    #prev-btn {
        left: 0.5rem;
    }

    #next-btn {
        right: 0.5rem;
    }
}