/* Återställning och grundläggande stilar för snickeriverksamhet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typografi anpassad för byggbranschen 2013 */
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Träarbete-inspirerad header */
.timmerhuvud {
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
    border-bottom: 3px solid #7cb342;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.verkstadsinnehall {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logotyp skapad med CSS för snickeri */
.hammarlogo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: #2e7d32;
    position: relative;
}

.hammarlogo::before {
    content: '';
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #ff6b9d;
}

.hammarlogo::after {
    content: '⚒';
    position: absolute;
    left: 12px;
    color: white;
    font-size: 22px;
}

/* Navigation för byggprojekt */
.spiknavigation {
    display: flex;
    gap: 25px;
    align-items: center;
}

.spiknavigation a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 3px;
}

.spiknavigation a:hover {
    color: #7cb342;
    background: rgba(124, 179, 66, 0.1);
}

/* Offertknapp i header */
.hammaroffert {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.hammaroffert:hover {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Mobilmeny för snickartjänster */
.sagknapp {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.sagknapp span {
    display: block;
    width: 25px;
    height: 3px;
    background: #555;
    margin: 5px 0;
    transition: 0.3s;
}

/* Huvudinnehåll för träarbeten */
.verkstadsyta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hjältesektionen för snickeri */
.plankhjalte {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,240,240,0.95) 100%);
    padding: 60px 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 {
    color: #2e7d32;
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    color: #388e3c;
    font-size: 32px;
    margin: 30px 0 15px;
    border-left: 4px solid #7cb342;
    padding-left: 15px;
}

h3 {
    color: #43a047;
    font-size: 24px;
    margin: 25px 0 12px;
}

/* CTA-knappar för byggprojekt */
.sagaoffert {
    display: inline-block;
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    margin: 20px 10px 20px 0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.sagaoffert:hover {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

/* Informationsrutor för träarbete */
.tradruta {
    background: white;
    border: 1px solid #ddd;
    border-left: 4px solid #7cb342;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.snickarfakta {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    border: 1px solid #a5d6a7;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

/* Tabeller för byggprojekt */
.plantabell {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.plantabell th {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.plantabell td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.plantabell tr:hover {
    background: #f5f5f5;
}

/* Accordion för snickartjänster */
.tradaccordion {
    margin: 20px 0;
}

.tradaccordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.tradaccordion-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #2e7d32;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.tradaccordion-header:hover {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.tradaccordion-header::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s;
}

.tradaccordion-item.active .tradaccordion-header::after {
    transform: rotate(180deg);
}

.tradaccordion-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.tradaccordion-item.active .tradaccordion-content {
    padding: 15px;
    max-height: 1000px;
}

/* Formulär för offertförfrågan */
.hammarformular {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.plankaformgrupp {
    margin-bottom: 20px;
}

.plankaformgrupp label {
    display: block;
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 5px;
}

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

.plankaformgrupp input:focus,
.plankaformgrupp textarea:focus {
    outline: none;
    border-color: #7cb342;
}

.spikskydd {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.skickahammare {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.skickahammare:hover {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

/* Footer för snickeriföretaget */
.tradgolv {
    background: linear-gradient(180deg, #333 0%, #212121 100%);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.golvsektioner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.golvsektion h4 {
    color: #7cb342;
    margin-bottom: 15px;
    font-size: 18px;
}

.golvsektion a {
    color: #bbb;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.golvsektion a:hover {
    color: #7cb342;
}

.snickarinfo {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* CSS-bilder för rubriker */
.tradbildrubrik {
    position: relative;
    padding: 40px;
    margin: 30px 0;
    background: linear-gradient(135deg, rgba(124,179,66,0.1) 0%, rgba(255,107,157,0.1) 100%);
    border-radius: 10px;
    text-align: center;
}

.tradbildrubrik::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed #7cb342;
    border-radius: 8px;
}

/* Responsiv design för mobil snickeri */
@media (max-width: 768px) {
    .spiknavigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .spiknavigation.active {
        display: flex;
    }
    
    .sagknapp {
        display: block;
    }
    
    .hammaroffert {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        padding: 12px 24px !important;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .plankhjalte {
        padding: 30px 20px;
    }
    
    .golvsektioner {
        grid-template-columns: 1fr;
    }
    
    .plantabell {
        font-size: 14px;
    }
    
    .plantabell th,
    .plantabell td {
        padding: 8px;
    }
}

/* Speciella markeringar för träarbete */
.fetmarkering {
    font-weight: bold;
    color: #2e7d32;
}

.kursivinfo {
    font-style: italic;
    color: #555;
}

/* Lista med träsymboler */
ul.tradlista {
    list-style: none;
    padding-left: 0;
}

ul.tradlista li {
    position: relative;
    padding-left: 25px;
    margin: 10px 0;
}

ul.tradlista li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: #7cb342;
    font-size: 20px;
}

/* Ortstabell för byggområden */
.ortstradtabell {
    margin: 40px 0;
}

.ortsrubrik {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    transition: background 0.3s;
}

.ortsrubrik:hover {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
}

.ortsinnehall {
    display: none;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 5px 5px;
}

.ortsinnehall.visa {
    display: block;
}

/* Meddelande för formulärrespons */
.tradmeddelande {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: bold;
}

.tradmeddelande.success {
    background: #c8e6c9;
    color: #2e7d32;
    border: 1px solid #7cb342;
}

.tradmeddelande.error {
    background: #ffcdd2;
    color: #c62828;
    border: 1px solid #f44336;
}