/* Nulstilling og generel opsætning */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2f2d2a;
    background-color: #f3f0ea;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background-color: #e8e1d5;
    color: #2f2d2a;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2f2d2a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo p {
    font-size: 0.9rem;
    color: #746d63;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #2f2d2a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #a85645;
}

/* Hero sektion */
.hero {
    background: linear-gradient(rgba(47, 45, 42, 0.82), rgba(47, 45, 42, 0.82)), url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 60px 0;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid Layout til hovedindhold og sidebar */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.main-content,
.sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.main-content .card-section,
.sidebar .form-section {
    margin-bottom: 0;
}

/* Sektioner og Kort (Cards) */
.card-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-section h2, .form-section h2 {
    margin-bottom: 20px;
    color: #2f2d2a;
    border-bottom: 2px solid #c39852;
    padding-bottom: 5px;
}

.event-card {
    display: flex;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
}

.event-card img {
    width: 150px;
    object-fit: cover;
}

.event-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-info h3 {
    margin-bottom: 5px;
    color: #2f2d2a;
}

.event-info .date {
    font-weight: bold;
    color: #a85645;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.event-listing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-feature {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.event-feature img,
.event-placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.event-placeholder {
    display: grid;
    place-items: center;
    background: #e8e1d5;
    color: #a85645;
    font-size: 3rem;
}

.event-feature h2 {
    margin-bottom: 8px;
    color: #2f2d2a;
}

.event-label {
    margin-bottom: 5px;
    color: #a85645;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-feature .btn {
    margin-top: 15px;
}

.event-page-image {
    display: block;
    width: min(100%, 520px);
    max-height: 360px;
    margin: 15px 0 20px;
    object-fit: cover;
    border-radius: 6px;
}

.event-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.event-gallery a,
.event-gallery img {
    display: block;
    width: 100%;
}

.event-gallery img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

/* Nyheder */
.news-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    color: #2f2d2a;
}

.news-item .meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.news-item-image {
    display: block;
    width: 180px;
    max-width: 100%;
    height: 100px;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 6px;
}

.news-item .read-more {
    display: inline-block;
    margin-top: 5px;
    color: #a85645;
    text-decoration: none;
    font-weight: bold;
}

.news-listing {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.news-feature,
.news-article {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-feature h2,
.news-article h1 {
    margin-bottom: 10px;
    color: #2f2d2a;
}

.news-feature .read-more {
    display: inline-block;
    margin-top: 12px;
}

.news-article {
    max-width: 800px;
    margin-bottom: 40px;
}

.news-article p {
    margin-bottom: 18px;
}

.news-article .event-label {
    margin-bottom: 8px;
}

.news-article-image {
    display: block;
    width: 220px;
    max-width: 100%;
    height: 140px;
    margin-bottom: 18px;
    object-fit: cover;
    border-radius: 6px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.photo-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.photo-gallery a {
    display: block;
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    background: rgba(47, 45, 42, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    margin: 0;
    text-align: center;
}

.lightbox-content img {
    display: block;
    max-width: min(90vw, 1100px);
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.lightbox-content figcaption {
    margin-top: 12px;
    color: #fff;
    font-size: 0.9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-close {
    top: 20px;
    right: 28px;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #c39852;
}

.lightbox-open {
    overflow: hidden;
}

/* Sidebar & Forms */
.sidebar .form-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #c39852;
}

/* Knapper */
.btn {
    display: inline-block;
    background-color: #a85645;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #874638;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
}

.btn-success {
    background-color: #6d8060;
}

.btn-success:hover {
    background-color: #56684c;
}

/* Footer */
footer {
    background-color: #2f2d2a;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 5px;
}

/* Om os - logo link og breadcrumb */
.logo-link {
    color: inherit;
    text-decoration: none;
}

.breadcrumb {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #a85645;
    text-decoration: none;
}

nav ul li a.active {
    color: #a85645;
}

/* Om os - oversigtskort */
.about-links p {
    margin-bottom: 20px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.about-card {
    display: block;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-card h3 {
    color: #2f2d2a;
    margin-bottom: 8px;
}

.about-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.association-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 25px;
}

.association-list li {
    padding: 12px 15px;
    background: #f9f9f9;
    border-left: 4px solid #c39852;
}

/* Bestyrelsen - medlemskort */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.board-member {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.board-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.board-member h3 {
    color: #2f2d2a;
    margin-bottom: 4px;
}

.board-member .role {
    font-weight: bold;
    color: #a85645;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Vedtægter - PDF embed */
.pdf-embed {
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.pdf-embed embed {
    display: block;
}

/* Responsivt design til mobil */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .main-content,
    .sidebar {
        grid-template-columns: 1fr;
    }

    .event-listing {
        grid-template-columns: 1fr;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-feature {
        grid-template-columns: 110px 1fr;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-card img {
        width: 100%;
        height: 150px;
    }

    .association-list {
        grid-template-columns: 1fr;
    }
}
