/* blog.css */

.blog-container {
    padding: 2rem 0;
    color: white;
}

.blog-header {
    text-align: center;
    margin-bottom: 5rem;
}

.posts-feed {
    max-width: 800px;
    margin: 0 auto;
}

.post-full {
    margin-bottom: 6rem;
}

.post-divider {
    margin-top: 4rem;
    height: 1px;
    background: linear-gradient(to right, transparent, #333, transparent);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-category {
    color: #FF6B35;
    font-weight: bold;
    text-transform: uppercase;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-link {
    color: #FF6B35;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Full Post View */
.post-full {
    max-width: 800px;
    margin: 0 auto;
}

.btn-back {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-back:hover {
    color: #FF6B35;
}

.post-full-header {
    margin-bottom: 2rem;
}

.post-full-header h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for tables */
.post-content::-webkit-scrollbar {
    height: 8px;
}

.post-content::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.post-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.post-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.post-content table {
    min-width: 100%;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .post-full-header h1 {
        font-size: 1.8rem;
    }
}

/* Event Table Styles */
.event-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    display: table;
}

.event-table th,
.event-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
    white-space: nowrap;
}

.event-table th {
    background-color: #2a2a2a;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-table td {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.event-table tr:last-child td {
    border-bottom: none;
}

/* Einheitliche Zeilenfarbe für alle Tabellen */
.event-table tbody tr {
    background-color: #1e1e1e;
}

.event-table tbody tr:hover {
    background-color: #2a2a2a;
}

.event-table a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.event-table a:hover {
    color: #ff8c5a;
    text-decoration: underline;
}

.event-table a:visited {
    color: #cc8855;
}

@media (max-width: 768px) {
    .event-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    .event-table th,
    .event-table td {
        padding: 0.5rem 0.75rem;
    }
    
    .date-col {
        min-width: 100px;
    }
    
    .event-col {
        min-width: 200px;
    }
    
    .location-col {
        min-width: 150px;
    }
    
    .type-col {
        min-width: 90px;
    }
}
