/*
Theme Name: Bürger Verlag
Theme URI: https://buerger-verlag.de
Author: Bürger Verlag GmbH & Co. KG
Description: Modern-editorial Theme für den Bürger Verlag. Barrierefreie Typografie.
Version: 7.0
Text Domain: buerger-verlag
*/

/* ══════════════════════════════════════════════════════════════
   DESIGN SYSTEM — Accessibility-first
   
   Typography scale: 18px base, minimum 12px (badges only)
   Contrast: All text ≥ 4.5:1 on white (WCAG AA)
   Font weight: 400 minimum for body text (no Light/300)
   Line height: 1.6–1.8 for body, 1.2–1.3 for headings
   Line length: max ~70 characters (max-width on text blocks)
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Typography */
  --bv-font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --bv-serif: 'Playfair Display', Georgia, serif;

  /* Color palette — all tested against #fff for WCAG AA (4.5:1+) */
  --bv-navy: #0a2540;        /* 15.5:1 — headings */
  --bv-dark: #1e3a52;        /* 11.8:1 — sub-headings */
  --bv-body: #3d4f5f;        /* 8.0:1  — body text (was #4a5968/7.2:1, darkened for fw:400) */
  --bv-caption: #5f6d7a;     /* 5.3:1  — captions, meta (was #7c8d9a/3.4:1 ❌) */
  --bv-muted: #6e7b87;       /* 4.5:1  — decorative small text (was #a3b1bc/2.2:1 ❌) */
  --bv-rule: #dde3e8;
  --bv-bg: #f4f7fa;
  --bv-paper: #f9fbfc;
  --bv-white: #ffffff;

  /* Brand teal — two variants for accessibility */
  --bv-teal: #01a3bc;        /* 3.0:1 — buttons (white text ON teal), icons, decorative */
  --bv-teal-text: #017d93;   /* 4.8:1 — text links, inline text (WCAG AA) */
  --bv-teal-dark: #016e82;   /* 5.9:1 — hover states */
  --bv-teal-light: #e3f4f7;
  --bv-teal-wash: #edf8fa;

  /* Accent colors for book covers */
  --bv-warm: #6e5530;        /* 7.6:1 */
  --bv-warm-light: #f0e8d8;
  --bv-coral: #8a3d2e;       /* 7.5:1 */
  --bv-coral-light: #faf0ed;
  --bv-plum: #5c3d5e;        /* 8.5:1 */
  --bv-plum-light: #f3edf4;

  /* Layout */
  --bv-radius: 12px;
  --bv-radius-sm: 8px;
  --bv-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bv-max-width: 980px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--bv-font); color: var(--bv-body); background: var(--bv-bg); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bv-teal-text); text-decoration: none; transition: all 0.25s var(--bv-ease); }
a:hover { color: var(--bv-teal-dark); }
::selection { background: var(--bv-teal-light); color: var(--bv-teal-dark); }

/* ── Animations ── */
@keyframes bv-up { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.bv-reveal { opacity:0; transform:translateY(16px); transition: opacity 0.6s var(--bv-ease), transform 0.6s var(--bv-ease); }
.bv-reveal.visible { opacity:1; transform:translateY(0); }

/* ── Layout ── */
.bv-site { max-width: var(--bv-max-width); margin: 0 auto; background: var(--bv-white); min-height: 100vh; box-shadow: 0 0 60px rgba(10,37,64,0.04); }
.bv-container { padding: 0 2.75rem; }
@media (max-width:768px) { .bv-container { padding: 0 1.5rem; } }

/* ══════════════════════════════════════════════════════════════
   BUTTONS — 16px (0.88rem), pill shape, three variants
   ══════════════════════════════════════════════════════════════ */
.bv-btn-fill { font-size: 0.88rem; font-weight: 600; padding: 0.65rem 1.4rem; background: var(--bv-teal); color: var(--bv-white); border-radius: 28px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; transition: all 0.25s var(--bv-ease); border: none; cursor: pointer; }
.bv-btn-fill:hover { background: var(--bv-teal-dark); color: var(--bv-white); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(1,125,147,0.3); }
.bv-btn-out { font-size: 0.88rem; font-weight: 600; padding: 0.65rem 1.4rem; border: 1.5px solid var(--bv-teal-text); color: var(--bv-teal-text); border-radius: 28px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; transition: all 0.25s var(--bv-ease); background: transparent; cursor: pointer; }
.bv-btn-out:hover { background: var(--bv-teal); color: var(--bv-white); border-color: var(--bv-teal); transform: translateY(-1px); }
.bv-btn-ghost { font-size: 0.88rem; font-weight: 500; padding: 0.65rem 1.4rem; border: 1.5px solid var(--bv-rule); color: var(--bv-body); border-radius: 28px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; transition: all 0.25s var(--bv-ease); background: transparent; cursor: pointer; }
.bv-btn-ghost:hover { border-color: var(--bv-teal-text); color: var(--bv-teal-text); transform: translateY(-1px); }
.bv-btn-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width:480px) { .bv-btn-fill, .bv-btn-out, .bv-btn-ghost { font-size: 0.83rem; padding: 0.55rem 1.1rem; } }

/* ══════════════════════════════════════════════════════════════
   HEADER — sticky, glassmorphism
   ══════════════════════════════════════════════════════════════ */
.bv-header { padding: 0.9rem 2.75rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--bv-rule); position: sticky; top: 0; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 100; }
.bv-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.bv-logo:hover { opacity: 1; color: inherit; }
.bv-logo-img { height: 42px; width: auto; border-radius: 4px; }
.bv-logo-name { font-family: var(--bv-serif); font-size: 1.25rem; font-weight: 700; color: var(--bv-navy); letter-spacing: -0.5px; }
.bv-logo-suffix { font-size: 0.67rem; color: var(--bv-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.bv-nav { display: flex; gap: 1.75rem; list-style: none; }
.bv-nav a { font-size: 0.88rem; font-weight: 500; color: var(--bv-caption); position: relative; padding-bottom: 2px; }
.bv-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: var(--bv-teal); transition: width 0.3s var(--bv-ease); }
.bv-nav a:hover, .bv-nav a.active { color: var(--bv-navy); opacity:1; }
.bv-nav a:hover::after, .bv-nav a.active::after { width: 100%; }
.bv-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.bv-nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--bv-navy); margin: 5px 0; }
@media (max-width:768px) { .bv-header { padding: 0.9rem 1.5rem; } .bv-nav { display: none; } .bv-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bv-rule); padding: 1.25rem 1.5rem; gap: 0.75rem; } .bv-nav-toggle { display: block; } }

/* ══════════════════════════════════════════════════════════════
   HERO — editorial, gradient accent
   ══════════════════════════════════════════════════════════════ */
.bv-hero { padding: 5rem 2.75rem 4rem; background: var(--bv-bg); position: relative; overflow: hidden; }
.bv-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(160deg, rgba(1,163,188,0.06) 0%, transparent 45%, rgba(10,37,64,0.03) 100%); pointer-events: none; }
.bv-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--bv-teal), rgba(1,163,188,0.1), transparent); opacity: 0.5; }
.bv-hero > * { position: relative; }
.bv-hero-inner { max-width: 620px; }
.bv-hero-eyebrow { font-size: 0.72rem; font-weight: 600; color: var(--bv-teal-text); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1.25rem; animation: bv-up 0.7s var(--bv-ease) 0.1s both; }
.bv-hero h1 { font-family: var(--bv-serif); font-size: 2.75rem; font-weight: 700; color: var(--bv-navy); line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.5px; animation: bv-up 0.7s var(--bv-ease) 0.2s both; }
.bv-hero h1 em { font-style: italic; color: var(--bv-teal-text); }
.bv-hero-desc { font-size: 1.05rem; color: var(--bv-body); max-width: 480px; line-height: 1.7; font-weight: 400; animation: bv-up 0.7s var(--bv-ease) 0.35s both; }
.bv-hero .bv-btn-group { margin-top: 1.75rem; animation: bv-up 0.7s var(--bv-ease) 0.5s both; }
@media (max-width:768px) { .bv-hero { padding: 3.5rem 1.5rem 3rem; } .bv-hero h1 { font-size: 2rem; } }

/* ══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════════════════════════ */
.bv-section-header { padding-top: 3rem; padding-bottom: 1.75rem; }
.bv-section-accent { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.35rem; }
.bv-section-bar { width: 4px; height: 24px; border-radius: 2px; }
.bv-section-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px; }
.bv-section-title { font-family: var(--bv-serif); font-size: 1.6rem; font-weight: 600; color: var(--bv-navy); letter-spacing: -0.3px; }

/* ══════════════════════════════════════════════════════════════
   PUBLICATION CARDS
   ══════════════════════════════════════════════════════════════ */
.bv-pub-card { display: flex; gap: 1.75rem; padding: 1.5rem; background: var(--bv-white); border: 1px solid var(--bv-rule); border-radius: var(--bv-radius); margin-bottom: 1rem; transition: border-color 0.3s var(--bv-ease), box-shadow 0.3s var(--bv-ease), transform 0.3s var(--bv-ease); }
.bv-pub-card:hover { border-color: rgba(1,125,147,0.25); box-shadow: 0 8px 28px rgba(10,37,64,0.06); transform: translateY(-2px); }
.bv-pub-card-noborder { border: none; padding: 0; }
.bv-pub-card-noborder:hover { box-shadow: none; transform: none; }
.bv-pub-cover { flex-shrink: 0; width: 130px; }
.bv-pub-cover img { width: 130px; height: 175px; object-fit: cover; border-radius: var(--bv-radius-sm); box-shadow: 0 4px 16px rgba(10,37,64,0.08); }
.bv-pub-cover-placeholder { width: 130px; height: 175px; border-radius: var(--bv-radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 600; text-align: center; padding: 1rem; line-height: 1.4; box-shadow: 0 4px 16px rgba(10,37,64,0.06); }
.bv-pub-cover-lg { width: 150px; }
.bv-pub-cover-lg img, .bv-pub-cover-lg .bv-pub-cover-placeholder { width: 150px; height: 200px; }
.bv-pub-cover-lg img { box-shadow: 0 10px 36px rgba(1,125,147,0.2); }
.bv-pub-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.bv-pub-title { font-family: var(--bv-serif); font-size: 1.25rem; font-weight: 600; color: var(--bv-navy); margin-bottom: 0.4rem; line-height: 1.3; letter-spacing: -0.2px; }
.bv-pub-title-sm { font-size: 1.1rem; }
.bv-pub-badge { display: inline-block; font-family: var(--bv-font); font-size: 0.67rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; vertical-align: middle; margin-left: 0.4rem; letter-spacing: 0.3px; }
.bv-badge-teal { background: var(--bv-teal-light); color: var(--bv-teal-dark); }
.bv-badge-sage { background: var(--bv-teal-light); color: var(--bv-teal-dark); }
.bv-pub-desc { font-size: 1rem; color: var(--bv-body); line-height: 1.7; margin-bottom: 1.25rem; font-weight: 400; max-width: 540px; }
.bv-pub-desc-sm { font-size: 0.94rem; margin-bottom: 0.85rem; }
.bv-pub-meta { font-size: 0.83rem; color: var(--bv-caption); margin-bottom: 0.85rem; }
.bv-cover-label { text-align: center; margin-top: 0.5rem; }
@media (max-width:768px) { .bv-pub-card { flex-direction: column; align-items: center; text-align: center; } .bv-btn-group { justify-content: center; } .bv-pub-cover, .bv-pub-cover-lg { width: 130px; } .bv-pub-cover-lg img, .bv-pub-cover-lg .bv-pub-cover-placeholder { width: 130px; height: 175px; } }

/* ══════════════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════════════ */
.bv-cta-banner { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; background: var(--bv-bg); border-radius: 0 var(--bv-radius) var(--bv-radius) 0; margin-bottom: 2.5rem; border-left: 3px solid var(--bv-teal); transition: background 0.3s var(--bv-ease); }
.bv-cta-banner:hover { background: var(--bv-teal-wash); }
.bv-cta-banner h3 { font-family: var(--bv-serif); font-size: 1rem; font-weight: 600; color: var(--bv-navy); margin-bottom: 0.2rem; }
.bv-cta-banner p { font-size: 0.88rem; color: var(--bv-body); font-weight: 400; }
@media (max-width:768px) { .bv-cta-banner { flex-direction: column; text-align: center; gap: 1rem; border-left: none; border-top: 3px solid var(--bv-teal); border-radius: 0 0 var(--bv-radius) var(--bv-radius); } }

/* ══════════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════════ */
.bv-services { padding: 2.25rem; background: var(--bv-bg); border-radius: var(--bv-radius); margin-bottom: 2.5rem; position: relative; overflow: hidden; }
.bv-services::before { content: ''; position: absolute; top: -40%; right: -15%; width: 280px; height: 280px; background: radial-gradient(circle, rgba(1,163,188,0.06) 0%, transparent 70%); pointer-events: none; }
.bv-services > * { position: relative; }
.bv-services h2 { font-family: var(--bv-serif); font-size: 1.2rem; font-weight: 600; color: var(--bv-navy); margin-bottom: 0.4rem; }
.bv-services > p { font-size: 1rem; color: var(--bv-body); line-height: 1.7; margin-bottom: 1.5rem; max-width: 540px; font-weight: 400; }
.bv-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.bv-service-item { padding: 1.15rem; background: var(--bv-white); border: 1px solid var(--bv-rule); border-radius: 10px; transition: all 0.3s var(--bv-ease); }
.bv-service-item:hover { border-color: rgba(1,125,147,0.2); box-shadow: 0 4px 16px rgba(10,37,64,0.04); transform: translateY(-1px); }
.bv-service-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bv-teal-light); display: flex; align-items: center; justify-content: center; margin-bottom: 0.65rem; }
.bv-service-icon svg { width: 18px; height: 18px; stroke: var(--bv-teal); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bv-service-item h4 { font-size: 0.94rem; font-weight: 600; color: var(--bv-navy); margin-bottom: 0.2rem; }
.bv-service-item p { font-size: 0.88rem; color: var(--bv-body); line-height: 1.6; font-weight: 400; }
.bv-services-cta { text-align: center; margin-top: 1.75rem; }
@media (max-width:768px) { .bv-services { padding: 1.5rem; } .bv-services-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.bv-footer { padding: 1.75rem 2.75rem; border-top: 1px solid var(--bv-rule); display: flex; justify-content: space-between; align-items: flex-start; background: var(--bv-paper); }
.bv-footer-company h3 { font-family: var(--bv-serif); font-size: 1rem; font-weight: 600; color: var(--bv-navy); margin-bottom: 0.3rem; }
.bv-footer-company p { font-size: 0.88rem; color: var(--bv-body); line-height: 1.75; font-weight: 400; }
.bv-footer-links { text-align: right; font-size: 0.83rem; line-height: 2; }
.bv-footer-links a { color: var(--bv-caption); font-weight: 500; }
.bv-footer-links a:hover { color: var(--bv-navy); }
@media (max-width:768px) { .bv-footer { flex-direction: column; gap: 1.25rem; padding: 1.5rem; } .bv-footer-links { text-align: left; } }

/* ══════════════════════════════════════════════════════════════
   ARCHIVE PAGE
   ══════════════════════════════════════════════════════════════ */
.bv-page-header { padding: 2.25rem 0 1.75rem; }
.bv-breadcrumb { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.65rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.bv-breadcrumb:hover .bv-arrow-back { transform: translateX(-3px); }
.bv-arrow-back { display: inline-block; transition: transform 0.2s var(--bv-ease); }
.bv-page-header h1 { font-family: var(--bv-serif); font-size: 1.65rem; font-weight: 600; color: var(--bv-navy); margin-bottom: 0.35rem; letter-spacing: -0.3px; }
.bv-page-header p { font-size: 1rem; color: var(--bv-body); font-weight: 400; }
.bv-archive-year { font-family: var(--bv-serif); font-size: 1.1rem; font-weight: 600; color: var(--bv-navy); margin-bottom: 0.75rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--bv-rule); }
.bv-archive-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.65rem; margin-bottom: 2.25rem; }
.bv-archive-item { border: 1px solid var(--bv-rule); border-radius: var(--bv-radius-sm); padding: 0.55rem; text-align: center; transition: all 0.3s var(--bv-ease); }
.bv-archive-item:hover { border-color: rgba(1,125,147,0.25); box-shadow: 0 6px 20px rgba(10,37,64,0.06); transform: translateY(-3px); }
.bv-archive-item a { display: block; color: inherit; text-decoration: none; }
.bv-archive-cover { width: 100%; aspect-ratio: 0.7; border-radius: 4px; margin-bottom: 0.4rem; object-fit: cover; box-shadow: 0 2px 8px rgba(10,37,64,0.06); }
.bv-archive-cover-placeholder { width: 100%; aspect-ratio: 0.7; border-radius: 4px; margin-bottom: 0.4rem; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 600; background: var(--bv-teal-light); color: var(--bv-teal-dark); }
.bv-archive-month { font-size: 0.83rem; font-weight: 600; color: var(--bv-navy); }
.bv-archive-dl { font-size: 0.78rem; font-weight: 500; color: var(--bv-teal-text); margin-top: 2px; }
.bv-archive-item.upcoming { border-style: dashed; opacity: 0.35; pointer-events: none; }
@media (max-width:768px) { .bv-archive-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:420px) { .bv-archive-grid { grid-template-columns: repeat(2, 1fr); } }

/* ══════════════════════════════════════════════════════════════
   PAGE CONTENT (Impressum, Datenschutz)
   ══════════════════════════════════════════════════════════════ */
.bv-page-content { padding-bottom: 2.5rem; font-size: 1rem; color: var(--bv-body); line-height: 1.75; font-weight: 400; }
.bv-page-content h2 { font-family: var(--bv-serif); font-size: 1.2rem; font-weight: 600; color: var(--bv-navy); margin: 1.75rem 0 0.65rem; }
.bv-page-content h3 { font-size: 1.05rem; font-weight: 600; color: var(--bv-dark); margin: 1.25rem 0 0.5rem; }
.bv-page-content p { margin-bottom: 0.85rem; max-width: 640px; }
.bv-page-content ul, .bv-page-content ol { margin: 0 0 0.85rem 1.25rem; }
