:root {
    --bg: #f4f5f7;
    --text: #1f3548;
    --footer-bg: #0f1923;
    --footer-text: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12181f;
        --text: #e8edf2;
    }
}

* { box-sizing: border-box; margin: 0; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
    flex: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 64px 16px;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 8px;
}

/* Windows-Kachel: eckig, vollfarbig, Name unten links */
.tile {
    position: relative;
    aspect-ratio: 1;
    padding: 20px 24px;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    outline: 3px solid transparent;
    outline-offset: -3px;
    transition: transform 0.12s, outline-color 0.12s;
}

.tile:hover,
.tile:focus-visible {
    outline-color: rgba(255, 255, 255, 0.5);
}

.tile:active {
    transform: scale(0.98);
}

.icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 72px;
    height: 72px;
}

.name {
    font-size: 1.1rem;
    font-weight: 600;
}

.desc {
    font-size: 0.85rem;
    opacity: 0.75;
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.82rem;
    padding: 20px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.legal { display: flex; gap: 20px; }

.legal a { color: var(--footer-text); text-decoration: none; }
.legal a:hover { color: #fff; }

.no-cookies { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }

.no-cookies-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    white-space: nowrap;
}
