@media (max-width: 1120px) {

    /* Über mich */
    #indexAboutMe>div {
        flex-direction: column;
        gap: 0;
    }

    #indexAboutMe p {
        max-width: 100%;
    }

    #indexAboutMe>hr {
        display: none;
    }
    section#beitragsSection .beitragsGridItem {
        grid-column-start: 1;
    }

    .projectsSection > div {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    #dienstleistungsAccordion {
        width: 50vw;
    }
}

@media (max-width: 880px) {
    #dienstleistungsAccordion {
        max-width: 100%;
        padding: 2rem 0 0 0;
        width: 100%;
    }
}

/* Tablet screens (768px and up) */
@media (max-width: 768px) {
    section {
        margin: 5rem 0rem;
    }

    section h2 {
        font-size: 1.5rem
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.125rem;
    }

    h6 {
        font-size: 0.875rem;
    }

    small {
        font-size: 0.75rem;
    }

    p {
        font-size: 0.875rem;
    }

    /* Logo in Nav */
    #logo {
        gap: 1rem;
    }

    #logo a {
        font-size: 1.5rem;
    }

    #logo svg {
        width: 24px;
    }

    .mobileNav ul li {
        padding-left: 2rem;
    }

    .rectPadding {
        padding: 1rem;
    }

    /* Header */
    #header {
        gap: 0;
        margin: 2rem 0;
    }

    #header h1 {
        font-size: 2rem;
        margin-bottom: 1rem
    }

    #header h3 {
        font-size: 1.5rem;
    }

    #header .ulHeader {
        margin-bottom: 0.5rem;
    }

    #header ul {
        font-size: 1.25rem;
    }

    /* Section Text */
    .sectionText1 {
        margin: 3rem 0;
    }

    .sectionText1 h2 {
        font-size: 1.5rem
    }

    /* Dienstleistungs Accordion */
    #dienstleistungsAccordion button {
        font-size: 1.25rem;
    }

    /* Beitragsgrid */

    .beitragsGridItem {
        grid-column-start: 1;
    }

    .beitragsGridItem img {
        max-height: 5rem;
    }

    #headerImg {
        margin-top: 3rem;
        position: relative;
        right: 0;
        box-shadow: none;
    }

    #headerImg svg {
        scale: 0.5;
    }

    #headerImg>div.svgInside {
        padding: 1rem;
    }

    #headerImg>div.textBox p {
        font-size: 1rem;
    }

    .beitragsGridItemHeader {
        display: flex;
        flex-direction: column-reverse;
    }

    .beitragsGridItem div p.date {
        margin: 0.5rem 0;
    }

    .projectsSection > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Phone screens (480px and up) */
@media (max-width: 480px) {
    header {
        padding: 0 1rem;
    }

    section {
        margin: 2rem 0rem;
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.875rem;
    }

    h6 {
        font-size: 0.75rem;
    }

    small {
        font-size: 0.7rem;
    }

    p {
        font-size: 0.75rem;
    }

    #logo {
        gap: 0.5rem;
    }

    #logo a {
        font-size: 1.2rem;
    }

    #logo svg {
        width: 20px;
    }

    .mobileNav ul li {
        padding-left: 1.5rem;
    }

    #header {
        margin-top: 2rem;
        margin-bottom: 2rem;
        gap: 0;
    }

    #header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #header h2 {
        font-size: 1.5rem;
    }

    #header h3 {
        font-size: 1.2rem;
    }

    #header ul {
        font-size: 1.25rem;
    }

    .projectsSection > div {
        grid-template-columns: repeat(1, 1fr);
    }

    .beitragsGridItem {
        flex-direction: column;
    }
    .beitragsGridItemHeader h3 {
        margin-bottom: 0.5rem;
    }
    section#beitragsSection .beitragsGridItem {
        gap: unset;
    }
    section#beitragsSection .beitragsGridItem img{
        max-height: unset;
        max-width: 7rem;
        /* margin: 0 auto; */
        margin-left: auto;
    }
}

@media (max-width: 1340px) {
    #desktopNav {
        display: none;
    }

    #mobileNav {
        display: block;
    }

    #hamburgerMenue {
        display: block;
    }
}

@media (hover: none) and (pointer: coarse) {
    .buttonHighlight:hover{
        box-shadow: black 3px 3px;
        top: 0;
        left: 0;
    }
    #headerImg:hover{
        box-shadow: black 3px 3px;
        bottom: 0;
        right: 0;
    }
}

/*
@media (max-width: 396px) {
    h1 {
        color: red;
    }
}
*/