/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

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

.location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.1rem;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Main Weather Display */
.weather-main {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.current-weather {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.weather-icon {
    font-size: 4rem;
    color: #ffd700;
    text-align: center;
    min-width: 100px;
}

.weather-info {
    flex: 1;
    min-width: 300px;
}

.temperature {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.description {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-transform: capitalize;
}

.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1rem;
}

.detail-item i {
    color: #ffd700;
    width: 20px;
}

/* Map Section */
.map-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.map-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-section h2 i {
    color: #ffd700;
}

.map-container {
    position: relative;
}

#weatherMap {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.map-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.map-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Forecast Sections */
.forecast-section,
.daily-forecast-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.forecast-section h2,
.daily-forecast-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forecast-section h2 i,
.daily-forecast-section h2 i {
    color: #ffd700;
}

.hourly-forecast {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.hourly-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    min-width: 120px;
    text-align: center;
    color: white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hourly-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hourly-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hourly-item:active {
    transform: translateY(-2px);
}

.hourly-item .time {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.hourly-item .temp {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hourly-item .icon {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.hourly-item .description {
    font-size: 0.8rem;
    opacity: 0.8;
}

.daily-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.daily-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    color: white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.daily-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.daily-item .date {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffd700;
}

.daily-item .main-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.daily-item .temp-range {
    font-size: 1.3rem;
    font-weight: 600;
}

.daily-item .icon {
    font-size: 2rem;
    color: #ffd700;
}

.daily-item .description {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.daily-item .details {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Alerts Section */
.alerts-section {
    background: rgba(255, 193, 7, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.alerts-section h2 {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alerts-section h2 i {
    color: #ffc107;
}

.alert-item {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    color: white;
    backdrop-filter: blur(5px);
}

.alert-item .alert-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 10px;
}

.alert-item .alert-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-modal.show {
    display: flex;
}

.search-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 500px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.search-header h3 {
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-header h3 i {
    color: #667eea;
}

.search-input-container {
    position: relative;
    margin-bottom: 25px;
}

#searchInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

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

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-name {
    font-weight: 500;
    color: #333;
}

.suggestion-details {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.recent-locations h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recent-item:hover {
    background: #e9ecef;
}

.recent-name {
    font-weight: 500;
    color: #333;
}

.recent-coords {
    font-size: 0.8rem;
    color: #666;
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 400px;
    display: none;
}

.settings-panel.show {
    display: block;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.settings-header h3 {
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-header h3 i {
    color: #667eea;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.setting-group label {
    font-weight: 500;
    color: #333;
}

.setting-group select {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    color: #333;
    cursor: pointer;
}

.setting-group input[type="checkbox"] {
    margin-right: 10px;
}

/* Settings Button */
.settings-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

/* Hourly Detail Modal */
.hourly-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.hourly-detail-modal.show {
    display: flex;
}

.hourly-detail-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.hourly-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.hourly-detail-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

.hourly-detail-body {
    color: #333;
}

.hourly-detail-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    color: white;
}

.hourly-detail-icon {
    font-size: 3rem;
    color: #ffd700;
}

.hourly-detail-info h4 {
    font-size: 1.8rem;
    margin: 0 0 5px 0;
}

.hourly-detail-info p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.hourly-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.hourly-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    min-height: 50px;
}

.hourly-detail-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.hourly-detail-item .label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
}

.hourly-detail-item .value {
    margin-left: auto;
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
    flex-shrink: 0;
    text-align: right;
}

.hourly-detail-description {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.hourly-detail-description h5 {
    color: #28a745;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.hourly-detail-description p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.loading-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .current-weather {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-icon {
        font-size: 3rem;
    }
    
    .temperature {
        font-size: 2.5rem;
    }
    
    .details {
        grid-template-columns: 1fr;
    }
    
    #weatherMap {
        height: 300px;
    }
    
    .map-controls {
        justify-content: center;
    }
    
    .hourly-forecast {
        gap: 10px;
    }
    
    .hourly-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .daily-forecast {
        grid-template-columns: 1fr;
    }
    
    .settings-panel {
        min-width: 90%;
        margin: 20px;
    }
    
    .settings-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
} 

.wind-arrow {
    text-align: center;
    font-weight: bold;
}

/* Temperatur-Kreise Styles */
.temperature-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Karten-Layer Legende */
.map-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8em;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #333;
}

/* Responsive Anpassungen für Karte */
@media (max-width: 768px) {
    #weatherMap {
        height: 300px;
    }
    
    .map-legend {
        font-size: 0.7em;
        padding: 8px;
    }
} 

/* Verbesserte Suchfunktion Styles */
.search-loading {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.search-error {
    padding: 15px;
    text-align: center;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    margin: 5px;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
} 

/* Standort-Berechtigungs-Modal */
.location-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-permission-modal.show {
    opacity: 1;
}

.location-permission-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.location-permission-modal.show .location-permission-content {
    transform: scale(1);
}

.location-permission-header {
    text-align: center;
    margin-bottom: 20px;
}

.location-permission-header h3 {
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.location-permission-header h3 i {
    color: #667eea;
}

.location-permission-body p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.location-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.location-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.location-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.location-btn.secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .location-permission-content {
        padding: 20px;
        margin: 20px;
    }
    
    .location-permission-header h3 {
        font-size: 1.3rem;
    }
    
    .location-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
} 