/* Allgemeine Stile */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* Volle Höhe des Viewports */
    width: 100%;
    /* Volle Breite des Viewports */
    display: flex;
    flex-direction: column;
    background-color: rgb(255, 255, 255);
    overflow-y: hidden;
}

.no-style-link {
    text-decoration: none;
    color: inherit;
}

.no-style-link1 {
    text-decoration: none;
    color: inherit;
    font-size: 12px;
    font-family: Helvetica;
}

.no-style-link:hover,
.no-style-link1:hover {
    text-decoration: underline;
    text-decoration-color: yellow;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    padding: 20px;
    z-index: 1000;
    /* Stellt sicher, dass der Header über anderen Elementen liegt */
}

header h1 {
    margin: 0;
    font-size: 40px;
    color: blue;
}

/* 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;
    background-color: rgba(135, 206, 250, 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: #55555500;
    /* 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;
}

/* Stil für aktiven Contact-Link */
.contact a.active {
    font-weight: bold;
    /* Fett darstellen */
    /* Optional: Farbe ändern */
}

/* Neue Stile für den Content-Bereich */
.content {
    align-items: flex-start;
    /* Ändert die Ausrichtung von center zu flex-start (linksbündig) */
    padding-left: 800px;
    /* Fügt mehr Abstand auf der linken Seite hinzu, um Platz für die Sidebar zu lassen */
    padding-top: 420px;
    /* Reduziert den oberen Abstand */
    padding-bottom: 150px;
    /* Reduziert den unteren Abstand */
}

.content p {
    font-family: Helvetica;
    font-size: 12px;
    /* Kleinere Schriftgröße für Absätze */
    margin: 0 0 5px 0;
    /* Verringert den Abstand nach unten auf 5px und entfernt andere Margins */
    line-height: 1.2;
    /* Verringert den Zeilenabstand innerhalb der Absätze */
}

.content h2 {
    margin: 20px 0 10px 0;
    /* Angepasste Abstände für Überschriften */
    line-height: 1.2;
}

.content a {
    display: block;
    /* Macht die Links zu Blockelementen für bessere Kontrolle */
    margin: 5px 0;
    /* Fügt kleinen Abstand oben und unten hinzu */
    line-height: 1.2;
}

/* Container für E-Mail und Linie */
.email-container {
    display: flex;
    align-items: center;
    /* Vertikal zentrieren */
    width: 50%;
    margin: 30px 0;
}

/* E-Mail-Text */
.email-container h2 {
    margin: 0;
    padding-right: 140px;
    /* Abstand zur Linie */
    white-space: nowrap;
    /* Verhindert Zeilenumbruch */
}

/* Horizontale Linie neben der E-Mail */
.email-line {
    flex-grow: 1;
    /* Nimmt den verfügbaren Platz ein */
    height: 1px;
    background-color: black;
    border: none;
}

/* Animation für das Bild */
.floating-image {
    position: fixed;
    bottom: -400px;
    right: -600px;
    width: 1400px;
    /* Anpassen nach Bedarf */
    height: auto;
    z-index: 1000;
    animation: floatUp 1.5s forwards;
    opacity: 0;
}

.floating-image img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        /* Nur vertikale Bewegung (kein translateX) */
        opacity: 0;
        bottom: -1000px;
        /* Start: Unten außerhalb */
        right: -32%;
        /* Horizontal bleibt fix (wie Endposition) */
    }

    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
        bottom: -52%;
        right: -54%;
    }
}

/* Media Query für kleinere Bildschirme */
@media (max-width: 768px) {
    .floating-image {
        width: 150px;
    }
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #57505000;
    color: #000;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

/* MOBILE OPTIMIERUNG (contact.css) */
@media (max-width: 768px) {
    /* 1. Basis-Layout */
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* 2. Header anpassen */
    header {
        position: relative;
        padding: 15px;
    }
    header h1 {
        font-size: 28px;
    }

    /* 3. Sidebar als vertikales Menü */
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        left: auto;
        padding: 10px;
        margin-bottom: 20px;
    }

    /* 4. Content-Bereich */
    .content {
        padding: 20px 15px 100px !important;
        margin-top: 20px;
        width: 85%;
    }
    .content p {
        font-size: 14px;
    }

    /* 5. Email-Container */
    .email-container {
        width: 100%;
        margin: 20px 0;
    }
    .email-container h2 {
        padding-right: 20px;
        font-size: 18px;
    }

    /* 6. Floating Image */
    .floating-image {
        position: fixed;
        width: 60vw; /* Relative Größe zum Viewport */
        max-width: 300px; /* Maximale Größe */
        right: -20vw; /* Leicht aus dem Bildschirm ragend */
        bottom: 78vw;
        opacity: 0.8;
        z-index: 100;
        animation: none; /* Animation deaktivieren */
        transform: rotate(0deg); /* Leichte Rotation für Dynamik */
    }

    /* 7. Contact-Link */
    .contact {
        position: fixed;
        bottom: 15px;
        left: 15px;
        font-size: 22px;
    }

    /* 8. Footer */
    footer {
        position: fixed;
        bottom: 15px;
        right: 15px;
        width: auto;
        background: transparent;
        padding: 0;
        text-align: right;
    }
    footer p {
        font-size: 10px;
    }
}

/* Feinjustierung für kleine Displays */
@media (max-width: 480px) {
    .content {
        padding: 15px 10px 80px !important;
    }
    .email-container h2 {
        font-size: 16px;
    }
    .floating-image {
        width: 150px;
    }
}

/* ==================== */
/* LAPTOP OPTIMIERUNGEN (768px–1200px) */
/* ==================== */
@media (min-width: 769px) and (max-width: 1200px) {
    /* 1. Sidebar schmaler und kompakter */
    .sidebar {
        width: 180px;
        padding: 15px 5px;
    }
    .sidebar nav ul li a {
        font-size: 22px;
        padding: 8px 5px;
    }
    .submenu a {
        font-size: 16px !important;
    }

    /* 2. Content-Bereich anpassen */
    .content {
        padding-left: 220px; /* Weniger Abstand für Sidebar */
        padding-top: 150px; /* Höherer Inhalt */
        padding-bottom: 100px;
    }

    /* 3. E-Mail-Container */
    .email-container {
        width: 70%;
        margin: 20px 0;
    }
    .email-container h2 {
        padding-right: 80px;
        font-size: 18px;
    }

    /* 4. Floating Image */
    .floating-image {
        width: 800px;
        bottom: -400px;
        right: -400px;
        animation: floatUp 1.5s forwards;
    }

    /* 5. Kontakt-Link */
    .contact {
        font-size: 24px;
        bottom: 15px;
        left: 15px;
    }

    /* 6. Footer */
    footer {
        font-size: 12px;
    }
}

/* Animation für Laptops anpassen */
@media (min-width: 769px) and (max-width: 1200px) {
    @keyframes floatUp {
        0% {
            bottom: -800px;
            right: -50%;
            opacity: 0;
        }
        100% {
            bottom: 7%;
            right: -45%;
            opacity: 1;
        }
    }
}
/* ==================== */
/* MID-RANGE DESKTOP OPTIMIERUNG (1201px-1600px) */
/* ==================== */
@media (min-width: 1201px) and (max-width: 1600px) {
    /* 1. Header Anpassungen */
    header {
        padding: 25px;
    }
    
    header h1 {
        font-size: 32px;
    }
    
    /* 2. Sidebar */
    .sidebar {
        width: 250px;
        top: 70px;
    }
    
    .sidebar nav ul li a {
        font-size: 26px;
        padding: 10px;
    }
    
    .sidebar .submenu a {
        font-size: 20px !important;
    }
    
    /* 3. Content-Bereich */
    .content {
        padding-left: 300px;
        padding-top: 180px;
        padding-bottom: 120px;
    }
    
    .content p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* 4. Email-Container */
    .email-container {
        width: 70%;
        margin: 30px 0;
    }
    
    .email-container h2 {
        font-size: 22px;
        padding-right: 80px;
    }
    
    /* 5. Floating Image */
    .floating-image {
        width: 900px;
        bottom: -450px;
        right: -450px;
    }
    
    /* 6. Kontakt-Link */
    .contact {
        font-size: 26px;
        bottom: 25px;
        left: 25px;
    }
    
    /* 7. Footer */
    footer {
        font-size: 13px;
    }
    
    /* 8. Animation anpassen */
    @keyframes floatUp {
        0% {
            bottom: -700px;
            right: -50%;
            opacity: 0;
        }
        100% {
            bottom: -4%;
            right: -50%;
            opacity: 1;
        }
    }
}

/* ==================== */
/* FULL HD OPTIMIERUNG (1920x1080) */
/* ==================== */
@media (min-width: 1601px) and (max-width: 1920px) {
    /* 1. Header Anpassungen */
    header {
        padding: 30px;
    }
    
    header h1 {
        font-size: 36px;
    }
    
    /* 2. Sidebar */
    .sidebar {
        width: 280px;
        top: 80px;
    }
    
    .sidebar nav ul li a {
        font-size: 30px;
        padding: 12px;
    }
    
    .sidebar .submenu a {
        font-size: 22px !important;
    }
    
    /* 3. Content-Bereich */
    .content {
        padding-left: 350px;
        padding-top: 200px;
        padding-bottom: 150px;
    }
    
    .content p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* 4. Email-Container */
    .email-container {
        width: 60%;
        margin: 40px 0;
    }
    
    .email-container h2 {
        font-size: 24px;
        padding-right: 100px;
    }
    
    /* 5. Floating Image */
    .floating-image {
        width: 1000px;
        bottom: -500px;
        right: -500px;
    }
    
    /* 6. Kontakt-Link */
    .contact {
        font-size: 30px;
        bottom: 30px;
        left: 30px;
    }
    
    /* 7. Footer */
    footer {
        font-size: 14px;
    }
    
    /* 8. Animation anpassen */
    @keyframes floatUp {
        0% {
            bottom: -800px;
            right: -50%;
            opacity: 0;
        }
        100% {
            bottom: 13%;
            right: -25%;
            opacity: 1;
        }
    }
}

/* ==================== */
/* EXAKTE OPTIMIERUNG für 3024x1964 */
/* ==================== */
@media (width: 3024px) and (height: 1964px) {
    header {
        padding: 20px;
    }

    header h1 {
        font-size: 54px;
    }

    .sidebar {
        width: 400px;
        top: 80px;
    }

    .sidebar nav ul li a {
        font-size: 36px;
        padding: 16px;
    }

    .sidebar .submenu a {
        font-size: 26px !important;
    }

    .content {
        padding-left: 480px;
        padding-top: 680px;
        padding-bottom: 200px;
    }

    .content p {
        font-size: 20px;
        line-height: 1.6;
    }

    .email-container {
        width: 65%;
        margin: 50px 0;
    }

    .email-container h2 {
        font-size: 28px;
        padding-right: 140px;
    }

    .floating-image {
        width: 1600px;
        bottom: -600px;
        right: -700px;
    }

    .contact {
        font-size: 36px;
        bottom: 40px;
        left: 40px;
    }

    footer {
        font-size: 18px;
    }

    @keyframes floatUp {
        0% {
            bottom: -1000px;
            right: -50%;
            opacity: 0;
        }
        100% {
            bottom: 9%;
            right: -30%;
            opacity: 1;
        }
    }
}
