/* ==========================================================
   strecken.css - Styles spezifisch für Streckenempfehlung (strecken.php)
   ========================================================== */

/* --- Level Groups --- */
.level-group {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.level-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.level-desc { font-weight: 400; color: var(--muted); font-size: 0.82rem; }

/* --- Route Cards --- */
.route-card-wrapper {
    padding: 0 18px;
    margin-bottom: 8px;
}
.route-card-wrapper:first-child {
    padding-top: 12px;
}
.route-card-wrapper:last-child {
    margin-bottom: 0;
    padding-bottom: 12px;
}
.route-card {
    background: white;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
}
.route-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: #f8fafc;
}

.route-preview {
    width: 100px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}
.route-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-score-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.route-info {
    flex-grow: 1;
    text-align: left;
}
.route-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.route-meta {
    font-size: 0.88rem;
    color: #64748b;
}

.route-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.btn-challenge {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}
.btn-challenge:hover {
    background: #e2e8f0;
    color: var(--text);
}

.route-recommendation {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* --- Route Details (toggle) --- */
.route-details { display: none; background: var(--bg); padding: 16px 18px; border-bottom: 1px solid var(--border); }
.route-details.open { display: block; }

.wp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; }
.wp-card { background: var(--card); padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
.wp-name { font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.wp-stat { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 600px) {
    .route-card { flex-wrap: wrap; gap: 10px; }
    .route-preview { width: 80px; height: 50px; }
    .route-actions { flex-direction: row; width: 100%; justify-content: flex-start; }
    .wp-grid { grid-template-columns: 1fr 1fr; }
}
