/* Wetterstation CSS - Modernes Design */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Header */
.weather-header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.weather-header .navbar {
    padding: 1rem 0;
}

.weather-header .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
}

.weather-header .navbar-brand:hover {
    color: rgba(255,255,255,0.9) !important;
}

.weather-header .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.weather-header .nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-time {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 400;
}

/* Main Content */
.weather-main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Weather Cards */
.weather-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.weather-card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.weather-station-info h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.weather-location {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.weather-time {
    font-size: 0.8rem;
    opacity: 0.8;
}

.weather-card-body {
    padding: 1.5rem;
}

.weather-main-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.weather-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.temperature {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.weather-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.weather-detail-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.1rem;
}

.detail-content {
    flex: 1;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.detail-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.weather-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--secondary-color);
}

.loading-spinner {
    margin-bottom: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0;
}

/* Archive Section */
.archive-section {
    margin-top: 3rem;
}

.archive-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.archive-card-header {
    background: var(--gradient-secondary);
    color: white;
    padding: 1.5rem;
}

.archive-card-header h3 {
    margin: 0;
    font-weight: 600;
}

.archive-card-body {
    padding: 2rem;
}

.weather-chart {
    height: 300px;
    margin-top: 1rem;
}

/* Footer */
.weather-footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.weather-footer p {
    margin: 0;
    opacity: 0.8;
}

.weather-footer a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.weather-footer a:hover {
    color: white;
}

/* Admin Styles */
.admin-sidebar {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.admin-sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.admin-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Form Elements */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.alert {
    border-radius: var(--border-radius);
    border: none;
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .temperature {
        font-size: 2.5rem;
    }
    
    .weather-card-header,
    .weather-card-body {
        padding: 1rem;
    }
    
    .archive-card-body {
        padding: 1rem;
    }
    
    .weather-chart {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .weather-main {
        padding: 2rem 0;
    }
    
    .weather-header .navbar-brand {
        font-size: 1.2rem;
    }
    
    .temperature {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Weather Icons */
.weather-icon {
    font-size: 2rem;
}

.weather-icon.sunny { color: #ffc107; }
.weather-icon.cloudy { color: #6c757d; }
.weather-icon.rainy { color: #17a2b8; }
.weather-icon.snowy { color: #6f42c1; }

/* Dark Theme */
.weather-theme-dark {
    background-color: #1a1a1a;
    color: #ffffff;
}

.weather-theme-dark .weather-card,
.weather-theme-dark .admin-card,
.weather-theme-dark .stat-card {
    background: #2d2d2d;
    color: #ffffff;
}

.weather-theme-dark .weather-detail-item {
    background: #3d3d3d;
}

.weather-theme-dark .form-control,
.weather-theme-dark .form-select {
    background: #3d3d3d;
    border-color: #555;
    color: #ffffff;
}

/* Print Styles */
@media print {
    .weather-header,
    .weather-footer,
    .btn {
        display: none !important;
    }
    
    .weather-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Datum und Uhrzeit Anzeige */
.datetime-bar {
    background: transparent;
    color: var(--text-color);
    padding: 0.75rem 0;
    position: relative;
    z-index: 10;
}

.datetime-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
}

.date-display, .time-display {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-color-secondary);
}

.date-display i, .time-display i {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-right: 0.5rem;
    color: var(--text-color-secondary);
}

#current-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-color);
}

#current-date {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color-secondary);
}

@media (max-width: 768px) {
    .datetime-content {
        flex-direction: column;
        gap: 0.5rem;
    }
} 