/* Alleen het Home Assistant-overzicht; sluit aan op de persoonlijke homepage. */
.ha-hub { color: #2e382f; }
.ha-hub, .ha-hub * { box-sizing: border-box; }
.ha-hub h1, .ha-hub h2, .ha-hub h3 { color: #2e382f; }
.ha-hub h1 { max-width: 760px; margin: 0 0 1.25rem; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; }
.ha-hub h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.ha-hub h3 { margin: .6rem 0 .8rem; font-size: 1.22rem; line-height: 1.35; }
.ha-hub p { margin: 0 0 1rem; }
.ha-hub__hero { padding: clamp(1.5rem, 4vw, 3rem); background: #eee8db; border: 1px solid #dfd7c6; border-radius: 1.2rem; }
.ha-hub__hero > p { max-width: 720px; }
.ha-hub__hero .ha-hub__intro { font-size: 1.16rem; line-height: 1.7; }
.ha-hub .ha-hub__eyebrow { margin: 0 0 .8rem; color: #3f5e47; font-size: .78rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.ha-hub__button { display: inline-flex; min-height: 48px; padding: .8rem 1.2rem; margin-top: .4rem; align-items: center; gap: .75rem; border-radius: .5rem; background: #3f5e47; color: #fff; font-weight: 700; text-decoration: none; }
.ha-hub__button:hover { background: #2e4935; color: #fff; }
.ha-hub__hero .ha-hub__motto { margin: 1.5rem 0 0; font-family: Georgia, serif; font-style: italic; }
.ha-hub__section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.ha-hub__section-intro { max-width: 650px; color: #555d50; }
.ha-hub__section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.ha-hub__section-heading h2 { margin-bottom: 0; }
.ha-hub__routes, .ha-hub__examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ha-hub__topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ha-hub__route, .ha-hub__examples > a, .ha-hub__topics > a { display: flex; min-width: 0; padding: 1.4rem; flex-direction: column; border: 1px solid #e1dbcf; border-radius: .8rem; background: #fffdf8; color: #2e382f; text-decoration: none; }
.ha-hub__route:hover, .ha-hub__examples > a:hover, .ha-hub__topics > a:hover { border-color: #3f5e47; background: #f2f4ec; color: #2e382f; }
.ha-hub__route p, .ha-hub__examples p, .ha-hub__topics p { color: #555d50; font-size: .95rem; }
.ha-hub__label { color: #3f5e47; font-size: .8rem; font-weight: 700; }
.ha-hub__link { margin-top: auto; padding-top: .6rem; color: #3f5e47; font-size: .9rem; font-weight: 700; }
.ha-hub__text-link { color: #3f5e47; font-weight: 700; text-underline-offset: .2em; }
.ha-hub__note { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2rem); background: #e8eee1; border-left: 4px solid #3f5e47; border-radius: 0 .8rem .8rem 0; }
.ha-hub__note p { max-width: 720px; }
.ha-hub a:focus-visible { outline: 3px solid #3f5e47; outline-offset: 4px; }
@media (max-width: 800px) {
    .ha-hub__routes, .ha-hub__examples { grid-template-columns: 1fr; }
    .ha-hub__section-heading { flex-direction: column; align-items: start; }
}
@media (max-width: 540px) {
    .ha-hub__topics { grid-template-columns: 1fr; }
    .ha-hub__button { width: 100%; justify-content: center; text-align: center; }
}
