/* ===== Grundlegende Stile ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d8e3ed 100%);
    color: #2d3748;
    line-height: 1.6;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
}

/* ===== Header-Bereich ===== */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

h1 {
    color: #3182ce;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 i {
    margin-right: 12px;
}

header p {
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: 400;
}

/* ===== Karten-Stil für Container ===== */
.card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin: 25px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* ===== Formular-Stile ===== */
form {
    margin: 25px 0;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2d3748;
    font-size: 1.05rem;
}

label i {
    color: #3182ce;
    margin-right: 8px;
}

input {
    padding: 14px 18px;
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

input:hover {
    border-color: #cbd5e0;
    background-color: #fff;
}

input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    background-color: #fff;
}

input::placeholder {
    color: #a0aec0;
}

/* Dropdown-Pfeil für Datalist-Inputs */
input[list] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%234A5568" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 45px;
}

/* ===== Button-Stile ===== */
.btn-primary {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2b6cb0 0%, #2a4365 100%);
    box-shadow: 0 6px 15px rgba(49, 130, 206, 0.35);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2);
}

.btn-primary i {
    margin-right: 10px;
}

/* ===== Beliebte Orte ===== */
.popular-locations {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin: 25px 0;
    border: 1px solid rgba(0,0,0,0.05);
}

.popular-locations h3 {
    margin: 0 0 20px 0;
    font-size: 1.15rem;
    color: #2d3748;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
}

.popular-locations h3 i {
    color: #ecc94b;
    margin-right: 10px;
}

.location-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.location-btn {
    background: #ebf8ff;
    color: #2c5282;
    border: 1px solid #bee3f8;
    border-radius: 24px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: auto;
    max-width: none;
    margin: 0;
    font-weight: 500;
}

.location-btn:hover {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.2);
}

/* ===== Ergebnisbereich ===== */
.result-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-top: 35px;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.location-time {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #edf2f7;
}

.location-time:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.time {
    font-size: 1.5rem;
    color: #3182ce;
    font-weight: 600;
    margin-top: 8px;
}

.time-diff {
    background: #ebf8ff;
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #3182ce;
}

/* ===== Datums-Benachrichtigung ===== */
.date-notice {
    background: #fffaf0;
    color: #c05621;
    padding: 10px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.95rem;
    display: inline-block;
    border: 1px solid #fbd38d;
}

.date-notice i {
    margin-right: 8px;
}

/* ===== Status- und Fehlermeldungen ===== */
.loading {
    color: #4a5568;
    font-style: italic;
    text-align: center;
    padding: 25px;
}

.error {
    color: #c53030;
    background: #fff5f5;
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #c53030;
    border: 1px solid #fed7d7;
}

/* ===== Überschriften ===== */
h3 {
    color: #2d3748;
    margin: 0 0 15px 0;
    font-weight: 600;
}

h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-weight: 600;
    font-size: 1.2rem;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    color: #4a5568;
    font-size: 0.95rem;
}

footer a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .card, form, .result-box, .popular-locations {
        padding: 25px;
    }
    
    .time {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    input {
        padding: 12px 16px;
    }
    
    .btn-primary {
        padding: 14px 24px;
    }
    
    .location-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}
