:root {
  --ink: #20211f;
  --muted: #6e665c;
  --line: #e9e1d7;
  --paper: #fffdf8;
  --soft: #f7f3ed;
  --forest: #8f6c36;
  --forest-2: #b89254;
  --gold: #b89254;
  --clay: #8f6c36;
  --blue: #385f7c;
  --radius: 8px;
  --ease-apple: cubic-bezier(.2, .8, .2, 1);
  --speed-apple: .42s;
  --shadow: 0 20px 60px rgba(56, 43, 25, 0.1);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .45) 0%, rgba(247, 243, 237, .44) 48%, rgba(243, 240, 235, .46) 100%),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2200&q=80") center bottom / cover fixed no-repeat;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; transition: color var(--speed-apple) var(--ease-apple), transform var(--speed-apple) var(--ease-apple), opacity var(--speed-apple) var(--ease-apple); }
img, svg { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--forest); color: white; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }
.site-header, .site-footer, main { width: min(1480px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
  border: 1px solid rgba(223, 228, 221, 0.85);
  border-bottom: 0;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
  transition: width var(--speed-apple) var(--ease-apple), top var(--speed-apple) var(--ease-apple), border-radius var(--speed-apple) var(--ease-apple), box-shadow var(--speed-apple) var(--ease-apple), background-color var(--speed-apple) var(--ease-apple);
}
.site-header.is-floating {
  top: 14px;
  width: min(1120px, calc(100% - 32px));
  border: 1px solid rgba(223, 228, 221, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 50px rgba(56, 43, 25, .13);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Libre Baskerville", Georgia, serif; font-size: 15px; text-transform: uppercase; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: white; font: 800 11px/1 Inter, sans-serif; }
.main-nav { display: flex; gap: clamp(18px, 3vw, 48px); font-size: 14px; font-weight: 700; color: #30352f; }
.main-nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 20px 2px no-repeat,
    transparent;
  cursor: pointer;
  font-size: 0;
  transition: transform var(--speed-apple) var(--ease-apple), opacity var(--speed-apple) var(--ease-apple), background-color var(--speed-apple) var(--ease-apple);
}
.nav-toggle:hover { transform: scale(1.08); }
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle span { top: 23px; }
.nav-toggle::before { top: 16px; }
.nav-toggle::after { top: 30px; }
.nav-toggle[aria-expanded="true"] { background: transparent; }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { top: 23px; transform: rotate(-45deg); }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 24px;
  background: linear-gradient(180deg, #caa36a, #a77d43);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 12px 28px rgba(143, 108, 54, 0.22);
  color: white;
  cursor: pointer;
  font: 800 14px/1 Inter, sans-serif;
  transition: transform var(--speed-apple) var(--ease-apple), box-shadow var(--speed-apple) var(--ease-apple), background var(--speed-apple) var(--ease-apple), color var(--speed-apple) var(--ease-apple);
}
.button:hover { background: linear-gradient(180deg, #d1ad77, #966c36); transform: scale(1.04); box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 16px 34px rgba(143, 108, 54, 0.26); }
.button-small { min-height: 42px; padding-inline: 18px; }
.button-quiet { background: #e9eee7; color: var(--ink); }
.full-width { width: 100%; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest); font-weight: 800; }
.home-hero {
  position: relative;
  min-height: clamp(580px, 72vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(223, 228, 221, 0.85);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255,253,248,.98) 0%, rgba(255,253,248,.88) 39%, rgba(255,253,248,.14) 73%);
}
.home-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.home-hero-copy { position: relative; z-index: 1; width: min(590px, 90%); padding: clamp(70px, 8vw, 122px) 0 clamp(70px, 8vw, 110px) clamp(32px, 8vw, 120px); }
.eyebrow { margin: 0 0 12px; color: var(--clay); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Libre Baskerville", Georgia, serif; line-height: 1.12; letter-spacing: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(38px, 5vw, 68px); }
h2 { margin-bottom: 14px; font-size: clamp(28px, 3.1vw, 44px); }
h3 { margin-bottom: 8px; font-size: 18px; }
.home-hero-copy > p:not(.eyebrow), .page-hero p { max-width: 580px; color: #4f564e; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 30px; }
.content-shell { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.reveal-item {
  opacity: 0;
  transform: translateY(22px) scale(.992);
  transition:
    opacity .56s var(--ease-apple) var(--reveal-delay, 0ms),
    transform .56s var(--ease-apple) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.home-hero-copy.reveal-item,
.planner-section.reveal-item,
.site-footer.reveal-item {
  transform: translateY(14px);
}
.article-list a.reveal-item:nth-child(odd) {
  transform: translateX(-26px);
}
.article-list a.reveal-item:nth-child(even) {
  transform: translateX(26px);
}
.home-hero-copy.reveal-item.is-visible,
.planner-section.reveal-item.is-visible,
.site-footer.reveal-item.is-visible,
.article-list a.reveal-item.is-visible {
  transform: translateY(0);
}
.article-list a.reveal-item.is-visible:hover {
  transform: scale(1.025);
}
.home-intro {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: end;
  margin-bottom: 42px;
}
.home-intro p:last-child { margin-bottom: 0; color: var(--muted); font-size: 17px; }
.card-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card, .article-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform var(--speed-apple) var(--ease-apple), box-shadow var(--speed-apple) var(--ease-apple), border-color var(--speed-apple) var(--ease-apple), background-color var(--speed-apple) var(--ease-apple);
  transform-origin: center;
}
.article-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 330px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(180deg, rgba(32, 33, 31, .03) 0%, rgba(32, 33, 31, .76) 100%),
    var(--article-image);
  background-size: cover;
  background-position: center;
  color: white;
}
.article-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,253,248,.16), rgba(32,33,31,.68));
  content: "";
}
.article-card:nth-child(1) { --article-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1100&q=80"); }
.article-card:nth-child(2) { --article-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1100&q=80"); }
.article-card:nth-child(3) { --article-image: url("https://images.unsplash.com/photo-1553729459-efe14ef6055d?auto=format&fit=crop&w=1100&q=80"); }
.article-card:nth-child(4) { --article-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1100&q=80"); }
.article-card:nth-child(5) { --article-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1100&q=80"); }
.article-card:nth-child(6) { --article-image: url("https://images.unsplash.com/photo-1565514020179-026b92b84bb6?auto=format&fit=crop&w=1100&q=80"); }
.article-card:nth-child(7) { --article-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1100&q=80"); }
.card:hover, .article-card:hover { border-color: rgba(36, 72, 58, .4); box-shadow: 0 20px 48px rgba(31, 46, 39, .12); transform: scale(1.025); }
.card span { color: var(--gold); font-weight: 800; }
.card p, .article-card p, .form-note { color: var(--muted); }
.article-card .eyebrow,
.article-card p { color: rgba(255, 255, 255, .82); }
.article-card h2 { color: white; }
.article-card h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(20px, 1.4vw, 25px);
  line-height: 1.22;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.article-card p,
.article-list a,
.card h3,
.card p,
.steps h3,
.steps p,
.timeline span {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.article-list { display: grid; gap: 12px; }
.article-list a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(233, 225, 215, .72);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .68);
  backdrop-filter: blur(8px);
  transition: transform var(--speed-apple) var(--ease-apple), box-shadow var(--speed-apple) var(--ease-apple), border-color var(--speed-apple) var(--ease-apple), background-color var(--speed-apple) var(--ease-apple);
  transform-origin: center;
}
.article-list a:hover {
  border-color: rgba(36, 72, 58, .34);
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 18px 42px rgba(31, 46, 39, .11);
  transform: scale(1.025);
}
.article-list span { color: var(--muted); font-size: 14px; }
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 124px) 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,253,248,.98) 0%, rgba(255,253,248,.9) 46%, rgba(255,253,248,.24) 100%),
    url("https://zukunftskasse.de/assets/zukunftskasse-hero.png") 72% center / cover no-repeat;
}
.page-hero .content-shell {
  position: relative;
  z-index: 1;
}
.planner-section { padding: clamp(64px, 8vw, 108px) 0; border-radius: var(--radius); background: linear-gradient(180deg, rgba(248,250,246,.66), rgba(255,253,248,.64)); overflow: hidden; }
.planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .78fr); gap: clamp(32px, 7vw, 96px); align-items: center; width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.calculator, .lead-form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.74); box-shadow: 0 16px 46px rgba(31, 46, 39, .08); }
.calculator-intro { color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 8px; margin-top: 18px; font-weight: 800; color: #2f352f; }
input, select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 11px 13px;
  color: var(--ink);
  font: inherit;
  transition: border-color var(--speed-apple) var(--ease-apple), outline-color var(--speed-apple) var(--ease-apple), background-color var(--speed-apple) var(--ease-apple), box-shadow var(--speed-apple) var(--ease-apple);
}
input:focus, select:focus { outline: 3px solid rgba(56, 102, 87, .18); border-color: var(--forest-2); }
.money-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.money-field input { border: 0; border-radius: 0; }
.money-field span { padding: 0 13px; color: var(--muted); font-weight: 800; }
.consent { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; margin-top: 22px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 500; }
.consent input { width: 18px; min-height: 18px; margin-top: 3px; accent-color: var(--forest); }
.calculator .button.full-width,
.lead-form .button.full-width {
  margin: 4px 0 16px;
}
.calculator .form-note,
.lead-form .form-note {
  margin-bottom: 0;
}
.result { padding: 24px 0; }
.result h2 { font-family: Inter, sans-serif; font-size: clamp(36px, 5vw, 58px); font-weight: 700; }
.result p, .result dt { color: var(--muted); }
.result dl { display: grid; gap: 12px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.result dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(223, 228, 221, .72); padding-bottom: 12px; }
.result dd { margin: 0; font-weight: 800; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr); gap: clamp(32px, 7vw, 90px); align-items: start; }
.lead-section { padding: clamp(64px, 8vw, 108px) 0; background: var(--soft); border-top: 1px solid var(--line); }
.article-body { max-width: 820px; padding: clamp(54px, 7vw, 92px) 0; }
.article-body .lead { color: #3c453d; font-size: 20px; }
.article-body h2 { margin-top: 38px; font-size: clamp(24px, 2.4vw, 34px); }
.article-body a { color: var(--forest); font-weight: 800; }
.callout { margin-top: 44px; padding: 28px; border: 1px solid rgba(36, 72, 58, .22); border-radius: var(--radius); background: #f7faf4; }
.timeline, .steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline div, .steps div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.timeline strong, .steps strong { color: var(--forest); }
.video-placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(260px, 42vw, 520px);
  padding: 40px;
  border-radius: var(--radius);
  background: #15241e;
  color: white;
  text-align: center;
}
.video-placeholder span { font: 800 clamp(40px, 8vw, 84px)/1 Inter, sans-serif; }
.video-placeholder p { max-width: 520px; color: rgba(255,255,255,.72); }
.legal { color: #30362f; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, .8fr) minmax(180px, .5fr);
  gap: 30px;
  padding: 42px;
  border: 1px solid rgba(223, 228, 221, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 -12px 42px rgba(56, 43, 25, .08);
  color: var(--muted);
  font-size: 14px;
}
.footer-brand { margin-bottom: 14px; color: var(--ink); }
.site-footer nav, .footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform-origin: left center;
}
.footer-contact a:hover { transform: scale(1.035); }
.contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gold);
}
.contact-icon-whatsapp { color: #25d366; }
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: min(520px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.cookie-banner div { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-banner p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) {
  .card-grid, .article-grid, .home-intro, .planner, .split, .site-footer { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { padding-inline: 20px; }
  .main-nav { position: absolute; left: 0; right: 0; top: 73px; display: none; grid-template-columns: 1fr; gap: 0; padding: 12px 20px 20px; border: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (min-width: 1280px) {
  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .site-header, .site-footer, main { width: 100%; }
  .button-small { display: none; }
  .home-hero { min-height: 650px; border-inline: 0; }
  .home-hero::after { background: linear-gradient(180deg, rgba(255,253,248,.98) 0%, rgba(255,253,248,.82) 49%, rgba(255,253,248,.24) 100%); }
  .home-hero-copy { width: 100%; padding: 46px 22px 290px; }
  .page-hero {
    padding: 86px 0 210px;
    border-inline: 0;
    background:
      linear-gradient(180deg, rgba(255,253,248,.98) 0%, rgba(255,253,248,.88) 58%, rgba(255,253,248,.28) 100%),
      url("https://zukunftskasse.de/assets/zukunftskasse-hero.png") 70% bottom / cover no-repeat;
  }
  .field-grid, .steps, .timeline { grid-template-columns: 1fr; }
  .content-shell, .planner { width: min(100% - 34px, 1120px); }
  .site-footer { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-header {
    transition: none;
  }
}
