.kompendium-page {
    background: #f4f6fb;
    color: #1a1d26;
}

.kompendium-page .header_area {
    position: relative;
    z-index: 30;
    background: #ffffff;
}

.kompendium-page .main_header_area,
.kompendium-page .main_header_area.sticky {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: 90px;
    overflow: visible;
    background: #ffffff !important;
    border-bottom: 1px solid #e6e8ef;
    box-shadow: none !important;
    animation: none !important;
}

.kompendium-page .header_area .mobile-logo-wrapper {
    display: none !important;
}

.kompendium-page .logo_area {
    padding: 18px 0;
}

.kompendium-page .nt-logo img {
    max-height: 52px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.kompendium-page .mainmenu ul#nav {
    white-space: nowrap;
}

.kompendium-page .mainmenu ul#nav li a {
    color: #1a1d26 !important;
    padding: 34px 0 34px 18px;
    font-size: 13px;
}

.kompendium-page .mainmenu ul#nav li a:hover,
.kompendium-page .mainmenu ul#nav li.current_page_item a {
    color: #001e88 !important;
}

.kompendium-page .mean-container .mean-bar {
    position: relative;
    background: #ffffff;
    height: 72px;
}

.kompendium-page .mean-container a.meanmenu-reveal {
    color: #001e88 !important;
}

.kompendium-hero {
    padding: 48px 0 56px;
    background:
        radial-gradient(1200px 400px at 12% -10%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(165deg, #001e88 0%, #0a2bb5 52%, #00175f 100%);
    color: #ffffff;
}

.kompendium-hero .kompendium-wrap {
    max-width: 1100px;
}

.kompendium-kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.kompendium-hero h1 {
    color: #ffffff !important;
    font-size: 42px !important;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.03em !important;
    line-height: 1.15;
}

.kompendium-hero p {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 400;
}

.kompendium-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.kompendium-hero-actions a {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.kompendium-btn-light {
    background: #ffffff !important;
    color: #001e88 !important;
}

.kompendium-btn-light:hover {
    background: #e8edff !important;
    color: #001e88 !important;
}

.kompendium-btn-ghost {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.kompendium-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.kompendium-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.kompendium-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 28px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.kompendium-principle {
    background: #ffffff;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    padding: 20px 18px 18px;
    box-shadow: 0 10px 30px rgba(0, 30, 136, 0.08);
}

.kompendium-principle span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #001e88;
    margin-bottom: 8px;
}

.kompendium-principle p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
}

.kompendium-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 88px;
    align-items: start;
}

.kompendium-toc {
    position: sticky;
    top: 24px;
    align-self: start;
    background: #ffffff;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    padding: 18px 8px 14px 16px;
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.kompendium-toc p {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #001e88;
}

.kompendium-toc a {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: #334155 !important;
    padding: 7px 10px 7px 8px;
    margin-left: -8px;
    text-decoration: none;
    border-left: 2px solid transparent;
}

.kompendium-toc a:hover {
    color: #001e88 !important;
}

.kompendium-toc a.is-active {
    color: #001e88 !important;
    font-weight: 600;
    border-left-color: #c9a227;
    background: #f4f6fb;
}

.kompendium-article {
    background: #ffffff;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    padding: 36px 40px 40px;
    min-width: 0;
}

.kompendium-article h2 {
    color: #001e88 !important;
    font-size: 26px !important;
    margin: 8px 0 14px;
    letter-spacing: -0.02em !important;
    line-height: 1.25;
}

.kompendium-section {
    margin: 0 0 44px;
    scroll-margin-top: 120px;
}

.kompendium-article h3 {
    font-size: 18px;
    margin: 26px 0 10px;
    color: #0f172a;
}

.kompendium-article p,
.kompendium-article li {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

.kompendium-article ul,
.kompendium-article ol {
    padding-left: 20px;
    margin: 0 0 16px;
    list-style: disc;
}

.kompendium-article ol {
    list-style: decimal;
}

.kompendium-article li {
    margin-bottom: 8px;
}

.kompendium-lead {
    font-size: 18px !important;
    color: #1a1d26 !important;
}

.kompendium-note,
.kompendium-warn {
    background: #fff;
    border-left: 4px solid #c9a227;
    padding: 14px 16px;
    margin: 18px 0;
}

.kompendium-warn {
    border-left-color: #dc3545;
}

.kompendium-note p,
.kompendium-warn p {
    margin: 0;
}

.kompendium-flags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 18px 0 8px;
}

.kompendium-flag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e6e8ef;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #334155;
}

.kompendium-flag i {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex: 0 0 18px;
}

.kompendium-flag-1 i { background: #28a745; }
.kompendium-flag-2 i { background: #ffc107; }
.kompendium-flag-3 i { background: #fd7e14; }
.kompendium-flag-4 i { background: #dc3545; }

.kompendium-table-wrap {
    overflow-x: auto;
    margin: 16px 0 20px;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    background: #ffffff;
}

.kompendium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

.kompendium-table th,
.kompendium-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #eef0f5;
}

.kompendium-table th {
    background: #f7f8fb;
    color: #001e88;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.kompendium-table tr:last-child td {
    border-bottom: 0;
}

.kompendium-table code {
    font-size: 12px;
    background: #eef2ff;
    color: #001e88;
    padding: 1px 5px;
    border-radius: 3px;
}

.kompendium-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.kompendium-card {
    background: #ffffff;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    padding: 16px 16px 12px;
}

.kompendium-card h3 {
    margin-top: 0;
}

.kompendium-card p:last-child {
    margin-bottom: 0;
}

.kompendium-cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.kompendium-case {
    background: #ffffff;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    padding: 16px;
}

.kompendium-case h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.kompendium-case p {
    margin: 0;
    font-size: 14px !important;
}

.kompendium-steps {
    counter-reset: komp-step;
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 20px !important;
}

.kompendium-steps li {
    position: relative;
    padding-left: 44px;
    margin-bottom: 14px;
    list-style: none !important;
}

.kompendium-steps li::before {
    counter-increment: komp-step;
    content: counter(komp-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #001e88;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

.kompendium-cta {
    margin-top: 12px;
    padding: 28px 24px;
    background: #001e88;
    color: #ffffff;
    border-radius: 8px;
}

.kompendium-cta h2 {
    color: #ffffff !important;
    margin: 0 0 10px !important;
}

.kompendium-cta p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 18px;
}

.kompendium-cta a {
    display: inline-block;
    background: #ffffff;
    color: #001e88 !important;
    text-decoration: none !important;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 2px;
    margin-right: 10px;
    margin-bottom: 8px;
}

.kompendium-cta a.kompendium-cta-secondary {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.newsletter-status {
    max-width: 720px;
    margin: 32px auto 64px;
    padding: 28px 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 30, 136, 0.08);
}

.newsletter-status p {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .kompendium-hero h1 {
        font-size: 32px;
    }

    .kompendium-principles,
    .kompendium-layout,
    .kompendium-pair,
    .kompendium-cases,
    .kompendium-flags {
        grid-template-columns: 1fr;
    }

    .kompendium-layout {
        padding-top: 28px;
    }

    .kompendium-toc {
        position: static;
        max-height: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 12px;
    }

    .kompendium-toc p {
        grid-column: 1 / -1;
    }

    .kompendium-article {
        padding: 24px 18px;
    }
}

@media print {
    .kompendium-page .header_area,
    .kompendium-page footer,
    .kompendium-toc,
    .kompendium-hero-actions,
    .kompendium-cta a {
        display: none !important;
    }

    .kompendium-hero {
        padding: 24px 0;
        background: #001e88 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .kompendium-layout {
        display: block;
        padding-top: 16px;
    }

    .kompendium-section {
        break-inside: avoid;
    }
}
