/* geldabgreifen.de on felt (felt/felt.css brings the board, patches, buttons and
   fonts). Every page: the title on a strip of dark felt, the footer on another.
   The topic pages pin their Förderungen on the board as patches; Ratgeber,
   Datenschutz and Impressum set their text on paper for reading. */

:root {
  /* the dark green of good news on pale cloth, also used by the page scripts */
  --accent: var(--good);
  --paper: rgba(250, 244, 228, .72);
  /* each topic page names its swatch with a class on <body> */
  --topic: #6fd3ac;
  --topic-lo: #59a98a;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: rgba(17, 13, 8, .55); }
}
.topic-steuern  { --topic: #9ed0e6; --topic-lo: #7ea6b8; }
.topic-familie  { --topic: #6fd3ac; --topic-lo: #59a98a; }
.topic-wohnen   { --topic: #f6d03e; --topic-lo: #c4a62f; }
.topic-vorsorge { --topic: #f17fa8; --topic-lo: #c16686; }
.topic-bildung  { --topic: #b79ae8; --topic-lo: #927ba9; }
/* on Wohnen, what renters can get too */
.b-card.green   { --topic: #7bc96f; --topic-lo: #62a159; }

* { margin: 0; padding: 0; }
body { line-height: 1.6; }

/* ---------------- strips ---------------- */

.page-header,
.header {
  padding: 30px 20px 34px;
  text-align: center;
}
.page-header h1,
.header h1 {
  max-width: 760px;
  margin: 0 auto 6px;
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
  font-variation-settings: 'wght' 800;
  font-weight: 800;
  line-height: 1.25;
  color: var(--thread);
  text-wrap: balance;
}
.page-header p,
.header p {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--thread-soft);
}
.page-header a { color: var(--thread); text-underline-offset: 3px; }

.site-footer {
  margin-top: 74px;
  padding: 30px 16px 36px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.9;
  color: var(--thread-soft);
}
.site-footer a { color: var(--thread); text-underline-offset: 3px; }
.site-footer .topnav { justify-content: center; margin-top: 16px; font-family: var(--font-felt); }
.site-footer .topnav a { text-decoration: none; }
.footer-bmc { margin-top: 18px; }
.site-footer .bmc-btn { color: #000; }

/* ---------------- topic pages ---------------- */

.content {
  max-width: 800px;
  margin: 46px auto 0;
  padding: 0 20px;
}
.content > p { margin-bottom: 1.4rem; font-size: 1.02rem; line-height: 1.7; }
.content h2 {
  margin: 2.6rem 0 1.1rem;
  font-size: 1.4rem;
  font-variation-settings: 'wght' 800;
  font-weight: 800;
  line-height: 1.3;
}

.benefit-list { display: grid; gap: 22px; }

.b-card { padding: 22px 26px 24px; }
.b-card:nth-child(4n+1) { --tilt: rotate(-.5deg); }
.b-card:nth-child(4n+3) { --tilt: rotate(.4deg); }
.b-card h3 { margin-bottom: 2px; font-size: 1.12rem; font-variation-settings: 'wght' 800; font-weight: 800; line-height: 1.3; }
.b-card .b-amount { margin-bottom: 8px; font-size: 1rem; font-variation-settings: 'wght' 800; font-weight: 800; color: var(--good); }
.b-card p { margin-bottom: 8px; font-family: var(--font-mono); font-size: .78rem; line-height: 1.65; }
.b-card p:last-child { margin-bottom: 0; }
/* who it's for: a little tag in the page's swatch */
.b-card .b-who {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 8px;
  border: 1.5px dashed var(--topic-lo);
  background-color: var(--topic);
  background-image: var(--fiber);
  background-size: var(--fiber-size);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .14);
  font-size: .74rem;
  font-variation-settings: 'wght' 700;
  font-weight: 700;
}
.b-card .b-tip {
  display: block;
  margin-top: 10px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.6;
}

/* links to the other topics: pills on the board */
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; }
.nav-links a {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px dashed var(--rule);
  color: var(--ink);
  font-size: .84rem;
  font-variation-settings: 'wght' 700;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { background-color: var(--felt-mustard); border-color: var(--felt-mustard); color: var(--navy); }

/* back to the Fördercheck: a mustard patch, like lucabosch.com's about */
.cta-box {
  --card-bg: var(--felt-mustard);
  --card-border: var(--felt-mustard-lo);
  --tilt: rotate(-.6deg);
  margin: 46px 0 8px;
  padding: 28px 24px 30px;
  text-align: center;
}
.cta-box p { margin-bottom: 16px; font-size: 1.08rem; font-variation-settings: 'wght' 700; font-weight: 700; }

.back-link {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------------- Ratgeber overview ---------------- */

.intro-text { max-width: 700px; font-size: 1.05rem; line-height: 1.7; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px 26px;
  margin-top: 32px;
}
.article-card { display: block; padding: 24px 24px 26px; text-decoration: none; }
.article-card:nth-child(3n+1) { --tilt: rotate(-.8deg); }
.article-card:nth-child(3n+2) { --tilt: rotate(.6deg); }
.article-card .tag { margin-bottom: 12px; }
.article-card h2 { margin: 0 0 8px; font-size: 1.12rem; font-variation-settings: 'wght' 800; font-weight: 800; line-height: 1.3; }
.article-card p { font-family: var(--font-mono); font-size: .76rem; line-height: 1.6; }
.article-card .read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: .86rem;
  font-variation-settings: 'wght' 700;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------------- reading pages: text on paper ---------------- */

/* Set for reading, like lucabosch.com's imprint and privacy policy */
.content.paper {
  max-width: 46rem;
  padding: 10px 28px 28px;
  border-radius: 14px;
  background: var(--paper);
  font-size: 1.02rem;
}
.paper h2 { margin: 2.2rem 0 .5rem; font-size: 1.3rem; }
.paper h3 { margin: 1.5rem 0 .3rem; font-size: 1.08rem; font-variation-settings: 'wght' 700; font-weight: 700; }
.paper > p,
.paper li { margin-bottom: .8rem; font-size: 1.02rem; line-height: 1.7; }
.paper ul,
.paper ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.paper code { font-family: var(--font-mono); font-size: .85em; }
.paper a:not(.btn) {
  color: inherit;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* boxes in an article: small patches pinned on the paper */
.highlight-box,
.warning-box,
.verdict-box,
.calc-box,
.benefit-box { margin: 26px 0; padding: 20px 24px 22px; }
.highlight-box p,
.warning-box p,
.verdict-box p,
.calc-box p,
.benefit-box p { margin-bottom: 6px; font-family: var(--font-mono); font-size: .78rem; line-height: 1.65; }
.highlight-box p:last-child,
.warning-box p:last-child,
.verdict-box p:last-child { margin-bottom: 0; }
.highlight-box { --card-bg: #6fd3ac; --card-border: #59a98a; }
.warning-box { --card-bg: #f6d03e; --card-border: #c4a62f; --tilt: rotate(-.4deg); }
.verdict-box.pro { --card-bg: #7bc96f; --card-border: #62a159; }
.verdict-box.con { --card-bg: #f17fa8; --card-border: #c16686; }
.verdict-box h4,
.benefit-box h4 { margin-bottom: 4px; font-size: 1rem; font-variation-settings: 'wght' 800; font-weight: 800; }
.calc-box h4 { margin-bottom: 8px; font-size: .74rem; font-variation-settings: 'wght' 700; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.calc-box .result,
.benefit-box .amount { font-family: var(--font-felt); font-size: 1.08rem; font-variation-settings: 'wght' 800; font-weight: 800; color: var(--good); }
.calc-box .result { margin-top: 10px; }

@media (max-width: 560px) {
  .content.paper { margin: 26px 12px 0; padding: 4px 16px 18px; }
  .b-card { padding: 20px 20px 22px; }
}
