/* KitaHero Editorial — Frontend CSS */
/* KitaHero CI: Hauptgrün #11702c */
.ked-featured { margin: 0 0 24px; }
.ked-featured img { width: 100%; height: auto; border-radius: 12px; }
.ked-featured-caption { font-size: 12px; color: #777; margin-top: 6px; text-align: right; }
.ked-author-box { display: flex; gap: 18px; align-items: flex-start; background: #f5f9f6;
    border-left: 4px solid #11702c; border-radius: 8px; padding: 20px 22px; margin: 36px 0 12px; }
.ked-author-avatar { width: 110px; height: 110px; border-radius: 50%; border: 3px solid #11702c; flex-shrink: 0; }
.ked-author-name { font-size: 18px; font-weight: 700; color: #1d3320; }
.ked-author-role { font-size: 13px; color: #11702c; font-weight: 600; margin: 2px 0 10px; }
.ked-author-bio { font-size: 14px; line-height: 1.55; color: #444; white-space: pre-line; }
@media (max-width: 600px) { .ked-author-box { flex-direction: column; align-items: center; text-align: center; } }

/* Card-Grid (allgemein) */
.ked-card { background: #fff; border-radius: 12px; overflow: hidden;
    text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.ked-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(17,112,44,.18); }
.ked-card-img { height: 170px; background-size: cover; background-position: center; background-color: #e8f5e9; }
.ked-card-body { padding: 16px 20px 18px; }
.ked-card-region { font-size: 11px; color: #11702c; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.ked-card-title { font-size: 16px; line-height: 1.35; color: #1d3320; margin: 0 0 8px; font-weight: 700; }
.ked-card-excerpt { font-size: 13px; line-height: 1.5; color: #666; margin: 0 0 12px; }
.ked-card-meta { font-size: 11px; color: #999; display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.ked-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }

/* ════════════ Wissens-Hub ════════════ */
.ked-wh { font-family: Roboto, GlacialIndifference, sans-serif; color: #242429; }
.ked-wh * { box-sizing: border-box; }
.ked-wh-pills a span, .ked-wh-cat-icon, .ked-subtopic-icon {
    font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji','Twemoji Mozilla',sans-serif !important;
    font-style: normal !important; font-variant: normal !important; font-weight: normal !important;
}
.ked-wh-hero { background: linear-gradient(135deg, #11702c 0%, #1b8538 60%, #2da047 100%) !important;
    color: #fff; padding: 70px 24px 60px; position: relative; overflow: hidden; }
.ked-wh-hero::before { content:''; position:absolute; top:-30%; right:-10%; width:500px; height:500px;
    background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 65%); }
.ked-wh-hero::after { content:''; position:absolute; bottom:-50%; left:-15%; width:600px; height:600px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 60%); }
.ked-wh-hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.ked-wh-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,.85);
    display:inline-block; padding: 6px 14px; background: rgba(255,255,255,.18); border-radius: 20px; margin-bottom: 18px; }
.ked-wh-hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.1; margin: 0 0 18px; color:#fff !important; font-weight: 700; }
.ked-wh-hero p { font-size: clamp(15px, 2vw, 18px); line-height: 1.55; max-width: 720px; opacity: .94; margin: 0 0 32px; color:#fff !important; }
.ked-wh-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ked-wh-pills a { display:inline-flex !important; align-items:center; gap:6px; padding: 9px 16px;
    background: rgba(255,255,255,.16); color:#fff !important; border-radius: 30px;
    font-size: 14px; font-weight: 500; text-decoration: none !important; transition: all .15s;
    backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); }
.ked-wh-pills a:hover { background: #fff; color: #11702c !important; transform: translateY(-1px); }
.ked-wh-pills a span { font-size: 15px; }
.ked-wh-section { max-width: 1120px; margin: 0 auto; padding: 50px 24px 10px; }
.ked-wh-head { display: flex !important; align-items: baseline; justify-content: space-between; margin-bottom: 4px; gap: 16px; flex-wrap: wrap; }
.ked-wh-head h2 { font-size: 26px; margin: 0; color: #11702c !important; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.ked-wh-head h2 a { color: inherit !important; text-decoration: none; }
.ked-wh-head h2 a:hover { text-decoration: underline; }
.ked-wh-cat-icon { font-size: 28px; display:inline-block; }
.ked-wh-cat-desc { color: #666; font-size: 14px; margin: 0 0 22px; max-width: 760px; }
.ked-wh-more { color: #11702c !important; font-weight: 600; font-size: 14px; text-decoration: none !important; white-space: nowrap;
    padding: 6px 14px; border: 1px solid #11702c; border-radius: 20px; transition: all .15s; display: inline-block; }
.ked-wh-more:hover { background: #11702c; color: #fff !important; }
.ked-wh-empty { background: #fff; padding: 32px 24px; border-radius: 12px;
    border: 1px dashed #c8e6c9; color: #888; font-style: italic; text-align: center; margin-top: 18px; }
.ked-wh-feat { display: grid !important; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; margin-top: 20px; }
.ked-wh-feat-card.is-hero { grid-row: 1/3; }
.ked-wh-feat-card { display: flex !important; flex-direction: column; background: #fff !important;
    border-radius: 14px; overflow: hidden; text-decoration: none !important; color: inherit !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; min-height: 220px; }
.ked-wh-feat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(17,112,44,.18); }
.ked-wh-feat-img { height: 60%; min-height: 180px; background-size: cover; background-position: center; }
.ked-wh-feat-card.is-hero .ked-wh-feat-img { height: 65%; min-height: 280px; }
.ked-wh-feat-body { padding: 18px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ked-wh-feat-cat { display:inline-block; padding: 3px 10px; background: #e8f5e9; color: #11702c;
    border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; width: fit-content; }
.ked-wh-feat-body h3 { margin: 0; font-size: 18px; line-height: 1.3; color: #1b3320; font-weight: 700; }
.ked-wh-feat-card.is-hero .ked-wh-feat-body h3 { font-size: 24px; }
.ked-wh-feat-body p { margin: 0; font-size: 14px; color: #555; line-height: 1.5; }
.ked-wh-feat-meta { font-size: 12px; color: #888; margin-top: auto; }
@media (max-width: 800px) {
    .ked-wh-feat { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
    .ked-wh-feat-card.is-hero { grid-row: auto !important; }
}

/* ════════════ Category-Detail-Page ════════════ */
.ked-catpage { max-width: 1280px; margin: 0 auto; padding: 0 20px; font-family: Roboto, GlacialIndifference, sans-serif; }
.ked-catpage-hero { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    padding: 56px 40px 48px; border-radius: 0 0 18px 18px; margin: 0 0 36px; position: relative; overflow: hidden; }
.ked-catpage-hero::before { content: ''; position: absolute; top: -20%; right: -8%; width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(17,112,44,.15), transparent 70%); }
.ked-catpage-hero-inner { position: relative; max-width: 800px; }
.ked-catpage-breadcrumb { font-size: 13px; color: #11702c; margin-bottom: 16px; }
.ked-catpage-breadcrumb a { color: #11702c !important; text-decoration: none; font-weight: 600; }
.ked-catpage-breadcrumb span { margin: 0 6px; color: #888; }
.ked-catpage-hero h1 { font-size: clamp(28px, 4vw, 44px) !important; color: #1b3320 !important; margin: 0 0 14px !important; line-height: 1.15; font-weight: 800; }
.ked-catpage-intro { font-size: 17px; line-height: 1.55; color: #2d4030; margin: 0 0 18px; max-width: 700px; }
.ked-catpage-stats { font-size: 13px; color: #555; }
.ked-catpage-stats strong { color: #11702c; }
.ked-catpage-subtopics { margin: 0 0 48px; }
.ked-catpage-subtopics h2 { font-size: 22px; color: #11702c !important; margin: 0 0 18px; }
.ked-subtopic-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ked-subtopic-card { display: flex !important; align-items: center; gap: 14px; padding: 18px 20px;
    background: #fff !important; border: 1px solid #e8eae9; border-radius: 14px; text-decoration: none !important;
    color: #1b3320 !important; font-weight: 600; transition: all .2s ease;
    --ked-accent: #11702c; position: relative; overflow: hidden; }
.ked-subtopic-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--ked-accent); opacity: 0; transition: opacity .2s ease; }
.ked-subtopic-card:hover { border-color: var(--ked-accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.ked-subtopic-card:hover::before { opacity: 1; }
.ked-st-icon { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex !important; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--ked-accent) 12%, #fff); color: var(--ked-accent); border-radius: 10px; transition: all .2s ease; }
.ked-st-icon svg { width: 24px; height: 24px; }
.ked-subtopic-card:hover .ked-st-icon { background: var(--ked-accent); color: #fff; }
.ked-st-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ked-st-title { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.3; color: #1b3320; }
.ked-st-meta { font-size: 12px; color: #888; font-weight: 500; }
.ked-st-arrow { flex: 0 0 auto; color: #ccc; font-size: 20px; transition: all .2s ease; }
.ked-subtopic-card:hover .ked-st-arrow { color: var(--ked-accent); transform: translateX(3px); }
/* Legacy classes for backwards-compat: */
.ked-subtopic-icon { font-size: 22px; }
.ked-subtopic-title { font-size: 15px; }
.ked-catpage-layout { display: grid !important; grid-template-columns: 1fr 320px; gap: 36px; margin-bottom: 60px; }
@media (max-width: 900px) { .ked-catpage-layout { grid-template-columns: 1fr !important; } }
.ked-catpage-main h2 { font-size: 22px; color: #11702c !important; margin: 0 0 18px; border-bottom: 2px solid #11702c; padding-bottom: 6px; }
.ked-catpage-sidebar { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 900px) { .ked-catpage-sidebar { position: static; max-height: none; } }
.ked-side-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 18px 20px; }
.ked-side-box h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: #11702c !important; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid #e0e0e0; }
.ked-side-list { list-style: none; padding: 0; margin: 0; }
.ked-side-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.ked-side-list li:last-child { border: 0; }
.ked-side-list li a { color: #1b3320 !important; text-decoration: none; font-size: 13px; line-height: 1.4; display: block; }
.ked-side-list li a:hover { color: #11702c !important; }
.ked-side-list li span { display: block; font-size: 11px; color: #999; margin-top: 2px; }
.ked-side-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ked-side-cats li a { display: inline-flex !important; gap: 6px; align-items: center; padding: 5px 10px;
    background: #e8f5e9; color: #11702c !important; border-radius: 14px; font-size: 12px; text-decoration: none; font-weight: 600; }
.ked-side-cats li a:hover { background: #11702c; color: #fff !important; }
.ked-side-cats li a span { background: rgba(0,0,0,.08); padding: 1px 6px; border-radius: 8px; font-size: 10px; }
.ked-cat-empty { background: #f9f9f9; padding: 20px; border-radius: 8px; color: #888; }

/* Twemoji-Output: img.emoji ist inline mit Text */
img.emoji { height: 1em; width: 1em; margin: 0 .05em 0 .1em; vertical-align: -0.1em;
    display: inline-block !important; }
.ked-wh-cat-icon img.emoji, .ked-subtopic-icon img.emoji { height: 1.4em; width: 1.4em; }
.ked-wh-pills a img.emoji { height: 1.1em; width: 1.1em; }

/* Override: Twemoji-IMG-Größe muss klein bleiben (Theme rendert img max-width:100%) */
img.emoji {
    height: 1em !important; width: 1em !important;
    max-width: 1em !important; max-height: 1em !important;
    min-width: 14px !important; min-height: 14px !important;
    margin: 0 .1em !important; vertical-align: -0.1em !important;
    display: inline !important; box-shadow: none !important; border: none !important;
}
/* Spezifisch in Cards/Author-Box */
.ked-card img.emoji, .ked-card-region img.emoji,
.ked-author-box img.emoji, .ked-side-cats img.emoji,
.ked-catpage-stats img.emoji, .ked-wh-feat-cat img.emoji,
.ked-card-meta img.emoji { height: 1.1em !important; width: 1.1em !important; }

/* Legacy: count-Badge (vom alten Layout) — overridden durch .ked-st-meta */
.ked-subtopic-count { font-size: 11px; font-weight: 700; color: #fff !important; background: #11702c; padding: 3px 8px; border-radius: 10px; min-width: 22px; text-align: center; }

/* Share-Bar (WhatsApp/Facebook/Mail/Link kopieren) — ohne Tracking */
.ked-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 6px; padding: 15px 18px; background: #f5f9f6; border: 1px solid #e1ebe3; border-radius: 12px; }
.ked-share-label { font-weight: 700; color: #1d3320; font-size: 14px; margin-right: 4px; }
.ked-share-btn { display: inline-flex !important; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px !important; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none !important; border: none; cursor: pointer; color: #fff !important; transition: filter .15s; box-shadow: none !important; }
.ked-share-btn svg { width: 16px; height: 16px; flex: none; }
.ked-share-btn:hover { filter: brightness(1.08); color: #fff !important; }
.ked-share-btn.wa { background: #25D366 !important; }
.ked-share-btn.fb { background: #1877F2 !important; }
.ked-share-btn.mail { background: #6b7280 !important; }
.ked-share-btn.copy { background: #11702c !important; }
.ked-share-btn.copy.ok { background: #0a8a3a !important; }
@media (max-width: 600px) {
    .ked-share { justify-content: center; }
    .ked-share-label { width: 100%; text-align: center; margin: 0 0 2px; }
}

/* „Zuletzt redaktionell geprüft"-Stand (Frische-Signal) */
.ked-stand { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 20px; padding: 5px 12px 5px 9px; background: #eef5f0; border: 1px solid #d9e8df; border-radius: 999px; font-size: 12.5px; color: #2f5d3f; font-weight: 600; }
.ked-stand svg { width: 14px; height: 14px; color: #11702c; flex: none; }
.ked-stand time { font-weight: 700; }
/* Korrekturhinweis (transparente Redaktions-Korrektur) */
.ked-correction { margin: 0 0 18px; padding: 13px 16px; background: #fff7e6; border-left: 4px solid #d97706; border-radius: 8px; font-size: 14px; line-height: 1.55; color: #5b3d12; }
.ked-correction strong { color: #b45309; }
