/* Kompaktes Design für Übungskarten */
#exercise-list, #quest-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.exercise-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.quest-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    margin-right: 8px;
}
.exercise-card h2 { font-size: 16px; font-weight: 500; margin: 0; color: var(--on-surface-color); text-align: left; }
.quest-target {
    font-size: 14px;
    opacity: 0.7;
    margin: 2px 0 0 0;
    padding: 0;
    color: var(--on-surface-color);
    line-height: 1.2;
}
.exercise-card-actions { display: flex; gap: 8px; flex-shrink: 0; }

.exercise-card.highlight {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px -5px rgba(var(--primary-color-rgb), 0.6);
}


/* Styling für erledigte Quests */
.exercise-card.completed {
    opacity: 0.6;
    background-color: var(--background-color);
}
.exercise-card.completed h2 {
    text-decoration: line-through;
}
.exercise-card.completed .action-button {
    background-color: var(--outline-color);
    pointer-events: none;
}

/* Filter Container */
#free-exercise-filters { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 24px; 
    overflow-x: auto; 
    padding-bottom: 8px; 
    align-items: center;
}

/* Hero-Section für Daily Quests */
.hero-quests {
    position: relative;
    min-height: calc(100vh - 60px - 75px - 32px); /* Viewport minus Header (60) minus Bottom-Nav (75) minus top/bottom padding (16+16) */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-quests > h2:first-child {
    margin-top: 8px;
}

.hero-quests #quest-list {
    margin-top: 8px;
}

/* Reveal-Handle am unteren Rand der Hero-Section */
.reveal-handle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: 36px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--on-surface-color);
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.reveal-handle:active { transform: translateX(-50%) translateY(1px); }

.reveal-handle .handle-icon { display: none; }

.reveal-handle::before,
.reveal-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 2px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transform-origin: bottom center;
    animation: handlePulse 2.2s ease-in-out infinite;
}

.reveal-handle::before { transform: translateX(-50%) rotate(45deg); }
.reveal-handle::after { transform: translateX(-50%) rotate(-45deg); }

@keyframes handlePulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* Sanfter Übergang zur Sektion Freies Training */
#free-training-container {
    padding-top: 16px;
    border-top: 1px solid var(--outline-color);
}

.restday-info-box {
    margin-top: 32px;
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(95, 133, 117, 0.10);
    color: var(--on-surface-color);
    text-align: center;
    font-size: 1.1em;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 14px 0 rgba(95,133,117,0.08);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
@media (max-width: 520px) {
  .restday-info-box { font-size: 0.99em; padding: 13px 6vw; }
}