html {
    height: 100%;
}

:root {
    --header-height: 120px;
    --header-shrink-height: 80px;
    --header-transition: 0.3s ease;
    
    --primary-color: #1c6b34;
    --secondary-color: #fff;
    --text-color: #333;
    --background-color: #f8f9fa;
}

body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    line-height: 1.6;
}

.container-parent {
    width: 100%;
    display: flex;
    justify-content: center;
}

header {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    padding: 10px 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--header-transition);
    height: var(--header-height);
}

header.scrolled {
    height: var(--header-shrink-height);
    padding: 5px 0;
}

header.scrolled .header-image {
    height: 60px;
}

header.scrolled .header-text {
    font-size: 20px;
}

header .container {
    width: 90%;
    max-width: 1200px;
}

header a {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    text-align: left;
    flex-wrap: wrap;
    justify-content: center;
    transition: opacity 0.3s ease;
    width: 100%;
}

header a:hover {
    opacity: 0.9;
}

.header-text {
    margin-left: 20px;
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all var(--header-transition);
    flex: 1;
    min-width: 200px;
    max-width: calc(100% - 140px);
    line-height: 1.2;
}

.header-image {
    width: auto;
    height: 100px;
    display: block;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--secondary-color);
    transition: all var(--header-transition);
}

.viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    width: 100%;
    flex: 1;
    padding: 40px 0;
}

main .container {
    width: 90%;
    max-width: 800px;
    padding: 0 15px;
    padding-bottom: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.headline {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: left;   
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.sub-headline {
    text-align: left;
}

.headline:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.paragraph {
    font-size: 16px;
    margin: 15px 0px;
    line-height: 1.8;
    text-align: left;
    color: var(--text-color);
}

.paragraph b {
    color: var(--primary-color);
    font-weight: 600;
}

.paragraph.contact {
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

footer {
    background-color: var(--primary-color);
    padding: 15px 20px;
    color: var(--secondary-color);
}

footer p {
    margin: 5px 0;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-text {
    font-size: 14px;
    opacity: 0.9;
}

@media screen and (max-width: 1105px) {
    .header-text {
        max-width: 800px;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 15px 0;
        height: auto;
        min-height: var(--header-height);
    }

    header.scrolled {
        height: auto;
        min-height: var(--header-shrink-height);
    }

    header a {
        flex-direction: row;
        text-align: left;
    }

    .header-text {
        margin: 0 0 0 15px;
        font-size: 22px;
        text-align: left;
        min-width: auto;
        max-width: calc(100% - 100px);
    }

    .header-image {
        height: 80px;
    }

    main {
        padding: 20px 0;
    }

    main .container {
        width: 95%;
        padding: 15px;
    }

    .headline {
        font-size: 24px;
    }

    .paragraph {
        font-size: 15px;
    }

    header.scrolled .header-text {
        font-size: 18px;
    }
}

@media screen and (max-width: 600px) {
    header {
        min-height: 100px;
    }
    
    header.scrolled {
        min-height: 70px;
    }
    
    .header-image {
        height: 60px;
    }
    
    header.scrolled .header-image {
        height: 40px;
    }
    
    .header-text {
        font-size: 20px;
        margin: 0 0 0 10px;
        max-width: calc(100% - 70px);
    }

    header.scrolled .header-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .header-text {
        font-size: 18px;
        margin: 0 0 0 8px;
        max-width: calc(100% - 60px);
    }

    .header-image {
        height: 50px;
    }

    .headline {
        font-size: 22px;
    }

    .paragraph {
        font-size: 14px;
    }

    .footer-text {
        font-size: 12px;
    }

    header.scrolled .header-text {
        font-size: 14px;
    }
}
