/* --- Grundlayout --- */
body {
    background: #111827;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Zentrierung */
.page {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

#datetime {
    text-align: center;
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- Grid Layout --- */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}


@media (max-width: 700px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* --- Kacheln --- */
.card {
    background: #1f2937;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    border-left: 5px solid #4b5563;
}

.card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.card .value {
    font-size: 2.6rem;
    font-weight: 700;
    margin-top: 10px;
}

/* --- Farbakzente --- */
.card.sunrise { border-color: #fbbf24; }
.card.sunset  { border-color: #fb923c; }
.card.temp    { border-color: #f97316; }
.card.hum     { border-color: #3b82f6; }
.card.press   { border-color: #a855f7; }

/* --- Icons --- */
.icon {
    font-size: 2rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* --- Flex für Titelzeile --- */
.row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.value {
    transition: opacity 0.3s ease;
}

.value.updating {
    opacity: 0.3;
}

.value-row {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Wert und Pfeil */
}

.trend {
    font-size: 1.8rem;   /* größerer Pfeil */
    font-weight: 600;
    opacity: 0.8;
}

.trend.up {
    color: #22c55e; /* grün */
}

.trend.down {
    color: #ef4444; /* rot */
}

.trend.same {
    color: #9ca3af; /* grau */
}

h2.section-title {
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #9ca3af;
}

.trend.up-light    { color: #86efac; }
.trend.up          { color: #22c55e; }
.trend.up-strong   { color: #15803d; }

.trend.down-light  { color: #fca5a5; }
.trend.down        { color: #ef4444; }
.trend.down-strong { color: #b91c1c; }

.trend.same        { color: #9ca3af; }

.footer {
    width: 100%;
    padding: 10px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer a {
    color: #6aa9ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-inner {
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0.8;
}

