/* ═══════════════════════════════════════════════════════════════════
   HANSEKREDIT — Wissensseiten (Glossar · Praxisfälle · Jobs)
   2026-08-19

   Gemeinsames Stylesheet für die drei neuen Seiten. Bewusst eigenständig
   und mit dem Vorsatz „w-", damit es sich nicht mit dem gewachsenen CSS
   der Produktseiten überlagert.

   Mobil zuerst: Alle Grundregeln gelten für das Handy, größere Bildschirme
   bekommen ihre Abweichungen in den Medienabfragen weiter unten.
   ═══════════════════════════════════════════════════════════════════ */

.w-page {
  --w-navy: #001233;
  --w-ink: #1b2740;
  --w-body: #41506b;
  --w-mute: #6a7488;
  --w-line: #E4E9F2;
  --w-soft: #F4F7FC;
  --w-blue: #005fd9;
  --w-orange: #FF5F00;
  --w-radius: 14px;
}

/* ── Kopf ──────────────────────────────────────────────────────── */
.w-hero { padding: 104px 20px 40px; }
.w-wrap { max-width: 880px; margin: 0 auto; }
.w-wrap--wide { max-width: 1080px; }

.w-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--w-mute); margin: 0 0 12px;
}
.w-page h1 {
  font-size: clamp(30px, 6vw, 50px); line-height: 1.12; letter-spacing: -.02em;
  color: var(--w-navy); margin: 0 0 18px;
}
.w-lead {
  font-size: clamp(16px, 2.4vw, 19px); line-height: 1.65;
  color: var(--w-body); margin: 0; max-width: 62ch;
}

/* ── Abschnitte ────────────────────────────────────────────────── */
.w-section { padding: 0 20px 56px; }
.w-section h2 {
  font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; letter-spacing: -.015em;
  color: var(--w-navy); margin: 0 0 14px;
}
.w-section h3 {
  font-size: clamp(17px, 2.4vw, 20px); line-height: 1.3;
  color: var(--w-navy); margin: 0 0 8px;
}
.w-section p { font-size: 16px; line-height: 1.72; color: var(--w-body); margin: 0 0 14px; }
.w-section p:last-child { margin-bottom: 0; }
.w-section a { color: var(--w-blue); font-weight: 600; }

.w-note {
  background: var(--w-soft); border: 1px solid var(--w-line);
  border-radius: var(--w-radius); padding: 20px 22px;
}
.w-note--quiet { background: #FAFBFD; }

/* ── Suchfeld + Buchstaben (Glossar) ───────────────────────────── */
/* Klebt unter dem Kopfbereich. --nav-top wird von nav.js laufend auf die
   tatsächliche Kopfhöhe gesetzt — die ändert sich beim Scrollen, eine
   feste Zahl würde die Leiste mal überlappen, mal schweben lassen. */
.w-tools { position: sticky; top: var(--nav-top, 64px); z-index: 20; background: #fff;
  padding: 14px 0 12px; border-bottom: 1px solid var(--w-line); margin-bottom: 26px; }
.w-search {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--w-ink);
  padding: 13px 16px 13px 42px; border: 1px solid var(--w-line); border-radius: 11px;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236a7488' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") no-repeat 14px center;
  -webkit-appearance: none; appearance: none;
}
.w-search:focus { outline: none; border-color: var(--w-blue); box-shadow: 0 0 0 3px rgba(0,95,217,.12); }

.w-letters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.w-letters a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 4px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--w-mute);
  text-decoration: none; transition: background .14s ease, color .14s ease;
}
.w-letters a:hover { background: var(--w-soft); color: var(--w-navy); }
.w-letters a[aria-disabled="true"] { opacity: .3; pointer-events: none; }

.w-count { font-size: 13.5px; color: var(--w-mute); margin: 0 0 18px; }
.w-empty { display: none; padding: 32px 4px; font-size: 16px; color: var(--w-mute); }

/* ── Glossar-Einträge ──────────────────────────────────────────── */
.w-group { margin-bottom: 34px; scroll-margin-top: calc(var(--nav-top, 64px) + 96px); }
.w-group-letter {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--w-mute); padding-bottom: 8px; border-bottom: 1px solid var(--w-line);
  margin: 0 0 14px;
}
.w-term {
  border: 1px solid var(--w-line); border-radius: var(--w-radius);
  padding: 18px 20px; margin-bottom: 10px; scroll-margin-top: calc(var(--nav-top, 64px) + 104px);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.w-term:hover { border-color: #CFDAE9; box-shadow: 0 3px 14px rgba(11,27,58,.05); }
.w-term:target { border-color: var(--w-blue); box-shadow: 0 0 0 3px rgba(0,95,217,.1); }
.w-term h3 { font-size: 18px; margin: 0 0 7px; }
.w-term p { font-size: 15.5px; line-height: 1.7; color: var(--w-body); margin: 0 0 10px; }
.w-term p:last-child { margin-bottom: 0; }
.w-term .w-example {
  background: var(--w-soft); border-radius: 10px; padding: 12px 14px;
  font-size: 14.5px; line-height: 1.65; color: var(--w-body); margin: 12px 0 0;
}
.w-term .w-example b { color: var(--w-navy); }
.w-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 14.5px; font-weight: 700; color: var(--w-blue); text-decoration: none;
}
.w-more:hover { text-decoration: underline; }
.w-more::after { content: '→'; transition: transform .16s ease; }
.w-more:hover::after { transform: translateX(3px); }

/* ── Praxisfälle ───────────────────────────────────────────────── */
.w-case {
  border: 1px solid var(--w-line); border-radius: 16px;
  padding: 24px 22px; margin-bottom: 16px;
  scroll-margin-top: calc(var(--nav-top, 64px) + 24px);
}
.w-case-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #9a3f00; background: rgba(255,95,0,.1);
  border-radius: 999px; padding: 4px 11px; margin-bottom: 12px;
}
.w-case h3 { font-size: clamp(19px, 3vw, 23px); margin: 0 0 12px; }
.w-case-block { margin-bottom: 16px; }
.w-case-block:last-of-type { margin-bottom: 0; }
.w-case-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--w-mute); margin: 0 0 5px;
}
.w-case-block p { font-size: 15.5px; line-height: 1.72; color: var(--w-body); margin: 0 0 10px; }
.w-case-block p:last-child { margin-bottom: 0; }

/* Zahlen des Falls — als Tabelle lesbar, auf dem Handy gestapelt */
.w-facts { display: grid; gap: 1px; background: var(--w-line);
  border: 1px solid var(--w-line); border-radius: 12px; overflow: hidden; margin: 16px 0; }
.w-fact { background: #fff; padding: 12px 15px; display: flex;
  justify-content: space-between; align-items: baseline; gap: 12px; }
.w-fact dt { font-size: 14px; color: var(--w-mute); margin: 0; }
.w-fact dd { font-size: 15px; font-weight: 700; color: var(--w-navy);
  margin: 0; text-align: right; white-space: nowrap; }

.w-result {
  background: rgba(15,110,86,.07); border: 1px solid rgba(15,110,86,.16);
  border-radius: 12px; padding: 15px 17px; margin-top: 16px;
}
.w-result .w-case-label { color: #0F6E56; }
.w-result p { color: #17422f; margin: 0; font-size: 15.5px; line-height: 1.7; }

.w-anon {
  font-size: 13px; line-height: 1.6; color: var(--w-mute);
  border-top: 1px solid var(--w-line); margin-top: 18px; padding-top: 12px;
}

/* ── Jobs ──────────────────────────────────────────────────────── */
.w-cols { display: grid; gap: 14px; }
.w-card {
  border: 1px solid var(--w-line); border-radius: var(--w-radius);
  padding: 20px 22px;
}
.w-card h3 { font-size: 17px; margin: 0 0 8px; }
.w-card p { font-size: 15.5px; line-height: 1.7; color: var(--w-body); margin: 0; }

.w-list { list-style: none; margin: 0; padding: 0; }
.w-list li {
  position: relative; padding: 0 0 12px 28px;
  font-size: 16px; line-height: 1.7; color: var(--w-body);
}
.w-list li::before {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--w-orange);
}
.w-list li:last-child { padding-bottom: 0; }

/* ── Handlungsaufforderung ─────────────────────────────────────── */
.w-cta {
  background: var(--w-navy); border-radius: 18px; padding: 30px 24px;
  color: #fff; margin-top: 8px;
}
.w-cta h2 { color: #fff; margin: 0 0 10px; }
.w-cta p { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.w-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--w-orange); color: #fff; font-size: 16px; font-weight: 700;
  padding: 15px 26px; border-radius: 11px; text-decoration: none;
  transition: filter .15s ease; width: 100%; text-align: center;
}
.w-btn:hover { filter: brightness(.95); }
.w-btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.28); }
.w-btn--ghost:hover { background: rgba(255,255,255,.08); filter: none; }
.w-btns { display: grid; gap: 10px; }

/* ── Ab Tablet ─────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .w-hero { padding: 128px 28px 48px; }
  .w-section { padding: 0 28px 64px; }
  .w-term { padding: 20px 24px; }
  .w-case { padding: 30px 30px; }
  .w-cta { padding: 40px 38px; }
  .w-btns { grid-auto-flow: column; justify-content: start; }
  .w-btn { width: auto; }
  .w-facts { grid-template-columns: repeat(2, 1fr); }
  .w-cols { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 1000px) {
  .w-hero { padding: 148px 32px 56px; }
  .w-section { padding: 0 32px 72px; }
  .w-cols--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Wer Bewegung reduziert, bekommt keine */
@media (prefers-reduced-motion: reduce) {
  .w-term, .w-more::after, .w-letters a, .w-btn { transition: none; }
}
