/* ============================================================
   Massnahme — Einzelseite pro Reformvorschlag (auf style.css aufbauend)
   ============================================================ */

.mass-main { max-width: 820px; margin: 32px auto; padding: 0 20px; }

.mass-card {
  background: #0f172a55;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 26px 26px 28px;
  margin-bottom: 24px;
}

.mass-breadcrumb {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.mass-breadcrumb .mass-cat {
  background: #1f2937;
  padding: 3px 10px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.mass-breadcrumb .mass-cat.einnahmen { background: #14532d; color: #bbf7d0; }
.mass-breadcrumb .mass-cat.ausgaben { background: #7f1d1d; color: #fecaca; }
.mass-breadcrumb .mass-cat.sonder { background: #1e3a8a; color: #bfdbfe; }

.mass-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.mass-effect {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.mass-effect.positive { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }
.mass-effect.negative { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.35); }

.mass-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 10px;
  margin-bottom: 20px;
}
.mass-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.mass-toggle-hint {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.mass-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.mass-desc a { color: #3498db; }

.mass-source {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mass-source a { color: #3498db; text-decoration: none; }
.mass-source a:hover { text-decoration: underline; }

/* Share-Card */
.mass-share-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.mass-share-card .share-section { border-top: none; padding-top: 0; }
.mass-share-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 16px 20px 0;
}

/* Parent-Hinweis für abhängige Maßnahmen */
.mass-parent-hint {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.mass-parent-hint-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 8px;
}
.mass-parent-hint p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 10px;
}
.mass-parent-hint-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #93c5fd;
  text-decoration: none;
}
.mass-parent-hint-link:hover { color: #dbeafe; text-decoration: underline; }

/* Gegenfinanzierung */
.mass-counter-section {
  background: #0f172a55;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 24px;
}
.mass-counter-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.mass-counter-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.mass-counter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mass-counter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #1f2937;
}
.mass-counter-row:last-child { border-bottom: none; }
.mass-counter-text {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s;
}
a.mass-counter-text:hover { color: #3498db; text-decoration: underline; }
.mass-counter-delta {
  font-size: 0.9rem;
  font-weight: 700;
  color: #6ee7b7;
  white-space: nowrap;
  flex-shrink: 0;
}
.mass-counter-cmp {
  flex-shrink: 0;
  padding: 7px 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.mass-counter-cmp:hover { background: #1d4ed8; }

/* Error case */
.mass-error {
  background: #1c2128;
  border: 1px solid #7f1d1d;
  border-radius: 10px;
  padding: 24px;
  color: #fca5a5;
  text-align: center;
}

/* CTA-Strip unten */
.mass-strip { margin: 40px 0 16px; border-top: 1px solid #1f2937; padding-top: 28px; text-align: center; }
.mass-strip-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 720px; margin: 0 auto 22px; }
.mass-cta { display: inline-block; padding: 14px 28px; background: #2563eb; color: #fff; font-size: 1.05rem; font-weight: 700; text-decoration: none; border-radius: 10px; transition: background .15s; }
.mass-cta:hover { background: #1d4ed8; }

/* Mobile */
@media (max-width: 600px) {
  .mass-title { font-size: 1.3rem; }
  .mass-counter-row { flex-wrap: wrap; }
  .mass-counter-text { flex: 1 1 100%; white-space: normal; }
  .mass-counter-delta { flex: 0 0 auto; }
  .mass-counter-cmp { margin-left: auto; }
}
