/* ========================================
   GRUNDLAYOUT
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    color: #222;
}

.container {
    max-width: 700px;
    margin: auto;
    padding: 30px 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
}


/* ========================================
   SUCHE
   ======================================== */

input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #aaa;
    border-radius: 8px;
    margin-bottom: 10px;
}

button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

#ergebnis {
    margin-top: 20px;
}

.haltestelle {
    width: 100%;
    margin-top: 10px;
    text-align: left;
    background: white;
    border: 1px solid #ccc;
}

.haltestelle:hover {
    background: #eaeaea;
}

.ausgewaehlt {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}


/* ========================================
   NORMALE ANSICHT PC / HANDY
   ======================================== */

.richtung {
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px;
}

.richtung h2 {
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.abfahrt {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
}

.linie {
    font-size: 24px;
    font-weight: 900;
}

.ziel {
    font-size: 17px;
    font-weight: 700;
}

.ziel small {
    display: block;
    font-size: 13px;
    font-weight: 400;
}

.zeit {
    text-align: right;
    font-size: 20px;
    font-weight: 900;
}

.aktualisiert {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}


/* ========================================
   E-INK / TOLINO
   ======================================== */

body.eink {
    margin: 0;
    padding: 0;
    background: white;
    color: black;
    font-family: Arial, sans-serif;
}


/* ========================================
   TOLINO HAUPTBEREICH
   ======================================== */

.eink-monitor {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
}


/* ========================================
   TOLINO KOPF
   ======================================== */

.eink-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 2px solid black;

    padding-bottom: 7px;
    margin-bottom: 5px;
}

.eink-header strong {
    display: block;

    font-family: Arial, sans-serif;

    font-size: 22px !important;
    font-weight: 900 !important;

    line-height: 24px;

    color: #000;
}

#eink-uhr {
    font-family: Arial, sans-serif;

    font-size: 16px !important;
    font-weight: 900 !important;

    white-space: nowrap;
    color: #000;
}


/* ========================================
   HALTESTELLENNAME
   ======================================== */

#eink-haltestelle-header {
    display: block;

    font-family: Arial, sans-serif;

    font-size: 17px !important;
    font-weight: 900 !important;

    margin-top: 2px;

    color: #000;
}


/* ========================================
   AKTUALISIERUNG
   ======================================== */

.eink-status {
    font-size: 11px !important;
    font-weight: 400 !important;

    text-align: right;

    margin-bottom: 5px;

    color: #000;
}


/* ========================================
   ABFAHRTEN
   ======================================== */

.eink-abfahrten {
    display: flex;
    flex-direction: column;

    gap: 6px;
}


/* ========================================
   ABFAHRTSBLÖCKE
   ======================================== */

.eink-richtung {
    border: 2px solid black;

    margin: 0;
    padding: 0;

    background: white;
}

.eink-richtung.bergauf {
    border-top: 3px solid black;
}


/* ========================================
   EINZELNE ABFAHRT
   ======================================== */

.eink-abfahrt {
    display: grid;

    grid-template-columns: 40px 1fr 80px;

    align-items: center;

    min-height: 46px;

    padding: 3px 7px;

    border-bottom: 1px solid #888;

    box-sizing: border-box;

    background: white;
    color: #000;
}

.eink-richtung .eink-abfahrt:last-child {
    border-bottom: none;
}


/* ========================================
   LINIE - EXTRA FETT
   ======================================== */

body.eink .eink-abfahrt .eink-linie,
body.eink .eink-abfahrt .linie {
    font-family: Arial Black, Arial, sans-serif !important;

    font-size: 23px !important;

    font-weight: 900 !important;

    line-height: 24px !important;

    color: #000 !important;

    text-shadow:
        0.7px 0 #000,
        -0.7px 0 #000;
}


/* ========================================
   ZIEL - EXTRA FETT
   ======================================== */

body.eink .eink-abfahrt .eink-ziel,
body.eink .eink-abfahrt .ziel {
    font-family: Arial Black, Arial, sans-serif !important;

    font-size: 19px !important;

    font-weight: 900 !important;

    line-height: 20px !important;

    color: #000 !important;

    text-shadow:
        0.6px 0 #000,
        -0.6px 0 #000;
}


/* ========================================
   VERSPÄTUNG
   ======================================== */

body.eink .eink-abfahrt .eink-ziel small,
body.eink .eink-abfahrt .ziel small {
    display: block;

    font-family: Arial, sans-serif !important;

    font-size: 11px !important;

    font-weight: 400 !important;

    line-height: 12px !important;

    color: #000 !important;

    margin-top: 1px;

    text-shadow: none !important;
}


/* ========================================
   MINUTEN / ZEIT - EXTRA FETT
   ======================================== */

body.eink .eink-abfahrt .eink-zeit,
body.eink .eink-abfahrt .zeit {
    text-align: right !important;

    font-family: Arial Black, Arial, sans-serif !important;

    font-size: 20px !important;

    font-weight: 900 !important;

    line-height: 21px !important;

    white-space: nowrap;

    color: #000 !important;

    text-shadow:
        0.7px 0 #000,
        -0.7px 0 #000;
}


/* ========================================
   KEINE ABFAHRTEN
   ======================================== */

.eink-keine {
    padding: 8px;

    font-size: 14px;

    font-weight: 400;
}


/* ========================================
   HALTESTELLENSUCHE
   ======================================== */

.eink-suche {
    margin-top: 20px;
}

.eink-suche label {
    display: block;

    font-size: 20px;
    font-weight: 700;

    margin-bottom: 8px;
}

.eink-suche input {
    width: 100%;

    box-sizing: border-box;

    padding: 12px;

    font-size: 20px;

    border: 2px solid black;
    border-radius: 0;

    background: white;
    color: black;
}

.eink-suche button {
    width: 100%;

    margin-top: 10px;

    padding: 10px 18px;

    font-size: 18px;

    background: white;
    color: black;

    border: 2px solid black;
    border-radius: 0;
}


/* ========================================
   HALTESTELLEN-VORSCHLÄGE
   ======================================== */

.eink-vorschlaege {
    margin-top: 8px;
}

.eink-vorschlag {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 12px;

    margin-bottom: 5px;

    text-align: left;

    font-size: 19px;
    font-weight: 700;

    background: white;
    color: black;

    border: 1px solid black;
    border-radius: 0;
}

.eink-vorschlag:active {
    background: black;
    color: white;
}


/* ========================================
   HALTESTELLE ÄNDERN
   ======================================== */

.eink-monitor-kopf {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin: 10px 0;

    font-size: 22px;
    font-weight: 900;
}

#haltestelle-aendern {
    width: auto;

    padding: 7px 10px;

    background: white;
    color: black;

    border: 1px solid black;
    border-radius: 0;

    font-size: 15px;
}


/* ========================================
   KLEINER E-INK-BILDSCHIRM
   ======================================== */

@media screen and (max-height: 700px) {

    .eink-monitor {
        padding: 10px;
    }

    .eink-header {
        padding-bottom: 5px;
        margin-bottom: 4px;
    }

    .eink-header strong {
        font-size: 21px !important;
        font-weight: 900 !important;
    }

    #eink-uhr {
        font-size: 15px !important;
        font-weight: 900 !important;
    }

    #eink-haltestelle-header {
        font-size: 16px !important;
        font-weight: 900 !important;
    }

    .eink-status {
        font-size: 10px !important;
        margin-bottom: 3px;
    }

    .eink-abfahrten {
        gap: 5px;
    }

    .eink-abfahrt {
        min-height: 45px;

        padding: 3px 6px;

        grid-template-columns: 40px 1fr 80px;
    }

    body.eink .eink-abfahrt .eink-linie,
    body.eink .eink-abfahrt .linie {
        font-size: 22px !important;
        font-weight: 900 !important;
    }

    body.eink .eink-abfahrt .eink-ziel,
    body.eink .eink-abfahrt .ziel {
        font-size: 18px !important;
        font-weight: 900 !important;
    }

    body.eink .eink-abfahrt .eink-zeit,
    body.eink .eink-abfahrt .zeit {
        font-size: 19px !important;
        font-weight: 900 !important;
    }

    body.eink .eink-abfahrt .eink-ziel small,
    body.eink .eink-abfahrt .ziel small {
        font-size: 10px !important;
        font-weight: 400 !important;
    }
}


/* ========================================
   ENDE
   ======================================== */
