/* Forhindre tekstmarkering og kopiering */
body, p, h1, h2, h3, h4, h5, h6, span, div, a, img {
    -webkit-user-select: none;  /* Safari */
    -ms-user-select: none;      /* IE 10+ og Edge */
    user-select: none;          /* Standard syntax */
    -webkit-touch-callout: none; /* iOS Safari */
}

/* Deaktiver højrekliksmenu på hele siden */
body {
    -webkit-context-menu: none;
    -moz-context-menu: none;
}

/* Forhindre drag på billeder */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none; /* Forhindrer også klik-interaktioner */
}

/* Grundlæggende stilarter */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grundlæggende stilarter */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: auto;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000000;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.2em;
}

/* Container class */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

/* Header og navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 25px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Menulinje styling */
nav ul li a {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: #004d99;
}

/* Aldersverifikation popup */
.age-verification {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.age-verification-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.age-verification h2 {
    margin-bottom: 1rem;
    color: #000;
}

.age-verification p {
    margin-bottom: 1.5rem;
    color: #333;
}

.age-verification-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.age-verification-buttons button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

#age-yes {
    background-color: #0066cc;
    color: #fff;
}

#age-yes:hover {
    background-color: #0066cc;
}

#age-no {
    background-color: #0066cc;
    color: #fff;
}

#age-no:hover {
    background-color: #0066cc;
}

/* Kontaktformular popup-besked styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    width: 400px;
    text-align: center;
    font-size: 1rem;
    color: #333;
}

.popup.success {
    border-top: 4px solid #0066cc;
}

.popup.error {
    border-top: 4px solid #cc0000;
}

/* Hamburger menu knap */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Hero sektion */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 60px 5% 60px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0) 70%);
    pointer-events: none;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 20vh;
    max-width: 800px;
}

.hero-content img.hero-logo {
    max-width: 400px;
    height: auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #333;
}

.bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background-color: rgba(0, 102, 204, 0.3);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

.bubble:nth-child(1) { left: 10%; width: 30px; height: 30px; animation-duration: 12s; }
.bubble:nth-child(2) { left: 40%; width: 20px; height: 20px; animation-duration: 16s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 70%; width: 25px; height: 25px; animation-duration: 14s; animation-delay: 4s; }

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100vh) scale(1.5); opacity: 0; }
}

/* Forbedrede knapper */
.button, .cta-button, .buy-button, .submit-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: linear-gradient(to right, #0066cc, #0052a3);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before, .buy-button::before, .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #0052a3, #0066cc);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before, .buy-button:hover::before, .submit-btn:hover::before {
    left: 0;
}

.cta-button:hover, .buy-button:hover, .submit-btn:hover {
    background-color: #004d99;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Fremhævede produkter */
.featured-products {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, transparent, #0066cc, transparent);
}

.featured-products h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
}

.product-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.product {
    flex: 1;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background-color: #f8f8f8;
    padding: 1rem;
    transition: transform 0.5s ease;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product:hover img {
    transform: scale(1.03);
}

.product h3 {
    padding: 1rem;
    font-size: 1.3rem;
    text-align: center;
    background-color: #fff;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    margin-top: auto;
}

.product:hover h3 {
    color: #0066cc;
}

/* Produktionsproces */
.production-process {
    background-color: #f8f8f8;
    padding: 4rem 5%;
    margin-top: 4rem;
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.production-process h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 3rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.step {
    flex: 1;
    text-align: center;
}

.step h3 {
    font-size: 2rem;
    color: #000000;
    margin-bottom: 1rem;
}

.step img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step p {
    font-size: 1.1rem;
    color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-icon, .smiley-link {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon:hover, .smiley-link:hover {
    color: #0066cc;
}

.smiley-link {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.smiley-link i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.footer-bottom p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-section a::after, .footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.footer-section a:hover::after, .footer-bottom a:hover::after {
    width: 100%;
}

.footer-bottom a:hover {
    color: #0066cc;
}

/* Produktside styles */
.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px;
}

.product-listing {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.product-item {
    display: flex;
    gap: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product-item img {
    width: 40%; 
    max-width: 400px; 
    height: 500px; 
    object-fit: contain;
    background-color: #f8f8f8;
    padding: 1rem;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-item:hover img {
    transform: scale(1.02);
}

.product-details {
    padding: 2rem;
    flex: 1;
}

.product-details h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.product-description, .product-info {
    margin-bottom: 1.5rem;
}

.product-description h3, .product-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-description p {
    color: #666;
    line-height: 1.6;
}

.product-info ul {
    list-style-type: none;
    padding-left: 0;
}

.product-info li {
    color: #666;
    margin-bottom: 0.5rem;
}

.buy-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #0066cc, #0052a3);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.buy-button:hover {
    background-color: #004499;
    transform: translateY(-2px);
}

/* Forhandlere styles */
.full-page-map {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    background-color: #fff;
    margin-top: 0px;
}

.map-container {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Kontaktside uden formular */
.contact-message-container {
    flex: 1;
    min-width: 500px;
}

.contact-message {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-message h2 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.message-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #444;
}

.contact-methods {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: 1.5rem;
}

.contact-method {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.contact-method i {
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.contact-method h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.contact-method p {
    font-size: 1rem;
    color: #555;
}

.contact-method a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #004d99;
    text-decoration: underline;
}

/* Kontaktformular styles */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px;
}

.contact-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #000000;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 0 0 350px;
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-info h2 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-info i {
    color: #0066cc;
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Om os styles */
.about-us {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px;
}

.who-we-are, .our-process {
    margin-bottom: 4rem;
}

.content-title {
    font-size: 2rem; 
    color: #333;
    margin-bottom: 1rem;
    font-weight: bold;
    margin-top: 1.5rem;
}

.about-us h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.content {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.highlight {
    font-weight: 600;
    color: #0066cc;
}

.emphasis {
    font-style: italic;
    color: #444;
}

.special-text {
    font-weight: 400;
    color: #0066cc;
    font-style: oblique;
}

.image-container {
    flex: 1;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.founders-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.founders-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 102, 204, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay i {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.image-overlay span {
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.founders-image-link:hover .founders-image {
    transform: scale(1.05);
}

.founders-image-link:hover .image-overlay {
    opacity: 1;
}

.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #0066cc;
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    width: 45%;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
    font-size: 1.5rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.step-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

.process-gif {
    width: 45%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Leaflet kort styling */
#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-container {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Tilpas popup-stilen */
.leaflet-popup-content-wrapper {
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 12px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.dealer-popup {
    text-align: center;
}

.dealer-popup h3 {
    margin: 0 0 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #0066cc;
}

.dealer-popup p {
    margin: 5px 0;
}

/* Custom marker icon styling */
.custom-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0066cc;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 14px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    transition: all 0.2s;
    font-weight: bold;
}

.custom-marker-icon:hover {
    background-color: #004d99;
    transform: scale(1.1);
}

/* Forhandlerliste styling */
.dealer-list-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

#toggle-list {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

#toggle-list:hover {
    background-color: #004d99;
}

.dealer-list {
    position: absolute;
    top: 0;
    right: -350px; /* Start uden for skærmen */
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.dealer-list.active {
    right: 0;
}

.dealer-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #0066cc;
    color: white;
}

.dealer-list-header h3 {
    margin: 0;
    color: white;
}

.close-list {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.dealer-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.dealer-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dealer-item:hover {
    background-color: #f5f5f5;
}

.dealer-name {
    font-weight: bold;
    color: #0066cc;
}

/* Responsive design til forhandlerlisten */
@media (max-width: 768px) {
    .dealer-list {
        width: 250px;
    }
    
    #toggle-list {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Cluster marker styling */
.marker-cluster-small {
    background-color: rgba(0, 102, 204, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(0, 102, 204, 0.8);
    color: white;
}

.marker-cluster-medium {
    background-color: rgba(0, 102, 204, 0.6);
}
.marker-cluster-medium div {
    background-color: rgba(0, 102, 204, 0.8);
    color: white;
}

.marker-cluster-large {
    background-color: rgba(0, 102, 204, 0.6);
}
.marker-cluster-large div {
    background-color: rgba(0, 102, 204, 0.8);
    color: white;
}

/* Scroll-to-top knap */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

/* Forbedret fokus-tilstand for bedre tilgængelighed */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Animations og transitions */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Loading animation til billeder og indhold */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    display: block;
    position: absolute;
    left: -150px;
    top: 0;
    height: 100%;
    width: 150px;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    animation: loading 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes loading {
    from {
        left: -150px;
    }
    to {
        left: 100%;
    }
}

/* Spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Skjul footer ved indlæsning */
footer {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Dette selects vil vise footeren, når JavaScript tilføjer klassen */
body.page-loaded footer {
    opacity: 1;
}

/* Alternativt, hvis klassen ikke virker korrekt */
.footer-visible {
    opacity: 1 !important;
}

/* Specifik til kontaktsiden for at sikre nok højde */
.contact-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 8rem;
}

/* Preloader styling */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(0, 102, 204, 0.1);
    border-top-color: #0066cc;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Alternativ indlæsningsstil med logo */
.logo-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-loader img {
    max-width: 120px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

/* Smooth page transition */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Forbedret transition for indhold */
main {
    opacity: 0;
    animation: contentFadeIn 0.6s ease-out 0.2s forwards;
}

@keyframes contentFadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}


/* Footer hover fix */
.footer-section a {
    position: relative;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

.social-icon, .smiley-link {
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover, .smiley-link:hover {
    color: #0066cc;
}

.smiley-link i {
    margin-right: 0.5rem;
    line-height: 1;
}

/* Prevent any layout shift */
.footer-section a, 
.social-icon, 
.smiley-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Forhandlere-kortet */

/* Fuld skærm map container */
.full-page-map {
    height: 100vh; /* Oprindelig højde */
    min-height: calc(100vh - 60px); /* Minimum højde, fratrækker header */
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header justeret til mapsiden */
body.map-page header {
    background-color: rgba(255, 255, 255, 0.9); /* Semitramsparent hvid baggrund */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Map container fylder hele siden */
.map-container {
    flex: 1;
    width: 100%;
    height: auto;
    position: absolute;
    top: 60px; /* Header højde */
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 5;
}

/* Sikrer at iframe fylder hele containeren */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Se i fuld skærm link styling */
.map-fullscreen-link {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 10;
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    transition: background-color 0.3s;
}

.map-fullscreen-link:hover {
    background-color: #f0f0f0;
}

/* CSS til at gemme footeren på forhandlersiden */
body.map-page footer {
    display: none; 
}

/* Responsivt design */
@media (max-width: 768px) {
    /* Generelle mobile styles */
    body {
        font-size: 16px;
    }

    header {
        padding: 0.5rem 5%;
    }

    .logo-container .logo-image {
        height: 20px;
        width: auto;
    }

    nav {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    /* Forhandler map */
    .full-page-map {
        height: calc(100vh - 50px);
    }
    
    .map-container {
        top: 50px;
        border: none;
    }
    
    /* Gør kortet mere fremhævet på mobil */
    body.map-page {
        overflow: hidden;
    }
    
    .map-fullscreen-link {
        bottom: 65px;
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Mobilmenu styles */
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: #333;
        cursor: pointer;
    }

    .nav-menu {
        display: none;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu li {
        text-align: center;
        padding: 1rem 0;
    }

    /* Animation for hamburger-ikonet */
    .mobile-menu-btn {
        transition: transform 0.3s ease-in-out;
    }

    .mobile-menu-btn.active {
        transform: rotate(90deg);
    }

    /* Aldersverifikation mobil*/
    .age-verification-content {
        padding: 1.5rem;
        width: 85%;
    }

    .age-verification-buttons button {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    #age-yes::after {
        content: 'Ja';
    }

    #age-no::after {
        content: 'Nej';
    }

    #age-yes span,
    #age-no span {
        display: none;
    }

    /* Hero sektion på mobil */
    .hero {
        min-height: 60vh;
        padding: 40px 5% 20px;
    }

    .hero-content img.hero-logo {
        max-width: 80%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    /* Fremhævede produkter */
    .featured-products {
        margin: 2rem auto;
    }

    .featured-products h2, .production-process h2 {
        font-size: 2rem;
    }

    .product-grid {
        flex-direction: column;
    }

    .product {
        margin-bottom: 2rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .product img {
        height: 300px;
        border-radius: 8px 8px 0 0;
        padding: 0.5rem;
    }

    .product h3 {
        font-size: 1rem;
        font-weight: 500;
        color: #444;
        padding: 1rem;
        background-color: #fff;
        border-radius: 0 0 8px 8px;
    }

    /* Produktionsproces */
    .production-process {
        padding: 2rem 5%;
    }

    .production-process h2 {
        font-size: calc(1.5rem + 1vw);
    }

    .process-steps {
        flex-direction: column;
    }

    .step {
        margin-bottom: 2rem;
    }

    .step h3 {
        font-size: calc(1.2rem + 0.5vw);
    }

    /* Sortiment side specifik styling */
    .product-page {
        padding: 80px 5% 40px;
    }

    .product-item {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .product-item img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin-bottom: 1rem;
    }

    .product-details {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .product-details h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .product-description, .product-info {
        margin-bottom: 1rem;
    }

    .product-description h3, .product-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .product-info ul {
        padding-left: 0;
    }

    .product-info li {
        margin-bottom: 0.5rem;
    }

    .buy-button {
        display: inline-block;
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        text-align: center;
    }

    /* Om os mobile styles */
    .content {
        flex-direction: column-reverse;
        padding: 1.5rem;
    }

    .content-text, .image-container {
        width: 100%;
    }

    .image-container {
        margin-bottom: 1.5rem;
    }

    .process-timeline::before {
        left: 0;
    }

    .process-step, .process-step:nth-child(even) {
        flex-direction: column;
    }

    .step-content, .process-gif {
        width: 100%;
    }

    /* Forhandlere mobile styles */
    .full-page-map {
        height: calc(100vh - 60px);
    }

    .map-container {
        border: 10px solid white;
        margin-bottom: 20px;
    }

     /* Kontakt siden */
    .contact-page {
        padding: 40px 15px 20px;
        max-width: 100%;
        margin: 0 auto;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .contact-page h1 {
        font-size: 2.5rem;
        text-align: center;
        margin-top: 2rem;
        margin-bottom: 2.5rem;
        font-weight: 700;
        color: #000;
        letter-spacing: -0.02em;
    }
    
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .contact-info {
        width: 100%;
        padding: 1rem 1rem;
        background-color: #f8f8f8;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .contact-container {
        align-items: stretch;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: #000;
    }

    .contact-info p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-info p:last-child {
        margin-bottom: 0;
    }

    .contact-info i {
        margin-right: 0.5rem;
        color: #0066cc;
    }

    .contact-message-container {
        width: 100%;
        min-width: unset; /* Fjerner fast bredde */
    }

    .contact-message {
        background-color: #fff;
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        text-align: center;
    }

    .contact-message h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        color: #000;
    }

    .message-content p {
        font-size: 1rem;
        line-height: 1.5;
        color: #444;
        margin-bottom: 1.2rem;
    }

    .contact-methods {
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }

    .contact-method {
        width: 100%;
        background-color: #f8f8f8;
        padding: 1.2rem;
        border-radius: 8px;
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .contact-method:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 10px rgba(0,0,0,0.1);
    }

    .contact-method i {
        font-size: 2rem;
        color: #0066cc;
        margin-bottom: 0.8rem;
    }

    .contact-method h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
        color: #333;
    }

    .contact-method p {
        font-size: 0.95rem;
        color: #555;
    }

    .contact-method a {
        color: #0066cc;
        text-decoration: none;
        font-weight: 500;
    }

    .contact-method a:hover {
        color: #004d99;
        text-decoration: underline;
    }

    /* Footer specifikt til mobil */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
    }

    /* Scroll-to-top knap på mobile */
    .scroll-top {
        bottom: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Specifikke justeringer for iPhone og lignende enheder */
@media (min-width: 375px) and (max-width: 414px) {
    .hero h1 {
        font-size: calc(1.2rem + 1.5vw);
    }
}

/* Yderligere justeringer for meget små skærme */
@media (max-width: 320px) {
    .product-list h2,
    .contact-info h2,
    .product-details h2 {
        font-size: calc(1rem + 1vw);
    }

    .logo-container .logo-image {
        height: 18px;
    }

    .product-description h3, .product-info h3 {
        font-size: 1.1rem;
    }
}

/* Justeringer baseret på skærmhøjde */
@media (max-height: 600px) and (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: calc(1.1rem + 1.5vw);
    }

    .hero p {
        font-size: calc(0.7rem + 0.4vw);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product img {
        height: 400px; 
    }
}

/* Desktop-specifikke justeringer */
@media (min-width: 1200px) {
    .container, .product-page, .about-us, .contact-page {
        max-width: 1140px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container, .product-page, .about-us, .contact-page {
        max-width: 960px;
        margin: 0 auto;
    }
}

/* Skjul mobil menu-knap på desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hidden {
    display: none !important;
}