body {
    margin: 0;
    overflow: hidden;
    font-family: 'Times New Roman', serif;
    color: #00f;
}

* {
    box-sizing: border-box !important;
}

/*header*/
header {
    font-family: 'Times New Roman', serif;
    position: fixed;
    padding: 20px;
    z-index: 10;
    margin: 10;
}

header h1 {
    margin: 10;
    font-size: 24px;
}

header p {
    margin: 0px 0;
    font-size: 14px;
    color: #00f;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0px;
    width: 250px;
    height: 30%;
    background-color: #44444400;
    padding: 20px 10px;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    font-size: 28px;
}

/* Fettdarstellung für aktive Menüpunkte */
.sidebar nav ul li a.active {
    font-weight: bold;
}

/* Submenüs */
.submenu {
    display: none;
    margin-left: 10px !important;
    padding-left: 10px !important;
}

.submenu li {
    margin-bottom: 0px !important;
}

/* Überschreibende Regel für Links */
.sidebar .submenu a {
    font-size: 20px;
    padding: 5px 8px !important;
    line-height: 1.2 !important;
}

.submenu li a {
    font-size: 14px;
}

.submenu .submenu {
    margin-left: 20px;
    border-radius: 5px;
    padding: 5px 0;
}

.submenu .submenu a {
    padding: 4px 6px;
    font-size: 14px;
}

.sidebar nav ul li ul li ul li a {
    font-family: Helvetica;
}

.sidebar nav ul li ul li ul li a:hover {
    text-decoration: underline #f5e505 !important;
}

/* Kontaktbereich */
.contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    font-size: 28px;
    z-index: 10;
}

.contact a {
    color: rgb(255, 145, 0);
    text-decoration: none;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 400px 20px;
    z-index: 5;
}

/* Stil für den Overlay-Blocker */
.overlay-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
}

.move-button {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 25;
    transition: all 1s ease-in-out;
}

.move-button img {
    width: 1200px;
    height: auto;
}

.move-button.moved {
    position: fixed;
    top: auto;
    right: -1000px;
    bottom: -700px;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.image-gallery-window {
    position: relative;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    z-index: 0;
    overflow: hidden;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.image-gallery-window.show {
    opacity: 1;
}

/* Responsive image gallery with 3 columns */
.image-gallery {
    position: relative;
    display: grid;
    justify-content: center;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1250px;
    margin: auto;
}

.image-gallery button {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: transparent;
    border: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0px;
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
    transition: opacity 0.5s ease;
}

/* Neue Hover-Effekte für alle Bilder */
.image-gallery button:hover img {
    opacity: 0.8;
}

.image-gallery button:hover .overlay {
    opacity: 1;
}

/* Text-Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 0px;
    padding: 0;
    box-sizing: border-box;
}

/* Unterschiedliche Schriftarten für die Overlays */

.font-1 {
    font-family: 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 900;
    color: white;
    font-style: italic;
}

/* Link-Styling */
.no-style-link {
    font-size: 45px;
    color: inherit;
    text-decoration: none;
}

.no-style-link:hover {
    text-decoration: none;
    cursor: pointer;
}

.no-style-link1 {
    font-size: 25px;
    color: inherit;
    text-decoration: none;
}

.no-style-link1:hover {
    text-decoration: none;
    cursor: pointer;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #57505000;
    color: #000;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

/* Mobile First Approach */
@media (max-width: 768px) {

        body {
        overflow-y: auto;
    }
    
    header {
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    .sidebar {
        position: relative; /* Von 'fixed' zu 'relative' ändern */
        top: auto;
        left: auto;
        width: 60%;
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.466);
        margin-bottom: 20px; /* Abstand zum Content */
    }

    .content {
        padding: 0 15px 100px; /* Oben kein Padding mehr, seitlich reduziert */
        margin-top: 0; /* Header/Sidebar-Überlappung verhindern */
    }


    .sidebar nav ul li a {
        font-size: 18px;
        padding: 8px;
    }

    .submenu a {
        font-size: 16px !important;
    }

    .submenu ul li a {
        font-size: 12px !important;
    }

    .content {
        padding: 20px 10px 100px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .move-button {
        width: 80vw;
        height: auto;
    }

    .move-button img {
        max-width: 130vw; /* Breite an Viewport anpassen */
        margin-left: -120px; /* Zentrieren */
        margin-top: 36px;
    }

    .contact {
        position: fixed;
        bottom: 10px;
        left: 10px;
        font-size: 18px;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 5px 10px;
    }

    footer {
        position: relative;
        padding: 10px 5px;
        font-size: 12px;
    }
}

/* Tablet Ansicht */
@media (min-width: 769px) and (max-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .move-button img {
        width: 600px;
    }
}

/* Desktop Optimierungen */
@media (min-width: 1025px) {
    /* Bestehende Desktop-Styles */
}

/* Spezifische Anpassung für MacBook Pro 3024x1964 */
@media (width: 3024px) and (height: 1964px) {
    /* Header Anpassungen */
    header {
        padding: 40px;
    }
    
    header h1 {
        font-size: 36px;
    }
    
    /* Sidebar */
    .sidebar {
        width: 400px;
        top: 120px;
    }
    
    .sidebar nav ul li a {
        font-size: 40px;
        padding: 18px;
    }
    
    .sidebar .submenu a {
        font-size: 32px !important;
    }
    
    /* Galerie */
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
        max-width: 2400px;
    }
    
    /* Overlay-Text */
    .font-1 {
        font-size: 34px;
    }
    
    /* Raketen-Button */
    .move-button img {
        width: 1400px;
    }
    
    /* Kontakt-Link */
    .contact {
        font-size: 40px;
        bottom: 50px;
        left: 50px;
    }
    
    /* Content-Padding */
    .content {
        padding: 600px 50px;
    }
}