﻿.auto-style2 {
    text-align: center;
}

/* =========================================================
   Exaktes 4-Spalten-Grid (Ermöglicht 3 Kacheln pro Reihe)
   ========================================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
    align-items: start;
}

.col-aktuelles { grid-column: span 2; }
.col-letztenachrichten { grid-column: span 1; }
.col-socialmedia { grid-column: span 1; }

.col-spielplan { grid-column: span 2; }
.col-tabelle { grid-column: span 1; }
.col-fanshop { grid-column: span 1; }

@media screen and (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-aktuelles, .col-spielplan, 
    .col-letztenachrichten, .col-socialmedia, 
    .col-tabelle, .col-fanshop { 
        grid-column: span 2; 
    }
}

@media screen and (max-width: 736px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .col-aktuelles, .col-spielplan, 
    .col-letztenachrichten, .col-socialmedia, 
    .col-tabelle, .col-fanshop { 
        grid-column: span 1; 
    }
}

.tile-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.tile-card:hover {
    transform: translateY(-6px);
    border-color: #03699c;
    box-shadow: 0 12px 24px rgba(3, 105, 156, 0.15);
}

.tile-card h3 {
    font-size: 1.15rem;
    color: #03699c;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    text-align: left;
}

.tile-card img {
    max-height: 500px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f8fafc;
}

/* Spezial-Anpassung für die Aktuelles-Kachel */
.tile-card.col-aktuelles {
    padding: 20px 0;
}

.tile-card.col-aktuelles > div > h3,
.tile-card.col-aktuelles > div > h4,
.tile-card.col-aktuelles > div > p,
.tile-card.col-aktuelles > footer {
    padding-left: 20px;
    padding-right: 20px;
}

.tile-card.col-aktuelles .image.featured {
    margin-left: 0;
    margin-right: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    background-color: #f8fafc;
    text-align: center;
}

.tile-card.col-aktuelles .image.featured img {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    display: block;
    background-color: #f8fafc;
}

/* Nachrichten Vorschau-Kachel */
.news-item-preview {
    padding: 8px 0;
    border-bottom: 1px dashed #cbd5e1;
}
.news-item-preview:last-child {
    border-bottom: none;
}
.news-item-preview h5 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #1e293b;
}
.news-item-preview p {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0;
}

/* Fanshop Spezial-Kachel */
.shop-card {
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.shop-card img {
    transition: transform 0.3s ease;
}

.shop-card:hover img {
    transform: scale(1.03);
}

.tile-card footer {
    margin-top: 15px;
    padding-top: 10px;
}