/* Grundläggande reset 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;
    margin: 0;
    padding: 0;
    overflow-x: hidden;  /* Förhindra horisontell scroll */
}

/* Wrapper för huvudinnehållet */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header och navigation */
.site-header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

/* Logo */
.logo-header {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 1rem;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
}

/* Desktop meny */
.main-nav {
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
}

/* Hamburgerknapp */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Mobilmeny */
.mobile-menu {
    display: none;
}

/* Mobilanpassning */
@media (max-width: 860px) {
    .main-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        display: none;  /* Dölj menyn som standard på mobil */
    }
    
    .main-nav:not(.hidden) {
        display: block;  /* Visa menyn när den inte har klassen hidden */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
    }
    
    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-menu a {
        display: block;
        padding: 0.5rem 0;
        color: var(--primary-color);
        text-decoration: none;
    }
}

/* Huvudinnehåll */
h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
    color: #2c3e50;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #34495e;
}

/* Produktsektioner */
.product-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-types section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Formulär styling */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background-color: #007bff;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Kontaktsida */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-person {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.staff-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.contact-person h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-person p {
    color: #666;
    margin-bottom: 1rem;
}

.contact-person ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.contact-person ul li {
    margin-bottom: 0.5rem;
}

.contact-person ul li a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-person ul li a:hover {
    text-decoration: underline;
}

.address-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.address {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.address h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-section {
    margin-top: 3rem;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 4rem 0 2rem 0;
}

.map-info {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.map-container {
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsiv design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        min-height: 300px;
    }
}

/* FAQ-sida */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    background: #f8f9fa;
    padding: 1rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1rem;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.company-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsiv footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 1.5rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-nav li {
        margin: 0;
    }
}

/* Tjänster sida */
.service-request {
    text-align: center;
    padding: 2rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.service-request h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-request p {
    margin-bottom: 1.5rem;
}

/* Om oss sida */
.company-info article {
    margin-bottom: 2rem;
}

.glass-history {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* Startsida specifika stilar */
.hero {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.hero-content {
    position: relative;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    text-align: center;
    color: white;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(3px);
    max-width: 800px;
    z-index: 2;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Lägg till skugga för bättre läsbarhet */
}

.hero-overlay p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.logo-hero {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Produktkategorier */
.featured-categories {
    padding: 2rem 0;
}

.featured-categories h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.category-card .button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.category-card .button:hover {
    background-color: var(--secondary-color);
}

/* Företagspresentation */
.company-intro {
    padding: 4rem 0;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 4rem 0;
}

.intro-content {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
}

.intro-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.intro-text {
    padding: 0 1rem;
    flex: 1;
}

.intro-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Kontakt CTA */
.contact-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 4rem 0;
}

.contact-cta p {
    margin-bottom: 2rem;  /* Lägg till marginal under texten */
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background: var(--secondary-color);
}

.contact-cta .cta-button {
    margin-top: 2rem;
    display: inline-block;
}

/* Responsiv design */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-width: 2.5rem;
    }
    
    .hero-overlay p {
        font-size: 1.2rem;
    }
    
    .logo-hero {
        width: 150px;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.product-card h3,
.product-card p {
    width: 100%;
    text-align: center;
}

.product-card .product-price {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 1.8em;
    margin: 1.5rem 0;
    color: #1a3c6e;
    padding: 0.5rem 0;
}

.product-card .button {
    width: auto;
    min-width: 150px;
    margin-top: 1rem;
}

.product-images {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.product-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.product-grid p {
    margin-bottom: 1rem;
    color: #666;
}

.product-grid .read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.product-grid .read-more:hover {
    text-decoration: underline;
}

.services-preview {
    text-align: center;
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 3rem;
}

.button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

/* Tjänster sida */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-item h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

.intro, .outro {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    color: #555;
    line-height: 1.6;
}

.outro {
    font-style: italic;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Uppdatera produktkategorier */
.category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
}

.category .read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    position: relative;
    z-index: 2;
}

.category .read-more:hover {
    background-color: #0056b3;
}

.category a.category-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Justera knappar i produktrutor */
.product-types button {
    margin: 1.5rem;
}

/* Mindre rubrik för färger och storlekar */
.product-types h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Justera listors indrag */
.product-types ul {
    padding-left: 2rem;
    margin: 1rem 0;
}

/* Länk i header */
.logo-header a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Lägg till eller uppdatera denna CSS-regel */
.product-details ul {
    padding-left: 2rem;  /* Ger indrag för punktlistan */
    margin: 1rem 0;      /* Ger lite vertikal marginal */
}

.product-details li {
    margin-bottom: 0.5rem;  /* Ger lite mellanrum mellan punkterna */
}

.product-details button {
    margin-top: 1.5rem;     /* Ger mellanrum ovanför knappen */
    margin-bottom: 1rem;    /* Ger mellanrum under knappen */
}

.selected-product {
    margin: 1rem 0 2rem 0;
    padding: 1.5rem;
    background-color: #f0f7ff;
    border-radius: 8px;
    border: 2px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-product .product-icon {
    background-color: #007bff;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.selected-product .product-info {
    display: flex;
    flex-direction: column;
}

.selected-product .label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.selected-product .product-name {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Grundläggande menyknapp-stil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: auto;
}

/* Ta bort hover-effekten från hamburgermenyn */
.menu-toggle:hover {
    background: none;
    color: inherit;
}

/* Responsiv header och meny */
@media (max-width: 860px) {
    .site-header {
        padding: 1rem;
    }
    
    .logo-header {
        margin-left: 1rem;
    }
    
    .menu-toggle {
        margin-right: 1rem;
    }

    /* Reset tidigare stilar */
    nav ul {
        display: none;  /* Dölj desktop-menyn */
    }

    .site-header {
        position: relative;
        z-index: 1000;
    }

    /* Hamburger-knapp */
    .menu-toggle {
        display: block;
        margin-left: auto;
        position: relative;
        z-index: 1001;
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background-color: white !important;
        position: relative;
        transition: background 0.3s;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: white !important;
        transition: transform 0.3s;
    }

    .hamburger::before { top: -6px; }
    .hamburger::after { bottom: -6px; }

    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* Mobil navigation */
    .main-nav {
        display: block !important;  /* Grundläge - menyn visas */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* När menyn ska vara dold */
    .main-nav.hidden {
        display: none !important;
    }

    .main-nav ul {
        display: block;
        flex-direction: column;
        gap: 0;
        background: white;
        margin: 0;
        padding: 2rem 1rem;
        text-align: center;
    }

    .main-nav ul li {
        margin: 1rem 0;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 0.8rem;
        font-size: 1.25rem;
        font-weight: 600;
        color: black !important;
    }

    /* Stil för språkväljaren i mobil meny */
    .mobile-language-selector {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid #eee;
    }

    .mobile-language-selector .language-selector {
        justify-content: center;
        gap: 2rem;
        font-size: 1.15rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Visa språkväljaren både i header och i mobilmenyn */
    .site-header > .language-selector {
        display: flex;
        margin-left: 1rem;
        position: absolute;
        right: 4rem;  /* Ge plats för hamburgermenyn */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;  /* Lägg till högre z-index */
    }
}

/* Lägg till i CSS-filen */
.main-nav ul li a {
    white-space: nowrap;
}

/* eller mer specifikt för just "Om oss"-länken */
.main-nav ul li a[href="/om-oss.php"] {
    white-space: nowrap;
}

/* Legal sida */
.legal-content ul {
    padding-left: 2rem;  /* Ger indrag för punktlistan */
    margin: 1rem 0;      /* Ger lite vertikal marginal */
}

.legal-content li {
    margin-bottom: 0.5rem;  /* Ger lite mellanrum mellan punkterna */
}

/* Huvudmeny grid på startsidan */
.main-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.menu-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.menu-item h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.menu-item p {
    color: #666;
    margin-bottom: 1rem;
}

.menu-item ul {
    list-style: none;
    padding-left: 1.2rem;
    margin: 1rem 0;
    border-left: 2px solid #e0e0e0;
}

.menu-item li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
}

.menu-item .read-more {
    display: inline-block;
    margin-top: 1rem;
    margin-right: 1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.menu-item .read-more:hover {
    text-decoration: underline;
}

/* Responsiv design för huvudmenyn */
@media (max-width: 768px) {
    .main-menu-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .menu-item {
        padding: 1.5rem;
    }
}

/* Kontaktsida */
.contact-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.contact-info li {
    padding: 0.5rem 0;
    color: #555;
}

.contact-info address {
    font-style: normal;
    margin-top: 0.5rem;
}

/* Grundläggande språkväljare-stil */
.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.language-selector a {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

.language-selector a.active {
    font-weight: bold;
    color: #007bff;
}

/* Mobilmeny språkväljare */
.mobile-language-selector {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.mobile-language-selector .language-selector {
    justify-content: center;
    gap: 1.5rem;
}

.mobile-language-selector .language-selector a {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
}

/* Ta bort hover-effekt från hamburgerknappen */
.menu-toggle:hover {
    color: inherit;
}

@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;  /* En kolumn på mobil */
        gap: 1.5rem;  /* Lite mindre mellanrum på mobil */
        padding: 0 1rem;  /* Lägg till lite padding på sidorna */
    }
    
    .service-item {
        padding: 1.5rem;  /* Lite mindre padding i rutorna */
    }
}

/* Språkväljare i desktop-läge */
.site-header > .language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    align-items: center;
}

.site-header > .language-selector a {
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
}

/* Desktop språkväljare */
.desktop-language .language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.desktop-language .language-selector a {
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
}

/* Hide both logos by default */
.contact-logo.mobile-only,
.contact-logo.desktop-only {
  display: none;
}

.contact-logo {
  grid-area: logo;
  max-width: 300px;
  margin: 2rem 0px;
}

.contact-logo img {
  max-width: 100%;
  height: auto;
}

/* Show the mobile-only logo on small screens (e.g., up to 860px) */
@media (max-width: 860px) {
  .contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }
  .contact-info {
    order: 0;
  }
  .contact-form {
    order: 1;
  }
  .contact-logo.desktop-only {
    display: none;
  }
  .contact-logo.mobile-only {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 2rem auto;
  }
  .contact-logo.mobile-only img {
    width: 100%;
    height: auto;
  }
}

/* Show the desktop-only logo on larger screens (e.g., above 860px) */
@media (min-width: 861px) {
  .contact-logo.desktop-only {
    display: flex; /* Or block, inline-block, etc., depending on your layout */
    max-width: 300px;
    margin: 32px 0px;
  }
}

/* Länk som ser ut som en knapp */
.button-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--header-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
    cursor: pointer;
    margin-top: 1.5rem;  /* Lägg till marginal ovanför knappen */
}

.button-link:hover {
    background-color: var(--secondary-color);
    color: var(--header-text);
    text-decoration: none;
}

/* Uppdatera form-actions med mer specifika regler */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.form-actions .update-button {
    background-color: #666;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.form-actions .submit-button {
    background-color: var(--primary-color);
    color: var(--header-text);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.form-actions button:hover {
    opacity: 0.9;
}

/* Språkväljare för desktop och mobil */
.mobile-language {
    display: none;  /* Dölj mobilversionen som standard */
}

/* Desktop version */
.desktop-language .language-selector {
    display: flex;
    gap: 0.5rem;
}

.desktop-language .language-selector a {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

/* Mobilanpassning */
@media (max-width: 768px) {
    .desktop-language {
        display: none;  /* Dölj desktop-versionen */
    }
    
    .mobile-language {
        display: block;  /* Visa mobilversionen */
    }
    
    .mobile-language .language-selector {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .mobile-language .language-selector a {
        padding: 0.5rem 0.8rem;
        font-size: 1rem;
    }
}

/* Orderformulär tabellstilar */
.product-table {
    width: 100%;
    max-width: 1024px;  /* Lägg till maxbredd */
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
    margin-left: auto;  /* Centrera tabellen */
    margin-right: auto;
}

.product-table th {
    text-align: left;
    background-color: #f5f5f5;
    font-weight: bold;
    padding: 0.5rem 1.5rem;  /* Minska padding från 1rem till 0.5rem */
    border: 1px solid #ddd;
    border-bottom: 2px solid #999;
}

.product-table td {
    border: 1px solid #ddd;
    padding: 0.5rem 1.5rem;  /* Minska padding från 0.75rem till 0.5rem */
    text-align: left;
    line-height: 1.2;  /* Lägg till mindre line-height */
}

.product-table td.variant-cell {
    width: 40%;
    padding-right: 2rem;
    vertical-align: top;
    padding-top: 0.5rem;  /* Minska padding-top från 0.75rem till 0.5rem */
    padding-bottom: 0.5rem;  /* Lägg till padding-bottom */
}

.product-table tr.variant-start td {
    border-top: 2px solid #999;
}

.product-table td:nth-child(2) {
    width: 30%;
    padding: 0.75rem 2rem;
}

.product-table td:last-child {
    width: 30%;
    text-align: center;
}

.quantity-input {
    width: 100px;
    padding: 0.3rem;  /* Minska padding från 0.5rem till 0.3rem */
    text-align: center;
    height: 2rem;  /* Sätt en specifik höjd */
}

.product-table tr:not(.variant-start) td {
    border-top: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;  /* En knapp till vänster, en till höger */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Gemensam grundstil för båda knapparna */
.form-actions button {
    padding: 0.8rem 1.5rem;
    height: auto;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
    color: white;  /* Säkerställ vit text på båda knapparna */
}

.update-button {
    background-color: #666;  /* Grå för "fortsätt handla" */
}

.submit-button {
    background-color: var(--primary-color);  /* Grön för "skicka beställning" */
}

/* Gemensam hover-effekt */
.update-button:hover,
.submit-button:hover {
    opacity: 0.9;
}

/* Header styles */
header.site-header {
    background-color: var(--header-bg);
}

/* Company name text color */
.company-name {
    color: var(--header-text);
}

/* Main nav links text color */
.main-nav a {
    color: white;
}

/* Hamburger icon color */
.hamburger {
    background-color: white !important;
}

.hamburger::before,
.hamburger::after {
    background-color: white !important;
}

/* Dropdown menu text color on mobile */
@media (max-width: 768px) {
    .main-nav a {
        color: black !important;
    }
    
    .main-nav {
        border: 1px solid black !important;
    }
    
    .language-selector {
        justify-content: center !important;
    }
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-group .button-link {
    margin-top: 0;  /* Återställ margin från den ursprungliga button-link stilen */
}

.button-group form {
    margin: 0;
}

/* Uppdatera färgschema för MES-Smide */
:root {
    --primary-color: #1a3c6e;    /* Mörkblå */
    --secondary-color: #e63946;   /* Röd accent */
    --text-color: #333333;        /* Mörkgrå text */
    --background-color: #ffffff;  /* Vit bakgrund */
    --header-bg: var(--primary-color);
    --header-text: #ffffff;
}

/* Uppdatera header-stilar */
.site-header {
    background-color: var(--header-bg);
}

.company-name {
    color: var(--header-text);
}

/* Uppdatera knapp-stilar */
.button-link, 
.submit-button {
    background-color: var(--primary-color);
    color: var(--header-text);
}

.button-link:hover, 
.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Produktkategorier */
.product-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 0;
}

.category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    margin-top: 0;
    text-align: center;
}

.subcategory {
    margin-top: 3rem;
}

.subcategory h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Produktkort */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Bildhantering */
.product-images {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Produktinformation */
.product-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Beställningsknapp */
.product-card .button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
    align-self: center;
    width: 100%;
    max-width: 200px;
}

.product-card .button:hover {
    background-color: var(--secondary-color);
}

/* Responsiv design */
@media (max-width: 768px) {
    .category {
        padding: 2rem 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category h2 {
        font-size: 1.75rem;
    }
    
    .subcategory h3 {
        font-size: 1.25rem;
    }
}

/* Om oss-sida */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero {
    position: relative;
    height: 500px;
    margin-bottom: 4rem;
    border-radius: 12px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.company-history,
.company-today {
    padding: 4rem 0;
}

.history-content,
.today-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content {
    padding: 2rem;
}

.text-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;    
    margin-top: 1rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.history-image,
.today-image {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-cta {
    text-align: center;
    padding: 4rem 0;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 4rem 0;
}

.about-cta p {
    margin-bottom: 2rem;  /* Lägg till marginal under texten, före knappen */
}

.about-cta .cta-button {
    margin-top: 1rem;  /* Lägg till marginal ovanför knappen */
    display: inline-block;
}

/* Responsiv design */
@media (max-width: 768px) {
    .about-hero {
        height: 300px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .history-content,
    .today-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .text-content {
        padding: 1rem;
    }

    .history-image,
    .today-image {
        height: 300px;
    }
}

/* Välkomstbild på startsidan */
.welcome-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Tjänster-sida */
.services-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.services-hero {
    position: relative;
    height: 500px;
    margin-bottom: 4rem;
    border-radius: 12px;
    overflow: hidden;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.services-intro {
    margin: 0 0 4rem;
    padding: 0;
    width: 100%;
}

.services-intro .intro-flex {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.services-intro .intro-image {
    width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.services-intro .intro-text {
    flex: 1;
    padding-right: 2rem;
}

.contact-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 4rem 0;
}

@media (max-width: 768px) {
    .services-hero {
        height: 300px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}

.intro-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
    padding: 0 2rem;
}

.intro-image {
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro-text {
    flex: 1;
}

.intro-text h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .intro-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Orderformulär styling */
.order-form-page h1,
.order-form-page h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.product-category {
    margin-bottom: 4rem;
}

/* Tabellstyling för beställningsformulär */
.product-table th,
.product-table td {
    padding: 0.75rem;
    text-align: left;
}

/* Vänsterjustera alla kolumnrubriker */
.product-table th {
    text-align: left;
}

/* Styling för priskolumnen */
.product-table .price-cell {
    min-width: 200px;
    white-space: nowrap;
    text-align: right;
    padding-right: 3rem;
    font-weight: 500;
    font-size: 1.1rem;
    background-color: #f8f9fa;
}

/* Behåll bredden för priskolumnen men vänsterjustera rubriken */
.product-table th.price-header {
    min-width: 200px;
    padding-right: 3rem;
    background-color: #f0f0f0;
}

.product-card .product-price {
    text-align: center;
    display: block;
    width: 100%;
    font-weight: bold;
    font-size: 1.5em;
    margin: 1rem 0;
    color: #1a3c6e;
}

.services-intro .intro-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-left: 0;
}

.services-intro .intro-image {
    width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.services-intro .intro-text {
    flex: 1;
    padding-right: 2rem;
}

.opening-hours {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.opening-hours-content {
    display: grid;
    gap: 2rem;
    max-width: 800px;
}

.opening-hours h2 {
}

.map-container {
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

.category-description {
    margin: 0 0 2.5rem;
    max-width: auto;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

/* Produktsida intro och info */
.intro {
    margin-bottom: 3rem;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    text-align: left;
}

.equipment, .materials {
    margin-bottom: 3rem;
}

.equipment ul {
    list-style: none;
    padding: 0 0 0 2rem;
    margin: 1.5rem 0;
}

.equipment li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    position: relative;
}

.equipment li::before {
    content: "•";
    position: absolute;
    left: -1.5rem;
    color: var(--primary-color);
}

.equipment p, .materials p {
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

/* Tjänster-sida sektioner */
.band-renovation,
.safety,
.education,
.pricing {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.band-renovation h2,
.safety h2,
.education h2,
.pricing h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.band-renovation p,
.safety p,
.education p,
.pricing p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}