/************************************** MEDIA QUERY's for small Screens **************************************************************/ 

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    /* Navbar Anpassungen */

    .topnav a:not(:first-child), .dropdown .dropbtn {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
    .topnav.responsive {
        position: relative;
    }
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .topnav.responsive .dropdown {
        float: none;
    }
    .topnav.responsive .dropdown-content {
        position: relative;
    }
    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
    .main-container {
        display: flex;
        flex-direction: column;
    }
    .form-section {
        padding-top: 100px;
    }

    /* Logo Anpassungen */
    .logo {
        width: auto;
        max-width: 70px;
        position: relative;
        margin-top: 10px;
        margin-left: 25px;
    }

    /* Linie Anpassungen */
    .line {
        width: 100%;
        margin: 0;
    }

    /* Über mich Abschnitt Anpassungen */
    .text-decoration {
        flex-direction: column;
        align-items: flex-start;
    }

    .content {
        padding-left: 10px;
        padding-right: 10px;
    }
    .imgme {
        order: 2;
        margin-left: 0;
        margin-top: 20px;
        margin-right: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 0;
        margin-bottom: 10px;
    }
    .imageofme {
        width: auto;
        max-width: 100%;
        height: auto;
        padding-left: 20px;
    }
    .flex-container {
        display: ruby;
    }
    .me {
        max-width: 100%;
        padding: 0px;
    }
    .me p {
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Footer Anpassungen */
    .footer-section {
        position: static;
        max-height: none;
    }
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-title {
        order: -1;
        margin-bottom: 20px;
    }
    .footer-contact-column {
        order: 0;
    }

    .footer-logo-column {
        order: -1;
        top: 0;
        padding-left: 0;
        margin-bottom: 20px;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-menu {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    .footer-menu ul {
        display: block;
    }

    .footer-menu li {
        display: inline-block;
        margin: 0 10px;
    }

    .footer-menu li a {
        display: inline;
        font-size: 14px; /* Ggf. Schriftgröße für kleinere Bildschirme anpassen */
    }
    /* ********************* CSS for ubermich.html -> Grafik nach Text ******************* */
    .flex-container {
        display: flex;
        flex-direction: column; /* Layout auf Spalten umstellen */
        align-items: center; /* Inhalte in der Mitte ausrichten */
    }
    /* Text bleibt oben */
    .me {
        order: 1; /* Text wird zuerst angezeigt */
        max-width: 100%; /* Breite anpassen */
        padding: 0px;
    }

    /* Bild wird unterhalb des Textes angezeigt */
    .imageofme {
        order: 2; /* Bild nach dem Text anzeigen */
        width: auto;
        max-width: 100%; /* Bildbreite auf 100% setzen */
        height: auto;
        padding-left: 0;
        padding-right: 0;
        padding-top: 20px; /* Abstand nach oben */
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
    /* Navbar Anpassungen */
    .topnav a:not(:first-child), .dropdown .dropbtn {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
    .topnav.responsive {
        position: relative;
    }
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .topnav.responsive .dropdown {
        float: none;
    }
    .topnav.responsive .dropdown-content {
        position: relative;
    }
    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }

    /* Logo Anpassungen */
    .logo {
        width: auto;
        max-width: 70px; /* Größere maximale Breite für kleinere Tablets */
        position: relative;
        margin-top: 15px; /* Etwas mehr Abstand nach oben */
        margin-left: 30px; /* Etwas mehr Abstand nach links */
        
    }

    /* Linie Anpassungen */
    .line {
        width: 100%;
        margin: 0;
    }

    /* Über mich Abschnitt Anpassungen */
    .text-decoration {
        flex-direction: column;
        align-items: flex-start;
    }
    .imgme {
        order: 1;
        margin-left: 0;
        margin-top: 20px;
        margin-right: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 0;
    }
    .imageofme {
        width: auto;
        max-width: 100%;
        height: auto;
    }
    .me {
        max-width: 100%;
        padding: 0px;
    }

    .me p {
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Footer Anpassungen */
    .footer-section {
        position: static;
        max-height: none;
    }
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-title {
        order: -1;
        margin-bottom: 20px;
    }
    .footer-contact-column {
        order: 0;
    }
    .footer-row {
        flex-direction: column;
    }
    .footer-logo-column {
        order: -1;
        top: 0;
        padding-left: 0;
        margin-bottom: 20px;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-menu {
        justify-content: center;
        margin-top: 20px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    /* Navbar Anpassungen */
    .topnav a:not(:first-child), .dropdown .dropbtn {
        display: inline-block; /* Navbar Items sichtbar machen */
    }
    .topnav a.icon {
        display: none; /* Menu Icon ausblenden */
    }

    /* Logo Anpassungen */
    .logo {
        width: auto;
        max-width: 120px; /* Größere maximale Breite für Tablets */

        margin-top: 20px; /* Mehr Abstand nach oben */
        margin-left: 35px; /* Mehr Abstand nach links */
        display: inline-block; /* Logo neben der Navbar */
        vertical-align: middle; /* Vertikale Ausrichtung */
    }

    /* Linie Anpassungen */
    .line {
        width: 70%; /* Breite der Linie auf 80% setzen */
        margin: auto; /* Zentrieren */
    }

    /* Über mich Abschnitt Anpassungen */
    .text-decoration {
        flex-direction: row; /* Zurück zu Zeilenlayout */
        align-items: center;
    }
    .imgme {
        order: 0; /* Bild zurück an den Anfang */
        margin-left: 0;
        margin-top: 0;
        margin-right: 20px; /* Etwas Abstand rechts */
        width: 40%; /* Bildbreite auf 40% setzen */
        display: flex;
        justify-content: center;
        padding-bottom: 0;
    }
    .imageofme {
        width: 35%;
        max-width: 100%;
        height: auto;
    }
    .me {
        max-width: 60%; /* Textbereich auf 60% setzen */
    }
    .imgme {
        margin-bottom: 10px;
        margin-top: 0;
    }
    .me p {
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Footer Anpassungen */
    .footer-section {
        position: static;
        max-height: none;
    }
    .footer-content {
        display: flex;
        flex-direction: row; /* Zurück zu Zeilenlayout */
        align-items: flex-start;
        text-align: left;
    }
    .footer-title {
        order: 0; /* Titel zurück an den Anfang */
        margin-bottom: 20px;
    }
    .footer-contact-column {
        order: 0;
    }
    .footer-row {
        flex-direction: row; /* Zurück zu Zeilenlayout */
    }
    .footer-logo-column {
        order: 0;
        top: 0;
        padding-left: 0;
        margin-bottom: 0;
    }
    .footer-logo {
        justify-content: flex-start;
    }
    .footer-menu {
        justify-content: flex-start;
        margin-top: 0;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    /* Navbar Anpassungen */
    .topnav a:not(:first-child), .dropdown .dropbtn {
        display: inline-block; /* Navbar Items sichtbar machen */
    }
    .topnav a.icon {
        display: none; /* Menu Icon ausblenden */
    }

    /* Logo Anpassungen */
    .logo {
        width: auto;
        max-width: 150px; /* Größere maximale Breite für Laptops */
        position: absolute; /* Position absolut setzen */
        top: 25px; /* Abstand nach oben */
        right: 40px; /* Abstand nach rechts */
    }

    /* Linie Anpassungen */
    .line {
        width: 80%; /* Breite der Linie auf 80% setzen */
        margin-right: auto; /* Zentrieren */
    }

    /* Über mich Abschnitt Anpassungen */
    .text-decoration {
        flex-direction: row; /* Zurück zu Zeilenlayout */
        align-items: center;
    }
    .imgme {
        order: 0; /* Bild zurück an den Anfang */
        margin-left: 0;
        margin-top: 0;
        margin-right: 20px; /* Etwas Abstand rechts */
        width: 40%; /* Bildbreite auf 40% setzen */
        display: flex;
        justify-content: center;
        padding-bottom: 0;
    }
    .imageofme {
        width: 25%;
        max-width: 100%;
        height: auto;
    }
    .me {
        max-width: 60%; /* Textbereich auf 60% setzen */
        padding: 0px;
    }
    .imgme {
        margin-bottom: 10px;
        margin-top: 0;
    }
    .me p {
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Footer Anpassungen */
    .footer-section {
        position: static;
        max-height: none;
    }
    .footer-content {
        display: flex;
        flex-direction: row; /* Zurück zu Zeilenlayout */
        align-items: flex-start;
        text-align: left;
    }
    .footer-title {
        order: 0; /* Titel zurück an den Anfang */
        margin-bottom: 20px;
    }
    .footer-contact-column {
        order: 0;
    }
    .footer-row {
        flex-direction: row; /* Zurück zu Zeilenlayout */
    }
    .footer-logo-column {
        order: 0;
        top: 0;
        padding-left: 0;
        margin-bottom: 0;
    }
    .footer-logo {
        justify-content: flex-start;
    }
    .footer-menu {
        justify-content: flex-start;
        margin-top: 0;
    }
}

