:root { --bg: #eef2f6; --card: #ffffff; --soft: #f5f8fb; --ink: #14202e; --muted: #61708a; --line: #e1e7ef; --brand: #0f766e; --brand-2: #14a39a; --brand-ink: #ffffff; --brand-soft: #dcf3f0; --bad: #c62828; --bad-bg: #fde8e8; --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --info: #1d4ed8; --info-bg: #e0e9ff; --shadow: 0 1px 2px rgba(15, 30, 50, .06), 0 4px 14px rgba(15, 30, 50, .06); --radius: 14px; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0a111a; --card: #121c2a; --soft: #182535; --ink: #e8eef6; --muted: #92a2b9; --line: #223247; --brand: #2dd4bf; --brand-2: #5eead4; --brand-ink: #03201c; --brand-soft: #0f2c2d; --bad: #f87171; --bad-bg: #3b1719; --ok: #4ade80; --ok-bg: #12301f; --warn: #fbbf24; --warn-bg: #3a2a0c; --info: #93b4ff; --info-bg: #17284d; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3); } } :root[data-theme="dark"] { --bg: #0a111a; --card: #121c2a; --soft: #182535; --ink: #e8eef6; --muted: #92a2b9; --line: #223247; --brand: #2dd4bf; --brand-2: #5eead4; --brand-ink: #03201c; --brand-soft: #0f2c2d; --bad: #f87171; --bad-bg: #3b1719; --ok: #4ade80; --ok-bg: #12301f; --warn: #fbbf24; --warn-bg: #3a2a0c; --info: #93b4ff; --info-bg: #17284d; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3); } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; width: 400px; height: 600px; overflow: hidden; } body.wide { width: auto; height: 100vh; } #app { display: flex; flex-direction: column; height: 100%; } button, input, select, textarea { font: inherit; color: inherit; } button { cursor: pointer; } .muted { color: var(--muted); font-size: 12.5px; } .grow { flex: 1; min-width: 0; } /* Kopf */ header.top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #fff; background: linear-gradient(135deg, #0b3f43, var(--brand)); flex: none; } header.top .logo { width: 26px; height: 26px; border-radius: 8px; flex: none; } header.top .title { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } header.top .iconbtn { color: #e6fffb; background: rgba(255, 255, 255, .12); } header.top .iconbtn:hover { background: rgba(255, 255, 255, .24); } .iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); } .iconbtn:hover { background: var(--soft); color: var(--ink); } .statusdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #94a3b8; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); } .statusdot.available { background: #22c55e; } .statusdot.busy { background: #ef4444; } .statusdot.break { background: #f59e0b; } .statusdot.offline { background: #94a3b8; } /* Inhalt */ .content { flex: 1; overflow-y: auto; padding: 12px; scroll-behavior: smooth; } .stack { display: grid; gap: 10px; align-content: start; } .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; } .card h2, h2.sec { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 700; } .hello { font-size: 19px; font-weight: 800; margin: 2px 0 0; } /* Navigation unten */ nav.nav { display: flex; background: var(--card); border-top: 1px solid var(--line); flex: none; padding: 4px 6px 6px; } nav.nav button { flex: 1; display: grid; justify-items: center; gap: 1px; padding: 6px 2px; background: none; border: 0; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; } nav.nav button.on { color: var(--brand); background: var(--brand-soft); } nav.nav .count { position: absolute; top: 1px; right: 22%; background: var(--bad); color: #fff; border-radius: 9px; padding: 0 5px; font-size: 10px; line-height: 15px; } /* Kennzahlen */ .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .stat { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); } .stat:hover { border-color: var(--brand); } .stat .v { font-size: 26px; font-weight: 800; line-height: 1.1; } .stat .k { color: var(--muted); font-size: 12px; } .stat.warn .v { color: var(--bad); } .stat.good .v { color: var(--ok); } /* Segmente und Chips */ .seg { display: flex; gap: 4px; background: var(--soft); padding: 3px; border-radius: 12px; } .seg button { flex: 1; border: 0; background: transparent; padding: 6px 4px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; } .seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); } .chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted); } .chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } /* Ticketliste */ ul.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .tk { width: 100%; text-align: left; display: grid; grid-template-columns: 4px 1fr; gap: 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px 9px 0; box-shadow: var(--shadow); overflow: hidden; } .tk:hover { border-color: var(--brand); } .tk .bar { grid-row: 1 / span 3; border-radius: 4px; margin: -9px 0; background: var(--muted); } .tk .subj { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tk .meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; } .tk .row1, .tk .row2 { grid-column: 2; min-width: 0; } .tk .row2 { margin-top: 3px; } .tk .over { color: var(--bad); font-weight: 700; } .tk.is-over { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); } .pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; background: var(--soft); color: var(--muted); white-space: nowrap; } .pill.open { background: var(--info-bg); color: var(--info); } .pill.pending { background: var(--warn-bg); color: var(--warn); } .pill.answered { background: var(--ok-bg); color: var(--ok); } .pill.on_hold { background: var(--soft); color: var(--muted); } .pill.resolved { background: var(--ok-bg); color: var(--ok); } .pill.closed { background: var(--soft); color: var(--muted); } .pill.prio { color: #fff; } .avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; flex: none; } .avatar.cust { background: #64748b; color: #fff; } /* Suchfeld */ .searchbox { position: relative; } .searchbox svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); } .searchbox input[type=search] { padding-left: 34px; } /* Formulare */ form { display: grid; gap: 10px; } label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 650; } label.inline { display: flex; align-items: center; gap: 8px; font-weight: 500; } input[type=text], input[type=email], input[type=password], input[type=search], input[type=datetime-local], input[type=number], select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); } textarea { min-height: 96px; resize: vertical; } input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); } .btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 13px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .btn:hover { border-color: var(--brand); } .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .btn.primary:hover { filter: brightness(1.07); } .btn.danger { color: var(--bad); } .btn.small { padding: 4px 9px; font-size: 12.5px; border-radius: 8px; } .btn:disabled { opacity: .55; cursor: default; } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } /* Meldungen */ .msg { padding: 9px 11px; border-radius: 10px; font-size: 13px; } .msg.err { background: var(--bad-bg); color: var(--bad); } .msg.ok { background: var(--ok-bg); color: var(--ok); } .msg.warn { background: var(--warn-bg); color: var(--warn); } .empty { text-align: center; color: var(--muted); padding: 26px 8px; } .spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 26px auto; } @keyframes spin { to { transform: rotate(360deg); } } #toasts { position: fixed; left: 12px; right: 12px; bottom: 74px; z-index: 50; pointer-events: none; } .toast { background: #14202e; color: #fff; padding: 9px 13px; border-radius: 11px; box-shadow: var(--shadow); font-size: 13px; } .toast.err { background: var(--bad); } /* Ticket-Ansicht */ .tdetail h1 { font-size: 16px; margin: 0 0 6px; line-height: 1.3; } .facts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .thread { display: grid; gap: 4px; } .bubble { border-radius: 14px; padding: 9px 12px; background: var(--card); border: 1px solid var(--line); max-width: 92%; box-shadow: var(--shadow); } .bubble .who { font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; } .bubble .when { font-weight: 400; color: var(--muted); } .bubble .text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; } .bubble.staff { background: var(--brand-soft); border-color: transparent; margin-left: auto; } .bubble.note { background: var(--warn-bg); border-color: transparent; max-width: 100%; } .bubble.system { background: transparent; box-shadow: none; border-style: dashed; color: var(--muted); max-width: 100%; font-size: 12.5px; } .tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--warn); } .files { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .file { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; background: var(--soft); border-radius: 8px; padding: 2px 8px; color: var(--muted); } .comment { margin: 6px 0 0 10px; padding-left: 8px; border-left: 3px solid var(--info); font-size: 12.5px; } .composer { padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 8px; } .composer textarea { min-height: 84px; } .sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; gap: 8px; box-shadow: var(--shadow); } /* Mehr */ .listrow { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); } .listrow:first-of-type { border-top: 0; } .switch { position: relative; width: 38px; height: 22px; flex: none; } .switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line); margin: 0; cursor: pointer; transition: background .15s; } .switch input:checked { background: var(--brand); } .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; pointer-events: none; } .switch:has(input:checked)::after { transform: translateX(16px); } /* Anmeldung */ .login { display: grid; gap: 14px; padding: 26px 20px; align-content: center; min-height: 100%; } .login .brand { display: grid; justify-items: center; gap: 6px; text-align: center; } .login .brand img { width: 56px; height: 56px; border-radius: 16px; box-shadow: var(--shadow); } .login .brand h1 { margin: 0; font-size: 22px; } .task { display: flex; gap: 10px; align-items: flex-start; } .task input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); } .task.done .tt { text-decoration: line-through; color: var(--muted); }