/* --- GLOBALE VARIABLER (CSS Injected via PHP for farver) --- */
:root {
    --text-dark: #333333;
    --text-light: #f9fbf9;
    --bg-light: #ffffff;
    --bg-gray: #f8f9f8;
    --font-logo: 'Cinzel', serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- RESET & LAYOUT --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    width: 100%; max-width: 100vw; overflow-x: hidden; scroll-behavior: smooth;
    font-family: var(--font-body); color: var(--text-dark); line-height: 1.8;
    background-color: var(--bg-light); -webkit-font-smoothing: antialiased; position: relative;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; }
p { margin-bottom: 15px; font-size: 1.05rem; }

.text-center { text-align: center; }
.text-muted { color: #888; }
.small { font-size: 0.85rem; }
a { color: var(--primary-color); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary-dark); }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.mb-15 { margin-bottom: 15px; }
.flex-gap { display: flex; gap: 15px; flex-wrap: wrap;}
.flex-1 { flex: 1; min-width: 120px; }
.relative-z { position: relative; z-index: 5; }

/* --- BAGGRUNDS ANIMATIONER --- */
.bg-shapes { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: 0; pointer-events: none; }
.shape { position: absolute; filter: blur(60px); opacity: 0.2; z-index: 0; border-radius: 50%; will-change: transform; }
.shape-1 { width: 50vw; height: 50vw; background: var(--primary-color); top: -10%; left: -10%; animation: floatBlob 20s ease-in-out infinite alternate; }
.shape-2 { width: 40vw; height: 40vw; background: var(--primary-light); bottom: -10%; right: -10%; animation: floatBlob 25s ease-in-out infinite alternate-reverse; }
.shape-3 { width: 300px; height: 300px; background: rgba(240, 245, 242, 0.8); top: 40%; left: 60%; animation: floatBlob 18s ease-in-out infinite alternate; }

@keyframes floatBlob {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(30px, 20px, 0) scale(1.05); }
    100% { transform: translate3d(-20px, -30px, 0) scale(0.95); }
}

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; z-index: 1000; transition: all 0.3s ease;
}
.nav-logo-img { max-height: 40px; display: block; }
nav .logo { font-family: var(--font-logo); font-size: 1.6rem; color: var(--primary-dark); letter-spacing: 2px; font-weight: 600;}
nav ul { list-style: none; display: flex; transition: 0.3s; }
nav ul li { margin-left: 25px; }
nav ul li a { color: var(--text-dark); font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;}
nav ul li a:hover { color: var(--primary-color); text-shadow: 0 0 10px var(--primary-glow); }

.mobile-menu { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.mobile-menu .bar { width: 25px; height: 3px; background-color: var(--primary-dark); transition: 0.4s; }

/* --- CSS NATIVE PARALLAX (Fejlfri) --- */
.parallax-section {
    position: relative; display: flex; align-items: center; justify-content: center; 
    text-align: center; color: var(--text-light); z-index: 2;
    background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover;
}
.hero-section { height: 100vh; min-height: 600px; padding-top: 80px; }
.divider-parallax { height: 50vh; min-height: 350px; }

.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)); z-index: 1; }
.overlay-green { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-dark); opacity: 0.85; z-index: 1; }
.overlay-dark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(20, 30, 25, 0.8); z-index: 1; }
.parallax-section .content { position: relative; z-index: 2; max-width: 900px; padding: 40px 20px; width: 100%; }

/* --- TEKSTER --- */
.logo-text { font-family: var(--font-logo); font-size: clamp(2.5rem, 8vw, 6rem); letter-spacing: clamp(3px, 2vw, 10px); color: #ffffff; margin-bottom: 10px; line-height: 1.1; text-transform: uppercase;}
.hero-logo-img { max-width: 100%; max-height: 250px; margin-bottom: 20px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }
.glow-text { text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.subtitle { font-family: var(--font-heading); font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: clamp(1px, 1vw, 4px); text-transform: uppercase; margin-bottom: 20px; }
.author { font-size: 1.1rem; font-style: italic; font-weight: 300; opacity: 0.9; }
.divider-light { width: 60px; height: 1px; background: rgba(255,255,255,0.5); margin: 25px auto; }
.quote { font-family: var(--font-logo); font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.5; text-shadow: 0 5px 15px rgba(0,0,0,0.3); padding: 0 15px; }

/* --- KNAPPER & FORMS --- */
.btn { display: inline-block; padding: 15px 30px; background: transparent; color: white; font-size: 0.9rem; font-family: var(--font-heading); border: 2px solid white; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; font-weight: 600; text-align: center; }
.btn:hover { background: white; color: var(--text-dark); transform: translateY(-3px); }
.btn-solid { background: var(--primary-color); border-color: var(--primary-color); color: white; }
.btn-solid:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.shadow-hover:hover { box-shadow: 0 10px 25px var(--primary-glow); }

.form-input { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; transition: 0.3s; outline: none; background: #ffffff; color: var(--text-dark);}
.form-input:focus { border-color: var(--primary-color); box-shadow: 0 0 10px rgba(0,0,0,0.05);}
.contact-form-wrapper { max-width: 600px; margin: 0 auto; background: #ffffff; padding: 40px; border-radius: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); border: 1px solid #eaeaea; }

/* --- SEKTIONER --- */
.content-section { padding: 80px 0; position: relative; z-index: 2; }
@media (min-width: 768px) { .content-section { padding: 120px 0; } }
.bg-light { background-color: transparent; } 
.bg-light-alt { background-color: var(--bg-gray); }
.bg-dark { background-color: #1a251f; color: #d0dcd5; padding: 80px 0; }

.section-title { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: 1px; color: var(--primary-dark); line-height: 1.2; margin-bottom: 10px; }
.divider { width: 50px; height: 3px; background: var(--primary-color); margin: 20px auto 30px auto; border-radius: 2px; }
.divider-left { width: 50px; height: 3px; background: var(--primary-color); margin: 15px 0 30px 0; border-radius: 2px; }

.split-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.split-text { flex: 1 1 100%; }
.split-image { flex: 1 1 100%; display: flex; justify-content: center; }
@media (min-width: 900px) { .split-layout { flex-wrap: nowrap; } .split-text, .split-image { flex: 1; } }

.profile-frame { width: 100%; max-width: 350px; aspect-ratio: 1/1; border-radius: 50%; background: white; border: 8px solid #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 50px rgba(0,0,0,0.1); overflow: hidden; position: relative; }
.profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: 0.5s; }
.profile-frame:hover .profile-img { transform: scale(1.05); }
.profile-placeholder { font-size: 8rem; color: #ddd; }

/* --- DYNAMISKE CARDS (FEJLFRI CSS HOVER) --- */
.grid-dynamic { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { 
    background: #ffffff; padding: 40px 25px; border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); border: 1px solid #eaeaea; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
/* Den fejlfri hover: Løfter kortet og giver en blød glow */
.glow-hover:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 20px 40px var(--primary-glow); 
    border-color: var(--primary-light); 
    z-index: 10;
}
.card-icon { font-size: 3.5rem; margin-bottom: 20px; display: inline-block; transition: 0.4s; }
.card:hover .card-icon { transform: scale(1.1) translateY(-5px); }
.card h3 { color: var(--primary-dark); margin-bottom: 15px; font-size: 1.4rem; font-weight: 600; }

/* --- PRISLISTE & ÅBNINGSTIDER --- */
.price-list, .hours-container { max-width: 800px; margin: 0 auto; background: #ffffff; border-radius: 15px; padding: 20px 40px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); border: 1px solid #eaeaea; }
.price-item, .hours-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid #f0f0f0; transition: transform 0.3s ease; }
.price-item:last-child, .hours-row:last-child { border-bottom: none; }
.price-item:hover, .hours-row:hover { transform: translateX(8px); }
.price-info h4 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 5px; font-weight: 600; }
.price-duration { font-size: 0.9rem; color: #888; font-style: italic; }
.price-amount { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--primary-color); }
.hours-day { font-weight: 600; color: var(--text-dark); font-size: 1.1rem; }
.hours-time { color: var(--primary-color); font-weight: 600; font-size: 1.1rem; }

/* --- BOOKING SYSTEM --- */
.booking-container { max-width: 800px; margin: 0 auto; background: #ffffff; padding: clamp(20px, 5vw, 40px); border-radius: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); border: 1px solid #eaeaea; }

.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.calendar-header h3 { font-size: 1.3rem; font-weight: 600; color: var(--primary-dark); width: 100%; text-align: center; order: -1; }
@media(min-width: 600px) { .calendar-header h3 { width: auto; order: 0; } }
.calendar-header button { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 8px 20px; border-radius: 50px; cursor: pointer; transition: 0.3s; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;}
.calendar-header button:hover { background: var(--primary-color); color: white; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(3px, 1vw, 8px); margin-bottom: 20px; }
.day { padding: clamp(10px, 2vw, 15px) 5px; background: #f4f7f5; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; font-weight: 600; font-size: clamp(0.85rem, 1.5vw, 1rem); display: flex; align-items: center; justify-content: center;}
.day:hover:not(.disabled) { background: var(--primary-color); color: white; transform: translateY(-3px) scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.day.disabled { background: #fafafa; color: #ccc; cursor: not-allowed; }
.day.active { background: var(--primary-dark); color: white; transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.hidden { display: none !important; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 20px; }
.slot { padding: 12px 5px; border: 2px solid var(--primary-color); color: var(--primary-dark); border-radius: 8px; cursor: pointer; transition: all 0.3s ease; font-weight: 600; font-size: 0.95rem; text-align: center; background: white;}
.slot:hover:not(.locked) { background: var(--primary-color); color: white; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.slot.locked { border-color: #eee; color: #bbb; cursor: not-allowed; background: #fafafa; text-decoration: line-through; opacity: 0.6;}
.slot.admin-unlocked { background: var(--primary-color); color: white; border-color: var(--primary-dark); }

/* --- ADMIN PANEL & TOASTS --- */
.admin-login-wrapper { height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-gray); padding: 20px; position: relative; z-index: 5;}
.admin-box { background: #ffffff; padding: 40px 30px; border-radius: 15px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); width: 100%; max-width: 400px; text-align: center; border: 1px solid #eaeaea; }

.booking-card { background: white; padding: 20px; border-radius: 10px; border: 1px solid #eee; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.02);}
.booking-info h4 { color: var(--primary-dark); font-weight: 600; font-size: 1.2rem; margin-bottom: 5px; }
.booking-info p { margin-bottom: 5px; font-size: 0.95rem;}
.booking-action { display: flex; flex-direction: column; gap: 10px; min-width: 150px; }
.btn-delete { background: #d9534f; color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; transition: 0.3s; font-weight: 600;}
.btn-delete:hover { background: #c9302c; }

.toast-message { position: fixed; top: 100px; left: 50%; transform: translateX(-50%); z-index: 9999; width: 90%; max-width: 500px; text-align: center;}
.error-msg { color: #d9534f; margin-bottom: 20px; padding: 15px; background: #fdf2f2; border-radius: 8px; border-left: 4px solid #d9534f; font-weight: 600; box-shadow: 0 10px 30px rgba(217, 83, 79, 0.2);}
.success-msg { color: var(--primary-dark); margin-bottom: 20px; padding: 15px; background: #eaf4ef; border-radius: 8px; border-left: 4px solid var(--primary-color); font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);}

/* --- CUSTOM JS ANIMATION KLASSER (SKUDSikker) --- */
.js-anim { opacity: 0; transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform, opacity; }
.js-anim.show { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

.fade-up { transform: translate3d(0, 30px, 0); }
.slide-up { transform: translate3d(0, 50px, 0); }
.slide-left { transform: translate3d(30px, 0, 0); }
.slide-right { transform: translate3d(-30px, 0, 0); }
.zoom-in { transform: scale(0.95); }
.scale-up { transform: scale(0.9); }
.pop-in { transform: scale(0.95) translate3d(0, 20px, 0); transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); }
.slide-down { transform: translate3d(-50%, -30px, 0); opacity: 0; transition: 0.4s ease;} 
.slide-down.show { transform: translate3d(-50%, 0, 0); opacity: 1; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

.floating-complex { animation: float-complex 8s ease-in-out infinite; }
@keyframes float-complex { 0% { transform: translateY(0px) rotate(0deg); } 33% { transform: translateY(-10px) rotate(1deg); } 66% { transform: translateY(5px) rotate(-1deg); } 100% { transform: translateY(0px) rotate(0deg); } }

.pulse-btn { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(123, 156, 137, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(123, 156, 137, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 156, 137, 0); } }

/* --- RESPONSIV MOBIL FIXES --- */
@media (max-width: 768px) {
    nav { padding: 15px 5%; }
    .mobile-menu { display: flex; }
    .mobile-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(255,255,255,0.98); flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.3s ease; z-index: 1000;
    }
    .nav-links.nav-active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .nav-links li a { font-size: 1.3rem; }
    
    .divider-left { margin: 15px auto 30px auto; }
    .split-text { text-align: center; }
    .profile-frame { max-width: 250px; margin: 0 auto; }
    
    .price-item, .hours-row { flex-direction: column; text-align: center; gap: 10px; }
    
    .parallax-section { background-attachment: scroll; } /* Vigtigt: Fix for iOS parallax hakken */
}
