/* Grundläggande återställning och typografi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf8f5;
}

/* Container och layout */
.stubb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header och navigation */
.trad-header {
    background: linear-gradient(135deg, #e6f2e6 0%, #d4e8f0 100%);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.frasning-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.stubb-logo {
    display: inline-block;
    background: linear-gradient(45deg, #8b7355, #6b8e7f);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 22px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.stubb-logo::before {
    content: "⚙";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.3;
    font-size: 30px;
}

.trad-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.trad-menu a {
    display: inline-block;
    padding: 10طpx 20px;
    background: #f5f5dc;
    color: #5a4a3a;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.trad-menu a:hover, .trad-menu a.active {
    background: #6b8e7f;
    color: white;
    transform: translateY(-2px);
    border-color: #8b7355;
}

/* Hero sektion */
.stubb-hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(rgba(139,115,85,0.1), rgba(107,142,127,0.1));
    overflow: hidden;
}

.hero-bild {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
}

/* Innehållssektioner */
.frasning-content {
    padding: 40px 0;
}

.trad-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #5a4a3a;
    font-size: 2.2em;
    margin-bottom: 20px;
    border-bottom: 3px solid #6b8e7f;
    padding-bottom: 10px;
}

h2 {
    color: #6b8e7f;
    font-size: 1.8em;
    margin: 25px 0 15px;
}

h3 {
    color: #8b7355;
    font-size: 1.4em;
    margin: 20px 0 10px;
}

p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

/* CTA knappar */
.offert-knapp {
    display: inline-block;
    background: linear-gradient(135deg, #6b8e7f 0%, #8b7355 100%);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin: 15px 5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.offert-knapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.knapp-container {
    text-align: center;
    margin: 30px 0;
}

/* Formulär */
.kontakt-formular {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.form-grupp {
    margin-bottom: 20px;
}

.form-grupp label {
    display: block;
    color: #5a4a3a;
    font-weight: bold;
    margin-bottom: 5px;
}

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

.form-grupp input:focus,
.form-grupp textarea:focus {
    outline: none;
    border-color: #6b8e7f;
}

.skicka-knapp {
    background: linear-gradient(135deg, #8b7355 0%, #6b8e7f 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.skicka-knapp:hover {
    transform: scale(1.05);
}

/* Spam-skydd */
.spam-skydd {
    background: #e6f2e6;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.spam-fraga {
    font-weight: bold;
    color: #5a4a3a;
    margin-bottom: 10px;
}

/* Tabeller */
.stubb-tabell {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

.stubb-tabell table {
    width: 100%;
    min-width: 300px;
}

.stubb-tabell th {
    background: #6b8e7f;
    color: white;
    padding: 12px;
    text-align: left;
}

.stubb-tabell td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
}

.stubb-tabell tr:nth-child(even) {
    background: #f5f5dc;
}

/* Listor */
.trad-lista {
    list-style: none;
    padding-left: 0;
}

.trad-lista li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.trad-lista li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6b8e7f;
    font-weight: bold;
    font-size: 20px;
}

ol.nummer-lista {
    counter-reset: stubb-counter;
    list-style: none;
    padding-left: 0;
}

ol.nummer-lista li {
    counter-increment: stubb-counter;
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
}

ol.nummer-lista li::before {
    content: counter(stubb-counter);
    position: absolute;
    left: 0;
    background: #8b7355;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Footer */
.trad-footer {
    background: #5a4a3a;
    color: #f5f5dc;
    padding: 30px 0 20px;
    margin-top: 50px;
}

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

.footer-sektion h4 {
    color: #f5f5dc;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-sektion a {
    color: #d4e8f0;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    transition: color 0.3s;
}

.footer-sektion a:hover {
    color: #6b8e7f;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #d4e8f0;
}

/* Bilder och media */
.trad-bild {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.bild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Meddelanden */
.success-meddelande {
    background: #d4f4dd;
    border: 2px solid #6b8e7f;
    color: #2d5f3f;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.error-meddelande {
    background: #ffd4d4;
    border: 2px solid #d46b6b;
    color: #8b3535;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

/* Responsiv design */
@media (max-width: 768px) {
    .frasning-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .trad-menu {
        width: 100%;
        justify-content: center;
    }
    
    .trad-menu a {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
        min-width: 120px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .hero-text {
        padding: 20px;
    }
    
    .trad-section {
        padding: 20px;
    }
    
    .footer-innehall {
        grid-template-columns: 1fr;
    }
    
    .stubb-tabell {
        font-size: 14px;
    }
    
    .offert-knapp {
        display: block;
        width: 90%;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .stubb-container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .trad-menu a {
        flex: 1 1 100%;
        margin: 5px 0;
    }
    
    .kontakt-formular {
        padding: 20px;
    }
}

/* Animationer */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Ortslista styling */
.orter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.ort-item {
    padding: 5px;
    color: #5a4a3a;
    border-left: 3px solid #6b8e7f;
    padding-left: 10px;
}