/* The Book of Life - Community-Design (BuddyPress/BuddyBoss-Anmutung): Macondo, #385DFF, #1E2132, #747474, #F2F4F5/#FAFBFD, Akzent #92003B */
@font-face { font-family: 'Macondo'; src: url('../fonts/Macondo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root[data-site="book_of_life"] {
  --bol-blue: #385DFF; --bol-blue-dark: #2a47cc; --bol-ink: #1E2132; --bol-muted: #747474; --bol-accent: #92003B;
  --brand-bg: #F2F4F5; --brand-surface: #FFFFFF; --brand-light: #FAFBFD; --brand-accent: #92003B;
  --brand-text: #1E2132; --brand-text-muted: #747474; --brand-border: #E3E6EA;
  --brand-50: #EEF1FF; --brand-100: #DDE3FF; --brand-200: #BCC8FF; --brand-300: #96A8FF; --brand-400: #6F89FF;
  --brand-500: #4A69FF; --brand-600: #385DFF; --brand-700: #2a47cc; --brand-800: #203699; --brand-900: #162466;
  --brand-ring: rgba(56, 93, 255, .18);
  --bol-radius: 14px;
}
:root[data-site="book_of_life"][data-theme="dark"] {
  --bol-blue: #7B93FF; --bol-ink: #EEF0F6; --bol-muted: #A0A4B5;
  --brand-bg: #14161F; --brand-surface: #1E2132; --brand-light: #191C2A; --brand-text: #EEF0F6;
  --brand-text-muted: #A0A4B5; --brand-border: #30344b; --brand-600: #7B93FF; --brand-700: #A0B1FF; --brand-50: #232a52;
  --brand-100: #2b3566; --bol-accent: #ff6b9a;
}
@media (prefers-color-scheme: dark) {
  :root[data-site="book_of_life"]:not([data-theme="light"]):not([data-theme="dark"]) {
    --bol-blue: #7B93FF; --bol-ink: #EEF0F6; --bol-muted: #A0A4B5;
    --brand-bg: #14161F; --brand-surface: #1E2132; --brand-light: #191C2A; --brand-text: #EEF0F6;
    --brand-text-muted: #A0A4B5; --brand-border: #30344b; --brand-600: #7B93FF; --brand-700: #A0B1FF; --brand-50: #232a52;
    --brand-100: #2b3566; --bol-accent: #ff6b9a;
  }
}

[data-site="book_of_life"] body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
[data-site="book_of_life"] .bol-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 16px 56px; }
[data-site="book_of_life"] .bol-brand, [data-site="book_of_life"] .bol-h { font-family: 'Macondo', Georgia, serif; font-weight: 400; letter-spacing: .01em; }

/* Header */
.bol-header { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 68px; display: flex; align-items: center; gap: 24px; }
.bol-brand { font-size: 1.55rem; color: var(--bol-ink); text-decoration: none; white-space: nowrap; }
.bol-brand span { color: var(--bol-blue); }
.bol-nav { display: flex; gap: 4px; flex: 1; }
.bol-nav a { padding: 8px 14px; border-radius: 999px; color: var(--brand-text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.bol-nav a:hover { background: var(--brand-50); color: var(--bol-blue); }
.bol-nav a.active { background: var(--brand-50); color: var(--bol-blue); }
.bol-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bol-burger { display: none; background: none; border: 0; color: var(--brand-text); padding: 6px; cursor: pointer; }
.bol-mobile { display: none; }
@media (max-width: 860px) {
  .bol-nav { display: none; }
  .bol-burger { display: inline-flex; }
  .bol-mobile { display: block; border-top: 1px solid var(--brand-border); padding: 8px 16px 16px; }
  .bol-mobile a { display: block; padding: 11px 6px; color: var(--brand-text); text-decoration: none; font-weight: 600; }
}
.bol-iconbtn { background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--brand-text); cursor: pointer; }
.bol-iconbtn:hover { background: var(--brand-50); }
.bol-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-100); color: var(--bol-blue); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex: none; }
.bol-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bol-avatar.lg { width: 96px; height: 96px; font-size: 2.2rem; }
.bol-menu { position: absolute; right: 0; top: 46px; min-width: 210px; background: var(--brand-surface); border: 1px solid var(--brand-border);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(30,33,50,.16); padding: 6px; z-index: 60; }
.bol-menu a, .bol-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none;
  color: var(--brand-text); font: inherit; font-size: .92rem; text-decoration: none; cursor: pointer; }
.bol-menu a:hover, .bol-menu button:hover { background: var(--brand-50); }

/* Buttons / Formulare */
.bol-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--bol-blue);
  background: var(--bol-blue); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; }
.bol-btn:hover { background: var(--bol-blue-dark); border-color: var(--bol-blue-dark); }
.bol-btn.ghost { background: transparent; color: var(--bol-blue); }
.bol-btn.ghost:hover { background: var(--brand-50); }
.bol-btn.accent { background: var(--bol-accent); border-color: var(--bol-accent); }
.bol-btn.sm { padding: 6px 14px; font-size: .82rem; }
.bol-btn.danger { background: transparent; color: var(--bol-accent); border-color: var(--bol-accent); }
.bol-form label { display: block; font-weight: 600; font-size: .88rem; margin: 14px 0 5px; }
.bol-form input[type=text], .bol-form input[type=email], .bol-form input[type=password], .bol-form input[type=url], .bol-form select,
.bol-form textarea, .bol-search input { width: 100%; padding: 10px 13px; border: 1px solid var(--brand-border); border-radius: 10px;
  background: var(--brand-light); color: var(--brand-text); font: inherit; }
.bol-form input:focus, .bol-form textarea:focus, .bol-form select:focus, .bol-search input:focus { outline: 2px solid var(--brand-ring); border-color: var(--bol-blue); }
.bol-form .help, .bol-form .errorlist { font-size: .8rem; color: var(--bol-muted); margin: 4px 0 0; padding: 0; list-style: none; }
.bol-form .errorlist { color: var(--bol-accent); }
.bol-form .hp { position: absolute; left: -9999px; }
.bol-form input[type=checkbox] { width: auto; margin-right: 8px; }

/* Karten / Layout */
.bol-card { background: var(--brand-surface); border: 1px solid var(--brand-border); border-radius: var(--bol-radius); padding: 20px; }
.bol-card + .bol-card { margin-top: 16px; }
.bol-title { font-size: 2rem; margin: 0 0 6px; color: var(--bol-ink); }
.bol-sub { color: var(--bol-muted); margin: 0 0 22px; }
.bol-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bol-between { justify-content: space-between; }
.bol-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bol-two { display: grid; gap: 20px; grid-template-columns: 1fr 300px; }
@media (max-width: 900px) { .bol-two { grid-template-columns: 1fr; } }
.bol-muted { color: var(--bol-muted); font-size: .85rem; }
.bol-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--brand-50); color: var(--bol-blue); }
.bol-badge.warn { background: color-mix(in srgb, var(--bol-accent) 14%, transparent); color: var(--bol-accent); }
.bol-badge.ok { background: color-mix(in srgb, #1a9d5b 16%, transparent); color: #1a9d5b; }
.bol-link { color: var(--bol-blue); text-decoration: none; font-weight: 600; }
.bol-link:hover { text-decoration: underline; }
.bol-body { white-space: pre-wrap; word-break: break-word; line-height: 1.65; }
.bol-crumbs { font-size: .85rem; color: var(--bol-muted); margin-bottom: 14px; }
.bol-crumbs a { color: var(--bol-blue); text-decoration: none; }
.bol-pager { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }

/* Landing */
.bol-hero { border-radius: 22px; padding: 64px 32px; text-align: center; color: #fff;
  background: radial-gradient(1200px 400px at 20% -10%, rgba(255,255,255,.18), transparent), linear-gradient(135deg, #1E2132 0%, #385DFF 120%); }
.bol-hero h1 { font-family: 'Macondo', Georgia, serif; font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 14px; }
.bol-hero p { max-width: 640px; margin: 0 auto 26px; font-size: 1.1rem; opacity: .92; line-height: 1.6; }
.bol-hero .bol-btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.bol-hero .bol-btn.ghost:hover { background: rgba(255,255,255,.14); }
.bol-hero .bol-btn.light { background: #fff; color: #1E2132; border-color: #fff; }
.bol-pillar { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.bol-pillar:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,33,50,.12); }
.bol-pillar .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--bol-blue); display: flex;
  align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 12px; }
.bol-section { margin-top: 36px; }
.bol-section h2 { font-family: 'Macondo', Georgia, serif; font-weight: 400; font-size: 1.5rem; margin: 0 0 14px; }

/* Forum */
.bol-table { width: 100%; border-collapse: collapse; }
.bol-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bol-muted); padding: 10px 14px; border-bottom: 1px solid var(--brand-border); }
.bol-table td { padding: 14px; border-bottom: 1px solid var(--brand-border); vertical-align: top; }
.bol-table tr:last-child td { border-bottom: 0; }
.bol-post { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 20px; }
.bol-post .who { text-align: center; font-size: .85rem; }
@media (max-width: 640px) { .bol-post { grid-template-columns: 1fr; } .bol-post .who { text-align: left; display: flex; gap: 10px; align-items: center; } }
.bol-post.hidden { opacity: .55; }

/* Marktplatz */
.bol-item { display: block; text-decoration: none; color: inherit; padding: 0; overflow: hidden; }
.bol-item .img { aspect-ratio: 4/3; background: var(--brand-50); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.bol-item .img img { width: 100%; height: 100%; object-fit: cover; }
.bol-item .info { padding: 14px 16px 16px; }
.bol-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.bol-gallery img { width: 100%; border-radius: 10px; }
.bol-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bol-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--brand-border); color: var(--brand-text); text-decoration: none; font-size: .85rem; font-weight: 600; background: var(--brand-surface); }
.bol-chip.on { background: var(--bol-blue); color: #fff; border-color: var(--bol-blue); }

/* Footer */
[data-site="book_of_life"] footer { text-align: left !important; padding: 28px 0 !important; }
.bol-footer { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; color: var(--bol-muted); font-size: .85rem; }
.bol-footer a { color: var(--bol-muted); text-decoration: none; margin-right: 16px; }
.bol-footer a:hover { color: var(--bol-blue); }
.bol-flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; background: var(--brand-50); color: var(--bol-blue); font-weight: 600; }
.bol-grid > .bol-card, .bol-two > * > .bol-card:first-child { margin-top: 0; }
.bol-pillar h3 { font-family: "Macondo", Georgia, serif; }

/* ---- Forum: Sidebar, Symbole, Rich-Text ------------------------------------------------------------------- */
.bol-flayout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.bol-fside { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; }
.bol-fside-toggle { display: none; }
@media (max-width: 900px) {
  .bol-flayout { grid-template-columns: 1fr; gap: 14px; }
  .bol-fside { display: none; position: static; max-height: none; }
  .bol-fside.open { display: block; }
  .bol-fside-toggle { display: inline-flex; justify-self: start; }
}
.fside-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--brand-border); background: var(--brand-50); border-radius: 12px; padding: 8px 12px; margin-bottom: 14px; }
.fside-search input { border: 0; background: transparent; outline: 0; width: 100%; font: inherit; color: var(--bol-ink); }
.fside-search svg, .fside-link svg, .bol-ficon svg, .bol-chip svg, .bol-ico { width: 20px; height: 20px; stroke: var(--bol-blue); flex: none; }
.fside-tree, .fside-sub { list-style: none; margin: 0; padding: 0; }
.fside-sub { margin-left: 14px; padding-left: 8px; border-left: 1px solid var(--brand-border); }
.fside-item[hidden] { display: none; }
.fside-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--bol-ink); text-decoration: none;
  font-family: 'Macondo', Georgia, serif; font-size: 1.05rem; }
.fside-link:hover { background: var(--brand-50); }
.fside-link.active { background: var(--brand-50); color: var(--bol-blue); }
.fside-item details > summary { list-style: none; cursor: pointer; position: relative; }
.fside-item details > summary::-webkit-details-marker { display: none; }
.fside-item details > summary::after { content: '›'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(0); color: var(--bol-muted); transition: transform .15s; font-size: 1.2rem; }
.fside-item details[open] > summary::after { transform: translateY(-50%) rotate(90deg); }
.bol-ficon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bol-ficon.lg { width: 48px; height: 48px; }
.bol-ficon.lg svg { width: 26px; height: 26px; }
.bol-subs { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bol-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--brand-50); color: var(--bol-blue); text-decoration: none; font-size: .85rem; }
.bol-chip svg { width: 14px; height: 14px; }
.bol-rich { overflow-wrap: anywhere; line-height: 1.6; }
.bol-rich img { max-width: 100%; height: auto; border-radius: 8px; }
.bol-rich table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.bol-rich td, .bol-rich th { border: 1px solid var(--brand-border); padding: 5px 9px; }
.bol-rich blockquote { border-left: 3px solid var(--bol-blue); margin: 10px 0; padding: 2px 14px; color: var(--bol-muted); }
.bol-rich ul, .bol-rich ol { padding-left: 26px; margin: 8px 0; }
.bol-rich ul { list-style: disc; }
.bol-rich ol { list-style: decimal; }
.bol-rich h2, .bol-rich h3, .bol-rich h4 { font-family: "Macondo", Georgia, serif; font-weight: 400; margin: 14px 0 6px; }
.bol-rich p { margin: 0 0 .8em; }
.bol-rich a { color: var(--bol-blue); }
.tox-tinymce { border-radius: 12px !important; }
.bol-title-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--tc, #385DFF); background: color-mix(in srgb, var(--tc, #385DFF) 13%, transparent); }
.bol-title-badge svg { width: 12px; height: 12px; }
.bol-stars { display: inline-flex; gap: 1px; font-size: 1.15rem; line-height: 1; }
.bol-stars .s { color: #d9c27a; }
.bol-stars .s.off { color: #d6d9e0; }
.bol-rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.bol-rate button { background: none; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1; color: #d6d9e0; padding: 0 1px; }
.bol-rate button.on, .bol-rate button:hover, .bol-rate button:hover ~ button { color: #e0a100; }
.bol-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 18px; }
.bol-course { background: var(--brand-surface,#fff); color: var(--brand-text,#0f172a); border-radius: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.08); overflow: hidden; display: flex; flex-direction: column; }
.bol-course .cv { display: block; position: relative; aspect-ratio: 3/2; background: var(--brand-50); }
.bol-course .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bol-course .lvl { position: absolute; left: 10px; top: 10px; background: var(--bol-blue); color: #fff; font-size: .72rem; padding: 2px 10px; border-radius: 999px; }
.bol-course .done { position: absolute; right: 10px; top: 10px; background: #1a9d5b; color: #fff; font-size: .72rem; padding: 2px 10px; border-radius: 999px; }
.bol-course .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bol-course .bd a.t { font-family: "Macondo", Georgia, serif; font-size: 1.1rem; color: inherit; text-decoration: none; }
.bol-matrix { border-collapse: collapse; width: 100%; font-size: .9rem; }
.bol-matrix th, .bol-matrix td { border-bottom: 1px solid var(--brand-border); padding: 6px 8px; text-align: left; vertical-align: middle; }
.bol-matrix thead th { position: sticky; top: 0; background: var(--brand-surface,#fff); font-size: .75rem; }
.bol-matrix select { font-size: .85rem; padding: 3px 4px; border: 1px solid var(--brand-border); border-radius: 6px; background: var(--brand-surface,#fff); color: var(--brand-text,#0f172a); max-width: 150px; }
.bol-matrix .inh { color: var(--bol-muted); font-size: .72rem; display: block; }
.bol-matrix select { min-width: 190px; width: auto; max-width: none; }
.bol-matrix td, .bol-matrix th { white-space: nowrap; }
.bol-matrix td:first-child { min-width: 150px; white-space: normal; }
.bol-matrix-input { width: auto !important; max-width: 340px; }
