@font-face {
    font-family: "ThemeWebfontHeadline";
    src: url("../fonts/webfont1.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ThemeWebfontHeadline";
    src: url("../fonts/webfont1-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ThemeWebfontContent";
    src: url("../fonts/webfont2.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ram-color-header-bg: #0f7d33;
    --ram-color-footer-bg: #0f7d33;
    --ram-color-text: #222222;
    --ram-color-headline: #111111;
    --ram-color-link: #138E3A;
    --ram-color-link-hover: #0f7d33;
    --ram-color-nav-link: #f5f5f5;
    --ram-color-nav-link-active: #ffffff;
    --ram-color-footer-link: #f5f5f5;
    --ram-color-footer-link-active: #ffffff;
    --ram-header-text-color: #ffffff;
    --ram-header-text-size: 24px;
    --ram-header-text-margin-top: 0px;
    --ram-header-text-mobile-size: 18px;
    --ram-header-text-mobile-margin-top: 0px;
    --ram-color-white: #ffffff;
    --ram-site-width: 1400px;
    --ram-content-width: 1400px;
    --ram-header-height-mobile: 82px;
    --ram-header-height-desktop: 112px;
    --ram-font-headline: "ThemeWebfontHeadline", sans-serif;
    --ram-font-content: "ThemeWebfontContent", sans-serif;
    --ram-space-xs: 0.5rem;
    --ram-space-sm: 1rem;
    --ram-space-md: 2rem;
    --ram-space-lg: 4rem;
    --ram-logo-width: 300px;
    --ram-logo-height: 59px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ram-body {
    margin: 0;
    color: var(--ram-color-text);
    font-family: var(--ram-font-content);
    font-size: 1rem;
    line-height: 1.6;
    background: #ffffff;
}

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

a {
    color: var(--ram-color-link);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ram-color-headline);
    font-family: var(--ram-font-headline);
    line-height: 1.2;
    margin: 0 0 1rem;
}

p {
    margin: 0 0 1rem;
}

.ram-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ram-site-container {
    width: min(100% - 2rem, var(--ram-site-width));
    margin-inline: auto;
}

.ram-content-container {
    max-width: var(--ram-content-width);
}

.ram-site-main {
    flex: 1 0 auto;
    min-height: 60vh;
    padding-top: var(--ram-header-height-mobile);
}

.ram-entry,
.ram-archive-header,
.ram-error-404 {
    padding-block: var(--ram-space-md);
}

.ram-entry-content,
.ram-entry-summary {
    font-family: var(--ram-font-content);
    font-size: 1.25rem;
    line-height: 1.5;
}

.ram-entry-content a,
.ram-entry-summary a {
    font-family: var(--ram-font-content);
}

.ram-entry-content a:hover,
.ram-entry-content a:focus-visible,
.ram-entry-summary a:hover,
.ram-entry-summary a:focus-visible {
    color: var(--ram-color-link-hover);
}

.ram-entry-content a:visited,
.ram-entry-content a:active,
.ram-entry-summary a:visited,
.ram-entry-summary a:active {
    color: var(--ram-color-link);
}

.ram-entry-title a {
    color: inherit;
    text-decoration: none;
}

.ram-entry-meta {
    margin-bottom: var(--ram-space-sm);
    font-size: 0.95rem;
}

.ram-entry-thumbnail {
    display: block;
    margin-bottom: var(--ram-space-sm);
}

.ram-post-list {
    display: flex;
    flex-direction: column;
    gap: var(--ram-space-md);
}

.ram-site-footer {
    margin-top: auto;
    color: var(--ram-color-white);
    background: var(--ram-color-footer-bg);
    padding: var(--ram-space-md) 0;
    text-align: center;
}

.ram-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ram-footer-copyright {
    color: var(--ram-color-white);
    font-family: var(--ram-font-content);
    font-size: 1rem;
    line-height: 1.3;
}

.ram-site-footer a {
    color: var(--ram-color-footer-link);
    font-family: var(--ram-font-content);
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    transition: color 0.16s ease;
}

.ram-site-footer a::after {
    content: attr(data-ram-label);
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}

.ram-site-footer a:hover,
.ram-site-footer a:focus-visible,
.ram-site-footer a:active,
.ram-site-footer .current-menu-item > a {
    color: var(--ram-color-footer-link-active);
    font-weight: 700;
    text-decoration: none;
}

.ram-site-footer a:visited {
    color: var(--ram-color-footer-link);
}

.ram-footer-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ram-footer-menu a {
    display: inline-flex;
    padding: 0.45rem 0.85rem;
    line-height: 1.3;
}

.ram-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 768px) {
    .ram-site-main {
        padding-top: var(--ram-header-height-desktop);
    }

    .ram-footer-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.is-style-ram-justify,
.has-text-align-justify {
    text-align: justify;
}

/* v27: Footerlinks kompakt, zentriert und ruckelfrei kräftiger bei Hover/Active */
.ram-site-footer {
    text-align: center;
}

.ram-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.ram-footer-copyright,
.ram-footer-navigation {
    width: 100%;
    text-align: center;
}

.ram-footer-menu {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    gap: 0.25rem 0.75rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.ram-footer-menu li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.ram-footer-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.15rem 0.12rem;
    color: var(--ram-color-footer-link);
    font-family: var(--ram-font-content);
    font-weight: 400;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: none;
}

.ram-footer-menu a::after {
    content: attr(data-ram-label);
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}

.ram-footer-menu a:hover,
.ram-footer-menu a:focus-visible,
.ram-footer-menu a:active,
.ram-footer-menu .current-menu-item > a,
.ram-footer-menu .current_page_item > a,
.ram-footer-menu .current-menu-ancestor > a {
    color: var(--ram-color-footer-link-active);
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0.35px 0 currentColor, -0.35px 0 currentColor;
}

.ram-footer-menu a:visited {
    color: var(--ram-color-footer-link);
}


/* v28: Footerlinks exakt kompakt: 15px Abstand desktop, mobil untereinander */
.ram-footer-menu {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    column-gap: 15px;
    row-gap: 6px;
    margin: 0 auto;
    padding: 0;
}

.ram-footer-menu li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.ram-footer-menu a {
    padding: 0;
    min-height: 0;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .ram-footer-menu {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .ram-footer-menu a {
        min-height: 44px;
        padding: 0.35rem 0.5rem;
        font-size: 1.1rem;
        justify-content: center;
    }
}

/* v29: Footerlinks - exakt 10px Abstand desktop, mobil mittig */
.ram-site-footer .ram-footer-navigation {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ram-site-footer .ram-footer-menu {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px !important;
    width: auto !important;
    max-width: none;
    margin: 0 auto !important;
    padding: 0 !important;
}

.ram-site-footer .ram-footer-menu li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

.ram-site-footer .ram-footer-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0 !important;
    margin: 0 !important;
    text-align: center;
}

@media (max-width: 767px) {
    .ram-site-footer .ram-footer-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 8px !important;
        width: 100% !important;
    }

    .ram-site-footer .ram-footer-menu li {
        width: 100%;
        justify-content: center;
    }

    .ram-site-footer .ram-footer-menu a {
        width: auto;
        min-height: 44px;
        justify-content: center;
        text-align: center;
    }
}

/* v30: Footerlinks final - Desktop exakt 10px Abstand, mittig; mobil untereinander mittig */
.ram-site-footer .ram-footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 15px !important;
}

.ram-site-footer .ram-footer-copyright,
.ram-site-footer .ram-footer-navigation {
    width: auto !important;
    max-width: 100% !important;
    text-align: center !important;
}

.ram-site-footer .ram-footer-navigation {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.ram-site-footer .ram-footer-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
}

.ram-site-footer .ram-footer-menu li {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ram-site-footer .ram-footer-menu a {
    display: inline !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-family: var(--ram-font-content) !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

.ram-site-footer .ram-footer-menu a::after {
    content: none !important;
    display: none !important;
}

.ram-site-footer .ram-footer-menu a:hover,
.ram-site-footer .ram-footer-menu a:focus-visible,
.ram-site-footer .ram-footer-menu a:active,
.ram-site-footer .ram-footer-menu .current-menu-item > a,
.ram-site-footer .ram-footer-menu .current_page_item > a,
.ram-site-footer .ram-footer-menu .current-menu-ancestor > a {
    color: var(--ram-color-footer-link-active) !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    text-shadow: 0.55px 0 currentColor, -0.55px 0 currentColor !important;
}

@media (max-width: 767px) {
    .ram-site-footer .ram-footer-menu {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: auto !important;
        margin-inline: auto !important;
    }

    .ram-site-footer .ram-footer-menu li {
        width: auto !important;
        text-align: center !important;
    }

    .ram-site-footer .ram-footer-menu a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px !important;
        padding: 0 8px !important;
        font-size: 1.1rem !important;
        text-align: center !important;
        white-space: normal !important;
    }
}

/* v38: Header-Content-Abstand minimal, Footer-Abstand aus v37 beibehalten */
body.ram-body .ram-site-main {
    padding-top: var(--ram-header-height-mobile) !important;
    padding-bottom: 8px !important;
}

body.ram-body .ram-site-main > .ram-entry,
body.ram-body .ram-site-main > .ram-page-entry,
body.ram-body .ram-site-main > .ram-archive-header,
body.ram-body .ram-site-main > .ram-error-404 {
    padding-top: 0 !important;
    padding-bottom: 8px !important;
}

body.ram-body .ram-entry-content,
body.ram-body .ram-entry-header {
    padding-top: 0 !important;
}

body.ram-body .ram-entry-content > *:first-child {
    margin-top: 0 !important;
}

body.ram-body .ram-entry-content > *:last-child {
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    body.ram-body .ram-site-main {
        padding-top: var(--ram-header-height-desktop) !important;
        padding-bottom: 16px !important;
    }

    body.ram-body .ram-site-main > .ram-entry,
    body.ram-body .ram-site-main > .ram-page-entry,
    body.ram-body .ram-site-main > .ram-archive-header,
    body.ram-body .ram-site-main > .ram-error-404 {
        padding-top: 0 !important;
        padding-bottom: 16px !important;
    }
}

