/* -- Grundlaeggende & Variabler -- */
:root {
    --primary-color: #09253d;
    --background-color: #09253d;
    --section-bg-color: #0c2f4f;
    --surface-color: #fff5e2;
    --accent-color: #3ca9e2;
    --border-color: #e9e1d1;
    --text-color: #fff5e2;
    --text-color-dark: #1f2937;
    --white-color: #ffffff;
    --border-radius-md: 16px; 
    --border-radius-lg: 24px;
    --shadow-soft: 0px 10px 40px rgba(0, 0, 0, 0.1);
    --font-main: 'Manrope', sans-serif;
}

/* -- Global Styling -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-main);
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.hidden { display: none !important; }

/* -- Typografi -- */
h1, h2, h3, h4 { font-weight: 700; color: var(--text-color); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(3rem, 5.5vw, 4.5rem); letter-spacing: -0.04em; }
h2 { font-size: 2.75rem; letter-spacing: -0.03em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.125rem; }
p { margin: 0.5rem 0 0 0; color: rgba(255, 245, 226, 0.85); }

.section-header { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: end; text-align: left; margin: 0 0 4rem 0; }
.section-header p { font-size: 1.125rem; }
.section-header.centered { display: block; text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* -- Header -- */
header { position: fixed; width: 100%; top: 0; z-index: 1000; background-color: rgba(9, 37, 61, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 245, 226, 0.1); }
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
nav .logo img { height: 45px; filter: brightness(0) invert(1); }
nav ul { list-style: none; display: flex; gap: 3rem; margin: 0; padding: 0; }
nav ul li a { color: var(--text-color); text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
nav ul li a:hover { color: var(--accent-color); }

/* BURGER MENU STYLING */
#burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
#burger-menu span {
    width: 2rem;
    height: 3px;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}
#burger-menu.open span:nth-child(1) { transform: rotate(45deg); }
#burger-menu.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
#burger-menu.open span:nth-child(3) { transform: rotate(-45deg); }


main { padding-top: 80px; }

/* -- Split-Screen Hero -- */
#hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 80px); width: 100%; padding: 0; overflow: hidden; }
.hero-image-pane { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}
.hero-content-pane { display: flex; justify-content: center; padding: 4rem; position: relative; }
.hero-content { max-width: 500px; margin: auto 0; }
.hero-content h1, .hero-content p, .hero-content .hero-cta-container { opacity: 0; }
.hero-content h1 { color: var(--surface-color); }
.hero-content p { color: var(--text-color); font-size: 1.05rem; margin: 1.25rem 0 0 0; }
.hero-content p:last-of-type { margin-bottom: 2.5rem; }
.hero-cta-container { display: flex; gap: 1.5rem; }

/* -- Knapper -- */
.cta-button {
    appearance: none; -webkit-appearance: none; background: transparent;
    border: 2px solid transparent; margin: 0; display: inline-block;
    padding: 1rem 2.5rem; font-family: inherit; font-size: 1rem;
    font-weight: 600; text-decoration: none; border-radius: 50px; 
    cursor: pointer; text-align: center; transition: all 0.3s ease;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); }
.cta-button--primary { background-color: var(--surface-color); color: var(--text-color-dark); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.cta-button--secondary { background-color: transparent; color: var(--surface-color); border-color: var(--surface-color); }
.cta-button--secondary:hover { background-color: var(--surface-color); color: var(--text-color-dark); }
.cta-button--cream { background-color: var(--surface-color); color: var(--text-color-dark); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.cta-button--surface { background: var(--primary-color); color: var(--white-color); }
.cta-button--surface:hover { transform: scale(1.03); background-color: #1a4a7a; }


/* -- Intro Sektion -- */
#intro { padding: 8rem 0; }
.intro-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: start; text-align: left; }
.intro-text p { font-size: 1.125rem; }
.intro-text p:first-child { margin-top: 0; }

/* -- Sektioner Generelt -- */
section { padding: 6rem 0; }
#services, #om, #testimonials { background: linear-gradient(180deg, var(--section-bg-color) 0%, var(--background-color) 100%); }

/* -- Services Sektion -- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-item { background-color: var(--primary-color); padding: 2.5rem; border-radius: var(--border-radius-lg); border: 1px solid rgba(255, 245, 226, 0.1); text-align: center; display: flex; flex-direction: column; }
.service-item h3, .service-item p { color: var(--text-color); }
.service-icon { margin: 0 auto 1.5rem auto; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background-color: var(--section-bg-color); color: var(--accent-color); }
.service-price {
    font-weight: 600;
    color: var(--accent-color);
    margin-top: auto; /* Skubber prisen til bunden */
    padding-top: 1rem;
    font-size: 1.1rem;
}
.services-cta { text-align: center; margin-top: 4rem; }

/* -- Om Sektion -- */
#om { padding: 8rem 0; }
.om-container { display: flex; align-items: center; gap: 5rem; max-width: 900px; margin: 0 auto; text-align: left; }
.om-image { flex: 0 0 300px; height: 300px; }
.om-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--border-radius-lg); }
.om-text { flex: 1; }
.om-subtitle { font-weight: 600; color: var(--text-color); opacity: 0.85; margin: 0.25rem 0 1rem 0; }
.om-text h3 { font-size: 2.5rem; }
.om-text p { font-size: 1.125rem; }
.om-container.layout-reversed { flex-direction: row-reverse; }

/* -- Testimonials Sektion (OPDATERET) -- */
.testimonials-grid { 
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

/* Webkit scrollbar styling (Chrome, Safari, Edge) */
.testimonials-grid::-webkit-scrollbar {
    height: 8px;
}

.testimonials-grid::-webkit-scrollbar-track {
    background: transparent;
}

.testimonials-grid::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.testimonials-grid::-webkit-scrollbar-thumb:hover {
    background-color: #2a8bc7;
}

.testimonial-card { 
    background-color: var(--primary-color); 
    padding: 2rem; 
    border-radius: var(--border-radius-lg); 
    border: 1px solid rgba(255, 245, 226, 0.1);
    min-width: 380px;
    flex-shrink: 0;
}

.testimonial-card blockquote { margin: 0; font-size: 1.05rem; font-style: italic; border-left: 3px solid var(--accent-color); padding-left: 1.25rem; line-height: 1.6; }
.testimonial-card cite { display: block; font-weight: 600; margin-top: 1.25rem; font-style: normal; }
.testimonial-card span { display: block; font-size: 0.875rem; color: rgba(255, 245, 226, 0.6); }

/* Desktop - single row scroll */
@media (min-width: 992px) {
    .testimonials-grid {
        justify-content: flex-start;
    }
}

@media (min-width: 1200px) {
    .testimonial-card {
        width: 420px;
        min-width: 420px;
    }
}

/* -- Booking Sektion -- */
.booking-container { background-color: var(--surface-color); border-radius: var(--border-radius-lg); padding: 3rem; color: var(--text-color-dark); box-shadow: var(--shadow-soft); }
.booking-container h2, .booking-container h3, .booking-container h4, .booking-container p { color: var(--text-color-dark); }
.booking-container .section-header p { color: rgba(31, 41, 55, 0.7); }
#service-selection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.service-choice { border: 1px solid var(--border-color); padding: 1.5rem; border-radius: var(--border-radius-md); cursor: pointer; transition: all 0.3s ease; text-align: center;}
.service-choice:hover { border-color: var(--accent-color); transform: translateY(-4px); box-shadow: 0 0 25px rgba(60, 169, 226, 0.1); }
.service-choice.selected { border-color: var(--primary-color); background-color: #f0f5fa; box-shadow: 0 0 0 2px var(--primary-color); }
.service-choice p { font-size: 0.9rem; color: rgba(31, 41, 55, 0.7); }

.calendar-and-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* -- KALENDER STYLING -- */
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.calendar-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; color: var(--text-color-dark); transition: transform 0.2s ease; }
.calendar-header button:hover { transform: scale(1.2); }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; text-align: center; }
.calendar-weekdays { font-weight: 600; color: rgba(31, 41, 55, 0.6); margin-bottom: 0.5rem; }
.calendar-days div { display: flex; justify-content: center; align-items: center; height: 40px; cursor: pointer; border-radius: 50%; transition: background-color 0.2s ease, color 0.2s ease; color: var(--text-color-dark); }
.calendar-days div.inactive { color: rgba(31, 41, 55, 0.3); cursor: default; }
.calendar-days div:not(.inactive):hover { background-color: #f0f5fa; }
.calendar-days div.selected { background-color: var(--primary-color); color: var(--white-color); }

.form-wrapper {
    padding-left: 3rem;
    border-left: 1px solid var(--border-color);
}

#booking-form { margin-top: 0; }
#booking-form h4 { margin-bottom: 1rem; }
#booking-summary { margin-bottom: 1.5rem; }
#booking-form input { width: 100%; padding: 0.75rem; margin-bottom: 1rem; border-radius: 8px; border: 1px solid var(--border-color); background-color: #fdfdfd; font-family: inherit; font-size: 1rem; }
#booking-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--primary-color); }
#booking-form button { width: 100%; }

#form-message { margin-top: 1rem; font-weight: 600; text-align: center; min-height: 24px; color: var(--text-color-dark); }
#form-message.success { color: #22c55e; }
#form-message.error { color: #ef4444; }

#booking-success-message {
    text-align: center;
    padding: 3rem 1rem;
}
#booking-success-message h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
#booking-success-message p {
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}


/* -- FOOTER & KONTAKTFORMULAR -- */
footer { background-color: #061a2b; padding: 6rem 0 0 0; margin-top: 6rem; }
.contact-form { max-width: 700px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 1rem; font-family: var(--font-main); font-size: 1rem; color: var(--text-color);
    background-color: var(--primary-color); border: 1px solid rgba(255, 245, 226, 0.2);
    border-radius: var(--border-radius-md); transition: border-color 0.2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 245, 226, 0.5); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-color); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .form-group.full-width { display: flex; justify-content: center; }
.contact-form-message { text-align: center; margin-top: 1.5rem; font-weight: 600; min-height: 24px; }
.contact-form-message.success { color: #4ade80; }
.contact-form-message.error { color: #f87171; }

.footer-main { padding: 5rem 0; margin-top: 6rem; border-top: 1px solid rgba(255, 245, 226, 0.1); }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 4rem; text-align: left; }
.footer-links ul, .footer-legal-links { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-legal-links { margin-top: 1rem; }
.footer-links a, .footer-legal a { color: rgba(255, 245, 226, 0.8); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover, .footer-legal a:hover { color: var(--white-color); }
.footer-bottom { padding: 2rem 0; background-color: #04121f; text-align: center; }
.footer-bottom p { font-size: 0.9rem; color: rgba(255, 245, 226, 0.5); margin: 0; }

/* -- Responsivt Design -- */
@media (max-width: 992px) {
    .om-container { gap: 3rem; }
    .om-image { flex: 0 0 250px; height: 250px; }
    .om-text h3 { font-size: 2rem; }
}

@media (max-width: 767px) {
    .container { padding: 0 1.5rem; }
    .intro-layout, .section-header { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    #service-selection { grid-template-columns: 1fr; }

    /* HERO SECTION MOBIL (RETTET) */
    #hero { display: block; height: auto; min-height: 0; }
    .hero-image-pane { height: 300px; width: 100%; }
    .hero-content-pane { height: auto; padding: 3rem 1.5rem 4rem 1.5rem; text-align: center; align-items: flex-start; }
    .hero-content { width: 100%; }
    .hero-cta-container { justify-content: center; }
    
    /* OM-SEKTION MOBIL (RETTET) */
    .om-container, .om-container.layout-reversed { flex-direction: column; text-align: center; }
    .om-image {
        width: 250px;
        height: 250px;
        flex-basis: auto;
        margin: 0 auto;
    }

    /* TESTIMONIALS SCROLL MOBIL */
    #testimonials .container { 
        padding: 0 1.5rem;
    }
    
    .testimonials-grid {
        gap: 1rem;
        scrollbar-width: auto;
    }
    
    .testimonial-card { 
        width: 280px;
        min-width: 280px;
        padding: 1.75rem;
    }

    /* BURGERMENU VISES, NAV SKJULES */
    #burger-menu { display: flex; }
    #nav-menu {
        position: fixed; top: 0; right: 0; height: 100vh; width: 60%;
        background-color: var(--section-bg-color); flex-direction: column;
        justify-content: center; align-items: center; gap: 3rem;
        transform: translateX(100%); transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0px 15px rgba(0,0,0,0.2);
    }
    #nav-menu.open { transform: translateX(0); }
    #nav-menu li a { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    section { padding: 4rem 0; }
    #intro, #om { padding: 5rem 0; }
    
    .services-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 3rem;}
    .contact-form { grid-template-columns: 1fr; }
    
    .calendar-and-form-container { 
        grid-template-columns: 1fr; 
    }
    .form-wrapper { 
        border-left: none; 
        padding-left: 0; 
        margin-top: 3rem; 
        border-top: 1px solid var(--border-color); 
        padding-top: 2rem;
    }
    .booking-container { padding: 2rem; }
    .testimonial-card { padding: 2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-content-pane { padding: 2rem 1rem 3rem 1rem; }
    .hero-cta-container { flex-direction: column; gap: 1rem; }
    .cta-button { width: 100%; }
    .contact-form button { width: auto !important; }
    #nav-menu { width: 80%; }
}/* =============================================
   ADDITIONAL CSS - Add to end of style.css
   Time slots and "can't find a time" link
   ============================================= */

/* Time Slots */
#time-slots-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.time-slots-heading {
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}
#time-slots-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color-dark);
    transition: all 0.2s ease;
}
.time-slot:hover {
    border-color: var(--accent-color);
    background-color: #f0f5fa;
    transform: translateY(-2px);
}
.time-slot.selected {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.no-slots-text {
    text-align: center;
    color: rgba(31, 41, 55, 0.5);
    padding: 1rem;
    font-size: 0.9rem;
}

/* "Can't find a time?" link */
.no-times-link {
    margin-top: 1.25rem;
    text-align: center;
}
.no-times-link p {
    font-size: 0.85rem;
    color: rgba(31, 41, 55, 0.6);
}
.no-times-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}
.no-times-link a:hover {
    text-decoration: underline;
}

/* Responsive: Time slots */
@media (max-width: 768px) {
    #time-slots-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    #time-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Service choice as link (personlig traening) */
.service-choice--link {
    text-decoration: none;
    color: inherit;
    border-style: dashed;
}
.service-choice--link:hover {
    border-color: var(--accent-color);
}
.service-choice--link h4::after {
    content: ' \2192';
}

/* Interest list form */
.interest-form-container {
    max-width: 480px;
    margin: 2rem auto 0;
}
.interest-form-container h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color-dark);
}
#interest-form input,
#interest-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #fdfdfd;
    font-family: inherit;
    font-size: 1rem;
}
#interest-form input:focus,
#interest-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}
#interest-form button {
    width: 100%;
}
#interest-form-message {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    text-align: center;
}
#interest-form-message.error {
    color: #dc3545;
}

/* Onsdagsraes section */
#onsdagsraes {
    padding: 5rem 0;
    margin-top: 4rem;
}
@media (max-width: 768px) {
    .onsdagsraes-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
