/* ═══════════════════════════════════════════════════════════
   sparego – Spartipps-Übersicht & Spartipp-Karten
   Designvorgabe Masterprompt V3.0
   ═══════════════════════════════════════════════════════════ */

.spt, .spt-card {
  --spt-blue: #2B9DD4;
  --spt-blue-dark: #1E7EAC;
  --spt-orange: #F7A800;
  --spt-orange-hover: #E09200;
  --spt-head: #0F172A;
  --spt-text: #1E293B;
  --spt-muted: #64748B;
  --spt-border: #E2E8F0;
  --spt-soft: #F8FAFC;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  color: var(--spt-text);
}
.spt { background: var(--spt-soft); padding-bottom: 56px; }
.spt-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.spt h1, .spt h2, .spt h3 { font-family: inherit; color: var(--spt-head); }

/* ── Einleitung (kompakt) ── */
.spt-intro {
  background: linear-gradient(180deg, #fff 0%, #EEF8FD 100%);
  border-bottom: 1px solid var(--spt-border);
  padding: 40px 0 32px;
}
.spt-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--spt-blue-dark);
  background: #fff; border: 1px solid #CDE9F6; border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.spt-intro h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; line-height: 1.2; margin: 0 0 10px; }
.spt-lead { font-size: 1.05rem; line-height: 1.6; color: var(--spt-text); max-width: 680px; margin: 0; }
.spt-stats { margin: 14px 0 0; font-size: .9rem; color: var(--spt-muted); }
.spt-stats strong { color: var(--spt-blue-dark); }

/* ── Bereichs-Navigation ── */
.spt-tabs {
  position: sticky; top: var(--sparego-header-h, 0px); z-index: 20;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--spt-border);
}
.spt-tabs__inner { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: thin; }
.spt-tab {
  flex: 0 0 auto; font: 600 .88rem/1 inherit; font-family: inherit; color: var(--spt-text);
  background: #fff; border: 1px solid var(--spt-border); border-radius: 999px; padding: 9px 14px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.spt-tab:hover { border-color: var(--spt-blue); color: var(--spt-blue-dark); }
.spt-tab.is-active { background: var(--spt-blue); border-color: var(--spt-blue); color: #fff; }

/* ── Abschnitte ── */
.spt-content { padding-top: 32px; }
.spt-section { margin: 0 0 40px; scroll-margin-top: 140px; }
.spt-section[hidden], .spt-soon[hidden], .spt-collapse[hidden] { display: none; }
.spt-section__head {
  display: flex; align-items: center; gap: 14px;
  padding: 0 0 14px; margin-bottom: 18px;
  border-bottom: 2px solid var(--spt-border);
  position: relative;
}
.spt-section__head::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px;
  background: var(--spt-c, var(--spt-orange));
}
.spt-section--latest .spt-section__head::after { background: var(--spt-orange); }
.spt-section__icon {
  flex: 0 0 44px; height: 44px; display: grid; place-items: center; font-size: 1.4rem;
  background: #fff; border: 1px solid var(--spt-border); border-radius: 12px;
}
.spt-section__head > div { flex: 1; min-width: 0; }
.spt-section__head h2 { font-size: 1.35rem; font-weight: 800; line-height: 1.25; margin: 0; }
.spt-section__head p { margin: 3px 0 0; font-size: .92rem; color: var(--spt-muted); line-height: 1.5; }
.spt-toggle {
  flex: 0 0 auto; font: 600 .82rem/1 inherit; font-family: inherit; color: var(--spt-muted);
  background: #fff; border: 1px solid var(--spt-border); border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.spt-toggle:hover { color: var(--spt-blue-dark); border-color: var(--spt-blue); }

/* ── Kartenraster: 3 / 2 / 1 Spalten, feste Spaltenbreite ── */
.spt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1024px) { .spt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 640px)  { .spt-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ── Karte ── */
.spt-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--spt-border); border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.spt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,.08); border-color: #CBD5E1; }
.spt-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #EEF2F7; border-radius: 12px 12px 0 0; }
.spt-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.spt-card:hover .spt-card__img img { transform: scale(1.03); }
.spt-card__ph { display: grid; place-items: center; height: 100%; font-size: 2.4rem; }
.spt-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.spt-badge {
  align-self: flex-start; font-size: .72rem; font-weight: 700; line-height: 1.3;
  color: var(--spt-c, var(--spt-blue-dark));
  background: color-mix(in srgb, var(--spt-c, #2B9DD4) 12%, #fff);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 10px;
}
.spt-card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0 0 8px; }
.spt-card__title a {
  color: var(--spt-head); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.spt-card__title a:hover { color: var(--spt-blue-dark); }
.spt-card__excerpt {
  font-size: .9rem; line-height: 1.55; color: var(--spt-muted); margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.spt-card__footer {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid #F1F5F9;
}
.spt-card__footer time { font-size: .8rem; color: var(--spt-muted); }
.spt-btn {
  display: inline-block; font-size: .85rem; font-weight: 700; line-height: 1;
  color: #fff !important; background: var(--spt-orange); border-radius: 8px; padding: 10px 14px;
  text-decoration: none !important; white-space: nowrap; transition: background .15s;
}
.spt-btn:hover, .spt-btn:focus-visible { background: var(--spt-orange-hover); }

/* ── Link unter den Karten ── */
.spt-more {
  display: inline-block; margin-top: 14px; font-size: .92rem; font-weight: 600;
  color: var(--spt-blue-dark); text-decoration: none;
}
.spt-more:hover { text-decoration: underline; }

/* ── Bereiche ohne Spartipps (kompakt) ── */
.spt-soon {
  background: #fff; border: 1px solid var(--spt-border); border-radius: 12px;
  padding: 20px 22px; margin: 0 0 40px;
}
.spt-soon h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.spt-soon__list { display: flex; flex-wrap: wrap; gap: 8px; }
.spt-chip {
  font-size: .85rem; font-weight: 600; color: var(--spt-text); text-decoration: none;
  background: var(--spt-soft); border: 1px solid var(--spt-border); border-radius: 999px; padding: 7px 12px;
}
a.spt-chip:hover { border-color: var(--spt-blue); color: var(--spt-blue-dark); }

.spt-notice { background: #fff; border: 1px dashed #CBD5E1; border-radius: 12px; padding: 16px; color: var(--spt-muted); }

/* ── Weiterführende Links ── */
.spt-additional { background: #fff; border: 1px solid var(--spt-border); border-radius: 12px; padding: 26px 24px; }
.spt-additional h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 6px; }
.spt-additional > p { color: var(--spt-muted); font-size: .92rem; margin: 0 0 18px; }
.spt-additional .sparego-additional-hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.spt-additional .sparego-hub-card {
  background: var(--spt-soft); border: 1px solid var(--spt-border); border-radius: 12px; padding: 18px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .18s, box-shadow .18s;
}
.spt-additional .sparego-hub-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.07); }
.spt-additional .sparego-hub-card__icon { font-size: 1.6rem; }
.spt-additional .sparego-hub-card__title { font-weight: 700; color: var(--spt-head); }
.spt-additional .sparego-hub-card__desc { font-size: .85rem; color: var(--spt-muted); line-height: 1.5; }
.spt-additional .sparego-hub-card__cta { margin-top: auto; font-weight: 700; font-size: .85rem; color: var(--spt-blue-dark); }

@media (max-width: 640px) {
  .spt-intro { padding: 28px 0 22px; }
  .spt-section__head { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .spt-section__icon { flex-basis: 40px; height: 40px; font-size: 1.25rem; }
  .spt-section__head > div { flex: 1 1 calc(100% - 52px); }
  .spt-toggle { order: 3; margin-left: 52px; padding: 6px 10px; }
  .spt-section__head h2 { font-size: 1.18rem; }
  .spt-card__body { padding: 14px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .spt-card, .spt-card__img img { transition: none; }
  .spt-card:hover { transform: none; }
}
