/* ==========================================================================
   Mr. White Agency – Feature-Karten (v7.16.0)

   Einheitlicher Karten-Stil nach Wadims Entwurf: dunkle Karte mit Bild,
   Headline mit Akzentwort, Text, Check-Liste, Button.
   Bewusst OHNE Eyebrow und ohne Nummern-Badge (v7.13.1).

   Markup erzeugt inc/feature-cards.php (whitetheme_feature_cards()).
   Präfix mwfc-. Lädt NACH dark-theme.css.

   WICHTIG: Diese Datei ist die EINZIGE Quelle für den Kartenstil. Beim
   Weiterentwickeln alte Regeln hier ersetzen, nicht neue davorschreiben
   (Lehre aus v7.11.12).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */
.mwfc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 48px;
}

@media (max-width: 1040px) {
    .mwfc-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
        gap: 22px;
    }
}

/* --------------------------------------------------------------------------
   Karte
   isolation:isolate hält die negativen z-index-Ebenen (Bild, Abdunklung)
   innerhalb der Karte statt hinter der Sektion.
   -------------------------------------------------------------------------- */
.mwfc {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* Inhalt sitzt mittig in der Karte, nicht oben */
    min-height: 400px;
    padding: 32px 30px 30px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(158deg, #0C141D 0%, #070C12 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        transform    0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
        border-color 0.4s ease,
        box-shadow   0.5s ease;
}

.mwfc:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--dk-lime, #5DBCC8) 45%, transparent);
    box-shadow:
        0 26px 60px -26px rgba(0, 0, 0, 0.8),
        0 0 40px -18px color-mix(in srgb, var(--dk-lime, #5DBCC8) 55%, transparent);
}

/* Bildebene ------------------------------------------------------------- */
.mwfc__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
}

.mwfc__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.68;
    transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mwfc:hover .mwfc__media img {
    opacity: 0.78;
    transform: scale(1.045);
}

/* Abdunklung, damit der Text auf jedem Bild lesbar bleibt */
.mwfc--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        176deg,
        rgba(5, 9, 15, 0.46) 0%,
        rgba(5, 9, 15, 0.78) 44%,
        rgba(5, 9, 15, 0.93) 74%,
        rgba(5, 9, 15, 0.97) 100%
    );
}

/* Ohne Bild: dezenter Akzent-Glow oben rechts statt leerer Fläche */
.mwfc--no-image::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -34%;
    right: -24%;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--dk-lime, #5DBCC8) 20%, transparent) 0%,
        transparent 68%
    );
    opacity: 0.85;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.mwfc--no-image:hover::before { opacity: 1; }

/* Inhalt ----------------------------------------------------------------- */
.mwfc__title {
    margin: 0 0 14px;
    font-size: clamp(1.28rem, 2vw, 1.52rem);
    line-height: 1.24;
    font-weight: 700;
    color: #FFFFFF;
}

.mwfc__title span { color: var(--dk-lime, #5DBCC8); }

.mwfc__text {
    margin: 0 0 22px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.72);
}

.mwfc__checks {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.mwfc__checks li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.88);
}

.mwfc__checks svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    padding: 3px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--dk-lime, #5DBCC8) 42%, transparent);
    color: var(--dk-lime, #5DBCC8);
}

.mwfc > :last-child { margin-bottom: 0; }

/* Preis ------------------------------------------------------------------ */
.mwfc__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.mwfc__price strong {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--dk-lime, #5DBCC8);
}

.mwfc__price span {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.55);
}

/* Hinweise unter dem Grid (Programm-Bedingungen, Netto-Kennzeichnung) ----- */
.mwfc-note {
    max-width: 720px;
    margin: 22px auto 0;
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: center;
    color: var(--color-text-body, #475569);
}

.mwfc-note + .mwfc-note { margin-top: 8px; }

/* Auf dunklen Sektionen hellere Schrift */
[class*="sec-dark"] .mwfc-note,
.mwfc-note--dark { color: rgba(226, 232, 240, 0.55); }

/* Button ----------------------------------------------------------------- */
.mwfc__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.mwfc__btn:hover,
.mwfc__btn:focus-visible {
    background: var(--dk-lime, #5DBCC8);
    border-color: var(--dk-lime, #5DBCC8);
    color: #05090F;
}

.mwfc__btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.mwfc__btn:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Mobil
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .mwfc {
        min-height: 0;
        padding: 26px 22px 24px;
    }

    .mwfc__title { font-size: 1.25rem; }
    .mwfc__checks { margin-bottom: 22px; }
}

/* --------------------------------------------------------------------------
   Reduzierte Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .mwfc,
    .mwfc__media img,
    .mwfc__btn svg {
        transition: none !important;
    }

    .mwfc:hover { transform: none; }
    .mwfc:hover .mwfc__media img { transform: none; }
}

/* ==========================================================================
   Preis-Panel (inc/price-panel.php, Präfix mwpp-)
   Kompaktes Preisband auf den Leistungs- und Technologie-Seiten, sitzt
   jeweils direkt vor dem CTA. Bewusst dunkel, damit es sich vom hellen
   CTA-Band darunter absetzt.
   ========================================================================== */
.mwpp-sec { padding: 64px 0; background: var(--dk-bg, #05090F); }

.mwpp {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 38px 40px;
    border-radius: 18px;
    background: linear-gradient(158deg, #0C141D 0%, #070C12 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mwpp__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}

.mwpp__price strong {
    font-size: clamp(1.9rem, 3.4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--dk-lime, #5DBCC8);
}

.mwpp__price span {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.55);
}

.mwpp__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.72);
}

.mwpp__meta {
    margin: 12px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.88);
}

.mwpp__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.mwpp__items li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.88);
}

.mwpp__items svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    padding: 3px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--dk-lime, #5DBCC8) 42%, transparent);
    color: var(--dk-lime, #5DBCC8);
}

.mwpp__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 10px;
    background: var(--dk-lime, #5DBCC8);
    border: 1px solid var(--dk-lime, #5DBCC8);
    color: #05090F;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mwpp__btn:hover,
.mwpp__btn:focus-visible {
    background: transparent;
    color: #FFFFFF;
}

.mwpp__btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.mwpp__btn:hover svg { transform: translateX(3px); }

.mwpp-note {
    max-width: 760px;
    margin: 18px auto 0;
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: center;
    color: rgba(226, 232, 240, 0.5);
}

@media (max-width: 1040px) {
    .mwpp {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 32px 28px;
    }

    .mwpp__btn { justify-content: center; }
}

@media (max-width: 600px) {
    .mwpp-sec { padding: 48px 0; }
    .mwpp { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .mwpp__btn, .mwpp__btn svg { transition: none !important; }
    .mwpp__btn:hover svg { transform: none; }
}

/* ==========================================================================
   Finanzierungs-Block (inc/price-panel.php, Präfix mwfin-)
   Erklärt die Ratenzahlung auf den Seiten, auf denen wir sie anbieten.
   ========================================================================== */
.mwfin-sec { padding: 72px 0; background: var(--dk-bg, #05090F); }

.mwfin {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 44px 44px;
    border-radius: 18px;
    background: linear-gradient(158deg, #0C141D 0%, #070C12 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mwfin__title {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.mwfin__title span { color: var(--dk-lime, #5DBCC8); }

.mwfin__lead {
    margin: 0 0 18px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.75);
}

.mwfin__note {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.55);
}

.mwfin__note a {
    color: var(--dk-lime, #5DBCC8);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mwfin__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.mwfin__items li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.9);
}

.mwfin__items svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    padding: 3px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--dk-lime, #5DBCC8) 42%, transparent);
    color: var(--dk-lime, #5DBCC8);
}

@media (max-width: 1040px) {
    .mwfin { grid-template-columns: 1fr; gap: 30px; padding: 34px 30px; }
}

@media (max-width: 600px) {
    .mwfin-sec { padding: 52px 0; }
    .mwfin { padding: 26px 22px; }
}

/* ==========================================================================
   Sichtbar-Gutschein (inc/price-panel.php, Präfix mwvg-)
   Hebt sich bewusst stärker ab als die übrigen Bänder — es ist das
   Geschenk, nicht eine Leistung unter vielen.
   ========================================================================== */
.mwvg-sec { padding: 72px 0; background: var(--dk-bg, #05090F); }

.mwvg {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 46px 44px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(158deg, #0C141D 0%, #070C12 100%);
    border: 1px solid color-mix(in srgb, var(--dk-lime, #5DBCC8) 32%, transparent);
}

/* Akzent-Glow, damit der Block als Geschenk gelesen wird */
.mwvg::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -40%;
    right: -12%;
    width: 62%;
    height: 130%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--dk-lime, #5DBCC8) 22%, transparent) 0%,
        transparent 68%
    );
    pointer-events: none;
}

.mwvg__badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--dk-lime, #5DBCC8) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--dk-lime, #5DBCC8) 34%, transparent);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dk-lime, #5DBCC8);
}

.mwvg__title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.mwvg__title span { color: var(--dk-lime, #5DBCC8); }

.mwvg__value {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
}

.mwvg__lead {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.72);
}

.mwvg__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.mwvg__items li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.9);
}

.mwvg__items svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    padding: 3px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--dk-lime, #5DBCC8) 42%, transparent);
    color: var(--dk-lime, #5DBCC8);
}

@media (max-width: 1040px) {
    .mwvg { grid-template-columns: 1fr; gap: 30px; padding: 34px 30px; }
}

@media (max-width: 600px) {
    .mwvg-sec { padding: 52px 0; }
    .mwvg { padding: 28px 22px; }
}

/* ==========================================================================
   KI-Bildmarke (whitetheme_ki_bildmarke) — dezente Kennzeichnung einzelner
   Bilder, z. B. im Hero. Bewusst klein und halbtransparent: sichtbar, wenn
   man hinsieht, ohne das Motiv zu zerschlagen.
   ========================================================================== */
.ki-bildmarke {
    position: absolute;
    right: 20px;
    bottom: 18px;
    z-index: 5;   /* über .container (3) und den Bild-Layern (0/1) */
    margin: 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(5, 9, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.62);
    pointer-events: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.mw-hero:hover .ki-bildmarke {
    background: rgba(5, 9, 15, 0.72);
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
    .ki-bildmarke {
        right: 14px;
        bottom: 12px;
        padding: 5px 10px;
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ki-bildmarke { transition: none !important; }
}

/* Bildbezogene Kennzeichnung: Wrapper um markierte Bilder ------------------
   <span> statt <div>, weil wpautop Bilder in <p> packt und ein Block-Element
   dort ungültiges HTML wäre. Das display:block macht es trotzdem zum Block. */
.ki-bildwrap {
    position: relative;
    display: block;
    max-width: 100%;
}

.ki-bildwrap > img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Im Bildkontext etwas kompakter als im Hero */
.ki-bildwrap .ki-bildmarke {
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    font-size: 0.68rem;
}

.ki-bildwrap:hover .ki-bildmarke {
    background: rgba(5, 9, 15, 0.72);
    color: rgba(255, 255, 255, 0.85);
}

/* Beitragsbild in der Projektkarte behält seinen Abstand nach unten */
.card > .ki-bildwrap { margin-bottom: 20px; }
.card > .ki-bildwrap > img { margin-bottom: 0 !important; }
