/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Search Container */
.search-container {
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Results Container */
.results-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.results-header {
    margin-bottom: 25px;
    text-align: center;
}

.results-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.search-term {
    color: #667eea;
    font-weight: 600;
}

.sources {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.source-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.source-tag i {
    margin-right: 5px;
}

/* Welcome Section */
.welcome-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.feature h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

.popular-searches {
    text-align: center;
}

.popular-searches h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Google Custom Search Styling */
.search-results {
    margin-top: 20px;
    min-height: 600px; /* Mindesthöhe für Desktop */
}

/* Override some Google CSE styles */
.gsc-control-cse {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-family: inherit !important;
}

.gsc-search-box {
    display: none !important;
}

.gsc-results-wrapper-overlay {
    box-shadow: none !important;
}

.gsc-resultsbox-visible {
    box-shadow: none !important;
}

/* Make search results larger and more readable */
.gsc-webResult {
    padding: 20px 0 !important;
    border-bottom: 1px solid #eee !important;
    margin-bottom: 15px !important;
}

.gsc-webResult:last-child {
    border-bottom: none !important;
}

.gsc-result {
    margin-bottom: 20px !important;
}

.gs-title a {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #667eea !important;
    text-decoration: none !important;
}

.gs-title a:hover {
    color: #5a6fd8 !important;
    text-decoration: underline !important;
}

.gs-snippet {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-top: 8px !important;
}

.gsc-cursor-box {
    margin: 30px 0 !important;
    text-align: center !important;
}

.gsc-cursor-page {
    background: #667eea !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    margin: 0 5px !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
}

.gsc-cursor-current-page {
    background: #764ba2 !important;
    font-weight: bold !important;
}

/* Results container styling */
.gsc-results {
    width: 100% !important;
}

.gsc-result-info {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-bottom: 20px !important;
}

/* Footer */
.footer {
    background: rgba(255,255,255,0.1);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .search-input {
        padding: 15px 55px 15px 20px;
        font-size: 1rem;
    }
    
    .search-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .results-container,
    .welcome-section {
        padding: 20px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sources {
        gap: 10px;
    }
    
    .source-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .search-input {
        padding: 12px 50px 12px 15px;
    }
    
    .search-button {
        width: 35px;
        height: 35px;
    }
    
    .tags {
        gap: 8px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Mobile responsive for search results */
    .search-results {
        min-height: 400px;
    }
    
    .gs-title a {
        font-size: 1.1rem !important;
    }
    
    .gs-snippet {
        font-size: 0.9rem !important;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Hover Effects */
.search-box:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.results-container:hover,
.welcome-section:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
