/* Energiepuls — data-journalism style advertorial. Unique class prefix: ep- */

:root {
  --ep-ink:       #1f2a24;
  --ep-terracotta:#a84a26;
  --ep-terracotta-d:#8a3c1e;
  --ep-ochre:     #d99a34;
  --ep-teal:      #1d4b43;
  --ep-teal-d:    #123530;
  --ep-cream:     #e9efe6;
  --ep-paper:     #f9fbf7;
  --ep-line:      #cdd6c8;
  --ep-body:      #3d3833;
  --ep-muted:     #6e6459;
  --ep-radius:    3px;
  --ep-max:       1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ep-cream);
  color: var(--ep-body);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .ep-serif { font-family: 'Fraunces', Georgia, serif; color: var(--ep-ink); font-weight: 600; }
a { color: var(--ep-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.ep-mono { font-family: 'JetBrains Mono', monospace; }

/* ── Disclosure bar ─────────────────────────────────────────────────── */
.ep-disclosure-bar {
  background: var(--ep-ink);
  color: #cfc6b8;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .03em;
  padding: 6px 12px;
}

/* ── Masthead ────────────────────────────────────────────────────────── */
.ep-masthead {
  background: var(--ep-paper);
  border-bottom: 1px solid var(--ep-line);
}
.ep-masthead-inner {
  max-width: var(--ep-max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ep-wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ep-ink);
  letter-spacing: -.01em;
}
.ep-wordmark em { color: var(--ep-terracotta); font-style: italic; }
.ep-nav a {
  margin-left: 28px;
  color: var(--ep-body);
  font-size: 14.5px;
  font-weight: 500;
}
.ep-nav a:hover { color: var(--ep-terracotta); text-decoration: none; }

/* ── Layout: article + sticky sidebar ───────────────────────────────── */
.ep-layout {
  max-width: var(--ep-max);
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.ep-main { min-width: 0; }
.ep-sidebar { position: sticky; top: 28px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.ep-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0 36px;
}
.ep-kicker {
  color: var(--ep-terracotta);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.ep-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.ep-byline {
  color: var(--ep-muted);
  font-size: 14px;
  margin: 0 0 18px;
}
.ep-hero-lead {
  font-size: 18.5px;
  color: var(--ep-body);
}
.ep-hero-media {
  position: relative;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: var(--ep-radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(31,42,36,.18);
}
.ep-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Stat strip ──────────────────────────────────────────────────────── */
.ep-statstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ep-line);
  border-bottom: 1px solid var(--ep-line);
  margin: 8px 0 40px;
}
.ep-stat {
  padding: 22px 18px;
  text-align: left;
  border-left: 1px solid var(--ep-line);
}
.ep-stat:first-child { border-left: none; }
.ep-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px;
  font-weight: 500;
  color: var(--ep-teal);
  line-height: 1;
  display: block;
}
.ep-stat-label {
  font-size: 13px;
  color: var(--ep-muted);
  margin-top: 6px;
  display: block;
}

/* ── Article typography ──────────────────────────────────────────────── */
.ep-main h2 {
  font-size: 27px;
  margin: 48px 0 16px;
  padding-top: 4px;
}
.ep-main h3 { font-size: 19px; margin: 28px 0 10px; }
.ep-main p { margin: 0 0 18px; }
.ep-main .ep-lede { font-size: 19px; }

.ep-pullquote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 25px;
  line-height: 1.4;
  color: var(--ep-teal-d);
  margin: 36px 0;
  padding-left: 8px;
  position: relative;
}
.ep-pullquote::before {
  content: '„';
  font-size: 64px;
  color: var(--ep-ochre);
  position: absolute;
  left: -38px;
  top: -8px;
  font-style: normal;
  line-height: 1;
}

/* ── Timeline (Förderbausteine) ─────────────────────────────────────── */
.ep-timeline {
  position: relative;
  margin: 28px 0 40px;
  padding-left: 44px;
}
.ep-timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--ep-line);
}
.ep-timeline-item {
  position: relative;
  padding-bottom: 30px;
}
.ep-timeline-item:last-child { padding-bottom: 0; }
.ep-timeline-num {
  position: absolute;
  left: -44px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ep-teal);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-timeline-item h3 { margin-top: 0; margin-bottom: 6px; font-size: 18.5px; }
.ep-timeline-item p { font-size: 15.5px; margin-bottom: 0; color: var(--ep-body); }
.ep-timeline-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ep-terracotta-d);
  background: #f7e9dd;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

/* ── Callout / note box ─────────────────────────────────────────────── */
.ep-note {
  border-left: 3px solid var(--ep-ochre);
  background: #fdf6e9;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 15.5px;
  border-radius: 0 var(--ep-radius) var(--ep-radius) 0;
}
.ep-note strong { color: var(--ep-ink); }

/* ── CTA buttons ─────────────────────────────────────────────────────── */
.ep-cta-block { text-align: center; margin: 40px 0; }
.ep-btn {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 30px;
  border-radius: var(--ep-radius);
  cursor: pointer;
  border: none;
}
.ep-btn-solid { background: var(--ep-terracotta); color: #fff; }
.ep-btn-solid:hover { background: var(--ep-terracotta-d); text-decoration: none; }
.ep-btn-ghost { background: transparent; color: var(--ep-body); border: 1px solid var(--ep-line); }
.ep-btn-ghost:hover { border-color: var(--ep-muted); text-decoration: none; }
.ep-cta-note { font-size: 13px; color: var(--ep-muted); margin-top: 10px; }

/* ── Sidebar card ────────────────────────────────────────────────────── */
.ep-side-card {
  background: var(--ep-paper);
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius);
  padding: 22px;
}
.ep-side-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 16.5px;
  margin: 0 0 12px;
  color: var(--ep-ink);
}
.ep-side-card ul { list-style: none; margin: 0 0 16px; padding: 0; }
.ep-side-card li {
  font-size: 14.5px;
  padding: 8px 0;
  border-top: 1px solid var(--ep-line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ep-side-card li:first-child { border-top: none; }
.ep-side-card li span:last-child { font-family: 'JetBrains Mono', monospace; color: var(--ep-teal); font-weight: 500; }
.ep-side-card .ep-btn { width: 100%; text-align: center; }
.ep-side-note { font-size: 12px; color: var(--ep-muted); margin-top: 10px; }

/* ── FAQ accordion ───────────────────────────────────────────────────── */
.ep-faq-item {
  border-bottom: 1px solid var(--ep-line);
  padding: 16px 0;
}
.ep-faq-item summary {
  font-weight: 600;
  color: var(--ep-ink);
  cursor: pointer;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ep-faq-item summary::-webkit-details-marker { display: none; }
.ep-faq-item summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--ep-terracotta);
  margin-left: 12px;
}
.ep-faq-item[open] summary::after { content: '–'; }
.ep-faq-item p { margin: 12px 0 0; font-size: 15.5px; }

/* ── Disclosure/author box ──────────────────────────────────────────── */
.ep-disclosure-box {
  border-top: 2px solid var(--ep-ink);
  margin-top: 48px;
  padding-top: 18px;
  font-size: 13.5px;
  color: var(--ep-muted);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.ep-footer { background: var(--ep-ink); color: #cfc6b8; margin-top: 40px; }
.ep-footer-inner {
  max-width: var(--ep-max);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ep-footer-brand p { font-size: 13.5px; margin: 10px 0 0; line-height: 1.6; }
.ep-wordmark-footer { color: #fff; font-size: 22px; }
.ep-wordmark-footer em { color: var(--ep-ochre); }
.ep-footer-links { display: flex; flex-direction: column; gap: 8px; }
.ep-footer-links a { color: #cfc6b8; font-size: 14px; }
.ep-footer-links a:hover { color: #fff; }
.ep-footer-legal {
  max-width: var(--ep-max);
  margin: 0 auto;
  padding: 0 24px 28px;
  font-size: 12px;
  color: #8f8878;
  line-height: 1.6;
  border-top: 1px solid #2c3a33;
  padding-top: 16px;
}

/* ── Cookie banner ───────────────────────────────────────────────────── */
.ep-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ep-paper);
  border-top: 1px solid var(--ep-line);
  box-shadow: 0 -6px 24px rgba(31,42,36,.12);
  z-index: 999;
}
.ep-cookie-inner {
  max-width: var(--ep-max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ep-cookie-inner p { margin: 0; font-size: 14px; max-width: 640px; }
.ep-cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.ep-cookie-actions .ep-btn { padding: 10px 20px; font-size: 14px; }

/* ── Simple legal pages ──────────────────────────────────────────────── */
.ep-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.ep-legal h1 { font-size: 32px; margin-bottom: 6px; }
.ep-legal .ep-updated { color: var(--ep-muted); font-size: 13.5px; margin-bottom: 32px; }
.ep-legal h2 { font-size: 20px; margin: 32px 0 12px; }
.ep-legal p, .ep-legal li { font-size: 15.5px; }
.ep-legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.ep-legal th, .ep-legal td { border: 1px solid var(--ep-line); padding: 8px 12px; text-align: left; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .ep-layout { grid-template-columns: 1fr; }
  .ep-sidebar { position: static; margin-top: 8px; }
  .ep-hero { grid-template-columns: 1fr; }
  .ep-hero-media { order: -1; clip-path: none; aspect-ratio: 16/10; }
  .ep-hero h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .ep-statstrip { grid-template-columns: repeat(2, 1fr); }
  .ep-stat:nth-child(3) { border-left: none; }
  .ep-nav a { margin-left: 16px; font-size: 13px; }
  .ep-timeline { padding-left: 36px; }
  .ep-timeline-num { left: -36px; width: 24px; height: 24px; font-size: 11px; }
  .ep-pullquote { font-size: 21px; padding-left: 0; }
  .ep-pullquote::before { display: none; }
  .ep-footer-inner { flex-direction: column; }
}
