/* ===== Dashboard auf der Startseite ===== */
:root { --down: #b0453b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --down: #e8928a; }
}
:root[data-theme="dark"] { --down: #e8928a; }

/* Seite wird breiter, damit rechts Platz ist */
.topbar, .footer, .home.has-dashboard { max-width: 84rem; }

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.5rem 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 72rem) {
  .home.has-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    column-gap: 5rem;
    align-items: start;
  }
  .home.has-dashboard > * { grid-column: 1; }
  .home.has-dashboard > .dashboard {
    grid-column: 2;
    grid-row: 1 / span 10;
    grid-template-columns: 1fr;
    margin-top: clamp(2rem, 10vh, 6rem);
    padding-left: 2.5rem;
    border-left: 1px solid var(--line);
  }
}

.dashboard h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard h2 span { font-weight: 400; }

.dash-error { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Wetter */
.weather-now { display: flex; align-items: baseline; gap: 1rem; }
.weather-temp {
  font-size: 3.6rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.weather-text { font-size: 1.15rem; }
.weather-meta { color: var(--muted); font-size: 0.95rem; margin: 0.6rem 0 1rem; }
.weather-days { list-style: none; margin: 0; padding: 0; }
.weather-days li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: 0.97rem;
}
.weather-days .day { color: var(--muted); }
.weather-days .range { font-variant-numeric: tabular-nums; }
.weather-days .range span { color: var(--muted); }

/* Kurse */
.quotes { list-style: none; margin: 0; padding: 0; }
.quotes li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
}
.quotes .name { font-weight: 600; }
.quotes .value { display: flex; align-items: baseline; gap: 0.75rem; font-variant-numeric: tabular-nums; }
.quotes .price { font-size: 1.1rem; }
.quotes .change { font-size: 0.92rem; min-width: 4.6rem; text-align: right; }
.quotes .period { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.quotes .up { color: var(--accent); }
.quotes .down { color: var(--down); }
.quotes .missing { color: var(--muted); font-size: 0.9rem; }

/* Zuletzt im Blog */
.latest { max-width: 36rem; margin-bottom: 4rem; }
.latest h2 {
  font-size: 1rem; font-weight: 600; color: var(--muted);
  margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.latest__title {
  display: inline-block;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
}
.latest__title:hover { color: var(--accent); text-decoration: underline; }
.latest time { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
.latest p { margin: 0.6rem 0 0; color: var(--muted); }
.latest__all { display: inline-block; margin-top: 1rem; }

/* Nachrichten */
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 0.45rem 0; }
.news a { color: var(--ink); text-decoration: none; line-height: 1.4; }
.news a:hover { color: var(--accent); text-decoration: underline; }
.news time { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.1rem; }

.dash-stand { color: var(--muted); font-size: 0.85rem; margin: -1rem 0 0; }
.dash-stand.stale { color: var(--down); }
