/* Startseite */

.home-main {
    padding-top: 0;
    padding-bottom: 40px;
    flex: 1;
}

/* --- "Next Race"-Banner --- */
.next-event-banner {
    background: var(--msv-yellow);
    color: var(--msv-blue);
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
    border-radius: 8px;
    max-width: 800px;
    margin: -25px auto 30px auto;
}
.next-event-banner span {
    display: inline-block;
    background: var(--msv-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.next-event-banner a {
    color: var(--msv-blue);
    text-decoration: underline;
    margin-left: 15px;
    font-size: 0.95rem;
}
.next-event-banner a:hover {
    color: var(--link-red);
}
.next-event-spacer {
    margin-top: 40px;
}

@media (max-width: 600px) {
    .next-event-banner {
        font-size: 1rem;
        padding: 12px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: -20px 10px 20px 10px;
    }
    .next-event-banner span { margin-right: 0; }
    .next-event-banner a { margin-left: 0; }
}

.home-separator {
    height: 3px;
    background: var(--msv-blue);
    width: 100%;
    margin-top: 10px;
    margin-bottom: 30px;
    border-radius: 2px;
    opacity: 0.8;
}

/* --- Layout: News links, Sidebar rechts --- */
.home-layout {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 992px) {
    .home-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    margin: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Galerie-Teaser */
.gallery-teaser-card {
    border-top: 4px solid var(--msv-yellow);
    padding: 0;
}
.gallery-teaser-header {
    background: var(--msv-blue);
    color: #fff;
    padding: 12px 15px;
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
}
.gallery-teaser-content {
    padding: 15px 20px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gallery-teaser-text {
    margin-bottom: 20px;
    color: #555;
    font-size: 0.95rem;
    text-align: center;
}
.gallery-teaser-text strong {
    color: var(--msv-blue);
}

/* Fahrer-Teaser */
.driver-teaser-card {
    border-bottom: 4px solid var(--msv-yellow);
}
.driver-teaser-bg {
    background: var(--msv-blue);
    height: 80px;
    width: 100%;
}
.driver-teaser-header {
    color: #fff;
    text-align: center;
    padding-top: 10px;
    margin: 0;
    font-size: 1.1rem;
    z-index: 2;
    position: relative;
}
.driver-teaser-content {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -30px;
}
.driver-teaser-name {
    color: var(--msv-blue);
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-align: center;
}
.driver-teaser-class {
    display: inline-block;
    background: var(--msv-yellow);
    color: var(--msv-blue);
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.teaser-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s;
    border-radius: 4px;
}
.teaser-portrait {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    margin: 0 auto 15px auto;
    background: #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    z-index: 5;
}
.teaser-portrait--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}
.teaser-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.teaser-link:hover .teaser-image,
.teaser-link:hover .teaser-portrait {
    transform: scale(1.05);
}
.teaser-read-more {
    margin-top: auto;
    display: inline-block;
    padding: 8px 20px;
    background: var(--msv-yellow);
    color: var(--msv-blue);
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
    align-self: center;
    transition: background 0.2s;
}
.teaser-link:hover .teaser-read-more {
    background: var(--msv-blue);
    color: var(--msv-yellow);
}

/* --- Archiv-Button --- */
.archive-link-container {
    text-align: center;
    margin-top: 40px;
}
.archive-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--msv-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.archive-button:hover {
    background-color: var(--link-red);
    transform: translateY(-2px);
    color: #fff;
}
