/* ============================================================
   Fraunhofer IGCV — Light Branding for Direction Mocks
   Primary: Fraunhofer Green #179C7D (from assets/logo.svg)
   Typography: Source Sans 3 (free Frutiger-alternative)
   ============================================================ */

/* Self-hosted Source Sans 3 (variable, wght 200-900): latin + latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/site/fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/site/fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --color-primary:        #179C7D;
  --color-primary-dark:   #117560;
  --color-primary-light:  #C5E7DF;
  --color-primary-tint:   #EAF6F3;

  /* Theme accents (3 IGCV competence axes) */
  --color-co: #2B8FE0;   /* Connectivity   */
  --color-wm: #8B5CF6;   /* Wissensmod.    */
  --color-ki: #E54B4B;   /* KI             */

  /* Neutrals */
  --color-text:        #14241F;
  --color-text-muted:  #5B6B6A;
  --color-text-invert: #FFFFFF;
  --color-bg:          #FFFFFF;
  --color-bg-soft:     #F5F8F7;
  --color-bg-card:     #FFFFFF;
  --color-border:      #C8D2CF;
  --color-divider:     #DFE6E4;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 50, 45, 0.10);
  --shadow-md: 0 6px 18px rgba(15, 50, 45, 0.12);
  --shadow-lg: 0 18px 44px rgba(15, 50, 45, 0.18);
  --shadow-card: 0 2px 10px rgba(15, 50, 45, 0.10), 0 18px 36px rgba(15, 50, 45, 0.14);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Typography */
  --font-sans: 'Source Sans 3', 'Source Sans Pro',
               -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Motion */
  --transition:      200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { color: var(--color-primary); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

img, svg { display: block; max-width: 100%; }

/* Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; color: var(--color-text); }
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 1.75rem; line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.4; }

p { color: var(--color-text-muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Layout helpers
   ------------------------------------------------------------ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-5); }
.stack > * + * { margin-top: var(--space-3); }
.row { display: flex; align-items: center; gap: var(--space-3); }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); }
.muted { color: var(--color-text-muted); }

/* Brand bar (top of every mock)
   ------------------------------------------------------------ */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.brand-bar .brand-left { display: flex; align-items: center; gap: var(--space-3); }
.brand-bar .logo { height: 30px; width: auto; }
.brand-bar .brand-title  { font-weight: 700; font-size: 0.95rem; color: var(--color-text); line-height: 1.1; }
.brand-bar .brand-subtitle { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.1; margin-top: 2px; }
.brand-bar .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; color: var(--color-text-muted);
  padding: 6px 12px; border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.brand-bar .back-link:hover { background: var(--color-bg-soft); color: var(--color-text); }

/* Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: var(--color-text-invert); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
}

.btn-secondary { background: var(--color-bg); color: var(--color-primary-dark); border: 1.5px solid var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary-tint); }

.btn-ghost { background: transparent; color: var(--color-text-muted); padding: 10px 14px; }
.btn-ghost:hover { color: var(--color-text); background: var(--color-bg-soft); }

.btn-yes {
  background: var(--color-primary);
  color: white;
  width: 64px; height: 64px;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(23, 156, 125, 0.35);
}

.btn-no {
  background: white;
  color: #B91C1C;
  border: 2px solid #FCA5A5;
  width: 64px; height: 64px;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

/* Cards
   ------------------------------------------------------------ */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* Progress bars (3-axis maturity)
   ------------------------------------------------------------ */
.bar-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.bar-label { width: 130px; font-size: 0.92rem; font-weight: 600; color: var(--color-text); }
.bar-track {
  flex: 1;
  height: 10px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width var(--transition-slow);
}
.bar-fill.co { background: linear-gradient(90deg, var(--color-co), #5BA9E8); }
.bar-fill.wm { background: linear-gradient(90deg, var(--color-wm), #B084FB); }
.bar-fill.ki { background: linear-gradient(90deg, var(--color-ki), #FF7878); }
.bar-fill.primary { background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark)); }
.bar-value { width: 48px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.92rem; color: var(--color-text-muted); }

/* Tag/pill
   ------------------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}
.tag.co { background: rgba(43, 143, 224, 0.12); color: #1D6BB0; }
.tag.wm { background: rgba(139, 92, 246, 0.12); color: #6D44C8; }
.tag.ki { background: rgba(229, 75, 75, 0.12); color: #B73838; }

/* Glow pulse used to highlight live changes */
@keyframes pulse-glow {
  0%   { box-shadow: 0 0 0 0 rgba(23, 156, 125, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(23, 156, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 156, 125, 0); }
}
.pulse { animation: pulse-glow 700ms ease-out; }
