/**
 * Pfad: blog/blog.css
 * Dateiname: blog.css
 * Entwicklungsdatum: 01.04.2026 (aktualisiert: 02.04.2026)
 * Kurzbeschreibung: Styling für den öffentlichen Blog-Bereich (Übersicht & Einzelbeitrag).
 *                   Layout und Farbwelt identisch zur landing.css der Hauptseite.
 *                   Artikel erscheinen untereinander (kein Grid).
 */

/* ========================================
   CSS VARIABLEN (identisch landing.css)
   ======================================== */
:root {
    --primary-color:   #D26A00;
    --primary-dark:    #B85A00;
    --secondary-color: #E67300;
    --accent-color:    #D26A00;
    --text-dark:       #2c3e50;
    --text-light:      #6b7280;
    --bg-light:        #f8f9fa;
    --bg-white:        #ffffff;
    --border-color:    #e5e7eb;
    --shadow-sm:       0 1px 3px rgba(0,0,0,0.1);
    --shadow-md:       0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:       0 10px 30px rgba(0,0,0,0.15);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

html { scroll-behavior: smooth; }

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION (identisch landing.css)
   ======================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.navbar { padding: 1rem 0; }

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i { font-size: 1.5rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover { color: var(--primary-color); }
.nav-link:hover::after { width: 100%; }

.nav-link-active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link-active::after { width: 100%; }

.nav-link-highlight {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
}

.nav-link-highlight::after { display: none; }
.nav-link-highlight:hover { background: var(--primary-dark); }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* ========================================
   BLOG HERO (schlanker Ersatz für Slider)
   ======================================== */
.blog-hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.blog-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
}

.blog-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog-section {
    padding: 50px 0 60px;
}

/* ========================================
   GRUPPE
   ======================================== */
.blog-gruppe {
    margin-bottom: 50px;
}

.blog-gruppe-header {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-color);
}

.blog-gruppe-header h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-gruppe-header h2 i { color: var(--primary-color); }

/* ========================================
   KARTE (untereinander, kein Grid)
   ======================================== */
.blog-card {
    display: flex;
    gap: 0;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: var(--text-dark);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Bild links, maximal 340px breit */
.blog-card-bild {
    width: 340px;
    min-height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

/* Text rechts */
.blog-card-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.blog-card-datum {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-datum i { color: var(--primary-color); }

.blog-card-titel {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
}

.blog-card-teaser {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.blog-card-mehr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 6px;
    transition: gap 0.2s;
}

.blog-card:hover .blog-card-mehr { gap: 10px; }

/* ========================================
   LEER-ZUSTAND
   ======================================== */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    color: var(--text-light);
}

.blog-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.blog-empty h2 { font-size: 1.5rem; color: var(--text-light); margin-bottom: 8px; }

/* ========================================
   EINZELBEITRAG – post.php
   ======================================== */
.blog-post-section {
    padding: 50px 0 60px;
}

.blog-post-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 44px 52px;
    margin-bottom: 32px;
}

.post-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.post-meta-datum,
.post-meta-freizeit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.post-meta-datum {
    background: var(--bg-light);
    color: var(--text-light);
}

.post-meta-freizeit {
    background: rgba(210,106,0,0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.post-meta-aufrufe {
    background: rgba(44, 62, 80, 0.07);
    color: var(--text-light);
    cursor: default;
}

.post-titel {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 18px;
}

.post-teaser {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
    margin-bottom: 30px;
    font-style: italic;
}

.post-titelbild {
    margin-bottom: 34px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.post-titelbild-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-titelbild:hover .post-titelbild-img { transform: scale(1.01); }

/* Markdown-Inhalt */
.post-inhalt {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.post-inhalt h1 { font-size: 1.6rem; margin: 32px 0 12px; color: var(--text-dark); }
.post-inhalt h2 { font-size: 1.35rem; margin: 28px 0 10px; color: var(--text-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 6px; }
.post-inhalt h3 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--text-dark); }
.post-inhalt p  { margin-bottom: 16px; }
.post-inhalt ul,
.post-inhalt ol { margin: 0 0 16px 24px; }
.post-inhalt li { margin-bottom: 6px; }
.post-inhalt strong { font-weight: 700; }
.post-inhalt em     { font-style: italic; color: var(--text-light); }
.post-inhalt a      { color: var(--primary-color); text-decoration: underline; }
.post-inhalt a:hover { color: var(--primary-dark); }
.post-inhalt blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 16px;
    margin: 20px 0;
    background: rgba(210,106,0,0.05);
    border-radius: 0 6px 6px 0;
    color: var(--text-light);
    font-style: italic;
}

/* Galerie */
.post-galerie {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.post-galerie h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-galerie h3 i { color: var(--primary-color); }

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.galerie-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.galerie-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    opacity: 0;
    transition: all 0.25s ease;
}

.galerie-item:hover img { transform: scale(1.06); }
.galerie-item:hover .galerie-overlay { background: rgba(0,0,0,0.35); opacity: 1; }

/* Post-Navigation */
.post-nav { margin-bottom: 40px; }

.post-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-link {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.post-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.post-nav-next { text-align: right; }

.post-nav-label {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-nav-next .post-nav-label { justify-content: flex-end; }

.post-nav-titel {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   DIASHOW MODAL
   ======================================== */
.diashow-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diashow-modal.show { display: flex; opacity: 1; }

.diashow-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1000px;
    width: 95%;
    padding: 10px 0;
}

.diashow-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#diasBild {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    user-select: none;
    display: block;
}

.diashow-counter {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    letter-spacing: 1px;
}

.diashow-nav {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.diashow-nav:hover { background: rgba(255,255,255,0.28); }

.diashow-close {
    position: absolute;
    top: -8px; right: -8px;
    background: rgba(210,50,50,0.88);
    border: none;
    color: #fff;
    font-size: 1rem;
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.diashow-close:hover { background: #c0392b; }

/* ========================================
   FOOTER (identisch landing.css)
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.footer-col p  { line-height: 1.8; opacity: 0.8; }
.footer-col a  { color: white; }
.footer-col a:hover { color: var(--secondary-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

.footer-bottom p { margin: 0.5rem 0; }

.footer-legal-links { margin-top: 0.5rem; font-size: 0.9rem; }
.footer-legal-links a { color: white; opacity: 0.8; }
.footer-legal-links a:hover { opacity: 1; text-decoration: underline; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 70px; left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active { left: 0; }

    .blog-hero h1 { font-size: 2rem; }

    /* Karte: untereinander auf Mobile */
    .blog-card { flex-direction: column; }

    .blog-card-bild {
        width: 100%;
        min-height: 200px;
        max-height: 240px;
    }

    .blog-card-body { padding: 20px; }
    .blog-card-titel { font-size: 1.2rem; }

    .blog-post { padding: 24px 20px; }
    .post-titel { font-size: 1.5rem; }
    .post-nav-inner { grid-template-columns: 1fr; }
    .galerie-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .diashow-nav { width: 36px; height: 36px; font-size: 1rem; }
}