@import url('https://fonts.googleapis.com/css2?family=Smooch+Sans:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('spacing.css');
@import url('color.pallet.css');

/* @import url('text.title.css'); */

* {
    margin: 0;
    padding: 0;
    box-sizing:  border-box;
}

/* iOS Safari Viewport Fix - Prevent layout issues on iPhone */
:root {
    --vh: 1vh; /* Will be updated via JavaScript for iOS */
}

html {
  font-family: Roboto, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1em;
  line-height: 1.2em;
  scroll-behavior: smooth;
}

body {
    display: grid;
    grid-template-columns: 1fr auto; /* 1fr auto; */
    width: 100%;
    margin: 0 auto;
    background-color: var(--bg-basic, #ffffff)!important;
    /* iOS Safari safe area support */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Prevent zoom on input focus (iOS Safari) */
input, textarea, select {
    font-size: 16px !important; /* iOS zooms if < 16px */
}

/* Fix for iOS rubber-band scrolling overflow */
html, body {
    overscroll-behavior-y: none;
}

h1,h2,h3,h4,h5,h6 {
    font-family: Roboto, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    letter-spacing: 1.25px;
    font-weight: 500;
    padding-left: 0.25rem;
}

h1 {
    color: var(--light-gray-100);
    font-size: 3em;
    font-size: clamp(2.25em, 5vw, 3em);
    margin: .75rem 0;
}

h2 {
    color: var(--light-gray-100);
    font-size: clamp(1.75em, 5vw, 2.75em);
    margin: .6rem 0;
}

h3 {
    color: var(--light-gray-100);
    font-size: clamp(1em, 5vw, 2em);
    margin: .5rem 0;
}

h4 {
    color: var(--light-gray-100);
    font-size: clamp(.75em, 5vw, 1.75em);
    margin: .45rem 0;
}
h5 {
    color: var(--light-gray-100);
    font-size: 1.25em;
    font-size: clamp(.75em, 5vw, 1.25em);
    margin: .25rem 0;
}
h6 {
    color: var(--light-gray-100);
    font-size: clamp(.65em, 5vw, 1em);
    margin: .2rem 0;
}

.breadcrumbs {
    margin: 0 auto;
    width: var(--large-width, 1200px);
    padding: 1rem 0 !important;
    font-size: 1rem;
    font-weight: 500 !important;
    color: var(--font-dark);
    position: relative;

    > a { 
        color: var(--font-dark, black);
        text-decoration: none;
        font-size: 1rem;

        &:hover {
            text-decoration: underline;
        }
    }
    > span {
        font-size: 1rem;
        a {
            font-size: 1rem;
            color: var(--font-dark, black);
            text-decoration: none;
            
            &:hover {
            text-decoration: underline;
        }
        }
    }
}

#top-nav {
    width: calc(100% - var(--scrollbar-width, 17px));
    height: fit-content;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    z-index: 10000;
    /* med hensyn til dropdown menu */
    overflow: visible; 
    display: block;
    box-sizing: border-box;
    color: var(--font-dark);
    background-color: var(--bs-white, #ffffff) !important;
    border-bottom: 1px solid var(--border-400);
    opacity: .975;
    
    /* iOS Safari fixes for position: fixed */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* iOS Safe area support */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);

    

    .top-nav-container {
        width: 100%;
        height: 100%;
        border-bottom: 1px solid var(--border-400);

        .top-nav-container-wrapper {
            width: var(--large-width, 1200px);
            margin: 0 auto;
            display: grid;
            grid-template-columns: auto 1fr 1fr;
            grid-gap: 1em;
            align-items: center;
            justify-content: center;
            padding: 1rem 0;
            overflow: visible;

            .home-link {
                display: flex;
                align-items: center;
                justify-content: flex-start;
                gap: 1rem;

                .logo {
                    display: flex;
                    align-items: center;
                    gap: 1em;

                    img {
                        width: auto;
                        /* height: 32px; */
                        height: 48px;
                        object-fit: contain;
                        object-position: center;
                    }
                }
            }

            .search-container {
                width: 100%; 
                display: inline-flex;
                align-items: flex-start;
                justify-content: flex-start;
                padding: 0 2rem;
                
                > label { margin-right: .5em; }
                
                .input-wrapper {
                    position: relative;
                    display: inline-block;
                }
                
                input[type="text"] {
                    padding: .5em 3.5em .5em 1.25em;
                    border: 1px solid #aaa; 
                    outline: none;
                    border-radius: .5em;
                    font-size: 1em;
                    min-width: 460px;
                    width: 100%;
                    background: none;
                    color: #212529;
                }
                
                button {
                    position: absolute;
                    right: 0;
                    top: 0;
                    bottom: 0;
                    padding: .5em 1.25em;
                    background: var(--secondary-green);
                    border: 1px solid var(--secondary-green); 
                    font-size: 1em;
                    border: none;
                    outline: none;
                    border-radius: 0 .5em .5em 0;
                    cursor: pointer;
                }
                button svg { padding: none;}
                button:hover { opacity: .8; }
            }
            .icon-container {
                position: relative;
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex-wrap: nowrap;
                flex-shrink: 1;
                padding-right: 2rem;
                overflow: visible;
                z-index: auto; /* Tillad dropdown at have højere z-index */
                /* font-style: italic; */
                color: var(--primary-green);

                .site-icon {
                    display: none;
                    font-weight: 600;
                    font-size: 1.5rem;
                }

                .notifications-wrapper {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 1rem;
                    

                    .svg-container {
                        position: relative;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: center;
                        width: auto;
                        height: auto;
                        gap: 1.5rem;

                        > a {
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            color: var(--font-dark);
                            text-decoration: none;
                            background-color: var(--primary-green);
                            padding: .4rem .5rem;
                            border-radius: var(--button-border-radius);
                            svg {
                                width: 24px;
                                height: 24px;
                                fill: var(--font-light);
                                transition: fill 0.2s ease;
                            }
                            span {
                                font-size: 0.875em;
                                color: var(--font-light);
                                margin-right: .5rem;
                            }
                            &:hover {
                                text-decoration: underline;
                            }
                        }

                        > svg {
                            width: 24px;
                            height: 24px;
                            fill: var(--font-dark);
                            transition: fill 0.2s ease;
                            
                        } 
                        .counter {
                            position: absolute;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            top: 6px;
                            right: -6px;
                            width: 16px;
                            height: 16px;
                            background-color: var(--primary-green);
                            color: var(--font-light);
                            font-size: 0.55em;
                            font-weight: 600;
                            border-radius: 50%;
                            cursor: pointer;
                        }
                    }           
                }
                /* Containeren skal være relativ, så knappen placeres i forhold til denne */
                .user-profile-wrapper {
                    position: relative;
                    display: inline-block; /* Sørger for at containeren kun fylder billedets størrelse */
                    width: 2.5rem;         /* Juster størrelsen efter behov */
                    height: auto;          /* Ændret fra 2.5rem til auto */
                    margin-left: 1rem;
                    z-index: 999999; /* Ekstremt høj z-index for at vises over alle elementer */
                }
                
                /* Profile dropdown trigger */
                .profile-dropdown-trigger {
                    display: flex;
                    align-items: center;
                    gap: 0.25rem;
                    cursor: pointer;
                    position: relative;
                    width: 2.5rem;
                    height: 2.5rem;
                }
                
                .dropdown-arrow {
                    position: absolute;
                    right: -8px;
                    bottom: -2px;
                    background-color: var(--bs-light);
                    border-radius: 50%;
                    padding: 2px;
                    transition: transform 0.3s ease;
                }
                
                .profile-dropdown-trigger:hover .dropdown-arrow {
                    transform: translateY(2px);
                }
                
                /* Profile Dropdown Menu */
                .profile-dropdown-menu {
                    position: absolute;
                    top: 100%;
                    right: 0;
                    margin-top: 10px;
                    background-color: var(--bs-dark);
                    border: 1px solid var(--border-700);
                    border-top-left-radius: none!important;
                    border-top-right-radius: none;
                    
                    border-bottom-left-radius: 12px;
                    border-bottom-right-radius: 12px;
                    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
                    min-width: 220px;
                    opacity: 0;
                    visibility: hidden;
                    transform: translateY(-10px);
                    transition: all 0.3s ease;
                    z-index: 9999999!important;
                    pointer-events: none;
                }
                
                .profile-dropdown-menu.show {
                    opacity: 1;
                    visibility: visible;
                    transform: translateY(0);
                    pointer-events: auto;
                }
                
                .profile-dropdown-menu a {
                    display: flex;
                    align-items: center;
                    gap: 0.85rem;
                    padding: 0.85rem 1.15rem;
                    color: var(--menu-font-color);
                    text-decoration: none;
                    font-weight: 500;
                    transition: all 0.2s ease;
                    position: relative;
                }
                
                .profile-dropdown-menu a::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 0;
                    bottom: 0;
                    width: 6px;
                    background-color: var(--secondary-green);
                    transform: scaleY(0);
                    transition: transform 0.2s ease; 
                }
                
                .profile-dropdown-menu a:last-child {
                    border-top: 1px solid var(--border-700);
                }
                
                .profile-dropdown-menu a:hover {
                    background-color: var(--primary-green);
                    color: var(--bs-light);
                    padding-left: 1.35rem;
                }
                
                .profile-dropdown-menu a:hover::before {
                    transform: scaleY(1);
                }
                
                .profile-dropdown-menu a:hover svg {
                    fill: var(--bs-light);
                    transform: scale(1.1);
                }
                
                .profile-dropdown-menu a:first-child {
                    border-top-left-radius: none;
                    border-top-right-radius: none;
                }
                
                .profile-dropdown-menu a:last-child {
                    border-bottom-left-radius: 12px;
                    border-bottom-right-radius: 12px;
                }
                
                .profile-dropdown-menu svg {
                    flex-shrink: 0;
                    transition: all 0.2s ease;
                    fill: var(--menu-font-color);
                }

                /* Gør billedet rundt og sørg for det fylder containeren */
                .profile-img {
                    width: 100%;
                    height: 100%;
                    margin: 0 auto; 
                    outline: none;
                    object-fit: cover;    /* Sikrer at billedet ikke bliver strukket */
                    display: block;
                    border: 1px solid var(--border-600);
                    border-radius: 50%;   /*Gør billedet rundt  */
                } 

                /* Placer knappen ovenpå billedet */
                .dropdown-btn {
                    position: absolute;
                    bottom: 0;            /* Placer i bunden */
                    right: -1rem;             /* Placer til højre */
                    
                    width: 24px;
                    height: 24px;

                    /* Styling af selve knappen */
                    background: var(--primary-green-low);
                    border: 1px solid var(--border-700);
                    border-radius: 50%;

                    /* padding: 5px; */
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center; 
                    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
                    
                    /* Z-index sikrer den ligger øverst */
                    z-index: 10000;

                    svg { 
                        fill: var(--bs-gray-600) !important;
                    }
                }


                /* Valgfri: Hover effekt */
                /* .dropdown-btn:hover {
                    background-color: #f0f0f0;
                } */

                
                > img:hover {
                    opacity: .8;
                    cursor: pointer;
                }
                > svg {
                    margin: 0 .25em;
                    width: 2.5em;
                    height: 2.5em;
                    padding: .5em;
                    outline: none;
                    border-radius: 50%;
                    fill: var(--bs-gray-500);
                }
                > svg:hover {
                    fill: var(--bs-gray-100);
                    outline-color: #fff;
                    /* border-radius: 50%; */
                    background-color: var(--border-700);
                    cursor: pointer;
                }
            }
        }
    }
}

/* For at bruge Font Awesome-ikonet */
.fa-search {
    color: var(--bs-gray-400);
}

#main-content {
    display: block;
    width: 100% !important;
    min-height: calc(100vh - var(--top-nav-height, 164.2px));
    background-color: var(--bs-white);
    overflow-x: hidden;
    padding: 0!important;
    padding-top: var(--top-nav-height, 164.2px)!important;

    #read-more {
        color: var(--primary-green);
        text-decoration: none;
        font-weight: 500;
        margin: 0;
        padding-top: 0rem;
    }
}

.empty-place {
    width: calc(100vw - 17px);
    height: var(--top-nav-height, 164.2px);
    background-color: transparent;
}
#main-content .hero-picture {
    background-image: url("/app/static/media/pictures/background/en_bulbul_small_size.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: var(--hero-picture-height) !important;
    padding-top: 0!important;
    overflow: hidden;

    .welcome-content {
        position: relative;
        top: 0;
		left: 0px !important; 
        max-width: 100% !important;
        height: 100%;
        margin: 0 auto;
        box-sizing: border-box; /* Meget vigtigt! */
        /* background-color: red; */
        z-index: 1;

        .container-header .logo {
            display: flex;
            align-items: center;
            padding-left: -1rem;
        } 

        h3 { 
            position: absolute;
            left: calc(50% - 200px);
            top: 40%;
            transform: translate(-50%, -50%);
            /* margin-top: -1.75rem; */
            font-weight: 400;
            letter-spacing: 2.25px;
            color: var(--light-gray-text-100); 
        }
        
        h5 { 
            /* padding: 0 .5rem; */
            position: absolute;
           left: calc(50% - 200px);
            top: 55%;
            transform: translate(-50%, -50%);
            color: var(--light-gray-text-100); 
            letter-spacing: 1.25px;
            font-weight: 400;
        }

        .quick-link {
            width: 100%!important;
			margin-top: 1rem !important;
            display: inline-flex;
    		justify-content: flex-start;
            /* background-color: red; */
        }
        .quick-link a {
            display: flex;
            align-items: center;
            text-decoration: none;
			padding: .75em 1em;
            background-color: none;
            background-color: var(--primary-green);
            /* background-color: var(--secondary-green); */
            margin-right: 12px;
            border-radius: var(--button-border-radius);
            color: var(--font-light);
            outline: 1px solid var(--secondary-green);            
        }

        .quick-link a:hover {
            opacity: .8;
        }
		.quick-link a svg {
			padding-right: 6px;
		}

        .leading-text { 
            margin: 2rem 0;
            display: flex;
            justify-content: flex-start;
            align-items: center; 
            margin-bottom: 1em;
            
        }
        .leading-text hr {
            width: 2rem;
            height: 1px;
            border-bottom: 1px solid var(--light-gray-100); 
            margin-top: 1rem;
            margin-right: .5em;
        }
        .leading-text span {
            font-family: 'Roboto', 'Smooch Sans', sans-serif;
            font-size: .951em;
            background-color: transparent;
            color: var(--font-light);
            line-height: 1.75rem;
            font-weight: 400;
        }

        
    }
}

#main-content > #read-more > .container  {
    padding: 1rem 1.75em; 
    p {
        padding: .25em;
        
        font-family: "Roboto", serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
        font-variation-settings: "wdth" 100;
        color: var(--light-gray-text); 
    }
}
.invisible {
    display: block;
    max-height: 0px; 
    overflow: hidden;
}

#toggle-btn {
  margin-left: auto;
  padding: .75em;
  border: none;
  border-radius: 5px;
  background: none;
  cursor: pointer;
  svg {
    transition: rotate 150ms ease;
  }
}
#toggle-btn:hover {
    background-color: var(--bs-gray-600);
}
/* .stickey {
    position: sticky;
    top: 0px!important;
    align-self: start;
    transition: 300ms ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1000;
} */

.fixed-nav {
    position: fixed;
    top: 0px!important;
    left: 0 !important;
    align-self: start;
    transition: 300ms ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1000;
}


/* sidebar styling */
#sidebar {
    display: none;
    box-sizing: border-box;
    /* Only apply full height on desktop - mobile uses bottom bar */
    width: 300px;
    background-color: var(--primary-gray);
    border-right: 1px solid var(--border-700);
    color: var(--bs-gray-400);

    /* we want a sticky sidebar */
    /* position: fixed;
    top: 0px!important;
    align-self: start;
    transition: 300ms ease-in-out;
    overflow: hidden;
    white-space: nowrap; */
}

#sidebar.close {
    padding: 5px;
    width: 55px;
}

#sidebar ul {
    list-style: none;
}

#sidebar >ul >li:first-child {
    height: 60px;
    display: flex;
    justify-content: flex-end;
    background-color: var(--primary-green);
    margin-bottom: 1rem;
}

#sidebar ul li.active a {
    color: var(--bs-light);
    svg { 
        fill: var(--bs-light); 
    }
}
#sidebar a, #sidebar .dropdown-btn {
    border-radius: .5em;
    padding: .75em;
    text-decoration: none;
    color: var(--bs-gray-400);
    display: flex;
    align-items: center;
    gap: .75em;
}
#sidebar .logo {
    display: flex;
    align-items: center;
    gap: .75em;
}

.dropdown-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

#sidebar svg {
  flex-shrink: 0;
  fill: var(--bs-gray-400);
}

#sidebar a span, #sidebar .dropdown-btn span {
  flex-grow: 1;
}
#sidebar a:hover, #sidebar .dropdown-btn:hover {
  background-color: var(--bs-gray-600);
  background-color: var(--primary-green);
  border-radius: 0;
}

#sidebar .sub-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: 300ms ease-in-out;
  padding-left: 2em;
  > div {
    overflow: hidden;
  }
}
#sidebar .sub-menu.show {
  grid-template-rows: 1fr;
  overflow-y: hidden;
}
/* rotate the arrow at sub-menu when the user click the submenu */
.dropdown-btn svg {
  transition: 300ms ease;
}

.rotate svg:last-child{
  rotate: 180deg;
  /* transition: 300ms ease-in-out; */
}

/* css for input text */
input[type="text"] {
  padding: .5em;
  border: 1px solid var(--bs-gray-600);
  border-radius: .25em;
  background-color: var(--bs-gray-800);
  color: var(--bs-light);
}
input[type="text"]::placeholder {
  color: var(--bs-gray-500);
}
/* end for css for input text */

/* css for buttons */
button {
  padding: .5em 1em;
  border: none;
  border-radius: .25em;
  background-color: var(--primary-green);
  color: var(--light-gray-100);
  cursor: pointer;
}
button:hover {
  opacity: .8;
}
/* end for css for buttons */

/* .under-construction-wrapper {
    position: relative;
    top: 0;
    left: 0;
    padding: 0 !important;
    margin: 0 !important;

    background-image: url("/app/static/media/pictures/background/vaeverfugl_smal_size.png");
    background-size: cover; 
    background-position: 50% 50%;
    background-repeat: no-repeat;
    
    width: 100vw;
    height: calc(100vh - 60px);
    overflow: hidden;
}    

.construct-container {
    position: absolute;
    bottom: 120px;
    
    width: 100%;
    padding: 10px 0 !important;
    margin: 0 !important;
    overflow: hidden;

    p { 
        padding: .25rem 2rem !important;
        font-size: 1.15em;
        color: var(--bs-light) !important;
        font-weight: 400;
    } 
    span {
        padding: .25rem 2rem !important;
        font-size: 1em;
        color: var(--bs-light) !important;
        font-weight: 300;
    }
    span a {
        color: var(--bs-secondary-green);
        text-decoration: under-line;
        font-weight: 500;
    }
}*/ 

/* Responsive design for larger iPhones (iPhone 14 Pro Max, 15 Plus) */
@media (max-width: 430px) {
    /* Hide logo, show "fuglia" text on all iPhones */
    .home-link {
        display: none !important;
    }
    
    .site-icon {
        display: flex !important;
        position: absolute !important;
        left: 0.75rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: var(--primary-green, #447904) !important;
        z-index: 100 !important;
    }
}

/* Responsive design for modern iPhones (iPhone 12/13/14) */
@media (max-width: 390px) {
    body {
        grid-template-columns: 1fr !important;
        width: 100vw !important;
        height: auto !important; /* Allow scrolling */
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    /* iPhone specific: Hide logo, show text "fuglia" */
    .home-link {
        display: none !important;
    }
    
    .site-icon {
        display: flex !important;
        position: absolute !important;
        left: 0.75rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: var(--primary-green, #447904) !important;
    }
    
    main {
        padding: 0rem 0.5rem 3.75rem 0.5rem;
    }
    .container {
        max-width: 100vw;
        border: none;
        margin: 0!important;
        padding: 0.75rem !important;
        /* background-color: var(--middle-light-gray); */
    }
    
    /* Fix p tag padding for iPhone */
    p {
        padding: 0.25rem 0.75rem !important;
        font-size: 1em !important;
        line-height: 1.5em !important;
    }
    
    h1 {
        padding: 0.5rem 0.75rem !important;
    }
    
    h2, h3, h4, h5 {
        padding: 0.25rem 0.75rem !important;
    }
    
    #main-content > #read-more > .container {
        padding: 0.75rem !important;
    }
    
    #main-content > #read-more > .container p {
        padding: 0.25rem 0.5rem !important;
    }
    
    #main-content .hero-picture  {
        height: var(--hero-picture-height)! important;
        background-position: center;
        background-size: cover;
        overflow-x: hidden;
        padding: 0 !important;
        
        /* Fix quick-link button for iPhone */
        .quick-link a {
            display: -webkit-box !important;
            display: -webkit-flex !important;
            display: flex !important;
            -webkit-box-align: center;
            -webkit-align-items: center;
            align-items: center;
            background-color: var(--primary-green) !important;
            color: var(--light-gray-100) !important;
            padding: 0.75em 1em !important;
            border-radius: 0.75em !important;
        }
    }
    
    /* Extra specific rules for iPhone */
    #main-content .hero-picture .welcome-content .leading-text span {
        color: #dee2e6 !important;
        -webkit-text-fill-color: #dee2e6 !important;
    }
    
    #main-content .hero-picture .welcome-content .quick-link a {
        background-color: var(--primary-green) !important;
        padding: 1rem 2em !important;
        color: #dee2e6 !important;
         border-radius: 0.75em !important;
        -webkit-text-fill-color: #dee2e6 !important;
        text-decoration: none !important;
    }

    .top-nav-container {
        width: 100% !important;
        height: 100% !important;
        grid-template-columns: 1fr !important;
        overflow: visible;
        color: var(--font-dark) !important;

        .home-link {
            display: none!important;
        }
    }
    
    /* #main-content .hero-picture .welcome-content .quick-link a span {
        color: var(--light-gray-100) !important;
        -webkit-text-fill-color: var(--light-gray-100) !important;
    } */
}

/* Responsive design for smaller screens */
/* @media (max-width: 320px) { */
@media (max-width: 320px) {
    body {
        grid-template-columns: 1fr !important;
        width: 100vw !important;
        height: auto !important; /* Allow scrolling */
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    /* iPhone SE specific: Hide logo, show text "fuglia" */
    .home-link {
        display: none !important;
    }
    
    .site-icon {
        display: flex !important;
        position: absolute !important;
        left: 0.5rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        color: var(--primary-green, #447904) !important;
    }
    
    main {
        padding: 0rem 0.5rem 3.75rem 0.5rem;
    }
    .container {
        max-width: 100vw;
        border: none;
        margin: 0!important;
        
        padding: 0.5rem !important;
        /* background-color: var(--middle-light-gray); */
    }
    
    p {
        padding: 0.25rem 0.5rem !important;
        font-size: 1em !important;
        line-height: 1.4em !important;
    }
    
    #main-content > #read-more > .container {
        padding: 0.5rem !important;
    }
    
    #main-content > #read-more > .container p {
        padding: 0.25rem 0.25rem !important;
    }
    
    h1 {
        padding: 0.5rem 0.5rem !important;
        font-size: 1.5em !important;
    }
    
    h2 {
        padding: 0.5rem 0.5rem !important;
    }
    
    #main-content .hero-picture  {
        height: var(--hero-picture-height) !important;
        background-position: center;
        background-size: cover;
        overflow-x: hidden;
        padding: 0 !important;
        margin: 0 !important;
        
        .welcome-content {
            position: relative;
            left: 0 !important;
            top: 0 !important;
            width: 100vw !important;
            height: 100% !important;
            box-sizing: border-box !important;
        }

        .leading-text {
            margin: 1.5rem 0 !important;
            padding: 0.75rem 0 !important;
        }

        .leading-text span {
            color: var(--font-light) !important;
            -webkit-text-fill-color: var(--font-light) !important;
            padding: 0.5rem 0 !important;
            line-height: 1.75rem !important;
            display: block !important;
        }

        .welcome-content .quick-link {
            margin-top: 2rem !important;
            width: 100% !important;
        }

        .welcome-content .quick-link a {
            background-color: var(--primary-green) !important;
            color: var(--font-dark) !important;
            -webkit-text-fill-color: var(--font-dark) !important;
            padding: 0.875em 1.5em !important;
            min-height: 48px !important;
            font-size: 1.05em !important;
            font-weight: 500 !important;
            border-radius: 0.5em !important;
            box-sizing: border-box !important;
            gap: 0.5em !important;
            max-width: -webkit-fit-content !important;
            max-width: -moz-fit-content !important;
            max-width: fit-content !important;
            display: -webkit-box !important;
            display: -webkit-flex !important;
            display: -ms-flexbox !important;
            display: flex !important;
            -webkit-box-align: center !important;
            -webkit-align-items: center !important;
            -ms-flex-align: center !important;
            align-items: center !important;
        }
        .quick-link a svg {
            fill: var(--font-light) !important;
        } 
    }

    #main-content .hero-picture .welcome-content .leading-text span {
        color: #dee2e6 !important;
        -webkit-text-fill-color: #dee2e6 !important;
    }
    
    #main-content .hero-picture .welcome-content .quick-link a {
        background-color: var(--primary-green) !important;
        color: #dee2e6 !important;
        padding: .75rem 1.25rem;
        color: #dee2e6 !important;
        -webkit-text-fill-color: #dee2e6 !important;
    } 

    .top-nav-container {
        width: 100% !important;
        height: 100% !important;
        grid-template-columns: 1fr !important;
        overflow: visible;
        color: var(--font-dark) !important;

        .home-link {
            display: none!important;
        }
    }
    
    .icon-container {
        position: relative;
        width: 100vw !important;
        align-items: center;
        justify-content: flex-end !important;
        flex-wrap: nowrap;

        padding-right: 1rem !important;
        overflow: visible;
        z-index: auto; /* Tillad dropdown at have højere z-index */
        /* color: var(--primary-green); */
    
        .site-icon {
            position: absolute;
            top: inherit !important;
            /* left: .75rem !important; */
            left: 0rem !important;
            font-size: 1.5rem !important;
            display: flex !important;
            font-weight: 700 !important;
            align-items: flex-start !important;
            justify-content: flex-start !important;
            gap: .5em;
            max-width: max-content;
        }
    }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {

    .breadcrumbs {
        width: 100vw!important;
        /* padding-left: 0.75rem !important; */
        padding-left: .75rem !important;
        padding-top: 5rem !important;

        margin-bottom: .5rem;
        font-size: 0.95rem !important;
    }
    
    body {
        grid-template-columns: 1fr !important;
        overflow-x: hidden!important;
        min-height: -webkit-fill-available;
        min-height: 0 !important;
        height: auto !important; /* Allow scrolling on mobile */
    }
    main {
        padding: 0rem 0.75rem 3.75rem 0.75rem;
    }
    .container {
        max-width: 100vw !important;
        border: none;
        margin: 0!important;
        
        padding: 0.75rem !important;
        /* background-color: var(--middle-light-gray); */
    }

    #top-nav {
        position: fixed;
        top: 0px!important;
        left: 0 !important;
        width: 100vw !important;
        z-index: 1000;
    }
    .top-nav-container {
        width: 100vw !important;
        height: 100% !important;
        grid-template-columns: 1fr !important;
        overflow: visible;
        color: var(--font-dark) !important;

        .top-nav-container-wrapper {
            width: 100% !important;
            grid-template-columns: 1fr !important;
            padding: 0.75rem !important;
        }

        .home-link {
            display: none!important;
        }
    
        svg.chevron {
            display: none !important;
        }
        .icon-container {
            position: relative;
            width: 100% !important;
            align-items: center;
            justify-content: flex-end !important;
            flex-wrap: nowrap;

            padding-right: .5rem !important;
            overflow: visible;
            z-index: auto; /* Tillad dropdown at have højere z-index */
            /* color: var(--primary-green); */
        
            .site-icon {
                position: absolute!important;
                top: inherit !important;
                left: 0rem !important;
                font-size: 1.5rem !important;
                display: flex !important;
                font-weight: 700 !important;
                align-items: flex-start !important;
                justify-content: flex-start !important;
                gap: .5em;
                max-width: max-content;
            }
        }
    
        .notifications-wrapper {
            display: flex!important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0rem;

            .svg-container.about-link { display: none !important; }

            .svg-container {
                position: relative;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                width: auto !important;
                height: auto !important;
                gap: .5rem !important;

                > a {
                    display: flex !important;
                    align-items: center !important;
                    justify-content: center !important;
                    color: var(--font-dark) !important;
                    text-decoration: none !important;
                    background-color: unset !important; 

                    svg {
                        width: 24px !important;
                        height: 24px !important;
                        fill: var(--font-dark) !important;
                        transition: fill 0.2s ease !important;
                    }
                    span {
                        font-size: 1rem !important;
                        color: var(--font-dark) !important;
                        margin-right: .5rem !important;
                    }
                    &:hover {
                        text-decoration: underline !important;
                    }
                }

                > svg {
                    width: 24px !important;
                    height: 24px !important;
                    fill: var(--font-dark) !important;
                    transition: fill 0.2s ease !important;
                }
    
                .counter {
                    position: absolute;
                    display: flex !important;
                    align-items: center !important;
                    justify-content: center !important;
                    top: 6px !important;
                    right: 0px !important;
                    width: 16px !important;
                    height: 16px !important;
                    background-color: transparent !important;
                    color: var(--font-light) !important;
                    font-size: 0.55em !important;
                    font-weight: 600 !important;
                    border-radius: 50% !important;
                    cursor: pointer !important;
                }
            }           
        }
    }
    .mega-nav-bottom-wrapper {
        display: none !important;
    }
    
    /* Skjul dropdown menu på mobil */
    .dropdown-arrow {
        display: none !important;
    }
    
    .profile-dropdown-menu {
        display: none !important;
    }
    
    /* Fix p tag padding for mobile */
    p {
        padding: 0.25rem 0.75rem !important;
        font-size: 1.05em !important;
        line-height: 1.5em !important;
    }
    
    #main-content .hero-picture  {
        width: 100vw !important;
        height: var(--hero-picture-height) !important;
        background-position: center;
        background-size: cover;
        overflow-x: hidden;
        
        .welcome-content {
            position: relative;
            left: 0 !important;
            top: 0 !important;
            width: 100vw !important;
            height: 100% !important;
            box-sizing: border-box !important;
            /* background-color: red !important; */

            > h3 {
                position: absolute;
                left: 50% !important;
                top: 35%;
                width: 100vw !important;
                transform: translate(-50%, -50%);
                font-size: 1.25em !important;
                letter-spacing: normal;
                /* color: yellow; */
                text-align: center !important;
            }
            > h5 {
                position: absolute;
                width: 100vw !important;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                font-size: .985em !important;
                letter-spacing: normal;
                /* color: yellow; */
                text-align: center !important;
            }
        }
       

        /* Fix text color for mobile */
        .leading-text {
            margin: 1.5rem 0 !important;
            padding: 0.75rem 0 !important;
        }

        .leading-text span {
            color: var(--font-light) !important;
            -webkit-text-fill-color: var(--font-light) !important;
            padding: 0.5rem 0 !important;
            line-height: 1.75rem !important;
            display: block !important;
        }

        /* Fix quick-link button for mobile */
        .welcome-content .quick-link {
            margin-top: 2rem !important;
            width: 100% !important;
            /* background-color: red !important; */
        }

        .welcome-content .quick-link a {
            background-color: var(--primary-green) !important;
            color: var(--font-dark) !important;
            -webkit-text-fill-color: var(--font-dark) !important;
            padding: 0.875em 1.5em !important;
            min-height: 48px !important;
            font-size: 1.05em !important;
            font-weight: 500 !important;
            border-radius: 0.5em !important;
            box-sizing: border-box !important;
            gap: 0.5em !important;
            max-width: -webkit-fit-content !important;
            max-width: -moz-fit-content !important;
            max-width: fit-content !important;
            display: -webkit-box !important;
            display: -webkit-flex !important;
            display: -ms-flexbox !important;
            display: flex !important;
            -webkit-box-align: center !important;
            -webkit-align-items: center !important;
            -ms-flex-align: center !important;
            align-items: center !important;
        }
        .quick-link a svg {
            fill: var(--font-light) !important;
        } 
    }

    /* Extra aggressive fixes for iPhone 6+ with hardcoded colors */
    #main-content .hero-picture .welcome-content .leading-text span {
        color: #dee2e6 !important;
        -webkit-text-fill-color: #dee2e6 !important;
    }
    
    #main-content .hero-picture .welcome-content .quick-link a {
        background-color: var(--primary-green) !important;
        color: #dee2e6 !important;
        padding: .75rem 1.25rem;
        color: #dee2e6 !important;
        -webkit-text-fill-color: #dee2e6 !important;
    }
    
    /* Fix sidebar for iPhone 6/7/8 Plus */

    #sidebar .admin-section {
        display: none !important;
    }

    #sidebar {
        height: 60px !important;
        width: 100% !important;
        border-right: none !important;
        border-top: 1px solid var(--bs-dark) !important;
        padding: 0 !important;
        position: fixed !important;
        top: unset !important;
        bottom: 0 !important;
        z-index: 10000 !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
    }
    
    #sidebar ul {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-orient: horizontal !important;
        -webkit-box-direction: normal !important;
        -webkit-flex-direction: row !important;
        flex-direction: row !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-box-pack: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        overflow-x: auto !important;
        touch-action: pan-x !important;
    }
    
    #sidebar ul li { 
        height: 100% !important;
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
        min-width: 60px !important;
        width: 60px !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
    }
    
    #sidebar ul a, 
    #sidebar ul .dropdown-btn {
        width: 60px !important;
        height: 60px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-pack: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
    }
    
    /* Hide sub-menu by default */
    #sidebar .sub-menu {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Show sub-menu when active */
    #sidebar .sub-menu.show {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        visibility: visible !important;
        position: fixed !important;
        bottom: 60px !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background-color: var(--bs-gray-700) !important;
        border-top: 1px solid var(--bs-dark) !important;
        -webkit-box-pack: start !important;
        -webkit-justify-content: flex-start !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        z-index: 999 !important;
    }
    
    #sidebar .sub-menu.show div {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-orient: horizontal !important;
        -webkit-flex-direction: row !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        padding: 0 0.5rem !important;
    }
    
    #sidebar .sub-menu.show li {
        display: inline-flex !important;
        min-width: auto !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    #sidebar .sub-menu.show a,
    #sidebar .sub-menu.show button.dropdown-btn {
        width: auto !important;
        padding: 0.75em 1.25em !important;
        white-space: nowrap !important;
        background-color: var(--bs-gray-600) !important;
        border-radius: 0 !important;
        color: var(--bs-light) !important;
        font-size: 0.95em !important;
    }
    
    /* Mobile back button styling */
    #sidebar .mobile-back-btn {
        display: none !important;
    }
    
    #sidebar .sub-menu.show .mobile-back-btn {
        display: inline-flex !important;
        min-width: auto !important;
        width: auto !important;
        height: 60px !important;
        background-color: var(--primary-green) !important;
        border-radius: 0 !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #sidebar .sub-menu.show .mobile-back-btn button {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-box-pack: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        width: 60px !important;
        height: 60px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        cursor: pointer !important;
    }
    
    #sidebar .sub-menu.show .mobile-back-btn button svg {
        fill: var(--bs-light) !important;
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
    }
    
    #sidebar .sub-menu.show .mobile-back-btn button span {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Hide all menu text and only keep icons */
    #sidebar ul li span {
        display: none !important;
        visibility: hidden !important;
    }
    
    #sidebar ul .dropdown-btn span {
        display: none !important;
        visibility: hidden !important;
    }
    
    #sidebar .dropdown-btn svg:last-child {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Show text in active submenus */
    #sidebar .sub-menu.show a span,
    #sidebar .sub-menu.show button span {
        display: inline-block !important;
        visibility: visible !important;
    }
    
    /* Hide dropdown arrows in mobile submenu */
    #sidebar .sub-menu.show .dropdown-btn svg:last-child {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ensure only first SVG (icon) is hidden in submenu dropdown buttons */
    #sidebar .sub-menu.show .dropdown-btn svg:first-child {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Hide logo element completely on mobile */
    #sidebar ul li:first-child {
        display: none !important;
    }
    
    #sidebar .sub-menu .horizon-line {
        display: none !important;
    }
}

@media (max-width: 986px) {
    body {
        grid-template-columns: 1fr !important;
        overflow-x: hidden !important;
        height: auto !important; /* Allow scrolling on mobile */
    }
    main {
        padding: 0rem 1rem 3.75rem 1rem;
    }
    .container {
        border: none;
        padding: 0 1rem !important;

    }

    #top-nav { 
        display: grid;
        grid-template-columns: 1fr !important; 
        min-height: 60px !important;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex; /* Flexbox er langt mere stabilt på iOS 12 end Grid */
        -webkit-box-pack: end;
        -webkit-justify-content: flex-end!important;
        justify-content: flex-end !important;
    }
    #top-nav .search-container { 
        display: -webkit-box;
        display: -webkit-flex;
        display: none !important;
    }
    
    #top-nav .icon-container {
        width: 100% !important;

        display: -webkit-box;
        display: -webkit-flex;
        display: flex;

        -webkit-box-pack: end;
        -webkit-justify-content: flex-end;
        justify-content: flex-end;
        
        /* VIGTIGT: Forhindrer billedet i at "stretche" til fuld størrelse */
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center; 
        padding-right: 1rem; 
        box-sizing: border-box;
    }
    

    .notifications-wrapper {
        display: flex!important;
        align-items: center !important;
        justify-content: center !important;

        .svg-container {
            position: relative;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            width: 2.5rem !important;
            height: auto !important;
            gap: 1rem !important;

            > svg {
                width: 24px !important;
                height: 24px !important;
                fill: var(--bs-gray-500) !important;
                transition: fill 0.2s ease !important;
            } 
            .counter {
                position: absolute;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                top: 10px !important;
                right: -4px !important;
                width: 16px !important;
                height: 16px !important;
                /* background-color: var(--primary-green) !important; */
                background-color: transparent !important;
                color: var(--font-light) !important;
                font-size: 0.65em !important;
                font-weight: 600 !important;
                border-radius: 50% !important;
            }
        }           
    }
    
    .user-profile-wrapper {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important; /* Tvinger minimumsstørrelse */
        min-height: 40px !important;
        overflow: hidden;
        border-radius: 50%;
        display: block;
        -webkit-flex-shrink: 0; /* Forhindrer uønsket skalering */
        flex-shrink: 0;
    }
            
    .profile-img {
        /* Brug max-width/height for at tvinge det ind i de 40px */
        max-width: 100% !important;
        max-height: 100% !important;
        width: 40px !important;
        height: 40px !important;
        display: block;
        object-fit: cover; /* Bevarer proportioner */
    }

    #sidebar {
        height: 60px;
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--bs-dark);
        padding: 0;
        position: fixed;
        top: unset!important;
        bottom: 0!important;
        z-index: 10000;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;

        ul {
            padding: 0;
            display: grid;
            grid-auto-columns: 60px;
            grid-auto-flow: column;
            -webkit-box-align: center;
            -webkit-align-items: center;
            align-items: center;
            overflow-x: auto;
            touch-action: pan-x;
        }

        ul li { height: 100%; }
        ul a, ul .dropdown-btn {
            width: 60px;
            height: 60px;
            padding: 0;
            border-radius: 0;
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -webkit-align-items: center;
            align-items: center;
        }
        #sidebar .sub-menu .horizon-line {
            display: none;
            border-top: none;
            border-bottom: none;
        }

        ul li .sub-menu.show {
            position: fixed;
            bottom: 60px;
            left: 0px;
            box-sizing: border-box;
            height: 60px;
            width: 100%;
            background-color: var(--bs-gray-700);
            border-top: 1px solid var(--bs-dark);
            display: flex;
            justify-content: center;
            overflow-y: auto;
        
            div { 
                overflow-x: auto;
            }
            li { display: inline-flex; }
            a {
                box-sizing: border-box;
                padding: 1em;
                width: auto;
                justify-content: center;
            }
        }

        /* we remove all the menu text and only keep the icons */
        ul li span, ul li:first-child, .dropdown-btn svg:last-child{
            display: none;
        }
    }
}

@media (max-width: var(--std-width, 1024px)) {
    #top-nav { 
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100% !important;
        padding: 0;
        margin: 0;
        
        .search-container { 
            width: 100%;
            padding: 0 1rem;
            justify-content: flex-start;
        }
        
        .search-container > form { 
            width: 100%;
        }
        
        .search-container input[type="text"] {
            min-width: 200px;
            width: 100%;
            color: #212529;
        }
    }
    #main-content .hero-picture  {
        height: var(--hero-picture-height) !important;
        background-position: center;
        background-size: cover;
        overflow-x: hidden;
        

        /* Fix text color for mobile */
        .leading-text {
            margin: 1.5rem 0 !important;
            padding: 0.75rem 0 !important;
        }

        .leading-text span {
            color: var(--font-light) !important;
            -webkit-text-fill-color: var(--font-light) !important;
            padding: 0.5rem 0 !important;
            line-height: 1.75rem !important;
            display: block !important;
        }

        /* Fix quick-link button for mobile */
        .welcome-content .quick-link {
            margin-top: 2rem !important;
            width: 100% !important;
            /* background-color: red !important; */
        }

        .welcome-content .quick-link a {
            background-color: var(--primary-green) !important;
            color: var(--font-dark) !important;
            -webkit-text-fill-color: var(--font-dark) !important;
            padding: 0.875em 1.5em !important;
            min-height: 48px !important;
            font-size: 1.05em !important;
            font-weight: 500 !important;
            border-radius: 0.5em !important;
            box-sizing: border-box !important;
            gap: 0.5em !important;
            max-width: -webkit-fit-content !important;
            max-width: -moz-fit-content !important;
            max-width: fit-content !important;
            display: -webkit-box !important;
            display: -webkit-flex !important;
            display: -ms-flexbox !important;
            display: flex !important;
            -webkit-box-align: center !important;
            -webkit-align-items: center !important;
            -ms-flex-align: center !important;
            align-items: center !important;
        }
        .quick-link a svg {
            fill: var(--font-light) !important;
        } 
    }
}

