/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #f9f9f9;
    color: #404040;
    font-family: sans-serif, Arial;
    font-size: 14px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    word-wrap: break-word;
}

a {
    color: #7c9b30;
    text-decoration: none;
    outline: none;
}

a:hover, a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a > img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

a:hover > img {
    opacity: 0.75;
    transform: scale(1.05);
}

ul {
    list-style: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    color: #222;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 22px;
}

h3 {
    color: rgba(122, 122, 122, 0.96);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.65;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

/* === Container === */
.container {
    margin: 0 auto;
    max-width: 1250px;
    padding: 0 20px;
    position: relative;
}

/* === Header === */
#masthead {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    height: 41px;
    width: auto;
    transition: height 0.5s ease;
}

.site-branding {
    line-height: 1.1;
}

#site-title {
    font-size: 24px;
    font-weight: 700;
}

#site-title a {
    color: #5e702c;
    text-decoration: none;
}

#site-title a:hover {
    color: #7c9b30;
    text-decoration: none;
}

#site-description {
    color: #5e702c;
    font-size: 13px;
    font-style: italic;
    line-height: 1.1;
}

/* === Navigation === */
.header-nav .menu {
    display: flex;
    gap: 0;
}

.header-nav .menu > li {
    position: relative;
    line-height: 1.5;
}

.header-nav .menu > li > a {
    color: #757575;
    display: block;
    padding: 10px 24px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header-nav .menu > li > a:hover,
.header-nav .menu > li.current-menu-item > a {
    color: #7c9b30;
    text-decoration: none;
}

.header-nav .sub-menu {
    background: #fff;
    border-top: 3px solid #7c9b30;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    left: -20px;
    padding: 10px;
    position: absolute;
    top: 44px;
    width: 200px;
    z-index: 99999;
}

.header-nav .menu > li:hover > .sub-menu {
    display: block;
}

.header-nav .menu > li > .sub-menu::before {
    content: '';
    display: block;
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.header-nav .sub-menu li a {
    color: #757575;
    display: block;
    padding: 10px;
    white-space: normal;
    width: 180px;
}

.header-nav .sub-menu li a:hover {
    background-color: #f8f8f8;
    color: #7c9b30;
    text-decoration: none;
}

/* === Hero Image === */
#hero-image,
#header-featured-image {
    clear: both;
    display: block;
    overflow: hidden;
    text-align: center;
    width: 100%;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
}

#header-featured-image:not(:has(img)) {
    height: 400px;
}

#hero-image img,
#main-feat-img {
    margin: 0 auto;
    width: 100%;
    display: block;
}

/* === Homepage Message === */
#homepage-message {
    background-color: #e9f2d2;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}

#homepage-message .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.message-left,
.left-section {
    flex: 1;
}

.message-left h2,
.left-section h2 {
    color: #404040;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
}

.schrift-logo {
    height: 30px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.message-left p,
.left-section p {
    color: #404040;
    margin: 0;
    line-height: 1.5;
}

.message-right,
.right-section {
    flex-shrink: 0;
}

.message-right a,
.right-section a {
    background-color: #A2B56F;
    border: 2px solid #fff;
    border-radius: 25px;
    box-shadow: 4px 5px 3px rgba(0, 0, 0, 0.3);
    color: #fff;
    display: inline-block;
    font-size: 30px;
    line-height: 1.5;
    padding: 10px 25px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.message-right a:hover,
.right-section a:hover {
    background-color: #8ca74a;
    text-decoration: none;
}

/* === Main Content === */
#main {
    padding: 30px 0;
}

.page-content {
    background-color: #fff;
    display: block;
    font-size: 17px;
    line-height: 1.75;
    padding: 30px;
    position: relative;
}

.section-heading {
    color: rgba(122, 122, 122, 0.96);
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.65;
}

.entry-title {
    display: none;
}

.content-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.content-left {
    flex: 1;
}

.content-right {
    flex: 1;
}

.content-right img {
    display: block;
    max-width: 100%;
    height: auto;
}

.content-image {
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.content-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.content-text {
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.65;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* === Footer === */
#colophon {
    border-top: 1px solid #eee;
    clear: both;
}

.footer-widgets {
    background-color: #5e702c;
    padding: 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 4%;
    align-items: start;
}

.footer-col {
    text-align: center;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-col-contact p {
    color: #fff;
}

.footer-col a {
    color: #ddd;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: none;
}

.ibh-logo {
    height: auto;
    width: 130%;
    margin: 15px auto 0;
}

.footer-col-partner {
    text-align: center;
}

.partner-logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.partner-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.partner-logo:first-child {
    height: 120px;
    width: auto;
}

.kontakt-img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

.footer-col-right {
    text-align: left;
}

.copyright {
    color: #ccc;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 10px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #eee;
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}

.footer-links a:hover {
    color: #fff;
}

.social-links h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons li a {
    align-items: center;
    background-color: #1E72BD;
    border-radius: 2px;
    color: #fff;
    display: flex;
    height: 36px;
    justify-content: center;
    transition: background-color 0.3s ease;
    width: 36px;
}

.social-icons li a:hover {
    background-color: #777;
    color: #fff;
}

.social-icons li a svg {
    fill: currentColor;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
    }

    .header-nav .menu {
        flex-direction: column;
    align-items: start;
    }

    .header-nav .menu > li > a {
        padding: 8px 16px;
    }

    .message-inner,
    #homepage-message .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .message-left h2,
    .left-section h2 {
        font-size: 18px;
    }

    .schrift-logo {
        height: 24px;
    }

    .content-columns {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-col-right {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .page-content {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    #site-title {
        font-size: 20px;
    }

    #site-description {
        font-size: 12px;
    }

    .message-right a,
    .right-section a {
        font-size: 14px;
        padding: 8px 20px;
    }
}
