/*
* Filename: layout.css
* Directory: /www/css/
* File path: /www/css/layout.css
* Description: Grunnleggende stil, variabler, og hoved-layout.
*/

/* --- :root (Variabler) --- */
:root {
    /* Fargepalett for WEBoracle (Opprinnelig) */
    --color-primary: #2c3e50;    /* Mørk blågrå */
    --color-accent: #3498db;     /* Klar blå */
    --color-dark-accent: #2980b9; /* Mørkere blå */
    --color-background: #fdfdfd; /* Nesten hvit (Innhold) */
    --color-text: #333333;       /* Mørk grå tekst */
    --color-menu-separator: #ecf0f1;

    /* Fonter */
    --font-heading: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Generell Stil --- */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #f1f1f1; /* Lys grå bakgrunn for hele siden */
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-top: 0;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--color-dark-accent);
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

/* --- Knapper --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover {
    background-color: var(--color-dark-accent);
    color: white;
    text-decoration: none;
}
.btn-primary { background-color: var(--color-accent); }
.btn-danger { background-color: #e74c3c; }

/* --- Side-innpakning (.site-wrapper) --- */
.site-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0; 
    background-color: var(--color-background);
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Hovedinnhold --- */
#main-content-container, .main-content-area {
    padding: 2rem 3rem;
    flex-grow: 1;
}