.unpaid-info {
    text-align: right;
    font-size: 1.2em;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 20px;
}

.link-menu {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.link-menu .app-button {
    color: #333;
    background-color: #f0f0f0;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: background-color 0.2s ease;
}

.link-menu .app-button.active {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

.link-menu .app-button:not(.active):hover {
    background-color: #e2e6ea;
}

.termin-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.termin-actions {
    text-align: right;
}

.termin-datum {
    font-weight: bold;
}

.app-button.pending {
    background-color: #dc3545;
    color: white;
}

.app-button.not-booked {
    background-color: #28a745;
    color: white;
}

.confirmed-text {
    font-weight: bold;
    background-color: white;
    color: #28a745;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    cursor: not-allowed;
}

.week-group {
    margin-bottom: 20px;
}

/* =============================================== */
/* ## ZENTRALE REGELN FÜR MOBILE GERÄTE ## */
/* =============================================== */
@media (max-width: 768px) {
    
    .container { width: 95%; padding: 10px; }
    h1, .page-heading { font-size: 1.5em; }
    h2 { font-size: 1.3em; }
    h3 { font-size: 1.1em; }
    
    header .logo { height: 50px; }
    header .login-link, header .app-button { padding: 8px 12px; font-size: 0.9em; }

    .spiel-box p, .spiel-box h4 { font-size: 0.95em; }
    
    .link-menu {
        flex-direction: column;
        /* GEÄNDERT: 'center' sorgt für die korrekte Zentrierung */
        align-items: center; 
    }
    .link-menu .app-button {
        text-align: center;
        margin-bottom: 5px;
        /* ENTFERNT: Die festen Breiten-Angaben wurden gelöscht. */
        /* Die Buttons sind jetzt nur so breit, wie sie sein müssen. */
    }
    .stats-container { flex-direction: column; }

    .termin-box { flex-direction: column; align-items: stretch; gap: 10px; }
    .termin-actions { width: 100%; }
    .termin-actions form, .termin-actions .app-button, .termin-actions .confirmed-text { width: 100%; box-sizing: border-box; }
}