/* ================================================
   08er-Vereinsportal – Globales Theme (Bootstrap 5)
*/
.badge.bg-success {
    background-color: #198754 !important;
}

/* --- Links ------------------------------------------ */
a {
    color: var(--club-blue);
}
a:hover {
    text-decoration: underline;
}

/* ================================================ */

/* --- Grundfarben ----------------------------------- */
:root {
    --club-blue: #0070D1;
    --club-gray: #333333;
    --club-light: #f5f5f5;
}

/* --- Seitenhintergrund --- */
body {
    background-color: var(--club-light);
    color: var(--club-gray);
}

/* --- Header ---------------------------------------- */
header {
    background: white;
    border-bottom: 5px solid var(--club-blue);
    padding: 12px 0;
}

header h2 {
    color: var(--club-gray);
    margin: 0;
    font-weight: 600;
}

/* --- Footer ---------------------------------------- */
footer {
    background: var(--club-blue);
    color: white;
    padding: 10px;
    text-align: center;
    margin-top: 30px;
}

/* --- Buttons ---------------------------------------- */
.btn-primary {
    background: var(--club-blue) !important;
    border-color: var(--club-blue) !important;
}

.btn-primary:hover {
    background: #005bb3 !important;
}

/* --- Cards ------------------------------------------ */
.card {
    border: none;
    border-left: 5px solid var(--club-blue);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card-header {
    background: var(--club-blue) !important;
    color: white !important;
}

/* --- Tabellen --------------------------------------- */
.table thead th {
    background: var(--club-blue);
    color: white;
}


.news-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 10px 0;
}

.news-content p {
    line-height: 1.6;
}

.news-card {
    background: #ffffff;
    border-left: 6px solid #0070D1;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.news-meta {
    color: #666;
    margin-bottom: 10px;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    background: #ffffff;
    border-left: 6px solid #0070D1;
    padding: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.event-card h3 {
    margin-top: 0;
    color: #0070D1;
}

.event-date {
    font-size: 0.95rem;
    color: #555;
}


.event-card .btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    font-weight: 600;
    background: #0070D1;
    color: #ffffff !important;
    border-radius: 6px;
    text-decoration: none;
}

.event-card .btn:hover {
    background: #005bb3;
}

.service-matrix {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.service-matrix th,
.service-matrix td {
    border: 1px solid #ddd;
    padding: 6px;
    vertical-align: top;
}

.service-matrix th {
    background: #f0f0f0;
    text-align: center;
    font-weight: 600;
}

.service-entry {
    background: #0070D1;
    color: white;
    padding: 4px;
    margin-bottom: 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.2;
}


.service-entry-link:hover .service-entry {
    background: #005bb3;
    cursor: pointer;
}


.service-entry-link {
    position: relative;
    text-decoration: none;
    display: block;
}

.service-entry-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.service-entry-link:hover::after {
    opacity: 1;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* NEU-Hervorhebung */
#ticker-bar.ticker-new {
    background-color: #fff3cd; /* leichtes Gelb */
}

/* Optional: kleiner NEU-Badge */
.ticker-badge {
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
}

#ticker-bar {
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ticker-label {
    font-weight: 600;
    color: #0070D1;
}

.ticker-link {
    margin-left: auto;
    font-size: 0.85rem;
}


@media print {
    header, footer, .calendar-nav, button {
        display: none !important;
    }
}


@media print {
    header, nav, footer, .btn {
        display: none !important;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    table th, table td {
        border: 1px solid #000;
        padding: 6px;
    }

    h2 {
        margin-top: 0;
    }
}
