/*
 *   Important Information about this CSS File
 *
 * - Do not delete or rename this file, if you do not use it leave it blank (delete
 *   everything) and the file will be skipped when you enable Production Mode in
 *   the Global theme settings.
 *
 * - Read the _README file in this directory, it contains useful help and other information.
 */

/* Mobile Burger Menu Styles for Tablet Portrait */
.mobile-menu-toggle .burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* Burger animation when active */
.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu container positioning */
#menu-bar {
    position: relative;
    margin: 0;
}

/* Hide desktop menu on mobile/tablet */
#superfish {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#superfish.mobile-open {
    display: block;
    max-height: 500px;
    overflow: visible;
}

#superfish li {
    float: none;
    width: 100%;
    border-bottom: 1px solid #eee;
}

#superfish li a {
    display: block;
    padding: 15px 70px 15px 20px; /* Right padding increased for toggle button */
    color: #333;
    text-decoration: none;
    border: none;
    position: relative;
}

#superfish li a:hover {
    background-color: #f5f5f5;
}

/* Style the submenu toggle button */
#superfish .submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0,0,0,0.05);
    border-left: 1px solid #ddd;
}

#superfish .submenu-toggle:before {
    content: 'Udvid';
    font-size: 11px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
    text-align: center;
}

#superfish li.mobile-submenu-open .submenu-toggle:before {
    content: 'Klap sammen';
}

#superfish .submenu-toggle:hover {
    background: rgba(0,0,0,0.1);
}

/* Submenu styles for mobile - FIXED TO PUSH DOWN INSTEAD OF OVERLAP */
#superfish ul {
    position: static !important;
    width: 100%;
    box-shadow: none;
    display: none;
    background-color: #f9f9f9;
    top: auto !important;
    left: auto !important;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

#superfish li.mobile-submenu-open > ul {
    display: block;
    max-height: 500px; /* Allow space for submenu items */
}

/* Desktop styles - hide burger menu on larger screens */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    #superfish {
        display: block !important;
        position: static;
        max-height: none;
        background: none;
        box-shadow: none;
    }
}

/* Increase the body font size on tablet devices */
#menu {
	width: 100%;
	float: none;
	margin-top: -10px;
    background-color: #fff;
}
#sprog {
	width: auto;
	float: none;
	margin-top: -30px;
    position: absolute;
    bottom: 16px;
    right: 10px;
}
#block-views-forside-3-felter-forside-felter h2 {
	font-size: 24px;
	line-height: 28px;
}
#block-views-kort-kort-liste-1,
#block-views-kort-kort-liste-2,
#block-views-kort-kort-liste-3 {
	margin-top: -5px;
	line-height: 14px;
}
.kort_tekst_nummer,
.kort_tekst_titel {
	font-size: 12px;
}
.kort_ikon {
	display: none;
}
#tekst_footer_1 {
	width: 29%;
}
#tekst_footer_2 {
	width: 29%;
}
h3 {
    font-size: 36px;
    line-height: 40px;
}


/**********************************************************************/
/**********************************************************************/
/***********          SUPERFISH                            ************/
/**********************************************************************/
/**********************************************************************/

ul.sf-menu a {
  border-left: 0;
  border-top: 0;
  padding: 0 10px;
  text-decoration: none;
  height: 2.5em;
  line-height: 2.5em;
}
