body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: 'Times New Roman', serif;
}

/*header*/
header {
    background-color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    margin-top: 0px;
    margin-left: 20px;
    position: fixed;
}


header h1 {
    margin: 0;
    font-size: 40px;
    color: blue;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0px;
    width: 250px;
    height: 30%;
    background-color: #ca0d0d00;
    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;
}

/* Gelber Textmarker für aktive Menüpunkte in Submenüs */
.sidebar nav ul li a.active-submenu {
    font-weight: bold; /* Optional: Fettgedruckt für bessere Sichtbarkeit */
}

/* Submenüs */
.submenu {
    display: none;
    background-color: rgba(41, 241, 91, 0);
    margin-left: 10px !important; /* Einrückung nach rechts */
    padding-left: 10px !important; /* Optional: zusätzlicher Abstand vom Rand */
}

.submenu li {
    margin-bottom: 0px !important;  /* Verringert den Abstand zwischen den Menüpunkten */
}


/* Überschreibende Regel für Links */
.sidebar .submenu a {
    font-size: 20px; /* Diese Regel könnte die Schriftgröße überschreiben */
    padding: 5px 8px !important;  /* Verringert den Innenabstand der Links */
    line-height: 1.2 !important;  /* Engerer Zeilenabstand */
}

.submenu li a {
    font-size: 14px;
}

.submenu .submenu {
    margin-left: 20px; /* Einrückung für Unter-Submenüs */
    background-color: #b65aa700 !important; /* Dunklerer Hintergrund für Unter-Submenüs */
    border-radius: 5px;
    padding: 5px 0;
}

.submenu .submenu a {
    padding: 4px 6px; /* Kleinere Abstände für Unter-Submenüs */
    font-size: 14px; /* Kleinere Schriftgröße für Unter-Submenüs */
}

.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 Container */
.content-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 20px auto;
    max-width: 1800px;
    height: calc(100vh - 200px);
}

/* Text Window */
/* Ersetzen Sie den bestehenden .text-window und Scrollbar-Code durch: */

.text-window {
    width: 170%;
    height: 100%;
    overflow-y: auto;
    padding: 70px;
    scrollbar-width: none; /* Für Firefox */
    -ms-overflow-style: none; /* Für IE/Edge */
}

/* Verstecken der Standard-Scrollbar */
.text-window::-webkit-scrollbar {
    display: none; /* Für Chrome/Safari */
}

/* Pfeil-Indikator */
.text-window::after {
    content: "❯";/* Pfeil-Icon (Unicode) */	
    rotate: 90deg;
    position: absolute;
    bottom: 0px;
    left: 25%;
    transform: translateX(-50%);
    font-size: 29px;
    color: rgba(0, 0, 0, 0.3); /* Fast transparent */
    pointer-events: none; /* Verhindert Interaktion */
}

.text-window h2 {
    margin-bottom: 20px;
}

.text-window p {
    margin-bottom: 20px;
    text-align: justify;
}

.year {
    color: #8a95a0; /* Blaue Farbe für Jahreszahlen */
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.überschriften {
    color: #000000; /* Blaue Farbe für Jahreszahlen */
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    font-size: 22px;
}

/* Image Container */
.image-container {
    width: 100%;
    height: 210%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 30px;
}

.image-container img {
    width: 100%;
    height: 48%;
    object-fit: cover;
    border: 1px solid #e7e7e7;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



/* Link-Styling */
.no-style-link {
    color: inherit;
    /* Farbe des Links übernimmt die Farbe des umgebenden Textes */
    text-decoration: none;
    /* Entfernt die Unterstreichung */
}

.no-style-link:hover {
    text-decoration: none;
    /* Optional: Unterstreichung beim Überfahren mit der Maus */
    text-decoration: underline yellow solid 2px;
    cursor: pointer;
}

.no-style-link1 {
    font-size: 25px;
    color: inherit;
    /* Farbe des Links übernimmt die Farbe des umgebenden Textes */
    text-decoration: none;
    /* Entfernt die Unterstreichung */
}

.no-style-link1:hover {
    text-decoration: none;
    /* Optional: Unterstreichung beim Überfahren mit der Maus */
    cursor: pointer;
}

.bottom-right-image {
    position: fixed;
    bottom: -700px;
    right: -500px;
    width: 1400px; /* Breite des Bildes anpassen */
    height: auto;
    z-index: 1000; /* Sicherstellen, dass das Bild über anderen Elementen liegt */
    transform: rotate(245deg); /* Bild um 45 Grad drehen */
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #57505000;
    color: #000;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

.contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    font-size: 28px;
}

.contact a {
    color: rgb(255, 145, 0);
    text-decoration: none;
}


/* Mobile Styles */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    header {
        position: relative;
        margin: 10px;
        padding: 0;
    }

    header h1 {
        font-size: 32px;
    }

    .sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding: 10px;
        margin-bottom: 20px;
    }

    .sidebar nav ul li a {
        font-size: 22px;
        padding: 8px;
    }

    .sidebar .submenu a {
        font-size: 18px;
    }

    .content-container {
        flex-direction: column;
        height: auto;
        margin: 10px;
        padding: 10px;
    }

    .text-window {
        width: 90%;
        height: auto;
        padding: 20px;
        overflow-y: visible;
    }

    .text-window::after {
        display: none;
    }

    .image-container {
        width: 100%;
        height: auto;
        margin-left: 0;
        margin-top: 20px;
    }

    .image-container img {
        height: auto;
        max-height: 400px;
    }

    .bottom-right-image {
        display: none;
    }

    .contact {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 20px 10px;
        font-size: 22px;
    }

    footer {
        position: relative;
    }
}

/* ==================== */
/* LAPTOP OPTIMIERUNGEN (768px–1200px) */
/* ==================== */
@media (min-width: 769px) and (max-width: 1200px) {
    .sidebar {
        width: 200px;
        padding: 10px 5px;
    }
    .sidebar nav ul li a {
        font-size: 22px;
        padding: 8px 5px;
    }
    .submenu a {
        font-size: 16px !important;
    }
    
    .content-container {
        max-width: 90%;
        margin-left: 220px;
    }
    .text-window {
        width: 100%;
        padding: 40px;
    }
    .image-container {
        height: auto;
        margin-left: 20px;
    }
    .image-container img {
        max-height: 500px;
    }
    
    .text-window p {
        font-size: 16px;
        line-height: 1.5;
    }
    .überschriften {
        font-size: 20px;
    }
    
    .bottom-right-image {
        width: 800px;
        bottom: -500px;
        right: -400px;
    }
    
    .contact {
        font-size: 22px;
        bottom: 10px;
        left: 10px;
    }
    footer {
        font-size: 14px;
    }
}

@media (min-width: 1201px) and (max-width: 1800px) {
    /* Header Anpassungen */
    header {
        padding: 30px;
    }
    
    header h1 {
        font-size: 36px;
    }
    
    /* Sidebar */
    .sidebar {
        width: 280px;
        top: 80px;
    }
    
    .sidebar nav ul li a {
        font-size: 32px;
        padding: 12px;
    }
    
    .sidebar .submenu a {
        font-size: 24px !important;
    }
    
    /* Content Container */
    .content-container {
        max-width: 85%;
        margin-left: 300px;
    }
    
    /* Text Window */
    .text-window {
        width: 150%;
        padding: 60px;
    }
    
    .text-window::after {
        font-size: 32px;
        bottom: 10px;
    }
    
    /* Image Container */
    .image-container {
        height: 180%;
        margin-left: 40px;
    }
    
    .image-container img {
        max-height: 700px;
    }
    
    /* Typografie */
    .text-window p {
        font-size: 18px;
        line-height: 1.6;
    }
    
    .überschriften {
        font-size: 24px;
    }
    
    .year {
        font-size: 14px;
    }
    
    /* Logo */
    .bottom-right-image {
        width: 1000px;
        bottom: -600px;
        right: -450px;
    }
    
    /* Kontakt */
    .contact {
        font-size: 32px;
        bottom: 30px;
        left: 30px;
    }
    
    /* Footer */
    footer {
        font-size: 16px;
        padding: 15px;
    }
}

@media (width: 3024px) and (height: 1964px) {
    /* Header Anpassungen */
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 48px;
    }
    
    /* Sidebar */
    .sidebar {
        width: 400px;
        top: 80px;
        padding: 30px 20px;
    }
    
    .sidebar nav ul li a {
        font-size: 42px;
        padding: 20px;
    }
    
    .sidebar .submenu a {
        font-size: 34px !important;
        padding: 10px 12px !important;
    }
    
    /* Content Container */
    .content-container {
        max-width: 2200px;
        margin-left: 450px;
        height: calc(100vh - 250px);
    }
    
    /* Text Window */
    .text-window {
        width: 180%;
        padding: 80px;
    }
    
    .text-window::after {
        font-size: 42px;
        bottom: 20px;
    }
    
    /* Typografie */
    .text-window p {
        font-size: 22px;
        line-height: 1.8;
        margin-bottom: 30px;
    }
    
    .überschriften {
        font-size: 32px;
    }
    
    .year {
        font-size: 18px;
    }
    
    /* Image Container */
    .image-container {
        height: 300%;
        margin-left: 60px;
    }
    
    .image-container img {
        max-height: 900px;
    }
    
    /* Logo */
    .bottom-right-image {
        width: 1800px;
        bottom: -800px;
        right: -600px;
    }
    
    /* Kontakt */
    .contact {
        font-size: 42px;
        bottom: 50px;
        left: 50px;
    }
    
    /* Footer */
    footer {
        font-size: 20px;
        padding: 20px;
    }
    
    /* Submenu Abstände */
    .submenu {
        margin-left: 20px !important;
        padding-left: 20px !important;
    }
    
    .submenu .submenu {
        margin-left: 40px;
    }
}