/* ============================================================
   Get Into Finance – Shared Design System ("Theme")
   v2 – eingebunden auf index.php, dashboard.php u.a.
   Freundlich-modern statt verspielt: ruhigerer, neutraler
   Hintergrund (kein Creme/Gelb mehr) und gedaempfte Schatten,
   damit es fuer die Zielgruppe (18-24, angehende Finance-Leute)
   eher nach einem ernstzunehmenden Lern-/Prep-Tool aussieht als
   nach einer Lern-App fuer Kinder. Farb-Basis bleibt 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: #4f8ef7;
  --color-secondary-dark: #2f5fc4;
  --color-secondary-light: #e8eefd;
  --color-accent: #ff6b6b;
  --color-accent-dark: #d94545;
  --color-accent-light: #ffe3e3;

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

  /* 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 6px 14px rgba(27, 36, 48, 0.14);

  /* 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);
}

/* ---------- Share & Save widgets (Artikel + Cases) ---------- */
.share,
.save-widget {
  position: relative;
  display: inline-flex;
}

.share-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  z-index: 20;
}

/* .share-menu's own `display: flex` ties in specificity with the
   browser default `[hidden] { display: none }` rule, so it was
   winning and the menu stayed visibly open even though the toggle
   JS sets the `hidden` attribute. This restores the hidden state. */
.share-menu[hidden] {
  display: none;
}

.share-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-ink);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}

.share-option:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.btn-save.is-saved {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
