/* =========================
   ROOT / THEME
========================= */

:root {
    --bg: #f4f6f8;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.75);

    --text: #1f2933;
    --text-muted: #6b7280;

    --accent: #2563eb;
    --border: #e5e7eb;

    --radius: 14px;
    --radius-small: 8px;

    --shadow: 0 10px 30px rgba(0,0,0,0.08);

    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
}

/* =========================
   RESET / BASICS
========================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    padding: 0.75rem 1rem;

    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
}

.kommune {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.topbar-nav {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
}

.nav-button {
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
    border-radius: var(--radius-small);
    white-space: nowrap;

    color: var(--text);
    background: transparent;
}

.nav-button:hover {
    background: rgba(0,0,0,0.05);
}

.nav-button.active {
    background: var(--accent);
    color: #fff;
}

/* =========================
   MAIN / DESKTOP
========================= */

.desktop {
    padding: 1.25rem;
}

.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* =========================
   WIDGETS / CARDS
========================= */

.widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow);
}

.widget h3 {
    margin: 0 0 0.6rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================
   MOBILE (Handy)
========================= */

@media (max-width: 768px) {

    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .topbar-left {
        justify-content: space-between;
    }

    .topbar-nav {
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .desktop {
        padding: 1rem;
    }

    .desktop-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .widget {
        padding: 1rem;
    }
}

/* =========================
   TABLET (≈ 11 Zoll)
========================= */

@media (min-width: 769px) and (max-width: 1100px) {

    .desktop {
        padding: 1.25rem;
    }

    .desktop-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.25rem;
    }
}

/* =========================
   DESKTOP LARGE
========================= */

@media (min-width: 1400px) {
    .desktop {
        max-width: 1400px;
        margin: 0 auto;
    }
}