/* =========================================================
   Horizon Bay – Blog, Blogartikel und Rechtsseiten
   ========================================================= */

.hb-phero h1 em { font-style: normal; color: var(--accent); }
.hb-cat { display: inline-flex; align-items: center; gap: 8px; }
.hb-cat i { width: 6px; height: 6px; border-radius: 99px; background: var(--c, var(--accent)); }

/* ---------- Blog-Übersicht ---------- */
.hb-blog-count { white-space: nowrap; }
.hb-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(20px, 2vw, 32px); }
.hb-post { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hb-post-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: var(--surface); clip-path: inset(0 0 0 0 round var(--r-lg)); }
.hb-post-media > img, .hb-post-media > .hb-cover { position: absolute; inset: 0; width: 100%; height: 100%; transition: scale 1.2s var(--ease); }
.hb-post-media > img { object-fit: cover; }
.hb-post:hover .hb-post-media > img, .hb-post:hover .hb-post-media > .hb-cover { scale: 1.05; }
.hb-post-body { display: flex; flex-direction: column; gap: 14px; }
.hb-post-body h3 { margin: 0; font-family: var(--f-display); font-weight: 860; font-stretch: 66%; font-size: clamp(28px, 2.4vw, 38px); line-height: .94; text-transform: uppercase; transition: color .4s ease; }
.hb-post:hover .hb-post-body h3 { color: var(--accent-ink); }
.hb-post-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hb-post-body p:empty { display: none; }
.hb-blog-empty { grid-column: 1 / -1; padding: 48px 28px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); font-size: 15px; color: var(--ink-3); }

/* ---------- Blogartikel ---------- */
.hb-article { padding: calc(var(--header) + clamp(56px, 8vw, 120px)) 0 var(--sec); }
.hb-article-head { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; max-width: 1100px; }
.hb-back { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); transition: color .3s ease; }
.hb-back .hb-ic { transition: transform .5s var(--ease); }
.hb-back:hover { color: var(--ink); }
.hb-back:hover .hb-ic { transform: translateX(-4px); }
.hb-article-head h1 { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: clamp(48px, 7.4vw, 124px); line-height: .88; text-transform: uppercase; }
.hb-article-media { position: relative; margin-top: clamp(40px, 5vw, 72px); border-radius: var(--r-xl); overflow: hidden; clip-path: inset(0 0 0 0 round var(--r-xl)); background: var(--surface); }
.hb-article-media > img, .hb-article-media > .hb-cover { display: flex; width: 100%; height: auto; }
.hb-article-media > img { object-fit: cover; aspect-ratio: 16 / 8; }
.hb-article-body { width: min(100% - var(--gutter) * 2, 760px); margin: clamp(48px, 6vw, 88px) auto 0; }
.hb-article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.hb-article-foot > span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.hb-content { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.hb-content > :first-child { margin-top: 0; }
.hb-content p { margin: 0 0 1.1em; }
.hb-content h1, .hb-content h2, .hb-content h3 { font-family: var(--f-display); text-transform: uppercase; color: var(--ink); line-height: .95; }
.hb-content h1 { margin: 1.6em 0 .55em; font-weight: 900; font-stretch: 62%; font-size: clamp(38px, 4vw, 56px); }
.hb-content h2 { margin: 1.5em 0 .5em; font-weight: 860; font-stretch: 66%; font-size: clamp(30px, 3vw, 42px); }
.hb-content h3 { margin: 1.8em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line); font-weight: 800; font-stretch: 70%; font-size: clamp(24px, 2.2vw, 30px); }
.hb-content ul, .hb-content ol { margin: .4em 0 1.2em; padding: 0; list-style: none; }
.hb-content li { position: relative; margin: .4em 0; padding-left: 28px; }
.hb-content ul > li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 14px; height: 1px; background: var(--accent); }
.hb-content ol { counter-reset: li; }
.hb-content ol > li::before { counter-increment: li; content: counter(li, decimal-leading-zero); position: absolute; left: 0; font-family: var(--f-mono); font-size: 12px; color: var(--accent); top: .3em; }
.hb-content li > p { margin: 0; }
.hb-content strong { font-weight: 600; color: var(--ink); }
.hb-content code { padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--f-mono); font-size: .86em; color: var(--accent-ink); }
.hb-content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.hb-content img { max-width: 100%; border-radius: var(--r-lg); }

/* Icons im Beitrag (<i data-ic="…"></i>, Aufbereitung in blog.js) */
.hb-content .hb-ic { color: var(--accent); }
.hb-content p .hb-ic { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; }
.hb-content .has-ic:is(h1, h2, h3) { display: flex; align-items: center; gap: .5em; }
.hb-content .has-ic:is(h1, h2, h3) > .hb-ic-lead { flex: none; width: clamp(40px, 1.45em, 64px); height: clamp(40px, 1.45em, 64px); padding: .3em; border-radius: 50%; border: 1px solid rgba(var(--acc-rgb), .3); background: rgba(var(--acc-rgb), .08); }
.hb-content li.has-ic::before { content: none; }
.hb-content li.has-ic .hb-ic-lead { position: absolute; left: 0; top: calc(.9em - 8px); width: 16px; height: 16px; }

/* ---------- Rechtsseiten ---------- */
.hb-legal { width: min(100% - var(--gutter) * 2, 1040px); margin: 0 auto; padding: calc(var(--header) + clamp(56px, 8vw, 120px)) 0 var(--sec); }
.hb-legal-pill { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--accent); }
.hb-legal-pill span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hb-legal-title { display: block; margin-top: 28px; }
.hb-legal-title h1 { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: clamp(48px, 7.6vw, 120px); line-height: .88; text-transform: uppercase; overflow-wrap: break-word; hyphens: manual; }
.hb-legal-title i { display: none; }
.hb-legal-lead { margin: 24px 0 0; max-width: 56ch; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.hb-legal-cards { margin-top: clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 16px; }
.hb-legal-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.hb-legal-card-head { display: flex; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.hb-legal-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); }
.hb-legal-card-head b { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 70%; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.hb-legal-card-head small { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hb-legal-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px 28px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.hb-legal-body p { margin: 0; }
.hb-legal-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hb-legal-body li { position: relative; padding-left: 26px; }
.hb-legal-body li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 12px; height: 1px; background: var(--accent); }
.hb-legal-body strong { color: var(--ink); font-weight: 600; }
.hb-legal-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.hb-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.hb-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hb-row > div { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.hb-row > span { color: var(--ink); overflow-wrap: anywhere; }
.hb-rows--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.hb-rows--2 .hb-row { grid-template-columns: 90px minmax(0, 1fr); }
.hb-legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hb-legal-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hb-legal-val { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.hb-legal-val.is-strong { color: var(--ink); font-weight: 600; }
.hb-legal-sep { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hb-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.hb-chips > span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink); }
.hb-note { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; border-radius: var(--r-lg); border: 1px solid rgba(var(--acc-rgb), .3); background: rgba(var(--acc-rgb), .06); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.hb-note .hb-ic { margin-top: 2px; color: var(--accent); }
.hb-note b { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .hb-blog-grid { grid-template-columns: 1fr; }
  .hb-legal-title h1 { font-size: clamp(40px, 12vw, 64px); }
  .hb-legal-grid, .hb-rows--2 { grid-template-columns: 1fr; }
  .hb-row { grid-template-columns: 1fr; gap: 4px; }
  .hb-legal-card-head, .hb-legal-body { padding-left: 20px; padding-right: 20px; }
  .hb-article-head h1 { font-size: clamp(40px, 12vw, 72px); }
}
