/* kontakto — shared design tokens & base components
 * Single source of truth for the Foundation-inspired light theme.
 * Page-specific layout/animation CSS still lives in each template's
 * {% block extra_style %}, but colors, fonts, and common components
 * (buttons, boxes, badges, form fields) belong here.
 */

:root {
    --accent: #1779ba;
    --accent-hover: #125f8f;
    --ink: #0a0a0a;
    --muted: #767676;
    --line: #e5e2dc;
    --page-bg: #f5f3ef;
    --card-bg: #fefefe;
    --soft-fill: #eaf2f8;
    --bg-soft: #f5f5f5;

    /* Statusfarver — delt af flash-beskeder, status-pills og bannere */
    --ok-bg: #e8f3ec;
    --ok-ink: #1a7a3f;
    --ok-line: #bfe3cb;
    --warn-bg: #fdf6ea;
    --warn-ink: #b5590a;
    --warn-line: #ecd9a8;
    --err-bg: #fbe9e7;
    --err-ink: #b3261e;
    --err-line: #f2c4bd;
    --danger: #c0392b;
}

* { box-sizing: border-box; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--page-bg);
    margin: 0;
}

a { color: inherit; }

.font-display {
    font-family: "Fraunces", Georgia, serif;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 0.7rem 1.4rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--muted); }
.btn-secondary { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-secondary:hover { color: var(--ink); border-color: var(--muted); }

/* Sidelayout: bredt indhold med topbar (forside, dashboard) */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
nav.topbar { border-bottom: 1px solid var(--line); }
nav.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.95rem; }
.nav-links a.plain { text-decoration: none; color: var(--muted); }
.nav-links a.plain:hover { color: var(--ink); }

/* Generic card-style box (auth forms, dialogs) */
.box {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 24px 48px -20px rgba(10, 10, 10, 0.16);
    padding: 2.25rem 2rem;
    max-width: 420px;
    width: 100%;
}

/* Form fields */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
textarea, select {
    width: 100%;
    background: var(--page-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    color: var(--ink);
    font-size: 0.95rem;
    font-family: inherit;
}
input::placeholder, textarea::placeholder { color: #a3a3a3; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }

/* Status / banner badges */
.badge-success { background: #e8f3ec; color: #1a7a3f; border: 1px solid #bfe3cb; }
.badge-warning { background: #fdf1e4; color: #b5590a; border: 1px solid #f2d5b0; }
.badge-info { background: #fdf6ea; color: #6b5316; border: 1px solid #ecd9a8; }
.badge-error { background: #fbe9e7; color: #b3261e; border: 1px solid #f2c4bd; }

.muted { color: var(--muted); }
