/* =========================================================
   FWG – Mobile Optimierung News
   ========================================================= */

@media (max-width: 767px) {

    /* Newsbeitrag */
    .news .article {
        display: flow-root !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        overflow: hidden !important;
    }

    /* Überschrift */
    .news .article .header h4,
    .news .article .header h4 a {
        font-size: 23px !important;
        line-height: 1.2 !important;
    }

    .news .article .header h4 {
        margin-bottom: 12px !important;
    }

    /* Bildcontainer */
    .news .article .news-img-wrap {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        clear: both !important;
        margin: 0 0 12px 0 !important;
        padding: 0 !important;
    }

    .news .article .news-img-wrap a {
        display: block !important;
        width: 100% !important;
    }

    /* Bild selbst */
    .news .article .news-img-wrap img {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        clear: both !important;
        margin: 0 !important;
    }

    /* Teaser MUSS unter dem Bild stehen */
    .news .article .teaser-text {
        float: none !important;
        display: block !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    /* Kein Blocksatz auf dem Handy */
    .news .article .teaser-text p,
    .news .article p.text-justify {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin: 0 0 12px 0 !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
        text-align: left !important;
    }

    /* Weiterlesen */
    .news .article a.more {
        display: inline-block !important;
        margin-top: 2px !important;
        font-size: 16px !important;
    }

    /* Datum */
    .news .article .footer {
        float: none !important;
        display: block !important;
        clear: both !important;
        width: 100% !important;
        margin-top: 12px !important;
        margin-bottom: 0 !important;
    }

    .news .article .footer p {
        margin-bottom: 0 !important;
    }

    .news .article .news-list-date {
        font-size: 15px !important;
    }
}


/* =========================================================
   Wilhelm Weekly – mobiler Kopfbereich
   Gilt nur für die Wilhelm-Weekly-Inhalte
   ========================================================= */

@media (max-width: 767px) {

    /* Einleitung insgesamt kompakter */
    #c3327 > div {
        margin-top: 18px !important;
        margin-bottom: 8px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* "Die Schülerzeitung des FWG" */
    #c3327 > div > div:nth-child(1) {
        margin-bottom: 7px !important;
        font-size: 12px !important;
        letter-spacing: 2px !important;
    }

    /* "Eure Meinung. Eure Geschichten. Eure Plattform." */
    #c3327 > div > div:nth-child(2) {
        margin-bottom: 8px !important;
        font-size: 25px !important;
        line-height: 1.2 !important;
    }

    /* Beschreibung */
    #c3327 > div > div:nth-child(3) {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    /* "Unsere Rubriken" */
    #c3327 > div > div:nth-child(4) {
        margin-top: 16px !important;
        margin-bottom: 7px !important;
        font-size: 12px !important;
    }

    /* Rubriken-Pills */
    #c3327 > div > div:nth-child(5) span {
        margin: 3px 2px !important;
        padding: 7px 14px !important;
        font-size: 14px !important;
    }

    /* Überschrift vor den News */
    #c3318 > div {
        margin-top: 24px !important;
        margin-bottom: 18px !important;
        padding-bottom: 8px !important;
    }

    /* "Frisch aus der Redaktion" */
    #c3318 > div > span {
        font-size: 11px !important;
        letter-spacing: 1.8px !important;
    }

    /* "Neu im Wilhelm Weekly" */
    #c3318 > div > div {
        margin-top: 4px !important;
        font-size: 26px !important;
        line-height: 1.2 !important;
    }
}


/* =========================================================
   Seitennavigation – kompakte Darstellung auf Smartphones
   ========================================================= */

@media (max-width: 767px) {

    .frame-type-menu_subpages ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin: 10px 0 20px 0;
        padding: 0;
    }

    .frame-type-menu_subpages li {
        margin: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .frame-type-menu_subpages li a {
        padding: 9px 8px !important;
        font-size: 15px !important;
        line-height: 1.25;
    }
}
/* =========================================================
   Mobile Hauptnavigation – klar und reduziert
   ========================================================= */

@media (max-width: 991px) {

    /* Gesamtes aufgeklapptes Menü */
    #navbarNavDropdown {
        background: #ffffff !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding: 0 15px 14px !important;
    }

    /* Hauptmenüpunkte */
    #navbarNavDropdown > ul > li {
        border-bottom: 1px solid #e7e7e7 !important;
    }

    #navbarNavDropdown > ul > li > a {
        color: #333 !important;
        padding-top: 13px !important;
        padding-bottom: 13px !important;
    }

    /* Aufgeklapptes Untermenü */
    #navbarNavDropdown .dropdown-menu {
        background: #f6f6f6 !important;
        border: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 5px 0 !important;
        box-shadow: none !important;
    }

    /* Einträge im Untermenü */
    #navbarNavDropdown .dropdown-menu a {
        color: #444 !important;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }
}
/* Hauptmenü etwas kompakter */
#navbarNavDropdown > ul > li > a {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Suchbereich etwas kompakter */
#navbarNavDropdown form {
    margin-top: 10px !important;
    margin-bottom: 4px !important;
}

/* Suchbutton ans FWG-Design anpassen */
#navbarNavDropdown form button,
#navbarNavDropdown .btn-success {
    background-color: #e67e00 !important;
    border-color: #e67e00 !important;
    color: #fff !important;
}
