/* nennwert v2 design system. Cream + deep-teal, serif headings, formal "Sie".
   Built for the 50+ saver: legible, sober, trust-first. Rolled out page by page
   on the base-v2 layout; pages still on base.ejs keep the old look. */

:root {
  --nw2-bg: #f5f2ec;
  --nw2-surface: #ffffff;
  --nw2-teal: #0f2f48;
  --nw2-ink: #16242f;
  --nw2-body: #1c2530;
  --nw2-muted: #41505d;
  --nw2-muted-2: #51606e;
  --nw2-dim: #6a7681;
  --nw2-faint: #8a94a0;
  --nw2-border: #e4ddce;
  --nw2-border-2: #e9e2d4;
  --nw2-border-3: #eee6d8;
  --nw2-green: #1f7a4d;
  --nw2-green-bg: #e7f3ec;
  --nw2-green-bright: #7fd6a3;
  --nw2-gold: #c2922f;
  --nw2-gold-dark: #e0b352;
  --nw2-gold-bg: #f7efda;
  --nw2-blue: #1f6fb2;
  --nw2-blue-bg: #eaf1f7;
  --nw2-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --nw2-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nw2-maxw: 1180px;
}

* { box-sizing: border-box; }

.nw2-body {
  margin: 0;
  background: var(--nw2-bg);
  color: var(--nw2-body);
  font-family: var(--nw2-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Serif headings are scoped to .nw2-* classes (not bare h1/h2/h3) so pages that
   keep their Tailwind content under the v2 chrome are not disturbed. */

@keyframes nwPulse {
  0% { box-shadow: 0 0 0 0 rgba(31,122,77,0.45); }
  70% { box-shadow: 0 0 0 9px rgba(31,122,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,122,77,0); }
}

.nw2-container { max-width: var(--nw2-maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Top trust bar ---- */
.nw2-trustbar { background: var(--nw2-teal); color: #cfe0ec; font-size: 14.5px; font-weight: 500; }
.nw2-trustbar-inner { max-width: var(--nw2-maxw); margin: 0 auto; padding: 9px 24px; display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; text-align: center; }
.nw2-trustbar-item { display: inline-flex; align-items: center; gap: 8px; }
.nw2-trustbar-item .chk { color: var(--nw2-green-bright); font-weight: 800; }
.nw2-trustbar-sep { opacity: .4; }

/* ---- Header ---- */
.nw2-header { position: sticky; top: 0; z-index: 50; background: var(--nw2-surface); border-bottom: 1px solid var(--nw2-border); }
.nw2-header-inner { max-width: var(--nw2-maxw); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nw2-logo { text-decoration: none; display: flex; align-items: baseline; gap: 2px; font-family: var(--nw2-serif); font-weight: 700; font-size: 26px; color: var(--nw2-teal); letter-spacing: -0.01em; }
.nw2-logo .plus { color: var(--nw2-gold); }
.nw2-nav { display: flex; align-items: center; gap: 30px; font-size: 17px; font-weight: 600; }
.nw2-nav a { text-decoration: none; color: var(--nw2-muted-2); padding-bottom: 3px; }
.nw2-nav a:hover { color: var(--nw2-teal); }
.nw2-nav a.active { color: var(--nw2-teal); border-bottom: 3px solid var(--nw2-gold); }

/* ---- Buttons ---- */
.nw2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--nw2-teal); color: #fff; font-weight: 700; font-size: 18px; padding: 15px 26px; border-radius: 11px; text-decoration: none; border: none; cursor: pointer; white-space: nowrap; transition: filter .12s ease, transform .12s ease; font-family: var(--nw2-sans); }
.nw2-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.nw2-btn-gold { background: var(--nw2-gold-dark); color: var(--nw2-ink); }
.nw2-btn-sm { font-size: 16px; padding: 13px 20px; width: 100%; text-align: center; }
.nw2-header .nw2-btn { font-size: 16px; padding: 11px 20px; }

/* ---- Hero ---- */
.nw2-hero { background: linear-gradient(180deg, #ffffff 0%, var(--nw2-bg) 100%); border-bottom: 1px solid var(--nw2-border-2); }
.nw2-hero-inner { max-width: var(--nw2-maxw); margin: 0 auto; padding: 56px 24px 60px; display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 56px; align-items: center; }
.nw2-livepill { display: inline-flex; align-items: center; gap: 10px; background: var(--nw2-green-bg); color: var(--nw2-green); font-weight: 700; font-size: 15px; padding: 8px 15px; border-radius: 999px; margin-bottom: 22px; }
.nw2-livedot { width: 10px; height: 10px; border-radius: 50%; background: var(--nw2-green); animation: nwPulse 2s infinite; }
.nw2-h1 { font-family: var(--nw2-serif); font-weight: 700; font-size: 48px; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 18px; color: var(--nw2-ink); text-wrap: balance; }
.nw2-lede { font-size: 21px; line-height: 1.5; color: var(--nw2-muted); margin: 0 0 30px; max-width: 560px; }
.nw2-hero-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nw2-hero-meta .sub { font-size: 16px; color: var(--nw2-dim); }
.nw2-hero-meta .sub strong { color: var(--nw2-ink); }

.nw2-spitzen { background: var(--nw2-surface); border: 1px solid var(--nw2-border); border-radius: 18px; padding: 30px; box-shadow: 0 14px 40px rgba(20,40,60,0.07); }
.nw2-spitzen .label { font-size: 15px; font-weight: 700; color: var(--nw2-green); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.nw2-spitzen .name { font-family: var(--nw2-serif); font-size: 22px; font-weight: 600; color: var(--nw2-ink); margin-bottom: 18px; }
.nw2-spitzen .bigrate { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 6px; }
.nw2-spitzen .bigrate .num { font-family: var(--nw2-serif); font-size: 64px; font-weight: 700; line-height: 0.95; color: var(--nw2-green); }
.nw2-spitzen .bigrate .pa { font-size: 24px; font-weight: 700; color: var(--nw2-green); padding-bottom: 9px; }
.nw2-spitzen .terms { font-size: 16px; color: var(--nw2-muted-2); margin-bottom: 22px; }
.nw2-spitzen .stats { display: flex; gap: 12px; padding-top: 20px; border-top: 1px solid var(--nw2-border-3); }
.nw2-spitzen .stats .k { font-size: 14px; color: var(--nw2-dim); margin-bottom: 3px; }
.nw2-spitzen .stats .v { font-size: 18px; font-weight: 700; color: var(--nw2-ink); }

/* ---- Sections ---- */
.nw2-section { padding: 56px 0; }
.nw2-section-tight { padding: 8px 0 56px; }
.nw2-eyebrow { font-size: 15px; font-weight: 800; color: var(--nw2-gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.nw2-h2 { font-family: var(--nw2-serif); font-weight: 700; font-size: 36px; letter-spacing: -0.01em; margin: 0; color: var(--nw2-ink); }
.nw2-h2-sm { font-size: 32px; }
.nw2-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.nw2-updated { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--nw2-dim); }
.nw2-updated .nw2-livedot { width: 9px; height: 9px; }
.nw2-section-lede { font-size: 18px; color: var(--nw2-muted-2); margin: 0 0 28px; max-width: 760px; }

/* ---- Amount control ---- */
.nw2-amount { background: var(--nw2-surface); border: 1px solid var(--nw2-border); border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.nw2-amount .lbl { font-size: 17px; font-weight: 700; color: var(--nw2-ink); }
.nw2-amount .opts { display: flex; gap: 10px; flex-wrap: wrap; }
.nw2-amount .hint { font-size: 16px; color: var(--nw2-dim); margin-left: auto; }
.nw2-seg { font-size: 17px; font-weight: 700; padding: 11px 18px; border-radius: 9px; cursor: pointer; font-family: var(--nw2-sans); transition: all .12s ease; background: var(--nw2-bg); color: var(--nw2-muted); border: 1px solid var(--nw2-border); }
.nw2-seg:hover { border-color: var(--nw2-teal); }
.nw2-seg.active { background: var(--nw2-teal); color: #fff; border-color: var(--nw2-teal); }

/* ---- Comparison table ---- */
.nw2-cols { display: grid; grid-template-columns: 54px minmax(190px,1.5fr) 158px 192px minmax(170px,1.3fr) 134px 156px; gap: 18px; }
.nw2-colhead { padding: 0 24px 10px; font-size: 13.5px; font-weight: 700; color: var(--nw2-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.nw2-row { background: var(--nw2-surface); border: 1px solid var(--nw2-border); border-radius: 16px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(20,40,60,0.04); transition: transform .15s ease, box-shadow .15s ease; }
.nw2-row:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(20,40,60,0.13); }
.nw2-row.top { border: 2px solid var(--nw2-gold); box-shadow: 0 14px 36px rgba(150,110,30,0.16); }
.nw2-ribbon { background: var(--nw2-gold); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 24px; display: flex; align-items: center; gap: 9px; }
.nw2-rowgrid { align-items: center; padding: 22px 24px; }
.nw2-rank { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; background: #f0ece2; color: #8a7d63; }
.nw2-rank.top { background: var(--nw2-gold); color: #fff; }
.nw2-bankcell { display: flex; align-items: center; gap: 14px; }
.nw2-initials { width: 52px; height: 52px; border-radius: 12px; background: #eef2f6; color: #2a4a63; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #e2e8ee; }
.nw2-bankname { font-size: 19px; font-weight: 700; color: var(--nw2-ink); line-height: 1.2; }
.nw2-bankland { font-size: 15px; color: var(--nw2-dim); }
.nw2-rate { display: flex; align-items: baseline; gap: 5px; }
.nw2-rate .num { font-family: var(--nw2-serif); font-size: 34px; font-weight: 700; line-height: 1; color: var(--nw2-teal); }
.nw2-rate .num.top { color: var(--nw2-green); font-size: 40px; }
.nw2-rate .pct { font-size: 17px; font-weight: 700; color: var(--nw2-muted-2); }
.nw2-kond-title { font-size: 16px; font-weight: 700; color: var(--nw2-ink); }
.nw2-kond-sub { font-size: 15px; color: var(--nw2-muted-2); margin-top: 1px; }
.nw2-kond-danach { font-size: 14px; color: var(--nw2-faint); margin-top: 3px; }
.nw2-schutz { display: flex; align-items: flex-start; gap: 9px; }
.nw2-schutz .chk { width: 22px; height: 22px; border-radius: 50%; background: var(--nw2-green-bg); color: var(--nw2-green); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.nw2-schutz .amt { font-size: 16px; font-weight: 700; color: var(--nw2-ink); }
.nw2-schutz .land { font-size: 14.5px; color: var(--nw2-dim); line-height: 1.35; }
.nw2-zins .v { font-size: 20px; font-weight: 800; color: var(--nw2-green); }
.nw2-zins .k { font-size: 14px; color: var(--nw2-faint); }
.nw2-colhead-label { display: none; }
.nw2-disclaim { font-size: 15px; color: var(--nw2-faint); margin: 22px 4px 0; line-height: 1.6; max-width: 900px; }

/* ---- Trust strip ---- */
.nw2-trustgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.nw2-trustcard { background: var(--nw2-surface); border: 1px solid var(--nw2-border); border-radius: 16px; padding: 28px 24px; }
.nw2-trustcard .ic { width: 48px; height: 48px; border-radius: 12px; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.nw2-trustcard .ic.green { background: var(--nw2-green-bg); color: var(--nw2-green); }
.nw2-trustcard .ic.blue { background: var(--nw2-blue-bg); color: var(--nw2-blue); }
.nw2-trustcard .ic.gold { background: var(--nw2-gold-bg); color: var(--nw2-gold); }
.nw2-trustcard .ic.teal { background: #eef2f6; color: var(--nw2-teal); }
.nw2-trustcard .t { font-size: 19px; font-weight: 700; color: var(--nw2-ink); margin-bottom: 7px; }
.nw2-trustcard .d { font-size: 16px; color: var(--nw2-muted-2); line-height: 1.5; }
.nw2-center { text-align: center; }
.nw2-mb-lg { margin-bottom: 38px; }

/* ---- Festgeld teaser ---- */
.nw2-teaser { background: var(--nw2-teal); border-radius: 20px; padding: 42px 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; color: #fff; }
.nw2-teaser h2 { font-family: var(--nw2-serif); color: #fff; font-size: 30px; margin: 0 0 14px; }
.nw2-teaser .eyebrow { font-size: 14px; font-weight: 800; color: var(--nw2-gold-dark); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.nw2-teaser p { font-size: 18px; color: #bcd0df; margin: 0 0 24px; line-height: 1.55; }
.nw2-teaser-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 26px; }
.nw2-teaser-card .k { font-size: 15px; color: #bcd0df; margin-bottom: 4px; }
.nw2-teaser-card .rate { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 18px; }
.nw2-teaser-card .rate .num { font-family: var(--nw2-serif); font-size: 52px; font-weight: 700; color: #fff; line-height: 1; }
.nw2-teaser-card .rate .pa { font-size: 22px; font-weight: 700; color: var(--nw2-gold-dark); padding-bottom: 7px; }
.nw2-teaser-card .d { font-size: 16px; color: #bcd0df; line-height: 1.5; }

/* ---- Rechner + News cards ---- */
.nw2-grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.nw2-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nw2-rcard { background: var(--nw2-surface); border: 1px solid var(--nw2-border); border-radius: 16px; padding: 26px; text-decoration: none; display: block; transition: border-color .15s ease, box-shadow .15s ease; }
.nw2-rcard:hover { border-color: var(--nw2-gold); box-shadow: 0 10px 26px rgba(20,40,60,0.08); }
.nw2-rcard .t { font-size: 19px; font-weight: 700; color: var(--nw2-ink); margin-bottom: 8px; }
.nw2-rcard .d { font-size: 16px; color: var(--nw2-muted-2); line-height: 1.5; margin-bottom: 16px; }
.nw2-rcard .go { font-size: 16px; font-weight: 700; color: var(--nw2-blue); }
.nw2-ncard { background: var(--nw2-surface); border: 1px solid var(--nw2-border); border-radius: 14px; padding: 24px 26px; text-decoration: none; display: flex; gap: 20px; align-items: center; justify-content: space-between; transition: border-color .15s ease, box-shadow .15s ease; }
.nw2-ncard:hover { border-color: var(--nw2-gold); box-shadow: 0 8px 22px rgba(20,40,60,0.07); }
.nw2-ncard .tag { font-size: 14px; font-weight: 700; color: var(--nw2-blue); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 7px; }
.nw2-ncard .t { font-size: 19px; font-weight: 700; color: var(--nw2-ink); line-height: 1.3; }
.nw2-ncard .arr { font-size: 22px; color: var(--nw2-gold); flex-shrink: 0; }

/* ---- Footer ---- */
.nw2-footer { background: var(--nw2-teal); color: #a9c0d2; }
.nw2-footer-inner { max-width: var(--nw2-maxw); margin: 0 auto; padding: 48px 24px 40px; }
.nw2-footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.nw2-footer-brand { max-width: 360px; }
.nw2-footer-brand .logo { font-family: var(--nw2-serif); font-weight: 700; font-size: 24px; color: #fff; margin-bottom: 12px; }
.nw2-footer-brand .logo .plus { color: var(--nw2-gold-dark); }
.nw2-footer-brand p { font-size: 16px; line-height: 1.6; margin: 0; }
.nw2-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.nw2-footer-col .h { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.nw2-footer-col .links { display: flex; flex-direction: column; gap: 11px; font-size: 16px; }
.nw2-footer-col a { color: #a9c0d2; text-decoration: none; }
.nw2-footer-col a:hover { color: #fff; }
.nw2-footer-legal { font-size: 13.5px; color: #7d96aa; line-height: 1.6; margin: 24px 0 0; max-width: 900px; }

[x-cloak] { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .nw2-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .nw2-teaser { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .nw2-trustgrid { grid-template-columns: repeat(2,1fr); }
  .nw2-grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nw2-nav { display: none; }
  .nw2-h1 { font-size: 38px; }
  .nw2-lede { font-size: 19px; }
  .nw2-h2 { font-size: 30px; }
  /* Table -> stacked cards */
  .nw2-colhead { display: none; }
  .nw2-rowgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .nw2-rowgrid .nw2-rank { grid-column: 1 / 2; }
  .nw2-bankcell { grid-column: 1 / -1; }
  .nw2-rowcta { grid-column: 1 / -1; }
  .nw2-colhead-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--nw2-faint); margin-bottom: 3px; }
}
@media (max-width: 560px) {
  .nw2-trustgrid, .nw2-grid3, .nw2-grid2 { grid-template-columns: 1fr; }
  .nw2-rowgrid { grid-template-columns: 1fr; }
  .nw2-h1 { font-size: 32px; }
  .nw2-trustbar-inner { gap: 14px; }
}
