287 lines
14 KiB
CSS
287 lines
14 KiB
CSS
:root {
|
|
--blue: #0a5c99;
|
|
--blue-dark: #083f6b;
|
|
--blue-light: #e8f1f9;
|
|
--ink: #1c2733;
|
|
--muted: #64748b;
|
|
--line: #e2e8f0;
|
|
--bg: #f5f7fa;
|
|
--card: #ffffff;
|
|
--green: #15803d;
|
|
--red: #b91c1c;
|
|
--radius: 10px;
|
|
--shadow: 0 1px 3px rgba(16, 42, 67, .08), 0 4px 14px rgba(16, 42, 67, .06);
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html, body { margin: 0; padding: 0; }
|
|
body {
|
|
font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-size: 15px;
|
|
line-height: 1.45;
|
|
}
|
|
a { color: var(--blue); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
|
|
|
|
/* ---------- top bar ---------- */
|
|
.topbar { background: var(--blue-dark); color: #fff; position: sticky; top: 0; z-index: 50; }
|
|
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
|
|
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
|
|
.brand:hover { text-decoration: none; }
|
|
.brand-badge {
|
|
background: #fff; color: var(--blue-dark); font-weight: 800;
|
|
padding: 3px 8px; border-radius: 6px; font-size: 14px; letter-spacing: .5px;
|
|
}
|
|
.brand-text { font-weight: 700; font-size: 17px; }
|
|
.brand-text small { font-weight: 400; opacity: .75; margin-left: 6px; font-size: 12px; }
|
|
.topbar nav { display: flex; gap: 4px; }
|
|
.topbar nav a {
|
|
color: rgba(255,255,255,.85); padding: 7px 12px; border-radius: 8px; font-size: 14px;
|
|
}
|
|
.topbar nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
|
|
.topbar nav a.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
|
|
|
|
main.container { padding-top: 24px; padding-bottom: 48px; min-height: calc(100vh - 130px); }
|
|
|
|
/* ---------- cards / panels ---------- */
|
|
.card {
|
|
background: var(--card); border: 1px solid var(--line);
|
|
border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
|
|
}
|
|
.card + .card { margin-top: 16px; }
|
|
.card h2 { margin: 0 0 12px; font-size: 17px; }
|
|
.card h3 { margin: 16px 0 8px; font-size: 15px; }
|
|
.page-title { font-size: 24px; margin: 4px 0 20px; font-weight: 700; }
|
|
.page-sub { color: var(--muted); margin-top: -14px; margin-bottom: 20px; }
|
|
|
|
/* ---------- forms ---------- */
|
|
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
|
|
.field { display: flex; flex-direction: column; gap: 4px; }
|
|
.field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
|
|
.field input, .field select {
|
|
padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
|
|
font-size: 14px; background: #fff; min-width: 130px; color: var(--ink);
|
|
}
|
|
.field input:focus, .field select:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); }
|
|
.btn {
|
|
display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
|
|
background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
|
|
}
|
|
.btn:hover { background: var(--blue-light); text-decoration: none; border-color: var(--blue); }
|
|
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
|
|
.btn-primary:hover { background: var(--blue-dark); }
|
|
.btn-sm { padding: 5px 10px; font-size: 13px; }
|
|
|
|
/* ---------- tables ---------- */
|
|
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
|
|
table.data th {
|
|
text-align: left; padding: 9px 10px; background: var(--blue-light);
|
|
color: var(--blue-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
|
|
border-bottom: 2px solid var(--blue);
|
|
}
|
|
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
|
|
table.data tr:hover td { background: #f8fafc; }
|
|
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
.badge {
|
|
display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px;
|
|
font-weight: 600; background: var(--blue-light); color: var(--blue-dark);
|
|
}
|
|
.badge-muted { background: #eef2f7; color: var(--muted); }
|
|
.count-pill {
|
|
display: inline-block; background: var(--blue); color: #fff; border-radius: 99px;
|
|
padding: 1px 10px; font-size: 13px; font-weight: 700; margin-left: 8px;
|
|
}
|
|
|
|
/* ---------- week grid ---------- */
|
|
.weekbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
|
|
.weekbar .week-label { font-weight: 700; font-size: 17px; }
|
|
.weekbar .week-range { color: var(--muted); font-size: 14px; }
|
|
.weekbar .nav-btns { display: flex; gap: 6px; }
|
|
.week-scroll { overflow-x: auto; }
|
|
.week-grid {
|
|
display: grid; min-width: 860px;
|
|
grid-template-columns: 56px repeat(7, 1fr);
|
|
border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
|
|
background: #fff;
|
|
}
|
|
.wg-corner { background: var(--blue-light); }
|
|
.wg-dayhead {
|
|
padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 700;
|
|
background: var(--blue-light); color: var(--blue-dark); border-left: 1px solid var(--line);
|
|
}
|
|
.wg-dayhead .d { display: block; font-size: 15px; }
|
|
.wg-dayhead.today { background: var(--blue); color: #fff; }
|
|
.wg-dayhead.weekend { background: #f1f5f9; color: var(--muted); }
|
|
.wg-dayhead.today.weekend { background: var(--blue); color: #fff; }
|
|
.wg-time {
|
|
font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px;
|
|
border-top: 1px solid var(--line); height: 48px; position: relative;
|
|
}
|
|
.wg-time span { position: absolute; top: -7px; background: #fff; padding-right: 4px; }
|
|
.wg-col { position: relative; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
|
|
.wg-col.weekend { background: #fafbfc; }
|
|
.wg-slotline { position: absolute; left: 0; right: 0; border-top: 1px dashed #eef1f5; }
|
|
.ev {
|
|
position: absolute; left: 2px; right: 2px; border-radius: 6px; color: #fff;
|
|
font-size: 11.5px; padding: 3px 6px; overflow: hidden; cursor: pointer;
|
|
border: none; text-align: left; line-height: 1.25; min-height: 14px;
|
|
}
|
|
.ev:hover { filter: brightness(1.12); z-index: 5; }
|
|
.ev .t { font-weight: 700; display: block; }
|
|
.ev .sub { opacity: .9; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
/* ---------- legend ---------- */
|
|
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
|
|
.legend .item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
|
|
.legend .dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
|
|
|
|
/* ---------- tabs ---------- */
|
|
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
|
|
.tabs button {
|
|
background: none; border: none; padding: 10px 16px; font-size: 14px; font-weight: 600;
|
|
color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
|
|
}
|
|
.tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
|
|
.tabpane { display: none; }
|
|
.tabpane.active { display: block; }
|
|
|
|
/* ---------- misc ---------- */
|
|
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
|
|
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
|
|
.kv .item { background: var(--blue-light); border-radius: 8px; padding: 10px 14px; }
|
|
.kv .item .k { font-size: 11px; text-transform: uppercase; color: var(--blue-dark); font-weight: 700; letter-spacing: .4px; }
|
|
.kv .item .v { font-size: 15px; font-weight: 600; }
|
|
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
|
|
|
|
/* ---------- modal ---------- */
|
|
.modal-back {
|
|
position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100;
|
|
display: none; align-items: center; justify-content: center; padding: 20px;
|
|
}
|
|
.modal-back.open { display: flex; }
|
|
.modal {
|
|
background: #fff; border-radius: 12px; max-width: 520px; width: 100%;
|
|
padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
|
|
}
|
|
.modal h3 { margin: 0 0 12px; font-size: 18px; }
|
|
.modal .close { float: right; border: none; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
|
|
.modal table { width: 100%; font-size: 14px; border-collapse: collapse; }
|
|
.modal table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
.modal table td:first-child { color: var(--muted); width: 35%; }
|
|
|
|
/* ---------- home ---------- */
|
|
.hero { margin-bottom: 24px; }
|
|
.hero h1 { font-size: 28px; margin: 0 0 6px; }
|
|
.hero p { color: var(--muted); margin: 0; max-width: 720px; }
|
|
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
|
|
.tile {
|
|
background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
|
|
box-shadow: var(--shadow); padding: 22px; display: block; color: var(--ink);
|
|
transition: transform .08s ease, border-color .08s ease;
|
|
}
|
|
.tile:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-2px); }
|
|
.tile .icon { font-size: 26px; margin-bottom: 10px; }
|
|
.tile h3 { margin: 0 0 6px; font-size: 17px; color: var(--blue-dark); }
|
|
.tile p { margin: 0; color: var(--muted); font-size: 13.5px; }
|
|
|
|
.decoder-result { margin-top: 14px; display: none; }
|
|
.decoder-result.show { display: block; }
|
|
|
|
/* ---------- fotos ---------- */
|
|
.hint { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
|
|
.form-stack { flex-direction: column; align-items: stretch; gap: 12px; }
|
|
.photo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
|
|
.photo-tile { text-align: center; }
|
|
.photo-frame {
|
|
aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
|
|
background: var(--bg); border: 1px solid var(--line); display: flex;
|
|
align-items: center; justify-content: center; margin-bottom: 8px;
|
|
}
|
|
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.avatar-initials {
|
|
font-size: 30px; font-weight: 800; color: var(--blue-dark);
|
|
background: var(--blue-light); width: 100%; height: 100%;
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.photo-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
|
|
.photo-own { font-size: 11.5px; color: var(--green); font-weight: 700; margin-top: 2px; }
|
|
.photo-tile.has-own { border: none; }
|
|
|
|
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
|
|
.match-tile {
|
|
background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
|
|
overflow: hidden; padding: 0;
|
|
}
|
|
.match-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--bg); }
|
|
.match-tile a { display: block; color: inherit; }
|
|
.search-progressbar {
|
|
height: 8px; background: #eef2f7; border-radius: 6px; overflow: hidden;
|
|
margin: 0 0 18px;
|
|
}
|
|
.search-progressbar > div {
|
|
height: 100%; width: 0; background: var(--blue); border-radius: 6px;
|
|
transition: width .5s ease;
|
|
}
|
|
|
|
/* ---------- person ---------- */
|
|
.person-card {
|
|
display: flex; gap: 28px; background: var(--card); border: 1px solid var(--line);
|
|
border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px;
|
|
align-items: flex-start;
|
|
}
|
|
.person-photo { flex: 0 0 220px; }
|
|
.person-photo img, .person-photo .avatar-initials {
|
|
width: 220px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius);
|
|
border: 1px solid var(--line); background: var(--bg);
|
|
}
|
|
.person-name { margin: 0 0 10px; font-size: 26px; color: var(--ink); }
|
|
.person-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
|
|
.badge-green { background: #dcfce7; color: var(--green); }
|
|
.person-kv { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
|
|
.person-kv td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
|
|
.person-kv td:first-child { color: var(--muted); width: 180px; font-weight: 600; }
|
|
.person-actions { display: flex; gap: 10px; flex-wrap: wrap; }
|
|
.photo-name a { color: var(--ink); }
|
|
.match-name { padding: 8px 10px 4px; font-size: 13.5px; font-weight: 600; }
|
|
.match-name a { color: var(--ink); }
|
|
.match-sim { padding: 0 10px 12px; display: flex; align-items: center; gap: 8px; }
|
|
.sim-bar { flex: 1; height: 8px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
|
|
.sim-bar > div { height: 100%; background: #94a3b8; border-radius: 6px; }
|
|
.sim-num { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 42px; text-align: right; }
|
|
.match-tile.match-mid .sim-bar > div { background: #d97706; }
|
|
.match-tile.match-mid .sim-num { color: #d97706; }
|
|
.match-tile.match-strong { border-color: var(--green); box-shadow: 0 0 0 2px rgba(21,128,61,.15); }
|
|
.match-tile.match-strong .sim-bar > div { background: var(--green); }
|
|
.match-tile.match-strong .sim-num { color: var(--green); }
|
|
|
|
/* ---------- Matrikel/Lektor Vorschläge ---------- */
|
|
.uid-field { position: relative; }
|
|
.suggest {
|
|
display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
|
|
background: #fff; border: 1px solid var(--line); border-radius: 8px;
|
|
box-shadow: 0 8px 24px rgba(0,0,0,.14); margin-top: 4px; overflow: hidden;
|
|
}
|
|
.suggest.show { display: block; }
|
|
.suggest a {
|
|
display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13.5px;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.suggest a:hover { background: var(--blue-light); text-decoration: none; }
|
|
.suggest a .mono { margin-left: auto; font-size: 12px; }
|
|
.muted { color: var(--muted); }
|
|
|
|
.footer { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 13px; background: #fff; }
|
|
|
|
@media (max-width: 720px) {
|
|
.topbar-inner { flex-direction: column; height: auto; padding: 8px 0; gap: 6px; }
|
|
.topbar nav { flex-wrap: wrap; justify-content: center; }
|
|
.form-row { flex-direction: column; align-items: stretch; }
|
|
.field input, .field select { min-width: 0; width: 100%; }
|
|
.person-card { flex-direction: column; align-items: center; text-align: center; }
|
|
.person-badges { justify-content: center; }
|
|
.person-actions { justify-content: center; }
|
|
.person-kv td:first-child { width: 130px; }
|
|
}
|