/* Rønde Sparekasses Fond — multi-page static styles
   Shared by index.html and the 6 sub-pages. */

/* Titillium Web is self-hosted on purpose: loading it from fonts.gstatic.com
   sends the visitor's IP to Google on every page view, which would make this a
   third-party transfer and cost us the "necessary cookies only, no banner"
   position. Only the three weights the stylesheet uses (400/600/700) ship.
   Both subsets are declared with their unicode-range, exactly as Google serves
   them, so a Danish page fetches only the 3 latin files (~36 KB) and the
   latin-ext files are pulled solely if an article ever needs a glyph outside
   Latin-1. Titillium Web is SIL OFL, so redistributing it is permitted. */

/* latin */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/titillium-web-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/titillium-web-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/titillium-web-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/titillium-web-600-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/titillium-web-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/titillium-web-700-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #e2001a;
  --brand-dark: #b8001a;
  --brand-darker: #8a0014;
  --ink: #222;
  --ink-soft: #333;
  --muted: #777;
  --bg: #fff;
  --bg-alt: #f1f1f1;
  --border: #eee;
  --border-strong: #d9d9d9;
  --radius: 5px;
  --max: 1180px;
  --sans: "Titillium Web", "Titillium regular", Arial, Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .6em;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .8em; }
h3 { font-size: 1.05rem; }
h4 { font-size: .85rem; letter-spacing: .06em; color: var(--ink); }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 600;
  color: var(--brand); margin: 0 0 1rem;
}
.eyebrow.light { color: #ffb3bb; }
.muted { color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: .85rem;
  border-radius: var(--radius);
  letter-spacing: .04em;
}
.brand-name { font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; }

.menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu a {
  color: var(--ink); font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em;
  font-weight: 400;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.menu a:hover { text-decoration: none; border-bottom-color: var(--brand); }
.menu a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.menu a.cta {
  background: var(--brand); color: #fff;
  padding: 9px 18px; border-radius: var(--radius);
  border-bottom: 0;
}
.menu a.cta:hover { background: var(--brand-dark); }
.menu a.cta[aria-current="page"] {
  background: var(--brand-dark);
  color: #fff;
  border-bottom: 0;
}

.menu-toggle, .menu-icon { display: none; }

.hero {
  position: relative;
  color: #fff;
  min-height: 70vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: #222;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(34,34,34,.78) 0%, rgba(34,34,34,.5) 60%, rgba(34,34,34,.25) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 96px 24px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lede { color: #f1f1f1; max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 1rem; font-weight: 400;
  font-family: var(--sans);
  text-transform: uppercase; letter-spacing: .04em;
  transition: background .15s ease, color .15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.btn-dark { background: #222; color: #fff; }
.btn-dark:hover { background: #000; text-decoration: none; color: #fff; }

.link-arrow { font-weight: 600; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; }
.link-arrow::after { content: " \2192"; transition: transform .15s; display: inline-block; }
.link-arrow:hover::after { transform: translateX(3px); }

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.mt-xl { margin-top: 56px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.figure img { border-radius: var(--radius); }

.timeline { display: grid; gap: 24px; margin-top: 32px; }
.tl-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-strong);
}
.tl-item:last-child { border-bottom: 0; }
.tl-year {
  font-size: 1.6rem;
  color: var(--brand);
  font-weight: 700;
}
.tl-body h3 { margin-bottom: .3em; }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 32px;
}
.card {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
}
.card-num {
  font-size: 2.4rem;
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}
.card-num small { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.card h3 { margin-bottom: .3em; }

/* Image-on-top card variant — used on landing for sub-page teasers */
.card-image {
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.card-image .card-thumb {
  width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.card-image .card-body {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column; flex: 1;
}
.card-image .card-body p { flex: 1; }
.card-image .card-body .link-arrow { margin-top: 8px; align-self: flex-start; }

.panel { padding: 36px; border-radius: var(--radius); }
.panel h3 { font-size: 1.25rem; margin-bottom: .6em; }
.panel-positive { background: #fff5f6; border: 1px solid #f5cdd2; }
.panel-negative { background: #fff; border: 1px solid var(--border-strong); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px solid var(--border); text-transform: none; font-size: .95rem; }
.check-list li:last-child { border-bottom: 0; }
.check-list.neg li::before {
  content: "\00D7";
  position: absolute; left: 0; top: 6px;
  color: var(--brand); font-weight: 700; font-size: 1.3rem;
}

.section-image {
  position: relative;
  padding: 120px 0;
  color: #fff;
  overflow: hidden;
}
.section-image .bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.section-image .bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(34,34,34,.7), rgba(34,34,34,.3));
  z-index: 1;
}
.section-image .container { position: relative; z-index: 2; }
.panel-light {
  background: #fff;
  color: var(--ink-soft);
  padding: 48px;
  max-width: 640px;
  border-radius: var(--radius);
}
.panel-light h2 { margin-bottom: .4em; }

.people {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 32px;
}
.person {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.avatar {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  letter-spacing: .04em;
}
img.avatar { width: 132px; height: auto; margin: 0 auto 16px; display: block; border-radius: var(--radius); border: 1px solid var(--brand); background: #fff; }
.person h3 { margin-bottom: .2em; font-size: 1rem; }
.person .role { color: var(--brand); font-weight: 600; font-size: .8rem; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; }
.person .city { color: var(--muted); font-size: .85rem; margin: 0; text-transform: none; }
.subhead { margin-top: 56px; font-size: 1.15rem; }

.section-cta {
  background: var(--brand);
  color: #fff;
  padding: 88px 0;
}
.section-cta h2 { color: #fff; }
.cta-box { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-box p { color: #fff2f3; }
.cta-box .hero-cta { justify-content: center; }

/* Sub-page header band (replaces hero on sub-pages) */
.page-header {
  background: var(--brand);
  color: #fff;
  padding: 72px 0 64px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-header .container { width: 100%; }
.page-header h1 { color: #fff; margin-bottom: .25em; }
.page-header .lede { color: #ffe3e6; max-width: 60ch; }
.page-header .eyebrow { color: #ffb3bb; }

.site-footer {
  background: #222;
  color: #cfcfcf;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.brand-footer .brand-name { color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cfcfcf; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #383838;
  margin-top: 40px;
  padding-top: 24px;
  font-size: .85rem;
  color: #999;
}

/* The collapsed menu has to appear as soon as the horizontal nav stops fitting.
   Brand wordmark plus 6 items needs about 900px, so these rules used to sit in
   the 640px block and left every width from 641-900px (tablets, small laptops,
   phones in landscape) with a nav that overflowed the viewport and clipped the
   "Søg støtte" button off the right edge. */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 56px 0; }
  .page-header { padding: 56px 0 48px; min-height: auto; }

  .menu {
    display: none;
    position: absolute; top: 70px; right: 0;
    background: #fff; flex-direction: column;
    width: 100%; padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .menu-toggle:checked ~ .menu { display: flex; }

  /* The checkbox must be focusable here, not display:none. A hidden checkbox
     cannot take focus and a <label> is not focusable either, so with
     display:none a keyboard user could not open this menu at all — no
     navigation below 900px, including "Søg støtte". Offscreen-but-visible
     keeps native keyboard operation (space toggles) with no JavaScript, so
     navigation still works if a script fails to load. */
  .menu-toggle {
    display: block;
    position: absolute;
    width: 1px; height: 1px;
    margin: 0; padding: 0;
    opacity: 0;
    pointer-events: none;
  }
  /* Focus lands on the invisible checkbox, so the ring has to be drawn on the
     label the user actually sees. */
  .menu-toggle:focus-visible ~ .menu-icon {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
  }
  .menu-icon {
    display: inline-block;
    width: 28px; height: 22px;
    position: relative; cursor: pointer;
  }
  .menu-icon span {
    display: block; position: absolute; left: 0;
    width: 100%; height: 2px; background: var(--ink);
    border-radius: 2px;
  }
  .menu-icon span:nth-child(1) { top: 0; }
  .menu-icon span:nth-child(2) { top: 10px; }
  .menu-icon span:nth-child(3) { top: 20px; }
}

@media (max-width: 640px) {
  /* Only drop the wordmark on real phones — a tablet has room for it. */
  .brand-name { display: none; }
  .people { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel-light { padding: 28px; }
  .panel { padding: 24px; }
  .hero-content { padding: 64px 24px; }
}

/* Front-page full-bleed image banner with bottom-anchored CTA */
.home-banner { position: relative; }
.home-banner > img { display: block; width: 100%; height: clamp(300px, 34vw, 440px); object-fit: cover; object-position: center 38%; filter: brightness(1.12) saturate(1.32) contrast(1.03) hue-rotate(12deg); }
.home-banner-cta { position: absolute; left: 0; right: 0; bottom: 36px; }
.home-banner-cta .container { display: flex; gap: 14px; flex-wrap: wrap; }
.home-banner-cta .btn { padding: 14px 30px; font-size: 1.05rem; }
@media (max-width: 640px) {
  .home-banner > img { height: 380px; object-fit: cover; }
  .home-banner-cta { bottom: 24px; }
  .home-banner-cta .btn { padding: 12px 24px; font-size: 1rem; }
}
