/* ============================================================
   Get Into Finance – Shared Design System ("Theme")
   v1 – eingebunden auf index.php & dashboard.php.
   Verspielter, Duolingo-artiger Look, abgestimmt auf das
   bestehende Lernpfad-Teal (#006970) aus learning_path.css.
   Enthaelt nur Variablen + wiederverwendbare Klassen –
   ueberschreibt keine globalen Element-Selektoren, damit
   andere (noch nicht ueberarbeitete) Seiten unberuehrt bleiben.
   ============================================================ */

:root {
  /* Marken-Farben */
  --color-primary: #00b88d;
  --color-primary-dark: #006970;
  --color-primary-light: #e3f7f1;
  --color-secondary: #ffc23c;
  --color-secondary-dark: #c98a00;
  --color-secondary-light: #fff3d6;
  --color-accent: #ff6b6b;
  --color-accent-dark: #d94545;
  --color-accent-light: #ffe3e3;

  /* Neutrale Farben */
  --color-ink: #1b2430;
  --color-ink-soft: #5b6472;
  --color-bg: #fffcf6;
  --color-surface: #ffffff;
  --color-border: #ece7da;

  /* Radius & Schatten */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(27, 36, 48, 0.06);
  --shadow-md: 0 6px 16px rgba(27, 36, 48, 0.1);
  --shadow-lift: 0 10px 24px rgba(0, 184, 141, 0.2);

  /* Typografie */
  --font-heading: "Fredoka", "Bricolage Grotesque", Arial, sans-serif;
  --font-body: "Nunito", "Bricolage Grotesque", Arial, sans-serif;
}

/* ---------- Typografie ---------- */
.theme h1,
.theme h2,
.theme h3,
.theme h4 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  font-weight: 600;
  margin: 0;
}

.theme p {
  font-family: var(--font-body);
  color: var(--color-ink-soft);
  line-height: 1.6;
}

/* ---------- Layout-Helfer ---------- */
.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

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

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

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

.card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---------- Badges & Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-beginner {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge-intermediate {
  background: var(--color-secondary-light);
  color: var(--color-secondary-dark);
}

.badge-advanced {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.badge-neutral {
  background: #f1f0ea;
  color: var(--color-ink-soft);
}

/* ---------- Progress ---------- */
.progress-track {
  background: var(--color-border);
  border-radius: var(--radius-pill);
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  background: var(--color-primary);
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

/* ---------- Form-Elemente (verspielt) ---------- */
.theme input[type="text"],
.theme input[type="search"],
.theme input[type="email"],
.theme input[type="password"],
.theme select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--color-surface);
  color: var(--color-ink);
  transition: border-color 0.15s ease;
}

.theme input[type="text"]:focus,
.theme input[type="search"]:focus,
.theme input[type="email"]:focus,
.theme input[type="password"]:focus,
.theme select:focus {
  border-color: var(--color-primary);
}
