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

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

#toppmeny {
    background-color: #CE8C2C;
    height: 600px;
}

.navbar {
    width: 58%;
    position: absolute;
    top: 0;
    transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: #333;
    width: 100%;
    z-index: 1000;
    position: fixed;
    top: 0;
}

.navbar.scrolled .nav-button {
    color: white;
}

.navbar.scrolled .dropdown-label {
    color: white;
}

.navbar.scrolled .arrow {
    border-top: 5px solid white;
}

.navbar.scrolled .logo {
    color: white;
}

.nav-button:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 20;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    color: #252424;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-right: 25px;
}

.nav-button {
    padding: 8px 16px;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #252424;
}

.nav-button:hover {
    color: white;
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-label {
    color: #252424;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.dropdown-label:hover {
    color: white;
    transform: translateY(-2px);
}

.arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #252424;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.dropdown-label:hover .arrow {
    border-top-color: white;
}

.dropdown-toggle {
    display: none;
}

.dropdown-content {
    position: absolute;
    background-color: #444;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 30;
    top: 100%;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-toggle:checked ~ .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
    pointer-events: auto;
}

.dropdown-toggle:checked ~ .dropdown-label .arrow {
    transform: rotate(180deg);
    border-top-color: white;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #555;
    color: #f8b400;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #252424;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled .bar {
    background-color: white;
}

@media screen and (max-width: 1100px) {

    .topp-boks p {
        font-size: 16px;
    }

    .menu-icon {
        display: block;
    }

    .nav-items {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 10;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    #menu-toggle:checked ~ .nav-items {
        max-height: 500px; 
        padding: 20px;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        margin: 0;
        transform: none;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    .dropdown-toggle:checked ~ .dropdown-content {
        max-height: 250px; 
        padding: 10px 0;
        transform: none;
    }

    #menu-toggle:checked ~ .menu-icon .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
        transition: transform 0.3s ease;
    }

    #menu-toggle:checked ~ .menu-icon .bar:nth-child(2) {
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    #menu-toggle:checked ~ .menu-icon .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
        transition: transform 0.3s ease;
    }

    .bar {
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    .nav-button, 
    .dropdown {
        width: 100%;
        margin: 5px 0;
    }

    .arrow {
        border-top-color: white;
    }

    .nav-button {
        text-align: center;
        padding: 12px 16px;
        color: white;
    }

    .dropdown {
        margin: 0;
    }

    .dropdown-label {
        justify-content: center;
        padding: 12px 16px;
        width: 100%;
        color: white;
    }

    .nav-button:hover,
    .dropdown-label:hover {
        transform: none;
    }
}

.hero-section-container {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  padding-top: 100px;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
}

.content {
  max-width: 52%;
  margin-top: 20px;
}

.content h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.content p {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.image {
  width: 45%;
  height: 600px;
  max-width: none;
  margin-bottom: 0;
  background-image: url(../Bilder/benjamin-ashton-HAHLWRbrawA-unsplash.jpg);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  aspect-ratio: 3 / 4; 
  object-fit: cover;
  margin-top: auto;
  margin-right: -60px;
  margin-top: 50px;
}

.hero-section1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1200px;
    box-sizing: border-box;
    gap: 40px;
    background-color: rgba(229, 188, 39, 0.282);
    border-radius: 12px;
    margin: 0 auto;
    margin-top: 70px;
}

.content1 {
    max-width: 48%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content1 h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.content1 p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.content1 a {
  display: inline-block;
  width: fit-content;  
  padding: 15px 30px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.content1 a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-section1 .image1 {
    width: 48%;
    height: 500px;
    background-image: url(../Bilder/laram-vStAYPFjpM4-unsplash.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin: 0;
    object-fit: cover;
}

footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    clear: both;
    z-index: 1;
    margin-top: 70px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #f8b400;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f8b400;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    color: white;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #CE8C2C;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 1250px) {
    .navbar {
        width: 100%;
    }

    #toppmeny {
        height: 400px;
    }

    .hero-section-container {
        height: auto;
        padding-top: 80px;
        margin-bottom: 20px;
    }

    .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 95%;
        padding: 10px;
    }

    .hero-section .content {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-section .content h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-section .content p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .hero-section .image {
        display: none;
        width: 0;
        height: 0;
        visibility: hidden;
    }
}

@media screen and (max-width: 1250px) {
    .hero-section1 {
        width: 95%;
        gap: 30px;
    }

    .content1 h1 {
        font-size: 2.8rem;
    }

    .content1 p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-section1 {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }

    .content1, 
    .hero-section1 .image1 {
        max-width: 100%;
        width: 100%;
    }

    .content1 {
        height: 250px;
        padding: 10px;
    }

    .content1 h1 {
        font-size: 2.2rem;
    }

    .content1 p {
        font-size: 1rem;
    }

    .hero-section1 .image1 {
        height: 300px;
    }

    .content1 a {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-section1 {
        margin-top: 30px;
        padding: 15px;
    }

    .content1 h1 {
        font-size: 1.8rem;
    }

    .hero-section1 .image1 {
        height: 450px;
    }
}