/* Grundejerforeningen Borrehøj - Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #2a7ae2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Banner */
.site-header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-banner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    height: 200px;
}

.header-banner a {
    display: block;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.site-logo {
    max-height: 60px;
    width: auto;
}

.site-logo-placeholder {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.site-title-group {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: 1.3rem;
    font-weight: 700;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

/* Navigation */
.main-nav {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #333;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #f0f0f0;
    text-decoration: none;
}

/* Dropdown */
.has-dropdown > a::after {
    content: ' \25BC';
    font-size: 0.7em;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    list-style: none;
    z-index: 1000;
}

.dropdown a {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.has-dropdown:hover .dropdown {
    display: block;
}

/* Main Content */
.site-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-area {
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Articles */
article {
    margin-bottom: 40px;
}

article:last-child {
    margin-bottom: 0;
}

article + article {
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-meta .icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.event-date {
    font-weight: 700;
}

.event-date.passed {
    text-decoration: line-through;
}

.event-passed {
    color: #888;
    font-style: italic;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.2;
    width: 60%;
    min-width: 300px;
    text-align: justify;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content h2 {
    font-size: 1.4rem;
    margin: 1.5em 0 0.5em;
    text-align: left;
}

.entry-content h3 {
    font-size: 1.2rem;
    margin: 1.5em 0 0.5em;
    text-align: left;
}

.entry-content ul,
.entry-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.image-placeholder {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    padding: 40px;
    margin: 20px 0;
    border: 2px dashed #ccc;
}

.featured-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.featured-image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 330px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border: 2px dashed #ccc;
    margin-bottom: 20px;
}

/* Document Lists */
.document-section {
    margin-bottom: 30px;
}

.document-section h2 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    margin-bottom: 10px;
}

.document-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f8f8f8;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.document-list a:hover {
    background-color: #e8e8e8;
    text-decoration: none;
}

.document-list .pdf-icon::before {
    content: '\1F4C4';
    margin-right: 5px;
}

/* Contact Page */
.contact-info {
    margin-bottom: 30px;
}

.contact-email {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.board-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.board-member {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.board-member h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.board-member .role {
    font-weight: 600;
    color: #2a7ae2;
    display: block;
    margin-bottom: 5px;
}

.board-member .address,
.board-member .phone {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-container p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-container a {
    color: #9bc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-banner {
        height: 100px;
    }

    .banner-image {
        height: 150px;
        margin-top: -25px;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .site-branding {
        flex: 1;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 250px;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        padding: 15px 20px;
    }

    .has-dropdown > a::after {
        float: right;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        background-color: #f8f8f8;
        display: none;
    }

    .dropdown.active {
        display: block;
    }

    .dropdown a {
        padding-left: 40px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-description {
        font-size: 0.8rem;
    }

    .content-area {
        padding: 20px;
    }

    .entry-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-branding {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-logo-placeholder {
        width: 50px;
        height: 50px;
    }

    .entry-title {
        font-size: 1.3rem;
    }

    .featured-image-placeholder {
        height: 200px;
    }

    .contact-email a {
        display: block;
        margin-top: 5px;
    }
}
