/* WordPress-specific additions to the HBN design. */

/* Keep the sticky header below the admin bar when logged in */
.admin-bar .hbn-sticky-header { top: 32px !important; }
@media (max-width: 782px) { .admin-bar .hbn-sticky-header { top: 46px !important; } }
@media (max-width: 600px) { .admin-bar .hbn-sticky-header { top: 0 !important; } }

.hbn-eyebrow { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-subtle); font-weight: 500; }

/* ---------- Text content (posts, archives, 404) ---------- */
.hbn-content { max-width: 760px; margin: 0 auto; padding: 80px 40px 120px; }
.hbn-content > h1, .hbn-content article > h1 { font-size: 46px; font-weight: 700; line-height: 1.15; margin: 8px 0 32px; }
.hbn-post-list { display: grid; gap: 24px; }
.hbn-post-list h3 a { color: var(--text-heading); }
.nav-links { display: flex; gap: 16px; margin-top: 40px; }

/* ---------- Prose: typography for editor content ---------- */
.hbn-prose { font-size: 17px; line-height: 1.7; color: var(--text-body); overflow-wrap: break-word; }
.hbn-prose > :first-child { margin-top: 0; }
.hbn-prose > :last-child { margin-bottom: 0; }
.hbn-prose p { margin: 0 0 1.1em; }
.hbn-prose h2, .hbn-prose h3, .hbn-prose h4, .hbn-prose h5, .hbn-prose h6 { color: var(--hbn-ink); letter-spacing: -0.01em; text-wrap: balance; }
.hbn-prose h2 { font-size: 30px; font-weight: 700; line-height: 1.2; margin: 56px 0 18px; }
.hbn-prose h3 { font-size: 23px; font-weight: 600; line-height: 1.3; margin: 44px 0 12px; }
.hbn-prose h4, .hbn-prose h5, .hbn-prose h6 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 32px 0 8px; }
.hbn-prose h2 + h3, .hbn-prose h2 + h4, .hbn-prose h3 + h4 { margin-top: 16px; }
.hbn-prose ul, .hbn-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.hbn-prose li { margin-bottom: 0.45em; padding-left: 0.2em; }
.hbn-prose ul li::marker { color: var(--hbn-gold-dark); }
.hbn-prose a { color: var(--hbn-ink); text-decoration: underline; text-decoration-color: var(--hbn-gold); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.hbn-prose a:hover { color: var(--hbn-gold-dark); }
.hbn-prose strong, .hbn-prose b { font-weight: 600; color: var(--hbn-ink); }
.hbn-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.hbn-prose hr { border: 0; border-top: 1px solid var(--border-hairline); margin: 40px 0; }
.hbn-prose blockquote { margin: 0 0 1.1em; padding-left: 24px; border-left: 2px solid var(--hbn-gold); font-style: italic; }
.hbn-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.hbn-prose th, .hbn-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-hairline); vertical-align: top; }

/* ---------- Impressum / Datenschutz ---------- */
.hbn-text-head { max-width: 1140px; margin: 0 auto; padding: 40px 40px 56px; display: flex; flex-direction: column; gap: 16px; }
.hbn-text-head .crumbs { margin-bottom: 24px; }
.hbn-text-head h1 { margin: 0; font-size: 56px; line-height: 1.1; letter-spacing: -0.01em; font-weight: 700; color: var(--hbn-ink); text-wrap: balance; }
.hbn-text-meta { margin: 0; font-size: 15px; color: var(--text-muted); }

.hbn-text-body {
  background: var(--hbn-gold-wash);
  padding: 72px max(40px, calc((100% - 1140px) / 2)) 120px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start;
}
.hbn-text-card { background: var(--hbn-white); border-radius: 20px; box-shadow: var(--shadow-card); padding: 56px 64px; max-width: 780px; }
.hbn-text-back { margin: 56px 0 0; padding-top: 32px; border-top: 1px solid var(--border-hairline); }

.hbn-text-aside {
  position: sticky; top: 140px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: var(--hbn-white); border-radius: 20px; box-shadow: var(--shadow-card); padding: 28px;
}
.admin-bar .hbn-text-aside { top: 172px; }
.hbn-text-aside p { margin: 0; color: var(--text-body); }
.hbn-text-mail { font-weight: 500; color: var(--hbn-ink); border-bottom: 1px solid var(--hbn-gold); overflow-wrap: anywhere; }
.hbn-text-aside .btn { margin-top: 8px; width: 100%; }
.hbn-text-back .btn, .hbn-text-aside .btn { box-sizing: border-box; }
.hbn-text-home { font-size: 15px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Articles ---------- */
.hbn-article-image { margin: 0 0 40px; }
.hbn-article-image img { display: block; width: 100%; height: auto; max-height: min(560px, 70vh); object-fit: cover; border-radius: 14px; }
.hbn-author { align-items: flex-start; }
.hbn-author-photo { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--hbn-gold); margin-bottom: 4px; }
.hbn-author strong { font-size: 18px; font-weight: 600; color: var(--hbn-ink); }
.hbn-more { background: var(--hbn-gold-wash); padding: 0 max(40px, calc((100% - 1140px) / 2)) 120px; }
.hbn-more h2 { margin: 0 0 32px; font-size: 36px; font-weight: 700; letter-spacing: -0.01em; color: var(--hbn-ink); }
.hbn-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.hbn-article-main .hbn-text-body { padding-bottom: 80px; }

/* Blog cards: the whole title is the link */
.blogcard h3 .blogcard-link { color: inherit; }
.blogcard h3 .blogcard-link:hover { color: var(--hbn-gold-dark); }
.hbn-empty-note { margin: 0; font-size: 17px; color: var(--text-muted); }
.hbn-empty-note a { color: var(--hbn-ink); border-bottom: 1px solid var(--hbn-gold); }

/* ---------- Booking page (Erstgespräch) ---------- */
.hbn-booking-lead { margin: 4px 0 0; font-size: 20px; font-weight: 300; line-height: 1.55; color: var(--text-body); max-width: 52ch; }
.hbn-booking-card { max-width: none; padding: 40px; }
.hbn-booking-title { margin: 0 0 24px; font-size: 24px; font-weight: 600; color: var(--hbn-ink); }
.hbn-gcal {
  min-height: 560px; border-radius: 14px; background: var(--hbn-gold-wash);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hbn-gcal.is-loaded { background: transparent; min-height: 0; display: block; }
.hbn-gcal iframe { display: block; width: 100%; height: 780px; border: 0; background: var(--hbn-white); }
.hbn-gcal-consent { max-width: 46ch; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--hbn-gold-dark); }
.hbn-gcal-consent-title { margin: 4px 0 0; font-size: 22px; font-weight: 600; color: var(--hbn-ink); }
.hbn-gcal-consent-text { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.hbn-gcal-consent-text a { color: var(--hbn-ink); border-bottom: 1px solid var(--hbn-gold); }
.hbn-gcal-remember { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.hbn-gcal-remember input { width: 18px; height: 18px; accent-color: var(--hbn-gold-dark); margin: 0; }
.hbn-gcal-alt { margin: 16px 0 0; font-size: 14px; color: var(--text-muted); }
.hbn-gcal-alt a { color: var(--hbn-ink); border-bottom: 1px solid var(--hbn-gold); }
.hbn-gcal-fallback { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 8px 0; }
.hbn-gcal-fallback p { margin: 0; font-size: 17px; line-height: 1.65; max-width: 52ch; }
.hbn-booking-aside .checklist { margin: 8px 0 4px; }
.hbn-booking-mail { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--border-hairline); font-size: 15px; color: var(--text-muted); width: 100%; }

/* ---------- Pages built with a page builder ---------- */
.hbn-builder { min-height: 40vh; }

@media (max-width: 1060px) {
  .hbn-text-body { grid-template-columns: minmax(0, 1fr); }
  .hbn-text-card { max-width: none; }
  .hbn-text-aside { position: static; max-width: 780px; }
  .hbn-text-aside .btn { width: auto; }
}

@media (max-width: 900px) {
  .hbn-content { padding: 56px 20px 80px; }
  .hbn-content > h1, .hbn-content article > h1 { font-size: 34px; }
  .hbn-text-head { padding: 28px 20px 40px; }
  .hbn-text-head .crumbs { margin-bottom: 12px; }
  .hbn-text-head h1 { font-size: 40px; }
  .hbn-text-body { padding: 40px 20px 72px; gap: 24px; }
  .hbn-text-card { padding: 36px 28px; }
  .hbn-prose h2 { font-size: 26px; margin-top: 44px; }
  .hbn-prose h3 { font-size: 21px; margin-top: 36px; }
  .hbn-booking-card { padding: 28px 20px; }
  .hbn-booking-lead { font-size: 18px; }
  .hbn-gcal iframe { height: max(640px, calc(100vh - 140px)); }
  .hbn-gcal { min-height: 480px; }
  .hbn-more { padding: 0 20px 72px; }
  .hbn-more h2 { font-size: 28px; }
  .hbn-article-main .hbn-text-body { padding-bottom: 56px; }
  .hbn-article-image { margin-bottom: 28px; }
}

@media (max-width: 640px) {
  .hbn-text-head h1 { font-size: 34px; }
  .hbn-text-card { padding: 28px 20px; border-radius: 16px; }
  .hbn-prose { font-size: 16px; }
  .hbn-prose h2 { font-size: 23px; }
  .hbn-prose h3 { font-size: 19px; }
  .hbn-prose h4 { font-size: 17px; }
  .hbn-text-back { margin-top: 40px; padding-top: 24px; }
  .hbn-text-back .btn, .hbn-text-aside .btn { width: 100%; }
  .hbn-text-aside { padding: 24px 20px; border-radius: 16px; }
}
