@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #222;
    background: #fff;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Adjust if your header covers the top of sections */
}

:root {
    --primary: #9cb568;
    --secondary: #879160;
    --light: #c2de87;
    --dark: #111;
    --light-gray: #f5f5f5;
}

.ImageLogo {
    max-width: 200px;
    height: auto;
    transition: all 0.4s ease;
}

.cardimage {
    width: 100%;
    height: auto;
    transition: all 0.4s ease;
}

.ImageLogo2 img {
    height: 1rem
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4rem;
    background-color: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: var(--secondary);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 4rem;
}

.kontaktheader {
    background-color: var(--secondary);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 4rem;
    transition: all 0.4s ease;
}

.sidebutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    list-style: none;

    padding: 12px 18px;
    border-radius: 14px;

    background: var(--primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;

    border: none;
    cursor: pointer;
    text-decoration: none;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.103),
        inset 0 1px 0 rgba(255, 255, 255, 0.096);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.sidebutton a {
    text-decoration: none;
    color: #ffffff;
}

.sidebutton:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a.active {
    /*color: #ffffff;*/
    /*font-weight: 600;*/
    /*border-bottom: 2px solid #ffffff8f;*/
    background: var(--primary);
    color: #000 !important;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 500 !important;
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    font-size: 1.1rem;
}

.logo {
    font-weight: 600;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.btn-nav {
    background: var(--primary);
    color: #000 !important;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 500 !important;
    text-decoration: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url("/Images/b1.jpeg") center/cover no-repeat;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / 29%)
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.103),
        inset 0 1px 0 rgba(255, 255, 255, 0.096);
}

.btn-primary:hover {
    background: var(--light);
}

/* Section Styles */
.section {
    padding: 6rem 5%;
    text-align: center;
}

.section.light {
    background: var(--light-gray);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.section h3 {
    margin-bottom: 1rem;
}

.section p {
    /*max-width: 700px;*/
    margin: 0 0 1rem;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card1 {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card1:hover {
    transform: translateY(-5px);
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

input,
textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    background: var(--secondary);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    height: auto;
}

.om-section {
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
    /* Ensures it stacks on smaller screens */
    padding: 2rem 1rem;
    text-align: left;
}

.bigwrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.KontaktContainer {
    max-width: 100%;
}

.om-image {
    max-width: 400px;
}

.om-image img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.om-text {
    flex: 1;
    max-width: 600px;
}

.om-text2 {
    display: flex;
    max-width: 600px;
    flex-direction: column;
    justify-content: space-around;
}

.om-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.om-text p {
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

.two-text {
    display: flex;
    gap: 5rem;
    max-width: 80%;
}

.two-text-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.liste {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.prisercontainer {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-bottom: 1rem;
}

.priser {
    width: 30%;
    display: flex;
    font-weight: 200;
    flex-direction: column;
    align-items: center;
}

.afbud h3 {
    /*color: #b0b0b0;*/
    padding-top: 2rem;
    font-size: 1rem;
}

.afbud p {
    /*color: #8d949a;*/
    font-weight: 300;
    font-size: 0.9rem;
    display: none;
}

.priser p {
    display: flex;
    text-align: right;
}

.removepadding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.removepadding2 {
    padding-bottom: 0rem;
}

.addpadding {
    padding-top: 10rem;
}

.footer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.footerimages {
    display: flex;
    gap: 2rem;
}

.footertext {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footertexts {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
}

.footer-section img {
    width: auto;
    max-height: 80px;
}

.hidden-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.show {
    opacity: 1;
}

.read-more-btn {
    color: #000000;
    cursor: pointer;
    border: none;
    padding: 0.8rem;
    font-weight: 600;
}

#overlay2 {
    position: absolute; /* or absolute depending on your layout */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: black; /* or whatever color */
    opacity: 0;

    pointer-events: none; /* prevents blocking clicks when invisible */
    transition: opacity 0.4s ease;
}

#overlay2.active {
    opacity: 0.5; /* how visible you want it */
    pointer-events: auto;
}

.bigsection {
    background-image: url("/Images/Test1.png");
    background-size: cover;
    background-position: center;
    z-index: 5;
}

.cards {
    background-color: #ffffff0c;
    width: 100%;
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
}

.cardsinner {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem;
    justify-content: center;
}

.card {
    position: relative;
    height: 520px;
    max-width: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* shadow */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.cardimage {
    width: 100%;
    height: 20rem;
}

.cardimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cardtext {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2rem;
    color: black;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

/* content above overlay */
.card * {
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card .price {
    font-weight: 600;
    margin-top: 1.5rem;
}

.card span {
    font-size: 0.9rem;
    opacity: 0.85;
}

.btn {
    margin-top: auto;
    background: #6b7d2c;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #556321;
}

.popup {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background-color: #0000003a;
}

.popupinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #fff;
    padding: 30px;
    box-shadow:0 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.popupinner button {
    max-width: 100px;
}