/* Safe page-builder components. Values are selected in Wagtail, never user CSS. */

.section.pb-space-compact,
.cta.pb-space-compact,
.hero.pb-space-compact {
    padding-block: clamp(2rem, 3vw, 3rem);
}

.section.pb-space-normal,
.cta.pb-space-normal,
.hero.pb-space-normal {
    padding-block: clamp(3rem, 5vw, 5rem);
}

.section.pb-space-generous,
.cta.pb-space-generous,
.hero.pb-space-generous {
    padding-block: clamp(4.5rem, 8vw, 7rem);
}

.pb-block-preview-shell {
    min-width: 20rem;
    overflow: hidden;
    background: var(--white);
}

.pb-block-preview-shell main {
    display: block;
}

.pb-block-preview-shell .section,
.pb-block-preview-shell .cta,
.pb-block-preview-shell .hero {
    min-height: 18rem;
}

.pb-richtext-framed .pb-richtext-inner,
.pb-image-text-card {
    padding: clamp(1.5rem, 3vw, 3rem);
    background: color-mix(in srgb, var(--white) 86%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.section-dark .pb-richtext-framed .pb-richtext-inner {
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 20%);
}

.richtext blockquote {
    padding: 0.2rem 0 0.2rem 1.35rem;
    margin: 1.75rem 0;
    color: var(--text-mid);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2em;
    font-style: italic;
    border-left: 0.25rem solid var(--green);
}

.section-dark .richtext blockquote {
    color: rgb(255 255 255 / 86%);
}

.pb-media-placeholder,
.pb-video-placeholder {
    display: grid;
    width: 100%;
    min-height: 13rem;
    place-items: center;
    color: var(--green-dark);
    background:
        radial-gradient(circle at 70% 30%, rgb(248 176 66 / 35%), transparent 24%),
        linear-gradient(135deg, var(--cream), var(--pale-green));
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-variant-compact {
    min-height: auto;
}

.hero-variant-split.hero-has-image .hero-background {
    left: 50%;
    width: 50%;
    object-position: center;
}

.hero-variant-split.hero-has-image .hero-overlay {
    background: linear-gradient(90deg, var(--cream) 0 50%, rgb(58 61 12 / 28%) 50%);
}

.hero-variant-split.hero-has-image .hero-content,
.hero-variant-split.hero-has-image .hero-heading {
    color: var(--schlamm);
}

.hero h2.hero-heading {
    max-width: 54.25rem;
    color: var(--white);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-variant-split.hero-has-image .hero-content {
    margin-left: max(1rem, calc((100% - var(--container)) / 2));
    margin-right: 50%;
}

.pb-benefit-grid,
.pb-metric-grid,
.pb-blog-grid,
.pb-product-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 2.25rem;
}

.pb-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pb-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pb-benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pb-benefit-item h3,
.pb-benefit-item p {
    margin-bottom: 0.35rem;
}

.pb-benefit-symbol {
    display: grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    color: var(--white);
    background: var(--green-dark);
    border-radius: 999px;
    font-weight: 800;
}

.pb-benefits-cards .pb-benefit-item {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.pb-benefits-compact .pb-benefit-grid {
    gap: 0.75rem 1.5rem;
}

.pb-benefits-compact .pb-benefit-symbol {
    width: 1.75rem;
    height: 1.75rem;
    flex-basis: 1.75rem;
}

.pb-benefits-compact .pb-benefit-item h3 {
    font-size: 1rem;
}

.pb-metric-grid {
    padding: 0;
    margin-bottom: 0;
}

.pb-metric-item {
    padding: 1.25rem;
    text-align: center;
    border-inline-start: 1px solid color-mix(in srgb, var(--green-dark) 28%, transparent);
}

.pb-metric-item:first-child {
    border-inline-start: 0;
}

.pb-metric-item dd {
    margin: 0;
    color: var(--green-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
}

.pb-metric-item dt {
    margin-top: 0.75rem;
    color: var(--schlamm);
    font-weight: 800;
}

.pb-metric-item span {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-mid);
    font-size: 0.9rem;
}

.pb-metrics-cards .pb-metric-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.pb-metrics-accent .pb-metric-item {
    color: var(--white);
    background: var(--schlamm);
    border: 0;
    border-radius: var(--radius);
}

.pb-metrics-accent .pb-metric-item dd,
.pb-metrics-accent .pb-metric-item dt,
.pb-metrics-accent .pb-metric-item span {
    color: var(--white);
}

.pb-table-intro {
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.pb-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    scrollbar-gutter: stable;
}

.pb-table-scroll:focus-visible {
    outline: 0.2rem solid var(--orange);
    outline-offset: 0.2rem;
}

.pb-table-scroll table {
    width: 100%;
    min-width: 38rem;
    border-spacing: 0;
    border-collapse: collapse;
    background: var(--white);
}

.pb-table-scroll caption {
    padding: 0.8rem 1rem;
    color: var(--text-mid);
    font-size: 0.9rem;
    text-align: left;
    caption-side: bottom;
}

.pb-table-scroll th,
.pb-table-scroll td {
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.pb-table-scroll th {
    color: var(--schlamm);
    background: var(--pale-green);
    font-weight: 800;
}

.pb-table-striped tbody tr:nth-child(even) td,
.pb-table-striped tbody tr:nth-child(even) th {
    background: var(--cream);
}

.pb-download {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pb-download-compact {
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.pb-download-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    color: var(--white);
    background: var(--green-dark);
    border-radius: 999px;
    font-size: 1.75rem;
    font-weight: 800;
}

.pb-download h2,
.pb-download p {
    margin-bottom: 0.35rem;
}

.pb-download-meta {
    color: var(--text-mid);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.pb-preview-disabled {
    pointer-events: none;
    opacity: 0.72;
}

.pb-video-copy {
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.pb-video {
    margin: 0;
}

.pb-video-frame {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    color: var(--white);
    background: var(--schlamm);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.pb-video-ratio-16x9 {
    aspect-ratio: 16 / 9;
}

.pb-video-ratio-4x3 {
    aspect-ratio: 4 / 3;
}

.pb-video-poster,
.pb-video-placeholder,
.pb-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.pb-video-placeholder {
    min-height: 0;
    background:
        radial-gradient(circle at 30% 30%, rgb(248 176 66 / 34%), transparent 20%),
        linear-gradient(145deg, var(--olive), var(--schlamm));
}

.pb-video-frame::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: rgb(26 26 26 / 58%);
}

.pb-video-frame.is-loaded::after {
    display: none;
}

.pb-video-consent {
    position: relative;
    z-index: 2;
    display: grid;
    max-width: 35rem;
    padding: 1.5rem;
    place-items: center;
    text-align: center;
}

.pb-video-consent p {
    margin: 0.85rem 0;
}

.pb-video-consent a {
    margin-top: 0.75rem;
    color: var(--white);
    font-size: 0.9rem;
}

.pb-video-play {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    padding-left: 0.2rem;
    color: var(--schlamm);
    background: var(--white);
    border-radius: 999px;
    font-size: 1.5rem;
}

.pb-video-status {
    display: block;
    min-height: 1.4em;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.pb-video figcaption {
    margin-top: 0.75rem;
    color: var(--text-mid);
    font-size: 0.9rem;
}

.pb-video-invalid {
    padding: 2rem;
    color: var(--white);
}

.pb-form-section .section-intro {
    margin-bottom: 1.5rem;
}

.pb-form-plain .form-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.pb-form-preview input,
.pb-form-preview textarea {
    width: 100%;
}

.pb-blog-card,
.pb-product-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
    flex-direction: column;
}

.pb-blog-card:hover,
.pb-product-card:hover,
.pb-blog-card:focus-visible,
.pb-product-card:focus-visible {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.2rem);
}

.pb-blog-card-media,
.pb-product-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 8 / 5;
    background: var(--cream);
}

.pb-blog-card-media img,
.pb-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-product-media img {
    padding: 1rem;
    object-fit: contain;
}

.pb-blog-card-copy,
.pb-product-copy {
    display: flex;
    gap: 0.65rem;
    padding: 1.25rem;
    flex: 1;
    flex-direction: column;
}

.pb-blog-card-copy > strong,
.pb-product-copy > strong {
    color: var(--schlamm);
    font-size: 1.2rem;
    line-height: 1.3;
}

.pb-blog-meta {
    display: flex;
    min-height: 1.2rem;
    color: var(--text-mid);
    font-size: 0.8rem;
    justify-content: space-between;
}

.pb-product-subtitle {
    color: var(--green-dark);
    font-weight: 700;
}

.pb-product-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pb-product-badges > span {
    padding: 0.2rem 0.55rem;
    color: var(--schlamm);
    background: var(--pale-green);
    border-radius: 999px;
    font-size: 0.75rem;
}

.pb-blog-card .text-link,
.pb-product-card .text-link {
    margin-top: auto;
}

.pb-section-action {
    margin: 2rem 0 0;
    text-align: center;
}

.pb-location {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pb-location.image-right .pb-location-media {
    order: 2;
}

.pb-location-media {
    min-height: 22rem;
}

.pb-location-media img,
.pb-location-media .pb-media-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-location-copy {
    display: flex;
    padding: clamp(1.5rem, 5vw, 4rem);
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.pb-location-card {
    max-width: 54rem;
    grid-template-columns: 15rem minmax(0, 1fr);
}

.pb-location-card .pb-location-media {
    min-height: 16rem;
}

.pb-gallery-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pb-gallery-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-gallery-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pb-gallery-natural img,
.pb-gallery-natural .pb-media-placeholder {
    height: auto;
    min-height: 12rem;
    object-fit: contain;
}

.section-dark .section-intro,
.section-dark .pb-table-intro,
.section-dark .pb-video-copy,
.section-dark .pb-video figcaption {
    color: rgb(255 255 255 / 84%);
}

@media (max-width: 64rem) {
    .pb-columns-3,
    .pb-columns-4,
    .pb-gallery-columns-3,
    .pb-gallery-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pb-metric-item:nth-child(odd) {
        border-inline-start: 0;
    }

    .hero-variant-split.hero-has-image .hero-content {
        margin-right: auto;
    }
}

@media (max-width: 48rem) {
    .pb-columns-2,
    .pb-columns-3,
    .pb-columns-4,
    .pb-gallery-columns-2,
    .pb-gallery-columns-3,
    .pb-gallery-columns-4,
    .pb-location,
    .pb-location-card {
        grid-template-columns: 1fr;
    }

    .pb-download {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pb-download .button {
        grid-column: 1 / -1;
    }

    .pb-metric-item,
    .pb-metric-item:nth-child(odd) {
        border-inline-start: 0;
        border-top: 1px solid color-mix(in srgb, var(--green-dark) 28%, transparent);
    }

    .pb-metric-item:first-child {
        border-top: 0;
    }

    .pb-location.image-right .pb-location-media {
        order: 0;
    }

    .pb-location-media {
        min-height: 15rem;
    }

    .hero-variant-split.hero-has-image .hero-background {
        left: 0;
        width: 100%;
    }

    .hero-variant-split.hero-has-image .hero-overlay {
        background: rgb(58 61 12 / 66%);
    }

    .hero-variant-split.hero-has-image .hero-content,
    .hero-variant-split.hero-has-image .hero-heading {
        color: var(--white);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-blog-card,
    .pb-product-card {
        transition: none;
    }
}
