/**
 * style.css - RC-Community
 * Basierend auf rcmarket.de Design
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #f0f0f0;
    padding: 8px 0;
    font-size: 13px;
}

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

.header-top-left a {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
}

.header-top-left a:hover {
    color: #d32f2f;
}

.header-top-left strong {
    color: #333;
    font-size: 13px;
}

.header-top-links a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
}

.header-top-links a:hover {
    color: #d32f2f;
}

.header-top-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.header-top-stats span {
    color: #666;
}

.header-top-stats strong {
    color: #333;
    margin-right: 3px;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.logo-dot {
    color: #d32f2f;
}

.header-user-menu {
    display: flex;
    gap: 20px;
}

.header-user-menu a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.header-user-menu a:hover {
    color: #d32f2f;
}

.header-user-menu i {
    margin-right: 5px;
}

.header-actions {
    display: flex;
    gap: 20px;
}

.header-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header-link:hover {
    color: #d32f2f;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #d32f2f;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    max-width: 1400px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Navigation */
.sidebar {
    background: white;
    border-radius: 4px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.nav-section {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    padding: 0 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    color: #666;
}

.nav-item:hover {
    background: #f5f5f5;
    color: #d32f2f;
}

.nav-item:hover i {
    color: #d32f2f;
}

.nav-item.active {
    background: #fff3f3;
    color: #d32f2f;
    font-weight: 600;
    border-left: 3px solid #d32f2f;
}

.nav-item.active i {
    color: #d32f2f;
}

/* Stats Box */
.stats-box {
    padding: 0 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
}

.stat-item i {
    font-size: 20px;
    color: #d32f2f;
    width: 30px;
    text-align: center;
}

.stat-item div {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 18px;
    color: #333;
}

.stat-item span {
    font-size: 12px;
    color: #999;
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 4px;
    padding: 30px;
}

/* Listings Area */
.listings-area {
    background: white;
    border-radius: 4px;
}

.listings-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-count {
    font-size: 18px;
    font-weight: 600;
}

.sort-dropdown {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
}

.welcome-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.welcome-banner p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.welcome-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: #d32f2f;
}

.btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

.section-header h2 i {
    color: #d32f2f;
    margin-right: 10px;
}

.view-all {
    color: #d32f2f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

/* News Grid (Homepage) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
}

.news-card-category {
    display: inline-block;
    background: #fff3f3;
    color: #d32f2f;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-card-title a {
    color: #333;
    text-decoration: none;
}

.news-card-title a:hover {
    color: #d32f2f;
}

.news-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.news-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.news-card-date {
    font-size: 12px;
    color: #999;
}

/* News Item (Full List) */
.news-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.2s;
}

.news-item:hover {
    background: #fafafa;
}

.news-image {
    width: 200px;
    height: 150px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 20px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image i {
    font-size: 48px;
    color: #ccc;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.separator {
    color: #ccc;
}

.news-category {
    background: #fff3f3;
    color: #d32f2f;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.news-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-title a:hover {
    color: #d32f2f;
}

.news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
}

.read-more {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

.news-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.news-stats span i {
    margin-right: 5px;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header h1 i {
    color: #d32f2f;
    margin-right: 10px;
}

.page-header p {
    font-size: 16px;
    color: #666;
}

/* Admin Actions */
.admin-actions {
    margin-bottom: 20px;
    text-align: right;
}

/* Home Sections */
.home-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.home-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

/* Event List */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #d32f2f;
}

.event-date {
    background: #d32f2f;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
}

.event-day {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.event-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.event-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.event-info p {
    font-size: 13px;
    color: #666;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h2, .empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}

.page-btn:hover {
    background: #f5f5f5;
}

.page-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: white;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #d32f2f;
}

.footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .home-sections {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
    }
    
    .search-bar {
        width: 100%;
        max-width: none;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Forum Styles */
.forum-category {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

.forum-category:last-child {
    border-bottom: none;
}

.forum-category-header {
    font-size: 16px;
    font-weight: 600;
    color: #d32f2f;
    padding: 0 20px 15px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 15px;
}

.forum-category-header i {
    margin-right: 10px;
}

.forum-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.forum-item:hover {
    background: #fafafa;
}

.forum-item:last-child {
    border-bottom: none;
}

.forum-icon {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.forum-icon i {
    font-size: 20px;
    color: #999;
}

.forum-details {
    flex: 1;
    min-width: 0;
}

.forum-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.forum-title a {
    color: #333;
    text-decoration: none;
}

.forum-title a:hover {
    color: #d32f2f;
}

.forum-description {
    font-size: 13px;
    color: #999;
}

.forum-stats {
    display: flex;
    gap: 20px;
    margin: 0 20px;
}

.forum-stat {
    text-align: center;
}

.forum-stat strong {
    display: block;
    font-size: 16px;
    color: #333;
}

.forum-stat span {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.forum-last {
    width: 200px;
    font-size: 13px;
}

.forum-last-post {
    margin-bottom: 5px;
}

.forum-last-post a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.forum-last-post a:hover {
    color: #d32f2f;
}

.forum-last-meta {
    color: #999;
    font-size: 12px;
}

.forum-last-meta strong {
    color: #666;
}

/* Profil Styles */
.profil-header {
    display: flex;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #e5e5e5;
    gap: 20px;
}

.profil-avatar {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profil-avatar i {
    font-size: 60px;
    color: #ccc;
}

.profil-info {
    flex: 1;
}

.profil-username {
    font-size: 28px;
    margin-bottom: 10px;
}

.profil-meta {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.profil-meta i {
    margin-right: 5px;
    color: #999;
}

.profil-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    background: #f9f9f9;
}

.profil-tab {
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.profil-tab:hover {
    color: #d32f2f;
    background: #fff;
}

.profil-tab.active {
    color: #d32f2f;
    border-bottom-color: #d32f2f;
    background: white;
}

.profil-content {
    padding: 30px;
}

.profil-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.profil-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.profil-box h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.profil-box h3 i {
    color: #d32f2f;
    margin-right: 8px;
}

.profil-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.profil-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span {
    color: #666;
    font-size: 14px;
}

.stat-row strong {
    color: #333;
    font-size: 14px;
}

.profil-section {
    margin-bottom: 30px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.car-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.car-image {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.car-image i {
    font-size: 40px;
    color: #ccc;
}

.car-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.car-info p {
    font-size: 12px;
    color: #999;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.activity-item > i {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d32f2f;
    font-size: 18px;
}

.activity-content {
    flex: 1;
    font-size: 14px;
}

.activity-content strong {
    color: #333;
}

.activity-content a {
    color: #d32f2f;
    text-decoration: none;
}

.activity-content a:hover {
    text-decoration: underline;
}

.activity-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Homepage Styles */
.welcome-banner {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 0;
    text-align: center;
    margin-bottom: 0;
}

.welcome-banner h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-banner p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Kompakter Welcome Banner */
.welcome-banner-compact {
    background: #f9f9f9;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e5e5;
}

.welcome-text h1 {
    font-size: 22px;
    color: #333;
    margin-bottom: 5px;
}

.welcome-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.welcome-stat {
    text-align: center;
}

.welcome-stat strong {
    display: block;
    font-size: 32px;
    margin-bottom: 5px;
}

.welcome-stat span {
    font-size: 13px;
    opacity: 0.9;
}

.home-section {
    padding: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-news-card {
    display: flex;
    gap: 15px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.home-news-date {
    background: #d32f2f;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
}

.news-day {
    display: block;
    font-size: 20px;
    font-weight: bold;
}

.news-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
}

.home-news-content h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.home-news-content h4 a {
    color: #333;
    text-decoration: none;
}

.home-news-content h4 a:hover {
    color: #d32f2f;
}

.home-news-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.home-news-meta {
    font-size: 11px;
    color: #999;
}

.home-news-meta span {
    margin-right: 10px;
}

.home-split-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
}

.home-box {
    padding: 30px;
    border-right: 1px solid #e5e5e5;
}

.home-box:last-child {
    border-right: none;
}

/* Forum Preview */
.forum-preview-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-preview-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
}

.forum-preview-item > i {
    color: #d32f2f;
    font-size: 18px;
    margin-top: 2px;
}

.forum-preview-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.forum-preview-content h4 a {
    color: #333;
    text-decoration: none;
}

.forum-preview-content h4 a:hover {
    color: #d32f2f;
}

.forum-preview-meta {
    font-size: 12px;
    color: #999;
}

/* Kleinanzeigen Preview */
.kleinanzeigen-preview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kleinanzeigen-preview-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
}

.kleinanzeigen-preview-image {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kleinanzeigen-preview-image i {
    font-size: 24px;
    color: #ccc;
}

.kleinanzeigen-preview-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.kleinanzeigen-preview-content h4 a {
    color: #333;
    text-decoration: none;
}

.kleinanzeigen-preview-content h4 a:hover {
    color: #d32f2f;
}

.kleinanzeigen-preview-price {
    font-size: 15px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 3px;
}

.kleinanzeigen-preview-meta {
    font-size: 12px;
    color: #999;
}

/* Events Preview */
.events-preview-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-preview-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
}

.event-preview-date {
    background: #d32f2f;
    color: white;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
}

.event-preview-day {
    display: block;
    font-size: 20px;
    font-weight: bold;
}

.event-preview-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
}

.event-preview-content h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.event-preview-content h4 a {
    color: #333;
    text-decoration: none;
}

.event-preview-content h4 a:hover {
    color: #d32f2f;
}

.event-preview-meta {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* Galerie Preview */
.galerie-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.galerie-preview-item {
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.galerie-preview-item:hover {
    transform: scale(1.05);
}

.galerie-preview-item > i {
    font-size: 40px;
    color: #ccc;
}

.galerie-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.galerie-preview-item:hover .galerie-preview-overlay {
    opacity: 1;
}

.galerie-preview-info {
    color: white;
    font-size: 11px;
    line-height: 1.4;
}

.galerie-preview-info strong {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}

/* Location & Event Items */
.location-item, .event-item-large {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.location-image, .event-image {
    width: 200px;
    height: 150px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.location-image i, .event-image i {
    font-size: 48px;
    color: #ccc;
}

.location-badges, .event-badges, .listing-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-offroad { background: #ff9800; color: white; }
.badge-onroad { background: #2196f3; color: white; }
.badge-indoor { background: #9c27b0; color: white; }
.badge-outdoor { background: #4caf50; color: white; }
.badge-race { background: #f44336; color: white; }
.badge-meeting { background: #03a9f4; color: white; }
.badge-workshop { background: #ff5722; color: white; }
.badge-training { background: #8bc34a; color: white; }
.badge-featured { background: #ffc107; color: #333; }
.badge-new { background: #4caf50; color: white; }
.badge-used { background: #ff9800; color: white; }
.badge-top { background: #d32f2f; color: white; }

.location-details, .event-details, .listing-details {
    flex: 1;
}

.location-title, .event-title, .listing-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.location-title a, .event-title a, .listing-title a {
    color: #333;
    text-decoration: none;
}

.location-title a:hover, .event-title a:hover, .listing-title a:hover {
    color: #d32f2f;
}

.location-meta, .event-meta, .listing-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.location-meta span, .event-meta span, .listing-meta span {
    margin-right: 15px;
}

.location-rating {
    color: #ffa000;
}

.location-rating i {
    font-size: 14px;
}

.location-description, .event-description, .listing-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.location-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag, .tag, .listing-tags .tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.location-actions, .event-footer, .listing-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.event-date-box {
    background: #d32f2f;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
}

.event-day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    margin-top: 5px;
}

.event-year {
    display: block;
    font-size: 11px;
    margin-top: 3px;
    opacity: 0.8;
}

.event-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    justify-content: space-between;
}

.event-organizer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.event-organizer img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Listing (Kleinanzeigen) specific */
.listing-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.listing-image {
    width: 150px;
    height: 150px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.listing-image i {
    font-size: 48px;
    color: #ccc;
}

.listing-price {
    font-size: 24px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 10px;
}

.price-vhb {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #d32f2f;
    color: white;
}

.btn-primary:hover {
    background: #b71c1c;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.btn-small {
    padding: 8px 15px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Filter */
.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
    cursor: pointer;
}

.filter-checkbox input {
    margin-right: 8px;
}

.filter-select, .price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-inputs input {
    flex: 1;
}

.count {
    color: #999;
    font-size: 12px;
    margin-left: auto;
}

/* Forum Activity Items (ohne Bild) */
.forum-activity-item {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.2s;
}

.forum-activity-item:hover {
    background: #fafafa;
}

.forum-activity-content {
    display: flex;
    flex-direction: column;
}

.forum-activity-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.forum-activity-title a {
    color: #333;
    text-decoration: none;
}

.forum-activity-title a:hover {
    color: #d32f2f;
}

/* ========================================
   3-SPALTEN-LAYOUT
   ======================================== */

.main-content-3col {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 20px;
}

.sidebar-left {
    background: white;
    border-radius: 4px;
}

.sidebar-right {
    background: white;
    border-radius: 4px;
}

.content-middle {
    min-width: 0;
}

.sidebox-content {
    padding: 15px;
    font-size: 13px;
}

.top-user-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.top-user-item:last-child {
    border-bottom: none;
}

.top-user-name {
    color: #333;
}

.top-user-points {
    color: #d32f2f;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content-3col {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
}