body { 
    font-family: sans-serif;
    padding: 20px;
    background: #f0f0f0; 
}
        
.card-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; 
}
        
.card { 
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px #ccc;
    text-align: center;
    text-decoration: none;
    color: black;
    transition: 0.2s; 
}
        
.card:hover { 
    background: #f7f7f7; 
}

h1 {
    margin-top: 0;
}
nav {
    margin-bottom: 20px;
    text-decoration: none;
}
nav a {
    margin-right: 15px;
    text-decoration: none;
    color: #333;
}
nav a:hover {
    text-decoration: none;
}

a {
    color: #007BFF; /* Primäre Linkfarbe */
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

/* Unterstrich mit Animation */
a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Hover-Effekt */
a:hover {
    color: #0056b3; /* Dunkleres Blau bei Hover */
}

a:hover::after {
    transform: scaleX(1);
}

.subtask-box {
    background: white;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.subtask-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.subtask-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.subtask-row input[type="number"] {
    width: 70px;
    padding: 6px;
    font-size: 1em;
}

.subtask-row input[type="checkbox"] {
    transform: scale(1.3);
    cursor: pointer;
}

.done-info {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}



.badge-animated-danger {
    background: linear-gradient(270deg, #dc3545, #ff9800);
    background-size: 400% 400%;
    color: white;
    animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dropdown-menu {
    min-width: 180px;
    font-size: 0.9rem;
    z-index: 9999;
}

.dropdown-menu li a,
.dropdown-menu li button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-sm.dropdown-toggle {
    min-width: 120px;
    white-space: nowrap;
}