/* =========================================================
   AFG-KOOPERATION.PHP
   Stand: 2026-09-08
========================================================= */

.afg-coop-page {
    --coop-border: rgba(148, 163, 184, .19);
    --coop-text: #f3f7fc;
    --coop-muted: #9aabc0;
    --coop-blue: #63adff;
    --coop-orange: #ff9e43;
    --coop-green: #70dd70;
    --coop-purple: #c18aff;

    color: var(--coop-text);
    padding: 1.4rem 0 2rem;
}

.afg-coop-page,
.afg-coop-page *,
.afg-coop-page *::before,
.afg-coop-page *::after {
    box-sizing: border-box;
}

.afg-coop-page a {
    text-decoration: none;
}

.afg-coop-page i.bi {
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 16px !important;
    vertical-align: middle !important;
    transform: none !important;
}

.afg-coop-page i.bi::before {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 16px !important;
    text-align: center !important;
    vertical-align: 0 !important;
    transform: none !important;
}

.afg-coop-shell {
    border: 1px solid var(--coop-border);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(14, 28, 47, .96), rgba(7, 17, 30, .97));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.afg-coop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .82fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1.35rem;
    margin-bottom: 1rem;
}

.afg-coop-hero-copy {
    align-self: center;
    max-width: 880px;
}

.afg-coop-kicker,
.afg-coop-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    color: #d7ffe7;
    font-size: .78rem;
    font-weight: 700;
}

.afg-coop-kicker {
    margin-bottom: .8rem;
    padding: .42rem .7rem;
    border: 1px solid rgba(87, 214, 141, .32);
    border-radius: 999px;
    background: rgba(87, 214, 141, .11);
}

.afg-coop-hero h1 {
    margin: 0 0 .75rem;
    color: #fff;
    font-size: clamp(1.95rem, 3.8vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.afg-coop-lead {
    max-width: 850px;
    margin: 0;
    color: var(--coop-muted);
    font-size: .95rem;
    line-height: 1.72;
}

.afg-coop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.afg-coop-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    padding: .68rem .95rem;
    border: 1px solid rgba(99, 163, 255, .38);
    border-radius: 9px;
    color: #b9dbff !important;
    background: rgba(45, 98, 167, .09);
    font-size: .86rem;
    font-weight: 700;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}

.afg-coop-button:hover {
    color: #fff !important;
    border-color: #5ba6ff;
    background: rgba(61, 145, 255, .17);
    transform: translateY(-1px);
}

.afg-coop-button.primary {
    color: #081522 !important;
    border-color: rgba(112, 221, 112, .72);
    background: #70dd70;
}

.afg-coop-button.primary:hover {
    color: #07121e !important;
    border-color: #91ec91;
    background: #91ec91;
}

.afg-coop-hero-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.afg-coop-mini {
    display: flex;
    min-height: 188px;
    padding: 1rem;
    flex-direction: column;
    border-radius: 12px;
    background: rgba(11, 26, 45, .74);
}

.afg-coop-icon {
    display: flex !important;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 .8rem;
    padding: 0;
    border-radius: 50%;
    color: var(--coop-blue);
    background: rgba(61, 145, 255, .15);
    line-height: 1;
}

.afg-coop-icon.orange,
.afg-coop-section-icon.orange {
    color: var(--coop-orange);
    background: rgba(255, 154, 61, .15);
}

.afg-coop-section-icon.purple {
    color: var(--coop-purple);
    background: rgba(181, 120, 255, .15);
}

.afg-coop-icon.green {
    color: var(--coop-green);
    background: rgba(114, 213, 114, .13);
}

.afg-coop-icon.purple {
    color: var(--coop-purple);
    background: rgba(181, 120, 255, .15);
}

.afg-coop-mini strong,
.afg-coop-mini span,
.afg-coop-mini small {
    display: block;
}

.afg-coop-mini strong {
    margin-bottom: .15rem;
    color: #fff;
    font-size: 1.16rem;
    line-height: 1.25;
}

.afg-coop-mini span {
    color: #dce8f7;
    font-size: .88rem;
    font-weight: 700;
}

.afg-coop-mini small {
    margin-top: .35rem;
    color: var(--coop-muted);
    font-size: .89rem;
    line-height: 1.55;
}

.afg-coop-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}

.afg-coop-toolbar-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
}

.afg-coop-toolbar-card .afg-coop-icon {
    margin: 0;
}

.afg-coop-toolbar-card > div {
    min-width: 0;
}

.afg-coop-toolbar-card span,
.afg-coop-toolbar-card strong,
.afg-coop-toolbar-card small {
    display: block;
}

.afg-coop-toolbar-card > div > span {
    color: var(--coop-muted);
    font-size: .82rem;
    line-height: 1.3;
}

.afg-coop-toolbar-card strong {
    margin-top: .14rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.32;
}

.afg-coop-toolbar-card small {
    margin-top: .22rem;
    color: var(--coop-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.afg-coop-section,
.afg-coop-process {
    padding: 1.15rem;
    margin-bottom: 1rem;
}

.afg-coop-section-head {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.afg-coop-section-icon,
.afg-coop-data-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--coop-blue);
    background: rgba(61, 145, 255, .14);
}

.afg-coop-section-head h2,
.afg-coop-card h2,
.afg-coop-data h2,
.afg-coop-cta h2 {
    margin: 0;
    color: #fff;
    font-size: 1.28rem;
    line-height: 1.3;
}

.afg-coop-section-head p,
.afg-coop-data p,
.afg-coop-cta p {
    margin: .25rem 0 0;
    color: var(--coop-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.afg-coop-format-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.afg-coop-format-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    padding: .9rem;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 11px;
    background: rgba(10, 23, 39, .68);
}

.afg-coop-format-icon {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--coop-blue);
    background: rgba(61, 145, 255, .14);
}

.afg-coop-format-card:nth-child(3n+2) .afg-coop-format-icon {
    color: var(--coop-orange);
    background: rgba(255, 154, 61, .14);
}

.afg-coop-format-card:nth-child(3n+3) .afg-coop-format-icon {
    color: var(--coop-green);
    background: rgba(114, 213, 114, .13);
}

.afg-coop-format-card h3 {
    margin: 0 0 .28rem;
    color: #fff;
    font-size: .96rem;
    line-height: 1.35;
}

.afg-coop-format-card p {
    margin: 0;
    color: var(--coop-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.afg-coop-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.afg-coop-card {
    padding: 1.15rem;
}

.afg-coop-card h2 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .85rem;
}

.afg-coop-card h2 i.bi {
    color: var(--coop-green);
}

.afg-coop-card-muted h2 i.bi {
    color: #ff8585;
}

.afg-coop-list {
    display: grid;
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.afg-coop-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    color: var(--coop-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.afg-coop-list-icon {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.afg-coop-list.positive .afg-coop-list-icon {
    color: #d7ffe7;
    background: rgba(87, 214, 141, .17);
}

.afg-coop-list.negative .afg-coop-list-icon {
    color: #ffd2d2;
    background: rgba(255, 107, 107, .14);
}

.afg-coop-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.afg-coop-steps li {
    min-width: 0;
    padding: .9rem;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 11px;
    background: rgba(10, 23, 39, .68);
}

.afg-coop-step-number {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: .65rem;
    border-radius: 9px;
    color: #071522;
    background: var(--coop-orange);
    font-size: .84rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.afg-coop-steps strong,
.afg-coop-steps li > div > span {
    display: block;
}

.afg-coop-steps strong {
    margin-bottom: .25rem;
    color: #fff;
    font-size: .93rem;
}

.afg-coop-steps li > div > span {
    color: var(--coop-muted);
    font-size: .87rem;
    line-height: 1.52;
}

.afg-coop-reach {
    padding: 1.15rem;
    margin-bottom: 1rem;
    border-color: rgba(181, 120, 255, .24);
    background: linear-gradient(145deg, rgba(39, 31, 76, .36), rgba(8, 18, 31, .98));
}

.afg-coop-reach-head {
    margin-bottom: .9rem;
}

.afg-coop-eyebrow {
    margin-bottom: .28rem;
    color: #d8c7f5;
}

.afg-coop-reach-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.afg-coop-reach-card {
    min-width: 0;
    padding: .95rem;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 11px;
    background: rgba(10, 23, 39, .72);
}

.afg-coop-reach-card-wide {
    grid-column: 1 / -1;
}

.afg-coop-reach-card-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .8rem;
}

.afg-coop-reach-card-head > div {
    min-width: 0;
}

.afg-coop-reach-card-icon {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.afg-coop-reach-card-icon.blue {
    color: var(--coop-blue);
    background: rgba(61, 145, 255, .14);
}

.afg-coop-reach-card-icon.purple {
    color: var(--coop-purple);
    background: rgba(181, 120, 255, .15);
}

.afg-coop-reach-card-icon.green {
    color: var(--coop-green);
    background: rgba(114, 213, 114, .13);
}

.afg-coop-reach-label {
    display: block;
    color: #fff;
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.3;
}

.afg-coop-reach-card-head small {
    display: block;
    margin-top: .1rem;
    color: var(--coop-muted);
    font-size: .78rem;
}

.afg-coop-metric-pair,
.afg-coop-metric-grid {
    display: grid;
    gap: .65rem;
}

.afg-coop-metric-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afg-coop-metric-pair.single {
    grid-template-columns: minmax(0, 1fr);
}

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

.afg-coop-metric {
    min-width: 0;
    padding: .72rem .78rem;
    border: 1px solid rgba(148, 163, 184, .11);
    border-radius: 9px;
    background: rgba(5, 15, 27, .48);
}

.afg-coop-metric strong,
.afg-coop-metric span,
.afg-coop-metric small {
    display: block;
}

.afg-coop-metric strong {
    color: #fff;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: -.02em;
}

.afg-coop-metric span {
    margin-top: .25rem;
    color: #dce8f7;
    font-size: .83rem;
    font-weight: 700;
    line-height: 1.35;
}

.afg-coop-metric small {
    margin-top: .16rem;
    color: var(--coop-muted);
    font-size: .75rem;
    line-height: 1.35;
}

.afg-coop-reach-note {
    margin: .8rem 0 0;
    color: var(--coop-muted);
    font-size: .78rem;
    line-height: 1.55;
}

.afg-coop-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem;
    border-color: rgba(87, 214, 141, .28);
    background: linear-gradient(145deg, rgba(24, 52, 38, .42), rgba(8, 18, 31, .98));
}

.afg-coop-cta .afg-coop-button {
    min-width: 160px;
}

@media (max-width: 1199.98px) {
    .afg-coop-hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr);
    }

    .afg-coop-hero-side {
        grid-template-columns: 1fr;
    }

    .afg-coop-mini {
        min-height: 0;
    }

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

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

@media (max-width: 991.98px) {
    .afg-coop-hero {
        grid-template-columns: 1fr;
    }

    .afg-coop-hero-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .afg-coop-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .afg-coop-page {
        padding-top: 1rem;
    }

    .afg-coop-hero,
    .afg-coop-section,
    .afg-coop-process,
    .afg-coop-card,
    .afg-coop-cta {
        padding: 1rem;
    }

    .afg-coop-hero-side,
    .afg-coop-format-grid,
    .afg-coop-two-column,
    .afg-coop-steps {
        grid-template-columns: 1fr;
    }

    .afg-coop-reach-grid {
        grid-template-columns: 1fr;
    }

    .afg-coop-reach-card-wide {
        grid-column: auto;
    }

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

    .afg-coop-cta {
        grid-template-columns: 1fr;
    }

    .afg-coop-cta .afg-coop-button {
        width: 100%;
    }
}

@media (max-width: 479.98px) {
    .afg-coop-reach {
        padding: 1rem;
    }

    .afg-coop-metric-pair,
    .afg-coop-metric-grid {
        grid-template-columns: 1fr;
    }

    .afg-coop-hero {
        padding: .9rem;
    }

    .afg-coop-hero h1 {
        font-size: 2rem;
    }

    .afg-coop-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .afg-coop-button {
        width: 100%;
    }

    .afg-coop-toolbar-card {
        align-items: flex-start;
    }
}


/* =========================================================
   HERSTELLER-INTEGRATION / TEASER
========================================================= */

.afg-coop-integration-page .afg-coop-hero {
    grid-template-columns: minmax(0, 1fr);
}

.afg-coop-integration-page .afg-coop-hero-copy {
    max-width: none;
}

.afg-coop-integration-page .afg-coop-lead {
    max-width: none;
}

.afg-coop-integration-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem;
    margin-bottom: 1rem;
    border-color: rgba(99, 173, 255, .28);
    background: linear-gradient(145deg, rgba(23, 47, 78, .48), rgba(8, 18, 31, .98));
}

.afg-coop-integration-teaser h2,
.afg-coop-integration-focus h2,
.afg-coop-integration-example h2 {
    margin: 0;
    color: #fff;
    font-size: 1.28rem;
    line-height: 1.3;
}

.afg-coop-integration-teaser p,
.afg-coop-integration-focus p,
.afg-coop-integration-example p {
    margin: .3rem 0 0;
    color: var(--coop-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.afg-coop-integration-teaser .afg-coop-button {
    min-width: 210px;
}

.afg-coop-integration-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    margin-top: .75rem;
}

.afg-coop-integration-benefits span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #dce8f7;
    font-size: .8rem;
    font-weight: 700;
}

.afg-coop-integration-benefits i.bi {
    color: var(--coop-green);
}

.afg-coop-integration-page .afg-coop-card h2 i.bi {
    color: var(--coop-green);
}

.afg-coop-integration-focus {
    border-color: rgba(99, 173, 255, .22);
    background: linear-gradient(145deg, rgba(18, 39, 66, .5), rgba(7, 17, 30, .97));
}

.afg-coop-integration-focus h2 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}

.afg-coop-integration-focus p + p {
    margin-top: .65rem;
}

.afg-coop-integration-technical {
    border-color: rgba(193, 138, 255, .22);
    background: linear-gradient(145deg, rgba(35, 28, 67, .38), rgba(7, 17, 30, .97));
}

.afg-coop-integration-example {
    padding: 1.15rem;
    margin-bottom: 1rem;
    border-color: rgba(112, 221, 112, .22);
    background: linear-gradient(145deg, rgba(21, 53, 37, .35), rgba(7, 17, 30, .97));
}

.afg-coop-integration-example .afg-coop-section-head {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .afg-coop-integration-teaser {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .afg-coop-integration-teaser .afg-coop-button {
        width: 100%;
        min-width: 0;
    }
}
