/* ========== Allmänna Stilar ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7fa;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ========== Header ========== */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0; /* Vertikal padding */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertikal centrering */
}

.logo img {
    max-height: 60px;
}

nav {
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #28a745; /* Accentfärg vid hovring */
}

/* ========== Burger Menu ========== */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* ========== Hero-sektion ========== */
#hero {
    /* Om du använder en video, kan du kommentera bort bakgrundsbilden */
    /* background: url('path_to_hero_image.jpg') no-repeat center center/cover; */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* För att kompensera för fixed header */
    position: relative;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    background: rgba(0, 0, 0, 0.0); /* Mörkare transparent bakgrund för bättre läsbarhet */
    padding: 40px;
    border-radius: 10px;
    color: #ffffff;
}

.hero-logo {
    margin-bottom: 20px;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Förbättrad läsbarhet */
}

#hero p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #bd0b0b;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #218838;
}

/* ========== Rubrik Stilar ========== */

/* Allmänna rubrikstilar inom content-section */
/* Endast direkta barn för att undvika ärvning till nestade headers */
.content-section > h2 {
    font-size: 2.5rem;
    color: #0056b3;
    font-weight: bold;
    margin-bottom: 20px;
}



.content-section > h3 {
    font-size: 1.75rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 2rem;
    color: #0062cc;
    margin-bottom: 25px;
    font-weight: bold;
}

.content-section > h2, 
.content-section > h3
.content-section > h4 {
    text-align: center;
}

.informational {
    font-size: 2rem;
    margin-top: 10px;
    text-align: center;
    /* Add any additional styles here */
}




/* ========== Innehållssektioner ========== */
.content-section {
    padding: 40px 0; /* Ökad padding för bättre luft */
    background-color: #ffffff;
}

.content-section:nth-of-type(even) {
    background-color: #f9fafb;
}

.content-section p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
}

.content-section .cta-button {
    margin-top: 20px;
}

/* ========== Kort och Layout ========== */
.content-section .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.content-section .card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    flex: 1 1 300px; /* Flexibel bredd */
    max-width: 350px; /* Maxbredd */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
}

.content-section .card i {
    color: #28a745;
    margin-bottom: 15px;
    flex-shrink: 0;
}

/* Specifika rubrikstilar inom kort */
.card-title {
    font-size: 1.5rem; /* Justera enligt behov */
    color: #333;
    margin-bottom: 15px;
    font-weight: normal; /* Ändra från bold om så önskas */
}

.card-subtitle {
    font-size: 1.25rem; /* Justera enligt behov */
    color: #28a745;
    margin-bottom: 15px;
    font-weight: bold; /* Ändra efter behov */
}

.content-section .card p {
    color: #555555;
    line-height: 1.5;
    flex-grow: 1;
    word-wrap: break-word; /* För att bryta långa ord */
}



/* ========== Kontaktsektion ========== */
#kontakt .kontakt-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.kontakt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.kontakt-item a {
    color: #007BFF;
}

.kontakt-item a:hover {
    text-decoration: underline;
}

/* ========== GDPR-sektion ========== */

#gdpr {
    margin-top:50px;
    padding: 40px 20px;
    background-color: #f1f3f5;
    border-radius: 10px;
}

#gdpr h2 {
    text-align: center;
    margin-bottom: 20px;
}

#gdpr ul {
    list-style-type: disc; /* Standard punkter */
    padding-left: 20px; /* Indrag för listan */
    color: #555;
    line-height: 1.6;
}

#gdpr ul li {
    margin-bottom: 10px; /* Avstånd mellan punkter */
}

/* ========== Footer ========== */
footer {
    background-color: #343a40;
    padding: 20px 0;
    text-align: center;
}

footer p {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* ========== Responsiv Design ========== */
@media (max-width: 992px) {
    .content-section .cards {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Navigationsmeny */
    .nav-links {
        position: absolute;
        right: 50%; /* Flytta till mitten */
        top: 60px;
        background-color: #ffffff;
        flex-direction: column;
        width: 200px;
        border: 1px solid #eaeaea;
        display: none;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        transform: translateX(50%); /* Justera för att verkligen centrera */
    }

    .nav-links li {
        padding: 15px;
        text-align: center;
    }

    /* Visa burger-meny */
    .burger {
        display: flex;
    }

    /* Aktiv meny */
    .nav-active {
        display: flex;
        animation: fadeIn 0.5s ease-in-out;
    }

    /* Animation för meny */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Ändra burger till X när aktiv */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Kortlayout för mindre skärmar */
    .content-section .cards {
        flex-direction: column;
        align-items: center;
    }

    .content-section .card {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 10px 0; /* Vertikal marginal */
    }

    /* Justeringar för Hero-sektionen */
    #hero {
        padding-top: 100px; /* Anpassa efter behov */
        flex-direction: column; /* Om det behövs för layout */
    }

    .hero-content {
        width: 90%; /* Gör innehållet smalare för mobiler */
        padding: 20px; /* Minska padding för mindre skärmar */
    }

    #hero h1 {
        font-size: 2rem; /* Anpassa storleken */
    }

    #hero p {
        font-size: 1rem; /* Anpassa storleken */
    }

    /* Justeringar för Innehållssektioner */
    .content-section {
        text-align: center;
        padding: 40px 20px; /* Justera padding för mindre skärmar */
    }

    .content-section > h2 {
        font-size: 1.75rem; /* Minska storleken */
    }

    .content-section > h3 {
        font-size: 1.5rem; /* Minska storleken */
    }

    .section-subtitle {
        font-size: 1.75rem; /* Anpassa efter behov */
    }

    .content-section h4 {
        font-size: 1.1rem; /* Minska storleken */
    }

    .content-section p {
        font-size: 0.9rem; /* Minska storleken */
    }

    /* Justeringar för Kontaktsektionen */
    .kontakt-section {
        align-items: center;
        text-align: center;
    }

    .kontakt-item {
        font-size: 0.9rem; /* Minska storleken */
    }

    /* Justeringar för GDPR-sektionen */
    #gdpr {
        text-align: center;
    }

    #gdpr h2 {
        font-size: 1.75rem; /* Minska storleken */
    }

    #gdpr p {
        font-size: 0.9rem; /* Minska storleken */
    }

    /* Centrera knappar */
    .cta-button {
        display: block;
        margin: 20px auto 0; /* Centrera knappen */
        font-size: 0.9rem; /* Minska storleken */
        padding: 10px 20px; /* Justera padding för mindre skärmar */
    }

    /* Säkerställ att bilder och andra element inte överskrider skärmens bredd */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Footer Justeringar */
    footer p {
        font-size: 0.8rem; /* Minska storleken */
    }
}

/* Ytterligare Media Query för ännu mindre skärmar (valfritt) */
@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.75rem; /* Ytterligare minskning */
    }

    #hero p {
        font-size: 0.9rem;
    }

    .content-section > h2 {
        font-size: 1.5rem;
    }

    .content-section > h3 {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }

    .content-section h4 {
        font-size: 1rem;
    }

    .content-section p {
        font-size: 0.85rem;
    }

    .kontakt-item {
        font-size: 0.85rem;
    }

    #gdpr h2 {
        font-size: 1.5rem;
    }

    #gdpr p {
        font-size: 0.85rem;
    }

    .cta-button {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    footer p {
        font-size: 0.75rem;
    }
}

/* ========== Accessibility Förbättringar ========== */
/* Fokus-stilar för länkar och knappar */
a:focus,
button:focus {
    outline: 2px dashed #28a745;
    outline-offset: 4px;
}

/* ========== Extra Förbättringar ========== */
/* Smooth scrolling för bättre användarupplevelse */
html {
    scroll-behavior: smooth;
}

/* Förhindra att headern täcker innehållet */
main {
    padding-top: 80px; /* Justera beroende på headerns höjd */
}
