/* Flyer: NIS2 — page-specific additions on top of flyer-common.css */
/* This flyer carries more content than flyer_uebersicht, so a few shared
   heading/rhythm rules are scoped-overridden here (font-size/spacing only,
   never color) to fit the A4 print budget with comfortable, non-cramped
   spacing (calibrated against the true print-height budget, not screen
   padding). */

.flyer-page .flyer-h2 { margin-bottom: .3rem; }
.flyer-page .flyer-section { margin: 0 0 .32rem; }
.flyer-page .flyer-section:last-of-type { margin-bottom: 0; }
.flyer-page .flyer-footer-legal { margin-top: .3rem; }

/* ---------- Header ---------- */
.flyer-badge-row { margin-bottom: .45rem; }
.flyer-page .flyer-h1 {
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
}
.flyer-page .flyer-subline {
  font-size: .9rem;
  line-height: 1.4;
  max-width: none;
  margin: 0 0 .5rem;
}

/* ---------- Self-check: 3 stage columns ---------- */
.flyer-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: .35rem;
}
.flyer-stage-card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-top: 3px solid var(--fp-border);
  border-radius: 10px;
  padding: .42rem .7rem .5rem;
}
.flyer-stage-card.stage-mid {
  border-top-color: var(--fp-accent);
}
.flyer-stage-card.stage-high {
  border-top-color: var(--fp-accent);
  background: var(--fp-accent);
}
.flyer-stage-title {
  font-size: .85rem;
  font-weight: 800;
  color: var(--fp-text);
  margin: 0 0 .3rem;
  line-height: 1.2;
}
.flyer-stage-card.stage-high .flyer-stage-title,
.flyer-stage-card.stage-high .flyer-stage-list li {
  color: var(--fp-on-accent);
}
.flyer-stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flyer-stage-list li {
  font-size: .74rem;
  line-height: 1.4;
  color: var(--fp-muted);
  padding-left: 12px;
  position: relative;
}
.flyer-stage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
.flyer-stage-card.stage-high .flyer-stage-list li::before {
  opacity: .8;
}
.flyer-selfcheck-footnote {
  font-size: .76rem;
  color: var(--fp-muted-2);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Fristen-Leiste (compact horizontal timeline) ---------- */
.flyer-fristen-leiste {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--fp-border);
  border-radius: 8px;
  overflow: hidden;
}
.flyer-fristen-item {
  flex: 1 1 0;
  padding: .4rem .9rem;
}
.flyer-fristen-item + .flyer-fristen-item {
  border-left: 1px solid var(--fp-border);
}
.flyer-fristen-date {
  font-size: .88rem;
  font-weight: 800;
  color: var(--fp-accent);
  line-height: 1.2;
}
.flyer-fristen-text {
  font-size: .75rem;
  color: var(--fp-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* ---------- Requirements + Penalties two-column area ---------- */
.flyer-reqs-penalty-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
.flyer-req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.flyer-req-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .76rem;
  line-height: 1.4;
  color: var(--fp-muted);
}
.flyer-req-num {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--fp-accent-soft);
  color: var(--fp-accent);
  border: 1px solid var(--fp-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .66rem;
  font-weight: 800;
  margin-top: 1px;
}

.flyer-penalty-box {
  --fp-danger-text: #d94848;
  --fp-danger-soft: rgba(217, 72, 72, .14);
  --fp-danger-border: rgba(217, 72, 72, .38);
  background: var(--fp-danger-soft);
  border: 1px solid var(--fp-danger-border);
  border-radius: 10px;
  padding: .42rem .85rem .5rem;
}
@media print {
  .flyer-penalty-box {
    --fp-danger-text: #a52323;
    --fp-danger-soft: #fbeaea;
    --fp-danger-border: #e6bcbc;
  }
}
.flyer-penalty-title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fp-danger-text);
  margin: 0 0 .4rem;
}
.flyer-penalty-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.flyer-penalty-list li {
  font-size: .75rem;
  line-height: 1.4;
  color: var(--fp-text);
  padding-left: 12px;
  position: relative;
}
.flyer-penalty-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fp-danger-text);
}

/* ---------- Mapping mini-table ---------- */
.flyer-mapping-rows {
  display: flex;
  flex-direction: column;
}
.flyer-mapping-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1px 0;
  border-bottom: 1px solid var(--fp-border);
}
.flyer-mapping-row:last-child {
  border-bottom: none;
}
.flyer-mapping-finding {
  flex: 1;
  font-size: .78rem;
  color: var(--fp-text);
  line-height: 1.4;
}
.flyer-mapping-arrow {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--fp-muted-2);
}
.flyer-mapping-tag {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 800;
  color: var(--fp-accent);
  background: var(--fp-accent-soft);
  border: 1px solid var(--fp-accent-border);
  border-radius: 20px;
  padding: 4px 11px;
  white-space: nowrap;
}
.flyer-mapping-note {
  font-size: .72rem;
  color: var(--fp-muted-2);
  line-height: 1.45;
  margin: .35rem 0 0;
}

/* ---------- Bottom process + CTA row ---------- */
.flyer-main-bottom {
  margin-top: 0;
}

@media (max-width: 700px) {
  .flyer-stage-grid { grid-template-columns: 1fr; }
  .flyer-reqs-penalty-grid { grid-template-columns: 1fr; }
  .flyer-fristen-leiste { flex-direction: column; }
  .flyer-fristen-item + .flyer-fristen-item { border-left: none; border-top: 1px solid var(--fp-border); }
}
