#precision {
    max-width: 2em;
}

#divRechner {
    text-align: center;
    margin-bottom: 64px;
}

#divRechner fieldset {
    border: none;
}

#divRechner input {
    width: 4.5em;
    text-align: center;
    font-size: 1em;
    font-weight: normal;
}

#vertauscht {
    display: none;
}

#main #divRechner h3 {
    font-size: 1em;
}

#vertauscht span {
    display: inline-block;
    min-width: 4.5em;
    border: 1px solid #888;
}

table.lgs {
    margin: 0 auto;
    border-collapse: collapse;
}

table.hand,
table#handergebnis,
table#handergebnis2,
table#handergebnis3,
table.matrixtabelle {
    border-collapse: collapse;
    border: 1px solid #107fc7;
    background-color: #f4f4f4;
}

table.matrixtabelle {
    margin: 0 auto;
}

table.lgs.eingabe td:first-child {
    padding-right: 12px;
}

table.lgs.eingabe td:last-child {
    padding-left: 12px;
}

table.lgs.eingabe tr:last-child td:first-child {
    border-right: 2px solid #444;
}

table.rechterVektor {
    margin-left: 24px;
}

#ergebnisse td.padd {
    padding-left: 24px;
}

table#handergebnis2,
table#handergebnis3,
table#handergebnis,
table.hand {
    margin-bottom: 24px;
}

table#handergebnis tr:nth-child(2) td:nth-child(1),
table#handergebnis tr:nth-child(3) td:nth-child(1),
table#handergebnis tr:nth-child(3) td:nth-child(2) {
    background-color:rgb(248, 242, 195);
}

table#handergebnis tr:nth-child(1) td:nth-child(1),
table#handergebnis tr:nth-child(1) td:nth-child(2),
table#handergebnis tr:nth-child(1) td:nth-child(3),
table#handergebnis tr:nth-child(2) td:nth-child(2),
table#handergebnis tr:nth-child(2) td:nth-child(3),
table#handergebnis tr:nth-child(3) td:nth-child(3) {
    background-color:rgb(225, 254, 238);
}

table.matrixtabelle td {
    min-width: 4em;
    padding: 0 6px;
    text-align: center;
    border: 1px solid #107fc7;
}

table#handergebnis2 td,
table#handergebnis3 td,
table#handergebnis td {
    min-width: 2em;
    padding: 0 6px;
    text-align: center;
    border: 1px solid #107fc7;
}

table#handergebnis3 td:last-child {
    border: none;
    background-color: white;
}

table.hand td {
    min-width: 2em;
    padding: 0 6px;
    text-align: center;
    border: 1px solid #107fc7;
}

table.hand td:last-child,
table.hand td:nth-child(5),
table.hand td:first-child {
    background-color: #fff;
    border: none;
}

table#hand2 tr:nth-child(2) td:nth-child(3) {
    border-left: 2px solid #444;
    border-top: 2px solid #444;
}

table#hand2 tr:nth-child(2) td:nth-child(4) {
    border-top: 2px solid #444;
    border-right: 2px solid #444;
}

table#hand2 tr:nth-child(3) td:nth-child(3) {
    border-left: 2px solid #444;
    border-bottom: 2px solid #444;
}

table#hand2 tr:nth-child(3) td:nth-child(4) {
    border-right: 2px solid #444;
    border-bottom: 2px solid #444;
}

@media (max-width: 700px) {
    #divRechner input {
        width: 3.5em;
    }    
}