html * {

    font-family:Arial, Helvetica, sans-serif;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}


header {
    width: 100%;
    background-color: #012E40;
    color: white;
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    box-sizing: border-box;
}

header > div {
    justify-self: start;
    font-size: 40px;
}

nav {
    display: contents; 
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul:first-child {
    justify-content: center; 
    grid-column: 2; 
}

nav ul:last-child {
    justify-content: flex-end; 
    grid-column: 3;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

nav ul li.bf {
    display: none;
 }

body {
    margin: 0;
    background-image: url('BookBlur.JPG');
    background-size: cover;
    background-position: center center; 
    background-repeat: no-repeat; 
}

.willkommen-text {
    background: #f4f4f4;
    padding: 40px;
    text-align: justify;
    width: 80%;
    margin: 20px auto;
    font-size: 20px;
}

.rechtsgebiete {
    background: #f4f4f4;
    padding: 40px;
    text-align: center;
}

.rechtsgebiete-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rechtsgebiet-box {
    background: #026773;
    color: rgb(255, 255, 255);
    padding: 20px;
    text-decoration: none;
    font-size: 20px;
    text-align: center;
    border-radius: 5px;
}

.spacer {
    padding: 50px;
}

.spacer2 {
    padding: 25px;
}

.logo {
    width: 20px;
    height: 20px;
}

.profile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px;
}

.person {
    background: #f4f4f4;
    padding: 60px;
    border-radius: 80px;
    text-align: center;
    width: 300px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.person img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    padding: 0px;
}

.qualifikationen-box {
    background: #a0c4ec;
    padding: 50px;
    border-radius: 40px;
    text-align: left;
    width: 300px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 20px;
}

.info-text {
    background: #f4f4f4;
    padding: 40px;
    text-align: justify;
    width: 80%;
    margin: 20px auto;
    font-size: 20px;
}

.info-text img {
    flex: 0 0 35%;      
    max-width: 280px;   
    height: auto;
    float:right;
    border-radius: 8px;
    margin-right: 180px;
}

#footer {
    display: flex;            
    justify-content: space-between; 
    align-items: center;      
    background-color: #012E40; 
    color: white;             
    padding: 40px 0px;      
    width: 100%;            
}

#footer a{
    display: none;
}
#footer div:first-child {
    margin-left: 100px;
    font-size: 40px;
}

.footer-logo {
    font-size: 36px;         
    font-weight: bold;        
    margin-left: 100px;      
}

.footer-info p {
    margin: 5px 180px;             
    font-size: 14px;           
}

html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1; 
}

@media (max-width: 768px) {

    header {
        grid-template-columns: 1fr; 
        text-align: center;
        padding: 10px; 
        overflow-x: hidden;
    }

    header > div {
        justify-self: center; 
    }

    nav ul {
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
    }

    nav ul:first-child,
    nav ul:last-child {
        justify-content: center; 
        grid-column: auto;        
        margin: 5px 0;            
        flex-direction: column;   
    }

    nav ul li.be {
        display:none;
    }

    nav ul li.bf {
       display: inline;
    }

    .spacer {
        padding-top: 80px;
    }

    .rechtsgebiete-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
        padding: 20px;
    }

    .rechtsgebiet-box {
        font-size: 18px;
        padding: 15px;
    }

    .profile {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .person {
        width: 90%;            
        max-width: 400px;      
        margin: 0 auto;       
        padding: 15px;         
        border-radius: 20px;
        box-sizing: border-box; 
    }

    .qualifikationen-box {
        width: 100%;            
        max-width: 100%;
        padding: 10px;          
        font-size: 14px;
        box-sizing: border-box;
        margin-top: 10px;
        border-radius: 20px;
    }

    .info-text {
        width: 80%;
        padding: 20px;
        font-size: 14px;
    }

    .info-text img {
        float: none;
        width: 0px;
        height: 0px;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 0%;
        height: auto;
        border-radius: 8px;
    }

    #footer {
        flex-direction: column;
        text-align: center;
        padding: 0px;
    }
    #footer div:first-child {
        margin-left: 0px;
    }

    .footer-logo,
    .footer-info p {
        margin: 5px 0;
        display: none;
    }

    #footer a{
        display: flex;
        font-size: 20px;
        margin-bottom: 20px;
        text-decoration: none;
        color: white;
    }

    .willkommen-text {
        display:none;
    }

}
