/*
 * 2mal2.com
 * 2x2mobile.css
 *
 * Ergaenzung zu 2x2style.css fuer schmale Bildschirme (Handys).
 * Wirkt nur auf Elemente mit den m-Klassen; Seiten ohne diese Klassen
 * bleiben unveraendert. Am Desktop greift keine der Regeln.
 *
 *   m-page    aeussere Tabellen mit fester Breite (921px)
 *   m-logo    Logo-Spalte in Kopf und Fuss
 *   m-bar     blauer Balken im Kopf
 *   m-stripe  graue Streifen-Zeile unter dem Kopf und im Fuss
 *   m-nav     linke Navigationsspalte
 *   m-content Inhaltsspalte
 *   m-form    Formular (Tabelle oder Form): Beschriftung ueber dem Feld
 *   m-big     groessere Schrift in einem Eingabefeld (z. B. Code)
 *   m-list    Liste mit Aktionen pro Zeile (z. B. Dateiliste)
 *   m-actions Gruppe von Aktions-Links in einer m-list-Zeile (untereinander)
 *   m-date    Zusatzzeile unter einem Listeneintrag (z. B. Upload-Datum)
 *   m-sort    Zeile mit Sortier-Links ueber einer Liste
 *   m-foot    Fusszeile
 *   m-hide    am Handy ausblenden (Platzhalter, leere Beschriftungen)
 */
@media (max-width: 700px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .m-hide { display: none !important; }

    table.m-page { width: 100% !important; }

    .m-logo img { width: 150px; height: auto; }
    /* Platzhalterbilder behalten ihre Hoehe aus dem HTML; bei height:auto
       wuerde das quadratische gax.gif so hoch wie breit. */
    img.m-logo { width: 150px; }
    .m-bar { width: 100%; }
    .m-bar img { display: none; }

    /* Graue Streifen unter dem Kopf und im Fuss gleich hoch; die leeren
       Menuetabellen darin wuerden sonst ihre eigene Hoehe mitbringen. */
    .m-stripe > td { height: 10px; padding: 0; font-size: 0; line-height: 0; }
    .m-stripe table { display: none; }

    .m-nav {
        display: block;
        padding: 6px 12px !important;
        border-bottom: 1px solid #cccccc;
    }
    .m-nav br { display: none; }
    .m-nav a,
    .m-nav .inactivelink {
        display: inline-block;
        padding: 5px 14px 5px 2px;
        font-size: 15px;
    }

    .m-content {
        display: block;
        width: auto !important;
        padding: 0 12px 24px 12px !important;
    }
    .m-content,
    .m-content .regular,
    .m-content .inactivelink,
    .m-content a { font-size: 15px; }
    .m-content .subhead { font-size: 16px; }

    table.m-form,
    table.m-form tbody,
    table.m-form tr,
    table.m-form td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    table.m-form td { padding: 4px 0; }
    /* Ab 16px Schrift zoomt Safari beim Antippen eines Feldes nicht in die Seite. */
    .m-form .field,
    .m-form input[type="file"] {
        width: 100%;
        height: auto;
        box-sizing: border-box;
        padding: 8px;
        font-size: 16px;
    }
    .m-form .m-big { font-size: 22px; letter-spacing: 4px; }
    .m-form .button {
        width: 100%;
        height: auto;
        min-height: 44px;
        margin: 6px 0;
        font-size: 16px;
    }

    table.m-list { width: 100%; }
    .m-list td { padding-right: 8px !important; }
    .m-list td:first-child { overflow-wrap: anywhere; word-break: break-word; }
    .m-list td:last-child { text-align: right; }
    .m-list a { display: inline-block; padding: 8px 0; }
    /* Untereinander statt umbrechen, damit alle Aktionen rechtsbuendig stehen. */
    .m-list .m-actions a { display: block; }
    /* Ist im HTML per style="display:none" ausgeblendet, damit es am
       Desktop auch ohne diese Datei nicht doppelt erscheint. */
    .m-list .m-date {
        display: block !important;
        margin-top: -6px;
        padding-bottom: 6px;
        font-size: 13px;
        color: #666666;
    }
    /* Mehr Hoehe zum Antippen; Link und aktive Sortierung bleiben auf einer Linie. */
    .m-sort a,
    .m-sort .inactivelink {
        display: inline-block;
        padding: 8px 4px;
    }
    .m-list .button {
        height: auto;
        min-height: 40px;
        padding: 0 14px;
        margin: 4px 0 4px 4px;
        font-size: 16px;
    }

    .m-foot .regular { font-size: 11px; }
}
