/* Colors */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffffff;
  --third-color: #ffd700;
  --fourth-color: #e5e5e5;
}

/* General Style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Headings */
h1, h2, h3 {
    font-weight: bold;
    color: var(--secondary-color);
}
.heading {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: bold;
    padding: 1em 2em;
    display: flex;
    text-align: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1em 2em;
    display: flex;
    text-align: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-left {
    display: flex;
    align-items: center;
}
.navbar-left a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    position: relative;
}
.navbar-logo {
    background-color: var(--secondary-color);
    width: 50px;
    height: 50px;
    margin-right: 20px;
    border: 2px solid var(--third-color);
    border-radius: 50px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.navbar-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.navbar-text {
    font-weight: bold;
    font-size: 30px;
    color: var(--secondary-color);
    position: relative;
}
.navbar-text::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--third-color);
    position: absolute;
    left: 0;
    bottom: -1px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.navbar-text:hover::after {
    transform: scaleX(1);
}
.navbar-text:hover {
    color: var(--third-color);
}
.navbar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.navbar-list li {
    margin-left: 30px;
    position: relative;
}
.navbar-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px 0;
}
.navbar-list a:hover {
    color: var(--third-color);
    transform: translateY(-2px);
}
.navbar-list li::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--third-color);
    position: absolute;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.navbar-list li:hover::after {
    transform: scaleX(1);
}

/* About-Section */
.about-section {
    background-image: url('images/bavaria_flag.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5em 2em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.about-section img.portrait {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--third-color);
    margin-right: 100px;
    position: relative;
    z-index: 2;
}
.portrait {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.portrait:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.about-text {
    position: relative;
    z-index: 2;
}
.about-section h1, .about-section p {
    color: var(--secondary-color);
}
.about-section h1 {
    font-size: 60px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}
.about-section p {
    font-size: 40px;
    margin-top: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Work-Section */
.work-section {
    background-image: url('images/terrazzo.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
}
.work-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.project {
    background-color: var(--primary-color);
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 400px;
    height: 1050px;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 20px;
    padding: 20px;
    transition: transform 0.2s ease-in-out;
    border: 3px solid var(--third-color);
    position: relative;
    z-index: 2;
}
.project:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.project img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--third-color);
}
.project h3 {
    color: var(--secondary-color);
    font-size: 26px;
    margin-bottom: 20px;
}
.project a {
    text-decoration: none;
    color: var(--secondary-color);
}
.project-description {
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    margin-top: 7px;
}

/* Certificates-Section */
.certifications-section {
    background-image: url('images/terrazzo.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
}
.certifications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.certification h3 {
    color: var(--secondary-color);
    font-size: 26px;
    padding-bottom: 30px;
    flex-grow: 0;
}
.certification {
    background-color: var(--primary-color);
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px;
    padding: 30px;
    transition: transform 0.2s ease-in-out;
    border: 3px solid var(--third-color);
    position: relative;
    z-index: 2;
}
.certification:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.certification img {
    background-color: var(--secondary-color);
    width: 200px;
    height: 200px;
    margin-top: 40px;
    border-radius: 15px;
    border: 2px solid var(--third-color);
    flex-grow: 1;
}
.certification a {
    text-decoration: none;
}

/* Contact-Section */
.contacts-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: url(images/bavaria_flag.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.contacts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.contact h3 {
    color: var(--secondary-color);
    font-size: 26px;
    margin-top: -5px;
    margin-bottom: 15px;

    flex-grow: 0;
}
.contact {
    background-color: var(--primary-color);
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px;
    padding: 30px;
    transition: transform 0.2s ease-in-out;
    border: 3px solid var(--third-color);
    position: relative;
    z-index: 2;
}
.contact:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.contact img {
    width: 100px;
    height: auto;
    margin-top: 25px;
    border-radius: 15px;
    border: 2px solid var(--third-color);
    flex-grow: 1;
}
.contact a {
    text-decoration: none;
}

/* Impressum */
.impressum-main h3 {
    color: var(--third-color);
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 20px;
}
.impressum-main p {
    color: var(--secondary-color);
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 15px;
}
.impressum-main a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}
.impressum-main a:hover {
    color: var(--third-color);
}
.impressum-main a::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--third-color);
    position: absolute;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.impressum-main a:hover::after {
    transform: scaleX(1);
}
.impressum-section, .datenschutz-section, .agb-section {
    background-image: url('images/bavaria_flag.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5em 2em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.impressum-section::before, .datenschutz-section::before, .agb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.impressum-container {
    background-color: var(--primary-color);
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 800px;
    height: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px;
    padding: 20px;
    transition: transform 0.2s ease-in-out;
    border: 3px solid var(--third-color);
    position: relative;
    z-index: 2;
}
.datenschutz-container {
    background-color: var(--primary-color);
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 1000px;
    height: 1220px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px;
    padding: 60px 60px;
    transition: transform 0.2s ease-in-out;
    border: 3px solid var(--third-color);
    position: relative;
    z-index: 2;
}
.agb-container {
    background-color: var(--primary-color);
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 1000px;
    height: 3250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px;
    padding: 60px 60px;
    transition: transform 0.2s ease-in-out;
    border: 3px solid var(--third-color);
    position: relative;
    z-index: 2;
}
.stand {
    font-size: 0.8em;
    margin-top: 40px;
}
.impressum-container:hover, .datenschutz-container:hover, .agb-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1em;
    text-align: center;
}
footer p {
    font-size: 22px;
    margin-bottom: 10px;
}
.footer-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px 0;
    position: relative;
}
.footer-link a:hover {
    color: var(--third-color);
    transform: translateY(-2px);
}
.footer-link a:visited {
    color: var(--secondary-color);
}
.footer-link a::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--third-color);
    position: absolute;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.footer-link a:hover::after {
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Navigation */
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 1em;
    }
    .navbar-list {
        flex-direction: column;
        margin-top: 10px;
    }
    .navbar-list li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    /* About-Section */
    .about-section {
        flex-direction: column;
        padding: 3em 1em;
    }
    .about-section img.portrait {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 80%;
    }
    .about-section h1 {
        font-size: 40px;
    }
    .about-section p {
        font-size: 30px;
    }

    /* Work-Section */
    .work-section {
        padding: 10px;
    }
    .project {
        width: 90%;
        height: auto;
        margin: 10px 0;
    }

    /* Contact-Section */
    .contacts-section {
        padding: 10px;
    }
    .contact {
        margin: 20px 15px;
    }
    .contact img {
        width: 80px;
    }

    /* Impressum-Section */
    .impressum-main h3 {
        font-size: 1.5em;
    }
    .impressum-main p {
        font-size: 1em;
    }
    .impressum-container, .datenschutz-container, .agb-container {
        width: auto;
        height: auto;
        padding: 20px;
    }

    /* Footer */
    footer p {
        font-size: 18px;
    }

}

@media (max-width: 480px) {

    /* Navigation */
    .navbar-text {
        font-size: 20px;
    }
    .navbar-list li {
        margin-left: 0px;
        margin-bottom: 5px;
    }

    /* About-Section */
    .about-section h1 {
        font-size: 30px;
    }
    .about-section p {
        font-size: 24px;
    }

    /* Work-Section */
    .project h3 {
        font-size: 22px;
    }
    .project-description {
        font-size: 20px;
    }

    /* Contact-Section */
    .contact h3 {
        font-size: 22px;
    }

    /* Impressum-Section */
    .impressum-main h3 {
        font-size: 1.2em;
    }
    .impressum-main p {
        font-size: 0.9em;
    }
    .impressum-container, .datenschutz-container, .agb-container {
        width: auto;
        height: auto;
        padding: 15px;
    }

    /* Footer */
    footer p {
        font-size: 16px;
    }

}