/* ===================================================================
   Karten-System für Chunks (content/chunks/cards/*).
   Wird auf Detailseiten geladen, die Karten einbetten (News-/Artikel-
   Parser-Token [[addon:…]] / [[card:…]]). Die Extensions-Seite bringt
   dieselben .ext-card-Styles aktuell noch über extensions.*.css mit.
   =================================================================== */

/* --- Abstand im Artikel-Fluss (nur in eingebettetem Kontext) --- */
/* .embedded-card = globale Marker-Klasse auf JEDEM Card-Chunk (kein visuelles Styling, nur Haken). */
.nws-article .embedded-card, .article .embedded-card { margin: 2em 0; }

/* Hinweis: Die Karten werden NICHT hier gegen-ueberschrieben. Stattdessen schliessen die
   generischen Artikel-Typo-Regeln in article-detail/styles.php die Karten-Subtrees aus
   (a/img/h3/ul mit :not(.embedded-card *)). So gilt das Karten-Styling unangetastet, und jede
   kuenftige Karte mit .embedded-card ist automatisch geschuetzt. */

/* --- Addon-/Extension-Karte --- */
.ext-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(13,90,147,0.05);
    transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s;
}
.ext-card:hover {
    box-shadow: 0 12px 30px rgba(13,90,147,0.12);
    transform: translateY(-2px);
    border-color: #c7ddf0;
}
.ext-shot {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #eef5fb 100%);
    border-right: 1px solid #e8eef4;
    border-radius: 16px 0 0 16px;
    padding: 32px 30px;
    min-height: 300px;
}
.ext-shot img { max-width: 100%; max-height: 230px; width: auto; height: auto; object-fit: contain; display: block; border-radius: 8px; box-shadow: 0 8px 24px rgba(13,33,55,0.13); }
.ext-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: rgba(13,90,147,0.92);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(13,33,55,0.2);
}
/* Farbwelt je Extension (Bild-Hintergrund + Tag) */
.ext-card--green .ext-shot { background: linear-gradient(135deg, #eefaf2 0%, #e1f5e9 100%); border-right-color: #cdeada; }
.ext-card--green .ext-badge { background: rgba(21,128,61,0.93); }
.ext-card--blue .ext-shot { background: linear-gradient(135deg, #f0f7ff 0%, #eaf3fb 100%); border-right-color: #e3edf6; }
.ext-card--blue .ext-badge { background: rgba(13,90,147,0.92); }
.ext-card--slate .ext-shot { background: linear-gradient(135deg, #eef1f5 0%, #e2e8f0 100%); border-right-color: #dde3ec; }
.ext-card--slate .ext-badge { background: rgba(51,65,85,0.93); }

/* Badge-Schatten + Button je Plugin-Farbe */
.ext-card--green .ext-badge { box-shadow: 0 3px 10px rgba(21,128,61,0.38); }
.ext-card--green .ext-btn { background: #15803d; box-shadow: 0 4px 12px rgba(21,128,61,0.25); }
.ext-card--green .ext-btn:hover { background: #126b33; box-shadow: 0 6px 18px rgba(21,128,61,0.3); }
.ext-card--blue .ext-badge { box-shadow: 0 3px 10px rgba(13,90,147,0.38); }
.ext-card--blue .ext-btn { background: #0d5a93; box-shadow: 0 4px 12px rgba(13,90,147,0.25); }
.ext-card--blue .ext-btn:hover { background: #094a7a; box-shadow: 0 6px 18px rgba(13,90,147,0.3); }
.ext-card--slate .ext-badge { box-shadow: 0 3px 10px rgba(51,65,85,0.42); }
.ext-card--slate .ext-btn { background: #0d2137; box-shadow: 0 4px 12px rgba(13,33,55,0.3); }
.ext-card--slate .ext-btn:hover { background: #081a2e; box-shadow: 0 6px 18px rgba(13,33,55,0.35); }
.ext-card-body { display: flex; flex-direction: column; justify-content: center; padding: 34px 36px; border-radius: 0 16px 16px 0; }
.ext-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ext-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    border: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
    object-fit: contain;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ext-head h3 { font-size: 1.3rem; font-weight: 700; color: #1a2b3c; margin: 0; line-height: 1.3; }
.ext-price { font-size: 0.82rem; font-weight: 600; color: #0d5a93; margin-top: 3px; }
.ext-tagline { font-size: 1.02rem; line-height: 1.7; color: #475569; margin: 0 0 18px; }
.ext-features { list-style: none; padding: 0; margin: 0 0 16px; }
.ext-features li {
    position: relative;
    padding-left: 28px;
    font-size: 0.96rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 11px;
}
.ext-features li:last-child { margin-bottom: 0; }
.ext-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 17px;
    height: 17px;
    background: #0d5a93;
    border-radius: 50%;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 011.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 01-1.065.02L3.217 8.384a.757.757 0 010-1.06.733.733 0 011.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 011.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 01-1.065.02L3.217 8.384a.757.757 0 010-1.06.733.733 0 011.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain; mask-size: contain;
}
.ext-card-foot { margin-top: 0; }
.ext-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #0d5a93;
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(13,90,147,0.22);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.ext-btn:hover { background: #094a7a; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,90,147,0.28); text-decoration: none; }

@media (max-width: 860px) {
    .ext-card { grid-template-columns: 1fr; }
    .ext-shot { border-right: none; border-bottom: 1px solid #e8eef4; min-height: 0; padding: 22px; border-radius: 16px 16px 0 0; }
    .ext-shot img { max-height: 280px; }
    .ext-card-body { padding: 26px 22px 28px; justify-content: flex-start; border-radius: 0 0 16px 16px; }
}

/* --- Guide-Karte (z.B. Update-Leitfaden) --- */
.guide-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, #f0f7ff 0%, #f7fbff 100%);
    border: 1px solid #d9e7f5;
    border-radius: 14px;
    padding: 24px 26px;
    box-shadow: 0 2px 10px rgba(13,90,147,0.05);
}
.guide-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #0d5a93;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,90,147,0.28);
}
.guide-card-icon svg { width: 24px; height: 24px; }
.guide-card-body { flex: 1; min-width: 0; }
.guide-card-title { font-size: 1.18rem; font-weight: 700; color: #1a2b3c; margin: 2px 0 8px; line-height: 1.3; }
.guide-card-text { font-size: 1rem; line-height: 1.7; color: #475569; margin: 0 0 16px; }
.guide-card-links { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #cfe0f0;
    background: #fff;
    color: #0d5a93;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
}
.guide-btn svg { width: 16px; height: 16px; }
.guide-btn:hover { border-color: #0d5a93; background: #eef6fd; color: #094a7a; text-decoration: none; }
.guide-btn-primary {
    background: #0d5a93;
    color: #fff;
    border-color: #0d5a93;
    box-shadow: 0 4px 12px rgba(13,90,147,0.22);
}
.guide-btn-primary:hover { background: #094a7a; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,90,147,0.28); }

@media (max-width: 560px) {
    .guide-card { flex-direction: column; gap: 14px; padding: 20px; }
    .guide-card-links { flex-direction: column; align-items: stretch; }
    .guide-btn { justify-content: center; }
}