:root {
    --primary: #10b981;
    --primary-light: #d1fae5;
    --holiday: #8b5cf6;
    --holiday-light: #ede9fe;
    --weekend: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* Navbar */
nav { 
    background: white; 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border); 
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav strong { font-size: 1.2rem; color: var(--primary); }

/* Hero / Header - Midtstilt layout */
.hero {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center; 
    flex-wrap: wrap;
    gap: 40px; 
}

.hero-text {
    text-align: left;
}

.hero h1 { 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: #0f172a; 
    margin: 0; 
}

.hero p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Årsvelger - Pill-form */
.year-selector {
    display: flex;
    gap: 10px;
}

.year-selector a {
    padding: 8px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
}

.year-selector a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Filter Seksjon */
.filter-section {
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 10px auto 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 700;
    font-size: 0.85rem;
}

#manualDayInput {
    width: 50px;
    border: none;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--primary);
    background: transparent;
    text-align: center;
    outline: none;
}

.btn-filter {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-badge {
    font-size: 0.85rem;
    color: #065f46;
    background: var(--primary-light);
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: -10px auto 20px auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dot { 
    display: inline-block; 
    width: 8px; 
    height: 8px; 
    border-radius: 2px; 
    margin-right: 4px; 
}
.dot.helligdag { background: var(--holiday); }
.dot.helg { background: #e2e8f0; }
.dot.bro-dag { background: var(--primary); }

/* Kalender / Måneder */
.months-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.month-box {
    background: white;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.month-box h4 {
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #334155;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.h {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    padding-bottom: 4px;
}

.day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 3px;
    background: #f1f5f9;
    color: #475569;
}

.day.empty { background: transparent; }
.day.helg { background: #e2e8f0; color: #94a3b8; }
.day.helligdag { background: var(--holiday); color: white; font-weight: bold; }
.day.bro-dag { background: var(--primary); color: white; font-weight: bold; }

/* Pakker/Tips */
.month-packages-inline {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-package {
    padding: 4px 6px;
    background: #f8fafc;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
    cursor: pointer;
}

.p-dates { font-size: 0.7rem; font-weight: 700; }
.p-info { font-size: 0.6rem; color: var(--text-muted); }

/* SEO & Mobil */
.seo-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .hero-text { text-align: center; }
    .filter-section {
        flex-direction: column;
        text-align: center;
    }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.highlight-day {
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.tech-stack span {
    background: white;
    padding: 6px 14px;
    border-radius: 50px; /* Matcher årstall-knappene dine */
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-weight: 500;
}

.privacy-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.8;
}

.privacy-content h1 { font-size: 1.8rem; margin-bottom: 20px; }
.privacy-content h2 { font-size: 1.2rem; margin-top: 30px; }
.privacy-content p, .privacy-content li { color: var(--text-muted); font-size: 0.9rem; }