html, body {
    margin: 0;
    padding: 0;
    height: 100%; 
}

body {
    font-family: "Segoe UI", sans-serif;
    color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    align-items: center;
    width: 100%;
    height: 4.5rem;
    text-transform: uppercase;
	letter-spacing: 0.1em;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 3px 8px rgb(158, 158, 158);
    z-index: 5;
}

main {
    flex-grow: 1;
    position: relative;
    margin-top: 6rem;
}

footer {
    display: flex;
    width: 100%;
}

a {
	color: rgb(0, 0, 0);
	text-decoration: none;
}

h1 {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.2em;
}

h2 {
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.1em;
}

/* From portfolio*/

.portfolio-container *, .heading h2 {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
  
img {
    display: block;
    max-width: 100%;
    height: auto;
}
  

/* End from portfolio*/

.logo {
    margin-left: 5rem;
    min-width: max-content;
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin-right: 5rem;
}

.menu ul li {
    list-style-type: none;
    display: inline-block; 
    padding-right: 1em;

}

/* ----- Start from Internet ----- */

#site-navigation {
    display: block;
    height: 48px;
  }
   
  #site-navigation #main-menu,
  #site-navigation > input {
    display: none;
  }
   
  #site-navigation > label {
    display: block;
    font-size: 36px;
    color: rgb(0, 0, 0);
    position: absolute;
    right: 20px;
    width: 36px;
    padding: 0;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  #site-navigation > input:checked {
      min-width: 100%;
  }
   
  #site-navigation > input:checked + #main-menu {
    display: block;
    clear: both;
    top: 4.5rem;
    position: absolute;
    background: rgba(255,255,255, 0.9);
    color: rgb(0, 0, 0);
    width: 100%;
    height: max-content;
    right: 0px;
    padding: 0;
    text-align: center;
    box-shadow: 0px 3px 8px rgb(158, 158, 158);
  }
   
  #site-navigation ul li {
    display: block;
    padding: 12px 10px;
  }
   
  #site-navigation a {
    text-decoration: none;
    color: rgb(0, 0, 0);
  }
   
  @media only screen and (min-width: 1000px) {
    #site-navigation {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
        margin-right: 5rem;
    }
    #site-navigation #main-menu {
      display: block;
    }
    #site-navigation > label {
      display: none
    }
    #site-navigation ul li {
      display: inline-block;
      padding-right: 1em;
      padding-left: 0;
      padding-top: 0;
      padding-bottom: 0;
    }
  }

/* ----- End from Internet ----- */

/* ----- Ausgangskonfiguration Banner (Smartphone-Größe) ----- */

.banner {
    display: block;
    background-image: url("./images/plan-1.jpg");
    background-size: 100% auto;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    color: rgb(0,0,0);
    padding-top: 4em;
    padding-bottom: 8em;
    width: 100%;
}

.banner div {
    background-color: rgb(255, 255, 255);
    width: 90%;
    position: relative;
    left:1%;
    padding: 0.5rem 1rem;
    border: thin solid;
}

/* ----- Klassen ----- */

.heading {
    width: 100%;
    display: block;
    background-color: rgb(96, 134, 129);
    position: relative;
    height: min-content;
    text-align: center;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.content-center, .content-left {
    position: relative;
    top: 1.5rem;
    margin-bottom: 2rem;
    margin-left: 5rem;
    margin-right: 5rem;
    display: flex;
    flex-direction: column; 
    line-height: 1.8rem;
}

.content-center {
    align-items: center;
}

.content-left {
    align-items: flex-start;
}


.content-center *, .content-left * {
    max-width: 100%;
    width: fit-content;
    height: fit-content;
}

.content-center ol h2 li, .content-left h2 {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.content-center ol p, .content-left p {
    margin-left: 1rem;
}

.address {
    width: max-content;
    margin-top: 1rem;
}

.telecommunication {
    display: grid;
    gap: 0.5rem;
    width: fit-content;
    margin-top: 1.5rem;
}

.one-one {
    grid-column: 1;
    grid-row: 1;
}

.one-two {
    grid-column: 2;
    grid-row: 1;
}

.two-two {
    grid-column: 2;
    grid-row: 2;
}

.three-one {
    grid-column: 1;
    grid-row: 3;
}

.three-two {
    grid-column: 2;
    grid-row: 3;
}

.four-one {
    grid-column: 1;
    grid-row: 4;
}

.four-two {
    grid-column: 2;
    grid-row: 4;
}

.five-one {
    grid-column: 1;
    grid-row: 5;
}

.five-two {
    grid-column: 2;
    grid-row: 5;
}

.h2-leistungen {
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

.ul-leistungen {
    margin: 0;
}

.first-col {
    min-width: 8rem;
}

.first-col-wide {
    min-width: 9.5rem;
}

td {
    min-height: 2rem;
    padding-bottom: 0.8rem;
}

tr {
    display: flex;
}


.person .first-col {
    min-width: 7.5rem;
    text-align: left;
}

.article-person {
    margin: 0 0 2rem 0;
}

.article-person p {
    margin: 0 0 0.3rem 0;
}

#empty-line {
    height: 1rem;
}

@media only screen and (max-width: 650px) {                 /* Smartphone-Größe */
    .logo {
        margin-left: 2.5rem;
    }

    html {
        font-size: 14px;
    }

    .content-center, .content-left {
        margin-left: 2.5rem;
        margin-right: 2.5rem;
    }

    .presentation {
        display: flex;
        position: relative;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        height: 100%;
        max-width: 100%;
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;
    
    }

    .presentation figure {
        margin: 0 0 2rem 0;
    }
    
    .presentation figure img {
        max-width: 100%;
    }

    table {
        margin: 0;
    }
}
       
@media only screen and (min-width: 650px) {                         /* Tablet-Größe */
    .banner div {
        width: 80%;
        left: 8%;
    }
    
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }  
    
    .presentation {
        display: flex;
        position: relative;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        height: max-content;
        max-width: 100%;
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;
    }

    .presentation figure {
        margin: 0 0 2rem 0;
    }
    
    .presentation figure img {
        max-width: 100%;
    }

    table {
        margin: 0;
    }

    @media only screen and (min-width: 900px) {                         /* Laptop-Größe */
        .banner {
            padding-bottom: 12em;
        }
        
        .banner div {
            width: 60%;
            left: 18%;
        }
        
        .projects {
            grid-template-columns: repeat(3, 1fr);
        }

        .presentation {            
            padding-left: 5rem;
            padding-right: 5rem;            
            align-items: flex-start;
            justify-content: space-evenly;
            flex-direction: row;
        }
        
        .presentation figure img {
            max-width: 50rem;
        }

        @media only screen and (min-width: 1200px) {
             .banner div {
                width: 50%;
                left: 22%;
            }

            @media only screen and (min-width: 1700px) {
                .banner div {
                    width: 35%;
                    left: 32.5%;
                }
            }
        }

    }   
}

/* ----- Portfolio ----- */

#project-portfolio {
    padding: 1.5rem;
 }
  
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;    
}

input[type="radio"] {                       /* hide radio buttons*/
    position: absolute;
    left: -9999px;
}

    /* ----- Filters ----- */

:root {
    --black: #1a1a1a;
    --white: #fff;
    --green: rgb(96, 134, 129);
      }
       
.filters {
    text-align: center;
    margin-bottom: 2rem;
}
       
.filters * {
    display: inline-block;
}
       
.filters label {
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 2rem;
    min-width: 50px;
    line-height: normal;
    cursor: pointer;
    transition: all 0.1s;
} 

.filters label:hover {
    background: var(--green);
    color: var(--white);
}

    /* ----- Layout ----- */

.projects {
    display: grid;
    grid-gap: 1.5rem;
}
       
.projects .project {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
       
.projects .project-title {
    font-size: 1.3rem;
}
       
.projects .project-title:hover {
    text-decoration: underline;
}
       
.projects figcaption {
    padding: 1rem;
}
       
.projects .project-categories {
    margin-bottom: 0.25rem;
    font-size: .75rem;
}
       
.projects .project-categories * {
    display: inline-block;
}
       
       


    /* FILTERING RULES */
[value="Alles"]:checked ~ .filters [for="Alles"],
[value="Architektur"]:checked ~ .filters [for="Architektur"],
[value="Stadtplanung"]:checked ~ .filters [for="Stadtplanung"] {
  background: var(--green);
  color: var(--white);
}

[value="Alles"]:checked ~ .projects [data-category] {
  display: block;
}

[value="Architektur"]:checked ~ .projects .project:not([data-category~="Architektur"]),
[value="Stadtplanung"]:checked ~ .projects .project:not([data-category~="Stadtplanung"]) {
  display: none;
}