/* --------------------------------------------------
   GLOBALT DESIGN SYSTEM
-------------------------------------------------- */

/* --------------------------------------------------
   SITE HEADER (logo øverste venstre)
-------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 8px 14px;
    background: white;
    border-bottom: 1px solid var(--border);
    width: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.site-header a {
    display: inline-block;
    line-height: 0;
}

.site-header img {
    height: 36px;
    width: auto;
    display: block;
}

/* Giv body luft til den faste header */
body {
    padding-top: 80px;
}

/* Farver */
:root {
    --primary: #0066cc;
    --primary-dark: #004c99;
    --secondary: #f4f4f4;
    --text: #333;
    --border: #ddd;
    --bg: #fafafa;
    --danger: #cc0000;
    --success: #2e8b57;

    --radius: 6px;
    --shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 30px 15px;
    padding-top: 80px;
    line-height: 1.5;
}

/* --------------------------------------------------
   LAYOUT
-------------------------------------------------- */

.container {
    max-width: 960px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.container-wide {
    max-width: 1500px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 600;
}

/* --------------------------------------------------
   LINKS & KNAPPER
-------------------------------------------------- */

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    transition: 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #990000;
}

.alert-error {
    background: #fff0f0;
    border: 1px solid #e0a0a0;
    color: #900;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
}

/* --------------------------------------------------
   TABELLER
-------------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

table th {
    background: var(--secondary);
    text-align: left;
    font-weight: 600;
}

table tr:hover {
    background: #f9f9f9;
}

/* --------------------------------------------------
   FORMULARER
-------------------------------------------------- */

form {
    margin-top: 20px;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

form input, form textarea, form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 15px;
    font-size: 15px;
}

form button {
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
}

form button:hover {
    background: var(--primary-dark);
}

/* --------------------------------------------------
   NAVIGATION / MENU
-------------------------------------------------- */

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.menu a {
    padding: 12px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
    transition: 0.2s;
}

.menu a:hover {
    background: var(--primary-dark);
}

/* --------------------------------------------------
   HOME / DASHBOARD
-------------------------------------------------- */

.home-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 20%, #eef4ff 100%);
    border-radius: 28px;
    box-shadow: 0 18px 55px rgba(0, 23, 71, 0.12);
}

.home-hero {
    text-align: center;
    margin-bottom: 40px;
}

.home-logo {
    width: 220px;
    height: auto;
    margin-bottom: 15px;
}

.hero-kicker {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: #6b6f76;
    margin-bottom: 8px;
}

.home-hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.home-hero p {
    color: #555;
}

.home-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.home-group {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(7px);
}

.group-heading {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.card-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.card-emoji {
    font-size: 28px;
    line-height: 1;
}

.card-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: #0f172a;
}

.card-desc {
    font-size: 14px;
    color: #475569;
}

.home-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
}

.home-footer a {
    color: #6b7280;
}

@media (max-width: 640px) {
    .home-wrapper {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .home-groups {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------
   RESPONSIVE JUSTERING
-------------------------------------------------- */

@media (max-width: 1024px) {
    body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .container,
    .container-wide,
    .home-wrapper {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 70px 14px 24px;
    }

    .site-header {
        padding: 6px 12px;
    }

    .container,
    .container-wide,
    .home-wrapper {
        padding: 18px 16px;
    }

    .menu {
        max-width: none;
        width: 100%;
    }

    .menu a {
        font-size: 15px;
    }

    .home-card {
        flex-direction: column;
        align-items: flex-start;
    }

    form input,
    form textarea,
    form select {
        font-size: 16px;
    }

    form button {
        width: 100%;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    table th,
    table td {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 65px 10px 20px;
    }

    .site-header img {
        height: 30px;
    }

    .home-hero h1 {
        font-size: 26px;
    }

    .home-card {
        gap: 10px;
    }
}
