:root {
    --bg-light: #f5f5f7;
    --accent-blue: #007aff;
    --accent-violet: #8a2be2;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
}

body {
    margin: 0; padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex; flex-direction: column; align-items: center;
}

header { width: 100%; max-width: 600px; text-align: left; margin-bottom: 20px; }

#searchInput {
    width: 100%; padding: 14px; border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1); background: white;
    font-size: 16px; margin-bottom: 20px; box-sizing: border-box;
}

/* Alphabet Nav: Mehrzeilig & Linksbündig */
.alphabet-nav {
    display: flex; flex-wrap: wrap; justify-content: flex-start;
    gap: 8px; width: 100%; max-width: 600px; margin-bottom: 30px;
}

.letter-btn {
    width: 40px; display: flex; justify-content: center; align-items: center;
    min-width: 48px; 
    height: 48px;
    font-size: 14px;
    background: white; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px;
    color: var(--accent-blue); font-weight: 700; cursor: pointer;
}

.letter-btn.active { background: var(--accent-blue); color: white; }

/* Kacheln: Rechtsbündig */
.card {
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 18px;
    padding: 20px; margin-bottom: 15px; width: 100%; max-width: 600px;
    box-sizing: border-box; text-align: left;
}

.card h3 { margin: 0 0 8px 0; color: var(--text-main); }

.content-preview, .full-text { color: var(--text-secondary); line-height: 1.5; }

/* Bilder & Links */
.card-img {
    width: 100%; border-radius: 12px; margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-link-wrapper { margin-top: 12px; }
.card-link { color: var(--accent-violet); text-decoration: none; font-weight: 500; font-size: 0.9rem; }

.expand-btn {
    background: none; border: none; color: var(--accent-blue);
    font-weight: 600; cursor: pointer; padding-top: 10px; font-size: 0.85rem;
}

.gradient-shine {
    background: linear-gradient(90deg, #1d1d1f, #0071e3, #1d1d1f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

footer {
            text-align: center; padding: 40px; border-top: 1px solid rgba(0,0,0,0.05);
            color: var(--text-muted); font-size: 0.9rem;
        }

