/* =============================================================================
   Stinges Dashboard – Styles
   Theme-fähig (hell/dunkel) über [data-theme] am <html>-Element.
   ============================================================================= */

/* Hausschrift: geometrische Grotesk, dem unteren Logo-Schriftzug nachempfunden.
   Lokal eingebunden (kein externes Nachladen). Variabel: alle Strichstärken. */
@font-face {
  font-family: "Stinges Sans";
  src: url("../vendor/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --bg-elev-2: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  /* Markenfarbe: Gold aus dem Stinges-Logo */
  --accent: #d99404;
  --accent-soft: #fbf1dd;
  --accent-text: #b07d0a;
  --on-accent: #1a1712;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08),
    0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;

  --status-active-bg: #dcfce7;
  --status-active-text: #15803d;
  --status-wip-bg: #fef3c7;
  --status-wip-text: #b45309;
  --status-planned-bg: #e2e8f0;
  --status-planned-text: #475569;
}

:root[data-theme="dark"] {
  --bg: #0b1120;
  --bg-elev: #131c2e;
  --bg-elev-2: #1a2438;
  --border: #24314a;
  --border-strong: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #f0b429;
  --accent-soft: #2a2211;
  --accent-text: #f2c04b;
  --on-accent: #14120e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.5);

  --status-active-bg: #14352178;
  --status-active-text: #4ade80;
  --status-wip-bg: #3b2c0f;
  --status-wip-text: #fbbf24;
  --status-planned-bg: #24314a;
  --status-planned-text: #94a3b8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Stinges Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-elev) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  font-size: 28px;
  line-height: 1;
}

/* Stinges-Logo oben in der Ecke – auf allen Seiten fest oben links */
.brand__logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  display: block;
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

/* Live-Datum/Uhrzeit oben in der Leiste */
.topclock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.topclock__time {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.topclock__date {
  font-size: 12px;
  color: var(--text-muted);
}

.brand__title {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand__subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search__icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0.6;
}

.search__input {
  width: 220px;
  max-width: 42vw;
  padding: 9px 14px 9px 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Hell/Dunkel folgt automatisch dem System – der manuelle Schalter entfällt. */
.theme-toggle {
  display: none !important;
}

/* ---------- Benachrichtigungs-Glocke ---------- */
.notif {
  position: relative;
  flex: 0 0 auto;
}
.notif__btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.notif__btn:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
}
.notif__btn--active {
  color: var(--accent);
}
.notif__bell-icon {
  display: block;
}
.notif__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d63a3a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg-elev, #fff);
}
.notif__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  z-index: 200;
  overflow: hidden;
}
.notif__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.notif__head-title {
  font-size: 15px;
  font-weight: 800;
}
.notif__clearall {
  border: none;
  background: transparent;
  color: var(--accent-text, var(--accent));
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.notif__clearall:hover {
  background: var(--accent-soft);
}
.notif__list {
  max-height: min(70vh, 460px);
  overflow-y: auto;
}
.notif__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.notif__item:last-child {
  border-bottom: none;
}
.notif__item-icon {
  font-size: 20px;
  line-height: 1.2;
  flex: 0 0 auto;
}
.notif__item-body {
  flex: 1 1 auto;
  min-width: 0;
}
.notif__item-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.notif__item-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.notif__item-meta {
  font-size: 11.5px;
  color: var(--text-faint, var(--text-muted));
  margin-top: 4px;
}
.notif__item-read {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.notif__item-read:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.notif__empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
}
.notif__empty-icon {
  font-size: 30px;
  margin-bottom: 6px;
}
.notif__empty p {
  margin: 0;
  font-size: 13.5px;
}
@media (max-width: 520px) {
  .notif__panel {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* ---------- Profil & Einstellungen ---------- */
.profile {
  flex: 0 0 auto;
}
.profile__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.profile__btn:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
}
.profile__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile__avatar-initials {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}

.pmodal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.pmodal__card {
  width: 420px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.pmodal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.pmodal__title {
  font-size: 17px;
  font-weight: 800;
}
.pmodal__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.pmodal__close:hover {
  background: var(--bg-elev-2);
  color: var(--text);
}
.pmodal__body {
  padding: 18px;
}
.pmodal__profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.pmodal__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--accent);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.pmodal__avatar .profile__avatar-initials {
  font-size: 26px;
}
.pmodal__avatar svg {
  width: 34px;
  height: 34px;
}
.pmodal__profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.pmodal__profile-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}
.pmodal__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.pmodal__input,
.pmodal__select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.pmodal__input:focus,
.pmodal__select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pmodal__section {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 22px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pmodal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.pmodal__row:last-of-type {
  border-bottom: none;
}
.pmodal__row .pmodal__select {
  width: auto;
  max-width: 62%;
}
.pmodal__hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 12px 0 0;
}
.pmodal__account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.pmodal__account-info {
  font-size: 13.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.pmodal__account-row .btn {
  padding: 7px 12px;
  font-size: 13px;
}
.pmodal__foot {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

/* Schalter (Toggle) */
.pswitch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}
.pswitch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.pswitch__slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong, #c8ccd4);
  border-radius: 999px;
  transition: background 0.18s;
}
.pswitch__slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s;
}
.pswitch input:checked + .pswitch__slider {
  background: var(--accent);
}
.pswitch input:checked + .pswitch__slider::before {
  transform: translateX(20px);
}
@media (max-width: 480px) {
  .pmodal__profile {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Anmeldeseite (Login) ---------- */
.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login__card {
  width: 400px;
  max-width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  text-align: center;
}
.login__logo {
  height: 64px;
  width: auto;
  margin: 0 auto 14px;
  display: block;
}
.login__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}
.login__sub {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
}
.login__form {
  text-align: left;
}
.login__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.login__input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  font-size: 15px;
  outline: none;
  margin-bottom: 16px;
}
.login__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.login__btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}
.login__btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.login__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.login__error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--status-wip-bg);
  color: var(--status-wip-text);
  font-size: 13.5px;
}
.login__foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Container / Hero ---------- */
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 24px;
  flex: 1;
}

.hero {
  position: relative;
  margin-bottom: 36px;
}

/* Großer, dezenter Kompass als Hintergrund-Emoji */
.hero__compass {
  position: absolute;
  top: -18px;
  right: 6px;
  font-size: 170px;
  line-height: 1;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Inhalt über dem Kompass halten */
.hero__title,
.hero__badge,
.hero__text,
.hero__stats {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Cooler KI-Spruch als Badge */
.hero__badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.hero__text {
  margin: 0;
  color: var(--text-muted);
  max-width: 620px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

.stat__num {
  font-weight: 700;
  color: var(--text);
}

/* ---------- Wetter-Widget (kompakt) ---------- */
.weather {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  margin-bottom: 24px;
}
.weather__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.weather__title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
}
.weather__loc {
  display: flex;
  gap: 6px;
}
.weather__city {
  width: 140px;
  max-width: 42vw;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  font-size: 12px;
  outline: none;
}
.weather__city:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.weather__btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.weather__btn:hover {
  transform: translateY(-1px);
}
.weather__place {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.weather__status {
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 0;
}
.weather__status--error {
  color: var(--status-wip-text);
}
.weather__note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text-faint);
}

/* Hinweis-Banner bei großen Temperaturschwankungen */
.weather__alert {
  background: var(--status-wip-bg);
  border: 1px solid var(--status-wip-text);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  margin-bottom: 10px;
}
.weather__alert-title {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--status-wip-text);
  margin-bottom: 2px;
}
.weather__alert-line {
  font-size: 12px;
  color: var(--text);
}
.weather__alert-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Tages-Kacheln (kompakt, überall als Kachelraster) */
.weather__days {
  display: grid;
  /* automatisch passende Spaltenzahl: bricht auf schmalen Geräten (iPad,
     Handy) sauber in mehrere Reihen um, statt untereinander zu stehen */
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 6px;
  padding-bottom: 2px;
}
.weather__day {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
  min-width: 0;
}
.weather__day--swing {
  border-color: var(--status-wip-text);
  box-shadow: 0 0 0 2px var(--status-wip-bg) inset;
}
.weather__day-head {
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 3px;
}
.weather__temp {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 3px;
}
.weather__tmax {
  font-size: 13px;
  font-weight: 800;
}
.weather__tmin {
  font-size: 10px;
  color: var(--text-muted);
}
.weather__metric {
  font-size: 9.5px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
}
.weather__delta {
  font-weight: 600;
  color: var(--text-faint);
}
.weather__delta--up {
  color: #16a34a;
}
.weather__delta--down {
  color: #dc2626;
}

/* ---------- Kategorie ---------- */
.category {
  margin-bottom: 40px;
}

.category__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
}

.category__title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}

.category__count {
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Grid & Karten ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--accent) 8%, transparent),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.card:hover::after {
  opacity: 1;
}

.card--disabled {
  cursor: default;
  opacity: 0.72;
}

.card--disabled:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.card--disabled:hover::after {
  opacity: 0;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

/* Symbol randlos (kein Kästchen) und in Gold */
.card__icon {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  flex: 0 0 auto;
}
.card__icon svg {
  width: 32px;
  height: 32px;
  display: block;
}
.card__icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--active {
  background: var(--status-active-bg);
  color: var(--status-active-text);
}

.badge--wip {
  background: var(--status-wip-bg);
  color: var(--status-wip-text);
}

.badge--planned {
  background: var(--status-planned-bg);
  color: var(--status-planned-text);
}

.card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  margin-top: 2px;
}

.card__arrow {
  transition: transform 0.18s ease;
}

.card:hover .card__arrow {
  transform: translateX(3px);
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 42px;
  display: block;
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

.footer code {
  background: var(--bg-elev-2);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .brand__subtitle {
    display: none;
  }
  .brand__logo {
    height: 46px;
  }
  .search__input {
    width: 150px;
  }
  .hero__title {
    font-size: 24px;
  }
  .container {
    padding-top: 28px;
  }
  .topclock__time {
    font-size: 15px;
  }
  .topclock__date {
    display: none;
  }
}
@media (max-width: 400px) {
  .topclock {
    display: none;
  }
}

/* Primär-Buttons: dunkle Schrift auf Gold (guter Kontrast statt Weiß) */
.btn--primary,
.weather__btn,
.login__btn {
  color: var(--on-accent);
}
.btn--primary:hover,
.weather__btn:hover,
.login__btn:hover:not(:disabled) {
  color: var(--on-accent);
}
