/* Allmänna stilar */
:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #00a8e8;
    --light: #f8f9fa;
    --dark: #333333;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigeringsfält - Responsiva justeringar */
header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    display: flex;
    align-items: center;
}

.logo-img img {
    width: 250px;
    height: 80px;
    border-radius: 0;
    transition: all 0.3s ease;
    object-fit: contain;
    background-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    padding: 10px;
}

/* Hjältesektion - Responsiva justeringar */
.hero {
    background: url('Bild/bild50.jpg');
    margin-top: 110px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .container {
    position: relative;
    z-index: 1;
    background-color: rgba(20, 20, 20, 0.7);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero h1,
.hero p {
    text-shadow: 2px 2px 4px rgba(8, 1, 1, 0.7);
}

/* Introduktionssektion - Responsiva justeringar */
.intro {
    background-color: var(--light);
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.intro-content.reversed {
    flex-direction: row-reverse;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2rem;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* Förbättrade bockmarkeringar - Responsiva justeringar */
.checkmarks-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkmark-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.checkmark-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-top: 2px;
}

.checkmark-text {
    flex: 1;
    color: #333;
    font-weight: 500;
}

/* Tjänstesektion - Responsiva justeringar */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 2rem;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Projektsektion - Responsiva justeringar */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
    background: white;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.project-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Branschsektion - Responsiva justeringar */
.industries {
    background: var(--light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.industry-item {
    background: white;
    padding: 25px 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.industry-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.industry-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.industry-item:hover .industry-icon {
    color: white;
}

.industry-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.industries-contact {
    text-align: center;
    margin-top: 30px;
}

.industries-contact p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.industries-contact p:first-child {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Nyhetssektion - Responsiva justeringar */
.iso-modal-section {
    margin: 40px auto 60px;
    max-width: 900px;
}

.iso-preview {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.2);
    border: 2px solid transparent;
}

.iso-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.3);
    border-color: var(--accent);
}

.iso-preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: white;
    text-align: center;
}

.iso-icon {
    font-size: 3.5rem;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.iso-preview-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.iso-preview-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Modal för certifiering - Responsiva justeringar */
.iso-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.iso-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from { 
        transform: translateY(50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.iso-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.iso-close:hover {
    color: var(--accent);
    background: white;
}

.iso-modal-image {
    padding: 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.iso-modal-image img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.iso-modal-text {
    padding: 40px;
}

.iso-modal-text h3 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.iso-modal-subtitle {
    color: var(--gray);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

/* Nyhetsrutor - Responsiva justeringar */
.simple-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.simple-news-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.simple-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.simple-news-date {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.simple-news-title {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.simple-news-text {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Sidfot - Responsiva justeringar */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .footer-links li {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Miljöpolicy-sektion - Responsiva justeringar */
.environment-policy-section {
    background: #f4f9fc;
    padding: 80px 20px;
    font-family: 'Segoe UI', sans-serif;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #004a70;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: #555;
}

.policy-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.policy-text,
.policy-focus {
    flex: 1 1 500px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.policy-text h3,
.policy-focus h3 {
    color: #0077b6;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.policy-text p {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.7;
}

.iso-badge {
    margin-top: 20px;
    text-align: center;
}

.iso-badge img {
    max-width: 150px;
    margin-bottom: 10px;
}

.focus-list {
    list-style: none;
    padding: 0;
}

.focus-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #222;
    line-height: 1.5;
}

.focus-list i {
    color: #00a896;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Tillbaka till toppen-knapp */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ========== RESPONSIVA ANPASSNINGAR ========== */
/* Alla breakpoints är optimerade för att bevara originaldesignen */

/* Stora skärmar (min-width: 1201px) */
@media (min-width: 1201px) {
    .container {
        max-width: 1400px;
    }
}

/* Mellanstora skärmar (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1100px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .intro-content {
        gap: 40px;
    }
}

/* Tablets (769px - 1024px) - Svenska kommentarer */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Anpassa containerbredd för tablets */
    .container {
        width: 95%;
        max-width: 1000px;
    }
    
    /* Justera hjältesektion för tablets */
    .hero {
        margin-top: 100px;
        min-height: 90vh;
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Anpassa logotypstorlek för tablets */
    .logo-img img {
        width: 200px;
        height: 70px;
    }
    
    /* Justera navigeringslänkar för tablets */
    .nav-links li {
        margin-left: 20px;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    /* Anpassa tjänster till 2 kolumner på tablets */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Anpassa projekt till 2 kolumner på tablets */
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Anpassa introduktionsinnehåll för tablets */
    .intro-text h2 {
        font-size: 1.8rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    /* Anpassa branschgrid för tablets */
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .industry-item {
        padding: 20px 10px;
    }
    
    .industry-icon {
        font-size: 1.8rem;
    }
    
    /* Anpassa nyhetsrutor för tablets */
    .simple-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .iso-preview-content {
        gap: 25px;
    }
    
    .iso-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .iso-preview-text h3 {
        font-size: 1.8rem;
    }
    
    /* Anpassa miljöpolicy-sektion för tablets */
    .policy-content {
        gap: 30px;
    }
    
    .policy-text,
    .policy-focus {
        padding: 25px;
    }
    
    .policy-text h3,
    .policy-focus h3 {
        font-size: 1.3rem;
    }
    
    /* Anpassa footerkolumner för tablets */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Mobiler (max-width: 768px) - Svenska kommentarer */
@media (max-width: 768px) {
    /* Visa mobilmenyknapp och dölj desktopmenyn */
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 20px;
        z-index: 1000;
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    /* Anpassa logotypstorlek för mobiler */
    .logo-img img {
        width: 180px;
        height: 60px;
    }
    
    /* Justera header för mobiler */
    header {
        padding: 10px 0;
    }
    
    header.scrolled {
        padding: 8px 0;
    }
    
    /* Hjältesektion för mobiler */
    .hero {
        margin-top: 80px;
        padding: 150px 0 80px;
        min-height: 80vh;
    }
    
    .hero .container {
        padding: 30px 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Introduktionssektion för mobiler */
    .intro-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .intro-content.reversed {
        flex-direction: column;
    }
    
    .intro-text {
        min-width: 100%;
    }
    
    .intro-text h2 {
        font-size: 1.8rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .intro-image {
        min-width: 100%;
    }
    
    /* Anpassa bockmarkeringar för mobiler */
    .checkmark-item {
        font-size: 1rem;
    }
    
    .checkmark-icon {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
    
    /* Tjänster för mobiler - 1 kolumn */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
    
    /* Rubriker för mobiler */
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title h3 {
        font-size: 1.6rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    /* Miljöpolicy för mobiler */
    .policy-content {
        flex-direction: column;
    }
    
    .policy-text,
    .policy-focus {
        flex: 1 1 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Projekt för mobiler - 1 kolumn */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-image {
        height: 200px;
    }
    
    /* Branscher för mobiler */
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .industry-item {
        padding: 20px 10px;
    }
    
    .industry-icon {
        font-size: 1.8rem;
    }
    
    .industry-name {
        font-size: 0.8rem;
    }
    
    /* Nyheter för mobiler */
    .iso-modal-section {
        margin: 30px auto 40px;
    }
    
    .iso-preview-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .iso-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .iso-preview-text h3 {
        font-size: 1.5rem;
    }
    
    .simple-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .simple-news-card {
        padding: 20px;
    }
    
    .simple-news-title {
        font-size: 1.3rem;
    }
    
    /* Modal för mobiler */
    .iso-modal-content {
        width: 95%;
    }
    
    .iso-modal-image {
        padding: 30px;
        min-height: 300px;
    }
    
    .iso-modal-text {
        padding: 20px;
    }
    
    .iso-modal-text h3 {
        font-size: 1.8rem;
    }
    
    /* Footer för mobiler */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Knappar för mobiler */
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    /* Tillbaka till toppen-knapp för mobiler */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Små mobiler (max-width: 480px) - Svenska kommentarer */
@media (max-width: 480px) {
    /* Extra anpassningar för väldigt små skärmar */
    .hero {
        padding: 120px 0 60px;
        margin-top: 70px;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title h3 {
        font-size: 1.4rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .logo-img img {
        width: 150px;
        height: 50px;
    }
    
    .nav-links {
        width: 100%;
        border-radius: 0;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .intro-text h2 {
        font-size: 1.5rem;
    }
    
    .checkmark-item {
        font-size: 0.9rem;
    }
    
    .service-content h3,
    .project-content h3 {
        font-size: 1.3rem;
    }
    
    .simple-news-card,
    .service-card,
    .project-card {
        padding: 20px;
    }
    
    /* Branscher för extra små skärmar */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Miljöpolicy för extra små skärmar */
    .policy-text,
    .policy-focus {
        padding: 20px;
    }
    
    .policy-text h3,
    .policy-focus h3 {
        font-size: 1.2rem;
    }
    
    /* ISO-badge för extra små skärmar */
    .iso-badge img {
        max-width: 120px;
    }
}

/* Extra små enheter (max-width: 360px) - Svenska kommentarer */
@media (max-width: 360px) {
    /* Ytterligare finjusteringar för de minsta skärmarna */
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .logo-img img {
        width: 130px;
        height: 45px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .simple-news-title {
        font-size: 1.2rem;
    }
    
    /* Miljöpolicy-lista för extra små skärmar */
    .focus-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .focus-list i {
        align-self: flex-start;
    }
}

/* Stöd för högre upplösningar (4K, etc.) */
/* Stöd för högre upplösningar (4K, etc.) */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section-title h2 {
        font-size: 3rem;
    }
    
    .intro-content {
        gap: 70px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .simple-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* Stöd för orientering - landskapsläge */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 120vh;
        padding: 150px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .nav-links {
        display: flex !important;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* Tryck-vänliga stilar - för utskrift */
@media print {
    .back-to-top,
    .mobile-menu,
    .nav-links,
    .social-links,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000 !important;
        background: #fff !important;
    }
    
    .section-padding {
        padding: 20px 0 !important;
    }
    
    .hero {
        margin-top: 0 !important;
        padding: 50px 0 !important;
        background: none !important;
        color: #000 !important;
        min-height: auto !important;
    }
    
    .hero .container {
        background: none !important;
        padding: 0 !important;
        color: #000 !important;
    }
    
    .hero h1,
    .hero p {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .service-card,
    .project-card,
    .simple-news-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .industry-item {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    footer {
        page-break-before: always;
        background: #fff !important;
        color: #000 !important;
        padding: 30px 0 !important;
    }
    
    .footer-column h3 {
        color: #000 !important;
    }
    
    .footer-links a,
    .footer-links li {
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .intro-image,
    .project-image,
    .iso-modal-image {
        page-break-inside: avoid;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Accessibility improvements - tillgänglighetsförbättringar */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero h1,
    .hero p {
        text-shadow: none !important;
    }
    
    .service-card:hover,
    .project-card:hover,
    .simple-news-card:hover,
    .industry-item:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #000000;
        --secondary: #111111;
        --accent: #0000EE;
        --light: #FFFFFF;
        --dark: #000000;
        --gray: #222222;
    }
    
    .hero h1,
    .hero p {
        text-shadow: 1px 1px 0 #000 !important;
    }
    
    .service-card,
    .project-card,
    .simple-news-card,
    .industry-item {
        border: 2px solid #000 !important;
    }
}




/* Optimeringar för touch-enheter */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .project-card:hover,
    .simple-news-card:hover,
    .industry-item:hover,
    .btn:hover,
    .nav-links a:hover::after,
    .intro-image:hover img,
    .project-card:hover .project-image img {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    }
    
    .nav-links a:hover::after {
        width: 0 !important;
    }
    
    .btn:active {
        background: var(--secondary);
        transform: scale(0.98);
    }
    
    .service-card:active,
    .project-card:active,
    .simple-news-card:active {
        transform: scale(0.98) !important;
    }
}

/* Förbättringar för äldre webbläsare */
@supports not (display: grid) {
    .services-grid,
    .project-grid,
    .industries-grid,
    .simple-news-grid,
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-card,
    .project-card,
    .industry-item,
    .simple-news-card,
    .footer-column {
        flex: 1 1 300px;
        margin: 15px;
    }
    
    .industries-grid .industry-item {
        flex: 1 1 150px;
    }
}

/* Loader för bättre användarupplevelse */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress bar för sidscrollning */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--primary));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Förbättrad fokus för tangentbordsnavigering */
*:focus {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Skip to main content länk för tillgänglighet */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 1001;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* Lazy loading för bilder */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded {
    opacity: 1;
}

/* Performance optimeringar */
@media (prefers-reduced-data: reduce) {
    .hero {
        background-image: none !important;
        background-color: var(--primary);
    }
    
    .intro-image img,
    .project-image img {
        display: none;
    }
}

/* RTL support för arabiska/hebreiska språk */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .intro-content.reversed {
    flex-direction: row;
}

[dir="rtl"] .nav-links li {
    margin-left: 0;
    margin-right: 25px;
}

[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .checkmark-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .focus-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

[dir="rtl"] .iso-close {
    right: auto;
    left: 25px;
}

/* Tydligare hover-effekter för större skärmar */
@media (min-width: 1025px) {
    .nav-links a:hover {
        color: var(--accent);
    }
    
    .service-card:hover .service-icon {
        background: var(--accent);
        transform: scale(1.1);
        transition: all 0.3s ease;
    }
    
    .industry-item:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
}

/* Justeringar för specifika höjder */
@media (max-height: 700px) and (min-width: 769px) {
    .hero {
        min-height: 90vh;
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .service-icon {
        height: 60px;
        font-size: 1.8rem;
    }
}

/* Förbättrad läsbarhet på mobiler */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    h1, h2, h3, h4 {
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Optimaliseringar för OLED-skärmar */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover,
    .project-card:hover,
    .simple-news-card:hover {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Stöd för CSS Grid fallback */
.no-grid .services-grid,
.no-grid .project-grid,
.no-grid .industries-grid,
.no-grid .simple-news-grid,
.no-grid .footer-content {
    display: flex;
    flex-wrap: wrap;
}

.no-grid .service-card,
.no-grid .project-card,
.no-grid .simple-news-card {
    flex: 1 1 300px;
    margin: 15px;
}

.no-grid .industry-item {
    flex: 1 1 150px;
    margin: 10px;
}

.no-grid .footer-column {
    flex: 1 1 200px;
    margin: 15px;
}

/* Sista justeringar för bättre responsivitet */
@media (max-width: 320px) {
    .container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero .container {
        padding: 20px 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .intro-text h2 {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .checkmark-item {
        font-size: 0.85rem;
    }
    
    .service-content h3,
    .project-content h3,
    .simple-news-title {
        font-size: 1.1rem;
    }
    
    .simple-news-card,
    .service-card,
    .project-card {
        padding: 15px;
    }
}

/* Animation för scroll-indikator */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stöd för prefers-reduced-transparency */
@media (prefers-reduced-transparency: reduce) {

    
    .hero .container {
        backdrop-filter: none;
        background-color: rgba(20, 20, 20, 0.9);
    }
    
    .iso-icon {
        backdrop-filter: none;
    }
}

/* Justeringar för iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
    
    .back-to-top {
        bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

/* Fix för mobilviewport */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Sista kvalitetskontroll - alla element synliga och läsbara */
@media (max-width: 768px) {
    * {
        max-width: 100%;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* CSS för att säkerställa att allt är synligt */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Optimering av kontraster för bättre läsbarhet */
h1, h2, h3, h4, h5, h6,
.section-title h2,
.section-title h3,
.service-content h3,
.project-content h3,
.simple-news-title,
.footer-column h3 {
    font-weight: 700;
}

/* Responsiva mellanrum */
:root {
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 30px;
        --spacing-xl: 60px;
    }
    
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
}

