html {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    min-height: 100vh; 
    max-width: 100%;
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}


strong {
    font-weight: bold;
}

h3 {
    font-size: 20px;
    font-weight: bold;
}

h2 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-color: rgb(53, 53, 53);
    line-height: 1.4;
}

section {
    flex: 1;
}

header {
    padding: 0px;
    margin: 20px;
    border-radius: 22px;
    background-color: rgb(255, 255, 255);
    border: 2px solid black;
}

#head {
    background: #ffffffd2;
    border-radius: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 110px;
    padding: 0 36px;
}

#rubrik {
    max-height: 80px;
    width: auto;
    justify-self: start;
}

#Logga {
    width: 180px;
    align-self: end;
    margin-bottom: 0;
    justify-self: end;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.header-nav a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    padding: 16px 28px;
    margin-right: 10px;
    border-radius: 14px;
    background: rgb(211, 206, 206);
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-nav a:last-child {
    margin-right: 0; 
}

.header-nav a:hover {
    background: rgb(190, 190, 190);
    transform: translateY(-3px);
}

.header-nav .active {
    font-weight: bold;
    font-size: 19px;
}

.card,
.reverse-card {
    margin: 20px;
    padding: 20px;
    border-radius: 16px;
    background-color: #ffffff;
    border: 4px solid #ffffff;
}

.bilderna {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bilderna li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bilderna img {
    display: block;
    border-radius: 16px;
    max-width: 30vw;
    height: auto;
    transition: border 0.2s ease;
}

.bilderna img:hover {
    outline: 3px solid rgb(68, 68, 68);
}

.texten {
    font-size: 28px;
    color: rgb(0, 0, 0);
    padding: 10px;
    max-width: 300px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.kontakt {
    width: 100%;
    max-width: 600px;
    margin: 80px auto;
    background: white;    
    padding: 40px;        
    border-radius: 20px;  
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.kontakt h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.kontakt form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kontakt input,
.kontakt textarea {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.kontakt button {
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #5a86ff, #7fa6ff);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.info {
    width: 100%;
    max-width: 1100px;
    margin: 80px auto;
    padding: 40px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#nummer{
    color: #808080;
    font-size: 12px;
    font-weight: normal;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.info-images img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
}

footer {
    margin-top: 80px;
    padding: 30px;
    background-color: #2e2e2e;
    color: white;
    text-align: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

#footer-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    list-style: none;
}

#links li {
    list-style: none;
}

#links li a {
    text-decoration: none;
    color: white;
}

#links li a:hover {
    color: rgb(118, 171, 241);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: black;
    border-radius: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */

@media (width <=1200px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .bilderna {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .bilderna img {
        max-width: 80%;
        margin: 0 auto;
    }

    #Logga {
        display: none;
    }

    #head {
        grid-template-columns: 1fr;
        height: auto;
        padding: 20px;
        gap: 20px;
    }

    #rubrik {
        justify-self: center;
        margin: 0 auto;
    }

    .texten {
        max-width: 90%;
        font-size: 22px;
    }

    .reverse-card .bilderna {
        flex-direction: column-reverse;
    }
}

/* Mobile */

@media (width <=768px) {
    header {
        margin: 0;
        border-radius: 0;
        border: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    body {
        padding-top: 150px;
    }

    #head {
        border-radius: 0;
        padding: 10px 10px;
        background: white;
    }

    #rubrik {
        max-width: 90%;
        margin-bottom: 0px;
    }

    .header-nav {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .bilderna img {
        max-width: 95%;
    }

    .header-nav a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    #footer-list {
        flex-direction: column;
        padding: 0;
        gap: 30px;
    }

    .card,
    .reverse-card {
        margin: 10px;
        padding: 20px 10px;
    }

    .texten {
        font-size: 20px;
    }

    .mobile-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 0;
    }

    .hamburger {
        display: flex;
        margin: 0 auto 15px 8px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.show {
        max-height: 500px;
        opacity: 1;
        padding-bottom: 20px;
    }

    .nav-links a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 15px 0;
    }
}

.hamburger span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}