/* ==========================================================
   MWI Technical Lab – Einzelne Beiträge
   ========================================================== */

html body.single-post main.mwi-single {
    padding: 135px 20px 80px;
}

html body.single-post .mwi-single-inner {
    width: min(1652px, calc(100vw - 80px));
    margin: 0 auto;
}


/* Hauptkarte */

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

    padding: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(10, 11, 12, .91),
            rgba(28, 28, 28, .84)
        );

    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-single-date {
    align-self: start;
    margin-right: 25px;

    overflow: hidden;
    text-align: center;

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

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

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

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

    color: #111;
    background: #ffbf00;

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

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

    color: #111;
    background: #ffbf00;

    font-size: 13px;
}

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

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

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


/* Überschrift */

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

html body.single-post .mwi-single-content h1 {
    margin: 0 0 22px;

    color: #ffbf00 !important;

    font-family: "Rock Salt", cursive;
    font-size: clamp(23px, 2.3vw, 34px);
    line-height: 1.45;
}


/* Artikeltext – gleiche Typografie wie Newsübersicht */

html body.single-post .mwi-single-text,
html body.single-post .mwi-single-text p,
html body.single-post .mwi-single-text li,
html body.single-post .mwi-single-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;
}

html body.single-post .mwi-single-text p {
    margin-top: 0;
    margin-bottom: 20px;
}

html body.single-post .mwi-single-text strong,
html body.single-post .mwi-single-text b {
    font-family: inherit !important;
    color: #fff !important;
    font-weight: 700;
}

html body.single-post .mwi-single-text a {
    color: #ffbf00 !important;
}


/* Bilder und Galerien */

html body.single-post .mwi-single-text img {
    max-width: 100%;
    height: auto;
}

html body.single-post .mwi-single-text figure {
    max-width: 100%;
}

html body.single-post .mwi-single-text .wp-block-image img,
html body.single-post .mwi-single-text .wp-caption img {
    border-radius: 10px;
}


/* Meta */

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

    margin-top: 30px;
    padding-top: 16px;

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

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

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

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

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


/* Navigation unter dem Beitrag */

.mwi-single-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;

    margin-top: 24px;
    padding: 18px 22px;

    background:
        linear-gradient(
            135deg,
            rgba(10,11,12,.91),
            rgba(28,28,28,.84)
        );

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

.mwi-single-navigation a {
    color: #ffbf00;
    text-decoration: none;
}

.mwi-single-navigation a:hover {
    color: #ffd75e;
}

.mwi-single-prev {
    text-align: left;
}

.mwi-single-next {
    text-align: right;
}

.mwi-single-back {
    display: inline-block;

    padding: 9px 15px;

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

    border-radius: 8px;

    font-weight: 700;
}

.mwi-single-back:hover {
    color: #111 !important;
    background: #ffd04a;
}


/* Mobil */

@media (max-width: 900px) {

    html body.single-post main.mwi-single {
        padding: 110px 15px 55px;
    }

    html body.single-post .mwi-single-inner {
        width: 100%;
    }

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

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

    html body.single-post .mwi-single-content h1 {
        font-size: 21px;
    }

    html body.single-post .mwi-single-text,
    html body.single-post .mwi-single-text p,
    html body.single-post .mwi-single-text li {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .mwi-single-navigation {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mwi-single-prev,
    .mwi-single-next {
        text-align: center;
    }
}



/* ==========================================================
   MWI SINGLE – Zwischenüberschriften im Artikel
   ========================================================== */

/*
 * Überschriften innerhalb des Fließtextes erhalten die
 * Technical-Lab-Akzentfarbe. Typografie und Größenhierarchie
 * des eigentlichen Artikels bleiben erhalten.
 */

html body.single-post .mwi-single-text h2,
html body.single-post .mwi-single-text h3,
html body.single-post .mwi-single-text h4,
html body.single-post .mwi-single-text h5,
html body.single-post .mwi-single-text h6 {
    color: #ffbf00 !important;
}


/* Etwas Luft zwischen Fließtext und neuem Abschnitt */
html body.single-post .mwi-single-text h2,
html body.single-post .mwi-single-text h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}


/* Links innerhalb einer Zwischenüberschrift ebenfalls Gold */
html body.single-post .mwi-single-text h2 a,
html body.single-post .mwi-single-text h3 a,
html body.single-post .mwi-single-text h4 a,
html body.single-post .mwi-single-text h5 a,
html body.single-post .mwi-single-text h6 a {
    color: #ffbf00 !important;
}



/* ==========================================================
   MWI SINGLE – Video + Nach-oben-Button
   ========================================================== */


/* ----------------------------------------------------------
   Videos responsiv und auf normale Monitorgrößen begrenzen
   ---------------------------------------------------------- */

html body.single-post .mwi-single-text video {
    display: block !important;

    width: auto !important;
    max-width: min(100%, 1000px) !important;

    /*
     * Auch auf Monitoren mit geringer Höhe soll das komplette
     * Video ohne riesige Darstellung in den Viewport passen.
     */
    max-height: 70vh !important;
    height: auto !important;

    margin: 24px auto !important;

    object-fit: contain !important;

    background: #000;

    border-radius: 10px;
}


/*
 * WordPress-Video-Wrapper ebenfalls auf die sinnvolle
 * Artikelbreite begrenzen.
 */
html body.single-post .mwi-single-text .wp-video,
html body.single-post .mwi-single-text .wp-video-shortcode {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* MediaElement.js kann eigene Breiten inline setzen */
html body.single-post .mwi-single-text .mejs-container,
html body.single-post .mwi-single-text .mejs-video {
    width: 100% !important;
    max-width: 1000px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* Auf kleineren Monitoren zusätzlich stärker begrenzen */
@media (max-height: 800px) {

    html body.single-post .mwi-single-text video {
        max-height: 62vh !important;
    }

}


/* ----------------------------------------------------------
   Wallstreet "Nach oben"-Button: Türkis -> Technical-Lab-Gold
   ---------------------------------------------------------- */

html body.single-post #scroll-top,
html body.single-post .scroll-top,
html body.single-post .scroll-up,
html body.single-post .page-scroll-up,
html body.single-post a.scroll-up,
html body.single-post a.page-scroll-up {
    background: #ffbf00 !important;
    background-color: #ffbf00 !important;
    background-image: none !important;

    color: #111 !important;

    border-color: #ffbf00 !important;
}

html body.single-post #scroll-top:hover,
html body.single-post .scroll-top:hover,
html body.single-post .scroll-up:hover,
html body.single-post .page-scroll-up:hover,
html body.single-post a.scroll-up:hover,
html body.single-post a.page-scroll-up:hover {
    background: #ffd04a !important;
    background-color: #ffd04a !important;

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


/* Auch das Pfeilsymbol selbst dunkel darstellen */
html body.single-post #scroll-top i,
html body.single-post .scroll-top i,
html body.single-post .scroll-up i,
html body.single-post .page-scroll-up i {
    color: #111 !important;
}



/* ==========================================================
   MWI SINGLE – Wallstreet Scroll-to-top Button
   ========================================================== */

html body.single-post .page_scrollup,
html body.single-post .page_scrollup:hover,
html body.single-post .page_scrollup:focus,
html body.single-post .page_scrollup:active {
    background: #ffbf00 !important;
    background-color: #ffbf00 !important;
    background-image: none !important;

    border-color: #ffbf00 !important;
    color: #111 !important;
}


/* Pfeilsymbol dunkel auf gelbem Hintergrund */
html body.single-post .page_scrollup i,
html body.single-post .page_scrollup:hover i,
html body.single-post .page_scrollup:focus i,
html body.single-post .page_scrollup:active i {
    color: #111 !important;
}


/* dezenter Hover-Effekt */
html body.single-post .page_scrollup:hover {
    background: #ffd04a !important;
    background-color: #ffd04a !important;

    border-color: #ffd04a !important;

    box-shadow:
        0 5px 16px rgba(255, 190, 0, .25) !important;
}

