/* =============================================================
   1. BLOG / ARCHIV / COURSES / INFO SHARED LAYOUT
   ============================================================= */
.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.blog-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.blog-content--archive {
    margin-top: -20px;
}

.blog-content > .anchor-point:first-child {
    display: none;
}

.anchor-point {
    height: 0;
    scroll-margin-top: 100px;
}

.blog-post {
    scroll-margin-top: 100px;
}

/* --- Abstand der Boxen auf der Infoseite --- */
.blog-post-info {
    margin-bottom: 20px;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 12px;
    font-size: 0.8em;
    color: #999;
}

.post-nav:empty {
    display: none;
}

.blog-text {
    margin-bottom: 15px;
}

.blog-text p.external-link {
    margin-top: 10px;
}

.external-link {
    margin-top: 20px;
}

.external-link a {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.95em;
    color: #6b7770;
    text-decoration: underline;
    transition: color .2s ease;
}

.external-link a:hover {
    color: #000;
}

/* =============================================================
   2. BLOG IMAGES
   ============================================================= */
.blog-post > img {
    width: auto;
    max-width: 100%;
    height: auto;
    align-self: flex-start;
}

.blog-post > img.story-big-pic,
.blog-post > img.is-large {
    width: 100%;
}

.blog-text img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 4px;
    vertical-align: middle;
    border-radius: 0;
}

.blog-text img[src*="smilies"] {
    max-width: 24px;
    max-height: 24px;
}

/* =============================================================
   3. SIDEBAR LISTS
   ============================================================= */
.blog-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.blog-list li {
    padding: 12px 0;
    border-bottom: none;
}

.blog-list li + li {
    border-top: 1px solid #e0e0e0;
}

.blog-list a {
    display: block;
    font-size: 1.1em;
    text-transform: uppercase;
    font-weight: bold;
}

.blog-list span {
    display: block;
    margin-top: 3px;
    font-size: 0.85em;
    color: #999;
}

.blog-sidebar {
    position: sticky;
    top: 80px;
    min-width: 0;
}

.blog-sidebar {
    min-width: 0;
}

.blog-sidebar .sidebar-box {
    position: sticky;
    top: 80px;
}

/* =============================================================
   4. COURSES
   ============================================================= */
.course-box .post-nav {
    justify-content: flex-start;
}

.course-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 15px;
    font-weight: bold;
}

.course-status img {
    width: 32px;
    height: 32px;
    margin: 0;
    flex: 0 0 auto;
    max-width: none;
}

.yes {
    color: #27ae60;
	font-size: 1.4em;
    font-weight: bold;
}

.no {
    color: #c0392b;
	font-size: 1.4em;
    font-weight: bold;
}

.event-status {
	padding-top:30px;
}

/* =============================================================
   5. GALLERY
   ============================================================= */
.gallery-list {
    display: grid;
    gap: 30px;
}

.gallery-box {
    padding: 0;
    overflow: hidden;
    scroll-margin-top: 220px;
}

.gallery-toggle {
    width: 100%;
    padding: 20px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;

    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr auto;
    gap: 30px;
    align-items: center;
}

/* TEXT */
.gallery-titleblock {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.gallery-title {
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
}

.gallery-subtitle {
    font-size: 1em;
    text-transform: uppercase;
    color: #999;
}

/* PREVIEW THUMBS */
.gallery-preview {
    display: flex;
    justify-self: center;
    align-items: center;
    gap: 8px;

    width: 100%;
}

.gallery-preview-thumb {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 6px;
    flex: 0 0 58px;
}

.gallery-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ARROW */
.gallery-arrow {
    font-size: 2em;
    line-height: 1;
    justify-self: end;

    transform: rotate(0deg);
    transition: transform .2s ease;
}

.gallery-box.is-open .gallery-arrow {
    transform: rotate(90deg);
}

/* CONTENT */
.gallery-content {
    display: none;
    padding: 0 20px 20px;
}

.gallery-box.is-open .gallery-content {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .2s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.04);
}

/* =============================================================
   MOBILE
   ============================================================= */
/* Miniaturen ausblenden, sobald Galerie geöffnet ist */
.gallery-box.is-open .gallery-preview {
    display: none;
}

/* Tablet / Smartphone */
@media (max-width: 700px) {

    .gallery-toggle {
        grid-template-columns: 1fr auto;
        gap: 12px 18px;
        align-items: start;
    }

    .gallery-titleblock {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

.gallery-preview {
    grid-column: 1;
    grid-row: 2;

    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;

    width: 100%;
    overflow: hidden;
    padding-top: 6px;
}

.gallery-arrow {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
}

.gallery-preview-thumb {
    width: clamp(44px, 18vw, 56px);
    height: clamp(44px, 18vw, 56px);
    flex: 0 0 clamp(44px, 18vw, 56px);
}



}