:root {
    --d4y-bg: #d4d5d7;
    --d4y-menu: #252525;
    --d4y-accent: #e61155;
    --d4y-accent-hover: #ff3b7a;
    --d4y-text: #242424;
    --d4y-muted: #6d6d6d;
    --d4y-surface: #f7f7f8;
    --d4y-border: #c8c9cc;
    --d4y-soft-pink: #303236;
    --d4y-container: 1240px;
    --d4y-radius: 16px;
    --d4y-shadow: 0 14px 36px rgba(23, 23, 23, 0.09);
    --d4y-header-height: 250px;
    --d4y-header-mobile-height: 330px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #303236;
    background-image: url('../images/d4y-dark-lines.png');
    background-repeat: repeat;
    background-size: 270px 566px;
    background-attachment: fixed;
    color: var(--d4y-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

a {
    color: var(--d4y-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

a:hover,
a:focus {
    color: var(--d4y-accent-hover);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--d4y-accent-hover);
    outline-offset: 3px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    left: 16px;
    padding: 12px 18px;
    top: 16px;
    width: auto;
    z-index: 100000;
    background: #fff;
    color: #111;
    border-radius: 4px;
}

.d4y-container {
    width: min(calc(100% - 40px), var(--d4y-container));
    margin-inline: auto;
}

.site-header {
    background: var(--d4y-menu);
}

.d4y-masthead {
    position: relative;
    height: auto;
    min-height: 0;
    aspect-ratio: 6 / 1;
    overflow: hidden;
    background: #25272a;
}

.d4y-masthead-picture,
.d4y-masthead-picture img {
    display: block;
    width: 100%;
    height: 100%;
}

.d4y-masthead-picture img {
    object-fit: contain;
    object-position: center center;
}

.d4y-brand-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 28px;
    pointer-events: none;
}

.d4y-brand-overlay::before {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
    z-index: -1;
}

.site-title,
.site-description {
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.site-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin-top: 8px;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.main-navigation {
    position: relative;
    z-index: 40;
    background: var(--d4y-menu);
    border-bottom: 4px solid var(--d4y-accent);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.d4y-nav-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.d4y-nav-brand {
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.d4y-nav-brand:hover,
.d4y-nav-brand:focus {
    color: #fff;
}

.d4y-nav-logo {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
}

.d4y-primary-menu,
.d4y-footer-menu,
.main-navigation .menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.d4y-primary-menu,
.main-navigation .menu {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.d4y-primary-menu > li,
.main-navigation .menu > li {
    position: relative;
}

.d4y-primary-menu a,
.main-navigation .menu a {
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.d4y-primary-menu a:hover,
.d4y-primary-menu a:focus,
.d4y-primary-menu .current-menu-item > a,
.main-navigation .menu a:hover,
.main-navigation .menu a:focus,
.main-navigation .menu .current_page_item > a {
    color: #fff;
    background: var(--d4y-accent);
}

.d4y-primary-menu .sub-menu,
.main-navigation .children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #171717;
    box-shadow: var(--d4y-shadow);
}

.d4y-primary-menu li:hover > .sub-menu,
.d4y-primary-menu li:focus-within > .sub-menu,
.main-navigation .menu li:hover > .children,
.main-navigation .menu li:focus-within > .children {
    display: block;
}

.d4y-primary-menu .sub-menu a,
.main-navigation .children a {
    min-height: 42px;
    padding: 8px 12px;
}

.d4y-menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.d4y-menu-toggle > span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}

.d4y-menu-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.d4y-menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
}

.d4y-menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.d4y-nav-search {
    flex: 0 0 220px;
}

.d4y-search-form {
    margin: 0;
    display: flex;
    width: 100%;
    border: 1px solid var(--d4y-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.d4y-search-form label {
    display: flex;
    flex: 1;
    margin: 0;
}

.d4y-search-form .search-field {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    color: #222;
    background: #fff;
}

.d4y-search-form .search-submit {
    width: 44px;
    border: 0;
    margin: 0;
    padding: 0;
    background: var(--d4y-accent);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
}

.d4y-ticker {
    background: #fff;
    border-bottom: 1px solid var(--d4y-border);
}

.d4y-ticker-inner {
    min-height: 54px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.d4y-ticker strong {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    grid-column: 1;
    margin-left: -18px;
    background: var(--d4y-accent);
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.055em;
    white-space: nowrap;
}

.d4y-ticker strong span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255,255,255,.22);
}

.d4y-ticker-line {
    display: flex;
    grid-column: 2;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.d4y-ticker-line::-webkit-scrollbar {
    display: none;
}

.d4y-ticker-line a {
    flex: 0 0 auto;
    padding: 0 18px;
    color: var(--d4y-text);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border-right: 1px solid var(--d4y-border);
}

.d4y-top-news,
.d4y-content-grid,
.d4y-widget-band {
    margin-top: 32px;
}

.d4y-featured-section {
    margin-top: 44px;
}

.d4y-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
.d4y-top-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.d4y-main-story {
    grid-column: 1;
    grid-row: 1;
}

.d4y-picks {
    grid-column: 1;
    grid-row: 1;
}

.d4y-top-grid > .d4y-sidebar {
    grid-column: 2;
    grid-row: 1;
    padding-top: 46px;
    padding-bottom: 30px;
}


.d4y-section-title,
.d4y-page-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.d4y-section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.d4y-section-title::after {
    content: "";
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--d4y-accent), rgba(230,17,85,0));
}

.d4y-section-title span {
    display: inline-block;
}

.d4y-hero-card,
.d4y-section-title a {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
}

.d4y-section-title a:hover,
.d4y-section-title a:focus-visible {
    color: var(--d4y-accent);
}
.d4y-pick-card,
.d4y-news-card,
.d4y-list-card,
.d4y-article,
.d4y-widget,
.d4y-comments {
    background: var(--d4y-surface);
    border: 1px solid var(--d4y-border);
    border-radius: var(--d4y-radius);
    box-shadow: var(--d4y-shadow);
}

.d4y-hero-card {
    position: relative;
    height: 590px;
    min-height: 0;
    overflow: hidden;
}

.d4y-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.d4y-post-image,
.d4y-media-link > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

a:hover .d4y-post-image {
    transform: scale(1.025);
}

.d4y-post-image-fallback {
    object-fit: cover;
    background: #222;
}

.d4y-card-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 90px 28px 28px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.9));
}

.d4y-card-overlay h2 {
    max-width: 900px;
    margin: 10px 0 4px;
    font-size: clamp(1.65rem, 3.3vw, 3rem);
    line-height: 1.08;
}

.d4y-card-overlay h2 a,
.d4y-card-overlay .d4y-entry-meta {
    color: #fff;
}

.d4y-category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.d4y-category-badges a {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--d4y-accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.d4y-picks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.d4y-picks-grid::before,
.d4y-picks-grid::after {
    content: none;
    display: none;
}

.d4y-pick-card {
    flex: 0 0 calc((100% - 48px) / 4);
    display: flex;
    flex-direction: column;
    min-height: 112px;
    overflow: hidden;
}

.d4y-pick-card .d4y-media-link {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.d4y-pick-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 14px;
}

.d4y-pick-copy h3,
.d4y-card-copy h3 {
    margin: 9px 0 5px;
    line-height: 1.18;
}

.d4y-pick-copy h3 {
    font-size: 1rem;
}

.d4y-pick-copy h3 a,
.d4y-card-copy h3 a,
.d4y-list-copy h2 a {
    color: var(--d4y-text);
    text-decoration: none;
}

.d4y-pick-copy h3 a:hover,
.d4y-card-copy h3 a:hover,
.d4y-list-copy h2 a:hover {
    color: var(--d4y-accent);
}

.d4y-entry-meta {
    margin: 7px 0 0;
    color: var(--d4y-muted);
    font-size: .78rem;
}

.d4y-featured-list::before,
.d4y-featured-list::after {
    content: none;
    display: none;
}

.d4y-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.d4y-featured-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.d4y-featured-list .d4y-news-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    min-height: 132px;
    overflow: hidden;
}

.d4y-featured-list .d4y-media-link {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 132px;
    aspect-ratio: auto;
    overflow: hidden;
}

.d4y-featured-list .d4y-card-copy {
    grid-column: 2;
    grid-row: 1;
    padding: 14px 16px;
}

.d4y-featured-list .d4y-card-copy h3 {
    margin: 8px 0 5px;
    font-size: 1rem;
    line-height: 1.2;
}

.d4y-featured-list .d4y-card-copy p {
    display: none;
}

.d4y-news-card {
    overflow: hidden;
}

.d4y-news-card .d4y-media-link {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.d4y-card-copy {
    padding: 18px;
}

.d4y-card-copy h3 {
    font-size: 1.14rem;
}

.d4y-card-copy p {
    margin: 10px 0 0;
    color: var(--d4y-muted);
    font-size: .92rem;
}

.d4y-press-section {
    margin-top: 44px;
    padding: 42px 0;
    background: linear-gradient(135deg, #25272a, var(--d4y-soft-pink));
    border-top: 1px solid rgba(230,17,85,.15);
    border-bottom: 1px solid rgba(230,17,85,.15);
}

.d4y-press-section .d4y-section-title {
    color: #fff;
}

.d4y-press-section .d4y-section-link {
    color: #fff;
    border-bottom: 2px solid var(--d4y-accent);
}

.d4y-section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.d4y-section-heading-row .d4y-section-title {
    flex: 1;
}

.d4y-section-link,
.d4y-read-more,
.d4y-button {
    color: var(--d4y-accent);
    font-weight: 800;
    text-decoration: none;
}

.d4y-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 30px;
    margin-bottom: 48px;
}

.d4y-content-grid-wide {
    grid-template-columns: minmax(0, 1fr);
}

.d4y-list-posts {
    display: grid;
    gap: 20px;
}

.d4y-list-card {
    display: grid;
    grid-template-columns: minmax(220px, 36%) 1fr;
    min-height: 220px;
    overflow: hidden;
}

.d4y-list-image {
    grid-column: 1;
    grid-row: 1;
    min-height: 220px;
    overflow: hidden;
}

.d4y-list-copy {
    grid-column: 2;
    grid-row: 1;
    padding: 22px;
}

.d4y-list-copy h2 {
    margin: 9px 0 6px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.18;
}


/* Die Seitenleiste soll mit "Düsseldorf im Blick" abschließen. */
.d4y-sidebar .widget_recent_entries li:nth-child(n+8) {
    display: none;
}
.d4y-list-copy p {
    margin: 10px 0;
    color: var(--d4y-muted);
}

.d4y-sidebar {
    grid-column: 2;
    min-width: 0;
}

.d4y-widget {
    padding: 20px;
    margin-bottom: 22px;
    overflow: hidden;
}

.widget-title {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--d4y-accent);
    color: var(--d4y-text);
    font-size: 1.15rem;
    line-height: 1.2;
}

.d4y-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.d4y-widget li {
    padding: 9px 0;
    border-bottom: 1px solid var(--d4y-border);
}

.d4y-widget li:last-child {
    border-bottom: 0;
}

.d4y-widget img {
    height: auto;
}

.d4y-widget select {
    max-width: 100%;
}

.d4y-widget-band .d4y-widget {
    box-shadow: none;
}

.d4y-inner-layout {
    padding-top: 42px;
}

.d4y-main-column,
.d4y-main-list {
    grid-column: 1;
    min-width: 0;
}

.d4y-article,
.d4y-comments {
    padding: clamp(22px, 4vw, 46px);
}

.d4y-entry-title {
    margin: 12px 0 8px;
    color: var(--d4y-text);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
}

.d4y-single-image {
    margin: 26px calc(clamp(22px, 4vw, 46px) * -1) 28px;
    aspect-ratio: 16 / 8.7;
    overflow: hidden;
}

.d4y-entry-content {
    font-size: 1.08rem;
}

.d4y-entry-content > *:first-child {
    margin-top: 0;
}

.d4y-entry-content h2,
.d4y-entry-content h3,
.d4y-entry-content h4 {
    margin-top: 1.6em;
    line-height: 1.2;
}

.d4y-entry-content img,
.d4y-entry-content iframe,
.d4y-entry-content video {
    max-width: 100%;
}

.d4y-entry-content iframe {
    width: 100%;
}

.d4y-entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.d4y-entry-content th,
.d4y-entry-content td {
    padding: 10px;
    border: 1px solid var(--d4y-border);
    text-align: left;
}

.d4y-entry-content blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 20px;
    border-left: 5px solid var(--d4y-accent);
    color: #4a4a4a;
    font-size: 1.12em;
}

.alignleft {
    float: left;
    margin: 0 24px 18px 0;
}

.alignright {
    float: right;
    margin: 0 0 18px 24px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
    color: var(--d4y-muted);
    font-size: .85rem;
}

.sticky {
    border-top: 5px solid var(--d4y-accent);
}

.bypostauthor {
    border-left-color: var(--d4y-accent);
}

.nav-links,
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0;
}

.page-numbers,
.post-navigation a {
    display: inline-block;
    padding: 9px 13px;
    border-radius: 7px;
    background: #fff;
    color: var(--d4y-text);
    text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
    background: var(--d4y-accent);
    color: #fff;
}

.d4y-comments {
    margin-top: 24px;
}

.comment-list {
    padding-left: 24px;
}

.comment-body {
    padding: 14px 0;
    border-bottom: 1px solid var(--d4y-border);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
}

input[type="submit"],
button[type="submit"],
.d4y-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 7px;
    background: var(--d4y-accent);
    color: #fff;
    cursor: pointer;
}

.d4y-not-found {
    max-width: 760px;
    padding-top: 70px;
    padding-bottom: 90px;
    text-align: center;
}

.d4y-not-found .d4y-search-form {
    max-width: 480px;
    margin: 24px auto;
}

.d4y-error-code {
    margin: 0;
    color: var(--d4y-accent);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    line-height: .8;
}

.site-footer {
    margin-top: 54px;
    background: #191919;
    color: #ddd;
}

.d4y-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 42px;
    padding-bottom: 30px;
}

.site-footer .d4y-widget {
    background: #242424;
    border-color: #333;
    box-shadow: none;
}

.site-footer .widget-title,
.site-footer a {
    color: #fff;
}

.d4y-footer-bottom {
    border-top: 1px solid #333;
}

.d4y-footer-bottom-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.d4y-footer-bottom p {
    margin: 0;
}

.d4y-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.d4y-footer-menu a {
    text-decoration: none;
}

.d4y-section-archive {
    padding: 40px 0 56px;
}

.d4y-section-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.d4y-section-archive-header .d4y-section-title {
    flex: 1;
    margin-bottom: 0;
}

.d4y-section-back {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.d4y-section-back:hover,
.d4y-section-back:focus-visible {
    color: var(--d4y-accent);
}

.d4y-section-pagination {
    margin-top: 32px;
}

.d4y-section-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.d4y-section-pagination a,
.d4y-section-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--d4y-surface);
    color: var(--d4y-text);
    font-weight: 700;
    text-decoration: none;
}

.d4y-section-pagination .current {
    background: var(--d4y-accent);
    color: #fff;
}

.d4y-empty-section {
    padding: 24px;
    border-radius: var(--d4y-radius);
    background: var(--d4y-surface);
    color: var(--d4y-text);
}

@media (max-width: 1080px) {
    .d4y-top-grid {
        grid-template-columns: 1fr;
    }

    .d4y-top-grid > .d4y-sidebar {
        grid-column: 1;
        grid-row: auto;
        padding-bottom: 0;
        padding-top: 0;
    }

    .d4y-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .d4y-pick-card {
        flex-basis: calc((100% - 16px) / 2);
    }

    .d4y-nav-search {
        display: none;
    }
}

@media (max-width: 860px) {
    .d4y-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .d4y-nav-inner {
        flex-wrap: wrap;
        padding-block: 10px;
    }

    .d4y-primary-menu,
    .main-navigation .menu {
        order: 4;
        flex: 0 0 100%;
        display: none;
        max-height: none;
        overflow-y: visible;
        flex-direction: column;
        padding: 8px 0 2px;
    }

    .main-navigation.is-open .d4y-primary-menu,
    .main-navigation.is-open .menu {
        display: flex;
    }

    .d4y-primary-menu a,
    .main-navigation .menu a {
        min-height: 48px;
        padding-inline: 12px;
    }

    .d4y-primary-menu .sub-menu,
    .main-navigation .children {
        display: block;
        position: static;
        padding-left: 18px;
        box-shadow: none;
    }

    .d4y-top-grid,
    .d4y-content-grid {
        grid-template-columns: 1fr;
    }
    .d4y-main-story,
    .d4y-picks,
    .d4y-main-column,
    .d4y-main-list,
    .d4y-sidebar {
        grid-column: 1;
        grid-row: auto;
    }

    .d4y-hero-card {
        height: 480px;
        min-height: 0;
    }
    .d4y-picks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .d4y-pick-card {
        grid-template-columns: 40% minmax(0, 1fr);
    }


    .d4y-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .d4y-sidebar .d4y-widget {
        margin: 0;
    }
}

@media (max-width: 720px) {
    .d4y-container {
        width: min(calc(100% - 28px), var(--d4y-container));
    }

    .d4y-masthead {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .d4y-masthead-picture img {
        object-position: center center;
    }

    .d4y-ticker-inner {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .d4y-ticker strong {
        min-height: 42px;
        grid-column: 1;
        justify-content: center;
        margin: 0;
    }

    .d4y-ticker-line {
        min-height: 48px;
        grid-column: 1;
        align-items: center;
    }

    .d4y-top-news,
    .d4y-featured-section,
    .d4y-content-grid,
    .d4y-widget-band {
        margin-top: 28px;
    }

    .d4y-pick-card {
        flex-basis: 100%;
    }

    .d4y-pick-card {
        display: grid;
        grid-template-columns: 42% 1fr;
    }

    .d4y-pick-card .d4y-media-link {
        height: 100%;
        aspect-ratio: auto;
    }

    .d4y-hero-card {
        height: 430px;
    }

    .d4y-card-overlay {
        padding: 70px 20px 20px;
    }

    .d4y-card-grid,
    .d4y-featured-list,
    .d4y-footer-widgets,
    .d4y-sidebar {
        grid-template-columns: 1fr;
    }

    .d4y-list-card {
        grid-template-columns: 1fr;
    }

    .d4y-list-image {
        grid-column: 1;
        grid-row: 1;
    }

    .d4y-list-copy {
        grid-column: 1;
        grid-row: 2;
    }
    .d4y-list-image {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .d4y-section-heading-row,
    .d4y-footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .d4y-footer-bottom-inner {
        padding-block: 22px;
    }

    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 0 auto 18px;
    }
}

@media (max-width: 480px) {
    .d4y-masthead {
        min-height: 0;
    }

    .d4y-pick-card {
        grid-template-columns: 38% 1fr;
    }

    .d4y-pick-copy {
        padding: 12px;
    }

    .d4y-pick-copy .d4y-entry-meta,
    .d4y-pick-copy .d4y-category-badges {
        display: none;
    }

    .d4y-featured-list .d4y-news-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .d4y-featured-list .d4y-media-link {
        min-height: 110px;
    }

    .d4y-featured-list .d4y-card-copy {
        padding: 10px 12px;
    }

    .d4y-featured-list .d4y-entry-meta {
        display: none;
    }


    .d4y-card-overlay h2 {
        font-size: 1.65rem;
    }

    .d4y-article,
    .d4y-comments {
        padding: 20px;
    }

    .d4y-single-image {
        margin-left: -20px;
        margin-right: -20px;
    }
}

/* LangCore setzt Navigationslisten global auf display:block. Diese eng
   begrenzten Regeln erhalten das Theme-Menü auf Desktop und Mobil. */
@media (min-width: 861px) {
    .main-navigation .d4y-primary-menu {
        display: flex !important;
    }

    .main-navigation .d4y-primary-menu .sub-menu {
        display: none !important;
    }

    .main-navigation .d4y-primary-menu li:hover > .sub-menu,
    .main-navigation .d4y-primary-menu li:focus-within > .sub-menu {
        display: block !important;
    }
}

@media (max-width: 860px) {
    .main-navigation .d4y-primary-menu {
        display: none !important;
    }

    .main-navigation.is-open .d4y-primary-menu {
        display: flex !important;
    }

    .main-navigation .d4y-primary-menu .sub-menu {
        display: block !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
