* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
}

/* ------------------------------------- TEXT ----- */
body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    /* auto optimerar läsbarheten, motsatsen är none */
    font-weight: 300;
    /* För Robot gäller 100-900 */
    font-style: normal;
    /* normal eller italic */
    font-variation-settings:
        "wdth"100;
    /* lägre siffra gör texten smalare, högre bredare */
    line-height: 1.5;
    background-color: #fff;
}



h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.6em;
}

p {
    margin-bottom: 1.2em;
}


h1,
h2,
h3 {
    font-family: "Noto Serif", serif;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    height: auto;
}

h1 {
    font-size: 3em;
    padding: 50px 0 0 0;
}

h2 {
    font-size: 2em;
    padding-top: 20px;
}

h3 {
    font-size: 1.5em;
}

a {
    color: #000;
    font-weight: 800;
    text-decoration: none;
}

.bildtext {
    font-size: 0.8rem;
    text-align: center;
}

.stor {
    font-size: larger;
    font-weight: 400;
}

.kursiv {
    font-style: italic;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.ner {
    padding-top: 20px;
}

/* ------------------------------------- BILDER ----- */
img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------- KNAPPAR ----- */
.button {
    border: none;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
    border-radius: 5px;
}

.button:hover {
    background-color: #858180;
    color: #fff;
}


/* ------------------------------------- FÄRGER ----- */

.vit-bg {
    background-color: #fff;
    color: #171717;
}

.ljusgra-bg {
    background-color: #d5d5d5;
    color: #000;
}

.ljuslila-bg {
    background-color: #D2C1D9;
    color: #000;
}

.ljusgron-bg {
    background-color: #C7D9CD;
    color: #000;
}

.morklila-bg {
    background-color: #5A1F73;
    color: #fff;
}

.morkgron-bg {
    background-color: #07592B;
    color: #fff;
}

.grabeige-bg {
    background-color: #d3cbc8; 
    color: #000;
}

.morkgrabeige-bg {
    background-color: #858180;
    color: #fff;
}

.gra-bg {
    background-color: #5a5a5a;
    color: #fff;
}

.vit {
    color: #fff;
}

.svart {
    color: #000;
}

.gron {
    color: #07592B;
}

.lila {
    color: #5A1F73;
}

.halvtransparent-vit {
    background-color: rgba(255, 255, 255, 0.7);
}

.halvtransparent-lila {
    background-color: rgba(90, 31, 155, 0.5);
}

.halvtransparent-gron {
    background-color: rgba(7, 89, 43, 0.5);
}


/* ------------------------------------- MENY ----- */

.navbar {
    width: 100%;
    padding: 15px 35px 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

/* MENY: logo */
.logo a {
    display: inline-block;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* MENY: länkar */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    font-weight: 300;
    text-decoration: none;
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* MENY: lila hover */
.meny-lila a:hover {
    color: #D2C1D9;
}

/* MENY: grön hover */
.meny-gron a:hover {
    color: #C7D9CD;
}


/* MENY: Hamburgaren */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 28px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 12px;
}

.menu-toggle span:nth-child(3) {
    top: 24px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 12px;
    margin-left: 30px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 12px;
    margin-left: 30px;
}

.logo {
    flex-shrink: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* hjälper när det blir tight */
}



/* ------------------------------------- RADER, KOLUMNER & CELLER ----- */
.container {
    display: grid;
    justify-content: center;
    align-content: center;
    padding: 25px 20px 50px 20px;
}

.container-mindre {
    display: grid;
    justify-content: center;
    align-content: center;
    padding: 10px 20px 40px 20px;
}

.container-full {
    display: grid;
    justify-content: center;
    align-content: center;
    padding: 0;
}

.container-250 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    gap: 3em;
    padding: 30px 40px 30px 40px;
}

.content {
    display: grid;
    max-width: 980px;
    padding: 20px;
}

.content-40-0 {
    display: grid;
    max-width: 980px;
    padding: 40px 0 40px 0;
}

.content-gallery {
    display: grid;
    max-width: 980px;
    padding: 0 0 50px 0;
}

.content-2 {
    display: grid;
    max-width: 980px;
    padding: 20px;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
}

.content-2-lika {
    display: grid;
    max-width: 980px;
    gap: 2em;
    justify-content: center;
    align-content: center;
    grid-auto-columns: 100px;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    padding: 0 0 40px 0;
}

.content-2-card {
    display: grid;
    max-width: 980px;
    justify-content: center;
    align-content: center;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 2em;
    padding: 0 20px 40px 20px;
}

.content-3-lika {
    display: grid;
    max-width: 980px;
    gap: 2em;
    justify-content: center;
    align-content: center;
    grid-auto-columns: 100px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: auto;
    padding: 0 0 40px 0;
}


.ruta-lika {
    color: black;
    text-align: center;
    grid-auto-rows: auto;
}

.ruta-lika img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.ruta-stadning {
    color: black;
    text-align: left;
    grid-auto-rows: auto;
    border-radius: 5px;
    padding: 35px 20px 35px 20px;
}

.lista ul {
    list-style-position: outside;
    padding-left: 20px;
}

.content-3 {
    display: grid;
    max-width: 980px;
    padding: 20px;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1em;
}

.content-4 {
    display: grid;
    max-width: 980px;
    padding: 20px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1em;
}

.content-1-2 {
    display: grid;
    max-width: 980px;
    padding: 20px;
    grid-template-columns: 1fr 2fr;
    gap: 1em;
}

.content-2-1 {
    display: grid;
    max-width: 980px;
    padding: 20px;
    grid-template-columns: 2fr 1fr;
    gap: 1em;
}

/* Stor bild med text */
.container-storbild {
    position: relative;
    /* Nödvändigt för att absolut positionering ska fungera */
    text-align: right;
    color: white;
    /* Textfärg */
}

.text-storbild {
    position: absolute;
    top: 60%;
    left: 75%;
    /* Styr var texten hamnar */
    /* Alternativ: Längst ner till vänster */
    /* bottom: 10px; left: 15px; */
    transform: translate(-50%, -50%);

}

.border-radius-5 {
    border-radius: 5px;
}

.object-left {
    text-align: left;
}

.object-right {
    text-align: right;
}

.padding-20 {
    padding: 20px;
}

.padding-20-sidor {
    padding-left: 20px;
    padding-right: 20px;
}

.padding-40-nere {
    padding-bottom: 40px;
}

.padding-40-uppe {
    padding-top: 40px;
}

.right {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.responsive {
    max-width: 100%;
    height: auto;
}

.kontakt {
    border-radius: 5px;
    padding: 20px;
    background-color: #fff;
    margin-bottom: 20px;
}


/* ------------------------------------- SIDFOT ----- */

.container-sidfot-full {
    justify-content: center;
    align-content: center;
    padding: 30px 0 30px 0;
}

.container-sidfot {
    max-width: 940px;
    margin: 0 auto;
    /* centrerar */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.left-sidfot,
.right-sidfot {
    flex: 1;
}

.left-sidfot {
    text-align: left;
}

.center-sidfot {
    flex: 0; /* viktig! */
    display: flex;
    justify-content: center;
    align-items: center;
    /* text-align: center; */
    font-size: 2em;
    font-size: 40px;
}

.right-sidfot {
    text-align: right;
}

.center-sidfot a {
    margin: 0 5px;
    text-decoration: none;
}

.left-sidfot a {
    font-weight: 300;
    color: #fff;
}

.left-sidfot a:hover {
    color: #D2C1D9;
}

.left-sidfot2 a {
    font-weight: 300;
    color: #fff;
}

.left-sidfot2 a:hover {
    color: #C7D9CD;
}

/* ------------------------------------- CARD ----- */
.card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 350px;
    border-radius: 5px;
}

.card h3 {
    padding-top: 20px;
}

.card ul {
    padding: 0 0 20px 20px;
}

.card-2 {
    display: grid;
    grid-template-rows: auto auto;
    min-height: 100px;
}

.card-2 h3 {
    padding-top: 20px;
}

.pris {
    text-align: right;
    font-weight: 800;
    padding-right: 20px;
}

.fet {
    font-weight: 800;
}
    


/* ------------------------------------- VARFÖR VÄLJA OSS? ----- */
.varfor {
    padding: 20px;
}

.varfor p {
    font-weight: 400;
    font-size: 1.0em;
}


/* ------------------------------------- KONTAKT & FORMULÄR ----- */

/* Style inputs with type="text", select elements and textareas */
input[type=text],
input[type=email],
select,
textarea {
    width: 100%;
    /* Full width */
    padding: 12px;
    /* Some padding */
    border: 1px solid #ccc;
    /* Gray border */
    border-radius: 4px;
    /* Rounded borders */
    box-sizing: border-box;
    /* Make sure that padding and width stays in place */
    margin-top: 6px;
    /* Add a top margin */
    margin-bottom: 16px;
    /* Bottom margin */
    resize: vertical
        /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
    background-color: #D2C1D9;
    color: #000;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* When moving the mouse over the submit button */
input[type=submit]:hover {
    background-color: #858180;
    color: #fff;
}

/* Add a background color and some padding around the form */
.content-form {

    max-width: 980px;
    border-radius: 5px;
    padding: 20px;
}

/* FORMULÄR CHECKBOX */

/* The container */
.container-form {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.container-form input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container-form:hover input~.checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a pink background */
.container-form input:checked~.checkmark {
    background-color: #91626B;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container-form input:checked~.checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container-form .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Mellabrubrik i formulär */
.form-rubrik {
    font-weight: 800;
}

.success-box {
    background-color: #D3E3D3;
    border: 1px solid #647370;
    color: #1B1E1D;
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.error-box {
    background-color: #fdeaea;
    border: 1px solid #e09a9a;
    color: #8a1f1f;
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.kontakt a {
    color: #171717;
    font-weight: 300;
    text-decoration: none;
}

.kontakt a:hover {
    color: #91626B;
    font-weight: 800;
    text-decoration: none;
}


/* Grundstyling för logotypen (gäller alla skärmstorlekar) */
.kontakt-logo {
    max-width: 100%; /* Bilden blir aldrig bredare än sin container */
    height: auto;    /* Proportionerna bibehålls */
    display: block;  /* Krävs för att marginal-centrering ska fungera */
    margin: 0 auto;  /* Centrerar bilden horisontellt */
}

/* ------------------------------------- MEDIA QUERIES (olika stora skärmar) ----- */

/* MAX 600 PIXLAR BREDA SKÄRMAR */
@media (max-width: 600px) {
    .container-sidfot {
        flex-direction: column;
        text-align: center;
    }

    .left-sidfot,
    .center-sidfot,
    .right-sidfot {
        text-align: center;
        margin: 5px 0;
    }

    .card {
        min-height: 300px;
    }
}

/* ----- MAX 800 PIXLAR BREDA SKÄRMAR */
@media screen and (max-width: 800px) {

    /* Content ("boxar" för innehåll) */
    .content-2 {
        grid-template-columns: 1fr;
    }

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

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

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

    .content-2-card {
        grid-template-columns: 1fr;
    }

    .content-2-lika {
        grid-template-columns: 1fr;
    }

    .content-3-lika {
        grid-template-columns: 1fr;
    }

    /* MENY: Mobil */
    .menu-toggle {
        display: flex;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 20px;
        padding-top: 10px;
        padding-left: 60px;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 0;
        text-align: left;
    }

    .container-sidfot {
        flex-direction: column;
        align-items: center; /* centrera allt */
        text-align: center;
    }

    .left-sidfot,
    .center-sidfot,
    .right-sidfot {
        flex: none;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    /* Logo i KONTAKT */
    .kontakt-logo img {
        width: 50%; /* Bilden tar upp halva bredden av containern */
    }

    /* Dölj innehåll på stor skärm */
    .stor-skarm {
        display: none;
        align-items: center;
    }
}

/* ----- MINST 801 PIXLAR BREDA SKÄRMAR */
@media (min-width: 801px) {

    /* Dölj innehållet på stor skärm */
    .liten-skarm {
        display: none;
    }
}

/* ----- MINST 980 PIXLAR BREDA SKÄRMAR */
@media (min-width: 980px) {

    /* Sidfot */
    .container-sidfot {
       max-width: 980px;
    }
}