/* Reset & Basics */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header */
header { background: #2c3e50; color: white; padding: 1rem 0; }
header h1 { margin-bottom: 0.5rem; }
header h1 a { color: white; text-decoration: none; font-size: 1.8rem; }
.tagline { color: #bdc3c7; font-size: 0.9rem; margin-bottom: 1rem; }

.search-box { display: flex; margin: 1rem 0; }
.search-box input { 
    flex: 1; 
    padding: 12px 15px; 
    border: none; 
    border-radius: 4px 0 0 4px; 
    font-size: 1rem; 
}
.search-box button { 
    padding: 12px 20px; 
    background: #3498db; 
    color: white; 
    border: none; 
    border-radius: 0 4px 4px 0; 
    cursor: pointer; 
    font-size: 1rem; 
}
.search-box button:hover { background: #2980b9; }

nav { margin-top: 1rem; }
nav a { color: #bdc3c7; margin-right: 15px; text-decoration: none; }
nav a:hover { color: white; }

/* Main Content */
main { padding: 2rem 0; min-height: 60vh; }

/* Hero Section */
.hero { text-align: center; padding: 2rem; background: #f8f9fa; border-radius: 8px; margin-bottom: 2rem; }
.hero h2 { color: #2c3e50; margin-bottom: 1rem; }
.hero p { color: #666; margin-bottom: 1.5rem; }

/* Number Cards */
.number-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin: 2rem 0; }
.number-card { 
    background: white; 
    padding: 15px; 
    border-radius: 6px; 
    border: 1px solid #e1e5e9; 
    text-decoration: none; 
    color: inherit; 
    transition: transform 0.2s, box-shadow 0.2s; 
}
.number-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    border-color: #3498db; 
}
.number-card .num { font-weight: bold; font-size: 1.2rem; color: #2c3e50; display: block; margin-bottom: 5px; }
.number-card .meta { font-size: 0.9rem; color: #7f8c8d; }

/* Detail Page */
.number-header { background: white; padding: 1.5rem; border-radius: 8px; border: 1px solid #e1e5e9; margin-bottom: 2rem; }
.number-display { font-size: 1.8rem; font-weight: bold; color: #2c3e50; margin-bottom: 1rem; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1rem; }
.badge { 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    font-weight: 500; 
}
.badge.mobil { background: #e8f6fc; color: #3498db; }
.badge.festnetz { background: #eafaf1; color: #27ae60; }
.badge.location { background: #fef9e7; color: #f39c12; }

.spam-warning { 
    background: #fff8e1; 
    border-left: 4px solid #ffc107; 
    padding: 1rem; 
    margin: 1.5rem 0; 
    border-radius: 0 4px 4px 0; 
}
.spam-buttons { display: flex; gap: 10px; margin-top: 1rem; }
.spam-btn { 
    padding: 8px 15px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 500; 
}
.spam-btn.spam { background: #ffebee; color: #c62828; }
.spam-btn.ok { background: #e8f5e9; color: #2e7d32; }
.spam-btn.unsure { background: #e3f2fd; color: #1565c0; }

/* Search Results */
.results-info { color: #666; margin-bottom: 1rem; }
.result-item { 
    padding: 1rem; 
    border-bottom: 1px solid #e1e5e9; 
    display: block; 
    text-decoration: none; 
    color: inherit; 
}
.result-item:hover { background: #f8f9fa; }
.result-number { font-weight: bold; color: #2c3e50; display: block; }
.result-meta { font-size: 0.9rem; color: #7f8c8d; margin-top: 5px; }

/* Footer */
footer { background: #2c3e50; color: white; padding: 2rem 0; margin-top: 3rem; }
.footer-content { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 2rem; 
}
.footer-section h4 { margin-bottom: 1rem; color: #ecf0f1; }
.footer-section a { 
    display: block; 
    color: #bdc3c7; 
    text-decoration: none; 
    margin-bottom: 5px; 
}
.footer-section a:hover { color: white; }
.copyright { 
    text-align: center; 
    padding-top: 1rem; 
    border-top: 1px solid #34495e; 
    color: #bdc3c7; 
    font-size: 0.9rem; 
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .search-box { flex-direction: column; }
    .search-box input, .search-box button { 
        width: 100%; 
        border-radius: 4px; 
        margin-bottom: 5px; 
    }
    .number-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

/* Spam-Warnungs-Level */
.spam-warning.high-spam {
    background: #ffebee;
    border-left-color: #c62828;
}
.spam-warning.medium-spam {
    background: #fff8e1;
    border-left-color: #ff9800;
}
.spam-warning.low-spam {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

/* Nummern-Karten Erweiterungen */
.number-card .spam-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #ffebee;
    color: #c62828;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Hero Bereich */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
}
