:root {
    --bg: #f6f6f6;
    --white: #ffffff;
    --text: #1a1a1a;
    --muted: #666666;
    --red: #eb0000;
    --border: #e2e2e2;
}

body {
    font-family: -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.app-header { padding: 20px; background: var(--white); border-bottom: 1px solid var(--border); }
.app-header h1 { margin: 0; font-size: 1.5rem; }

.list-container { padding: 15px; }

/* Karten-Design (Bild 1) */
.event-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    cursor: pointer;
}

.card-main { display: flex; align-items: flex-start; gap: 12px; }

/* Grundstyling für das Icon */
.status-icon {
    width: 32px; /* Grösse in der Detailansicht */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Anpassung für die kleinere Version in der Liste */
.status-icon.small {
    width: 24px;
    height: 24px;
}

/* Das SVG selbst füllt den Container */
.status-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.card-text h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.card-text p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

.circle-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Detailansicht (Bild 2) */
.detail-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.detail-overlay.active { transform: translateX(0); }

.back-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 0;
    margin-bottom: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }
.detail-header-row h1 { margin: 0; font-size: 1.8rem; flex: 1; }

.detail-meta { color: var(--text); font-size: 1.1rem; margin-bottom: 40px; }
.detail-body { font-size: 1.2rem; line-height: 1.5; white-space: pre-wrap; }

.loader, .empty, .error { text-align: center; padding: 40px; color: var(--muted); }