/*
 * ppi-base.css — PPI Platvoet Performance Intelligence
 * Gemeinsame Tokens, Komponenten und Print-Stile für alle Plain-CSS-Tools und Assessments.
 * Einbinden: <link rel="stylesheet" href="../ppi-base.css">
 */

/* ─── Fonts ──────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ─── Design Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Farben */
  --navy:        #1B2A4A;
  --navy-dark:   #111d33;
  --navy-mid:    #243561;
  --steel:       #2C5282;   /* Daten-/Sekundärblau — hebt sich vom dunklen Chrome ab */
  --gold:        #C9A84C;
  --gold-light:  #e2c47a;
  --gold-pale:   #f5e9c6;
  --bg:          #F5F3EE;
  --bg-mid:      #E8E4DB;
  --white:       #ffffff;
  --text:        #1a2035;
  --text-muted:  #5a6380;
  --border:      #d4d9e4;

  /* Geometrie */
  --radius:      8px;
  --radius-sm:   4px;

  /* Schatten */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.14);

  /* Glow */
  --gold-glow:   rgba(201,168,76,0.20);

  /* Akzent-Rolle — Gold ist DER Marken-Akzent (konsolidiert 2026-08) */
  --accent:        var(--gold);
  --accent-strong: #AF8E33;   /* Gold als Text auf hellem Grund (kontraststark) */

  /* Ice Blue — ruhiger Tint (Flächen, Tabellen-Header), NICHT Akzent */
  --ice:         #CADCFC;
  --ice-soft:    #E7EEFB;

  /* Semantik — getrennt vom Akzent, je ein konsolidierter Wert */
  --ok:          #2E7D57;
  --ok-soft:     #E4F0EA;
  --warn:        #C77D33;
  --warn-soft:   #F6EADB;
  --bad:         #B3261E;
  --bad-soft:    #F7E2E0;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Base ───────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.25;
}

a { color: var(--navy); }
a:hover { color: var(--gold); }

/* ─── Tool Header ────────────────────────────────────────────────────────────── */
.tool-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tool-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.tool-header-info { min-width: 0; }

.tool-header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-header-subtitle {
  display: block;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 1px;
}

.tool-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Back-Link ──────────────────────────────────────────────────────────────── */
.hdr-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.hdr-back:hover { color: var(--gold); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.70);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-navy {
  background: var(--navy);
  color: var(--gold);
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
}

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.card-header {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Badges / Tags ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-gold  { background: var(--gold-pale); color: var(--navy); border: 1px solid var(--gold); }
.badge-navy  { background: var(--navy);      color: var(--gold); }
.badge-muted { background: var(--bg-mid);    color: var(--text-muted); }
.badge-ok    { background: var(--ok-soft);   color: var(--ok);   border: 1px solid var(--ok); }
.badge-warn  { background: var(--warn-soft);  color: var(--warn); border: 1px solid var(--warn); }
.badge-bad   { background: var(--bad-soft);   color: var(--bad);  border: 1px solid var(--bad); }

/* ─── Info / Tip Blocks ──────────────────────────────────────────────────────── */
.tip {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
.tip strong { color: var(--navy-dark); }

/* ─── Divider ────────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.ppi-footer {
  border-top: 2px solid var(--bg-mid);
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.ppi-footer strong { color: var(--navy); }
.ppi-footer a { color: var(--navy); text-decoration: none; }
.ppi-footer a:hover { color: var(--gold); }
.ppi-footer-ts {
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Utility ────────────────────────────────────────────────────────────────── */
.text-navy    { color: var(--navy); }
.text-steel   { color: var(--steel); }
.text-gold    { color: var(--gold); }
.text-accent  { color: var(--accent-strong); }
.text-muted   { color: var(--text-muted); }
.text-ok      { color: var(--ok); }
.text-warn    { color: var(--warn); }
.text-bad     { color: var(--bad); }
.bg-navy      { background: var(--navy); }
.bg-steel     { background: var(--steel); }
.bg-gold-pale { background: var(--gold-pale); }
.bg-ice       { background: var(--ice); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ─── Print ──────────────────────────────────────────────────────────────────── */
@media print {
  .tool-header,
  .ppi-footer,
  .hdr-back,
  [data-noprint],
  .btn { display: none !important; }

  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  h1, h2, h3, h4 { page-break-after: avoid; }
  .card { break-inside: avoid; border: 1px solid #ccc; }
}
