:root {
    --ddm-navy: #243b44;
    --ddm-red: #db221a;
    --ddm-gold: #cfad6c;
    --ddm-ink: #182a31;
    --ddm-paper: #f6f4ef;
    --ddm-white: #fff;
    --ddm-line: rgba(36, 59, 68, .16);
}

.dd-detektivum-page .page-title,
.dd-detektivum-page .page-header {
    display: none;
}

.ddm-shell {
    color: var(--ddm-ink);
    margin-inline: calc(50% - 50vw);
}

.ddm-hero {
    background:
        linear-gradient(90deg, rgba(17, 31, 37, .94) 0%, rgba(23, 43, 51, .85) 46%, rgba(23, 43, 51, .34) 78%, rgba(23, 43, 51, .18) 100%),
        var(--ddm-hero-image, linear-gradient(135deg, #1e333b 0%, var(--ddm-navy) 64%, #17282f 100%));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--ddm-white);
    min-height: clamp(440px, 46vw, 650px);
    overflow: hidden;
    position: relative;
}

.ddm-hero::after {
    background: var(--ddm-red);
    bottom: 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    width: 78%;
}

.ddm-hero::before {
    background: var(--ddm-gold);
    bottom: 0;
    content: "";
    height: 4px;
    position: absolute;
    right: 0;
    width: 22%;
}

.ddm-hero-inner,
.ddm-magazine,
.ddm-cta,
.ddm-article-body,
.ddm-back {
    box-sizing: border-box;
    margin-inline: auto;
    max-width: 1240px;
    width: min(100% - 40px, 1240px);
}

.ddm-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
    padding-block: clamp(56px, 8vw, 112px);
    position: relative;
    z-index: 1;
}

.ddm-logo {
    background: var(--ddm-white);
    border-left: 4px solid var(--ddm-red);
    display: block;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .12));
    height: auto;
    max-width: 880px;
    padding: clamp(12px, 2vw, 24px);
    width: min(100%, 880px);
}

.ddm-hero-main {
    background-position: center center;
}

.ddm-hero-privatfaelle,
.ddm-hero-handel-und-gewerbe,
.ddm-hero-beweislage,
.ddm-hero-digitale-spuren,
.ddm-hero-schutz-und-praevention {
    background-position: center center;
}

.ddm-hero-copy {
    margin-top: 34px;
    max-width: 800px;
}

.ddm-overline,
.ddm-category {
    color: var(--ddm-red);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ddm-hero h1 {
    color: var(--ddm-white);
    font-size: clamp(2rem, 4.6vw, 4.35rem);
    letter-spacing: -.035em;
    line-height: 1.04;
    margin: 12px 0 20px;
    max-width: 1050px;
}

.ddm-hero p {
    color: rgba(255, 255, 255, .84);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.68;
}

.ddm-magazine {
    padding-block: clamp(58px, 8vw, 104px);
}

.ddm-section-head {
    max-width: 720px;
}

.ddm-section-head h2 {
    color: var(--ddm-navy);
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -.03em;
    margin: 8px 0 14px;
}

.ddm-filters {
    border-bottom: 1px solid var(--ddm-line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 38px 0;
    padding-bottom: 22px;
}

.ddm-filter {
    background: transparent;
    border: 1px solid var(--ddm-line);
    border-radius: 999px;
    color: var(--ddm-navy);
    cursor: pointer;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    padding: 10px 17px;
    transition: .2s ease;
}

.ddm-filter:hover,
.ddm-filter:focus-visible,
.ddm-filter.is-active {
    background: var(--ddm-navy);
    border-color: var(--ddm-navy);
    color: var(--ddm-white);
}

.ddm-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ddm-card {
    background: var(--ddm-white);
    border: 1px solid var(--ddm-line);
    box-shadow: 0 12px 38px rgba(36, 59, 68, .07);
    min-height: 100%;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ddm-card::before {
    background: linear-gradient(90deg, var(--ddm-red) 0 82%, var(--ddm-gold) 82%);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.ddm-card:hover {
    box-shadow: 0 20px 50px rgba(36, 59, 68, .13);
    transform: translateY(-4px);
}

.ddm-card[hidden] {
    display: none;
}

.ddm-card-link {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    text-decoration: none;
}

.ddm-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.ddm-card-top {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.ddm-card time,
.ddm-article-meta time,
.ddm-article-meta span {
    color: #65767d;
    font-size: .78rem;
    font-weight: 700;
}

.ddm-card h3 {
    color: var(--ddm-navy);
    font-size: clamp(1.18rem, 1.6vw, 1.5rem);
    line-height: 1.27;
    margin: 28px 0 15px;
}

.ddm-card p {
    color: #52656d;
    line-height: 1.65;
}

.ddm-read {
    color: var(--ddm-red);
    font-weight: 800;
    margin-top: auto;
    padding-top: 24px;
}

.ddm-cta {
    align-items: center;
    background: var(--ddm-paper);
    border-left: 5px solid var(--ddm-red);
    display: flex;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: clamp(60px, 8vw, 110px);
    padding: clamp(30px, 5vw, 58px);
}

.ddm-cta h2 {
    color: var(--ddm-navy);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    margin: 8px 0 12px;
}

.ddm-button {
    background: var(--ddm-red);
    color: var(--ddm-white);
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 800;
    padding: 15px 24px;
    text-decoration: none;
}

.ddm-button:hover {
    background: var(--ddm-navy);
    color: var(--ddm-white);
}

.ddm-logo-link {
    display: inline-block;
}

.ddm-article-hero .ddm-logo {
    margin-bottom: clamp(36px, 6vw, 72px);
    max-width: 620px;
}

.ddm-article-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 15px;
}

.ddm-article-meta .ddm-category {
    color: var(--ddm-gold);
}

.ddm-article-meta time,
.ddm-article-meta span {
    color: rgba(255, 255, 255, .75);
}

.ddm-article-intro {
    max-width: 850px;
}

.ddm-article-body {
    font-size: 1.06rem;
    line-height: 1.8;
    max-width: 860px;
    padding-block: clamp(54px, 8vw, 96px);
}

.ddm-article-body h2,
.ddm-article-body h3 {
    color: var(--ddm-navy);
    letter-spacing: -.018em;
    margin-top: 2em;
}

.ddm-article-body a {
    color: var(--ddm-red);
}

.ddm-back {
    border-top: 1px solid var(--ddm-line);
    max-width: 860px;
    padding: 28px 0 clamp(60px, 8vw, 100px);
}

.ddm-back a {
    color: var(--ddm-navy);
    font-weight: 800;
}

.ddm-footer-links a {
    color: inherit;
}

@media (max-width: 980px) {
    .ddm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ddm-hero {
        background-position: 58% center;
        min-height: 410px;
    }

    .ddm-hero-main {
        background-position: 62% center;
    }

    .ddm-hero-inner,
    .ddm-magazine,
    .ddm-cta,
    .ddm-article-body,
    .ddm-back {
        width: min(100% - 28px, 1240px);
    }

    .ddm-grid {
        grid-template-columns: 1fr;
    }

    .ddm-card-link {
        padding: 25px;
    }

    .ddm-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ddm-card,
    .ddm-filter {
        transition: none;
    }
}
