/* ======================================================
   PAGES.CSS  –  Content Page Styles
   ====================================================== */

/* --- BASE --- */
body {
    background-color: #f4f6f9;
    color: var(--text, #222);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* --- LAYOUT --- */
.mainContent {
    display: grid;
    gap: 2rem;
    max-width: 840px;
    margin: 170px auto 80px auto;
    padding: 0 24px;
}


/* --- TYPOGRAPHIC SCALE --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--jr, #325382);
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    border-bottom: 3px solid var(--jr, #325382);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #546a8b;
}

h5,
h6 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}


/* --- BODY TEXT --- */
p {
    font-size: 1.0625rem;
    /* 17px */
    font-weight: 400;
    color: #3a3a3a;
    line-height: 1.85;
    margin: 0;
    text-align: left;
    /* justify can hurt readability on narrow columns */
    max-width: 68ch;
    /* optimal line length for readability */
}


/* --- LINKS --- */
a:not(header a):not(.menu-item):not(.footer-link):not(.imgLink):not(.blog-card):not(.sidebar a) {
    color: var(--jr, #325382);
    text-decoration: none;
    border-bottom: 1.5px solid #2a4570;
    transition: border-width 0.2s ease;
}

a:not(header a):not(.menu-item):not(.footer-link):not(.imgLink):not(.blog-card):not(.sidebar a):hover {
    border-bottom-width: 2px;
}


/* --- IMAGES --- */
.imgSingle {
    display: flex;
    justify-content: center;
}

.imgSingle>.imgLink>img {
    max-height: 480px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.imgSingle>.imgLink>img:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}

/* Gallery opacity (reset once loaded by JS) */
.justified {
    opacity: 0;
}


/* --- IFRAME / EMBED --- */
map-bs {
    width: 100%;
    border: none;
    border-radius: 10px;
    height: clamp(300px, 50vh, 420px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}


/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .mainContent {
        margin-top: 100px;
        padding: 0 16px;
        gap: 1.5rem;
    }

    p {
        max-width: 100%;
    }
}

/* --- BLOG OVERVIEW GRID --- */
.blog-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    padding: 0;
    list-style: none;
}

@media (max-width: 900px) {
    .blog-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .blog-overview-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: inherit;
    border-bottom: none;
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-4px);
    color: inherit;
    border-bottom-color: transparent;
}

.blog-card-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9ecf0;
    flex-shrink: 0;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 1.1rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--jr, #325382);
    line-height: 1.3;
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-overview-empty {
    color: #888;
    font-style: italic;
    margin: 2rem 0;
}

/* Event card date badge */
.blog-card-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--jr, #325382);
    opacity: 0.75;
    margin-bottom: 0.15rem;
}

/* Branded placeholder when no image is available */
.blog-card-placeholder {
    background: linear-gradient(135deg, var(--jr, #325382) 0%, #1e3a5f 100%);
}

/* Map thumbnails: no zoom-on-hover (static image) */
.blog-card-map-wrap img {
    transition: none;
}

.blog-card:hover .blog-card-map-wrap img {
    transform: none;
}

div.justified-gallery {
    width: calc(100vw - 2 * 24px);
    max-width: calc(840px - 2 * 24px);
}

hr {
    width: 95%;
}

.imgSingle.noGallery img {
    max-width: 100%;
    max-height: 100%;
    transition: all 0.5s ease;
}

.imgSingle.noGallery img:hover {
    transform: scale(1.05);
}

.imgSingle.noGallery {
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 16px;
}

/* --- MAP OVERLAY --- */
.map-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.map-overlay-ort {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 24px 8px 16px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-size: 1.15rem;
    font-weight: 500;
    color: #3a3a3a;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 2px solid var(--jr) !important;
}