/* ==========================================================
   MWI Technical Lab – News / Projekte
   Eigenständiges Bloglayout, unabhängig von Wallstreet.
   ========================================================== */

body.blog {
    background-attachment: fixed;
}

.mwi-news {
    padding: 55px 20px 80px;
}

.mwi-news-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}


/* Kopfbereich */

.mwi-news-head {
    margin-bottom: 30px;
    padding: 28px 34px;

    background:
        linear-gradient(
            135deg,
            rgba(8, 10, 12, .92),
            rgba(30, 30, 30, .86)
        );

    border: 1px solid rgba(255, 190, 0, .55);
    border-radius: 20px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .30),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.mwi-news-kicker {
    display: block;
    margin-bottom: 5px;

    color: #ffbf00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
}

.mwi-news-head h1 {
    margin: 0 0 8px;

    color: #ffbf00;
    font-family: "Rock Salt", cursive;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.35;
}

.mwi-news-head p {
    margin: 0;
    color: #ddd;
    font-size: 15px;
}


/* Beitragskarten */

.mwi-news-list {
    display: grid;
    gap: 28px;
}

.mwi-news-card {
    position: relative;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);

    padding: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(13, 14, 15, .94),
            rgba(36, 36, 36, .88)
        );

    border: 1px solid rgba(255, 190, 0, .55);
    border-radius: 20px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.035);

    overflow: hidden;
}


/* Datum */

.mwi-news-date {
    align-self: start;
    margin-right: 25px;

    overflow: hidden;

    border: 1px solid rgba(255,190,0,.55);
    border-radius: 12px;

    text-align: center;

    background: rgba(0,0,0,.45);
}

.mwi-news-date span,
.mwi-news-date strong,
.mwi-news-date small {
    display: block;
}

.mwi-news-date span {
    padding: 10px 5px 4px;

    color: #111;
    background: #ffbf00;

    font-size: 12px;
    font-weight: 700;
}

.mwi-news-date strong {
    padding: 3px 5px 9px;

    color: #111;
    background: #ffbf00;

    font-size: 13px;
}

.mwi-news-date small {
    padding: 8px 4px;

    color: #ddd;
    background: rgba(0,0,0,.55);
}

.mwi-news-date small i {
    margin-right: 5px;
    color: #ffbf00;
}


/* Inhalt */

.mwi-news-content {
    min-width: 0;
}

.mwi-news-content h2 {
    margin: 0 0 14px;

    font-family: "Rock Salt", cursive;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.45;
}

.mwi-news-content h2 a {
    color: #fff;
    text-decoration: none;
}

.mwi-news-content h2 a:hover {
    color: #ffbf00;
}

.mwi-news-text,
.mwi-news-text p {
    color: #ddd;
    font-size: 15px;
    line-height: 1.75;
}

.mwi-news-text a {
    color: #ffbf00;
}

.mwi-news-text .more-link {
    display: table;
    margin-top: 18px;
    padding: 10px 18px;

    color: #111 !important;
    background: #ffbf00;

    border-radius: 9px;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.mwi-news-text .more-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(255,190,0,.20);
}


/* Beitragsbild */

.mwi-news-image {
    display: block;
    margin-bottom: 22px;
    overflow: hidden;

    border-radius: 14px;
    border: 1px solid rgba(255,190,0,.28);
}

.mwi-news-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* Metadaten */

.mwi-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;

    margin-top: 22px;
    padding-top: 15px;

    border-top: 1px solid rgba(255,255,255,.08);

    color: #aaa;
    font-size: 12px;
}

.mwi-news-meta i {
    margin-right: 5px;
    color: #ffbf00;
}

.mwi-news-meta a {
    color: #ccc;
    text-decoration: none;
}

.mwi-news-meta a:hover {
    color: #ffbf00;
}


/* Pagination */

.mwi-news-pagination {
    margin-top: 35px;
    text-align: center;
}

.mwi-news-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mwi-news-pagination .page-numbers {
    display: inline-block;

    padding: 9px 13px;

    color: #ddd;
    background: rgba(10,10,10,.85);

    border: 1px solid rgba(255,190,0,.4);
    border-radius: 8px;

    text-decoration: none;
}

.mwi-news-pagination .page-numbers.current,
.mwi-news-pagination a.page-numbers:hover {
    color: #111;
    background: #ffbf00;
}


/* Mobil */

@media (max-width: 700px) {

    .mwi-news {
        padding: 30px 12px 55px;
    }

    .mwi-news-head {
        padding: 22px;
        border-radius: 15px;
    }

    .mwi-news-card {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 15px;
    }

    .mwi-news-date {
        width: 100px;
        margin: 0 0 20px;
    }

    .mwi-news-content h2 {
        font-size: 20px;
    }
}

/* ==========================================================
   MWI News – Feinschliff
   ========================================================== */

/* Abstand zum feststehenden Technical-Lab-Header */
body.blog .mwi-news {
    padding-top: 95px;
}

/* WordPress/Wallstreet kann den More-Link zusätzlich als Button stylen.
   Deshalb hier bewusst mit höherer Spezifität überschreiben. */
body.blog .mwi-news .mwi-news-text a.more-link,
body.blog .mwi-news a.more-link {
    display: inline-block !important;
    margin-top: 18px !important;
    padding: 10px 18px !important;

    background: #ffbf00 !important;
    background-image: none !important;

    color: #111 !important;

    border: 0 !important;
    border-radius: 9px !important;

    font-weight: 700 !important;
    text-decoration: none !important;

    box-shadow: none !important;
}

body.blog .mwi-news .mwi-news-text a.more-link:hover,
body.blog .mwi-news a.more-link:hover {
    background: #ffd04a !important;
    color: #111 !important;

    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(255, 190, 0, .20) !important;
}

/* Etwas mehr Tiefe, ohne den Hintergrund verschwinden zu lassen */
body.blog .mwi-news-card {
    background:
        linear-gradient(
            135deg,
            rgba(10, 11, 12, .91),
            rgba(28, 28, 28, .84)
        );
}

@media (max-width: 700px) {
    body.blog .mwi-news {
        padding-top: 75px;
    }
}



/* ==========================================================
   MWI NEWS – finale Farb- und Headerkorrekturen
   ========================================================== */

/*
 * Der MWI-Header ist fixed/sticky und überlagert deshalb den Anfang
 * der Beitragsseite. Genügend Sicherheitsabstand schaffen.
 */
html body.blog main.mwi-news {
    padding-top: 135px !important;
}


/* ----------------------------------------------------------
   Überschriften: Technical-Lab-Gold
   ---------------------------------------------------------- */

html body.blog .mwi-news-head h1,
html body.blog .mwi-news-head h1 a {
    color: #ffbf00 !important;
}

html body.blog .mwi-news-card .mwi-news-content h2,
html body.blog .mwi-news-card .mwi-news-content h2 a,
html body.blog .mwi-news-card .mwi-news-content h2 a:link,
html body.blog .mwi-news-card .mwi-news-content h2 a:visited {
    color: #ffbf00 !important;
}

html body.blog .mwi-news-card .mwi-news-content h2 a:hover,
html body.blog .mwi-news-card .mwi-news-content h2 a:focus {
    color: #ffd75e !important;
}


/* ----------------------------------------------------------
   Weiterlesen: Wallstreet-Türkis vollständig überschreiben
   ---------------------------------------------------------- */

html body.blog .mwi-news .mwi-news-card .mwi-news-text a.more-link,
html body.blog .mwi-news .mwi-news-card .mwi-news-text .more-link,
html body.blog .mwi-news a.more-link,
html body.blog .mwi-news .more-link {
    display: inline-block !important;

    margin-top: 18px !important;
    padding: 10px 18px !important;

    background: #ffbf00 !important;
    background-color: #ffbf00 !important;
    background-image: none !important;

    color: #111 !important;

    border: 1px solid #ffbf00 !important;
    border-radius: 8px !important;

    font-weight: 700 !important;
    text-decoration: none !important;

    box-shadow: none !important;
    text-shadow: none !important;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease !important;
}

html body.blog .mwi-news .mwi-news-card .mwi-news-text a.more-link:hover,
html body.blog .mwi-news .mwi-news-card .mwi-news-text a.more-link:focus,
html body.blog .mwi-news a.more-link:hover,
html body.blog .mwi-news a.more-link:focus {
    background: #ffd04a !important;
    background-color: #ffd04a !important;
    background-image: none !important;

    color: #111 !important;
    border-color: #ffd04a !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 20px rgba(255, 190, 0, .22) !important;
}


/* Mobil etwas weniger Abstand, aber weiterhin unter dem Header */
@media (max-width: 700px) {
    html body.blog main.mwi-news {
        padding-top: 110px !important;
    }
}



/* ==========================================================
   MWI NEWS – breite Desktopdarstellung + eigener Read-More
   ========================================================== */

/*
 * Bisher: max. 1180 px.
 * +40 % = 1652 px.
 *
 * Gleichzeitig bleibt ein kleiner Rand zum Browserfenster erhalten.
 */
html body.blog .mwi-news-inner {
    width: min(1652px, calc(100vw - 80px)) !important;
    max-width: none !important;
}


/*
 * Eigener Weiterlesen-Button.
 * Die äußere .more-link-Klasse stammt weiterhin von WordPress,
 * die sichtbare Gestaltung übernimmt ausschließlich unser Span.
 */
html body.blog .mwi-news a.more-link {
    display: inline-block !important;

    margin-top: 18px !important;
    padding: 0 !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 0 !important;
    box-shadow: none !important;

    color: inherit !important;
    text-decoration: none !important;
}

html body.blog .mwi-news a.more-link .mwi-read-more {
    display: inline-block !important;

    padding: 10px 18px !important;

    background: #ffbf00 !important;
    background-color: #ffbf00 !important;
    background-image: none !important;

    color: #111 !important;

    border: 1px solid #ffbf00 !important;
    border-radius: 8px !important;

    font-weight: 700 !important;
    line-height: 1.4 !important;

    box-shadow: none !important;
    text-shadow: none !important;
}

html body.blog .mwi-news a.more-link:hover .mwi-read-more,
html body.blog .mwi-news a.more-link:focus .mwi-read-more {
    background: #ffd04a !important;
    background-color: #ffd04a !important;
    border-color: #ffd04a !important;

    color: #111 !important;

    box-shadow:
        0 7px 20px rgba(255, 190, 0, .22) !important;
}


/* Auf kleineren Displays wieder normale Seitenränder verwenden. */
@media (max-width: 900px) {
    html body.blog .mwi-news-inner {
        width: calc(100vw - 30px) !important;
    }
}



/* ==========================================================
   MWI NEWS – Wallstreet blog-btn endgültig übernehmen
   ========================================================== */

/*
 * Wallstreet erzeugt bei <!--more--> keinen .more-link,
 * sondern:
 *
 *   .blog-btn-col > a.blog-btn
 *
 * default.css setzt diesen Button auf #00c2a9.
 * Wegen der höheren Spezifität dieser Regel bleibt die
 * Darstellung unabhängig von der Stylesheet-Reihenfolge Gold.
 */

html body.blog main.mwi-news .mwi-news-card
.mwi-news-content .mwi-news-text .blog-btn-col > a.blog-btn,
html body.blog main.mwi-news a.blog-btn {
    display: inline-block !important;

    margin: 18px 0 0 !important;
    padding: 10px 18px !important;

    background: #ffbf00 !important;
    background-color: #ffbf00 !important;
    background-image: none !important;

    color: #111 !important;

    border: 1px solid #ffbf00 !important;
    border-radius: 8px !important;

    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;

    box-shadow: none !important;
    text-shadow: none !important;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease !important;
}

html body.blog main.mwi-news .mwi-news-card
.mwi-news-content .mwi-news-text .blog-btn-col > a.blog-btn:hover,
html body.blog main.mwi-news a.blog-btn:hover,
html body.blog main.mwi-news a.blog-btn:focus {
    background: #ffd04a !important;
    background-color: #ffd04a !important;
    background-image: none !important;

    color: #111 !important;

    border-color: #ffd04a !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 20px rgba(255, 190, 0, .22) !important;
}



/* ==========================================================
   MWI NEWS – klassische Artikel-Typografie
   ========================================================== */

/*
 * Fließtext wieder im klassischen Serif-Stil.
 * Überschriften, Datum, Navigation und Metadaten bleiben
 * unverändert im Technical-Lab-Design.
 */

html body.blog main.mwi-news .mwi-news-text,
html body.blog main.mwi-news .mwi-news-text p,
html body.blog main.mwi-news .mwi-news-text li,
html body.blog main.mwi-news .mwi-news-text blockquote {
    font-family: Georgia, "Times New Roman", Times, serif !important;

    font-size: 18px !important;
    line-height: 1.75 !important;

    color: #f0f0f0 !important;

    letter-spacing: 0 !important;
}


/* Absatzabstände wie bei klassischem Artikeltext */
html body.blog main.mwi-news .mwi-news-text p {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}


/*
 * Fettungen behalten dieselbe Schrift und wirken nicht
 * übermäßig schwer.
 */
html body.blog main.mwi-news .mwi-news-text strong,
html body.blog main.mwi-news .mwi-news-text b {
    font-family: inherit !important;
    font-weight: 700 !important;
    color: #fff !important;
}


/*
 * Links innerhalb des eigentlichen Textes bleiben Gold.
 * Der Weiterlesen-Button wird von seiner separaten Regel
 * gesteuert.
 */
html body.blog main.mwi-news .mwi-news-text a:not(.blog-btn) {
    font-family: inherit !important;
    color: #ffbf00 !important;
}


/* Auf kleinen Displays etwas kompakter */
@media (max-width: 700px) {
    html body.blog main.mwi-news .mwi-news-text,
    html body.blog main.mwi-news .mwi-news-text p,
    html body.blog main.mwi-news .mwi-news-text li,
    html body.blog main.mwi-news .mwi-news-text blockquote {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }
}

