/* ================== GLOBAL ================== */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: #fdfbf6;
    color: #333;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

main {
    flex-grow: 1;
}

/* ================== HEADER ================== */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 3rem 1.5rem 3rem;
    background: #fffdfa;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.h1 h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #222;
    font-weight: 700;
    text-align: center;
}

.tagline {
    margin: 0.5rem 0 1rem 0;
    font-size: 1.1rem;
    color: #777;
    text-align: center;
}

/* ================== LANGUAGE SWITCH ================== */
.header-right {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
}

.language-switch a {
    color: #333;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switch .active {
    font-weight: bold;
    color: #bfa46f;
    background-color: rgba(191, 164, 111, 0.15);
}

/* ================== OM OS SECTIONS ================== */
.om-sektioner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.om-boks {
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.6s ease both;
}

.om-boks:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.om-boks h3 {
    font-family: 'Playfair Display', serif;
    color: #5a4632;
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.om-boks p {
    font-size: 1rem;
    line-height: 1.6;
    
}

.prbutton {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    background-color: #b6b6b6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.prbutton:hover {
    background-color: white;
    color: #b6b6b6;
    border: 2px solid #b6b6b6;
    transform: scale(1.05);
}

.lys h3 {
    color: #947558 !important;
}

.lys p {
    color: #e4e4e4 !important;
}

/* ================== BOKS FARVER ================== */
.boks-hvid { background: #fffdfa; }
.boks-lysgraa { background: #f4f1ea; }
.boks-mørkegraa { background: #dcd7cc; color: #222; }
.boks-sort { background: #222; color: #fdfbf6; }
.boks-blaa-skygge {
    background: linear-gradient(135deg, #eaf2fb, #d7e3f5);
    border: 1px solid #c1d2ec;
}

/* ================== BREDDE-KLASSER ================== */
.bred-smal { grid-column: span 1; }
.bred-medium { grid-column: span 2; }
.bred-bred { grid-column: span 3; }

@media (max-width: 900px) {
    .bred-smal, .bred-medium, .bred-bred { grid-column: span 1; }
}

/* ================== FOOTER ================== */
footer {
    background: linear-gradient(135deg, #1a1a1a, #3d3d3d);
    color: #f1e6d0;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1rem;
    border-top-left-radius: 50% 10%;
    border-top-right-radius: 50% 10%;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

/* ================== ANIMATIONS ================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
