/**
 * style.css
 * Stylesheet für Fahrzeugsuche Frontend
 */

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.search-container {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 15vh;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    font-size: 72px;
    font-weight: 300;
    color: #202124;
    letter-spacing: -2px;
}

.search-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    font-size: 16px;
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    transition: box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: rgba(223,225,229,0);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    font-size: 18px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 6px rgba(32,33,36,.28);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    margin-top: -20px;
    padding-top: 8px;
}

.suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.1s;
    display: flex;
    align-items: center;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f8f9fa;
}

.suggestion-icon {
    margin-right: 12px;
    color: #5f6368;
    font-size: 14px;
}

.suggestion-text {
    flex: 1;
}

.suggestion-name {
    color: #202124;
    font-size: 14px;
}

.suggestion-meta {
    color: #5f6368;
    font-size: 12px;
    margin-top: 2px;
}

.result-container {
    max-width: 680px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    display: none;
}

.result-container.show {
    display: block;
}

.vehicle-title {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.vehicle-meta {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 20px;
}

.vehicle-data {
    background-color: #f8f9fa;
    padding: 20px;
    padding-right: 130px;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
    font-size: 15px;
    line-height: 1.6;
    color: #202124;
    margin-bottom: 20px;
    position: relative;
    word-wrap: break-word;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background: #1557b0;
}

.copy-btn.copied {
    background: #188038;
}

.copy-btn i {
    margin-right: 5px;
}

.note-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
    color: #856404;
}

.note-icon {
    margin-right: 8px;
}

.fuel-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.fuel-badge.ICE {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.fuel-badge.BEV {
    background-color: #e6f4ea;
    color: #188038;
}

.fuel-badge.PHEV {
    background-color: #fef7e0;
    color: #f9ab00;
}

.fuel-badge.FCEV {
    background-color: #fce8e6;
    color: #d93025;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #5f6368;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #1a73e8;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}