/* Schlichter Semantic-UI-Look: weiß, Lato, Blau #2185d0 */
body { background: #f7f8fa; }

.app-menu.ui.menu { border-radius: 0; }
.app-menu .header.item { gap: .5em; }
.app-menu .app-name { font-weight: 700; }
.app-logo { display: block; }

.app-main.ui.container { padding: 5em 0 2em; }
.app-footer { text-align: center; color: #767676; font-size: .9em; padding: 1em 0 3em; }

[hidden] { display: none !important; }
.mobile-only { display: none !important; }
.mobile-menu.ui.menu { position: fixed; top: 40px; left: 0; right: 0; z-index: 102; margin: 0; border-radius: 0; }
@media (max-width: 991px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
}
@media (max-width: 767px) {
    .app-main.ui.container { padding-top: 4.5em; margin-left: 1em !important; margin-right: 1em !important; }
    .app-menu .app-name { display: none; }
}

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75em; margin-bottom: 1.25em; }
.page-head .ui.header { margin: 0; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: .5em; }

/* Anwesenheit: Radio-Buttons als Semantic-Buttons */
.att-list .student { display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1em; padding: .7em 0; border-bottom: 1px solid #eee; }
.att-list .student:last-child { border-bottom: 0; }
.att-list .name { flex: 1 1 12em; font-weight: 700; }
.att-choice { display: inline-flex; flex-wrap: nowrap; }
.att-choice input { position: absolute; opacity: 0; pointer-events: none; }
.att-choice label {
    cursor: pointer; padding: .55em .8em; border: 1px solid #d4d4d5; margin-left: -1px;
    background: #fff; color: #545454; font-size: .9em; user-select: none;
}
.att-choice label:first-of-type { border-radius: .28rem 0 0 .28rem; margin-left: 0; }
.att-choice label:last-of-type { border-radius: 0 .28rem .28rem 0; }
.att-choice input:focus-visible + label { outline: 2px solid #2185d0; outline-offset: 1px; position: relative; }
.att-choice input[value="a"]:checked + label { background: #21ba45; border-color: #21ba45; color: #fff; }
.att-choice input[value="f"]:checked + label { background: #db2828; border-color: #db2828; color: #fff; }
.att-choice input[value="e"]:checked + label { background: #f2711c; border-color: #f2711c; color: #fff; }
.att-choice input[value="v"]:checked + label { background: #fbbd08; border-color: #fbbd08; color: #1b1c1d; }
.att-extra { display: flex; gap: .5em; flex: 1 1 100%; }
.ui.form .att-extra .late { width: 6em; flex: none; }
.ui.form .att-extra .remark { flex: 1; min-width: 0; }
.student:not(.is-late) .late { display: none; }

/* Statistik-Matrix */
.matrix-wrap { overflow-x: auto; }
.matrix td.mark { text-align: center; font-weight: 700; }
.matrix td.mark.f { color: #db2828; }
.matrix td.mark.e { color: #f2711c; }
.matrix td.mark.v { color: #b58105; }
.matrix td.mark.a { color: #21ba45; }
.matrix th.rot { white-space: nowrap; font-size: .85em; }

.lesson-plan pre { white-space: pre-wrap; font-family: inherit; margin: 0; }
.muted { color: #767676; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Login */
.login-wrap { max-width: 420px; margin: 8vh auto 0; padding: 0 1em; }
.login-wrap .brand { text-align: center; margin-bottom: 1.5em; }
.login-wrap .brand .app-logo { margin: 0 auto .5em; }
.login-wrap .brand h1 { margin: 0; font-size: 1.9em; }
.login-wrap .brand p { color: #545454; font-size: 1.15em; margin: .1em 0 0; }

/* Dateien an Stunden */
.file-list.ui.list > .item { display: flex; align-items: center; gap: .6em; }
.file-list.ui.list > .item > .content { flex: 1; min-width: 0; }
.file-list.ui.list > .item > .right.floated.content { order: 3; flex: none; }
.file-list .header { word-break: break-word; }
.upload-form { display: flex; flex-wrap: wrap; align-items: center; gap: .75em; margin-top: 1em; }
.scope-toggle .ui.button.active { background: #2185d0 !important; color: #fff !important; }
.class-teacher { display: flex; align-items: center; gap: .6em; }
.class-teacher > label { white-space: nowrap; color: #545454; }
.class-teacher .ui.dropdown { flex: 1; min-width: 0; }
