/* ==========================================================================
   certana/security
   Mobil: Überschrift, Liste mit dunklen Symbolen, Bild quadratisch darunter.
   Ab 1200px: helle Karte, Bild rechts mit weißem Verlauf, Symbole orange.
   (Darunter gestapelt, damit Text nie über dem dunklen Server liegt.)
   ========================================================================== */

.security {
    --security-bg: #f6f9fc;
    padding-block: clamp(3rem, 6vw, 4.5rem);
    background: var(--security-bg);
}

.security__card { position: relative; }

/* Inhalt ----------------------------------------------------------------- */
.security__eyebrow { margin-bottom: 0.75rem; }

.security__title {
    margin: 0 0 0.6rem;
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 1.15rem + 2.4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--c-ink);
    text-wrap: balance;
}

.security__lead {
    max-width: 30rem;
    margin: 0 0 1.75rem;
    font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.5rem);
    line-height: 1.4;
    color: var(--c-muted);
}

.security__list {
    display: grid;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.security-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 1.1rem;
    align-items: start;
}

.security-item__icon {
    display: inline-flex;
    color: var(--c-ink);
}
.security-item__icon .icon {
    width: 32px;
    height: 32px;
    stroke-width: 1.6;
}

.security-item__title {
    margin: 0.15rem 0 0.3rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--c-ink);
}

.security-item__text {
    max-width: 24rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--c-muted);
}

.security-item__link { color: inherit; text-decoration: none; }
.security-item__link:hover {
    color: var(--c-accent-strong);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Bild mobil: unter der Liste, oben weich eingeblendet */
.security__media {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 70vh;
    margin: 2rem calc(-1 * var(--gutter)) calc(-1 * clamp(3rem, 6vw, 4.5rem));
    overflow: hidden;
}
.security__media picture,
.security__image {
    display: block;
    width: 100%;
    height: 100%;
}
.security__image {
    object-fit: cover;
    object-position: 51% 50%;
}
.security__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--security-bg) 0%, rgba(246, 249, 252, 0) 22%);
    pointer-events: none;
}

@media (min-width: 576px) {
    .security__media { aspect-ratio: 4 / 3; }
}
@media (min-width: 768px) {
    .security__media { aspect-ratio: 16 / 9; max-height: 60vh; }
}

/* Desktop: Karte mit Bild rechts ----------------------------------------- */
@media (min-width: 1200px) {
    .security { background: var(--c-bg); }

    .security__card {
        isolation: isolate;
        overflow: hidden;
        border-radius: 22px;
        background: var(--security-bg);
        box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 24px 60px -36px rgba(11, 18, 32, 0.35);
    }

    .security__content {
        position: relative;
        z-index: 1;
        max-width: 46rem;
        padding: clamp(2.5rem, 4.5vw, 4rem) clamp(2.5rem, 6vw, 6rem);
    }

    .security__card--image .security__content { min-height: clamp(520px, 44vw, 640px); }

    .security-item { grid-template-columns: 52px minmax(0, 1fr); column-gap: 2.25rem; }
    .security-item__icon { color: var(--c-accent); }
    .security-item__icon .icon { width: 46px; height: 46px; stroke-width: 1.7; }
    .security-item__title { font-size: 1.125rem; }
    .security-item__text { font-size: 1rem; }

    .security__media {
        position: absolute;
        inset: 0 0 0 auto;
        z-index: 0;
        width: 62%;
        max-height: none;
        aspect-ratio: auto;
        margin: 0;
    }
    .security__image { object-position: 50% 50%; }
    .security__media::after {
        background: linear-gradient(90deg, var(--security-bg) 0%, rgba(246, 249, 252, 0.85) 16%, rgba(246, 249, 252, 0.3) 36%, rgba(246, 249, 252, 0) 55%);
    }
}

/* Schmale Desktops: Bild etwas schmaler und nach rechts gerückt */
@media (min-width: 1200px) and (max-width: 1439.98px) {
    .security__media { width: 52%; }
    .security__image { object-position: 68% 50%; }
    .security-item__text { max-width: 21rem; }
}
