/* ============================================================
   Startseite (neues Design, 0.93.1109)

   Konzept "Startseite Neues Design" vom 03.11.2026: Graphit wie das Logo
   (die Startseite hat kein eigenes Icon); jedes Widget, jede Schnellstart-
   Kachel und jeder „Dein Tag“-Chip trägt die Farbe SEINES App-Icons (--w).
   Grundlage (Schriften, Bausteine hd-*) in hc_design.css.

   Die Widgets sind weiter eigene Vorlagen mit Bootstrap-Karten und einem
   Farbverlauf im Kopf; hier werden sie unter .hc-start umgefärbt, ohne
   dass jedes Widget angefasst werden muss. Alle Regeln hängen an
   .hc-start, damit sie über dem <style>-Block der Vorlage gewinnen.
   ============================================================ */
@import url("hc_design.9e1b167f7f65.css");

/* Jedes Token des hellen Blocks steht auch im dunklen (Lehre aus 0.93.1085). */
:root,
[data-bs-theme="light"] {
    --hc-bg: #f3f4f6;
    --hc-card: #ffffff;
    --hc-card-2: #eceef2;
    --hc-ink: #16181c;
    --hc-muted: #5d6470;
    --hc-line: #e1e4ea;
    --hd-app: #16181c;
    --hd-app-hover: #2c3038;
    --hd-app-ink: #16181c;
    --hd-app-soft: #e4e6ec;
    --he-hero: #e4e6ec;
    --he-track: rgba(22, 24, 28, .12);
    --he-bright: #c9ccd6;
    --he-on: #ffffff;
    --he-sh: 0 1px 2px rgba(22, 24, 28, .05), 0 10px 28px -8px rgba(22, 24, 28, .13);
    --he-sh-h: 0 1px 2px rgba(22, 24, 28, .06), 0 14px 34px -8px rgba(22, 24, 28, .24);
    --hs-weiss: 0%;
}
[data-bs-theme="dark"] {
    --hc-bg: #0f1013;
    --hc-card: #1a1c21;
    --hc-card-2: #22252b;
    --hc-ink: #eef0f3;
    --hc-muted: #a3a9b4;
    --hc-line: #2c3038;
    --hd-app: #eef0f3;
    --hd-app-hover: #ffffff;
    --hd-app-ink: #eef0f3;
    --hd-app-soft: #2a2d34;
    --he-hero: #1c1f25;
    --he-track: rgba(238, 240, 243, .14);
    --he-bright: #3a3f49;
    --he-on: #16181c;
    --he-sh: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -8px rgba(0, 0, 0, .5);
    --he-sh-h: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -8px rgba(0, 0, 0, .65);
    --hs-weiss: 38%;
}

/* ── Farbe je App-Icon: --w0 ist die Farbe des Icons, --w die für den aktuellen Modus ── */
.hc-start .hc-w { --w: color-mix(in srgb, var(--w0, #5d6470), white var(--hs-weiss)); }
.hc-start .hc-w--posteingang { --w0: #5d6470; }
.hc-start .hc-w--kalender, .hc-start .hc-w--kalender_heute { --w0: #b3363f; }
.hc-start .hc-w--aufgaben { --w0: #2f7d4f; }
.hc-start .hc-w--adressbuch, .hc-start .hc-w--geburtstage { --w0: #3f51b5; }
.hc-start .hc-w--weather { --w0: #1d6fa5; }
.hc-start .hc-w--haushaltsplaner_today { --w0: #475569; }
.hc-start .hc-w--einkaufsliste_offen { --w0: #cc5f95; }
.hc-start .hc-w--vertragsmanager_next, .hc-start .hc-w--vertragsmanager_stats { --w0: #1e3a5f; }
.hc-start .hc-w--oweme_salden { --w0: #1d5e5a; }
.hc-start .hc-w--meine_ziele { --w0: #dc3545; }
.hc-start .hc-w--health_kalorien { --w0: #0f766e; }
.hc-start .hc-w--kueche_heute { --w0: #5c8a1e; }
.hc-start .hc-w--stundenplan_heute { --w0: #1f7f9c; }
.hc-start .hc-w--social_post, .hc-start .hc-w--meine_kurse { --w0: #6f42c1; }
.hc-start .hc-w--finanzen_buchung { --w0: #2b6cb0; }

/* Farbübergänge beim Hover sind erlaubt, Bewegung nicht. */
.hc-start .hc-tag__chip, .hc-start .hc-qs-tile, .hc-start .widget-card, .hc-start .hc-section-edit, .hc-start .news-tile {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
@media (prefers-reduced-motion: reduce) {
    .hc-start .hc-tag__chip, .hc-start .hc-qs-tile, .hc-start .widget-card, .hc-start .hc-section-edit, .hc-start .news-tile { transition: none; }
}

/* ── Kopfbereich ── */
.hc-start .hc-hero { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1rem; padding: 1.8rem 2rem; }
.hc-start .hc-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); font-weight: 800; line-height: 1.05; letter-spacing: -.015em; margin: 0; }
.hc-start .hc-hero__haushalt { margin: .3rem 0 0; color: var(--hc-muted); font-size: .9rem; }
.hc-start .hc-tag { display: flex; gap: .6rem; flex-wrap: wrap; }
.hc-start .hc-tag__chip {
    display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .3rem 1rem .3rem .3rem; border-radius: 999px;
    background: var(--hc-card); border: 2px solid transparent; box-shadow: var(--he-sh); color: var(--hc-ink); text-decoration: none; font-size: .9rem;
}
.hc-start .hc-tag__chip:hover { border-color: var(--w); color: var(--hc-ink); }
.hc-start .hc-tag__symbol {
    width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--he-kiesel);
    background: color-mix(in srgb, var(--w) 16%, var(--hc-card)); color: var(--w);
}

/* ── Schnellstart ── */
.hc-start .hc-qs-tile { border-radius: 24px; border: 2px solid transparent; background: transparent; box-shadow: none; }
.hc-start .hc-qs-tile:hover { background: var(--hc-card); border-color: var(--hd-app); box-shadow: none; color: var(--hc-ink); }
.hc-start .hc-qs-icon { border-radius: 22px; }
.hc-start .hc-qs-alle { border-style: solid; }
.hc-start .hc-qs-alle .hc-qs-icon { background: var(--hd-app); border-radius: 22px; }
.hc-start .hc-qs-alle .hc-qs-icon i { color: var(--he-on); }
.hc-start .hc-section-edit {
    width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border-radius: 50%;
    border: 2px solid var(--hc-line); background: var(--hc-card); color: var(--hc-muted);
}
.hc-start .hc-section-edit:hover { border-color: var(--hd-app); color: var(--hc-ink); background: var(--hc-card); }

/* ── Widgets: Karten, Kopf ohne Farbverlauf, Symbol in der App-Farbe ── */
.hc-start .card { background: var(--hc-card); color: var(--hc-ink); border: 2px solid transparent !important; border-radius: 26px; box-shadow: var(--he-sh) !important; }
.hc-start .widget-card:hover { border-color: color-mix(in srgb, var(--w) 45%, transparent) !important; box-shadow: var(--he-sh-h) !important; }
.hc-start .widget-card .card-header {
    background: transparent !important; border-bottom: 0 !important; padding: 1.1rem 1.25rem .4rem !important; border-radius: 26px 26px 0 0;
}
.hc-start .widget-card .card-header i.bi, .hc-start .widget-card .card-header i.text-white {
    color: var(--w) !important; width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none;
    border-radius: var(--he-kiesel); background: color-mix(in srgb, var(--w) 16%, var(--hc-card)); font-size: 1.1rem !important;
}
.hc-start .widget-card .card-header span.text-white, .hc-start .widget-card .card-header .text-white:not(i) {
    color: var(--hc-ink) !important; font-family: var(--he-display); font-size: 1.05rem !important; font-weight: 700 !important;
}
.hc-start .widget-card .card-header .badge { background: color-mix(in srgb, var(--w) 15%, var(--hc-card)) !important; color: var(--w) !important; border-radius: 999px; }
.hc-start .widget-card .card-body { padding: .6rem 1.25rem 1rem !important; }
.hc-start .widget-card .card-footer { padding: 0 1.25rem 1rem !important; }
.hc-start .widget-card .card-footer a { color: var(--w) !important; font-weight: 700; }
.hc-start .widget-card .btn { border-radius: 999px; font-weight: 700; border-width: 2px; }
.hc-start .widget-card .btn-outline-success, .hc-start .widget-card .btn-outline-primary, .hc-start .widget-card .btn-outline-secondary {
    background: var(--hc-card); border-color: var(--hc-line); color: var(--hc-ink);
}
.hc-start .widget-card .btn-outline-success:hover, .hc-start .widget-card .btn-outline-primary:hover, .hc-start .widget-card .btn-outline-secondary:hover {
    background: color-mix(in srgb, var(--w) 14%, var(--hc-card)); border-color: var(--w); color: var(--hc-ink);
}
.hc-start .widget-card .text-success { color: var(--w) !important; }
.hc-start .widget-card .progress { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--w) 15%, var(--hc-card-2)); }
.hc-start .widget-card .progress-bar { background: var(--w) !important; border-radius: 999px; }

/* ── Verweise über den Spalten (Newsarchiv, Social Feed) ── */
.hc-start .hc-section-link {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: 0 1rem; border-radius: 999px;
    border: 2px solid var(--hc-line); background: var(--hc-card); color: var(--hc-ink); font-size: .86rem; font-weight: 700; text-decoration: none;
}
.hc-start .hc-section-link:hover { border-color: var(--hd-app); color: var(--hc-ink); text-decoration: none; }
.hc-start .hc-section-link .bi-archive, .hc-start .hc-section-link .bi-people { color: var(--hc-muted); }

/* ── News und Social ── */
.hc-start .news-tile, .hc-start .news-tile .card { border-radius: 22px; }
.hc-start .news-tile:hover { border-color: var(--hc-line); }

@media (max-width: 575.98px) {
    .hc-start .hc-hero { padding: 1.2rem; border-radius: 26px; }
    .hc-start .card { border-radius: 22px; }
}
