:root {
    --bg: #f2eedf;
    --surface: rgba(248, 245, 236, 0.82);
    --surface-strong: rgba(255, 250, 238, 0.93);
    --text: #183729;
    --muted: #4e6057;
    --green: #24533c;
    --green-deep: #143325;
    --red: #bf3426;
    --gold: #d1a611;
    --line: rgba(24, 55, 41, 0.14);
    --shadow: 0 24px 80px rgba(20, 51, 37, 0.2);
    --radius: 28px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(209, 166, 17, 0.28), transparent 26%),
        linear-gradient(180deg, #eef1e4 0%, var(--bg) 100%);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}

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

button,
input,
textarea {
    font: inherit;
}

.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;
}

.screen-reader-text:focus {
    width: auto;
    height: auto;
    clip: auto;
    margin: 0;
    padding: 1rem;
    background: var(--green);
    color: #fff;
    left: 1rem;
    top: 1rem;
    z-index: 999;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 999;
    background: var(--green);
    color: #fff;
    padding: 1rem;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.narrow {
    width: min(calc(100% - 2rem), 860px);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding-top: 1rem;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    background: rgba(248, 245, 236, 0.52);
    box-shadow: var(--shadow);
}

.menu-toggle,
.menu-close {
    border: 0;
    background: transparent;
    color: var(--green-deep);
    cursor: pointer;
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.35rem;
}

.menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.site-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.site-brand__eyebrow,
.eyebrow {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--gold);
}

.site-brand__title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 0.9;
}

.site-drawer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    justify-content: flex-start;
    background: rgba(20, 51, 37, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.site-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.site-drawer__panel {
    width: min(90vw, 360px);
    height: 100%;
    padding: 1.5rem;
    background:
        linear-gradient(180deg, rgba(36, 83, 60, 0.96), rgba(20, 51, 37, 0.98)),
        #183729;
    color: #f8f5ec;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
}

.site-drawer.is-open .site-drawer__panel {
    transform: translateX(0);
}

.site-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.site-drawer__header p {
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #e2c74e;
}

.menu-close {
    font-size: 2rem;
    line-height: 1;
    color: #f8f5ec;
}

.site-drawer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-drawer__nav li + li {
    margin-top: 0.75rem;
}

.site-drawer__nav a {
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.site-main {
    min-height: 100vh;
}

.landing-hero,
.subpage-hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    padding: 5.5rem 0 2rem;
}

.landing-hero__backdrop,
.subpage-hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(11, 31, 21, 0.75), rgba(11, 31, 21, 0.28) 45%, rgba(209, 166, 17, 0.22)),
        url("../images/fehlheim-aerial.webp") center/cover no-repeat;
    transform: scale(1.04);
}

.landing-hero__inner,
.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.landing-hero__inner {
    display: block;
}

.landing-hero__shell {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 36px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(248, 245, 236, 0.84), rgba(248, 245, 236, 0.68));
}

.landing-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
    gap: 2rem;
    align-items: center;
}

.landing-hero__visual {
    display: flex;
    justify-content: center;
}

.landing-hero__logo {
    width: min(100%, 360px);
    object-fit: contain;
}

.landing-hero__content,
.subpage-hero .container,
.info-card,
.action-card,
.value-tile,
.generic-page__content {
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.landing-hero__content {
    margin-top: 1rem;
    max-width: 100%;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    background: transparent;
    text-align: left;
}

.landing-hero__content h1,
.info-card h2,
.section-heading h2,
.action-card h3,
.value-tile h3,
.subpage-hero h1,
.generic-page__content h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    line-height: 0.95;
}

.info-card--intro h2 a {
    text-decoration: underline;
}

.landing-hero__content h1 {
    font-size: clamp(3.6rem, 10vw, 6.6rem);
    margin-top: 0.4rem;
}

.landing-hero__lead,
.subpage-intro {
    max-width: 44rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
}

.landing-hero__lead {
    margin-left: 0;
    margin-right: 0;
}

.hero-links,
.info-strip__grid,
.action-grid,
.values-band__grid,
.site-footer__inner {
    display: flex;
    gap: 1rem;
}

.hero-links {
    flex-wrap: wrap;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.35rem;
    padding: 0 1.3rem;
    border-radius: 999px;
    font-weight: 800;
}

.button--primary {
    background: var(--red);
    color: #fff8f1;
}

.button--secondary {
    background: rgba(255, 251, 243, 0.6);
    color: var(--green-deep);
}

.mission-band,
.values-band,
.generic-page {
    position: relative;
    padding: 4rem 0;
}

.generic-page {
    padding-top: 8rem;
}
.action-grid,
.values-band__grid {
    flex-wrap: wrap;
}

.info-card,
.action-card,
.value-tile {
    flex: 1 1 280px;
    padding: 1.6rem;
    border-radius: 26px;
    background: var(--surface-strong);
}

.info-card--intro {
    flex-basis: 420px;
}

.info-card--highlight {
    border-color: rgba(191, 52, 38, 0.22);
    box-shadow: 0 18px 40px rgba(191, 52, 38, 0.08);
}

.info-card p,
.action-card p,
.value-tile p,
.generic-page__content {
    color: var(--muted);
    line-height: 1.75;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.text-link {
    display: inline-flex;
    margin-top: 1rem;
    font-weight: 800;
    color: var(--red);
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--green-deep);
    font-weight: 800;
    font-size: 0.85rem;
}

.pill--muted {
    background: rgba(36, 83, 60, 0.12);
    color: var(--green);
}

.mission-band {
    background:
        linear-gradient(180deg, rgba(20, 51, 37, 0.92), rgba(36, 83, 60, 0.92)),
        url("../images/fehlheim-aerial.webp") center/cover fixed;
    color: #f8f5ec;
}

.mission-band .eyebrow,
.mission-band .section-heading h2,
.mission-band .action-card h3,
.mission-band .action-card p {
    color: inherit;
}

.mission-band .action-card {
    background: rgba(255, 255, 255, 0.08);
}

.mission-band .text-link {
    color: #f2cc42;
}

.values-band {
    background: linear-gradient(180deg, rgba(242, 238, 223, 1), rgba(255, 250, 238, 1));
}

.subpage-hero .container {
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(248, 245, 236, 0.9), rgba(248, 245, 236, 0.76));
}

.subpage-hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.generic-page__content {
    padding: 2rem;
    border-radius: 28px;
    background: var(--surface-strong);
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-inline: auto;
}

.alignwide {
    width: min(calc(100% - 2rem), 1400px);
    margin-inline: auto;
}

.alignfull {
    width: 100%;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
.wp-element-caption,
.gallery-caption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.sticky {
    border-left: 4px solid var(--gold);
}

.bypostauthor {
    display: block;
}

.site-footer {
    padding: 2rem 0 3rem;
    background: #163325;
    color: #f8f5ec;
}

.site-footer__inner {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-footer__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .landing-hero__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .landing-hero__shell {
        padding: 1.25rem;
    }

    .site-brand__title {
        font-size: 1.6rem;
    }

    .landing-hero__content {
        text-align: center;
    }

    .landing-hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-links {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .hero-links,
    .info-strip__grid,
    .action-grid,
    .values-band__grid,
    .site-footer__inner {
        flex-direction: column;
    }

    .landing-hero,
    .subpage-hero {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.current-event {
    padding: 40px 0;
}

.current-event__box {
    max-width: 850px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.current-event__box h2 {
    margin-bottom: 20px;
}

.current-event__box p {
    margin-bottom: 15px;
}

.current-event__box .button {
    margin-top: 10px;
}
/* Nextcloud-Kalender */
.calendar-page .container.narrow {
    width: min(calc(100% - 2rem), 1180px);
    max-width: 1180px;
}

.nextcloud-calendar {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid #e2e5e1;
    border-radius: 12px;
    background: #fff;
}

.nextcloud-calendar iframe {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 800px !important;
    min-height: 800px;
    border: 0;
}
