/* ===== SIDHUVD ===== */
#sidhuvud1 {
    padding: 5px 10px;
    background: transparent;
}

.logga-info {
    display: block;
    margin-top: 2px;
    font-weight: bold;
    font-size: 0.9em;
    color: #0D159B; /* valfri färg */
}

#sidhuvud2 {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    position: relative; /* referens för popup-meny */
    background-color: transparent;
    z-index: 1000;
    padding: 5px 10px;
}

#sidhuvud2 img {
    display: block;
    cursor: pointer;
}

/* ===== DESKTOPMENY (popup över kolumner) ===== */
#kolumn1 {
    display: none;
    position: absolute;
    top: 100%;                  /* direkt under sidhuvud2 */
    left: 0;
    width: 200px;
    background: linear-gradient(to bottom, #8288E5, #ddd);
    padding: 4px 6px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    flex-direction: column;
    z-index: 3000;
}

#kolumn1 a.stajlamenytext {
    display: block;
    margin-bottom: 2px;
    padding: 2px 4px;
    border: none;
    color: #333;
}

#kolumn1 a.stajlamenytext:hover {
    background-color: #ddd;
}

/* ===== LAYOUT ===== */
#layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-image: url('/restricted/UserFiles/file/FrontalBilder/helsingborg.jpg');
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    min-height: 100vh;
}

#kolumnContainer {
    display: flex;
    flex-direction: column;    /* kolumner staplade under ikoner */
    gap: 20px;
    align-items: center;       /* centrera horisontellt */
    margin-top: 10px;          /* avstånd från ikoner */
}

/* ===== KOLUMN2 ===== */
#kolumn2 {
    width: 100%;                /* begränsad bredd på desktop */
    max-width: 900px;          /* valfri maxbredd */
    height: 500px;             /* kan justeras */
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertikal centrering */
    align-items: center;       /* horisontell centrering */
    padding: 10px;
    color: #646B7A;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-image: linear-gradient(#81BEF2, #ffffff);
    text-align: center;
    overflow: hidden;          /* förhindrar att bilder sticker ut */
}

#kolumn2 img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

/* ===== KOLUMN3 ===== */
#kolumn3 {
    width: 30%;                /* begränsad bredd */
    max-width: 500px;
    padding: 10px;
    color: #646B7A;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-image: linear-gradient(#F0EFEF, #ffffff);
}

/* ===== MOBILMENY ===== */
#mobileMenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 90%;
    background: linear-gradient(to bottom, #8288E5, #ddd);
    padding: 8px 12px;
    border-radius: 0 0 12px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 2000;
    border-bottom: none;
}

#mobileMenu.open {
    display: flex;
}

#mobileMenu a {
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-bottom: none;
    line-height: 1.2;
}

#mobileMenu a:hover {
    background: #666;
    color: #fff;
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 768px) {
    #kolumnContainer {
        flex-direction: column;
        gap: 10px;
    }

    #kolumn2,
    #kolumn3 {
        width: 100%;
        padding: 10px;
    }

    #kolumn3 {
        flex: 2.5;        
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}
