/* Grundlæggende styling */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 20px;
    background-color: #ffffff;
    color: #006400;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styling */
header {
    background-color: #ffffff;
    color: #006400;
    border-bottom: 1px solid #eee;
    position: relative;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 60px;
}

.logo-text a {
    font-size: 28px;
    font-weight: bold;
    color: #006400;
    text-decoration: none;
    white-space: nowrap;
}

.logo-text a:hover {
    color: #004d00;
}

.desktop-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu ul li a {
    color: #006400;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.desktop-menu ul li a:hover {
    color: #004d00;
}

.hamburger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #006400;
}

.mobile-menu {
    display: none;
    background-color: #006400;
    padding: 15px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu ul li {
    margin: 10px 0;
}

.mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.close-menu {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    text-align: right;
    padding: 10px;
}

.mobile-menu.active .close-menu {
    display: block;
}

/* Hovedindhold styling */
.container {
    display: block;
    padding: 40px 60px;
    max-width: 1000px;
    margin: 20px auto;
    background-color: #ffffff;
    flex-grow: 1;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 20px;
    background-color: transparent;
    color: #006400;
    border-top: 1px solid #eee;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* Standard container med flex (for index.html og andre sider) */
.container.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.text-content {
    flex: 1;
    max-width: 500px;
}

/* Diskret link styling i tekst-indhold */
.text-content a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #006400;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.text-content a:hover {
    text-decoration-color: #004d00;
}

.image-content {
    flex: 1;
    text-align: center;
    max-width: 400px;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Formular og billede layout (til tilmelding.html) */
.form-image-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.form-content {
    flex: 1;
    margin-left: auto;
    margin-right: auto;
}

#mc_embed_signup {
    background: #fff;
    clear: left;
    font: 14px Helvetica, Arial, sans-serif;
    width: 100%;
}

/* Liste styling (fra pris.html) */
.course-list {
    list-style: disc;
    margin: 1rem 0;
    padding-left: 20px;
}

.course-list li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Tabel styling (fra detaljer.html) */
.course-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.course-table th,
.course-table td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
}

.course-table th {
    background-color: #f0f0f0;
}

/* 2-kolonne layout til detaljer-siden */
.two-column-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.two-column-layout .column {
    flex: 1;
}

.full-width-section {
    width: 100%;
}

/* Køb kursus sektion */
.course-booking-section {
    background-color: #f8f9fa;
    border: 2px solid #006400;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.course-booking-section h3 {
    color: #006400;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.booking-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #006400;
}

.price-note {
    font-size: 0.9rem;
    color: #666;
}

.availability-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.spots-left {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d9534f;
}

.spots-text {
    font-size: 0.9rem;
    color: #666;
}

.buy-course-button {
    background-color: #006400;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.buy-course-button:hover {
    background-color: #004d00;
}

.buy-course-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.booking-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    background-color: white;
    padding: 0 15px;
    color: #666;
    font-weight: bold;
}

/* Ledig pladser modul */
.available-spots-module {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 6px 12px;
    margin-top: 15px;
    gap: 8px;
    font-size: 14px;
}

.spots-icon {
    font-size: 14px;
    line-height: 1;
}

.spots-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spots-number {
    font-size: 14px;
    font-weight: bold;
    color: #dc3545;
    line-height: 1;
}

.spots-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: normal;
    font-weight: normal;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }

    .desktop-menu {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }    .header-inner {
        padding: 10px 15px;
    }    .logo-text a {
        font-size: 24px;
    }    .container {
        padding: 20px 15px;
    }

    .container.flex-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .text-content {
        max-width: none;
        margin-bottom: 20px;
    }    .image-content {
        max-width: none;
    }    footer {
        padding: 20px 15px;
    }    /* Responsive 2-kolonne layout */
    .two-column-layout {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }    /* Responsive køb kursus sektion */
    .booking-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }    .price-info,
    .availability-info {
        align-items: center;
    }
    
    /* Responsiv formular og billede layout */
    .form-image-container {
        flex-direction: column;
        align-items: center;
    }

    .form-content {
        width: 100%;
        margin: 0;
    }

    /* Responsiv liste */
    .course-list {
        padding-left: 15px;
        font-size: 14px;
    }    /* Responsiv tabel - konverter til kort-layout på mobil */
    .course-table,
    .course-table thead,
    .course-table tbody,
    .course-table th,
    .course-table td,
    .course-table tr {
        display: block;
    }

    .course-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .course-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

    .course-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .course-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #006400;
    }

    .course-table td:last-child {
        border-bottom: 0;
    }

    /* Responsive ledig pladser modul */
    .available-spots-module {
        margin: 15px auto 0 auto;
        width: fit-content;
        padding: 8px 14px;
        font-size: 15px;
    }

    .spots-icon {
        font-size: 16px;
    }

    .spots-text {
        gap: 5px;
    }

    .spots-number {
        font-size: 15px;
    }

    .spots-label {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 5px;
    }    .logo-text a {
        font-size: 20px;
    }

    .mobile-menu ul li a {
        font-size: 16px;
    }

    .container {
        padding: 15px 10px;
    }

    .text-content h2 {
        font-size: 24px;
    }

    .text-content p {
        font-size: 14px;
    }

    .course-list {
        font-size: 13px;
    }

    .course-table th,
    .course-table td {
        font-size: 13px;
        padding: 6px;
    }    #mc_embed_signup {
        font-size: 13px;
    }

    footer {
        padding: 20px 10px;
    }    /* Ledig pladser modul på små skærme */
    .available-spots-module {
        margin: 12px auto 0 auto;
        padding: 6px 12px;
        font-size: 13px;
    }

    .spots-icon {
        font-size: 14px;
    }

    .spots-number {
        font-size: 14px;
    }

    .spots-label {
        font-size: 13px;
    }
}