:root {
    --accent: #ff2fb0;
    --accent2: #2fe5ff;
    --accent3: #fff23f;
    --bg: #0f0f1a;
    --card: #1b1b2e;
    --text: #f2f2f7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.banner {
    background: repeating-linear-gradient(45deg, #ff2fb0, #ff2fb0 10px, #1a1a1a 10px, #1a1a1a 20px);
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--card);
    box-shadow: 0 2px 12px rgba(255, 47, 176, 0.3);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent2);
    text-decoration: none;
    letter-spacing: 1px;
}

.site-header nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
}

.site-header nav a:hover { color: var(--accent); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    min-height: 60vh;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    transition: transform 0.15s;
    text-decoration: none;
    color: var(--text);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1rem;
    margin: 10px 0 4px;
}

.price {
    color: var(--accent3);
    font-weight: bold;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #0f0f1a;
    font-weight: 800;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn:hover { filter: brightness(1.1); }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent2);
    color: var(--accent2);
}

table.cart-table {
    width: 100%;
    border-collapse: collapse;
}

table.cart-table td, table.cart-table th {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: left;
}

form.stack label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 600;
}

form.stack input, form.stack select, form.stack textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #12121f;
    color: var(--text);
}

.card {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.tracking-id {
    font-family: monospace;
    font-size: 1.2rem;
    background: #12121f;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 1px;
    color: var(--accent3);
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    border-left: 3px solid var(--accent2);
}

.timeline li {
    position: relative;
    padding: 0 0 24px 24px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent2);
}

.timeline li.current::before {
    background: var(--accent3);
    box-shadow: 0 0 0 4px rgba(255, 242, 63, 0.3);
}

.timeline .step-label {
    font-weight: 700;
}

.timeline .step-time {
    font-size: 0.8rem;
    opacity: 0.6;
}

.timeline .step-desc {
    font-size: 0.9rem;
    opacity: 0.85;
}

#map {
    height: 380px;
    border-radius: 12px;
    margin-top: 16px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-badge.stuck { background: #444; }
.status-badge.absurd { background: #7c3aed; }
.status-badge.fail { background: #dc2626; }
.status-badge.delivered, .status-badge.in_vehicle { background: #16a34a; }
.status-badge.pre_vehicle { background: #2563eb; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #333;
    text-align: left;
}

.flash {
    background: #16a34a33;
    border: 1px solid #16a34a;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.error {
    background: #dc262633;
    border: 1px solid #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.popup-box {
    background: var(--card);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 2px solid var(--accent);
    box-shadow: 0 0 40px rgba(255, 47, 176, 0.4);
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
}

.popup-content {
    margin-bottom: 20px;
    text-align: left;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top, #2a1a3e, #0f0f1a);
}

.landing-box {
    max-width: 600px;
    background: var(--card);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid var(--accent2);
}

.legal-content {
    line-height: 1.6;
}

.legal-content h1, .legal-content h2 {
    color: var(--accent2);
}

/* Quill WYSIWYG Editor an Dark Theme anpassen */
.ql-toolbar.ql-snow {
    background: #f2f2f7;
    border-radius: 8px 8px 0 0;
}

.ql-container.ql-snow {
    background: #fff;
    color: #111;
    border-radius: 0 0 8px 8px;
    min-height: 160px;
}
