feat: Paket 1 - Token-based invites, event & deadline management with live countdown, printable distribution sheet

This commit is contained in:
2026-09-21 11:16:44 +02:00
parent 4f5ef164c3
commit 83393e363e
7 changed files with 1203 additions and 358 deletions
+367 -150
View File
@@ -120,88 +120,166 @@ body {
background: rgba(251, 191, 36, 0.12);
color: var(--accent-gold);
padding: 6px 12px;
border-radius: var(--radius-md);
border: 1px solid rgba(251, 191, 36, 0.25);
border-radius: 6px;
font-weight: 600;
border: 1px solid rgba(251, 191, 36, 0.25);
}
.nav-links a.nav-admin:hover {
background: rgba(251, 191, 36, 0.2);
.nav-links a.nav-login {
background: rgba(56, 189, 248, 0.12);
color: var(--accent);
padding: 6px 14px;
border-radius: 6px;
font-weight: 600;
border: 1px solid rgba(56, 189, 248, 0.25);
}
/* Main */
.main-content {
padding: 36px 0 60px;
flex: 1;
padding: 36px 0;
}
/* Banner */
.banner {
background: linear-gradient(135deg, rgba(26, 38, 64, 0.9) 0%, rgba(19, 27, 46, 0.9) 100%);
background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 28px;
margin-bottom: 32px;
backdrop-filter: blur(12px);
padding: 30px;
margin-bottom: 28px;
position: relative;
overflow: hidden;
}
.banner.banner-closed {
background: linear-gradient(135deg, rgba(69, 26, 26, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
border-color: rgba(239, 68, 68, 0.3);
}
.banner-top-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 14px;
flex-wrap: wrap;
gap: 12px;
}
.banner-badge {
display: inline-block;
background: rgba(34, 197, 94, 0.15);
color: #86efac;
padding: 5px 12px;
border-radius: 9999px;
font-size: 0.8rem;
font-weight: 600;
border: 1px solid rgba(34, 197, 94, 0.3);
}
.banner-badge.closed {
background: rgba(239, 68, 68, 0.2);
color: #fca5a5;
border-color: rgba(239, 68, 68, 0.4);
}
/* Countdown */
.countdown-container {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(11, 15, 25, 0.7);
border: 1px solid rgba(56, 189, 248, 0.3);
padding: 6px 14px;
border-radius: 9999px;
font-size: 0.85rem;
font-weight: 700;
color: var(--success);
margin-bottom: 8px;
}
.countdown-container.urgent {
border-color: var(--accent-gold);
background: rgba(245, 158, 11, 0.15);
color: var(--accent-gold);
animation: pulse-border 1.5s infinite;
}
.countdown-container.expired {
border-color: var(--danger);
background: rgba(239, 68, 68, 0.15);
color: #fca5a5;
}
@keyframes pulse-border {
0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.closed-notice-bar {
background: rgba(239, 68, 68, 0.15);
border: 1px solid var(--danger);
color: #fca5a5;
padding: 14px 18px;
border-radius: var(--radius-md);
margin-bottom: 24px;
font-size: 0.9rem;
}
.banner h1 {
font-size: 1.8rem;
font-size: 1.85rem;
margin-bottom: 8px;
}
.banner-sub {
color: var(--text-muted);
font-size: 1rem;
font-size: 0.95rem;
margin-bottom: 12px;
}
.banner-stats {
font-size: 0.9rem;
color: var(--accent);
color: var(--text-muted);
font-size: 0.85rem;
}
/* Form Grid */
.form-grid {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 32px;
grid-template-columns: 1.6fr 1fr;
gap: 28px;
}
@media (max-width: 800px) {
@media (max-width: 850px) {
.form-grid {
grid-template-columns: 1fr;
}
}
.products-section h2, .summary-section h2 {
font-size: 1.3rem;
margin-bottom: 20px;
font-size: 1.25rem;
margin-bottom: 16px;
}
.product-list {
display: flex;
flex-direction: column;
gap: 16px;
gap: 12px;
}
.product-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 20px;
border-radius: var(--radius-md);
padding: 18px;
display: flex;
justify-content: space-between;
align-items: center;
backdrop-filter: blur(12px);
transition: border-color 0.2s;
}
.product-card.disabled {
opacity: 0.7;
}
.product-card:hover:not(.disabled) {
border-color: rgba(56, 189, 248, 0.4);
}
.product-info h3 {
@@ -212,62 +290,71 @@ body {
.product-desc {
color: var(--text-muted);
font-size: 0.85rem;
margin-bottom: 8px;
margin-bottom: 6px;
}
.product-price {
font-size: 1.1rem;
font-weight: 700;
color: var(--accent);
}
.product-price small {
color: var(--text-muted);
font-weight: normal;
font-size: 0.8rem;
font-weight: 400;
}
/* Quantity Control */
.quantity-control {
display: flex;
align-items: center;
gap: 8px;
background: rgba(11, 15, 25, 0.8);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
overflow: hidden;
padding: 4px;
}
.qty-btn {
background: transparent;
border: none;
width: 34px;
height: 34px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
color: var(--text-main);
width: 38px;
height: 38px;
border-radius: 6px;
font-size: 1.2rem;
font-weight: 700;
cursor: pointer;
transition: background 0.15s;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
}
.qty-btn:hover {
background: rgba(255, 255, 255, 0.1);
.qty-btn:hover:not(:disabled) {
background: var(--accent);
color: #0b0f19;
}
.qty-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.qty-input {
width: 45px;
width: 44px;
background: transparent;
border: none;
color: var(--text-main);
text-align: center;
font-size: 1rem;
font-size: 1.1rem;
font-weight: 700;
-moz-appearance: textfield;
text-align: center;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
.qty-input:disabled {
color: var(--text-muted);
}
.qty-input:focus {
outline: none;
}
/* Summary Card */
@@ -275,29 +362,16 @@ body {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 28px;
padding: 24px;
position: sticky;
top: 90px;
backdrop-filter: blur(12px);
}
.logged-in-badge {
display: flex;
align-items: center;
gap: 12px;
background: rgba(11, 15, 25, 0.8);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 12px 16px;
margin-bottom: 16px;
}
.user-avatar {
font-size: 1.5rem;
}
.notice-box {
background: rgba(56, 189, 248, 0.1);
background: rgba(11, 15, 25, 0.6);
border: 1px solid rgba(56, 189, 248, 0.25);
border-radius: var(--radius-md);
padding: 12px 14px;
@@ -318,7 +392,7 @@ body {
color: var(--text-muted);
}
.input-group input {
.input-group input, .input-group select {
width: 100%;
padding: 10px 14px;
background: rgba(11, 15, 25, 0.8);
@@ -328,11 +402,23 @@ body {
font-size: 0.95rem;
}
.input-group input:focus {
.input-group input:focus, .input-group select:focus {
outline: none;
border-color: var(--accent);
}
.form-row-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.readonly-input {
background: rgba(255, 255, 255, 0.05) !important;
color: var(--text-muted) !important;
cursor: not-allowed;
}
.divider {
border: none;
border-top: 1px solid var(--border-color);
@@ -370,17 +456,29 @@ body {
transition: all 0.2s;
}
.btn-submit:hover {
.btn-submit:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}
.btn-submit:disabled {
background: #334155;
color: #94a3b8;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.form-hint {
display: block;
text-align: center;
color: var(--text-muted);
font-size: 0.75rem;
margin-top: 12px;
margin-top: 8px;
}
.text-warning {
color: var(--warning) !important;
}
/* Login Page */
@@ -428,7 +526,7 @@ body {
border: 1px solid rgba(251, 191, 36, 0.3);
border-radius: var(--radius-md);
padding: 18px;
margin-bottom: 28px;
margin-bottom: 24px;
}
.demo-login-card h3 {
@@ -476,31 +574,23 @@ body {
font-size: 0.75rem;
}
.auth-tabs {
.invite-notice-card {
display: flex;
border-bottom: 1px solid var(--border-color);
margin-bottom: 20px;
align-items: flex-start;
gap: 12px;
background: rgba(15, 23, 42, 0.6);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 14px;
margin-top: 24px;
font-size: 0.85rem;
}
.auth-tab {
flex: 1;
background: transparent;
border: none;
color: var(--text-muted);
font-size: 0.95rem;
font-weight: 600;
padding: 12px;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.2s;
.invite-icon {
font-size: 1.3rem;
}
.auth-tab.active {
color: var(--text-main);
border-bottom-color: var(--accent);
}
.alert-danger {
.alert-error {
background: rgba(239, 68, 68, 0.15);
border: 1px solid var(--danger);
color: #fca5a5;
@@ -520,78 +610,73 @@ body {
margin-bottom: 18px;
}
/* Success Card */
.success-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 40px;
text-align: center;
backdrop-filter: blur(12px);
}
.success-icon {
font-size: 3rem;
margin-bottom: 16px;
}
.success-sub {
color: var(--text-muted);
font-size: 1.1rem;
margin-bottom: 24px;
}
.order-receipt {
background: rgba(11, 15, 25, 0.8);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 24px;
margin: 24px 0;
text-align: left;
}
.receipt-list {
list-style: none;
margin: 16px 0;
}
.receipt-list li {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid var(--border-color);
font-size: 0.95rem;
}
.receipt-total {
display: flex;
justify-content: space-between;
font-size: 1.2rem;
font-weight: 700;
padding-top: 12px;
color: var(--accent-gold);
}
.success-actions {
display: flex;
gap: 16px;
justify-content: center;
}
/* Admin Dashboard */
/* Admin Dashboard Tabs */
.admin-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 28px;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 16px;
}
.admin-actions-top {
display: flex;
gap: 10px;
}
.admin-sub {
color: var(--text-muted);
}
.admin-nav-tabs {
display: flex;
gap: 8px;
border-bottom: 1px solid var(--border-color);
margin-bottom: 24px;
overflow-x: auto;
}
.admin-tab-btn {
padding: 12px 18px;
color: var(--text-muted);
text-decoration: none;
font-size: 0.95rem;
font-weight: 600;
border-bottom: 2px solid transparent;
transition: all 0.2s;
white-space: nowrap;
}
.admin-tab-btn:hover {
color: var(--text-main);
}
.admin-tab-btn.active {
color: var(--accent);
border-bottom-color: var(--accent);
}
.event-selector-bar {
display: flex;
align-items: center;
gap: 12px;
background: rgba(11, 15, 25, 0.6);
border: 1px solid var(--border-color);
padding: 10px 16px;
border-radius: var(--radius-md);
margin-bottom: 20px;
}
.event-selector-bar select {
background: rgba(11, 15, 25, 0.9);
border: 1px solid var(--border-color);
color: var(--text-main);
padding: 6px 12px;
border-radius: 6px;
font-size: 0.9rem;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
@@ -705,10 +790,75 @@ body {
border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-role {
display: inline-block;
font-size: 0.75rem;
padding: 2px 8px;
border-radius: 9999px;
background: rgba(56, 189, 248, 0.15);
color: var(--accent);
font-weight: 600;
}
.badge-role.admin {
background: rgba(251, 191, 36, 0.15);
color: var(--accent-gold);
}
/* Invitations List */
.invitations-list {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 12px;
}
.invite-item {
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(11, 15, 25, 0.6);
border: 1px solid var(--border-color);
padding: 10px 14px;
border-radius: var(--radius-md);
gap: 12px;
}
.invite-info {
font-size: 0.85rem;
}
.invite-actions {
display: flex;
gap: 8px;
align-items: center;
}
.btn-copy-small {
padding: 4px 10px;
background: rgba(56, 189, 248, 0.15);
border: 1px solid rgba(56, 189, 248, 0.3);
color: var(--accent);
border-radius: 6px;
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
}
.btn-revoke-small {
padding: 4px 8px;
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #fca5a5;
border-radius: 6px;
font-size: 0.75rem;
cursor: pointer;
}
/* Buttons */
.btn-primary {
display: inline-block;
padding: 10px 20px;
padding: 10px 18px;
background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
color: #0b0f19;
text-decoration: none;
@@ -718,15 +868,20 @@ body {
border: none;
}
.btn-outline {
.btn-secondary {
display: inline-block;
padding: 10px 20px;
background: rgba(255, 255, 255, 0.05);
padding: 10px 18px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--border-color);
color: var(--text-main);
text-decoration: none;
border-radius: var(--radius-md);
font-weight: 600;
cursor: pointer;
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.15);
}
/* Footer */
@@ -760,3 +915,65 @@ body {
font-size: 3rem;
margin-bottom: 16px;
}
/* --- PRINT MEDIA QUERY --- */
.print-only {
display: none;
}
@media print {
body {
background: #ffffff !important;
color: #000000 !important;
font-size: 11pt;
}
.navbar, .footer, .no-print, .btn-primary, .btn-secondary, .badge-btn {
display: none !important;
}
.main-content {
padding: 0 !important;
}
.print-only {
display: block !important;
}
.print-header {
border-bottom: 2px solid #000;
padding-bottom: 10px;
margin-bottom: 20px;
}
.print-header h1 {
font-size: 18pt;
margin-bottom: 6px;
}
.print-section h3 {
font-size: 13pt;
margin-bottom: 8px;
border-bottom: 1px solid #ccc;
padding-bottom: 4px;
}
.print-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 16px;
}
.print-table th, .print-table td {
border: 1px solid #ddd;
padding: 6px 10px;
text-align: left;
font-size: 10pt;
color: #000;
}
.print-table th {
background-color: #f2f2f2 !important;
font-weight: bold;
}
}