/* Isoleringsföretagets stilmall - Traditionell svensk design 2013 */
:root {
    --vit-bas: #ffffff;
    --gul-gradient-start: #fff3b8;
    --gul-gradient-end: #ffe066;
    --ljusbrun: #f5e6d3;
    --klargrön: #7bc043;
    --ljusblå-cta: #4a90e2;
    --textfärg: #333333;
    --skugga: rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--textfärg);
    background: linear-gradient(to bottom, var(--vit-bas) 0%, var(--ljusbrun) 100%);
    min-height: 100vh;
}

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

/* Header med isoleringstema */
header {
    background: linear-gradient(135deg, var(--gul-gradient-start) 0%, var(--gul-gradient-end) 100%);
    box-shadow: 0 2px 5px var(--skugga);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-innehåll {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* CSS-logo för värmeisolering */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--textfärg);
}

.logo-ikon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    position: relative;
    background: var(--klargrön);
    border-radius: 10px;
    overflow: hidden;
}

.logo-ikon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid white;
    border-radius: 5px;
}

.logo-ikon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--textfärg);
}

/* Navigation för tak och väggar */
nav {
    display: flex;
    align-items: center;
}

.nav-länkar {
    display: flex;
    list-style: none;
    margin-right: 20px;
}

.nav-länkar li {
    margin-left: 30px;
}

.nav-länkar a {
    color: var(--textfärg);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-länkar a:hover {
    color: var(--klargrön);
}

/* CTA-knapp för offertförfrågan */
.cta-knapp {
    background: var(--ljusblå-cta);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-knapp:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Mobilmeny för värmeskydd */
.mobil-meny {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    width: 30px;
    height: 3px;
    background: var(--textfärg);
    position: relative;
    transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--textfärg);
    transition: 0.3s;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    bottom: -10px;
}

/* Hero-sektion för energibesparing */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(255, 243, 184, 0.3) 0%, rgba(123, 192, 67, 0.2) 100%);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--textfärg);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #555;
}

/* Innehållssektioner för isoleringsmaterial */
.innehåll-sektion {
    padding: 40px 0;
    background: white;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--skugga);
}

.innehåll-sektion h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--klargrön);
}

.innehåll-sektion h3 {
    font-size: 24px;
    margin: 25px 0 15px;
    color: var(--textfärg);
}

.innehåll-sektion p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Informationsrutor för värmeförlust */
.info-ruta {
    background: linear-gradient(to right, var(--gul-gradient-start), var(--ljusbrun));
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid var(--klargrön);
}

.info-ruta h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--textfärg);
}

/* Tabeller för isoleringslösningar */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 5px var(--skugga);
}

th {
    background: var(--klargrön);
    color: white;
    padding: 15px;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: var(--ljusbrun);
}

/* Formulär för köldbryggor */
.formulär-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--skugga);
    margin: 40px auto;
    max-width: 600px;
}

.formulär-grupp {
    margin-bottom: 25px;
}

.formulär-grupp label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--textfärg);
}

.formulär-grupp input,
.formulär-grupp textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.formulär-grupp input:focus,
.formulär-grupp textarea:focus {
    outline: none;
    border-color: var(--ljusblå-cta);
}

/* Spam-skydd för väggmaterial */
.spam-skydd {
    background: var(--ljusbrun);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Footer för energieffektivisering */
footer {
    background: var(--textfärg);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-innehåll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-sektion h4 {
    margin-bottom: 15px;
    color: var(--gul-gradient-end);
}

.footer-sektion ul {
    list-style: none;
}

.footer-sektion ul li {
    margin-bottom: 10px;
}

.footer-sektion a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-sektion a:hover {
    color: var(--klargrön);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
}

/* Foldout för byggnadsisolering */
.foldout {
    margin: 20px 0;
}

.foldout-trigger {
    background: var(--ljusblå-cta);
    color: white;
    padding: 15px;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.foldout-trigger:hover {
    background: #3a7bc8;
}

.foldout-innehåll {
    display: none;
    padding: 20px;
    background: var(--ljusbrun);
    border-radius: 0 0 5px 5px;
    margin-top: -5px;
}

.foldout-innehåll.aktiv {
    display: block;
}

/* CSS-bilder för mineralull */
.css-bild {
    width: 100%;
    height: 200px;
    margin: 20px 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.bild-mineralull {
    background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%, #e0e0e0);
    background-size: 20px 20px;
}

.bild-cellplast {
    background: radial-gradient(circle, white 30%, #f5f5f5 30%);
    background-size: 15px 15px;
}

.bild-lösull {
    background: linear-gradient(to bottom, #8B7355 0%, #A0826D 50%, #8B7355 100%);
    position: relative;
}

.bild-lösull::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.1) 3px, rgba(255,255,255,0.1) 6px);
}

.bild-takisolering {
    background: linear-gradient(135deg, #654321 0%, #8B7355 50%, #A0826D 100%);
    position: relative;
}

.bild-takisolering::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
}

.bild-fasadisolering {
    background: linear-gradient(to right, #ddd 0%, #f5f5f5 50%, #ddd 100%);
    position: relative;
}

/* Responsiv design för tjocklek */
@media (max-width: 768px) {
    .header-innehåll {
        position: relative;
    }
    
    .nav-länkar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px var(--skugga);
        margin: 0;
    }
    
    .nav-länkar.aktiv {
        display: flex;
    }
    
    .nav-länkar li {
        margin: 10px 0;
    }
    
    .mobil-meny {
        display: block;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .footer-innehåll {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
    
    .cta-knapp {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Utskriftsformat för offertunderlag */
@media print {
    header, footer, .cta-knapp, .mobil-meny {
        display: none;
    }
    
    .innehåll-sektion {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}