:root {
    --wr-page-bg: #ffffff;
    --wr-content-bg: #ffffff;
    --wr-sidebar-bg: #eeeeee;
    --wr-border: #eeeeee;
    --wr-text: #444444;
    --wr-muted: #aaaaaa;
    --wr-accent: #a62649;
    --wr-nav: #a62649;
    --wr-nav-hover: #7f1d38;
    --wr-wrap: 1060px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--wr-page-bg);
    color: var(--wr-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.45;
}

img { max-width: 100%; height: auto; }
a { color: var(--wr-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.wrap { width: min(var(--wr-wrap), calc(100% - 24px)); margin: 0 auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9999; }

.site-header { background: #fff; }
.header-top {
    display: grid;
    grid-template-columns: 205px minmax(440px, 1fr) 205px;
    gap: 28px;
    align-items: center;
    min-height: 140px;
    padding: 12px 0 0;
    overflow: hidden;
}
.site-branding { text-align: center; align-self: center; }
.site-title { display: inline-block; color: var(--wr-accent); font-size: 34px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.custom-logo { max-height: 128px; width: auto; max-width: 540px; }
.header-slot { min-height: 112px; display: flex; align-items: center; font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
.header-slot-left { justify-content: flex-start; }
.header-slot-right { justify-content: flex-end; }
.placeholder-box { width: 100%; min-height: 78px; border: 1px dashed #bbb; background: #fafafa; color: #777; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; font-size: 13px; font-family: Arial, Helvetica, sans-serif; }
.placeholder-small { min-height: 34px; }
.placeholder-banner { min-height: 250px; }

.primary-navigation { background: transparent; font-family: Georgia, "Times New Roman", serif; }
.primary-navigation .nav-wrap { background: var(--wr-nav); }
.nav-wrap ul, .primary-navigation ul { list-style: none; margin: 0; padding: 0; }
.nav-wrap > ul, .primary-navigation .menu { display: flex; flex-wrap: wrap; }
.primary-navigation li { position: relative; }
.primary-navigation a { display: block; padding: 14px 17px; color: #fff; font-weight: 400; font-size: 16px; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation a:focus, .primary-navigation .current-menu-item > a, .primary-navigation .current-menu-ancestor > a { background: var(--wr-nav-hover); }
.primary-navigation ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 210px; background: var(--wr-nav); z-index: 50; }
.primary-navigation li:hover > ul, .primary-navigation li:focus-within > ul { display: block; }
.primary-navigation ul ul a { padding: 10px 14px; font-weight: 400; }
.menu-toggle { display: none; margin: 8px auto; padding: 8px 14px; background: #fff; border: 0; border-radius: 3px; font-weight: 700; }

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 700px) 340px;
    gap: 0;
    align-items: stretch;
    padding: 8px 0 0;
    border-left: 1px solid #f3f3f3;
    border-right: 1px solid #f3f3f3;
}
.content-column { min-width: 0; background: #fff; padding: 24px 30px 20px; }
.site-sidebar { min-width: 0; background: var(--wr-sidebar-bg); padding: 20px 22px; }

.post-card {
    display: block;
    background: var(--wr-content-bg);
    border: 0;
    border-bottom: 1px solid #eeeeee;
    padding: 0 0 28px;
    margin-bottom: 28px;
}
.post-card:nth-of-type(2n) { border-bottom-color: transparent; }
.post-card-media { margin: 10px 0 8px; }
.post-card-media img, .image-placeholder-featured {
    width: 100%;
    aspect-ratio: 625 / 294;
    object-fit: cover;
    display: block;
    background: #e7e7e7;
}
.image-placeholder { color: #777; display: flex; align-items: center; justify-content: center; }
.post-kicker {
    color: var(--wr-accent);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.2;
}
.post-kicker::first-letter { }
.post-title { margin: 0 0 10px; font-size: 32px; line-height: 1.22; font-weight: 400; }
.post-title a { color: #444; }
.post-excerpt { color: #777; font-size: 20px; line-height: 1.45; }
.more-link { font-weight: 700; white-space: nowrap; color: var(--wr-accent); }

.site-sidebar .widget { background: transparent; border: 0; padding: 0; margin: 0 0 26px; font-family: Arial, Helvetica, sans-serif; }
.widget-title { margin: 0 0 10px; color: var(--wr-accent); font-size: 17px; }
.search-form { display: block; margin: 0 0 4px; }
.search-form label { position: relative; display: block; }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #b8b8b8; font-size: 15px; line-height: 1; }
.search-field { width: 100%; padding: 10px 10px 10px 34px; border: 1px solid #d8d8d8; background: #fff; color: #777; font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.search-submit { display: none; }

.single-post-content, .archive-header, .page-content { background: var(--wr-content-bg); border: 0; padding: 0; margin-bottom: 16px; }
.single-title, .archive-title, .page-title { margin: 0 0 10px; font-size: 36px; line-height: 1.18; font-weight: 400; }
.post-meta { color: var(--wr-muted); font-size: 13px; margin-bottom: 14px; font-family: Arial, Helvetica, sans-serif; }
.single-featured-image { margin: 0 0 16px; }
.single-featured-image figcaption { color: var(--wr-muted); font-size: 13px; margin-top: 4px; font-family: Arial, Helvetica, sans-serif; }
.entry-content p { margin-top: 0; }

.pagination-wrap, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 18px 0; font-family: Arial, Helvetica, sans-serif; }
.page-numbers { display: inline-block; min-width: 34px; padding: 7px 10px; border: 1px solid var(--wr-border); background: #fff; color: #333; text-align: center; }
.page-numbers.current { background: var(--wr-accent); color: #fff; border-color: var(--wr-accent); }
.site-footer { padding: 18px 0 30px; background: transparent; color: #555; text-align: center; }
.footer-navigation ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; list-style: none; padding: 0; margin: 0; }
.footer-navigation a { color: #555; font-size: 13px; font-family: Arial, Helvetica, sans-serif; }

@media (max-width: 900px) {
    .header-top { grid-template-columns: 1fr; min-height: 0; text-align: center; gap: 8px; }
    .header-slot { min-height: 70px; justify-content: center; }
    .content-layout { grid-template-columns: 1fr; }
    .content-column { padding: 22px 18px; }
    .site-sidebar { order: 2; }
}
@media (max-width: 720px) {
    .menu-toggle { display: block; }
    .nav-wrap > ul, .primary-navigation .menu { display: none; flex-direction: column; }
    .primary-navigation .menu.is-open, .nav-wrap > ul.is-open { display: flex; }
    .primary-navigation ul ul { position: static; display: block; background: #7f1d38; }
    .post-title { font-size: 28px; }
    .post-excerpt { font-size: 18px; }
}

/* v0.6 single article layout and sidebar refinements */
.single-featured-image img { width: 100%; display: block; }
.single-featured-image { margin: 0 0 14px; }
.single-featured-image figcaption {
    color: #999;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 5px;
    font-family: Georgia, "Times New Roman", serif;
}
.single-post-taxdate {
    margin: 0 0 6px;
    color: #aaa;
    font-size: 13px;
    text-transform: uppercase;
    font-family: Georgia, "Times New Roman", serif;
}
.single-post-taxdate a { color: var(--wr-accent); font-weight: 700; }
.single-post-taxdate span::before { content: " · "; color: #bbb; }
.single-kicker { color: #555; font-size: 16px; margin: 0 0 12px; }
.single-author { margin: 0 0 14px; font-size: 15px; }
.single-author a { color: var(--wr-accent); font-weight: 700; }
.single-teaser { font-size: 19px; line-height: 1.35; margin: 0 0 22px; color: #444; }
.single-teaser p { margin: 0; }
.entry-content h2, .entry-content h3 { font-size: 21px; line-height: 1.25; margin: 24px 0 8px; }
.entry-content p { margin: 0 0 16px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content .wp-caption { max-width: 100%; color: #999; font-size: 13px; font-style: italic; text-align: center; }
.post-tags {
    margin: 34px 0 30px;
    color: #777;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}
.post-tags a {
    display: inline-block;
    background: #f1f1f1;
    color: #777;
    padding: 3px 8px;
    margin: 0 4px 6px 0;
    border-radius: 2px;
}
.related-posts { border-top: 1px solid #eee; padding-top: 18px; margin-top: 20px; }
.related-posts h2 {
    font-size: 17px;
    text-transform: uppercase;
    color: #444;
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
}
.related-posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-post-card img, .related-placeholder { width: 100%; aspect-ratio: 282/133; object-fit: cover; display: block; background: #e5e5e5; }
.related-title { display: block; margin-top: 8px; color: #444; font-size: 14px; line-height: 1.25; }
.related-post-card time { display: block; margin-top: 6px; color: #aaa; font-size: 11px; text-transform: uppercase; }
.content-layout-full { grid-template-columns: minmax(0, 1fr); }
.content-layout-full .content-column { padding-left: 44px; padding-right: 44px; }

.site-sidebar .search-form { margin-bottom: 10px; }
.site-sidebar input[type="search"], .site-sidebar .search-field {
    width: 100%;
    height: 43px;
    padding: 10px 10px 10px 34px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    box-shadow: none;
}
.site-sidebar .wp-block-search__button, .site-sidebar .search-submit { display: none !important; }
.site-sidebar .wp-block-search__inside-wrapper { position: relative; display: block; }
.site-sidebar .wp-block-search__inside-wrapper::before {
    content: "⌕";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #b8b8b8;
    z-index: 1;
}
.wr-social-links { display: flex; gap: 8px; align-items: center; margin: 4px 0 18px; }
.wr-social-link {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #2f5caa;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    border-radius: 3px;
    text-decoration: none;
}
.wr-social-twitter { background: #2fa8dc; }
.wr-social-youtube { background: #e62117; }
.wr-social-link:hover { text-decoration: none; opacity: .86; }
.footer-navigation li { position: relative; }
.footer-navigation li + li::before { content: "|"; color: #777; margin-right: 8px; }
.footer-navigation ul { gap: 0 8px; }

@media (max-width: 720px) {
    .related-posts-grid { grid-template-columns: 1fr; }
    .content-layout-full .content-column { padding-left: 18px; padding-right: 18px; }
}


/* v0.7 sidebar top refinements */
.site-sidebar .wr-sidebar-search .widget-title,
.site-sidebar .widget_search .widget-title { display: none; }
.wr-sidebar-search { margin-bottom: 8px !important; }
.wr-sidebar-social { margin-bottom: 22px !important; }
.wr-social-link { font-size: 0; position: relative; }
.wr-social-link::before { font-size: 19px; line-height: 1; }
.wr-social-facebook::before { content: "f"; font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.wr-social-twitter::before { content: "t"; font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.wr-social-youtube::before { content: "▶"; font-size: 15px; }

/* v0.9 page template refinements */
.page-entry-content {
    background: #fff;
    border: 0;
    margin: 0;
    padding: 0;
}
.page-entry {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.52;
    font-weight: 300;
    color: #444;
}
.page-entry strong,
.page-entry b {
    font-weight: 700;
}
.page-entry h1,
.page-entry h2,
.page-entry h3,
.page-entry h4 {
    font-family: Georgia, "Times New Roman", serif;
    color: #444;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 10px;
}
.page-entry h1 {
    font-size: 34px;
}
.page-entry h2 {
    font-size: 28px;
}
.page-entry h3 {
    font-size: 24px;
}
.page-entry h2:first-child,
.page-entry h3:first-child {
    margin-top: 0;
}
.page-entry h2,
.page-entry h3 {
    margin-top: 26px;
}
.page-entry p {
    margin: 0 0 13px;
}
.page-entry ul,
.page-entry ol {
    margin-top: 0;
}
.page-entry a {
    color: var(--wr-accent);
}
.page-entry hr {
    border: 0;
    border-top: 1px solid #eeeeee;
    margin: 22px 0 28px;
}

/* Hide duplicate search widgets from the user-managed sidebar; theme search stays visible. */
.site-sidebar .widget_search:not(.wr-sidebar-search) {
    display: none !important;
}
.site-sidebar .wp-block-search__label {
    display: none !important;
}

/* v0.11: dritte Menüebene als seitliches Flyout wie im alten Theme */
.primary-navigation ul ul ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 210px;
    background: var(--wr-nav);
    z-index: 60;
}
.primary-navigation ul ul li:hover > ul,
.primary-navigation ul ul li:focus-within > ul {
    display: block;
}
.primary-navigation ul ul ul a {
    padding: 10px 14px;
    font-size: 16px;
}
.primary-navigation ul ul li.menu-item-has-children > a {
    padding-right: 30px;
}
.primary-navigation ul ul li.menu-item-has-children > a::after {
    content: "›";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.75;
}
@media (max-width: 760px) {
    .primary-navigation ul ul ul {
        position: static;
        display: block;
        min-width: 0;
        background: #7f1d38;
    }
    .primary-navigation ul ul ul a {
        padding-left: 28px;
    }
    .primary-navigation ul ul li.menu-item-has-children > a::after {
        content: "";
    }
}


/* v0.13: Footer in Flucht mit dem Text, aber über volle Inhaltsbreite */
.page-up {
    margin-top: 18px;
    margin-bottom: 8px;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1;
}
.page-up a {
    color: #8a817c;
    text-decoration: none;
}
.page-up a:hover,
.page-up a:focus {
    color: #5f5753;
}
.site-footer {
    padding: 8px 0 30px;
    background: transparent;
    color: #555;
    text-align: left;
}
.footer-wrap {
    display: block;
}
.footer-navigation {
    margin-left: 30px;
    margin-right: 30px;
}
.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-navigation a {
    color: #555;
    font-size: 16px;
    font-family: Georgia, serif;
    font-weight: 300;
    font-style: normal;
    text-decoration: none;
}
.footer-navigation a:hover,
.footer-navigation a:focus {
    text-decoration: underline;
}
.footer-navigation li {
    position: relative;
    white-space: nowrap;
}
.footer-navigation li + li::before {
    content: "|";
    color: #777;
    margin-right: 8px;
}
@media (max-width: 760px) {
    .footer-navigation {
        margin-left: 0;
        margin-right: 0;
    }
    .footer-navigation ul {
        justify-content: center;
    }
}


/* Header-Inhalte: aktuelle Prospekte, Datum und aktuelle Ausgabe */
.site-branding {
    position: relative;
    padding-top: 17px;
}

.header-current-date {
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    color: #aaaaaa;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.wr-header-teaser {
    width: 100%;
    height: 112px;
    position: relative;
    text-align: center;
}

.wr-header-teaser-label {
    display: block;
    height: 18px;
    color: var(--wr-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.wr-header-teaser-link {
    display: flex;
    width: 100%;
    height: 94px;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.wr-header-teaser img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 94px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .header-current-date {
        display: none;
    }

    .wr-header-teaser-label {
        display: none;
    }

    .wr-header-teaser-link {
        height: 84px;
    }

    .wr-header-teaser img {
        max-height: 84px;
    }
}


/* v0.15: Advanced-Ads-Gruppen unter den Social-Media-Links */
.wr-sidebar-advertisements {
    width: 100%;
}

.wr-sidebar-ad-group {
    width: 100%;
    margin: 0;
    padding: 0;
}

.wr-sidebar-ad-group + .wr-sidebar-ad-group {
    margin-top: 34px;
}

.wr-sidebar-ad-group .advads-ad,
.wr-sidebar-ad-group .advads-group,
.wr-sidebar-ad-group [id^="advads-"],
.wr-sidebar-ad-group img {
    max-width: 100%;
}

.wr-sidebar-ad-group img {
    display: block;
    width: auto;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.wr-sidebar-ad-group .advads-ad {
    margin-bottom: 34px;
    text-align: center;
}

.wr-sidebar-ad-group .advads-ad:last-child {
    margin-bottom: 0;
}

/* v0.16.0: Category labels, single metadata and open category navigation. */
.post-card-taxline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin: 0 0 8px; font-size: 13px; line-height: 1.3; text-transform: uppercase; }
.post-card-category { color: var(--wr-accent); text-decoration: none; }
.post-card-taxline .post-kicker { color: #999; margin: 0; font-size: inherit; line-height: inherit; font-weight: 400; }
.post-card-taxline .post-kicker::before { content: " "; }
.single-post-taxdate time { color: #aaa; font-size: 13px; text-transform: none; }
.single-post-taxdate time::before { content: " · "; color: #bbb; }
.single-author { margin-bottom: 24px; }
.single-featured-image figcaption { font-size: 14px; }
@media (min-width: 721px) {
    .primary-navigation li.wr-current-category > a { background: #781a35; }
}

/* v0.17.0: category sections at the end of the first home page. */
.wr-category-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 24px; margin:42px 0; }
.wr-category-section h2 { font-size:19px; margin:0 0 8px; }
.wr-category-section h2 a, .wr-category-more { color:var(--wr-accent); text-decoration:none; }
.wr-category-section hr { border:0; border-top:1px solid #ccc; margin:0 0 12px; }
.wr-category-section article { padding:0 0 9px; margin:0 0 9px; border-bottom:1px solid #ddd; }
.wr-category-section article img { width:100%; height:auto; display:block; margin:0 0 6px; }
.wr-category-section article h3 { font-size:16px; line-height:1.35; margin:3px 0; }
.wr-category-section article h3 a { color:inherit; text-decoration:none; }
.wr-category-section .wr-section-kicker { color:#999; font-size:12px; }
@media(max-width:650px){ .wr-category-sections { grid-template-columns:1fr; } }

/* Leaderboard oberhalb des gesamten Seitenkopfes */
.wr-banner-leaderboard { margin: 0 auto 18px; }
.wr-banner-leaderboard .wrb-place { margin: 0; }

/* v0.17.6: Header-Vorschaubilder bündig mit der Navigation (Desktop). */
@media (min-width: 901px) {
    .header-slot-left,
    .header-slot-right {
        align-self: end;
    }

    .header-slot-right .wr-header-teaser {
        height: 128px;
    }

    .header-slot-right .wr-header-teaser-link {
        height: 110px;
        align-items: flex-start;
    }

    .header-slot-right .wr-header-teaser img {
        width: 190px;
        max-height: none;
        flex-shrink: 0;
    }
}
