/* ── Bewerbungs-Tracker — Design System ──────────────────────────────────── */ @import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap'); /* ── Variables ───────────────────────────────────────────────────────────── */ :root { --bg: #f3f5fb; --surface: #ffffff; --surface-2: #edf0f7; --surface-3: #e4e9f4; --border: #dde2ef; --border-2: #cad2e4; --text: #18202f; --text-2: #4a556b; --text-muted: #8896b0; --accent: #e07b00; --accent-dim: rgba(224,123,0,0.1); --accent-hover: #c96e00; --green: #16a34a; --green-dim: rgba(22,163,74,0.1); --red: #dc2626; --red-dim: rgba(220,38,38,0.1); --amber: #d97706; --amber-dim: rgba(217,119,6,0.1); --blue: #2563eb; --blue-dim: rgba(37,99,235,0.1); --purple: #7c3aed; --purple-dim: rgba(124,58,237,0.1); --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); --shadow: 0 4px 16px rgba(0,0,0,0.08); --shadow-xl: 0 20px 60px rgba(0,0,0,0.14); --radius: 6px; --radius-lg: 10px; --radius-xl: 14px; --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif; --font-display: 'Barlow Semi Condensed', system-ui, sans-serif; --font-mono: 'DM Mono', 'Fira Mono', monospace; } html.dark { --bg: #0c0e14; --surface: #131720; --surface-2: #192030; --surface-3: #1f2840; --border: #232d42; --border-2: #2c3a56; --text: #d0d9ea; --text-2: #7d8ea8; --text-muted: #435069; --accent: #f08c00; --accent-dim: rgba(240,140,0,0.12); --accent-hover: #e07b00; --green: #22c55e; --green-dim: rgba(34,197,94,0.12); --red: #f87171; --red-dim: rgba(248,113,113,0.12); --amber: #fbbf24; --amber-dim: rgba(251,191,36,0.12); --blue: #60a5fa; --blue-dim: rgba(96,165,250,0.12); --purple: #a78bfa; --purple-dim: rgba(167,139,250,0.12); --shadow-sm: 0 1px 3px rgba(0,0,0,0.4); --shadow: 0 4px 16px rgba(0,0,0,0.5); --shadow-xl: 0 20px 60px rgba(0,0,0,0.7); } /* ── Reset ───────────────────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; } body { margin: 0; } /* ── Base ────────────────────────────────────────────────────────────────── */ body { font-family: var(--font-sans); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background 0.2s, color 0.2s; } /* Ambient gradient for dark mode */ html.dark body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 70% 50% at 5% 0%, rgba(240,140,0,0.05) 0%, transparent 65%), radial-gradient(ellipse 50% 40% at 95% 100%, rgba(96,165,250,0.04) 0%, transparent 65%); } /* ── Navigation ──────────────────────────────────────────────────────────── */ .app-nav { position: sticky; top: 0; z-index: 40; height: 56px; display: flex; align-items: center; padding: 0 1.5rem; gap: 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); } .nav-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; color: var(--text); flex-shrink: 0; } /* Animated dot */ .brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: pulse-dot 3s ease-in-out infinite; } @keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-dim); } 50% { box-shadow: 0 0 0 5px transparent; } } .nav-links { display: flex; align-items: center; gap: 2px; flex: 1; } .nav-link { padding: 0.3125rem 0.6875rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color 0.15s, background 0.15s; } .nav-link:hover { color: var(--text); background: var(--surface-2); } .nav-link.active { color: var(--accent); background: var(--accent-dim); } /* Pill toggle for dark mode */ .dark-toggle { position: relative; width: 42px; height: 24px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border-2); cursor: pointer; transition: background 0.2s, border-color 0.2s; flex-shrink: 0; padding: 0; outline: none; } .dark-toggle:focus-visible { box-shadow: 0 0 0 2px var(--accent); } .dark-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), background 0.2s; } html.dark .dark-toggle { background: var(--accent-dim); border-color: var(--accent); } html.dark .dark-toggle::after { transform: translateX(18px); background: var(--accent); } /* ── Page wrapper ────────────────────────────────────────────────────────── */ .page-wrapper { position: relative; z-index: 1; max-width: 88rem; margin: 0 auto; padding: 2rem 1.5rem 3rem; } /* ── Page header ─────────────────────────────────────────────────────────── */ .page-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; } .page-title { font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; letter-spacing: 0.01em; line-height: 1.15; color: var(--text); } .page-meta { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.3rem; display: flex; align-items: center; gap: 0.5rem; } .page-meta .sep { opacity: 0.4; } .page-meta .tag { font-family: var(--font-mono); font-size: 0.7rem; background: var(--surface-2); border: 1px solid var(--border); padding: 0.1rem 0.5rem; border-radius: 4px; color: var(--text-2); } /* ── Filter bar ──────────────────────────────────────────────────────────── */ .filter-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } /* ── Stats ───────────────────────────────────────────────────────────────── */ .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; margin-bottom: 1.5rem; } @media (min-width: 560px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } } .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.125rem 1.25rem 1rem; position: relative; overflow: hidden; animation: fadeUp 0.45s cubic-bezier(0.22,1,0.36,1) both; } .stat-card:nth-child(1) { animation-delay: 0.04s; } .stat-card:nth-child(2) { animation-delay: 0.09s; } .stat-card:nth-child(3) { animation-delay: 0.14s; } .stat-card:nth-child(4) { animation-delay: 0.19s; } /* Bottom color strip */ .stat-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); } .stat-card.s-total::after { background: var(--accent); } .stat-card.s-positiv::after { background: var(--green); } .stat-card.s-absage::after { background: var(--red); } .stat-card.s-pending::after { background: var(--amber); } .stat-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.375rem; } .stat-value { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: 0.01em; color: var(--text); font-variant-numeric: tabular-nums; } .stat-card.s-total .stat-value { color: var(--accent); } .stat-card.s-positiv .stat-value { color: var(--green); } .stat-card.s-absage .stat-value { color: var(--red); } .stat-card.s-pending .stat-value { color: var(--amber); } /* ── Action bar ──────────────────────────────────────────────────────────── */ .action-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; } .entry-count { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); } /* ── Data card ───────────────────────────────────────────────────────────── */ .data-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; animation: fadeUp 0.45s 0.24s cubic-bezier(0.22,1,0.36,1) both; } /* ── Table ───────────────────────────────────────────────────────────────── */ .data-table { width: 100%; border-collapse: collapse; } .data-table thead th { padding: 0.6875rem 1rem; text-align: left; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; } .data-table thead th:first-child { border-radius: 0; } .data-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; } .data-table tbody tr:last-child { border-bottom: none; } .data-table tbody tr:hover { background: var(--surface-2); } /* Row actions: only visible on hover */ .data-table tbody tr .row-actions { opacity: 0; transition: opacity 0.15s; } .data-table tbody tr:hover .row-actions { opacity: 1; } .data-table td { padding: 0.8125rem 1rem; font-size: 0.875rem; vertical-align: middle; } .td-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; letter-spacing: 0.02em; } .td-firma { font-weight: 600; color: var(--text); } .td-stelle { color: var(--text-2); } .td-art { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); } .td-notizen { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; color: var(--text-muted); } /* ── Status chip ─────────────────────────────────────────────────────────── */ .status-chip { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8rem; font-weight: 500; white-space: nowrap; } .status-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; } .st-gesendet { color: var(--blue); } .st-gesendet::before { background: var(--blue); } .st-eingang { color: var(--amber); } .st-eingang::before { background: var(--amber); } .st-vorstellung { color: var(--purple); } .st-vorstellung::before { background: var(--purple); } .st-absage { color: var(--red); } .st-absage::before { background: var(--red); } .st-einstellung { color: var(--green); } .st-einstellung::before { background: var(--green); box-shadow: 0 0 5px var(--green); } .st-keine { color: var(--text-muted); } .st-keine::before { background: var(--text-muted); } /* ── Row action buttons ──────────────────────────────────────────────────── */ .row-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius); border: none; background: transparent; cursor: pointer; transition: background 0.12s, color 0.12s; color: var(--text-muted); } .row-btn:hover { background: var(--surface-3); color: var(--text); } .row-btn.btn-edit:hover { background: var(--blue-dim); color: var(--blue); } .row-btn.btn-del:hover { background: var(--red-dim); color: var(--red); } /* ── Empty state ─────────────────────────────────────────────────────────── */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 2rem; text-align: center; } .empty-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.125rem; color: var(--text-muted); } .empty-title { font-weight: 600; color: var(--text-2); margin-bottom: 0.3rem; font-size: 0.9375rem; } .empty-sub { font-size: 0.8125rem; color: var(--text-muted); } /* ── Buttons ─────────────────────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; padding: 0.5rem 1rem; border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; line-height: 1; cursor: pointer; border: 1px solid transparent; transition: background 0.13s, border-color 0.13s, color 0.13s, opacity 0.13s, transform 0.1s; text-decoration: none; white-space: nowrap; user-select: none; } .btn:active { transform: scale(0.975); } .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; } .btn-primary { background: var(--accent); color: #0d0d0d; border-color: var(--accent); } .btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); } .btn-secondary { background: var(--surface-2); color: var(--text-2); border-color: var(--border); } .btn-secondary:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-2); } .btn-danger { background: var(--red-dim); color: var(--red); border-color: transparent; } .btn-danger:hover:not(:disabled) { background: var(--red); color: #fff; } .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; } /* ── Form controls ───────────────────────────────────────────────────────── */ .form-group { display: flex; flex-direction: column; gap: 0.375rem; } .form-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); letter-spacing: -0.01em; } .form-label .req { color: var(--red); margin-left: 2px; } .form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; } .form-input, .form-select, .form-textarea { width: 100%; padding: 0.5625rem 0.75rem; font-family: var(--font-sans); font-size: 0.875rem; line-height: 1.5; color: var(--text); background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); outline: none; transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; -moz-appearance: none; } .form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); } .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); } .form-select { cursor: pointer; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237d8ea8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.625rem center; background-size: 1em; } .form-textarea { resize: none; line-height: 1.65; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .form-grid .span-2 { grid-column: span 2; } @media (max-width: 500px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: span 1; } } /* ── Modal ───────────────────────────────────────────────────────────────── */ .modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, 0); backdrop-filter: blur(0px); visibility: hidden; opacity: 0; transition: background 0.22s ease, backdrop-filter 0.22s ease, opacity 0.22s ease, visibility 0s 0.22s; } .modal-backdrop.is-open { background: rgba(0,0,0,0.72); backdrop-filter: blur(5px); visibility: visible; opacity: 1; transition: background 0.22s ease, backdrop-filter 0.22s ease, opacity 0.22s ease, visibility 0s 0s; } .modal-box { width: 100%; max-width: 36rem; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; max-height: 90vh; overflow-y: auto; transform: scale(0.94) translateY(14px); opacity: 0; transition: transform 0.28s cubic-bezier(0.32,0.72,0,1), opacity 0.22s ease; } .modal-backdrop.is-open .modal-box { transform: scale(1) translateY(0); opacity: 1; } .modal-box.compact { max-width: 26rem; } .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem 1.125rem; border-bottom: 1px solid var(--border); flex-shrink: 0; } .modal-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.01em; color: var(--text); } .modal-body { padding: 1.25rem 1.5rem; } .modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 0.625rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); flex-shrink: 0; } .modal-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: transparent; border: none; cursor: pointer; color: var(--text-muted); transition: background 0.12s, color 0.12s; padding: 0; } .modal-close:hover { background: var(--surface-2); color: var(--text); } /* ── Alert ───────────────────────────────────────────────────────────────── */ .alert { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1rem; border-radius: var(--radius-lg); font-size: 0.875rem; margin-bottom: 1.25rem; animation: fadeUp 0.3s ease-out both; } .alert-error { background: var(--red-dim); border: 1px solid rgba(248,113,113,0.25); color: var(--red); } .alert-success { background: var(--green-dim); border: 1px solid rgba(34,197,94,0.25); color: var(--green); } /* ── Settings ────────────────────────────────────────────────────────────── */ .settings-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem 2rem 1.75rem; animation: fadeUp 0.4s ease-out both; } .settings-form > * + * { margin-top: 1.25rem; } .info-box { padding: 1rem 1.125rem; border-radius: var(--radius-lg); background: var(--blue-dim); border: 1px solid rgba(96,165,250,0.2); font-size: 0.8125rem; color: var(--blue); animation: fadeUp 0.4s 0.1s ease-out both; } html:not(.dark) .info-box { background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.18); color: var(--blue); } .info-box strong { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.875rem; } /* ── Footer ──────────────────────────────────────────────────────────────── */ .app-footer { position: relative; text-align: center; padding: 1.5rem; font-size: 0.75rem; color: var(--text-muted); border-top: 1px solid var(--border); } /* ── Animations ──────────────────────────────────────────────────────────── */ @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* ── Scrollbar (webkit) ──────────────────────────────────────────────────── */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } /* ── Selection ───────────────────────────────────────────────────────────── */ ::selection { background: var(--accent-dim); color: var(--text); }