/* ══════════════════════════════════════════════════════════════════════════
   Beispielbericht — gemeinsames Stylesheet

   Genutzt von beispielbericht.html (leichter Monat) und
   beispielbericht-schwieriger-monat.html. Bewusst EINE Datei statt zwei
   Kopien: identisches CSS doppelt im Repo ist die Drift-Klasse, die uns
   beim report-preview-Prompt drei Monate lang unbemerkt auseinanderlief.

   Die `report-*`-Regeln sind 1:1 aus fragebogen.html uebernommen (Screen-
   Block ab Z. 212). Farbgebung fuer Uebungs-, Impuls-, Zitat-Box und Footer
   stammt dagegen aus dessen @media-print-Block — genau die landet im PDF,
   und das PDF ist es, was die Paare aufheben.

   ⚠️ Aendert sich der Renderer in fragebogen.html, aendert sich diese Datei
   NICHT automatisch mit. Beim naechsten Eingriff am Report-Layout hier
   gegenlesen.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Schriften — self-hosted, identisch zu /app ── */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/playfair-display-v40-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic;  font-weight: 400; font-display: swap; src: url('/fonts/playfair-display-v40-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/playfair-display-v40-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4';   font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/source-serif-4-v14-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4';   font-style: italic;  font-weight: 400; font-display: swap; src: url('/fonts/source-serif-4-v14-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans';          font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans';          font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-v17-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans';          font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/dm-sans-v17-latin-600.woff2') format('woff2'); }

:root {
  --blau: #1E2D40;
  --gold: #C8963C;
  --gold-hell: #E8B86D;
  --cream: #F7F3EE;
  --cream-dunkel: #EDE7DC;
  --text: #1A1A1A;
  --textmid: #555555;
  --textlight: #888888;
  --border: #DDD8D0;
  --font-sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--text);
       font-family: 'Source Serif 4', Georgia, serif; -webkit-font-smoothing: antialiased; }

/* ══ Rahmen der Beispielseite — beim Drucken komplett weg ══ */

.seite-kopf { max-width: 680px; margin: 0 auto; padding: 36px 16px 0; }
.seite-kopf .eyebrow { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em;
                       text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 12px; }
.seite-kopf h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400;
                 font-size: clamp(24px, 4vw, 32px); line-height: 1.25; color: var(--blau); margin: 0 0 14px; }
.seite-kopf p { font-family: var(--font-sans); font-size: 14.5px; color: var(--textmid);
                line-height: 1.7; margin: 0 0 10px; }

/* Fussbereich: Querverweis auf den anderen Monat + Weg zum Geschenk.
   Ohne den ist die Seite eine Sackgasse — wer sie geteilt bekommt, landet
   sonst auf einem Bericht ohne jeden Hinweis, was bondify.me ueberhaupt ist. */
.seite-fuss { max-width: 680px; margin: 0 auto; padding: 8px 16px 72px; }
.seite-fuss-box { background: #ffffff; border: 1px solid var(--cream-dunkel);
                  border-radius: 12px; padding: 26px 28px; text-align: center; }
.seite-fuss-box .eyebrow { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em;
                           text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.seite-fuss-box h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400;
                     font-size: 21px; line-height: 1.3; color: var(--blau); margin: 0 0 10px; }
.seite-fuss-box p { font-family: var(--font-sans); font-size: 14.5px; color: var(--textmid);
                    line-height: 1.7; margin: 0 0 20px; }
.seite-cta { display: inline-block; background: var(--gold); color: var(--blau);
             font-family: var(--font-sans); font-size: 15px; font-weight: 600;
             text-decoration: none; padding: 14px 30px; border-radius: 40px;
             transition: background .15s ease; }
.seite-cta:hover { background: var(--gold-hell); }
.seite-quer { display: block; margin-top: 18px; font-family: var(--font-sans); font-size: 14px;
              color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }
.seite-quer:hover { color: var(--gold); }

/* ══ Report-Blatt — Markup und Masse 1:1 aus fragebogen.html ══ */

.report-wrap { max-width: 680px; margin: 0 auto; padding: 24px 16px 32px; }
.report-sheet { background: white; border-radius: 12px; overflow: hidden;
                box-shadow: 0 2px 16px rgba(30,45,64,.08);
                font-family: 'Source Serif 4', Georgia, serif; }

.report-header { background: #1E2D40; padding: 32px 40px; text-align: center; }
.report-logo { width: 64px; height: 64px; margin: 0 auto 12px; display: block; }
.report-brand { color: #C8963C; font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.report-sub { color: #DEB96A; font-style: italic; font-size: 14px; font-family: 'Source Serif 4', Georgia, serif; }
.report-monat { color: #DEB96A; font-size: 13px; margin-top: 4px; font-family: Arial, sans-serif; }

.report-score { background: #1E2D40; padding: 24px 40px 28px; text-align: center; border-top: 1px solid #152030; }
.score-zahl { font-size: 56px; color: #C8963C; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1; }
.score-label { color: #C8963C; font-family: Arial, sans-serif; font-size: 12px; margin-top: 4px; letter-spacing: 1px; }

.report-legend { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 26px 0 20px; font-family: Arial, sans-serif; font-size: 13px; }
.report-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.report-legend-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.report-legend-dot.dot-a { background: #1E2D40; }
.report-legend-dot.dot-b { background: #C8963C; }
.report-legend-name { color: #8A7F78; }
.report-legend-me { color: #1A1714; font-weight: 700; }

.report-dims { padding: 16px 40px 8px; }
.report-dim { margin-bottom: 16px; }
.report-dim-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.report-dim-name { font-family: Arial, sans-serif; font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; }
.report-dim-name .dot { width: 10px; height: 10px; margin-right: 8px; }
.report-dim-scores { font-family: Arial, sans-serif; font-size: 12px; color: var(--textmid); white-space: nowrap; }
.report-dim-scores .sa { color: #1E2D40; font-weight: 700; }
.report-dim-scores .sb { color: #C8963C; font-weight: 700; }
.report-dim-scores .dim-sep { color: var(--textlight); margin: 0 4px; }
.report-dim-scores .dim-avg { color: var(--textmid); }
.report-dim-diff { color: #C0392B; font-size: 11px; font-weight: 600; margin-left: 8px; }
.report-dim-bar-track { height: 34px; background: #E8E2DB; border-radius: 17px; position: relative; overflow: visible; }
.report-dim-bar-a, .report-dim-bar-b { height: 16px; border-radius: 8px; position: absolute; left: 0; }
.report-dim-bar-a { top: 1px; background: #1E2D40; }
.report-dim-bar-b { bottom: 1px; background: #C8963C; }

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.dot-rot { background: #C0392B; }
.dot-gelb { background: #E8A020; }
.dot-gruen { background: #70AD46; }

.report-body { padding: 40px; }
.report-einleitung { font-size: 16px; line-height: 1.8; color: #2C2C2C; font-style: italic; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #DDD8D0; }
.report-section-titel { font-family: Arial, sans-serif; font-size: 11px; color: #C8963C; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; margin: 24px 0 8px; }
.report-h3 { color: #1E2D40; font-size: 22px; font-weight: 400; margin: 0 0 12px; font-family: 'Playfair Display', Georgia, serif; }
.report-p { color: #444; font-size: 15px; line-height: 1.75; margin: 0 0 16px; }
.report-trennlinie { border: none; border-top: 1px solid #DDD8D0; margin: 28px 0; }

/* Zitat-, Impuls- und Uebungsbox in der Druckfarbgebung (siehe Dateikopf) */
.report-zitat { background: rgba(200,150,60,.06); border-left: 3px solid #C8963C; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 16px 0 20px; }
.report-zitat .zitat-text { font-style: italic; color: #1E2D40; font-size: 14px; line-height: 1.7; margin: 0 0 6px; }
/* Autor auf eigener Zeile statt hinter einem Geviertstrich (Dieter, 01.09.).
   Die Klasse existiert im Produkt-CSS bereits, die React-Komponente nutzt sie
   nur nicht — dort steckt der Autor mitsamt Strich in `zitat-text`. Genau
   daher stammt der letzte Geviertstrich im Report: die Zitattexte in
   quotes.ts tragen ihn (37 Stueck). Siehe Liste fuer den 02.09. */
.report-zitat .zitat-autor { font-family: Arial, sans-serif; font-size: 11px; color: #C8963C; font-weight: bold; }
.impulse-box { background: #F7F3EE; border-left: 3px solid #C8963C; padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 16px 0 20px; }
.impuls { font-size: 14px; color: #444; line-height: 1.65; margin-bottom: 10px; }
.impuls:last-child { margin-bottom: 0; }
.uebung-box { background: #1E2D40; color: #FFFFFF; border-radius: 10px; padding: 22px 24px; margin: 16px 0 20px; border-left: 4px solid #C8963C; }
.uebung-titel { font-family: Arial, sans-serif; font-size: 15px; font-weight: bold; color: #C8963C; margin-bottom: 4px; }
.uebung-dauer { font-family: Arial, sans-serif; font-size: 12px; color: #C8963C; margin-bottom: 12px; }
.uebung-text { font-size: 14px; color: rgba(255,255,255,.92); line-height: 1.7; margin: 0; white-space: pre-line; }
.uebung-text strong { color: #FFFFFF; }

.report-disclaimer { font-size: 12px; color: #8A7F78; line-height: 1.6; padding-top: 20px; border-top: 1px solid #DDD8D0; margin-top: 24px; }
.report-footer { background: #F7F3EE; padding: 24px 40px; text-align: center; }
.report-footer p { color: #888; font-family: Arial, sans-serif; font-size: 12px; margin: 0 0 6px; }
.report-footer a { color: #C8963C; text-decoration: none; }
.report-footer .report-beratung { color: #8A7F78; font-family: 'Source Serif 4', Georgia, serif; font-size: 13px; font-style: italic; line-height: 1.6; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,0.08); }

/* ══ Druck ══ */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; color-adjust: exact !important; }
  /* Ligatur-Fix wie in /app: verhindert doppelte fi/fl in Print-to-PDF */
  * { font-variant-ligatures: none !important;
      -webkit-font-feature-settings: "liga" 0, "dlig" 0 !important;
      font-feature-settings: "liga" 0, "dlig" 0 !important; }
  body { background: white !important; }
  @page { margin: 15mm; }
  .no-print { display: none !important; }
  .report-wrap { max-width: 100%; margin: 0; padding: 0; }
  .report-sheet { box-shadow: none; border-radius: 0; }
  .report-section-titel { break-after: avoid !important; page-break-after: avoid !important; }
  .uebung-box, .report-zitat, .impulse-box, .impuls, .report-dim { break-inside: avoid !important; page-break-inside: avoid !important; }
  .report-footer { page-break-inside: avoid !important; page-break-before: avoid !important; }
}

@media (max-width: 560px) {
  .report-header, .report-score, .report-dims, .report-body, .report-footer { padding-left: 22px; padding-right: 22px; }
  .report-dim-header { flex-direction: column; align-items: flex-start; gap: 2px; }
  .seite-fuss-box { padding: 24px 20px; }
}
