/* PRONECTO — Shared Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,400;1,400&display=swap');

:root {
  --orange:   #E8793A;
  --navy:     #1A1F2E;
  --bg:       #FAFAFA;
  --white:    #FFFFFF;
  --text:     #6B6B6B;
  --text-sec: #8A8A8A;
  --border:   #E2E2E2;
  --green:    #2E9E6B;
  --yellow:   #E2A843;
  --red:      #D94F4F;
  --blue:     #3B7DD8;
  --r-card:   14px;
  --r-btn:    10px;
  --r-sm:     7px;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }
p  { color: var(--text); }

em, .serif { font-family: 'Source Serif 4', serif; font-style: italic; }

/* ── Logo ── */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--navy); letter-spacing: -0.02em; }
.logo svg { width: 32px; height: 32px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-btn);
  font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d4692d; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(232,121,58,0.3); }
.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost { background: transparent; color: var(--text-sec); }
.btn-ghost:hover { color: var(--navy); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; }

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

/* ── Input ── */
input[type="email"], input[type="text"] {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border); border-radius: var(--r-btn);
  font-family: 'Outfit', sans-serif; font-size: 1rem; color: var(--navy);
  background: var(--white); outline: none; transition: border-color 0.2s;
}
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--orange); }
input::placeholder { color: var(--text-sec); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-red    { background: #FFF0F0; color: var(--red); }
.badge-yellow { background: #FFFBF0; color: #B8872A; }
.badge-green  { background: #F0FFF8; color: var(--green); }
.badge-blue   { background: #F0F6FF; color: var(--blue); }
.badge-orange { background: #FFF5EF; color: var(--orange); }

/* ── Progress bar (Fragebogen) ── */
.progress-bar-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 4px; background: var(--border);
}
.progress-bar-fill {
  height: 100%; background: var(--orange);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.progress-label {
  position: fixed; top: 12px; right: 20px;
  font-size: 0.75rem; color: var(--text-sec); font-weight: 500; z-index: 100;
}

/* ── Loading spinner ── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Typewriter cursor ── */
.typewriter::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--orange);
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Stat cards ── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px 20px;
  text-align: center;
}
.stat-value {
  font-size: 2rem; font-weight: 700; color: var(--navy);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.8rem; color: var(--text-sec); font-weight: 500;
  margin-top: 4px;
}
.stat-orange .stat-value { color: var(--orange); }

/* ── Section headers ── */
.section-header {
  margin-bottom: 24px;
}
.section-header h3 {
  font-size: 1.1rem; color: var(--navy); margin-bottom: 4px;
}
.section-header p {
  font-size: 0.85rem; color: var(--text-sec);
}

/* ── Muda tags ── */
.muda-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 5px;
  font-size: 0.7rem; font-weight: 600;
  background: #F5F5F5; color: var(--text);
  margin: 2px;
}

/* ── Maßnahmenplan-Karten ── */
.massnahme-card {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  border-left-width: 4px;
  padding: 20px;
  background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.massnahme-card.quick_win  { border-left-color: var(--green); }
.massnahme-card.mittelfristig { border-left-color: var(--yellow); }
.massnahme-card.strategisch { border-left-color: var(--blue); }
.massnahme-ist, .massnahme-soll {
  font-size: 0.85rem; padding: 10px 12px;
  border-radius: var(--r-sm); line-height: 1.4;
}
.massnahme-ist { background: #FFF0F0; color: #8B3333; }
.massnahme-soll { background: #F0FFF8; color: #1E6B47; }

/* ── Reifegrad labels ── */
.reifegrad-label { font-size: 0.7rem; color: var(--text-sec); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .massnahme-card { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.6rem; }
}
