/* 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; }
