/* ===================================================== */
/* ================= IMPORTERA TYPSNITT ================= */
/* ===================================================== */

/* Hämtar Google Fonts (om du vill använda dem senare) */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300&family=Open+Sans:wght@300;600&display=swap');


/* ===================================================== */
/* ====================== RESET ======================== */
/* ===================================================== */

/* Tar bort webbläsarens standard-marginal och padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ===================================================== */
/* ======================= BODY ======================== */
/* ===================================================== */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    background-image: url('bkbild.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;
    background-size: cover;
}


/* ===================================================== */
/* =================== HUVUDCONTAINER ================== */
/* ===================================================== */

.main {
    width: 92%;
    max-width: 850px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}


/* ===================================================== */
/* ==================== NAVIGATION ===================== */
/* ===================================================== */

.välkomnestext {
    text-align: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2e7d32;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.nav a {
    background: linear-gradient(145deg, #02cd2e, #f6d991); /* Guld-gradient */
    color: white;              
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 16px;          /* Gör det till en ruta */
    border-radius: 8px;         /* Rundade hörn */
    display: inline-block;      /* Viktigt för box-form */
    transition: 0.3s;
}

.nav a:hover {
    background: linear-gradient(145deg, #ffd700, #daa520); /* Ljusare guld */
    transform: translateY(-2px);  /* Liten lyft-effekt */
}


/* ===================================================== */
/* ===================== DROPDOWN ====================== */
/* ===================================================== */

.dropdown {
    position: relative;
}

.dropbtn {
    background-color: #2e7d32;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 160px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 12px;
    margin: 8px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background-color: #1b5e20;
}

.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ===================================================== */
/* ======================= RUBRIK ====================== */
/* ===================================================== */

h1 {
    text-align: center;
    margin-bottom: 25px;
}


/* ===================================================== */
/* ======================== BILD ======================= */
/* ===================================================== */

.mainpic {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 10px;
}

.khitmabild_text {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 90px;
}

.khitmabild_instälningar {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 10px;
}


/* ===================================================== */
/* ======================== TEXT ======================= */
/* ===================================================== */

p {
    margin-bottom: 20px;
    font-size: 1rem;
    direction: rtl;
    text-align: right;
}

.stycke1 {
    font-weight: bold;
}


/* ===================================================== */
/* ================== NUMRERAD LISTA =================== */
/* ===================================================== */

ol {
    direction: rtl;
    text-align: right;
    list-style-position: inside;
}


/* ===================================================== */
/* ================== MOBILANPASSNING ================== */
/* ===================================================== */

@media (max-width: 600px) {

    .nav {
        flex-direction: row;      /* ÄNDRAD: ligger bredvid varandra */
        flex-wrap: wrap;          /* Tillåter radbrytning om det behövs */
        justify-content: center;  /* Centrerar länkarna */
        gap: 10px;
    }

    .main {
        width: 95%;
        padding: 20px;
        margin: 15px auto;
    }

    h1 {
        font-size: 1.5rem;
    }

}


/* ===================================================== */
/* ================= FORMULÄRET ======================== */
/* ===================================================== */

.contact-section {
    margin-top: 40px;
    padding: 25px;
    background: #e8f5e9;
    border-radius: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2e7d32;
    font-size: 1.6rem;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-section input,
.contact-section textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 5px rgba(46,125,50,0.3);
}

.contact-section .form-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-section button {
    background-color: #2e7d32;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-section button:hover {
    background-color: #1b5e20;
}

.contact-section button:disabled {
    background-color: #a5d6a7;
    cursor: not-allowed;
}

.form-status {
    font-weight: bold;
    font-size: 1rem;
    color: green;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-status.show {
    opacity: 1;
}
