.wmm-formulare,
.wmm-formulare * {
    box-sizing: border-box;
}

.wmm-formulare {
    --wmm-forms-green: #285344;
    --wmm-forms-dark: #193b30;
    --wmm-forms-text: #26392f;
    --wmm-forms-muted: #59675f;
    --wmm-forms-border: #d9e1da;
    margin: 3rem 0 1.5rem;
    padding: 2rem;
    border: 1px solid var(--wmm-forms-border);
    border-radius: 14px;
    background: #f6f8f4;
    color: var(--wmm-forms-text);
    font: inherit;
    line-height: 1.55;
}

.wmm-formulare .wmm-formulare-header {
    margin: 0 0 1.8rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.wmm-formulare .wmm-formulare-kicker {
    margin: 0 0 .35rem;
    color: var(--wmm-forms-green);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.wmm-formulare h2,
.wmm-formulare h3,
.wmm-formulare h4,
.wmm-formulare p {
    color: inherit;
}

.wmm-formulare .wmm-formulare-header h2 {
    margin: 0 0 .6rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.wmm-formulare .wmm-formulare-header > p:last-child {
    max-width: 45rem;
    margin: 0;
    color: var(--wmm-forms-muted);
}

.wmm-formulare-category + .wmm-formulare-category {
    margin-top: 2rem;
}

.wmm-formulare-category-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-bottom: .85rem;
}

.wmm-formulare .wmm-formulare-category-heading h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
}

.wmm-formulare-category-heading > span {
    color: var(--wmm-forms-muted);
    font-size: .83rem;
    white-space: nowrap;
}

.wmm-formulare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: .85rem;
}

.wmm-formulare .wmm-formulare-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 1.2rem;
    border: 1px solid var(--wmm-forms-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
}

.wmm-formulare .wmm-formulare-card h4 {
    margin: 0 0 .5rem;
    font-size: 1.02rem;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.wmm-formulare .wmm-formulare-description {
    margin: 0 0 1.2rem;
    color: var(--wmm-forms-muted);
    font-size: .9rem;
}

.wmm-formulare-files {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: auto;
}

.wmm-formulare .wmm-formulare-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 44px;
    padding: .6rem .8rem;
    border: 1px solid #c9d9ce;
    border-radius: 6px;
    background: #f1f6f0;
    color: var(--wmm-forms-green);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
}

.wmm-formulare .wmm-formulare-download:hover {
    border-color: var(--wmm-forms-green);
    background: #e5eee3;
    color: var(--wmm-forms-dark);
    text-decoration: none;
}

.wmm-formulare-file-meta {
    display: block;
    margin: .35rem .1rem 0;
    color: var(--wmm-forms-muted);
    font-size: .75rem;
    line-height: 1.45;
}

.wmm-formulare-bundle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.8rem;
    padding: 1.25rem;
    border: 1px solid #ccdacf;
    border-radius: 9px;
    background: #eaf0e7;
}

.wmm-formulare .wmm-formulare-bundle h3 {
    margin: 0 0 .3rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.wmm-formulare .wmm-formulare-bundle p {
    margin: 0;
    color: var(--wmm-forms-muted);
    font-size: .88rem;
}

.wmm-formulare .wmm-formulare-bundle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .3rem;
    min-height: 44px;
    padding: .75rem 1rem;
    border: 1px solid var(--wmm-forms-green);
    border-radius: 6px;
    background: var(--wmm-forms-green);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
}

.wmm-formulare .wmm-formulare-bundle-button:hover {
    background: var(--wmm-forms-dark);
    border-color: var(--wmm-forms-dark);
    color: #fff;
    text-decoration: none;
}

.wmm-formulare .wmm-formulare-download:focus-visible,
.wmm-formulare .wmm-formulare-bundle-button:focus-visible,
.wmm-formulare-notice a:focus-visible {
    outline: 3px solid #956118;
    outline-offset: 3px;
}

.wmm-formulare-notice {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border: 1px solid #d9e1da;
    border-radius: 7px;
    background: #f6f8f4;
    color: #26392f;
    line-height: 1.55;
}

.wmm-formulare-notice a {
    color: #285344;
    text-decoration: underline;
    text-underline-offset: .15em;
}

@media (max-width: 560px) {
    .wmm-formulare {
        margin-top: 2rem;
        padding: 1rem;
        border-radius: 10px;
    }

    .wmm-formulare .wmm-formulare-card {
        padding: 1rem;
    }

    .wmm-formulare-bundle {
        padding: 1rem;
    }

    .wmm-formulare .wmm-formulare-bundle-button {
        width: 100%;
    }
}

@media print {
    .wmm-formulare {
        border-color: #999;
        background: #fff;
    }

    .wmm-formulare .wmm-formulare-card,
    .wmm-formulare-bundle {
        break-inside: avoid;
    }

    .wmm-formulare a::after {
        content: none !important;
    }
}
