/* ============================================================
   WestLotto Partner-Portal · Demo · Gamification Edition
   Brand verifiziert gegen www.westlotto.de (2026)
   ============================================================ */

:root {
  /* WestLotto BRAND COLORS (verifiziert) */
  --wl-forest:        #00391E;  /* Headlines, primary text, button border */
  --wl-forest-dark:   #002915;
  --wl-forest-soft:   #0a4d2c;
  --wl-lime:          #C7DB00;  /* Logo & accent tag */
  --wl-lime-dark:     #A8BD00;
  --wl-gold:          #EFBC0A;  /* Highlights, badges */
  --wl-gold-soft:     #F7DC16;
  --wl-red:           #D22321;  /* Accents, alerts */
  --wl-red-dark:      #B01D1B;
  --wl-green:         #249B37;  /* Success */
  --wl-green-deep:    #00814A;
  --wl-petrol:        #156082;  /* Secondary product */
  --wl-magenta:       #951B81;  /* Secondary product */
  --wl-turquoise:     #33B4BD;
  --wl-olive:         #365417;

  /* Neutrals */
  --bg:          #F5F2EA;       /* warm off-white, wie auf westlotto.de */
  --bg-card:     #FFFFFF;
  --bg-muted:    #EFEBE0;
  --bg-dark:     #00391E;
  --border:      #DDD7C7;
  --border-soft: #ECE6D7;
  --text:        #00391E;
  --text-soft:   #4F5A52;
  --text-mute:   #8A8F88;
  --white:       #FFFFFF;

  /* Effects */
  --shadow-sm:   0 1px 2px rgba(0,57,30,.05);
  --shadow-md:   0 6px 18px rgba(0,57,30,.08);
  --shadow-lg:   0 24px 60px rgba(0,57,30,.12);

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on;
}

a { color: var(--wl-forest); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--wl-lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }

button { font-family: inherit; cursor: pointer; }

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

h1,h2,h3,h4 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--wl-forest);
}
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p { line-height: 1.55; color: var(--text-soft); margin: 0; }

/* ============================================================
   WestLotto Logo SVG component (charakteristisches Parallelogramm-Tag)
   ============================================================ */

.wl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 38px;
}

.wl-brand-svg {
  height: 38px;
  width: auto;
  display: block;
}

.wl-brand-tag {
  /* fallback flag if SVG can't be inlined */
  position: relative;
  background: var(--wl-lime);
  color: var(--wl-red);
  padding: 8px 28px 8px 22px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

/* ============================================================
   Top Navigation
   ============================================================ */

.wl-topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center;
  padding: 0 32px;
  height: 78px;
  gap: 24px;
}

.wl-topbar-brand {
  display: flex; align-items: center;
  gap: 14px;
  text-decoration: none;
}
.wl-topbar-brand:hover { text-decoration: none; }

.wl-portal-label {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--wl-forest);
  color: var(--wl-lime);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.wl-nav {
  display: flex; gap: 4px; margin-left: 12px;
}
.wl-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid transparent;
}
.wl-nav a:hover { background: var(--bg-muted); text-decoration: none; }
.wl-nav a.active {
  background: var(--wl-forest);
  color: var(--white);
}

.wl-spacer { flex: 1; }

.wl-user {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.wl-user .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--wl-lime);
  display: grid; place-items: center;
  color: var(--wl-forest); font-weight: 800;
  font-size: 0.85rem;
}
.wl-user .level-chip {
  background: var(--wl-forest);
  color: var(--wl-lime);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: .05em;
}

.wl-xp-mini {
  display: flex; flex-direction: column;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--text-mute);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  min-width: 150px;
}
.wl-xp-mini .bar {
  height: 8px; border-radius: var(--radius-pill);
  background: var(--bg-muted);
  overflow: hidden;
  position: relative;
}
.wl-xp-mini .bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--wl-lime), var(--wl-gold));
  border-radius: var(--radius-pill);
  position: relative;
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.wl-xp-mini .bar > span::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shimmer 2.4s infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   Layout
   ============================================================ */

.wl-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 32px 60px;
}

.wl-grid {
  display: grid;
  gap: 22px;
}
.wl-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wl-grid.cols-2 { grid-template-columns: 1.6fr 1fr; }
.wl-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .wl-grid.cols-3, .wl-grid.cols-2, .wl-grid.cols-4 { grid-template-columns: 1fr; }
}

.wl-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.wl-card.flat { box-shadow: none; }

.wl-card h3 {
  margin-bottom: 12px;
}

.wl-card .meta {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  font-weight: 700;
  margin-bottom: 6px;
}

/* ============================================================
   Buttons — WestLotto Pill-Style mit dunklem Forest Green
   ============================================================ */

.wl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--wl-forest);
  background: var(--wl-forest);
  color: var(--white);
  letter-spacing: -.005em;
  transition: all .18s cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
  font-family: var(--font-display);
}
.wl-btn:hover {
  background: var(--white);
  color: var(--wl-forest);
  text-decoration: none;
}

.wl-btn.ghost {
  background: transparent;
  color: var(--wl-forest);
}
.wl-btn.ghost:hover {
  background: var(--wl-forest);
  color: var(--white);
}

.wl-btn.lime {
  background: var(--wl-lime);
  color: var(--wl-forest);
  border-color: var(--wl-lime);
}
.wl-btn.lime:hover {
  background: var(--wl-forest);
  color: var(--wl-lime);
  border-color: var(--wl-forest);
}

.wl-btn.gold {
  background: var(--wl-gold);
  color: var(--wl-forest);
  border-color: var(--wl-gold);
}
.wl-btn.gold:hover {
  background: var(--wl-forest);
  color: var(--wl-gold);
  border-color: var(--wl-forest);
}

.wl-btn.on-dark {
  background: var(--wl-lime);
  color: var(--wl-forest);
  border-color: var(--wl-lime);
}
.wl-btn.on-dark.ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.wl-btn.on-dark.ghost:hover {
  background: var(--white);
  color: var(--wl-forest);
  border-color: var(--white);
}

.wl-btn.lg { padding: 16px 32px; font-size: 1.05rem; }
.wl-btn.sm { padding: 9px 18px; font-size: 0.85rem; border-width: 1.5px; }

/* ============================================================
   Hero — Login Page
   ============================================================ */

.wl-hero {
  position: relative;
  background: var(--wl-forest);
  color: var(--white);
  overflow: hidden;
}

/* Hero deco — animated dots + lime tag accent */
.wl-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(199,219,0,.10) 1.4px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* The signature WestLotto tag-shape decorator */
.wl-hero-tag {
  position: absolute;
  top: -40px; right: -60px;
  width: 520px; height: 360px;
  background: var(--wl-lime);
  transform: rotate(-12deg);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 88%);
  opacity: .14;
  pointer-events: none;
}

.wl-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 32px 110px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  position: relative; z-index: 1;
}

@media (max-width: 1000px) {
  .wl-hero-inner { grid-template-columns: 1fr; padding: 60px 22px 70px; }
}

.wl-hero h1 {
  color: var(--white);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}
.wl-hero h1 .accent {
  color: var(--wl-lime);
}
.wl-hero h1 .underline {
  display: inline-block;
  position: relative;
}
.wl-hero h1 .underline::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 8px;
  background: var(--wl-lime);
  border-radius: var(--radius-pill);
}

.wl-hero .lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,.85);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.wl-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(199,219,0,.12);
  color: var(--wl-lime);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid rgba(199,219,0,.35);
  margin-bottom: 24px;
}
.wl-pill .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wl-lime);
  box-shadow: 0 0 0 0 rgba(199,219,0,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(199,219,0,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(199,219,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(199,219,0,0); }
}

.wl-hero-stats {
  display: flex; gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.wl-hero-stats > div {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}
.wl-hero-stats strong {
  display: block;
  font-size: 2rem;
  color: var(--wl-lime);
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Login Card */
.wl-login-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  position: relative;
}

/* The signature WL "tag" attached to the card */
.wl-login-card::before {
  content: "PORTAL";
  position: absolute;
  top: -14px; left: 32px;
  height: 28px;
  padding: 0 18px 0 14px;
  background: var(--wl-lime);
  color: var(--wl-forest);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: .12em;
  display: inline-flex;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.wl-login-card h2 {
  margin-bottom: 6px;
  font-size: 1.8rem;
}
.wl-login-card .sub { color: var(--text-mute); margin-bottom: 26px; font-size: 1rem; }

.wl-field { margin-bottom: 16px; }
.wl-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.wl-field input {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: all .15s ease;
}
.wl-field input:focus {
  outline: none;
  border-color: var(--wl-forest);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,57,30,.08);
}

.wl-login-card .wl-btn { width: 100%; justify-content: center; margin-top: 10px; }

.wl-login-extras {
  display: flex; justify-content: space-between;
  margin-top: 18px;
  font-size: 0.9rem;
}
.wl-login-extras a { color: var(--wl-forest); font-weight: 600; }

.wl-sso {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}
.wl-sso-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  border: 1.5px solid var(--border);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.wl-sso-btn:hover { background: var(--white); border-color: var(--wl-forest); text-decoration: none; }

/* ============================================================
   Stats Tiles
   ============================================================ */

.wl-tile {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.wl-tile .label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
}
.wl-tile .value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--wl-forest);
  margin-top: 8px;
  line-height: 1;
  letter-spacing: -.02em;
}
.wl-tile .delta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--wl-green);
}
.wl-tile .delta.neg { color: var(--wl-red); }
.wl-tile .icon-bubble {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: var(--wl-lime);
  color: var(--wl-forest);
}
.wl-tile.accent-gold  .icon-bubble { background: var(--wl-gold); color: var(--wl-forest); }
.wl-tile.accent-red   .icon-bubble { background: rgba(210,35,33,.12); color: var(--wl-red); }
.wl-tile.accent-green .icon-bubble { background: rgba(36,155,55,.12); color: var(--wl-green-deep); }

/* Level / XP Hero Card */
.wl-level-card {
  background: var(--wl-forest);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.wl-level-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -90px;
  width: 320px; height: 220px;
  background: var(--wl-lime);
  transform: rotate(-10deg);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 92%);
  opacity: .18;
  pointer-events: none;
}
.wl-level-card::after {
  content: ""; position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(199,219,0,.10) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  pointer-events: none;
}
.wl-level-card > * { position: relative; z-index: 1; }

.wl-level-card .lvl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wl-lime);
  color: var(--wl-forest);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.wl-level-card h3 {
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.wl-level-card .sub-line {
  color: rgba(255,255,255,.75);
  font-size: 0.95rem;
  margin-bottom: 22px;
  max-width: 420px;
}
.wl-level-card .progress-row {
  display: flex; justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--wl-lime);
}
.wl-level-card .bar {
  height: 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.wl-level-card .bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--wl-lime), var(--wl-gold), var(--wl-red));
  border-radius: var(--radius-pill);
  position: relative;
  transition: width 1.5s cubic-bezier(.2,.8,.2,1);
}
.wl-level-card .bar > span::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: shimmer 2.5s infinite;
}
.wl-level-card .next {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
}

/* ============================================================
   Badges
   ============================================================ */

.wl-badge-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
@media (max-width: 800px) { .wl-badge-row { grid-template-columns: repeat(3, 1fr); } }

.wl-badge {
  position: relative;
  text-align: center;
  cursor: pointer;
}
.wl-badge .icon {
  width: 78px; height: 78px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.1rem;
  background: var(--wl-lime);
  color: var(--wl-forest);
  box-shadow: 0 6px 18px rgba(199,219,0,.4);
  position: relative;
  transition: transform .25s ease;
  border: 3px solid var(--wl-forest);
}
.wl-badge:hover .icon { transform: rotate(-6deg) scale(1.08); }
.wl-badge .name {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 12px;
  color: var(--text);
}
.wl-badge.gold .icon { background: var(--wl-gold); }
.wl-badge.red  .icon { background: var(--wl-red); color: var(--white); }
.wl-badge.locked .icon {
  background: var(--bg-muted);
  color: var(--text-mute);
  box-shadow: none;
  border-color: var(--border);
  filter: grayscale(.6);
}
.wl-badge.locked .name { color: var(--text-mute); }

.wl-badge.new .icon::before {
  content: "NEU";
  position: absolute;
  top: -8px; right: -12px;
  background: var(--wl-red);
  color: var(--white);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 2px 6px rgba(210,35,33,.4);
  animation: badgepop .8s cubic-bezier(.2,1.5,.5,1);
}
@keyframes badgepop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.wl-badge .icon::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  background:
    radial-gradient(2px 2px at 20% 20%, var(--white), transparent),
    radial-gradient(2px 2px at 80% 30%, var(--white), transparent),
    radial-gradient(2px 2px at 60% 90%, var(--white), transparent),
    radial-gradient(2px 2px at 30% 70%, var(--white), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.wl-badge:hover .icon::after { opacity: 1; }

/* ============================================================
   Challenges
   ============================================================ */

.wl-challenge {
  display: flex; align-items: center; gap: 20px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1.5px solid var(--border-soft);
  transition: all .2s ease;
}
.wl-challenge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--wl-lime);
}
.wl-challenge + .wl-challenge { margin-top: 12px; }

.wl-challenge .ch-icon {
  width: 60px; height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--wl-lime);
  display: grid; place-items: center;
  font-size: 1.7rem;
  color: var(--wl-forest);
  position: relative;
}
.wl-challenge.daily   .ch-icon { background: var(--wl-gold); color: var(--wl-forest); }
.wl-challenge.weekly  .ch-icon { background: var(--wl-red); color: var(--white); }
.wl-challenge.monthly .ch-icon { background: var(--wl-forest); color: var(--wl-lime); }
.wl-challenge.team    .ch-icon { background: var(--wl-green-deep); color: var(--white); }

.wl-challenge .ch-body { flex: 1; min-width: 0; }
.wl-challenge .ch-body .tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}
.wl-challenge.daily   .tag { background: rgba(239,188,10,.18); color: #8a6800; }
.wl-challenge.weekly  .tag { background: rgba(210,35,33,.12); color: var(--wl-red); }
.wl-challenge.monthly .tag { background: var(--wl-lime); color: var(--wl-forest); }
.wl-challenge.team    .tag { background: rgba(36,155,55,.15); color: var(--wl-green-deep); }

.wl-challenge .ch-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--wl-forest);
  margin-bottom: 4px;
}
.wl-challenge .ch-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.wl-challenge .ch-progress {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
  color: var(--text-mute);
  font-weight: 700;
}
.wl-challenge .ch-progress .bar {
  flex: 1; height: 7px; border-radius: var(--radius-pill);
  background: var(--bg-muted);
  overflow: hidden;
}
.wl-challenge .ch-progress .bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--wl-lime), var(--wl-gold));
  border-radius: var(--radius-pill);
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}

.wl-challenge .ch-reward {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  text-align: center;
  flex-shrink: 0;
  min-width: 86px;
}
.wl-challenge .ch-reward .xp {
  background: var(--wl-lime);
  color: var(--wl-forest);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
}
.wl-challenge .ch-reward .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  font-weight: 700;
}

.wl-challenge.completed { opacity: .55; }

/* ============================================================
   Leaderboard
   ============================================================ */

.wl-lb-table {
  width: 100%;
  border-collapse: collapse;
}
.wl-lb-table th, .wl-lb-table td {
  text-align: left;
  padding: 16px 14px;
  font-size: 0.95rem;
}
.wl-lb-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  font-weight: 700;
  border-bottom: 2px solid var(--border-soft);
  background: var(--bg-muted);
}
.wl-lb-table tr td { border-bottom: 1px solid var(--border-soft); }
.wl-lb-table tr:hover td { background: var(--bg-muted); }

.wl-rank {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--bg-muted);
  color: var(--text);
}
.wl-rank.r-1 { background: var(--wl-gold); color: var(--wl-forest); box-shadow: 0 4px 14px rgba(239,188,10,.45); }
.wl-rank.r-2 { background: #D0D0D0; color: var(--wl-forest); }
.wl-rank.r-3 { background: #CD7F32; color: var(--white); }

.wl-lb-name {
  display: flex; align-items: center; gap: 12px;
}
.wl-lb-name .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--wl-lime);
  display: grid; place-items: center;
  color: var(--wl-forest);
  font-weight: 800;
  font-size: 0.78rem;
}
.wl-lb-name .info { line-height: 1.2; }
.wl-lb-name .info b { display: block; color: var(--wl-forest); font-weight: 700; }
.wl-lb-name .info small { color: var(--text-mute); font-size: 0.78rem; }

.wl-lb-table tr.me td {
  background: linear-gradient(90deg, rgba(199,219,0,.22), rgba(199,219,0,.05));
  font-weight: 700;
}
.wl-lb-table tr.me .wl-rank {
  background: var(--wl-forest);
  color: var(--wl-lime);
}

/* Podium */
.wl-podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: end;
  gap: 16px;
  margin-bottom: 36px;
}
.wl-podium .step {
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 26px 14px 16px;
  text-align: center;
  border: 1px solid var(--border-soft);
  position: relative;
  box-shadow: var(--shadow-md);
}
.wl-podium .step.gold    { background: var(--wl-gold); height: 230px; border-color: var(--wl-gold); }
.wl-podium .step.silver  { background: #E5E5E5; height: 190px; }
.wl-podium .step.bronze  { background: #D6924A; height: 165px; border-color: #D6924A; }

.wl-podium .step .avatar {
  width: 66px; height: 66px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--white);
  display: grid; place-items: center;
  color: var(--wl-forest);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.wl-podium .step .position {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--wl-forest);
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.wl-podium .step .name {
  font-weight: 800;
  color: var(--wl-forest);
  font-size: 1.02rem;
}
.wl-podium .step .pts {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--wl-forest);
  font-weight: 700;
}
.wl-podium .step.bronze .name,
.wl-podium .step.bronze .pts { color: var(--white); }

/* ============================================================
   Features (Landing)
   ============================================================ */

.wl-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}
@media (max-width: 900px) { .wl-feature-strip { grid-template-columns: 1fr; } }

.wl-feature {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}
.wl-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.wl-feature img { width: 100%; height: 210px; object-fit: cover; }
.wl-feature .body { padding: 26px; }
.wl-feature .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--wl-lime);
  color: var(--wl-forest);
  margin-bottom: 12px;
}
.wl-feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.wl-feature p { font-size: 0.96rem; margin: 0; }

/* ============================================================
   Testimonials
   ============================================================ */

.wl-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 18px;
}
@media (max-width: 900px) { .wl-testimonials { grid-template-columns: 1fr; } }

.wl-testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.wl-testimonial img {
  width: 100%; height: 300px; object-fit: cover;
}
.wl-testimonial .quote {
  padding: 26px 26px 8px;
  font-style: normal;
  color: var(--wl-forest);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 500;
  position: relative;
}
.wl-testimonial .quote::before {
  content: "„";
  display: inline-block;
  color: var(--wl-lime);
  font-size: 3rem;
  line-height: 0.5;
  vertical-align: middle;
  margin-right: 4px;
  font-weight: 700;
}
.wl-testimonial .name {
  padding: 0 26px 26px;
  font-weight: 700;
  color: var(--wl-red);
  font-size: 0.95rem;
}

/* ============================================================
   Footer
   ============================================================ */

.wl-footer {
  background: var(--wl-forest);
  color: rgba(255,255,255,.75);
  padding: 56px 32px 32px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.wl-footer::before {
  content: ""; position: absolute;
  top: -40px; left: -60px;
  width: 280px; height: 200px;
  background: var(--wl-lime);
  transform: rotate(8deg);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 88%);
  opacity: .08;
}

.wl-footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 50px;
  align-items: flex-start;
  position: relative; z-index: 1;
}
.wl-footer h4 { color: var(--wl-lime); font-size: 0.95rem; margin-bottom: 14px; }
.wl-footer a { color: rgba(255,255,255,.7); display: block; padding: 4px 0; font-size: 0.9rem; }
.wl-footer a:hover { color: var(--wl-lime); text-decoration: none; }
.wl-footer .col { min-width: 160px; }
.wl-footer .sf {
  margin-left: auto;
  text-align: right;
  font-size: 0.78rem;
  color: rgba(255,255,255,.45);
  max-width: 280px;
}
.wl-footer .sf strong { color: var(--wl-lime); font-weight: 700; display: block; margin-bottom: 6px; }

.wl-slogan {
  width: 100%;
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wl-lime);
  letter-spacing: -.01em;
}

/* ============================================================
   Lotto-Ball decoration
   ============================================================ */

.wl-balls {
  display: inline-flex; gap: 6px;
}
.wl-ball {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--wl-gold);
  color: var(--wl-forest);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: inset -2px -3px 7px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.1);
  border: 1.5px solid rgba(0,0,0,.05);
}
.wl-ball.red    { background: var(--wl-red); color: var(--white); }
.wl-ball.green  { background: var(--wl-green-deep); color: var(--white); }
.wl-ball.lime   { background: var(--wl-lime); color: var(--wl-forest); }

/* ============================================================
   Toasts
   ============================================================ */

.wl-toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(140%);
  transition: transform .35s cubic-bezier(.2,1.4,.4,1);
  max-width: 380px;
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--wl-lime);
  color: var(--wl-forest);
}
.wl-toast.show { transform: translateY(0); }
.wl-toast .toast-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--wl-lime);
  color: var(--wl-forest);
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.wl-toast .toast-body small {
  display: block;
  color: var(--text-mute);
  font-weight: 500;
  font-size: 0.82rem;
  margin-top: 2px;
}

/* ============================================================
   Sound toggle
   ============================================================ */

.wl-sound-toggle {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 1.35rem;
  z-index: 100;
  transition: all .2s ease;
}
.wl-sound-toggle:hover { transform: scale(1.08); background: var(--wl-lime); border-color: var(--wl-lime); }
.wl-sound-toggle.muted { opacity: .5; }

/* ============================================================
   Confetti canvas
   ============================================================ */

.wl-confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}

/* ============================================================
   Section heads
   ============================================================ */

.wl-section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin: 36px 0 18px;
}
.wl-section-head h2 { font-size: 1.6rem; }
.wl-section-head .sub { color: var(--text-mute); font-size: 0.92rem; font-weight: 600; }

/* ============================================================
   Filter chips (Pill-Style wie westlotto.de)
   ============================================================ */

.wl-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.wl-chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wl-forest);
  cursor: pointer;
  transition: all .15s ease;
}
.wl-chip:hover { border-color: var(--wl-forest); }
.wl-chip.active {
  background: var(--wl-forest);
  color: var(--white);
  border-color: var(--wl-forest);
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float { animation: float 3s ease-in-out infinite; }

/* Dotted bg pattern */
.wl-dots-bg {
  position: relative;
  overflow: hidden;
}
.wl-dots-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,57,30,.07) 1px, transparent 2px);
  background-size: 26px 26px;
  z-index: 0;
}
.wl-dots-bg > * { position: relative; z-index: 1; }

/* WestLotto signature tag-shape, reusable */
.wl-tag-shape {
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}
.wl-tag-shape-right {
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
}

/* ============================================================
   SALESFORCE EXPERIENCE CLOUD PATTERNS
   Sichtbar machen, ohne WL-Branding zu verwässern
   ============================================================ */

/* ---- Salesforce App Launcher (9-Dot-Grid Icon) ---- */
.sf-app-launcher {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-muted);
  cursor: pointer;
  border: 1px solid var(--border-soft);
  transition: all .15s ease;
}
.sf-app-launcher:hover { background: var(--white); border-color: var(--wl-forest); }
.sf-app-launcher .grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.sf-app-launcher .grid span {
  width: 4px; height: 4px;
  border-radius: 1px;
  background: var(--wl-forest);
}

/* ---- Salesforce-style "Powered by" Banner ---- */
.sf-platform-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  background: linear-gradient(90deg, rgba(0,57,30,.04), rgba(0,161,224,.04));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-mute);
  font-weight: 600;
}
.sf-cloud-icon {
  width: 18px; height: 18px;
  display: inline-block;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300A1E0'><path d='M17.5 9c-.4-2.8-2.8-5-5.7-5-2.5 0-4.6 1.6-5.4 3.8C3.8 8.3 2 10.5 2 13c0 2.8 2.2 5 5 5h11c2.2 0 4-1.8 4-4 0-2.5-2.3-4.5-4.5-5z'/></svg>") no-repeat center / contain;
}

/* ---- Salesforce Path Component ---- */
.sf-path {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.sf-path .step {
  flex: 1;
  position: relative;
  padding: 14px 18px 14px 32px;
  background: var(--bg-muted);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.sf-path .step:first-child { padding-left: 18px; }
.sf-path .step::before,
.sf-path .step::after {
  content: ""; position: absolute;
  top: 0; right: -16px;
  width: 0; height: 0;
  border-top: 26px solid transparent;
  border-bottom: 26px solid transparent;
  border-left: 16px solid var(--bg-muted);
  z-index: 2;
}
.sf-path .step::before {
  right: -17px;
  border-left-color: var(--border-soft);
  z-index: 1;
}
.sf-path .step:last-child::before,
.sf-path .step:last-child::after { display: none; }
.sf-path .step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-mute);
  border: 1.5px solid var(--text-mute);
}
.sf-path .step.done {
  background: var(--wl-green-deep);
  color: var(--white);
}
.sf-path .step.done::after { border-left-color: var(--wl-green-deep); }
.sf-path .step.done .num {
  background: var(--white); color: var(--wl-green-deep); border-color: var(--white);
}
.sf-path .step.current {
  background: var(--wl-forest);
  color: var(--wl-lime);
}
.sf-path .step.current::after { border-left-color: var(--wl-forest); }
.sf-path .step.current .num {
  background: var(--wl-lime); color: var(--wl-forest); border-color: var(--wl-lime);
}
.sf-path .step:hover:not(.current):not(.done) { background: #E5DFCF; }

/* ---- Salesforce Quick Actions Bar ---- */
.sf-quick-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  align-items: center;
}
.sf-quick-actions .label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  margin-right: 6px;
}
.sf-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--wl-forest);
  font-weight: 600;
  font-size: 0.84rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .15s ease;
}
.sf-action:hover { background: var(--wl-forest); color: var(--white); border-color: var(--wl-forest); }
.sf-action.primary { background: var(--wl-forest); color: var(--white); border-color: var(--wl-forest); }
.sf-action.primary:hover { background: var(--wl-forest-dark); }

/* ---- Einstein AI Card (Salesforce signature lila/blue gradient) ---- */
.sf-einstein-card {
  position: relative;
  background: linear-gradient(135deg, #032E61 0%, #1B4F8F 50%, #4B2E83 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  overflow: hidden;
}
.sf-einstein-card::before {
  content: ""; position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
}
.sf-einstein-card > * { position: relative; z-index: 1; }
.sf-einstein-card .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.18);
  margin-bottom: 14px;
}
.sf-einstein-card .badge svg {
  width: 14px; height: 14px;
}
.sf-einstein-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.sf-einstein-card p {
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
  margin: 0 0 14px;
  line-height: 1.5;
}
.sf-einstein-card .confidence {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.6);
  font-weight: 700;
}
.sf-einstein-card .confidence .meter {
  flex: 1; max-width: 120px;
  height: 5px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.sf-einstein-card .confidence .meter > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #00D4FF, #C84FFF);
  border-radius: var(--radius-pill);
}
.sf-einstein-card .actions {
  display: flex; gap: 8px; margin-top: 16px;
}
.sf-einstein-card .actions button {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.sf-einstein-card .actions button:hover { background: rgba(255,255,255,.22); }
.sf-einstein-card .actions button.primary { background: var(--white); color: #4B2E83; }

/* ---- Activity Timeline (Salesforce-style) ---- */
.sf-timeline {
  position: relative;
}
.sf-timeline::before {
  content: ""; position: absolute;
  left: 18px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.sf-timeline-item {
  position: relative;
  padding-left: 50px;
  padding-bottom: 18px;
}
.sf-timeline-item:last-child { padding-bottom: 0; }
.sf-timeline-item .icon {
  position: absolute;
  left: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--wl-lime);
  display: grid; place-items: center;
  font-size: 0.78rem;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
  color: var(--wl-forest);
}
.sf-timeline-item.red    .icon { background: var(--wl-red); color: var(--white); }
.sf-timeline-item.gold   .icon { background: var(--wl-gold); color: var(--wl-forest); }
.sf-timeline-item.forest .icon { background: var(--wl-forest); color: var(--wl-lime); }
.sf-timeline-item .time {
  font-size: 0.72rem;
  color: var(--text-mute);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sf-timeline-item .head {
  font-weight: 700;
  color: var(--wl-forest);
  font-size: 0.95rem;
  margin-top: 2px;
}
.sf-timeline-item .body {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-top: 4px;
  line-height: 1.45;
}

/* ---- Knowledge Article Layout ---- */
.sf-article {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sf-article-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}
.sf-article-header .meta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 0.74rem; color: var(--text-mute);
  font-weight: 700;
  margin-bottom: 8px;
}
.sf-article-header .meta-row .kb-id {
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--wl-forest);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.sf-article-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.sf-article-header .lead { font-size: 1rem; color: var(--text-soft); margin: 0; }
.sf-article-body {
  padding: 22px 28px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text);
}
.sf-article-body h4 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
}
.sf-article-body ul { margin: 8px 0; padding-left: 22px; }
.sf-article-body li { margin-bottom: 4px; }
.sf-article-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.sf-rating {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 600;
}
.sf-rating .yes, .sf-rating .no {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.sf-rating .yes:hover { background: var(--wl-green-deep); color: var(--white); border-color: var(--wl-green-deep); }
.sf-rating .no:hover { background: var(--wl-red); color: var(--white); border-color: var(--wl-red); }

/* ---- Related list ---- */
.sf-related {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sf-related-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.sf-related-head h3 { font-size: 1.05rem; }
.sf-related-head .count {
  background: var(--bg-muted);
  color: var(--wl-forest);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  margin-left: 8px;
}

/* ---- Report Builder ---- */
.sf-report {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 540px;
}
@media (max-width: 900px) { .sf-report { grid-template-columns: 1fr; } }

.sf-report .sidebar {
  background: var(--bg);
  padding: 18px;
  border-right: 1px solid var(--border-soft);
}
.sf-report .sidebar h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  font-weight: 700;
  margin: 14px 0 8px;
}
.sf-report .sidebar h4:first-child { margin-top: 0; }
.sf-field-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  font-size: 0.86rem;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--wl-forest);
  cursor: grab;
}
.sf-field-pill::before {
  content: "⋮⋮";
  color: var(--text-mute);
  font-size: 0.86rem;
  letter-spacing: -2px;
}
.sf-field-pill.dim { opacity: .55; }
.sf-report .canvas { padding: 20px 24px; }
.sf-report .toolbar {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.sf-report .toolbar select,
.sf-report .toolbar input {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--wl-forest);
  font-weight: 600;
}

/* ---- Tech-View / Powered by Salesforce ---- */
.sf-tech-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.sf-tech-card .sf-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00A1E0, #1B96FF);
  display: grid; place-items: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.sf-tech-card .ui-elem {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--wl-green-deep);
  font-weight: 800;
  margin-bottom: 6px;
}
.sf-tech-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.sf-tech-card .map {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-soft);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  border-left: 3px solid #00A1E0;
}
.sf-tech-card .map b { color: var(--wl-forest); }
.sf-tech-card .pill-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 12px;
}
.sf-tech-card .pill-row span {
  background: var(--bg-muted);
  color: var(--wl-forest);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
}

/* Licence tier pricing card */
.sf-tier-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-soft);
  padding: 26px;
  position: relative;
}
.sf-tier-card.recommended {
  border-color: var(--wl-forest);
  box-shadow: 0 12px 30px rgba(0,57,30,.15);
}
.sf-tier-card.recommended::before {
  content: "EMPFOHLEN";
  position: absolute;
  top: -12px; right: 22px;
  background: var(--wl-lime);
  color: var(--wl-forest);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: .08em;
}
.sf-tier-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.sf-tier-card .price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wl-forest);
  margin: 10px 0 4px;
}
.sf-tier-card .price small {
  font-size: 0.78rem;
  color: var(--text-mute);
  font-weight: 600;
}
.sf-tier-card .feats {
  margin-top: 14px;
  list-style: none;
  padding: 0;
  font-size: 0.92rem;
  color: var(--text);
}
.sf-tier-card .feats li {
  padding: 6px 0;
  border-top: 1px solid var(--border-soft);
  display: flex; gap: 8px;
  align-items: flex-start;
}
.sf-tier-card .feats li::before {
  content: "✓";
  color: var(--wl-green-deep);
  font-weight: 800;
}

/* ---- Reports / Dashboard chart placeholders ---- */
.sf-chart {
  position: relative;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.sf-chart h4 {
  font-size: 0.92rem;
  margin-bottom: 12px;
  color: var(--wl-forest);
}
.sf-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 140px;
}
.sf-bars > div {
  flex: 1;
  background: linear-gradient(180deg, var(--wl-lime), var(--wl-green-deep));
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 8px;
  transition: all .8s ease;
}
.sf-bars > div::after {
  content: attr(data-label);
  position: absolute;
  bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem;
  color: var(--text-mute);
  font-weight: 700;
}
.sf-bars > div span {
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--wl-forest);
}

/* Donut */
.sf-donut {
  position: relative;
  width: 160px; height: 160px;
  margin: 0 auto;
}

/* Comments / discussion (Experience Cloud Chatter) */
.sf-chatter {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; gap: 12px;
  margin-bottom: 10px;
}
.sf-chatter .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--wl-lime);
  color: var(--wl-forest);
  font-weight: 800;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 0.82rem;
}
.sf-chatter .who { font-weight: 700; color: var(--wl-forest); font-size: 0.92rem; }
.sf-chatter .when { color: var(--text-mute); font-size: 0.78rem; margin-left: 6px; }
.sf-chatter .msg { color: var(--text-soft); font-size: 0.92rem; margin-top: 4px; line-height: 1.5; }
.sf-chatter .react {
  display: flex; gap: 10px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-mute);
  font-weight: 600;
}
.sf-chatter .react a { color: var(--text-mute); }
.sf-chatter .react a:hover { color: var(--wl-forest); text-decoration: none; }
